@patternfly/documentation-framework 6.0.0-alpha.2 → 6.0.0-alpha.21

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 (34) hide show
  1. package/CHANGELOG.md +634 -0
  2. package/app.js +1 -3
  3. package/components/autoLinkHeader/autoLinkHeader.css +2 -2
  4. package/components/cssVariables/cssVariables.css +4 -4
  5. package/components/cssVariables/cssVariables.js +6 -6
  6. package/components/example/example.css +29 -29
  7. package/components/example/example.js +5 -5
  8. package/components/example/exampleToolbar.js +3 -2
  9. package/components/footer/footer.css +16 -16
  10. package/components/footer/footer.js +13 -13
  11. package/components/gdprBanner/gdprBanner.css +2 -2
  12. package/components/gdprBanner/gdprBanner.js +4 -4
  13. package/components/inlineAlert/inlineAlert.js +1 -1
  14. package/components/propsTable/propsTable.js +3 -3
  15. package/components/sectionGallery/sectionDataListLayout.js +3 -3
  16. package/components/sectionGallery/sectionGallery.css +12 -12
  17. package/components/sectionGallery/sectionGalleryToolbar.js +1 -1
  18. package/components/sideNav/sideNav.css +11 -15
  19. package/components/sideNav/sideNav.js +3 -4
  20. package/components/tableOfContents/tableOfContents.css +23 -24
  21. package/layouts/sideNavLayout/sideNavLayout.css +14 -14
  22. package/layouts/sideNavLayout/sideNavLayout.js +79 -26
  23. package/package.json +12 -19
  24. package/pages/404/404.css +2 -2
  25. package/pages/404/index.js +1 -1
  26. package/routes.js +3 -1
  27. package/scripts/md/parseMD.js +2 -0
  28. package/scripts/webpack/webpack.base.config.js +7 -18
  29. package/scripts/writeScreenshots.js +2 -2
  30. package/templates/mdx.css +169 -157
  31. package/templates/mdx.js +13 -7
  32. package/versions.json +85 -9
  33. package/pages/global-css-variables.md +0 -109
  34. package/pages/img/component-variable-mapping.png +0 -0
