@patternfly/documentation-framework 2.0.0-alpha.6 → 2.0.0-alpha.60

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +504 -0
  2. package/app.js +12 -12
  3. package/components/autoLinkHeader/autoLinkHeader.css +2 -2
  4. package/components/autoLinkHeader/autoLinkHeader.js +18 -13
  5. package/components/cssVariables/cssSearch.js +3 -4
  6. package/components/cssVariables/cssVariables.css +4 -4
  7. package/components/cssVariables/cssVariables.js +83 -84
  8. package/components/example/example.css +29 -29
  9. package/components/example/example.js +34 -6
  10. package/components/footer/footer.css +16 -16
  11. package/components/footer/footer.js +13 -13
  12. package/components/functionsTable/functionsTable.js +57 -0
  13. package/components/gdprBanner/gdprBanner.css +2 -2
  14. package/components/gdprBanner/gdprBanner.js +3 -3
  15. package/components/inlineAlert/inlineAlert.js +1 -1
  16. package/components/propsTable/propsTable.js +85 -79
  17. package/components/sectionGallery/TextSummary.js +31 -0
  18. package/components/sectionGallery/sectionDataListLayout.js +49 -0
  19. package/components/sectionGallery/sectionGallery.css +53 -0
  20. package/components/sectionGallery/sectionGallery.js +76 -0
  21. package/components/sectionGallery/sectionGalleryLayout.js +39 -0
  22. package/components/sectionGallery/sectionGalleryToolbar.js +38 -0
  23. package/components/sectionGallery/sectionGalleryWrapper.js +105 -0
  24. package/components/sideNav/sideNav.css +12 -12
  25. package/components/sideNav/sideNav.js +41 -13
  26. package/components/tableOfContents/tableOfContents.css +17 -17
  27. package/helpers/codesandbox.js +2 -2
  28. package/helpers/getTitle.js +2 -2
  29. package/layouts/sideNavLayout/sideNavLayout.css +7 -11
  30. package/layouts/sideNavLayout/sideNavLayout.js +57 -40
  31. package/package.json +28 -25
  32. package/pages/404/404.css +2 -2
  33. package/pages/404/index.js +1 -1
  34. package/pages/global-css-variables.md +16 -16
  35. package/routes.js +20 -8
  36. package/scripts/cli/build.js +6 -0
  37. package/scripts/cli/cli.js +2 -0
  38. package/scripts/cli/generate.js +2 -2
  39. package/scripts/cli/start.js +6 -8
  40. package/scripts/md/parseMD.js +46 -11
  41. package/scripts/md/styled-tags.js +8 -4
  42. package/scripts/tsDocgen.js +119 -91
  43. package/scripts/typeDocGen.js +209 -0
  44. package/scripts/webpack/webpack.base.config.js +34 -32
  45. package/scripts/webpack/webpack.client.config.js +11 -8
  46. package/scripts/webpack/webpack.server.config.js +8 -5
  47. package/scripts/writeScreenshots.js +3 -3
  48. package/templates/html.ejs +2 -4
  49. package/templates/mdx.css +156 -161
  50. package/templates/mdx.js +122 -51
  51. package/templates/patternfly-docs/content/extensions/extension/design-guidelines/design-guidelines.md +2 -0
  52. package/templates/patternfly-docs/content/extensions/extension/examples/basic.md +2 -0
  53. package/versions.json +29 -9
  54. package/components/topNav/topNav.css +0 -30
  55. package/pages/red-hat-font.md +0 -40
