@patternfly/documentation-framework 6.0.0-alpha.9 → 6.0.0-alpha.91
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 +1249 -0
- package/README.md +5 -76
- 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/RHLogoDark.png +0 -0
- package/components/footer/footer.css +31 -93
- package/components/footer/footer.js +139 -78
- package/components/gdprBanner/gdprBanner.css +0 -3
- package/components/gdprBanner/gdprBanner.js +22 -16
- package/components/inlineAlert/inlineAlert.js +1 -1
- package/components/link/link.js +23 -18
- package/components/propsTable/propsTable.js +14 -10
- package/components/sectionGallery/TextSummary.js +5 -5
- package/components/sectionGallery/sectionDataListLayout.js +87 -41
- package/components/sectionGallery/sectionGallery.css +6 -39
- package/components/sectionGallery/sectionGalleryLayout.js +73 -23
- package/components/sectionGallery/sectionGalleryToolbar.js +48 -12
- package/components/sideNav/sideNav.js +3 -4
- package/components/tableOfContents/tableOfContents.css +26 -35
- package/components/tableOfContents/tableOfContents.js +58 -28
- package/layouts/sideNavLayout/sideNavLayout.css +1 -36
- package/layouts/sideNavLayout/sideNavLayout.js +193 -103
- 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/md/typecheck.js +1 -0
- package/scripts/webpack/prerender.js +2 -1
- 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 +40 -43
- package/templates/patternfly-docs/patternfly-docs.source.js +8 -8
- package/versions.json +42 -15
- package/components/sideNav/sideNav.css +0 -21
- package/pages/global-css-variables.md +0 -109
- package/pages/img/component-variable-mapping.png +0 -0
|
@@ -1,81 +1,89 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Brand,
|
|
4
|
+
Grid,
|
|
5
|
+
GridItem,
|
|
6
|
+
List,
|
|
7
|
+
ListItem,
|
|
8
|
+
PageSection,
|
|
9
|
+
Content,
|
|
10
|
+
} from '@patternfly/react-core';
|
|
11
|
+
import { Link } from '@patternfly/documentation-framework/components';
|
|
12
|
+
import { GithubIcon, TwitterIcon } from '@patternfly/react-icons';
|
|
13
|
+
import redhatLogo from './RHLogo.png';
|
|
14
|
+
import redhatLogoDark from './RHLogoDark.png';
|
|
7
15
|
|
|
8
|
-
export const Footer = () => (
|
|
16
|
+
export const Footer = ({ isDarkTheme }) => (
|
|
9
17
|
<React.Fragment>
|
|
10
|
-
<PageSection
|
|
18
|
+
<PageSection
|
|
19
|
+
key="footer-1"
|
|
20
|
+
className="ws-org-pfsite-l-footer"
|
|
21
|
+
component="footer"
|
|
22
|
+
>
|
|
11
23
|
<Grid>
|
|
12
24
|
<GridItem
|
|
13
25
|
sm={12}
|
|
14
26
|
md={6}
|
|
15
27
|
mdOffset={1}
|
|
16
|
-
className="pf-
|
|
28
|
+
className="pf-v6-u-mb-lg pf-v6-u-mb-0-on-sm"
|
|
17
29
|
>
|
|
18
|
-
<Grid className="pf-
|
|
30
|
+
<Grid className="pf-v6-u-py-xl">
|
|
19
31
|
<GridItem
|
|
20
32
|
sm={6}
|
|
21
33
|
md={4}
|
|
22
|
-
className="pf-
|
|
34
|
+
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
35
|
>
|
|
24
|
-
<p className="
|
|
25
|
-
QUICKLINKS
|
|
26
|
-
</p>
|
|
36
|
+
<p className="ws-org-pfsite-footer-menu-list-title">Quicklinks</p>
|
|
27
37
|
<nav aria-label="Quick Links">
|
|
28
38
|
<List isPlain className="ws-org-pfsite-footer-menu-list">
|
|
29
|
-
<
|
|
39
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
30
40
|
<Link
|
|
31
41
|
className="ws-org-pfsite-footer-menu-link"
|
|
32
|
-
to={
|
|
33
|
-
aria-label="Get started with PatternFly
|
|
42
|
+
to={'/get-started/about-patternfly'}
|
|
43
|
+
aria-label="Get started with PatternFly"
|
|
34
44
|
>
|
|
35
45
|
Get started
|
|
36
46
|
</Link>
|
|
37
|
-
</
|
|
38
|
-
<
|
|
47
|
+
</ListItem>
|
|
48
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
39
49
|
<Link
|
|
40
50
|
className="ws-org-pfsite-footer-menu-link"
|
|
41
|
-
to="/components/
|
|
42
|
-
aria-label="PatternFly
|
|
51
|
+
to="/components/all-components"
|
|
52
|
+
aria-label="PatternFly components"
|
|
43
53
|
>
|
|
44
54
|
Components
|
|
45
55
|
</Link>
|
|
46
|
-
</
|
|
47
|
-
<
|
|
56
|
+
</ListItem>
|
|
57
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
48
58
|
<Link
|
|
49
59
|
className="ws-org-pfsite-footer-menu-link"
|
|
50
|
-
to="/layouts/
|
|
51
|
-
aria-label="PatternFly
|
|
60
|
+
to="/layouts/about-layouts"
|
|
61
|
+
aria-label="PatternFly layouts"
|
|
52
62
|
>
|
|
53
63
|
Layouts
|
|
54
64
|
</Link>
|
|
55
|
-
</
|
|
56
|
-
<
|
|
65
|
+
</ListItem>
|
|
66
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
57
67
|
<Link
|
|
58
68
|
className="ws-org-pfsite-footer-menu-link"
|
|
59
|
-
to="/design-foundations/
|
|
60
|
-
aria-label="PatternFly
|
|
69
|
+
to="/design-foundations/about-design-foundations"
|
|
70
|
+
aria-label="PatternFly styles"
|
|
61
71
|
>
|
|
62
72
|
Styles
|
|
63
73
|
</Link>
|
|
64
|
-
</
|
|
74
|
+
</ListItem>
|
|
65
75
|
</List>
|
|
66
76
|
</nav>
|
|
67
77
|
</GridItem>
|
|
68
78
|
<GridItem
|
|
69
79
|
sm={6}
|
|
70
80
|
md={4}
|
|
71
|
-
className="pf-
|
|
81
|
+
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
82
|
>
|
|
73
|
-
<p className="
|
|
74
|
-
CONTRIBUTE
|
|
75
|
-
</p>
|
|
83
|
+
<p className="ws-org-pfsite-footer-menu-list-title">Contribute</p>
|
|
76
84
|
<nav aria-label="Contribute">
|
|
77
85
|
<List isPlain className="ws-org-pfsite-footer-menu-list">
|
|
78
|
-
<
|
|
86
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
79
87
|
<Link
|
|
80
88
|
className="ws-org-pfsite-footer-menu-link"
|
|
81
89
|
to="/get-started/design"
|
|
@@ -83,8 +91,8 @@ export const Footer = () => (
|
|
|
83
91
|
>
|
|
84
92
|
Designers
|
|
85
93
|
</Link>
|
|
86
|
-
</
|
|
87
|
-
<
|
|
94
|
+
</ListItem>
|
|
95
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
88
96
|
<Link
|
|
89
97
|
className="ws-org-pfsite-footer-menu-link"
|
|
90
98
|
to="/get-started/develop"
|
|
@@ -92,41 +100,41 @@ export const Footer = () => (
|
|
|
92
100
|
>
|
|
93
101
|
Developers
|
|
94
102
|
</Link>
|
|
95
|
-
</
|
|
96
|
-
<
|
|
103
|
+
</ListItem>
|
|
104
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
97
105
|
<Link
|
|
98
106
|
className="ws-org-pfsite-footer-menu-link"
|
|
99
107
|
to="https://github.com/patternfly/patternfly/blob/main/CODE_OF_CONDUCT.md"
|
|
100
108
|
target="top"
|
|
101
|
-
aria-label="PatternFly
|
|
109
|
+
aria-label="PatternFly Code of Conduct"
|
|
102
110
|
>
|
|
103
111
|
Code of Conduct
|
|
104
112
|
</Link>
|
|
105
|
-
</
|
|
113
|
+
</ListItem>
|
|
106
114
|
</List>
|
|
107
115
|
</nav>
|
|
108
116
|
</GridItem>
|
|
109
117
|
<GridItem
|
|
110
118
|
sm={6}
|
|
111
119
|
md={4}
|
|
112
|
-
className="pf-
|
|
120
|
+
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
121
|
>
|
|
114
122
|
<p className="ws-org-pfsite-footer-menu-list-title">
|
|
115
|
-
|
|
123
|
+
Stay in touch
|
|
116
124
|
</p>
|
|
117
125
|
<nav aria-label="Stay in touch">
|
|
118
126
|
<List isPlain className="ws-org-pfsite-footer-menu-list">
|
|
119
|
-
<
|
|
127
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
120
128
|
<Link
|
|
121
129
|
className="ws-org-pfsite-footer-menu-link"
|
|
122
130
|
to="//join.slack.com/t/patternfly/shared_invite/zt-1npmqswgk-bF2R1E2rglV8jz5DNTezMQ"
|
|
123
131
|
target="top"
|
|
124
|
-
aria-label="Join the PatternFly
|
|
132
|
+
aria-label="Join the PatternFly Slack"
|
|
125
133
|
>
|
|
126
134
|
Slack
|
|
127
135
|
</Link>
|
|
128
|
-
</
|
|
129
|
-
<
|
|
136
|
+
</ListItem>
|
|
137
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
130
138
|
<Link
|
|
131
139
|
className="ws-org-pfsite-footer-menu-link"
|
|
132
140
|
to="//github.com/orgs/patternfly/discussions"
|
|
@@ -135,57 +143,110 @@ export const Footer = () => (
|
|
|
135
143
|
>
|
|
136
144
|
Discussions
|
|
137
145
|
</Link>
|
|
138
|
-
</
|
|
139
|
-
<
|
|
146
|
+
</ListItem>
|
|
147
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
140
148
|
<Link
|
|
141
149
|
className="ws-org-pfsite-footer-menu-link"
|
|
142
|
-
to="
|
|
150
|
+
to="https://www.redhat.com/dynamic-form/instance/934b1674-bc8a-4a13-8c9d-d19abcceb263"
|
|
143
151
|
target="top"
|
|
144
|
-
aria-label="Join the PatternFly
|
|
152
|
+
aria-label="Join the PatternFly mailing list"
|
|
145
153
|
>
|
|
146
154
|
Mailing list
|
|
147
155
|
</Link>
|
|
148
|
-
</
|
|
149
|
-
<
|
|
156
|
+
</ListItem>
|
|
157
|
+
<ListItem className="ws-org-pfsite-footer-menu-list-item">
|
|
150
158
|
<Link
|
|
151
159
|
className="ws-org-pfsite-footer-menu-link"
|
|
152
160
|
to="//medium.com/patternfly"
|
|
153
161
|
target="top"
|
|
154
|
-
aria-label="Read the PatternFly
|
|
162
|
+
aria-label="Read the PatternFly blog"
|
|
155
163
|
>
|
|
156
164
|
PatternFly Medium
|
|
157
165
|
</Link>
|
|
158
|
-
</
|
|
166
|
+
</ListItem>
|
|
159
167
|
</List>
|
|
160
168
|
</nav>
|
|
161
169
|
</GridItem>
|
|
162
170
|
</Grid>
|
|
163
171
|
</GridItem>
|
|
164
172
|
<GridItem sm={12} md={4}>
|
|
165
|
-
<Grid className="pf-
|
|
166
|
-
<GridItem
|
|
173
|
+
<Grid className="pf-v6-u-pt-xl pf-v6-u-pb-xl ws-org-pfsite-l-footer-column">
|
|
174
|
+
<GridItem>
|
|
167
175
|
<Link
|
|
168
|
-
className="pf-
|
|
176
|
+
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
177
|
to="/"
|
|
170
178
|
>
|
|
171
|
-
<
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
179
|
+
<svg height="40px" viewBox="0 0 679 158">
|
|
180
|
+
<title>PF-HorizontalLogo-Color</title>
|
|
181
|
+
<defs>
|
|
182
|
+
<linearGradient
|
|
183
|
+
x1="68%"
|
|
184
|
+
y1="2.25860997e-13%"
|
|
185
|
+
x2="32%"
|
|
186
|
+
y2="100%"
|
|
187
|
+
id="linearGradient-website-masthead"
|
|
188
|
+
>
|
|
189
|
+
<stop stopColor="#2B9AF3" offset="0%"></stop>
|
|
190
|
+
<stop
|
|
191
|
+
stopColor="#73BCF7"
|
|
192
|
+
stopOpacity="0.502212631"
|
|
193
|
+
offset="100%"
|
|
194
|
+
></stop>
|
|
195
|
+
</linearGradient>
|
|
196
|
+
</defs>
|
|
197
|
+
<g
|
|
198
|
+
stroke="none"
|
|
199
|
+
strokeWidth="1"
|
|
200
|
+
fill="none"
|
|
201
|
+
fillRule="evenodd"
|
|
202
|
+
>
|
|
203
|
+
<g
|
|
204
|
+
transform="translate(206.000000, 45.750000)"
|
|
205
|
+
fill="var(--pf-t--global--text--color--regular)"
|
|
206
|
+
fillRule="nonzero"
|
|
207
|
+
>
|
|
208
|
+
<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>
|
|
209
|
+
<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>
|
|
210
|
+
<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>
|
|
211
|
+
<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>
|
|
212
|
+
<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>
|
|
213
|
+
<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>
|
|
214
|
+
<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>
|
|
215
|
+
<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>
|
|
216
|
+
<polygon points="399.96 65.25 399.96 2.25 414.54 0 414.54 65.25"></polygon>
|
|
217
|
+
<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>
|
|
218
|
+
</g>
|
|
219
|
+
<g transform="translate(0.000000, 0.000000)">
|
|
220
|
+
<path
|
|
221
|
+
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"
|
|
222
|
+
fill="var(--pf-t--color--blue--50)"
|
|
223
|
+
></path>
|
|
224
|
+
<path
|
|
225
|
+
d="M158,3.43478261 L65.2608696,158 L138,158 C149.045695,158 158,149.045695 158,138 L158,3.43478261 L158,3.43478261 Z"
|
|
226
|
+
fill="url(#linearGradient-website-masthead)"
|
|
227
|
+
></path>
|
|
228
|
+
<path
|
|
229
|
+
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"
|
|
230
|
+
fill="url(#linearGradient-website-masthead)"
|
|
231
|
+
transform="translate(77.282609, 46.369565) scale(1, -1) rotate(90.000000) translate(-77.282609, -46.369565) "
|
|
232
|
+
></path>
|
|
233
|
+
</g>
|
|
234
|
+
</g>
|
|
235
|
+
</svg>
|
|
178
236
|
</Link>
|
|
179
|
-
<
|
|
237
|
+
<Content
|
|
238
|
+
component="p"
|
|
239
|
+
className="ws-org-pfsite-footer-menu-about-description"
|
|
240
|
+
>
|
|
180
241
|
PatternFly is an open source design system built to drive
|
|
181
242
|
consistency and unify teams. From documentation and components
|
|
182
243
|
to code examples and tutorials, PatternFly is a place where
|
|
183
244
|
design and development can thrive. We’re on a mission to help
|
|
184
245
|
teams build consistent, accessible, and scalable enterprise
|
|
185
246
|
product experiences—the open source way.
|
|
186
|
-
</
|
|
247
|
+
</Content>
|
|
187
248
|
</GridItem>
|
|
188
|
-
<GridItem className="ws-org-pfsite-footer-menu-social-links
|
|
249
|
+
<GridItem className="ws-org-pfsite-footer-menu-social-links">
|
|
189
250
|
<Link
|
|
190
251
|
to="//github.com/patternfly"
|
|
191
252
|
target="top"
|
|
@@ -194,9 +255,9 @@ export const Footer = () => (
|
|
|
194
255
|
<GithubIcon />
|
|
195
256
|
</Link>
|
|
196
257
|
<Link
|
|
197
|
-
to="//
|
|
258
|
+
to="//x.com/patternfly"
|
|
198
259
|
target="top"
|
|
199
|
-
aria-label="Link to PatternFly
|
|
260
|
+
aria-label="Link to PatternFly X page"
|
|
200
261
|
>
|
|
201
262
|
<TwitterIcon />
|
|
202
263
|
</Link>
|
|
@@ -209,26 +270,26 @@ export const Footer = () => (
|
|
|
209
270
|
key="footer-2"
|
|
210
271
|
className="ws-org-pfsite-l-footer-dark pf-m-no-fill"
|
|
211
272
|
>
|
|
212
|
-
<Grid
|
|
273
|
+
<Grid
|
|
274
|
+
hasGutter
|
|
275
|
+
className="pf-v6-u-py-xl-on-sm pf-v6-u-py-0-on-md pf-v6-u-align-items-center"
|
|
276
|
+
>
|
|
213
277
|
<GridItem md={2} mdOffset={1}>
|
|
214
|
-
<Link
|
|
215
|
-
to="//www.redhat.com"
|
|
216
|
-
target="top"
|
|
217
|
-
>
|
|
278
|
+
<Link to="//www.redhat.com" target="top">
|
|
218
279
|
<img
|
|
219
|
-
src={redhatLogo}
|
|
280
|
+
src={isDarkTheme ? redhatLogo : redhatLogoDark}
|
|
220
281
|
alt="Red Hat"
|
|
221
282
|
width="145px"
|
|
222
283
|
height="613px"
|
|
223
284
|
/>
|
|
224
285
|
</Link>
|
|
225
286
|
</GridItem>
|
|
226
|
-
<GridItem md={
|
|
287
|
+
<GridItem md={3} lg={3} xl={2}>
|
|
227
288
|
<span className="ws-org-pfsite-site-copyright">
|
|
228
289
|
Copyright © 2014-{new Date().getFullYear()} Red Hat, Inc.
|
|
229
290
|
</span>
|
|
230
291
|
</GridItem>
|
|
231
|
-
<GridItem md={
|
|
292
|
+
<GridItem md={5} lg={5} className="pf-v6-u-ml-xl-on-xl">
|
|
232
293
|
<Link
|
|
233
294
|
to="//www.redhat.com/en/about/privacy-policy"
|
|
234
295
|
target="top"
|
|
@@ -1,31 +1,37 @@
|
|
|
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
15
|
return !isBannerOpen ? null : (
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
<Flex className="ws-gdpr-banner-container">
|
|
17
|
+
<Panel variant="bordered" className="pf-m-raised" id="ws-gdpr-banner">
|
|
18
|
+
<PanelMain>
|
|
19
|
+
<PanelMainBody>
|
|
20
|
+
<Flex flexWrap={{default: 'nowrap'}} alignItems={{default: 'alignItemsFlexStart'}}>
|
|
21
|
+
<FlexItem className="pf-v6-u-ml-xl">
|
|
22
|
+
We use cookies on our websites to deliver our online services.
|
|
23
|
+
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>.
|
|
24
|
+
By using this website you agree to our use of cookies.
|
|
25
|
+
</FlexItem>
|
|
26
|
+
<FlexItem>
|
|
27
|
+
<Button variant="plain" aria-label="Close banner" onClick={closeBanner}>
|
|
28
|
+
<TimesIcon />
|
|
29
|
+
</Button>
|
|
30
|
+
</FlexItem>
|
|
31
|
+
</Flex>
|
|
32
|
+
</PanelMainBody>
|
|
33
|
+
</PanelMain>
|
|
34
|
+
</Panel>
|
|
35
|
+
</Flex>
|
|
30
36
|
);
|
|
31
37
|
}
|
package/components/link/link.js
CHANGED
|
@@ -2,16 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import { Link as ReachLink, navigate } from '@reach/router';
|
|
3
3
|
import { getAsyncComponent } from '../../routes';
|
|
4
4
|
|
|
5
|
-
const Promiseany = (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}).
|
|
5
|
+
const Promiseany = (
|
|
6
|
+
Promise.any ||
|
|
7
|
+
function ($) {
|
|
8
|
+
return new Promise(function (D, E, A, L) {
|
|
9
|
+
A = [];
|
|
10
|
+
L = $.map(function ($, i) {
|
|
11
|
+
return Promise.resolve($).then(D, function (O) {
|
|
12
|
+
return ((A[i] = O), --L) || E({ errors: A });
|
|
13
|
+
});
|
|
14
|
+
}).length;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
).bind(Promise);
|
|
15
18
|
|
|
16
19
|
export const Link = ({
|
|
17
20
|
href,
|
|
@@ -23,7 +26,7 @@ export const Link = ({
|
|
|
23
26
|
let preloadPromise;
|
|
24
27
|
let url = href || to || '';
|
|
25
28
|
if (url.startsWith('#') && !onClick) {
|
|
26
|
-
onClick = ev => {
|
|
29
|
+
onClick = (ev) => {
|
|
27
30
|
ev.preventDefault(); // Don't use client-side routing
|
|
28
31
|
// Chrome does not jump until ALL network requests finish.
|
|
29
32
|
// We have to force it to...
|
|
@@ -37,8 +40,7 @@ export const Link = ({
|
|
|
37
40
|
}
|
|
38
41
|
if (url.includes('//') || url.startsWith('#')) {
|
|
39
42
|
return <a href={url} onClick={onClick} {...props} />;
|
|
40
|
-
}
|
|
41
|
-
else if (url.startsWith('/')) {
|
|
43
|
+
} else if (url.startsWith('/')) {
|
|
42
44
|
if (!process.env.PRERENDER) {
|
|
43
45
|
const Component = getAsyncComponent(url);
|
|
44
46
|
if (Component) {
|
|
@@ -48,14 +50,17 @@ export const Link = ({
|
|
|
48
50
|
onMouseOver();
|
|
49
51
|
};
|
|
50
52
|
// Wait up to an extra 500ms on click before showing 'Loading...'
|
|
51
|
-
props.onClick = ev => {
|
|
52
|
-
if (!(ev.ctrlKey || ev.metaKey)) {
|
|
53
|
+
props.onClick = (ev) => {
|
|
54
|
+
if (!(ev.ctrlKey || ev.metaKey)) {
|
|
55
|
+
// avoid disallowing cmnd/ctrl+click opening in new tab
|
|
53
56
|
ev.preventDefault();
|
|
54
|
-
document
|
|
57
|
+
document
|
|
58
|
+
.querySelector('.pf-v6-c-page__main-container')
|
|
59
|
+
.scrollTo({ top: 0 }); // scroll to top of page
|
|
55
60
|
if (typeof window !== 'undefined' && url !== location.pathname) {
|
|
56
61
|
Promiseany([
|
|
57
62
|
preloadPromise,
|
|
58
|
-
new Promise(res => setTimeout(res, 500))
|
|
63
|
+
new Promise((res) => setTimeout(res, 500)),
|
|
59
64
|
]).then(() => navigate(url));
|
|
60
65
|
}
|
|
61
66
|
}
|
|
@@ -65,4 +70,4 @@ export const Link = ({
|
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
return <ReachLink to={url} {...props} />;
|
|
68
|
-
}
|
|
73
|
+
};
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { convertToReactComponent } from "@patternfly/ast-helpers";
|
|
3
|
-
import {
|
|
3
|
+
import { Content } from "@patternfly/react-core";
|
|
4
4
|
|
|
5
5
|
// convert summary text from string to jsx, remove links
|
|
6
6
|
export const SummaryComponent = ({ id, itemsData }) => {
|
|
@@ -22,10 +22,10 @@ export const TextSummary = ({ id, itemsData }) => {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
|
-
<
|
|
26
|
-
<
|
|
25
|
+
<Content>
|
|
26
|
+
<Content component="p">
|
|
27
27
|
<SummaryComponent id={id} itemsData={itemsData} />
|
|
28
|
-
</
|
|
29
|
-
</
|
|
28
|
+
</Content>
|
|
29
|
+
</Content>
|
|
30
30
|
)
|
|
31
31
|
};
|