@patternfly/documentation-framework 6.0.0-alpha.4 → 6.0.0-alpha.41
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 +811 -0
- package/app.js +2 -5
- package/components/autoLinkHeader/autoLinkHeader.css +2 -2
- package/components/autoLinkHeader/autoLinkHeader.js +5 -4
- 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 +16 -16
- 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 +80 -28
- package/package.json +13 -20
- package/pages/404/404.css +2 -2
- package/pages/404/index.js +4 -2
- package/routes.js +3 -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 +28 -229
- package/templates/mdx.js +22 -16
- package/templates/patternfly-docs/patternfly-docs.source.js +8 -8
- package/versions.json +36 -11
- package/components/sideNav/sideNav.css +0 -21
- package/pages/global-css-variables.md +0 -109
- package/pages/img/component-variable-mapping.png +0 -0
package/templates/mdx.css
CHANGED
|
@@ -1,53 +1,55 @@
|
|
|
1
1
|
#ws-page-content-router {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
4
|
+
flex-grow: 1;
|
|
5
|
+
flex-shrink: 0;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
.ws-release-notes-toc {
|
|
8
|
-
margin-bottom: var(--pf-
|
|
9
|
+
margin-bottom: var(--pf-t--global--spacer--lg);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
.ws-release-notes-toc .pf-
|
|
12
|
+
.ws-release-notes-toc .pf-v6-c-card {
|
|
12
13
|
height: 100%;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
.ws-release-notes-toc .pf-
|
|
16
|
-
padding-bottom: var(--pf-
|
|
16
|
+
.ws-release-notes-toc .pf-v6-c-card__title {
|
|
17
|
+
padding-bottom: var(--pf-t--global--spacer--xs);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
.ws-release-notes-toc .pf-
|
|
20
|
+
.ws-release-notes-toc .pf-v6-c-card__title .pf-v6-c-title {
|
|
20
21
|
display: inline;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
.ws-release-notes-toc .pf-
|
|
24
|
-
margin-right: var(--pf-
|
|
24
|
+
.ws-release-notes-toc .pf-v6-c-card__title a {
|
|
25
|
+
margin-right: var(--pf-t--global--spacer--sm);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
.ws-release-notes-toc .pf-
|
|
28
|
+
.ws-release-notes-toc .pf-v6-c-card__title .pf-v6-c-badge {
|
|
28
29
|
vertical-align: text-top;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
.ws-release-notes-toc .pf-
|
|
32
|
+
.ws-release-notes-toc .pf-v6-c-card__body {
|
|
32
33
|
color: #72767B;
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
/* font-family: var(--pf-v6-global--FontFamily--text); */
|
|
35
|
+
/* font-size: var(--pf-v6-global--FontSize--md); */
|
|
35
36
|
font-weight: 400;
|
|
36
37
|
line-height: 1.5;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.ws-code {
|
|
40
41
|
display: inline-block;
|
|
41
|
-
background-color: var(--pf-
|
|
42
|
-
padding: 1px var(--pf-
|
|
43
|
-
|
|
42
|
+
background-color: var(--pf-t--global--background--color--secondary--default);
|
|
43
|
+
padding: 1px var(--pf-t--global--spacer--sm);
|
|
44
|
+
/* border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300); */
|
|
44
45
|
white-space: pre-wrap;
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
/* font-size: var(--pf-v6-global--FontSize--sm); */
|
|
47
|
+
/* font-family: var(--pf-v6-global--FontFamily--monospace); */
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
.ws-
|
|
50
|
-
|
|
50
|
+
.ws-image {
|
|
51
|
+
text-align: center;
|
|
52
|
+
width: "600px";
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
/* Table styles */
|
|
@@ -68,6 +70,12 @@
|
|
|
68
70
|
table-layout: fixed;
|
|
69
71
|
width: 100%;
|
|
70
72
|
}
|
|
73
|
+
|
|
74
|
+
.ws-image {
|
|
75
|
+
text-align: center;
|
|
76
|
+
width: "600px";
|
|
77
|
+
}
|
|
78
|
+
|
|
71
79
|
.ws-table td > code,
|
|
72
80
|
.ws-table th > code,
|
|
73
81
|
.ws-table tr > code {
|
|
@@ -77,226 +85,17 @@
|
|
|
77
85
|
vertical-align: top;
|
|
78
86
|
}
|
|
79
87
|
|
|
80
|
-
/*
|
|
81
|
-
* Copied from pf-v5-c-content.
|
|
82
|
-
*/
|
|
83
|
-
:root {
|
|
84
|
-
--pf-v5-c-content--MarginBottom: var(--pf-v5-global--spacer--md);
|
|
85
|
-
--pf-v5-c-content--LineHeight: var(--pf-v5-global--LineHeight--md);
|
|
86
|
-
--pf-v5-c-content--FontSize: var(--pf-v5-global--FontSize--md);
|
|
87
|
-
--pf-v5-c-content--FontWeight: var(--pf-v5-global--FontWeight--normal);
|
|
88
|
-
--pf-v5-c-content--Color: var(--pf-v5-global--Color--100);
|
|
89
|
-
--pf-v5-c-content--heading--FontFamily: var(--pf-v5-global--FontFamily--heading);
|
|
90
|
-
--pf-v5-c-content--h1--MarginTop: var(--pf-v5-global--spacer--lg);
|
|
91
|
-
--pf-v5-c-content--h1--MarginBottom: var(--pf-v5-global--spacer--sm);
|
|
92
|
-
--pf-v5-c-content--h1--LineHeight: var(--pf-v5-global--LineHeight--sm);
|
|
93
|
-
--pf-v5-c-content--h1--FontSize: var(--pf-v5-global--FontSize--2xl);
|
|
94
|
-
--pf-v5-c-content--h1--FontWeight: var(--pf-v5-global--FontWeight--normal);
|
|
95
|
-
--pf-v5-c-content--h2--MarginTop: var(--pf-v5-global--spacer--lg);
|
|
96
|
-
--pf-v5-c-content--h2--MarginBottom: var(--pf-v5-global--spacer--sm);
|
|
97
|
-
--pf-v5-c-content--h2--LineHeight: var(--pf-v5-global--LineHeight--sm);
|
|
98
|
-
--pf-v5-c-content--h2--FontSize: var(--pf-v5-global--FontSize--xl);
|
|
99
|
-
--pf-v5-c-content--h2--FontWeight: var(--pf-v5-global--FontWeight--normal);
|
|
100
|
-
--pf-v5-c-content--h3--MarginTop: var(--pf-v5-global--spacer--lg);
|
|
101
|
-
--pf-v5-c-content--h3--MarginBottom: var(--pf-v5-global--spacer--sm);
|
|
102
|
-
--pf-v5-c-content--h3--LineHeight: var(--pf-v5-global--LineHeight--md);
|
|
103
|
-
--pf-v5-c-content--h3--FontSize: var(--pf-v5-global--FontSize--lg);
|
|
104
|
-
--pf-v5-c-content--h3--FontWeight: var(--pf-v5-global--FontWeight--normal);
|
|
105
|
-
--pf-v5-c-content--h4--MarginTop: var(--pf-v5-global--spacer--lg);
|
|
106
|
-
--pf-v5-c-content--h4--MarginBottom: var(--pf-v5-global--spacer--sm);
|
|
107
|
-
--pf-v5-c-content--h4--LineHeight: var(--pf-v5-global--LineHeight--md);
|
|
108
|
-
--pf-v5-c-content--h4--FontSize: var(--pf-v5-global--FontSize--md);
|
|
109
|
-
--pf-v5-c-content--h4--FontWeight: var(--pf-v5-global--FontWeight--semi-bold);
|
|
110
|
-
--pf-v5-c-content--h5--MarginTop: var(--pf-v5-global--spacer--lg);
|
|
111
|
-
--pf-v5-c-content--h5--MarginBottom: var(--pf-v5-global--spacer--sm);
|
|
112
|
-
--pf-v5-c-content--h5--LineHeight: var(--pf-v5-global--LineHeight--md);
|
|
113
|
-
--pf-v5-c-content--h5--FontSize: var(--pf-v5-global--FontSize--md);
|
|
114
|
-
--pf-v5-c-content--h5--FontWeight: var(--pf-v5-global--FontWeight--semi-bold);
|
|
115
|
-
--pf-v5-c-content--h6--MarginTop: var(--pf-v5-global--spacer--lg);
|
|
116
|
-
--pf-v5-c-content--h6--MarginBottom: var(--pf-v5-global--spacer--sm);
|
|
117
|
-
--pf-v5-c-content--h6--LineHeight: var(--pf-v5-global--LineHeight--md);
|
|
118
|
-
--pf-v5-c-content--h6--FontSize: var(--pf-v5-global--FontSize--md);
|
|
119
|
-
--pf-v5-c-content--h6--FontWeight: var(--pf-v5-global--FontWeight--semi-bold);
|
|
120
|
-
--pf-v5-c-content--small--MarginBottom: var(--pf-v5-global--spacer--md);
|
|
121
|
-
--pf-v5-c-content--small--LineHeight: var(--pf-v5-global--LineHeight--md);
|
|
122
|
-
--pf-v5-c-content--small--FontSize: var(--pf-v5-global--FontSize--sm);
|
|
123
|
-
--pf-v5-c-content--small--Color: var(--pf-v5-global--Color--200);
|
|
124
|
-
--pf-v5-c-content--small--FontWeight: var(--pf-v5-global--FontWeight--semi-bold);
|
|
125
|
-
--pf-v5-c-content--a--Color: var(--pf-v5-global--link--Color);
|
|
126
|
-
--pf-v5-c-content--a--TextDecoration: var(--pf-v5-global--link--TextDecoration);
|
|
127
|
-
--pf-v5-c-content--a--hover--Color: var(--pf-v5-global--link--Color--hover);
|
|
128
|
-
--pf-v5-c-content--a--hover--TextDecoration: var(--pf-v5-global--link--TextDecoration--hover);
|
|
129
|
-
--pf-v5-c-content--blockquote--PaddingTop: var(--pf-v5-global--spacer--md);
|
|
130
|
-
--pf-v5-c-content--blockquote--PaddingRight: var(--pf-v5-global--spacer--md);
|
|
131
|
-
--pf-v5-c-content--blockquote--PaddingBottom: var(--pf-v5-global--spacer--md);
|
|
132
|
-
--pf-v5-c-content--blockquote--PaddingLeft: var(--pf-v5-global--spacer--md);
|
|
133
|
-
--pf-v5-c-content--blockquote--FontWeight: var(--pf-v5-global--FontWeight--light);
|
|
134
|
-
--pf-v5-c-content--blockquote--Color: var(--pf-v5-global--Color--200);
|
|
135
|
-
--pf-v5-c-content--blockquote--BorderLeftColor: var(--pf-v5-global--BorderColor--100);
|
|
136
|
-
--pf-v5-c-content--blockquote--BorderLeftWidth: var(--pf-v5-global--BorderWidth--lg);
|
|
137
|
-
--pf-v5-c-content--ol--PaddingLeft: var(--pf-v5-global--spacer--lg);
|
|
138
|
-
--pf-v5-c-content--ol--MarginTop: var(--pf-v5-global--spacer--md);
|
|
139
|
-
--pf-v5-c-content--ol--MarginLeft: var(--pf-v5-global--spacer--lg);
|
|
140
|
-
--pf-v5-c-content--ol--nested--MarginTop: var(--pf-v5-global--spacer--sm);
|
|
141
|
-
--pf-v5-c-content--ol--nested--MarginLeft: var(--pf-v5-global--spacer--sm);
|
|
142
|
-
--pf-v5-c-content--ul--PaddingLeft: var(--pf-v5-global--spacer--lg);
|
|
143
|
-
--pf-v5-c-content--ul--MarginTop: var(--pf-v5-global--spacer--md);
|
|
144
|
-
--pf-v5-c-content--ul--MarginLeft: var(--pf-v5-global--spacer--lg);
|
|
145
|
-
--pf-v5-c-content--ul--nested--MarginTop: var(--pf-v5-global--spacer--sm);
|
|
146
|
-
--pf-v5-c-content--ul--nested--MarginLeft: var(--pf-v5-global--spacer--sm);
|
|
147
|
-
--pf-v5-c-content--ul--ListStyle: var(--pf-v5-global--ListStyle);
|
|
148
|
-
--pf-v5-c-content--li--MarginTop: var(--pf-v5-global--spacer--sm);
|
|
149
|
-
--pf-v5-c-content--dl--ColumnGap: var(--pf-v5-global--spacer--2xl);
|
|
150
|
-
--pf-v5-c-content--dl--RowGap: var(--pf-v5-global--spacer--md);
|
|
151
|
-
--pf-v5-c-content--dt--FontWeight: var(--pf-v5-global--FontWeight--semi-bold);
|
|
152
|
-
--pf-v5-c-content--dt--MarginTop: var(--pf-v5-global--spacer--md);
|
|
153
|
-
--pf-v5-c-content--dt--sm--MarginTop: 0;
|
|
154
|
-
--pf-v5-c-content--hr--Height: var(--pf-v5-global--BorderWidth--sm);
|
|
155
|
-
--pf-v5-c-content--hr--BackgroundColor: var(--pf-v5-global--BorderColor--100);
|
|
156
|
-
font-size: var(--pf-v5-c-content--FontSize);
|
|
157
|
-
line-height: var(--pf-v5-c-content--LineHeight);
|
|
158
|
-
color: var(--pf-v5-c-content--Color); }
|
|
159
|
-
.ws-li + li {
|
|
160
|
-
margin-top: var(--pf-v5-c-content--li--MarginTop); }
|
|
161
|
-
.ws-p:not(:last-child),
|
|
162
|
-
.ws-dl:not(:last-child),
|
|
163
|
-
.ws-ol:not(:last-child),
|
|
164
|
-
.ws-ul:not(:last-child),
|
|
165
|
-
.ws-blockquote:not(:last-child),
|
|
166
|
-
.ws-small:not(:last-child),
|
|
167
|
-
.ws-pre:not(:last-child),
|
|
168
|
-
.ws-hr:not(:last-child),
|
|
169
|
-
.ws-table:not(:last-child),
|
|
170
|
-
.ws-content-table:not(:last-child) {
|
|
171
|
-
margin-bottom: var(--pf-v5-c-content--MarginBottom); }
|
|
172
|
-
.ws-h1,
|
|
173
|
-
.ws-h2,
|
|
174
|
-
.ws-h3,
|
|
175
|
-
.ws-h4,
|
|
176
|
-
.ws-h5,
|
|
177
|
-
.ws-h6 {
|
|
178
|
-
margin: 0;
|
|
179
|
-
font-family: var(--pf-v5-c-content--heading--FontFamily); }
|
|
180
|
-
.ws-ol,
|
|
181
|
-
.ws-ul {
|
|
182
|
-
margin: 0; }
|
|
183
|
-
.ws-h1 {
|
|
184
|
-
margin-bottom: var(--pf-v5-c-content--h1--MarginBottom);
|
|
185
|
-
font-size: var(--pf-v5-c-content--h1--FontSize);
|
|
186
|
-
font-weight: var(--pf-v5-c-content--h1--FontWeight);
|
|
187
|
-
line-height: var(--pf-v5-c-content--h1--LineHeight); }
|
|
188
|
-
.ws-h1:not(:first-child) {
|
|
189
|
-
margin-top: var(--pf-v5-c-content--h1--MarginTop); }
|
|
190
|
-
.ws-h2 {
|
|
191
|
-
margin-bottom: var(--pf-v5-c-content--h2--MarginBottom);
|
|
192
|
-
font-size: var(--pf-v5-c-content--h2--FontSize);
|
|
193
|
-
font-weight: var(--pf-v5-c-content--h2--FontWeight);
|
|
194
|
-
line-height: var(--pf-v5-c-content--h2--LineHeight);
|
|
195
|
-
margin-top: var(--pf-v5-c-content--h2--MarginTop); }
|
|
196
|
-
.ws-h3 {
|
|
197
|
-
margin-bottom: var(--pf-v5-c-content--h3--MarginBottom);
|
|
198
|
-
font-size: var(--pf-v5-c-content--h3--FontSize);
|
|
199
|
-
font-weight: var(--pf-v5-c-content--h3--FontWeight);
|
|
200
|
-
line-height: var(--pf-v5-c-content--h3--LineHeight); }
|
|
201
|
-
.ws-h3:not(:first-child) {
|
|
202
|
-
margin-top: var(--pf-v5-c-content--h3--MarginTop); }
|
|
203
|
-
.ws-h4 {
|
|
204
|
-
margin-bottom: var(--pf-v5-c-content--h4--MarginBottom);
|
|
205
|
-
font-size: var(--pf-v5-c-content--h4--FontSize);
|
|
206
|
-
font-weight: var(--pf-v5-c-content--h4--FontWeight);
|
|
207
|
-
line-height: var(--pf-v5-c-content--h4--LineHeight); }
|
|
208
|
-
.ws-h4:not(:first-child) {
|
|
209
|
-
margin-top: var(--pf-v5-c-content--h4--MarginTop); }
|
|
210
|
-
.ws-h5 {
|
|
211
|
-
margin-bottom: var(--pf-v5-c-content--h5--MarginBottom);
|
|
212
|
-
font-size: var(--pf-v5-c-content--h5--FontSize);
|
|
213
|
-
font-weight: var(--pf-v5-c-content--h5--FontWeight);
|
|
214
|
-
line-height: var(--pf-v5-c-content--h5--LineHeight); }
|
|
215
|
-
.ws-h5:not(:first-child) {
|
|
216
|
-
margin-top: var(--pf-v5-c-content--h5--MarginTop); }
|
|
217
|
-
.ws-h6 {
|
|
218
|
-
margin-bottom: var(--pf-v5-c-content--h6--MarginBottom);
|
|
219
|
-
font-size: var(--pf-v5-c-content--h6--FontSize);
|
|
220
|
-
font-weight: var(--pf-v5-c-content--h6--FontWeight);
|
|
221
|
-
line-height: var(--pf-v5-c-content--h6--LineHeight); }
|
|
222
|
-
.ws-h6:not(:first-child) {
|
|
223
|
-
margin-top: var(--pf-v5-c-content--h6--MarginTop); }
|
|
224
|
-
.ws-small {
|
|
225
|
-
display: block;
|
|
226
|
-
font-size: var(--pf-v5-c-content--small--FontSize);
|
|
227
|
-
line-height: var(--pf-v5-c-content--small--LineHeight);
|
|
228
|
-
color: var(--pf-v5-c-content--small--Color); }
|
|
229
|
-
.ws-small:not(:last-child) {
|
|
230
|
-
margin-bottom: var(--pf-v5-c-content--small--MarginBottom); }
|
|
231
|
-
.ws-blockquote {
|
|
232
|
-
padding: var(--pf-v5-c-content--blockquote--PaddingTop) var(--pf-v5-c-content--blockquote--PaddingRight) var(--pf-v5-c-content--blockquote--PaddingBottom) var(--pf-v5-c-content--blockquote--PaddingLeft);
|
|
233
|
-
font-weight: var(--pf-v5-c-content--blockquote--FontWeight);
|
|
234
|
-
color: var(--pf-v5-c-content--blockquote--Color);
|
|
235
|
-
border-left: var(--pf-v5-c-content--blockquote--BorderLeftWidth) solid var(--pf-v5-c-content--blockquote--BorderLeftColor); }
|
|
236
|
-
.ws-hr {
|
|
237
|
-
height: var(--pf-v5-c-content--hr--Height);
|
|
238
|
-
background-color: var(--pf-v5-c-content--hr--BackgroundColor);
|
|
239
|
-
border: none; }
|
|
240
|
-
.ws-ol {
|
|
241
|
-
padding-left: var(--pf-v5-c-content--ol--PaddingLeft);
|
|
242
|
-
margin-top: var(--pf-v5-c-content--ol--MarginTop);
|
|
243
|
-
margin-left: var(--pf-v5-c-content--ol--MarginLeft); }
|
|
244
|
-
.ws-ol ul {
|
|
245
|
-
--pf-v5-c-content--ul--MarginTop: var(--pf-v5-c-content--ul--nested--MarginTop);
|
|
246
|
-
--pf-v5-c-content--ul--MarginLeft: var(--pf-v5-c-content--ul--nested--MarginLeft); }
|
|
247
|
-
.ws-ol ol {
|
|
248
|
-
--pf-v5-c-content--ol--MarginTop: var(--pf-v5-c-content--ol--nested--MarginTop);
|
|
249
|
-
--pf-v5-c-content--ol--MarginLeft: var(--pf-v5-c-content--ol--nested--MarginLeft); }
|
|
250
|
-
.ws-ul {
|
|
251
|
-
padding-left: var(--pf-v5-c-content--ul--PaddingLeft);
|
|
252
|
-
margin-top: var(--pf-v5-c-content--ul--MarginTop);
|
|
253
|
-
margin-left: var(--pf-v5-c-content--ul--MarginLeft);
|
|
254
|
-
list-style: var(--pf-v5-c-content--ul--ListStyle); }
|
|
255
|
-
.ws-ul ul {
|
|
256
|
-
--pf-v5-c-content--ul--MarginTop: var(--pf-v5-c-content--ul--nested--MarginTop);
|
|
257
|
-
--pf-v5-c-content--ul--MarginLeft: var(--pf-v5-c-content--ul--nested--MarginLeft); }
|
|
258
|
-
.ws-ul ol {
|
|
259
|
-
--pf-v5-c-content--ol--MarginTop: var(--pf-v5-c-content--ol--nested--MarginTop);
|
|
260
|
-
--pf-v5-c-content--ol--MarginLeft: var(--pf-v5-c-content--ol--nested--MarginLeft); }
|
|
261
|
-
.ws-dl {
|
|
262
|
-
display: grid;
|
|
263
|
-
grid-template-columns: 1fr; }
|
|
264
|
-
@media screen and (min-width: 576px) {
|
|
265
|
-
.ws-dl {
|
|
266
|
-
grid-template: auto / auto 1fr;
|
|
267
|
-
grid-column-gap: var(--pf-v5-c-content--dl--ColumnGap);
|
|
268
|
-
grid-row-gap: var(--pf-v5-c-content--dl--RowGap); } }
|
|
269
|
-
.ws-dt {
|
|
270
|
-
font-weight: var(--pf-v5-c-content--dt--FontWeight); }
|
|
271
|
-
.ws-dt:not(:first-child) {
|
|
272
|
-
margin-top: var(--pf-v5-c-content--dt--MarginTop); }
|
|
273
|
-
@media screen and (min-width: 576px) {
|
|
274
|
-
.ws-dt:not(:first-child) {
|
|
275
|
-
--pf-v5-c-content--dt--MarginTop: var(--pf-v5-c-content--dt--sm--MarginTop); } }
|
|
276
|
-
@media screen and (min-width: 576px) {
|
|
277
|
-
.ws-dt {
|
|
278
|
-
grid-column: 1; } }
|
|
279
|
-
@media screen and (min-width: 576px) {
|
|
280
|
-
.ws-dd {
|
|
281
|
-
grid-column: 2; } }
|
|
282
|
-
|
|
283
88
|
@media screen and (max-width: 1450px) {
|
|
284
89
|
.ws-mdx-child-template {
|
|
285
90
|
flex-direction: column;
|
|
286
91
|
}
|
|
287
92
|
}
|
|
288
93
|
|
|
289
|
-
.ws-mdx-content {
|
|
290
|
-
flex-grow: 1;
|
|
291
|
-
min-width: 0;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
94
|
/* Design asked for this. A nice side effect is that the TOC doesn't "jump" between pages */
|
|
295
95
|
.ws-mdx-content-content {
|
|
296
96
|
max-width: 832px;
|
|
297
97
|
}
|
|
298
98
|
|
|
299
|
-
/* Overlay the footer */
|
|
300
99
|
.ws-back-to-top {
|
|
301
|
-
z-index:
|
|
100
|
+
z-index: var(--pf-t--global--z-index--2xl);
|
|
302
101
|
}
|
package/templates/mdx.js
CHANGED
|
@@ -23,6 +23,7 @@ const MDXChildTemplate = ({
|
|
|
23
23
|
optIn,
|
|
24
24
|
beta,
|
|
25
25
|
deprecated,
|
|
26
|
+
template,
|
|
26
27
|
newImplementationLink,
|
|
27
28
|
functionDocumentation = []
|
|
28
29
|
} = Component.getPageData();
|
|
@@ -70,7 +71,7 @@ const MDXChildTemplate = ({
|
|
|
70
71
|
)}
|
|
71
72
|
{beta && (
|
|
72
73
|
<InlineAlert title="Beta feature">
|
|
73
|
-
This beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the <a href="https://forum.patternfly.org/">PatternFly forum</a> or via <a href="//slack.patternfly.org/" target="_blank" rel="noopener noreferrer">Slack</a>. To learn more about the process, visit our <Link to="/get-started/about#beta-components">about page</Link> or our <a href="https://github.com/patternfly/patternfly-org/tree/main/beta-component-promotion">Beta components</a> page on GitHub.
|
|
74
|
+
This beta component is currently under review and is still open for further evolution. It is available for use in product. Beta components are considered for promotion on a quarterly basis. Please join in and give us your feedback or submit any questions on the <a href="https://forum.patternfly.org/">PatternFly forum</a> or via <a href="//slack.patternfly.org/" target="_blank" rel="noopener noreferrer">Slack</a>. To learn more about the process, visit our <Link to="/get-started/about-patternfly#beta-components">about page</Link> or our <a href="https://github.com/patternfly/patternfly-org/tree/main/beta-component-promotion">Beta components</a> page on GitHub.
|
|
74
75
|
</InlineAlert>
|
|
75
76
|
)}
|
|
76
77
|
{(deprecated || source === 'react-deprecated' || source === 'html-deprecated') && (
|
|
@@ -81,24 +82,29 @@ const MDXChildTemplate = ({
|
|
|
81
82
|
You can find the <Link to={newImplementationLink}>updated implementation here</Link>.
|
|
82
83
|
</React.Fragment>
|
|
83
84
|
)}
|
|
84
|
-
{' '}To learn more about the process, visit our <Link to="/get-started/about#
|
|
85
|
+
{' '}To learn more about the process, visit our <Link to="/get-started/about-patternfly#patternfly-release-cadence">about page</Link>.
|
|
86
|
+
</InlineAlert>
|
|
87
|
+
)}
|
|
88
|
+
{(template || source === 'react-template') && (
|
|
89
|
+
<InlineAlert title="Templates" variant="info">
|
|
90
|
+
{`This page showcases templates for the ${id.toLowerCase()} component. A template combines a component with logic that supports a specific use case, with a streamlined API that offers additional, limited customization.`}
|
|
85
91
|
</InlineAlert>
|
|
86
92
|
)}
|
|
87
93
|
</React.Fragment>
|
|
88
94
|
);
|
|
89
95
|
// Create dynamic component for @reach/router
|
|
90
96
|
const ChildComponent = () => (
|
|
91
|
-
<div className="pf-
|
|
97
|
+
<div className="pf-v6-u-display-flex ws-mdx-child-template">
|
|
92
98
|
{toc.length > 1 && (
|
|
93
99
|
<TableOfContents items={toc} />
|
|
94
100
|
)}
|
|
95
|
-
<div
|
|
101
|
+
<div>
|
|
96
102
|
<div className={innerContentWrapperClass()}>
|
|
97
103
|
{InlineAlerts}
|
|
98
104
|
<Component />
|
|
99
105
|
{functionDocumentation.length > 0 && (
|
|
100
106
|
<React.Fragment>
|
|
101
|
-
<AutoLinkHeader size="h2" className="
|
|
107
|
+
<AutoLinkHeader size="h2" className="pf-v6-c-content--h2" id="functions">
|
|
102
108
|
Functions
|
|
103
109
|
</AutoLinkHeader>
|
|
104
110
|
<FunctionsTable functionDescriptions={functionDocumentation}/>
|
|
@@ -106,7 +112,7 @@ const MDXChildTemplate = ({
|
|
|
106
112
|
)}
|
|
107
113
|
{propsTitle && (
|
|
108
114
|
<React.Fragment>
|
|
109
|
-
<AutoLinkHeader size="h2" className="
|
|
115
|
+
<AutoLinkHeader size="h2" className="pf-v6-c-content--h2" id="props">
|
|
110
116
|
{propsTitle}
|
|
111
117
|
</AutoLinkHeader>
|
|
112
118
|
{propComponents.map(component => (
|
|
@@ -122,7 +128,7 @@ const MDXChildTemplate = ({
|
|
|
122
128
|
)}
|
|
123
129
|
{cssPrefix.length > 0 && (
|
|
124
130
|
<React.Fragment>
|
|
125
|
-
<AutoLinkHeader size="h2" className="
|
|
131
|
+
<AutoLinkHeader size="h2" className="pf-v6-c-content--h2" id="css-variables">
|
|
126
132
|
{cssVarsTitle}
|
|
127
133
|
</AutoLinkHeader>
|
|
128
134
|
{cssPrefix.map((prefix, index) => (
|
|
@@ -152,7 +158,7 @@ export const MDXTemplate = ({
|
|
|
152
158
|
componentsData
|
|
153
159
|
}) => {
|
|
154
160
|
const isDeprecated = sources.some(source => source.source === "react-deprecated" || source.source === "html-deprecated") && !sources.some(source => source.source === "react" || source.source === "html");
|
|
155
|
-
const isBeta = sources.some(source => source.beta)
|
|
161
|
+
const isBeta = sources.some(source => source.beta && source.source !== 'react-next' && source.source !== 'react-templates');
|
|
156
162
|
const isDemo = sources.some(source => source.source === "react-demos" || source.source === "html-demos") && !sources.some(source => source.source === "react" || source.source === "html");
|
|
157
163
|
// Build obj mapping source names to text displayed on tabs
|
|
158
164
|
const tabNames = sources.reduce((acc, curSrc) => {
|
|
@@ -264,7 +270,7 @@ export const MDXTemplate = ({
|
|
|
264
270
|
{isDeprecated && (
|
|
265
271
|
<FlexItem spacer={{ default: 'spacerSm' }}>
|
|
266
272
|
<Tooltip content="Deprecated components are available for use but are no longer being maintained or enhanced.">
|
|
267
|
-
<Button
|
|
273
|
+
<Button variant="plain" hasNoPadding>
|
|
268
274
|
<Label color="grey">Deprecated</Label>
|
|
269
275
|
</Button>
|
|
270
276
|
</Tooltip>
|
|
@@ -273,7 +279,7 @@ export const MDXTemplate = ({
|
|
|
273
279
|
{isDemo && (
|
|
274
280
|
<FlexItem spacer={{ default: 'spacerSm' }}>
|
|
275
281
|
<Tooltip content="Demos show how multiple components can be used in a single design.">
|
|
276
|
-
<Button
|
|
282
|
+
<Button variant="plain" hasNoPadding>
|
|
277
283
|
<Label color="purple">Demo</Label>
|
|
278
284
|
</Button>
|
|
279
285
|
</Tooltip>
|
|
@@ -282,7 +288,7 @@ export const MDXTemplate = ({
|
|
|
282
288
|
{isBeta && (
|
|
283
289
|
<FlexItem spacer={{ default: 'spacerSm' }}>
|
|
284
290
|
<Tooltip content="This beta component is currently under review and is still open for further evolution.">
|
|
285
|
-
<Button
|
|
291
|
+
<Button variant="plain" hasNoPadding>
|
|
286
292
|
<Label color="blue">Beta</Label>
|
|
287
293
|
</Button>
|
|
288
294
|
</Tooltip>
|
|
@@ -296,19 +302,19 @@ export const MDXTemplate = ({
|
|
|
296
302
|
</PageSection>
|
|
297
303
|
{ showTabs && (
|
|
298
304
|
<PageSection id="ws-sticky-nav-tabs" stickyOnBreakpoint={{'default':'top'}} type="tabs">
|
|
299
|
-
<div className="pf-
|
|
300
|
-
<ul className="pf-
|
|
305
|
+
<div className="pf-v6-c-tabs pf-m-page-insets pf-m-no-border-bottom">
|
|
306
|
+
<ul className="pf-v6-c-tabs__list">
|
|
301
307
|
{sourceKeys.map((source, index) => (
|
|
302
308
|
<li
|
|
303
309
|
key={source}
|
|
304
310
|
className={css(
|
|
305
|
-
'pf-
|
|
311
|
+
'pf-v6-c-tabs__item',
|
|
306
312
|
activeSource === source && 'pf-m-current'
|
|
307
313
|
)}
|
|
308
314
|
// Send clicked tab name for analytics
|
|
309
315
|
onClick={() => trackEvent('tab_click', 'click_event', source.toUpperCase())}
|
|
310
316
|
>
|
|
311
|
-
<Link className="pf-
|
|
317
|
+
<Link className="pf-v6-c-tabs__link" to={`${path}${index === 0 ? '' : '/' + source}`}>
|
|
312
318
|
{tabNames[source]}
|
|
313
319
|
</Link>
|
|
314
320
|
</li>
|
|
@@ -320,7 +326,7 @@ export const MDXTemplate = ({
|
|
|
320
326
|
<PageSection id="main-content" isFilled className="pf-m-light-100">
|
|
321
327
|
{isSinglePage && <MDXChildTemplate {...sources[0]} id={id}/>}
|
|
322
328
|
{!isSinglePage && (
|
|
323
|
-
<Router className="pf-
|
|
329
|
+
<Router className="pf-v6-u-h-100" primary={false}>
|
|
324
330
|
{sources
|
|
325
331
|
.map((source, index) => {
|
|
326
332
|
source.index = index;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const path = require(
|
|
1
|
+
const path = require("path");
|
|
2
2
|
|
|
3
3
|
module.exports = (sourceMD, sourceProps) => {
|
|
4
4
|
/** Parse source content for props so that we can display them. You must source props before sourcing the markdown
|
|
5
5
|
files, otherwise the props table won't be rendered.
|
|
6
6
|
*/
|
|
7
|
-
const propsIgnore = [
|
|
8
|
-
const extensionPath = path.join(__dirname,
|
|
9
|
-
sourceProps(path.join(extensionPath,
|
|
7
|
+
const propsIgnore = ["/**/*.test.tsx", "/**/examples/*.tsx"];
|
|
8
|
+
const extensionPath = path.join(__dirname, "../src");
|
|
9
|
+
sourceProps(path.join(extensionPath, "/**/*.tsx"), propsIgnore);
|
|
10
10
|
|
|
11
|
-
// Parse md files
|
|
12
|
-
const contentBase = path.join(__dirname,
|
|
13
|
-
sourceMD(path.join(contentBase,
|
|
11
|
+
// Parse md files
|
|
12
|
+
const contentBase = path.join(__dirname, "./content");
|
|
13
|
+
sourceMD(path.join(contentBase, "extensions/**/*.md"), "extensions");
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
If you want to parse content from node_modules instead of providing a relative/absolute path,
|
|
@@ -23,4 +23,4 @@ module.exports = (sourceMD, sourceProps) => {
|
|
|
23
23
|
sourceMD(path.join(extensionPath, '../patternfly-docs/**\/demos/*.md'), 'react-demos');
|
|
24
24
|
sourceMD(path.join(extensionPath, '../patternfly-docs/**\/design-guidelines/*.md'), 'design-guidelines');
|
|
25
25
|
*/
|
|
26
|
-
}
|
|
26
|
+
};
|
package/versions.json
CHANGED
|
@@ -5,24 +5,49 @@
|
|
|
5
5
|
"date": "2023-12-03",
|
|
6
6
|
"latest": true,
|
|
7
7
|
"versions": {
|
|
8
|
-
"@patternfly/patternfly": "6.0.0-alpha.
|
|
8
|
+
"@patternfly/patternfly": "6.0.0-alpha.139",
|
|
9
9
|
"@patternfly/react-catalog-view-extension": "5.0.0",
|
|
10
|
-
"@patternfly/react-charts": "8.0.0-alpha.
|
|
11
|
-
"@patternfly/react-code-editor": "6.0.0-alpha.
|
|
12
|
-
"@patternfly/react-core": "6.0.0-alpha.
|
|
13
|
-
"@patternfly/react-
|
|
10
|
+
"@patternfly/react-charts": "8.0.0-alpha.23",
|
|
11
|
+
"@patternfly/react-code-editor": "6.0.0-alpha.61",
|
|
12
|
+
"@patternfly/react-core": "6.0.0-alpha.61",
|
|
13
|
+
"@patternfly/react-drag-drop": "6.0.0-alpha.43",
|
|
14
|
+
"@patternfly/react-icons": "6.0.0-alpha.23",
|
|
14
15
|
"@patternfly/react-log-viewer": "5.0.0",
|
|
15
|
-
"@patternfly/react-styles": "6.0.0-alpha.
|
|
16
|
-
"@patternfly/react-table": "6.0.0-alpha.
|
|
17
|
-
"@patternfly/react-tokens": "
|
|
16
|
+
"@patternfly/react-styles": "6.0.0-alpha.23",
|
|
17
|
+
"@patternfly/react-table": "6.0.0-alpha.61",
|
|
18
|
+
"@patternfly/react-tokens": "6.0.0-alpha.23",
|
|
18
19
|
"@patternfly/react-topology": "5.1.0",
|
|
19
20
|
"@patternfly/quickstarts": "5.1.0",
|
|
20
|
-
"@patternfly/react-virtualized-extension": "5.1.0"
|
|
21
|
+
"@patternfly/react-virtualized-extension": "5.1.0",
|
|
22
|
+
"@patternfly/react-templates": "^6.0.0-alpha.11"
|
|
21
23
|
}
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
+
},{
|
|
25
|
+
"name": "5.2.0",
|
|
26
|
+
"date": "2024-01-17",
|
|
27
|
+
"hidden": true,
|
|
28
|
+
"versions": {
|
|
29
|
+
"@patternfly/patternfly": "5.2.0",
|
|
30
|
+
"@patternfly/react-charts": "7.2.0",
|
|
31
|
+
"@patternfly/react-code-editor": "5.2.0",
|
|
32
|
+
"@patternfly/react-core": "5.2.0",
|
|
33
|
+
"@patternfly/react-icons": "5.2.0",
|
|
34
|
+
"@patternfly/react-styles": "5.2.0",
|
|
35
|
+
"@patternfly/react-table": "5.2.0",
|
|
36
|
+
"@patternfly/react-drag-drop": "5.2.0",
|
|
37
|
+
"@patternfly/react-tokens": "5.2.0",
|
|
38
|
+
"@patternfly/react-catalog-view-extension": "5.0.0",
|
|
39
|
+
"@patternfly/react-component-groups": "5.1.0",
|
|
40
|
+
"@patternfly/react-console": "5.0.0",
|
|
41
|
+
"@patternfly/react-log-viewer": "5.2.0",
|
|
42
|
+
"@patternfly/react-topology": "5.2.1",
|
|
43
|
+
"@patternfly/react-user-feedback": "5.0.0",
|
|
44
|
+
"@patternfly/react-virtualized-extension": "5.0.0",
|
|
45
|
+
"@patternfly/quickstarts": "5.0.0"
|
|
46
|
+
}
|
|
47
|
+
},{
|
|
24
48
|
"name": "5.1.0",
|
|
25
49
|
"date": "2023-10-06",
|
|
50
|
+
"hidden": true,
|
|
26
51
|
"versions": {
|
|
27
52
|
"@patternfly/patternfly": "5.1.0",
|
|
28
53
|
"@patternfly/react-charts": "7.1.1",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.ws-page-sidebar .pf-v5-c-nav {
|
|
2
|
-
--pf-v5-c-nav__link--before--BorderBottomWidth: 0;
|
|
3
|
-
--pf-v5-c-nav--m-light__link--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
|
|
4
|
-
--pf-v5-c-nav--m-light__link--focus--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
|
|
5
|
-
--pf-v5-c-nav--m-light__link--m-current--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
|
|
6
|
-
--pf-v5-c-nav--m-light__link--active--BackgroundColor: var(--pf-v5-global--BackgroundColor--light-200);
|
|
7
|
-
--pf-v5-c-nav__link--m-current--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ws-side-nav-list .pf-v5-c-nav__item.pf-m-expandable::before {
|
|
11
|
-
border-bottom: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.pf-v5-c-nav__subsection-title {
|
|
15
|
-
color: var(--ws-toc-link--Color, var(--pf-v5-global--Color--300));
|
|
16
|
-
font-size: var(--pf-v5-global--FontSize--sm);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
#ws-sticky-nav-tabs {
|
|
20
|
-
z-index: var(--pf-v5-global--ZIndex--2xl);
|
|
21
|
-
}
|