@patternfly/documentation-framework 6.0.0-alpha.6 → 6.0.0-alpha.61
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 +991 -0
- package/app.js +2 -5
- package/components/autoLinkHeader/autoLinkHeader.css +2 -2
- package/components/autoLinkHeader/autoLinkHeader.js +8 -19
- package/components/cssVariables/cssVariables.css +9 -11
- package/components/cssVariables/cssVariables.js +19 -32
- package/components/example/example.css +14 -58
- package/components/example/example.js +149 -78
- package/components/example/exampleToolbar.js +3 -2
- package/components/footer/footer.css +16 -16
- package/components/footer/footer.js +29 -29
- package/components/gdprBanner/gdprBanner.css +0 -3
- package/components/gdprBanner/gdprBanner.js +24 -17
- package/components/inlineAlert/inlineAlert.js +1 -1
- package/components/propsTable/propsTable.js +14 -10
- package/components/sectionGallery/sectionDataListLayout.js +88 -41
- package/components/sectionGallery/sectionGallery.css +4 -42
- package/components/sectionGallery/sectionGalleryLayout.js +73 -23
- package/components/sectionGallery/sectionGalleryToolbar.js +47 -12
- package/components/sideNav/sideNav.js +3 -4
- package/components/tableOfContents/tableOfContents.css +23 -36
- package/layouts/sideNavLayout/sideNavLayout.css +1 -36
- package/layouts/sideNavLayout/sideNavLayout.js +60 -38
- package/package.json +12 -19
- package/pages/404/404.css +2 -2
- package/pages/404/index.js +23 -36
- package/routes.js +3 -1
- package/scripts/md/anchor-header.js +1 -1
- package/scripts/md/parseMD.js +20 -18
- package/scripts/md/styled-tags.js +22 -14
- package/scripts/webpack/webpack.base.config.js +7 -18
- package/scripts/writeScreenshots.js +2 -2
- package/templates/mdx.css +11 -288
- package/templates/mdx.js +38 -41
- package/templates/patternfly-docs/patternfly-docs.source.js +8 -8
- package/versions.json +42 -14
- package/components/sideNav/sideNav.css +0 -21
- package/pages/global-css-variables.md +0 -109
- package/pages/img/component-variable-mapping.png +0 -0
|
@@ -103,7 +103,7 @@ export const ExampleToolbar = ({
|
|
|
103
103
|
copyCode();
|
|
104
104
|
trackEvent('code_editor_control_click', 'click_event', 'COPY_CODE');
|
|
105
105
|
}}
|
|
106
|
-
variant="
|
|
106
|
+
variant="plain"
|
|
107
107
|
aria-label={copyAriaLabel}
|
|
108
108
|
className={editorControlProps.className}
|
|
109
109
|
>
|
|
@@ -124,7 +124,7 @@ export const ExampleToolbar = ({
|
|
|
124
124
|
>
|
|
125
125
|
<Button
|
|
126
126
|
aria-label={codesandboxAriaLabel}
|
|
127
|
-
variant="
|
|
127
|
+
variant="plain"
|
|
128
128
|
type="submit"
|
|
129
129
|
onClick={() => {
|
|
130
130
|
trackEvent('code_editor_control_click', 'click_event', 'CODESANDBOX_LINK');
|
|
@@ -218,6 +218,7 @@ export const ExampleToolbar = ({
|
|
|
218
218
|
onEditorDidMount={onEditorDidMount}
|
|
219
219
|
isReadOnly={isFullscreen}
|
|
220
220
|
className={`${isEditorOpen ? 'ws-example-code-expanded ' : ''}ws-code-editor`}
|
|
221
|
+
isHeaderPlain
|
|
221
222
|
/>
|
|
222
223
|
);
|
|
223
224
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.ws-org-pfsite-l-footer.pf-
|
|
2
|
-
|
|
1
|
+
.ws-org-pfsite-l-footer.pf-v6-c-page__main-section {
|
|
2
|
+
/* font-family: var(--pf-v6-global--FontFamily--text); */
|
|
3
3
|
font-weight: 300;
|
|
4
4
|
background-color: #1a1a1a !important;
|
|
5
|
-
--pf-
|
|
6
|
-
--pf-
|
|
7
|
-
--pf-
|
|
8
|
-
--pf-
|
|
5
|
+
--pf-v6-c-page__main-section--PaddingTop: var(--pf-t--global--spacer--xl);
|
|
6
|
+
--pf-v6-c-page__main-section--PaddingRight: var(--pf-t--global--spacer--2xl);
|
|
7
|
+
--pf-v6-c-page__main-section--PaddingBottom: var(--pf-t--global--spacer--2xl);
|
|
8
|
+
--pf-v6-c-page__main-section--PaddingLeft: var(--pf-t--global--spacer--2xl);
|
|
9
9
|
/* Hide long overflowing tocs */
|
|
10
10
|
z-index: 1;
|
|
11
11
|
}
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
.ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links a {
|
|
37
|
-
margin-right: var(--pf-
|
|
38
|
-
|
|
37
|
+
margin-right: var(--pf-t--global--spacer--md);
|
|
38
|
+
/* color: var(--pf-v6-global--Color--light-100) !important; */
|
|
39
39
|
}
|
|
40
40
|
.ws-org-pfsite-l-footer-column
|
|
41
41
|
.ws-org-pfsite-footer-menu-social-links
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
margin-right: 0;
|
|
44
44
|
}
|
|
45
45
|
.ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links {
|
|
46
|
-
margin-top: var(--pf-
|
|
47
|
-
margin-bottom: var(--pf-
|
|
46
|
+
margin-top: var(--pf-t--global--spacer--md);
|
|
47
|
+
margin-bottom: var(--pf-t--global--spacer--md);
|
|
48
48
|
}
|
|
49
49
|
@media (max-width: 768px) {
|
|
50
50
|
.ws-org-pfsite-l-footer-column .ws-org-pfsite-footer-menu-social-links {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
padding-right: 10px;
|
|
72
72
|
}
|
|
73
73
|
.ws-org-pfsite-l-footer .ws-org-pfsite-footer-menu-link {
|
|
74
|
-
|
|
74
|
+
/* color: var(--pf-v6-global--Color--light-100); */
|
|
75
75
|
font-size: 14px !important;
|
|
76
76
|
}
|
|
77
77
|
.ws-org-pfsite-l-footer .ws-org-pfsite-footer-menu-link:hover {
|
|
@@ -86,19 +86,19 @@
|
|
|
86
86
|
.ws-org-pfsite-l-footer-dark {
|
|
87
87
|
background: #151515 !important;
|
|
88
88
|
}
|
|
89
|
-
.pf-
|
|
89
|
+
.pf-v6-c-page .pf-v6-c-page__main-section.ws-org-pfsite-l-footer-dark {
|
|
90
90
|
/* Hide long overflowing tocs */
|
|
91
91
|
z-index: 1;
|
|
92
92
|
}
|
|
93
|
-
.pf-
|
|
93
|
+
.pf-v6-c-page__main-section.ws-org-pfsite-l-footer-dark > * {
|
|
94
94
|
font-weight: 300;
|
|
95
95
|
font-size: 12px;
|
|
96
96
|
color: #d2d2d2;
|
|
97
97
|
}
|
|
98
98
|
.ws-org-pfsite-l-footer-dark a {
|
|
99
|
-
padding-right: var(--pf-
|
|
100
|
-
padding-left: var(--pf-
|
|
101
|
-
|
|
99
|
+
padding-right: var(--pf-t--global--spacer--sm);
|
|
100
|
+
padding-left: var(--pf-t--global--spacer--sm);
|
|
101
|
+
/* border-right: var(--pf-v6-global--BorderWidth--sm) solid #d2d2d2; */
|
|
102
102
|
font-weight: 300;
|
|
103
103
|
color: #d2d2d2;
|
|
104
104
|
text-decoration: underline;
|
|
@@ -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">
|
|
@@ -29,17 +29,17 @@ export const Footer = () => (
|
|
|
29
29
|
<li className="ws-org-pfsite-footer-menu-list-item">
|
|
30
30
|
<Link
|
|
31
31
|
className="ws-org-pfsite-footer-menu-link"
|
|
32
|
-
to={"/get-started/about"}
|
|
33
|
-
aria-label="Get started with PatternFly
|
|
34
|
-
|
|
32
|
+
to={"/get-started/about-patternfly"}
|
|
33
|
+
aria-label="Get started with PatternFly"
|
|
34
|
+
>
|
|
35
35
|
Get started
|
|
36
36
|
</Link>
|
|
37
37
|
</li>
|
|
38
38
|
<li className="ws-org-pfsite-footer-menu-list-item">
|
|
39
39
|
<Link
|
|
40
40
|
className="ws-org-pfsite-footer-menu-link"
|
|
41
|
-
to="/components/
|
|
42
|
-
aria-label="PatternFly
|
|
41
|
+
to="/components/all-components"
|
|
42
|
+
aria-label="PatternFly components"
|
|
43
43
|
>
|
|
44
44
|
Components
|
|
45
45
|
</Link>
|
|
@@ -47,8 +47,8 @@ export const Footer = () => (
|
|
|
47
47
|
<li className="ws-org-pfsite-footer-menu-list-item">
|
|
48
48
|
<Link
|
|
49
49
|
className="ws-org-pfsite-footer-menu-link"
|
|
50
|
-
to="/layouts/
|
|
51
|
-
aria-label="PatternFly
|
|
50
|
+
to="/layouts/about-layouts"
|
|
51
|
+
aria-label="PatternFly layouts"
|
|
52
52
|
>
|
|
53
53
|
Layouts
|
|
54
54
|
</Link>
|
|
@@ -56,8 +56,8 @@ export const Footer = () => (
|
|
|
56
56
|
<li className="ws-org-pfsite-footer-menu-list-item">
|
|
57
57
|
<Link
|
|
58
58
|
className="ws-org-pfsite-footer-menu-link"
|
|
59
|
-
to="/design-foundations/
|
|
60
|
-
aria-label="PatternFly
|
|
59
|
+
to="/design-foundations/about-design-foundations"
|
|
60
|
+
aria-label="PatternFly styles"
|
|
61
61
|
>
|
|
62
62
|
Styles
|
|
63
63
|
</Link>
|
|
@@ -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">
|
|
@@ -98,7 +98,7 @@ export const Footer = () => (
|
|
|
98
98
|
className="ws-org-pfsite-footer-menu-link"
|
|
99
99
|
to="https://github.com/patternfly/patternfly/blob/main/CODE_OF_CONDUCT.md"
|
|
100
100
|
target="top"
|
|
101
|
-
aria-label="PatternFly
|
|
101
|
+
aria-label="PatternFly Code of Conduct"
|
|
102
102
|
>
|
|
103
103
|
Code of Conduct
|
|
104
104
|
</Link>
|
|
@@ -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
|
|
@@ -121,7 +121,7 @@ export const Footer = () => (
|
|
|
121
121
|
className="ws-org-pfsite-footer-menu-link"
|
|
122
122
|
to="//join.slack.com/t/patternfly/shared_invite/zt-1npmqswgk-bF2R1E2rglV8jz5DNTezMQ"
|
|
123
123
|
target="top"
|
|
124
|
-
aria-label="Join the PatternFly
|
|
124
|
+
aria-label="Join the PatternFly Slack"
|
|
125
125
|
>
|
|
126
126
|
Slack
|
|
127
127
|
</Link>
|
|
@@ -139,9 +139,9 @@ export const Footer = () => (
|
|
|
139
139
|
<li className="ws-org-pfsite-footer-menu-list-item">
|
|
140
140
|
<Link
|
|
141
141
|
className="ws-org-pfsite-footer-menu-link"
|
|
142
|
-
to="
|
|
142
|
+
to="https://www.redhat.com/dynamic-form/instance/934b1674-bc8a-4a13-8c9d-d19abcceb263"
|
|
143
143
|
target="top"
|
|
144
|
-
aria-label="Join the PatternFly
|
|
144
|
+
aria-label="Join the PatternFly mailing list"
|
|
145
145
|
>
|
|
146
146
|
Mailing list
|
|
147
147
|
</Link>
|
|
@@ -151,7 +151,7 @@ export const Footer = () => (
|
|
|
151
151
|
className="ws-org-pfsite-footer-menu-link"
|
|
152
152
|
to="//medium.com/patternfly"
|
|
153
153
|
target="top"
|
|
154
|
-
aria-label="Read the PatternFly
|
|
154
|
+
aria-label="Read the PatternFly blog"
|
|
155
155
|
>
|
|
156
156
|
PatternFly Medium
|
|
157
157
|
</Link>
|
|
@@ -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"
|
|
@@ -194,9 +194,9 @@ export const Footer = () => (
|
|
|
194
194
|
<GithubIcon />
|
|
195
195
|
</Link>
|
|
196
196
|
<Link
|
|
197
|
-
to="//
|
|
197
|
+
to="//x.com/patternfly"
|
|
198
198
|
target="top"
|
|
199
|
-
aria-label="Link to PatternFly
|
|
199
|
+
aria-label="Link to PatternFly X page"
|
|
200
200
|
>
|
|
201
201
|
<TwitterIcon />
|
|
202
202
|
</Link>
|
|
@@ -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"
|
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button } from '@patternfly/react-core';
|
|
2
|
+
import { Panel, PanelMain, PanelMainBody, Flex, FlexItem, Button } from '@patternfly/react-core';
|
|
3
3
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
4
4
|
import './gdprBanner.css';
|
|
5
5
|
|
|
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
|
-
return !isBannerOpen ? null : (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
// return !isBannerOpen ? null : (
|
|
16
|
+
return (
|
|
17
|
+
<Flex className="ws-gdpr-banner-container">
|
|
18
|
+
<Panel variant="bordered" className="pf-m-raised" id="ws-gdpr-banner">
|
|
19
|
+
<PanelMain>
|
|
20
|
+
<PanelMainBody>
|
|
21
|
+
<Flex flexWrap={{default: 'nowrap'}} alignItems={{default: 'alignItemsFlexStart'}}>
|
|
22
|
+
<FlexItem className="pf-v6-u-ml-xl">
|
|
23
|
+
We use cookies on our websites to deliver our online services.
|
|
24
|
+
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>.
|
|
25
|
+
By using this website you agree to our use of cookies.
|
|
26
|
+
</FlexItem>
|
|
27
|
+
<FlexItem>
|
|
28
|
+
<Button variant="plain" aria-label="Close banner" onClick={closeBanner}>
|
|
29
|
+
<TimesIcon />
|
|
30
|
+
</Button>
|
|
31
|
+
</FlexItem>
|
|
32
|
+
</Flex>
|
|
33
|
+
</PanelMainBody>
|
|
34
|
+
</PanelMain>
|
|
35
|
+
</Panel>
|
|
36
|
+
</Flex>
|
|
30
37
|
);
|
|
31
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Label } from "@patternfly/react-core";
|
|
3
3
|
import {
|
|
4
4
|
Table,
|
|
5
5
|
Caption,
|
|
@@ -17,10 +17,10 @@ import accessibleStyles from "@patternfly/react-styles/css/utilities/Accessibili
|
|
|
17
17
|
|
|
18
18
|
export const PropsTable = ({ title, description, rows, allPropComponents }) => (
|
|
19
19
|
<React.Fragment>
|
|
20
|
-
<AutoLinkHeader
|
|
21
|
-
<Table className="pf-
|
|
20
|
+
<AutoLinkHeader headingLevel="h3">{title}</AutoLinkHeader>
|
|
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>
|
|
@@ -62,12 +62,16 @@ export const PropsTable = ({ title, description, rows, allPropComponents }) => (
|
|
|
62
62
|
""
|
|
63
63
|
)}
|
|
64
64
|
{row.beta && (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<>
|
|
66
|
+
{" "}
|
|
67
|
+
<Label
|
|
68
|
+
key={`${row.name}-${idx}`}
|
|
69
|
+
color="blue"
|
|
70
|
+
isCompact
|
|
71
|
+
>
|
|
72
|
+
Beta
|
|
73
|
+
</Label>
|
|
74
|
+
</>
|
|
71
75
|
)}
|
|
72
76
|
</TableText>
|
|
73
77
|
</Td>
|
|
@@ -1,51 +1,98 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
DataList,
|
|
4
|
+
DataListItem,
|
|
5
|
+
DataListItemRow,
|
|
6
|
+
DataListItemCells,
|
|
7
|
+
DataListCell,
|
|
8
|
+
Split,
|
|
9
|
+
SplitItem,
|
|
10
|
+
TextContent,
|
|
11
|
+
Text,
|
|
12
|
+
TextVariants,
|
|
13
|
+
Label,
|
|
14
|
+
} from '@patternfly/react-core';
|
|
3
15
|
import { Link } from '../link/link';
|
|
4
16
|
import { TextSummary } from './TextSummary';
|
|
5
17
|
|
|
6
|
-
export const SectionDataListLayout = ({
|
|
18
|
+
export const SectionDataListLayout = ({
|
|
19
|
+
galleryItems,
|
|
20
|
+
layoutView,
|
|
21
|
+
hasListText,
|
|
22
|
+
hasListImages,
|
|
23
|
+
}) => {
|
|
7
24
|
if (layoutView !== 'list') {
|
|
8
25
|
return null;
|
|
9
26
|
}
|
|
10
|
-
|
|
27
|
+
|
|
11
28
|
return (
|
|
12
29
|
<DataList onSelectDataListItem={() => {}}>
|
|
13
|
-
{galleryItems.map(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
{galleryItems.map(
|
|
31
|
+
({
|
|
32
|
+
idx,
|
|
33
|
+
slug,
|
|
34
|
+
illustration,
|
|
35
|
+
itemName,
|
|
36
|
+
title,
|
|
37
|
+
isBeta,
|
|
38
|
+
isDeprecated,
|
|
39
|
+
isDemo,
|
|
40
|
+
id,
|
|
41
|
+
galleryItemsData,
|
|
42
|
+
}) => (
|
|
43
|
+
<Link to={slug} key={idx} className="ws-section-gallery-item">
|
|
44
|
+
<DataListItem>
|
|
45
|
+
<DataListItemRow>
|
|
46
|
+
<DataListItemCells
|
|
47
|
+
dataListCells={[
|
|
48
|
+
hasListImages && illustration && (
|
|
49
|
+
<DataListCell width={1} key="illustration">
|
|
50
|
+
<div>
|
|
51
|
+
<img
|
|
52
|
+
src={illustration}
|
|
53
|
+
alt={`${itemName} illustration`}
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
</DataListCell>
|
|
57
|
+
),
|
|
58
|
+
<DataListCell width={5} key="text-description">
|
|
59
|
+
<Split className={hasListText ? 'pf-v6-u-mb-md' : null}>
|
|
60
|
+
<SplitItem isFilled>
|
|
61
|
+
<TextContent>
|
|
62
|
+
<Text component={TextVariants.h2}>
|
|
63
|
+
<span>{title}</span>
|
|
64
|
+
</Text>
|
|
65
|
+
</TextContent>
|
|
66
|
+
</SplitItem>
|
|
67
|
+
<SplitItem>
|
|
68
|
+
{isBeta && (
|
|
69
|
+
<Label color="blue" isCompact>
|
|
70
|
+
Beta
|
|
71
|
+
</Label>
|
|
72
|
+
)}
|
|
73
|
+
{!isBeta && isDeprecated && (
|
|
74
|
+
<Label color="grey" isCompact>
|
|
75
|
+
Deprecated
|
|
76
|
+
</Label>
|
|
77
|
+
)}
|
|
78
|
+
{!isBeta && !isDeprecated && isDemo && (
|
|
79
|
+
<Label color="purple" isCompact>
|
|
80
|
+
Demo
|
|
81
|
+
</Label>
|
|
82
|
+
)}
|
|
83
|
+
</SplitItem>
|
|
84
|
+
</Split>
|
|
85
|
+
{hasListText && (
|
|
86
|
+
<TextSummary id={id} itemsData={galleryItemsData} />
|
|
87
|
+
)}
|
|
88
|
+
</DataListCell>,
|
|
89
|
+
]}
|
|
90
|
+
/>
|
|
91
|
+
</DataListItemRow>
|
|
92
|
+
</DataListItem>
|
|
93
|
+
</Link>
|
|
94
|
+
)
|
|
95
|
+
)}
|
|
49
96
|
</DataList>
|
|
50
|
-
)
|
|
97
|
+
);
|
|
51
98
|
};
|
|
@@ -1,39 +1,6 @@
|
|
|
1
|
-
.ws-landing-page > * {
|
|
2
|
-
max-width: 832px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.ws-landing-page > .ws-section-gallery-full-width {
|
|
6
|
-
max-width: initial;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ws-section-gallery {
|
|
10
|
-
/* top placement */
|
|
11
|
-
margin-top: calc(var(--pf-v5-c-page__main-section--PaddingTop) * -1);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
* + .ws-section-gallery {
|
|
15
|
-
/* top placement */
|
|
16
|
-
margin-top: unset;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
1
|
/* Toolbar styles */
|
|
20
|
-
.ws-section-gallery .pf-
|
|
21
|
-
margin-
|
|
22
|
-
border-bottom: var(--pf-v5-c-page__sidebar--m-light--BorderRightWidth) solid var(--pf-v5-c-page__sidebar--m-light--BorderRightColor);
|
|
23
|
-
margin-bottom: var(--pf-v5-global--spacer--md);
|
|
24
|
-
width: calc(100% + var(--pf-v5-c-page__main-section--PaddingLeft) + var(--pf-v5-c-page__main-section--PaddingRight));
|
|
25
|
-
/* avoid hoverable data list items overlapping toolbar */
|
|
26
|
-
z-index: calc(var(--pf-v5-global--ZIndex--xs) + 2);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Match toolbar left-padding to gallery left-padding */
|
|
30
|
-
.ws-section-gallery .pf-v5-c-toolbar .pf-v5-c-toolbar__content {
|
|
31
|
-
--pf-v5-c-toolbar__content--PaddingLeft: var(--pf-v5-c-page__main-section--PaddingLeft);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Avoid toolbar wrap on smaller screens */
|
|
35
|
-
.ws-section-gallery .pf-v5-c-toolbar__content-section {
|
|
36
|
-
flex-wrap: nowrap;
|
|
2
|
+
.ws-section-gallery .pf-v6-c-toolbar {
|
|
3
|
+
margin-block-end: var(--pf-t--global--spacer--md);
|
|
37
4
|
}
|
|
38
5
|
|
|
39
6
|
/* Avoid link styling on gallery/data list item names */
|
|
@@ -42,12 +9,7 @@
|
|
|
42
9
|
color: inherit;
|
|
43
10
|
}
|
|
44
11
|
|
|
45
|
-
/* Ensure same height for all cards in a gallery row */
|
|
46
|
-
.ws-section-gallery .pf-v5-c-card {
|
|
47
|
-
height: 100%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
12
|
/* Limit width for data list view only */
|
|
51
|
-
.ws-section-gallery .pf-
|
|
52
|
-
max-width:
|
|
13
|
+
.ws-section-gallery .pf-v6-c-data-list {
|
|
14
|
+
max-width: var(--pf-t--global--breakpoint--lg);
|
|
53
15
|
}
|