@@ -62,7 +62,7 @@ const flattenList = files => {
62
62
  export class CSSVariables extends React.Component {
63
63
  constructor(props) {
64
64
  super(props);
65
- const prefixToken = props.prefix.replace("pf-v5-", "").replace(/-+/g, "_");
65
+ const prefixToken = props.prefix.replace("pf-v6-", "").replace(/-+/g, "_");
66
66
  const applicableFiles = Object.entries(tokensModule)
67
67
  .filter(([key, val]) => prefixToken === key)
68
68
  .sort(([key1], [key2]) => key1.localeCompare(key2))
@@ -103,12 +103,12 @@ export class CSSVariables extends React.Component {
103
103
  <div key={rowKey}>
104
104
  <div
105
105
  key={`${rowKey}_1`}
106
- className="pf-v5-l-flex pf-m-space-items-sm"
106
+ className="pf-v6-l-flex pf-m-space-items-sm"
107
107
  >
108
108
  {isColorRegex.test(value) && (
109
109
  <div
110
110
  key={`${rowKey}_2`}
111
- className="pf-v5-l-flex pf-m-column pf-m-align-self-center"
111
+ className="pf-v6-l-flex pf-m-column pf-m-align-self-center"
112
112
  >
113
113
  <span
114
114
  className="ws-color-box"
@@ -118,7 +118,7 @@ export class CSSVariables extends React.Component {
118
118
  )}
119
119
  <div
120
120
  key={`${rowKey}_3`}
121
- className="pf-v5-l-flex pf-m-column pf-m-align-self-center ws-td-text"
121
+ className="pf-v6-l-flex pf-m-column pf-m-align-self-center ws-td-text"
122
122
  >
123
123
  {value}
124
124
  </div>
@@ -170,7 +170,7 @@ export class CSSVariables extends React.Component {
170
170
  render() {
171
171
  return (
172
172
  <React.Fragment>
173
- {this.props.autoLinkHeader && <AutoLinkHeader size="h3" className="pf-v5-u-mt-lg pf-v5-u-mb-md">{`Prefixed with '${this.props.prefix}'`}</AutoLinkHeader>}
173
+ {this.props.autoLinkHeader && <AutoLinkHeader size="h3" className="pf-v6-u-mt-lg pf-v6-u-mb-md">{`Prefixed with '${this.props.prefix}'`}</AutoLinkHeader>}
174
174
  <CSSSearch getDebouncedFilteredRows={this.getDebouncedFilteredRows} />
175
175
  <Table
176
176
  variant="compact"
@@ -180,7 +180,7 @@ export class CSSVariables extends React.Component {
180
180
  <Tr>
181
181
  {!this.props.hideSelectorColumn && (
182
182
  <React.Fragment>
183
- <Th />
183
+ <Th screenReaderText="Expand or collapse column" />
184
184
  <Th>Selector</Th>
185
185
  </React.Fragment>
186
186
  )}
@@ -3,52 +3,52 @@
3
3
  }
4
4
 
5
5
  .ws-example {
6
- margin-top: var(--pf-v5-global--spacer--lg);
7
- margin-bottom: var(--pf-v5-global--spacer--lg);
6
+ margin-top: var(--pf-v6-global--spacer--lg);
7
+ margin-bottom: var(--pf-v6-global--spacer--lg);
8
8
  }
9
9
 
10
10
  .ws-example > .ws-example-header {
11
- padding: var(--pf-v5-global--spacer--md);
11
+ padding: var(--pf-v6-global--spacer--md);
12
12
  }
13
13
 
14
14
  .ws-example-header > .ws-example-heading:not(:last-child) {
15
- margin-bottom: var(--pf-v5-global--spacer--md);
15
+ margin-bottom: var(--pf-v6-global--spacer--md);
16
16
  }
17
17
 
18
- .ws-code-editor:not(.ws-example-code-expanded) > .pf-v5-c-code-editor__header::before {
19
- --pf-v5-c-code-editor__header--before--BorderBottomWidth: 0;
18
+ .ws-code-editor:not(.ws-example-code-expanded) > .pf-v6-c-code-editor__header::before {
19
+ --pf-v6-c-code-editor__header--before--BorderBottomWidth: 0;
20
20
  }
21
21
 
22
22
  .ws-code-editor-control {
23
- --pf-v5-c-button--m-control--BackgroundColor: transparent;
24
- --pf-v5-c-button--m-control--active--BackgroundColor: transparent;
25
- --pf-v5-c-button--m-control--focus--BackgroundColor: transparent;
26
- --pf-v5-c-button--m-control--hover--BackgroundColor: transparent;
23
+ --pf-v6-c-button--m-control--BackgroundColor: transparent;
24
+ --pf-v6-c-button--m-control--active--BackgroundColor: transparent;
25
+ --pf-v6-c-button--m-control--focus--BackgroundColor: transparent;
26
+ --pf-v6-c-button--m-control--hover--BackgroundColor: transparent;
27
27
  }
28
28
 
29
- .ws-code-editor-control.pf-v5-c-button {
30
- --pf-v5-c-button--after--BorderWidth: 0;
29
+ .ws-code-editor-control.pf-v6-c-button {
30
+ --pf-v6-c-button--after--BorderWidth: 0;
31
31
  }
32
32
 
33
33
  .ws-preview {
34
- padding: var(--pf-v5-global--spacer--md);
35
- background-color: var(--pf-v5-global--BackgroundColor--100);
36
- border-bottom: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--BorderColor--300);
34
+ padding: var(--pf-v6-global--spacer--md);
35
+ background-color: var(--pf-v6-global--BackgroundColor--100);
36
+ border-bottom: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--BorderColor--300);
37
37
  transition: width .2s ease-in-out;
38
38
  }
39
39
 
40
40
  .ws-core-c-page.ws-preview > .ws-preview-html,
41
- .ws-react-c-page.ws-preview > .pf-v5-c-page {
41
+ .ws-react-c-page.ws-preview > .pf-v6-c-page {
42
42
  overflow: hidden;
43
43
  }
44
44
 
45
45
  .ws-editor {
46
- font-size: var(--pf-v5-global--FontSize--md);
46
+ font-size: var(--pf-v6-global--FontSize--md);
47
47
  }
48
48
 
49
49
  .ws-editor .token.punctuation,
50
50
  .ws-editor .token.operator {
51
- color: var(--pf-v5-global--danger-color--100);
51
+ color: var(--pf-v6-global--danger-color--100);
52
52
  }
53
53
 
54
54
  .ws-preview__thumbnail-link {
@@ -100,33 +100,33 @@
100
100
  color: rgba(255,255,255,.4);
101
101
  }
102
102
 
103
- .pf-v5-c-badge.ws-beta-badge {
104
- --pf-v5-c-badge--m-unread--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
105
- --pf-v5-c-badge--m-unread--Color: var(--pf-v5-global--primary-color--100);
106
- border: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--primary-color--100);
103
+ .pf-v6-c-badge.ws-beta-badge {
104
+ --pf-v6-c-badge--m-unread--BackgroundColor: var(--pf-v6-global--BackgroundColor--100);
105
+ --pf-v6-c-badge--m-unread--Color: var(--pf-v6-global--primary-color--100);
106
+ border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--primary-color--100);
107
107
  }
108
108
 
109
109
  .ws-prop-required {
110
- color: var(--pf-v5-global--danger-color--100);
110
+ color: var(--pf-v6-global--danger-color--100);
111
111
  }
112
112
 
113
113
  .ws-full-page-utils {
114
114
  position: fixed;
115
115
  right: 0;
116
116
  bottom: 0;
117
- padding: var(--pf-v5-global--spacer--lg);
118
- z-index: var(--pf-v5-global--ZIndex--2xl);
117
+ padding: var(--pf-v6-global--spacer--lg);
118
+ z-index: var(--pf-v6-global--ZIndex--2xl);
119
119
  }
120
120
 
121
121
  .ws-full-page-utils::before {
122
122
  position: absolute;
123
123
  inset: 0;
124
124
  content: "";
125
- background-color: var(--pf-v5-global--BackgroundColor--100);
125
+ background-color: var(--pf-v6-global--BackgroundColor--100);
126
126
  opacity: 0.8;
127
- box-shadow: var(--pf-v5-global--BoxShadow--sm);
127
+ box-shadow: var(--pf-v6-global--BoxShadow--sm);
128
128
  }
129
129
 
130
- .pf-v5-theme-dark .ws-theme-switch-full-page::before {
131
- background-color: var(--pf-v5-global--BackgroundColor--300);
130
+ .pf-v6-theme-dark .ws-theme-switch-full-page::before {
131
+ background-color: var(--pf-v6-global--BackgroundColor--300);
132
132
  }
@@ -131,7 +131,7 @@ export const Example = ({
131
131
  if (lang === 'html') {
132
132
  livePreview = (
133
133
  <div
134
- className={css('ws-preview-html', isFullscreenPreview && 'pf-v5-u-h-100')}
134
+ className={css('ws-preview-html', isFullscreenPreview && 'pf-v6-u-h-100')}
135
135
  dangerouslySetInnerHTML={{ __html: editorCode }}
136
136
  />
137
137
  );
@@ -164,13 +164,13 @@ export const Example = ({
164
164
 
165
165
  if (isFullscreenPreview) {
166
166
  return (
167
- <div id={previewId} className={css(className, 'pf-v5-u-h-100')}>
167
+ <div id={previewId} className={css(className, 'pf-v6-u-h-100')}>
168
168
  {livePreview}
169
169
  {(hasDarkThemeSwitcher || hasRTLSwitcher) && (
170
- <Flex direction={{ default: 'column' }} gap={{ default: 'gapLg' }} className="ws-full-page-utils pf-v5-m-dir-ltr ">
170
+ <Flex direction={{ default: 'column' }} gap={{ default: 'gapLg' }} className="ws-full-page-utils pf-v6-m-dir-ltr ">
171
171
  {hasDarkThemeSwitcher && (
172
172
  <Switch id="ws-example-theme-switch" label="Dark theme" defaultChecked={false} onChange={() =>
173
- document.querySelector('html').classList.toggle('pf-v5-theme-dark')} />
173
+ document.querySelector('html').classList.toggle('pf-v6-theme-dark')} />
174
174
  )}
175
175
  {hasRTLSwitcher && (
176
176
  <Switch id="ws-example-rtl-switch" label="RTL" defaultChecked={false} onChange={() => {
@@ -248,7 +248,7 @@ export const Example = ({
248
248
  className={css(
249
249
  className,
250
250
  isFullscreen ? 'ws-preview-fullscreen' : 'ws-preview',
251
- isRTL && 'pf-v5-m-dir-rtl')
251
+ isRTL && 'pf-v6-m-dir-rtl')
252
252
  }
253
253
  >
254
254
  {livePreview}
@@ -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="control"
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="control"
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-v5-c-page__main-section {
2
- font-family: var(--pf-v5-global--FontFamily--text);
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-v5-c-page__main-section--PaddingTop: var(--pf-v5-global--spacer--xl);
6
- --pf-v5-c-page__main-section--PaddingRight: var(--pf-v5-global--spacer--2xl);
7
- --pf-v5-c-page__main-section--PaddingBottom: var(--pf-v5-global--spacer--2xl);
8
- --pf-v5-c-page__main-section--PaddingLeft: var(--pf-v5-global--spacer--2xl);
5
+ --pf-v6-c-page__main-section--PaddingTop: var(--pf-v6-global--spacer--xl);
6
+ --pf-v6-c-page__main-section--PaddingRight: var(--pf-v6-global--spacer--2xl);
7
+ --pf-v6-c-page__main-section--PaddingBottom: var(--pf-v6-global--spacer--2xl);
8
+ --pf-v6-c-page__main-section--PaddingLeft: var(--pf-v6-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-v5-global--spacer--md);
38
- color: var(--pf-v5-global--Color--light-100) !important;
37
+ margin-right: var(--pf-v6-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-v5-global--spacer--md);
47
- margin-bottom: var(--pf-v5-global--spacer--md);
46
+ margin-top: var(--pf-v6-global--spacer--md);
47
+ margin-bottom: var(--pf-v6-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
- color: var(--pf-v5-global--Color--light-100);
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-v5-c-page .pf-v5-c-page__main-section.ws-org-pfsite-l-footer-dark {
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-v5-c-page__main-section.ws-org-pfsite-l-footer-dark > * {
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-v5-global--spacer--sm);
100
- padding-left: var(--pf-v5-global--spacer--sm);
101
- border-right: var(--pf-v5-global--BorderWidth--sm) solid #d2d2d2;
99
+ padding-right: var(--pf-v6-global--spacer--sm);
100
+ padding-left: var(--pf-v6-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-v5-u-mb-lg pf-v5-u-mb-0-on-sm"
16
+ className="pf-v6-u-mb-lg pf-v6-u-mb-0-on-sm"
17
17
  >
18
- <Grid className="pf-v5-u-py-xl">
18
+ <Grid className="pf-v6-u-py-xl">
19
19
  <GridItem
20
20
  sm={6}
21
21
  md={4}
22
- className="pf-v5-u-ml-md pf-v5-u-ml-0-on-md pf-v5-u-mb-xl pf-v5-u-mb-0-on-md"
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-v5-c-title ws-org-pfsite-footer-menu-list-title">
24
+ <p className="pf-v6-c-title ws-org-pfsite-footer-menu-list-title">
25
25
  QUICKLINKS
26
26
  </p>
27
27
  <nav aria-label="Quick Links">
@@ -68,9 +68,9 @@ export const Footer = () => (
68
68
  <GridItem
69
69
  sm={6}
70
70
  md={4}
71
- className="pf-v5-u-mt-lg pf-v5-u-mt-0-on-sm pf-v5-u-ml-md pf-v5-u-ml-0-on-md pf-v5-u-mb-xl pf-v5-u-mb-0-on-md"
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-v5-c-title ws-org-pfsite-footer-menu-list-title">
73
+ <p className="pf-v6-c-title ws-org-pfsite-footer-menu-list-title">
74
74
  CONTRIBUTE
75
75
  </p>
76
76
  <nav aria-label="Contribute">
@@ -109,7 +109,7 @@ export const Footer = () => (
109
109
  <GridItem
110
110
  sm={6}
111
111
  md={4}
112
- className="pf-v5-u-mt-lg pf-v5-u-mt-0-on-md pf-v5-u-ml-md pf-v5-u-ml-0-on-md"
112
+ className="pf-v6-u-mt-lg pf-v6-u-mt-0-on-md pf-v6-u-ml-md pf-v6-u-ml-0-on-md"
113
113
  >
114
114
  <p className="ws-org-pfsite-footer-menu-list-title">
115
115
  STAY IN TOUCH
@@ -162,10 +162,10 @@ export const Footer = () => (
162
162
  </Grid>
163
163
  </GridItem>
164
164
  <GridItem sm={12} md={4}>
165
- <Grid className="pf-v5-u-pt-xl ws-org-pfsite-l-footer-column">
166
- <GridItem className="pf-v5-u-px-xl">
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-v5-c-page__header-brand-link pf-v5-c-brand ws-org-pfsite-footer-menu-about-logo pf-v5-u-pb-md"
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-v5-u-px-xl">
188
+ <GridItem className="ws-org-pfsite-footer-menu-social-links pf-v6-u-px-xl">
189
189
  <Link
190
190
  to="//github.com/patternfly"
191
191
  target="top"
@@ -209,7 +209,7 @@ export const Footer = () => (
209
209
  key="footer-2"
210
210
  className="ws-org-pfsite-l-footer-dark pf-m-no-fill"
211
211
  >
212
- <Grid className="pf-v5-u-py-xl-on-sm pf-v5-u-py-0-on-md pf-v5-u-align-items-center">
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 &copy; 2014-{new Date().getFullYear()} Red Hat, Inc.
229
229
  </span>
230
230
  </GridItem>
231
- <GridItem md={4} lg={5} className="pf-v5-u-ml-xl-on-xl">
231
+ <GridItem md={4} lg={5} className="pf-v6-u-ml-xl-on-xl">
232
232
  <Link
233
233
  to="//www.redhat.com/en/about/privacy-policy"
234
234
  target="top"
@@ -9,6 +9,6 @@
9
9
  #ws-gdpr-banner {
10
10
  max-width: 95vw;
11
11
  flex-wrap: nowrap;
12
- background: var(--pf-v5-global--BackgroundColor--100);
13
- border: var(--pf-v5-global--BorderWidth--sm) solid var(--pf-v5-global--Color--100);
12
+ background: var(--pf-v6-global--BackgroundColor--100);
13
+ border: var(--pf-v6-global--BorderWidth--sm) solid var(--pf-v6-global--Color--100);
14
14
  }
@@ -6,16 +6,16 @@ import './gdprBanner.css';
6
6
  export const GdprBanner = () => {
7
7
  const initialBannerOpen = typeof window !== 'undefined' && window.localStorage && !localStorage.getItem('gdpr-banner-closed');
8
8
  const [ isBannerOpen, setBannerOpen ] = React.useState(initialBannerOpen);
9
-
9
+
10
10
  const closeBanner = () => {
11
11
  localStorage.setItem('gdpr-banner-closed', 'true');
12
12
  setBannerOpen(false);
13
13
  }
14
14
 
15
15
  return !isBannerOpen ? null : (
16
- <section aria-label="Cookies on PatternFly" className="ws-gdpr-banner-container pf-v5-l-flex">
17
- <div id="ws-gdpr-banner" className="pf-v5-l-flex pf-v5-u-py-md pf-m-align-items-center">
18
- <p id="ws-gdpr-banner-text" className="pf-v5-u-ml-xl">
16
+ <section aria-label="Cookies on PatternFly" className="ws-gdpr-banner-container pf-v6-l-flex">
17
+ <div id="ws-gdpr-banner" className="pf-v6-l-flex pf-v6-u-py-md pf-m-align-items-center">
18
+ <p id="ws-gdpr-banner-text" className="pf-v6-u-ml-xl">
19
19
  We use cookies on our websites to deliver our online services.
20
20
  Details about how we use cookies and how you may disable them are set out in our <a href="//www.redhat.com/en/about/privacy-policy">Privacy Statement</a>.
21
21
  By using this website you agree to our use of cookies.
@@ -9,7 +9,7 @@ export const InlineAlert = ({
9
9
  <Alert
10
10
  variant={variant}
11
11
  title={title}
12
- className="pf-v5-u-my-md"
12
+ className="pf-v6-u-my-md"
13
13
  style={{ marginBottom: '1rem' }}
14
14
  isInline
15
15
  component="h2"
@@ -18,9 +18,9 @@ import accessibleStyles from "@patternfly/react-styles/css/utilities/Accessibili
18
18
  export const PropsTable = ({ title, description, rows, allPropComponents }) => (
19
19
  <React.Fragment>
20
20
  <AutoLinkHeader size="h3">{title}</AutoLinkHeader>
21
- <Table className="pf-v5-u-mt-md pf-v5-u-mb-lg" variant="compact" aria-label={title} gridBreakPoint="grid-lg">
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-v5-u-mb-md">{description}</div>}
23
+ {description && <div className="pf-v6-u-mb-md">{description}</div>}
24
24
  <div>
25
25
  <span className="ws-prop-required">*</span>required
26
26
  </div>
@@ -64,7 +64,7 @@ export const PropsTable = ({ title, description, rows, allPropComponents }) => (
64
64
  {row.beta && (
65
65
  <Badge
66
66
  key={`${row.name}-${idx}`}
67
- className="ws-beta-badge pf-v5-u-ml-sm"
67
+ className="ws-beta-badge pf-v6-u-ml-sm"
68
68
  >
69
69
  Beta
70
70
  </Badge>
@@ -7,7 +7,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
7
7
  if (layoutView !== 'list') {
8
8
  return null;
9
9
  }
10
-
10
+
11
11
  return (
12
12
  <DataList onSelectDataListItem={() => {}}>
13
13
  {galleryItems.map(({ idx, slug, illustration, itemName, title, isBeta, isDeprecated, isDemo, id, galleryItemsData }) => (
@@ -23,7 +23,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
23
23
  </DataListCell>
24
24
  ),
25
25
  <DataListCell width={5} key="text-description">
26
- <Split className={ hasListText ? "pf-v5-u-mb-md" : null }>
26
+ <Split className={ hasListText ? "pf-v6-u-mb-md" : null }>
27
27
  <SplitItem isFilled>
28
28
  <TextContent>
29
29
  <Text component={TextVariants.h2}>
@@ -32,7 +32,7 @@ export const SectionDataListLayout = ({ galleryItems, layoutView, hasListText, h
32
32
  </span>
33
33
  </Text>
34
34
  </TextContent>
35
- </SplitItem>
35
+ </SplitItem>
36
36
  <SplitItem>
37
37
  {isBeta && (<Label color="blue" isCompact>Beta</Label>)}
38
38
  {!isBeta && isDeprecated && (<Label color="grey" isCompact>Deprecated</Label>)}
@@ -8,7 +8,7 @@
8
8
 
9
9
  .ws-section-gallery {
10
10
  /* top placement */
11
- margin-top: calc(var(--pf-v5-c-page__main-section--PaddingTop) * -1);
11
+ margin-top: calc(var(--pf-v6-c-page__main-section--PaddingTop) * -1);
12
12
  }
13
13
 
14
14
  * + .ws-section-gallery {
@@ -17,22 +17,22 @@
17
17
  }
18
18
 
19
19
  /* Toolbar styles */
20
- .ws-section-gallery .pf-v5-c-toolbar {
21
- margin-left: calc(var(--pf-v5-c-page__main-section--PaddingLeft) * -1);
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));
20
+ .ws-section-gallery .pf-v6-c-toolbar {
21
+ margin-left: calc(var(--pf-v6-c-page__main-section--PaddingLeft) * -1);
22
+ border-bottom: var(--pf-v6-c-page__sidebar--m-light--BorderRightWidth) solid var(--pf-v6-c-page__sidebar--m-light--BorderRightColor);
23
+ margin-bottom: var(--pf-v6-global--spacer--md);
24
+ width: calc(100% + var(--pf-v6-c-page__main-section--PaddingLeft) + var(--pf-v6-c-page__main-section--PaddingRight));
25
25
  /* avoid hoverable data list items overlapping toolbar */
26
- z-index: calc(var(--pf-v5-global--ZIndex--xs) + 2);
26
+ z-index: calc(var(--pf-v6-global--ZIndex--xs) + 2);
27
27
  }
28
28
 
29
29
  /* Match toolbar left-padding to gallery left-padding */
30
- .ws-section-gallery .pf-v5-c-toolbar .pf-v5-c-toolbar__content {
31
- --pf-v5-c-toolbar__content--PaddingLeft: var(--pf-v5-c-page__main-section--PaddingLeft);
30
+ .ws-section-gallery .pf-v6-c-toolbar .pf-v6-c-toolbar__content {
31
+ --pf-v6-c-toolbar__content--PaddingLeft: var(--pf-v6-c-page__main-section--PaddingLeft);
32
32
  }
33
33
 
34
34
  /* Avoid toolbar wrap on smaller screens */
35
- .ws-section-gallery .pf-v5-c-toolbar__content-section {
35
+ .ws-section-gallery .pf-v6-c-toolbar__content-section {
36
36
  flex-wrap: nowrap;
37
37
  }
38
38
 
@@ -43,11 +43,11 @@
43
43
  }
44
44
 
45
45
  /* Ensure same height for all cards in a gallery row */
46
- .ws-section-gallery .pf-v5-c-card {
46
+ .ws-section-gallery .pf-v6-c-card {
47
47
  height: 100%;
48
48
  }
49
49
 
50
50
  /* Limit width for data list view only */
51
- .ws-section-gallery .pf-v5-c-data-list {
51
+ .ws-section-gallery .pf-v6-c-data-list {
52
52
  max-width: 956px;
53
53
  }
@@ -30,7 +30,7 @@ export const SectionGalleryToolbar = ({
30
30
  </ToggleGroup>
31
31
  </ToolbarItem>
32
32
  </ToolbarGroup>
33
- <ToolbarItem variant="pagination" spacer={{default: 'spacerMd', md: 'spacerNone'}} style={{'--pf-v5-c-toolbar__item--MinWidth': "max-content"}}>
33
+ <ToolbarItem variant="pagination" spacer={{default: 'spacerMd', md: 'spacerNone'}} style={{'--pf-v6-c-toolbar__item--MinWidth': "max-content"}}>
34
34
  <Text component={TextVariants.small}>{ galleryItems.length }{ countText }</Text>
35
35
  </ToolbarItem>
36
36
  </ToolbarContent>
@@ -1,21 +1,17 @@
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);
1
+ .ws-page-sidebar .pf-v6-c-nav {
2
+ --pf-v6-c-nav__link--before--BorderBottomWidth: 0;
3
+ --pf-v6-c-nav--m-light__link--hover--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
4
+ --pf-v6-c-nav--m-light__link--focus--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
5
+ --pf-v6-c-nav--m-light__link--m-current--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
6
+ --pf-v6-c-nav--m-light__link--active--BackgroundColor: var(--pf-v6-global--BackgroundColor--light-200);
7
+ --pf-v6-c-nav__link--m-current--BackgroundColor: var(--pf-t--global--background--color--action--plain--alt--clicked);
8
8
  }
9
9
 
10
- .ws-side-nav-list .pf-v5-c-nav__item.pf-m-expandable::before {
10
+ .ws-side-nav-list .pf-v6-c-nav__item.pf-m-expandable::before {
11
11
  border-bottom: 0;
12
12
  }
13
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);
14
+ .pf-v6-c-nav__subsection-title {
15
+ color: var(--ws-toc-link--Color, var(--pf-v6-global--Color--300));
16
+ font-size: var(--pf-v6-global--FontSize--sm);
21
17
  }
@@ -19,14 +19,14 @@ const NavItem = ({ text, href, isDeprecated, isBeta, isDemo }) => {
19
19
  return (
20
20
  <PageContextConsumer key={href + text}>
21
21
  {({onSidebarToggle, isSidebarOpen }) => (
22
- <li key={href + text} className="pf-v5-c-nav__item" onClick={() => isMobileView && onSidebarToggle && onSidebarToggle()}>
22
+ <li key={href + text} className="pf-v6-c-nav__item" onClick={() => isMobileView && onSidebarToggle && onSidebarToggle()}>
23
23
  <Link
24
24
  to={href}
25
25
  getProps={({ isCurrent, href, location }) => {
26
26
  const { pathname } = location;
27
27
  return {
28
28
  className: css(
29
- 'pf-v5-c-nav__link',
29
+ 'pf-v6-c-nav__link',
30
30
  (isCurrent || pathname.startsWith(href + '/')) && 'pf-m-current'
31
31
  )
32
32
  }}
@@ -67,7 +67,6 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
67
67
  key={capitalize(currentSection.replace(/-/g, ' '))}
68
68
  isActive={isActive}
69
69
  isExpanded={isActive}
70
- className="ws-side-nav-group"
71
70
  onClick={(event) => {
72
71
  // Don't bubble click event up, avoids subsection triggering duplicate analtics
73
72
  event.stopPropagation();
@@ -96,7 +95,7 @@ const ExpandableNav = ({groupedRoutes, location, section, subsection = null}) =>
96
95
  source.source === "react-deprecated" || source.source === "html-deprecated")
97
96
  && !navObj.sources.some(source => source.source === "react" || source.source === "html")
98
97
  ),
99
- isBeta: navObj.sources.some(source => source.beta),
98
+ isBeta: navObj.sources.some(source => source.beta && source.source !== 'react-next' && source.source !== 'react-templates'),
100
99
  isDemo: navObj.sources.some(source => (
101
100
  source.source === "react-demos" || source.source === "html-demos")
102
101
  && !navObj.sources.some(source => source.source === "react" || source.source === "html")