package/CHANGELOG.md CHANGED
@@ -3,6 +3,510 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 2.0.0-alpha.60 (2023-06-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **docs:** fixed gallery styles affecting width, font vars ([#3596](https://github.com/patternfly/patternfly-org/issues/3596)) ([04f1b54](https://github.com/patternfly/patternfly-org/commit/04f1b54f947e1afca88926d8f371d3bf37a70e25))
12
+
13
+
14
+
15
+
16
+
17
+ # 2.0.0-alpha.59 (2023-06-13)
18
+
19
+ **Note:** Version bump only for package @patternfly/documentation-framework
20
+
21
+
22
+
23
+
24
+
25
+ # 2.0.0-alpha.58 (2023-06-13)
26
+
27
+ **Note:** Version bump only for package @patternfly/documentation-framework
28
+
29
+
30
+
31
+
32
+
33
+ # 2.0.0-alpha.57 (2023-06-12)
34
+
35
+ **Note:** Version bump only for package @patternfly/documentation-framework
36
+
37
+
38
+
39
+
40
+
41
+ # 2.0.0-alpha.56 (2023-06-12)
42
+
43
+
44
+ ### Features
45
+
46
+ * turn on dark switcher, remove extra css ([#3519](https://github.com/patternfly/patternfly-org/issues/3519)) ([0059891](https://github.com/patternfly/patternfly-org/commit/005989134d6a962189690a49faccb8dfc6e3de77))
47
+
48
+
49
+
50
+
51
+
52
+ # 2.0.0-alpha.55 (2023-06-12)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * **whitespace:** whitespace change to push out new release ([84d1bb3](https://github.com/patternfly/patternfly-org/commit/84d1bb3ccc79a9ef2c4cf5fb93b19fbb719b6078))
58
+
59
+
60
+
61
+
62
+
63
+ # 2.0.0-alpha.54 (2023-06-09)
64
+
65
+ **Note:** Version bump only for package @patternfly/documentation-framework
66
+
67
+
68
+
69
+
70
+
71
+ # 2.0.0-alpha.53 (2023-06-09)
72
+
73
+ **Note:** Version bump only for package @patternfly/documentation-framework
74
+
75
+
76
+
77
+
78
+
79
+ # 2.0.0-alpha.52 (2023-06-07)
80
+
81
+ **Note:** Version bump only for package @patternfly/documentation-framework
82
+
83
+
84
+
85
+
86
+
87
+ # 2.0.0-alpha.51 (2023-06-06)
88
+
89
+ **Note:** Version bump only for package @patternfly/documentation-framework
90
+
91
+
92
+
93
+
94
+
95
+ # 2.0.0-alpha.50 (2023-06-01)
96
+
97
+
98
+ ### Bug Fixes
99
+
100
+ * **labels:** Update label logic to include html components ([#3567](https://github.com/patternfly/patternfly-org/issues/3567)) ([32bdc0f](https://github.com/patternfly/patternfly-org/commit/32bdc0fe2120e2c86f39c1e5da94e3f2d11d9705))
101
+
102
+
103
+
104
+
105
+
106
+ # 2.0.0-alpha.49 (2023-06-01)
107
+
108
+ **Note:** Version bump only for package @patternfly/documentation-framework
109
+
110
+
111
+
112
+
113
+
114
+ # 2.0.0-alpha.48 (2023-05-31)
115
+
116
+ **Note:** Version bump only for package @patternfly/documentation-framework
117
+
118
+
119
+
120
+
121
+
122
+ # 2.0.0-alpha.47 (2023-05-31)
123
+
124
+
125
+ ### Bug Fixes
126
+
127
+ * **CSSVariables:** check for values before looping over them ([f2d167f](https://github.com/patternfly/patternfly-org/commit/f2d167f57c0cd38b289ade62d98022d7902de38f))
128
+
129
+
130
+
131
+
132
+
133
+ # 2.0.0-alpha.46 (2023-05-31)
134
+
135
+
136
+ ### Bug Fixes
137
+
138
+ * **CSSVariables:** resolve a11y issues in tables ([41a7837](https://github.com/patternfly/patternfly-org/commit/41a78379de36c08d7b36fe48a9ff40a4140cdc63))
139
+
140
+
141
+
142
+
143
+
144
+ # 2.0.0-alpha.45 (2023-05-25)
145
+
146
+ **Note:** Version bump only for package @patternfly/documentation-framework
147
+
148
+
149
+
150
+
151
+
152
+ # 2.0.0-alpha.44 (2023-05-25)
153
+
154
+ **Note:** Version bump only for package @patternfly/documentation-framework
155
+
156
+
157
+
158
+
159
+
160
+ # 2.0.0-alpha.43 (2023-05-25)
161
+
162
+
163
+ ### Features
164
+
165
+ * **labels:** add deprecated/demo/beta labels to headers + nav items ([#3547](https://github.com/patternfly/patternfly-org/issues/3547)) ([010a0e0](https://github.com/patternfly/patternfly-org/commit/010a0e05baea661964660d2a733569a34abbf243))
166
+
167
+
168
+
169
+
170
+
171
+ # 2.0.0-alpha.42 (2023-05-18)
172
+
173
+ **Note:** Version bump only for package @patternfly/documentation-framework
174
+
175
+
176
+
177
+
178
+
179
+ # 2.0.0-alpha.41 (2023-05-15)
180
+
181
+
182
+ ### Bug Fixes
183
+
184
+ * broken link in search-input summary ([7cbf968](https://github.com/patternfly/patternfly-org/commit/7cbf968c1b00aef2257ef8b7434c7ff8b9a4255a))
185
+
186
+
187
+
188
+
189
+
190
+ # 2.0.0-alpha.40 (2023-05-15)
191
+
192
+
193
+ ### Bug Fixes
194
+
195
+ * **docs:** use correct theme class on full page dark theme switcher ([#3532](https://github.com/patternfly/patternfly-org/issues/3532)) ([0008236](https://github.com/patternfly/patternfly-org/commit/0008236da2b105fd1789db2263323c59780b5194))
196
+
197
+
198
+
199
+
200
+
201
+ # 2.0.0-alpha.39 (2023-05-11)
202
+
203
+ **Note:** Version bump only for package @patternfly/documentation-framework
204
+
205
+
206
+
207
+
208
+
209
+ # 2.0.0-alpha.38 (2023-05-11)
210
+
211
+ **Note:** Version bump only for package @patternfly/documentation-framework
212
+
213
+
214
+
215
+
216
+
217
+ # 2.0.0-alpha.37 (2023-05-10)
218
+
219
+ **Note:** Version bump only for package @patternfly/documentation-framework
220
+
221
+
222
+
223
+
224
+
225
+ # 2.0.0-alpha.36 (2023-05-10)
226
+
227
+ **Note:** Version bump only for package @patternfly/documentation-framework
228
+
229
+
230
+
231
+
232
+
233
+ # 2.0.0-alpha.35 (2023-05-09)
234
+
235
+
236
+ ### Bug Fixes
237
+
238
+ * **org:** Fix up org css issues after doc framework update ([#3518](https://github.com/patternfly/patternfly-org/issues/3518)) ([a6f20c5](https://github.com/patternfly/patternfly-org/commit/a6f20c569a8ba8df2da23722c48f73f750e229e3))
239
+
240
+
241
+
242
+
243
+
244
+ # 2.0.0-alpha.34 (2023-05-05)
245
+
246
+
247
+ ### Features
248
+
249
+ * **docs:** Update docs framework with latest react code ([#3517](https://github.com/patternfly/patternfly-org/issues/3517)) ([2df0147](https://github.com/patternfly/patternfly-org/commit/2df014737dbbe35033d0b28ee71b40d5fbe22ed2))
250
+
251
+
252
+
253
+
254
+
255
+ # 2.0.0-alpha.33 (2023-05-04)
256
+
257
+
258
+ ### Bug Fixes
259
+
260
+ * **css:** update css selectors for v5 versioning ([#3516](https://github.com/patternfly/patternfly-org/issues/3516)) ([f681945](https://github.com/patternfly/patternfly-org/commit/f681945e2de1200fbb7d2d6ab8262091b1e72a8e))
261
+
262
+
263
+
264
+
265
+
266
+ # 2.0.0-alpha.32 (2023-05-02)
267
+
268
+ **Note:** Version bump only for package @patternfly/documentation-framework
269
+
270
+
271
+
272
+
273
+
274
+ # 2.0.0-alpha.31 (2023-05-01)
275
+
276
+
277
+ ### Bug Fixes
278
+
279
+ * update Text component summary to fix build ([64b3590](https://github.com/patternfly/patternfly-org/commit/64b359029fa14be143ddec212fdf89a3033145d5))
280
+
281
+
282
+
283
+
284
+
285
+ # 2.0.0-alpha.30 (2023-04-27)
286
+
287
+
288
+ ### Bug Fixes
289
+
290
+ * white space change to test CI ([e9e7ed3](https://github.com/patternfly/patternfly-org/commit/e9e7ed3cf6007fcf022dd7693bfed12bdf9d7e9a))
291
+
292
+
293
+
294
+
295
+
296
+ # 2.0.0-alpha.29 (2023-04-26)
297
+
298
+
299
+ ### Bug Fixes
300
+
301
+ * sidebar open by default ([#3506](https://github.com/patternfly/patternfly-org/issues/3506)) ([fb5f086](https://github.com/patternfly/patternfly-org/commit/fb5f08611d3edde80a559635b39dab7138f06d1d))
302
+
303
+
304
+
305
+
306
+
307
+ # 2.0.0-alpha.28 (2023-04-26)
308
+
309
+ **Note:** Version bump only for package @patternfly/documentation-framework
310
+
311
+
312
+
313
+
314
+
315
+ # 2.0.0-alpha.27 (2023-04-25)
316
+
317
+
318
+ ### Bug Fixes
319
+
320
+ * **docs:** Update static dir and fix null loading ([#3505](https://github.com/patternfly/patternfly-org/issues/3505)) ([e65a1b2](https://github.com/patternfly/patternfly-org/commit/e65a1b21ae7671322adcbcef1ada69436fd07802))
321
+
322
+
323
+
324
+
325
+
326
+ # 2.0.0-alpha.26 (2023-04-21)
327
+
328
+ **Note:** Version bump only for package @patternfly/documentation-framework
329
+
330
+
331
+
332
+
333
+
334
+ # 2.0.0-alpha.25 (2023-04-19)
335
+
336
+ **Note:** Version bump only for package @patternfly/documentation-framework
337
+
338
+
339
+
340
+
341
+
342
+ # 2.0.0-alpha.24 (2023-04-17)
343
+
344
+ **Note:** Version bump only for package @patternfly/documentation-framework
345
+
346
+
347
+
348
+
349
+
350
+ # 2.0.0-alpha.23 (2023-04-17)
351
+
352
+
353
+ ### Features
354
+
355
+ * **docs-framework:** add support for exposing function documentation ([#3485](https://github.com/patternfly/patternfly-org/issues/3485)) ([2f19ded](https://github.com/patternfly/patternfly-org/commit/2f19deda84c75042df1870c0950bb173eb2c3d84))
356
+
357
+
358
+
359
+
360
+
361
+ # 2.0.0-alpha.22 (2023-04-17)
362
+
363
+ **Note:** Version bump only for package @patternfly/documentation-framework
364
+
365
+
366
+
367
+
368
+
369
+ # 2.0.0-alpha.21 (2023-04-15)
370
+
371
+
372
+ ### Bug Fixes
373
+
374
+ * clean up references to katacoda ([#3491](https://github.com/patternfly/patternfly-org/issues/3491)) ([5de986b](https://github.com/patternfly/patternfly-org/commit/5de986b917ee7edf9c476bb2df2f2ee4d454a7e1))
375
+
376
+
377
+
378
+
379
+
380
+ # 2.0.0-alpha.20 (2023-04-14)
381
+
382
+ **Note:** Version bump only for package @patternfly/documentation-framework
383
+
384
+
385
+
386
+
387
+
388
+ # 2.0.0-alpha.19 (2023-04-12)
389
+
390
+ **Note:** Version bump only for package @patternfly/documentation-framework
391
+
392
+
393
+
394
+
395
+
396
+ # 2.0.0-alpha.18 (2023-04-11)
397
+
398
+
399
+ ### Bug Fixes
400
+
401
+ * **cssVariables:** Update expandId ([b9b0a6e](https://github.com/patternfly/patternfly-org/commit/b9b0a6edcc103c442f24caae086b68558415be57))
402
+
403
+
404
+
405
+
406
+
407
+ # 2.0.0-alpha.17 (2023-04-11)
408
+
409
+
410
+ ### Bug Fixes
411
+
412
+ * **docs:** fixes display & search bugs on icons page ([#3483](https://github.com/patternfly/patternfly-org/issues/3483)) ([39b225c](https://github.com/patternfly/patternfly-org/commit/39b225cdcbdc4c01c5002750600708eab6427f60))
413
+
414
+
415
+
416
+
417
+
418
+ # 2.0.0-alpha.16 (2023-04-11)
419
+
420
+
421
+ ### Features
422
+
423
+ * **tables:** update tables, context selector ([#3474](https://github.com/patternfly/patternfly-org/issues/3474)) ([cd82c35](https://github.com/patternfly/patternfly-org/commit/cd82c356f568f3368bc22319d614fde8dd74fb38))
424
+
425
+
426
+
427
+
428
+
429
+ # 2.0.0-alpha.15 (2023-04-06)
430
+
431
+ **Note:** Version bump only for package @patternfly/documentation-framework
432
+
433
+
434
+
435
+
436
+
437
+ # 2.0.0-alpha.14 (2023-04-03)
438
+
439
+
440
+ ### Bug Fixes
441
+
442
+ * **Tables:** temporarily comment out tables so Table can be deprecated ([#3468](https://github.com/patternfly/patternfly-org/issues/3468)) ([f4aa5ed](https://github.com/patternfly/patternfly-org/commit/f4aa5ed791161851cdc92d02d0c752eef4028306))
443
+
444
+
445
+
446
+
447
+
448
+ # 2.0.0-alpha.13 (2023-03-31)
449
+
450
+ **Note:** Version bump only for package @patternfly/documentation-framework
451
+
452
+
453
+
454
+
455
+
456
+ # 2.0.0-alpha.12 (2023-03-30)
457
+
458
+ **Note:** Version bump only for package @patternfly/documentation-framework
459
+
460
+
461
+
462
+
463
+
464
+ # 2.0.0-alpha.11 (2023-03-29)
465
+
466
+ **Note:** Version bump only for package @patternfly/documentation-framework
467
+
468
+
469
+
470
+
471
+
472
+ # 2.0.0-alpha.10 (2023-03-15)
473
+
474
+ **Note:** Version bump only for package @patternfly/documentation-framework
475
+
476
+
477
+
478
+
479
+
480
+ # 2.0.0-alpha.9 (2023-03-09)
481
+
482
+
483
+ ### Bug Fixes
484
+
485
+ * **versions:** fix typo ([a9b8fe2](https://github.com/patternfly/patternfly-org/commit/a9b8fe296a9c28bdd9ada01a80b1653810802ddf))
486
+
487
+
488
+
489
+
490
+
491
+ # 2.0.0-alpha.8 (2023-03-03)
492
+
493
+
494
+ ### Features
495
+
496
+ * **docs-framework:** add legacy ssl cli option ([#3433](https://github.com/patternfly/patternfly-org/issues/3433)) ([ccb56fb](https://github.com/patternfly/patternfly-org/commit/ccb56fb27026ebe4be5f5166a86cf3c2f995a872))
497
+
498
+
499
+
500
+
501
+
502
+ # 2.0.0-alpha.7 (2023-03-01)
503
+
504
+ **Note:** Version bump only for package @patternfly/documentation-framework
505
+
506
+
507
+
508
+
509
+
6
510
  # 2.0.0-alpha.6 (2023-03-01)
7
511
 
8
512
  **Note:** Version bump only for package @patternfly/documentation-framework
package/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom';
2
+ import { createRoot, hydrateRoot } from 'react-dom/client';
3
3
  import { Router, useLocation } from '@reach/router';
4
4
  import 'client-styles'; // Webpack replaces this import: patternfly-docs.css.js
5
5
  import { SideNavLayout } from '@patternfly/documentation-framework/layouts';
@@ -13,13 +13,12 @@ import './components/tableOfContents/tableOfContents.css';
13
13
  import './components/example/example.css';
14
14
  import './components/footer/footer.css';
15
15
  import './components/sideNav/sideNav.css';
16
- import './components/topNav/topNav.css';
17
16
  import './layouts/sideNavLayout/sideNavLayout.css';
18
17
 
19
- const AppRoute = ({ child, katacodaLayout, title, path }) => {
18
+ const AppRoute = ({ child, title, path }) => {
20
19
  const pathname = useLocation().pathname;
21
20
  if (typeof window !== 'undefined' && window.gtag) {
22
- gtag('config', 'UA-47523816-6', {
21
+ gtag('config', process.env.googleAnalyticsID, {
23
22
  'page_path': pathname,
24
23
  'page_title': (title || pathname)
25
24
  });
@@ -31,7 +30,7 @@ const AppRoute = ({ child, katacodaLayout, title, path }) => {
31
30
  return (
32
31
  <React.Fragment>
33
32
  {child}
34
- {!katacodaLayout && process.env.hasFooter && <Footer />}
33
+ {process.env.hasFooter && <Footer />}
35
34
  </React.Fragment>
36
35
  );
37
36
  }
@@ -39,18 +38,16 @@ const AppRoute = ({ child, katacodaLayout, title, path }) => {
39
38
  const SideNavRouter = () => {
40
39
  const pathname = useLocation().pathname.replace(process.env.pathPrefix, '');
41
40
  const componentsData = process?.env?.componentsData;
42
- const navOpen = !routes[pathname] || !routes[pathname].katacodaLayout;
43
41
  return (
44
- <SideNavLayout groupedRoutes={groupedRoutes} navOpen={navOpen} >
42
+ <SideNavLayout groupedRoutes={groupedRoutes} navOpen={true} >
45
43
  <Router id="ws-page-content-router">
46
44
  {Object.entries(routes)
47
- .map(([path, { Component, title, sources, katacodaLayout, id }]) => Component
45
+ .map(([path, { Component, title, sources, id }]) => Component
48
46
  ? <AppRoute
49
47
  key={path}
50
48
  path={path}
51
49
  default={path === '/404'}
52
50
  child={<Component />}
53
- katacodaLayout={katacodaLayout}
54
51
  title={title}
55
52
  />
56
53
  : <AppRoute
@@ -65,7 +62,6 @@ const SideNavRouter = () => {
65
62
  componentsData={componentsData}
66
63
  />
67
64
  }
68
- katacodaLayout={katacodaLayout}
69
65
  title={title}
70
66
  />
71
67
  )
@@ -107,8 +103,12 @@ const isPrerender = process.env.PRERENDER;
107
103
  // Don't use ReactDOM in SSR
108
104
  if (!isPrerender) {
109
105
  function render() {
110
- const renderFn = isProd ? ReactDOM.hydrate : ReactDOM.render;
111
- renderFn(<App />, document.getElementById('root'));
106
+ const container = document.getElementById('root');
107
+ if (isProd) {
108
+ hydrateRoot(container, <App />);
109
+ } else {
110
+ createRoot(container).render(<App />);
111
+ }
112
112
  }
113
113
  // On first load, await promise for the current page to avoid flashing a "Loading..." state
114
114
  const Component = getAsyncComponent(null);
@@ -3,8 +3,8 @@
3
3
  }
4
4
 
5
5
  .ws-heading-anchor {
6
- color: var(--pf-global--Color--100);
7
- transform: translate(calc(-100% - var(--pf-global--spacer--xs)), -50%);
6
+ color: var(--pf-v5-global--Color--100);
7
+ transform: translate(calc(-100% - var(--pf-v5-global--spacer--xs)), -50%);
8
8
  opacity: 0;
9
9
  position: absolute;
10
10
  left: 0;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Title } from '@patternfly/react-core';
2
+ import { Title, Flex, FlexItem } from '@patternfly/react-core';
3
3
  import LinkIcon from '@patternfly/react-icons/dist/esm/icons/link-icon';
4
4
  import { Link } from '../link/link';
5
5
  import { slugger } from '../../helpers/slugger';
@@ -25,17 +25,22 @@ export const AutoLinkHeader = ({
25
25
  const slug = id || slugger(children);
26
26
 
27
27
  return (
28
- <Title
29
- id={slug}
30
- size={sizes[size]}
31
- headingLevel={headingLevel || size}
32
- className={`ws-heading ${className}`}
33
- tabIndex={-1}
34
- >
35
- <Link href={`#${slug}`} className="ws-heading-anchor" tabIndex="-1" aria-hidden>
36
- <LinkIcon className="ws-heading-anchor-icon" style={{ verticalAlign: 'middle' }} />
37
- </Link>
38
- {children} {metaText}
39
- </Title>
28
+ <Flex alignItems={{ default: 'alignItemsCenter'}} spaceItems={{ default: 'spaceItemsNone' }}>
29
+ <FlexItem>
30
+ <Title
31
+ id={slug}
32
+ size={sizes[size]}
33
+ headingLevel={headingLevel || size}
34
+ className={`ws-heading ${className}`}
35
+ tabIndex={-1}
36
+ >
37
+ <Link href={`#${slug}`} className="ws-heading-anchor" tabIndex="-1" aria-hidden>
38
+ <LinkIcon className="ws-heading-anchor-icon" style={{ verticalAlign: 'middle' }} />
39
+ </Link>
40
+ {children}
41
+ </Title>
42
+ </FlexItem>
43
+ <FlexItem> {metaText}</FlexItem>
44
+ </Flex>
40
45
  )
41
46
  };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TextInput } from "@patternfly/react-core";
2
+ import { SearchInput } from "@patternfly/react-core";
3
3
 
4
4
  export class CSSSearch extends React.Component {
5
5
  constructor(props) {
@@ -9,7 +9,7 @@ export class CSSSearch extends React.Component {
9
9
  };
10
10
  }
11
11
 
12
- onFilterChange = (_change, event) => {
12
+ onFilterChange = (event) => {
13
13
  this.setState(
14
14
  {
15
15
  filterValue: event.target.value
@@ -20,8 +20,7 @@ export class CSSSearch extends React.Component {
20
20
 
21
21
  render() {
22
22
  return (
23
- <TextInput
24
- type="text"
23
+ <SearchInput
25
24
  aria-label="Filter CSS Variables"
26
25
  placeholder="Filter CSS Variables"
27
26
  value={this.state.filterValue}
@@ -2,14 +2,14 @@
2
2
  display: inline-block;
3
3
  height: 18px;
4
4
  width: 18px;
5
- border: var(--pf-global--BorderWidth--sm) solid var(--pf-global--BorderColor--200);
6
- border-radius: var(--pf-global--BorderRadius--lg);
5
+ border: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--BorderColor--200);
6
+ border-radius: var(--pf-v5-global--BorderRadius--lg);
7
7
  }
8
8
 
9
9
  .ws-td-text {
10
- font-size: var(--pf-global--FontSize--sm) !important;
10
+ font-size: var(--pf-v5-global--FontSize--sm) !important;
11
11
  }
12
12
 
13
13
  .ws-css-property {
14
- padding: var(--pf-global--spacer--xs) var(--pf-global--spacer--md);
14
+ padding: var(--pf-v5-global--spacer--xs) var(--pf-v5-global--spacer--md);
15
15
  }