@patternfly/react-core 4.222.16 → 4.223.1
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 +27 -0
- package/dist/esm/components/Masthead/MastheadToggle.js +1 -1
- package/dist/esm/components/Masthead/MastheadToggle.js.map +1 -1
- package/dist/esm/components/Page/PageSidebar.js +1 -1
- package/dist/esm/components/Page/PageSidebar.js.map +1 -1
- package/dist/js/components/Masthead/MastheadToggle.js +1 -1
- package/dist/js/components/Masthead/MastheadToggle.js.map +1 -1
- package/dist/js/components/Page/PageSidebar.js +1 -1
- package/dist/js/components/Page/PageSidebar.js.map +1 -1
- package/dist/umd/react-core.css +47 -19
- package/dist/umd/react-core.js +2 -3
- package/dist/umd/react-core.min.css +47 -19
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Masthead/MastheadToggle.tsx +2 -2
- package/src/components/Masthead/__tests__/__snapshots__/Masthead.test.tsx.snap +6 -6
- package/src/components/Page/PageSidebar.tsx +1 -1
- package/src/components/Page/__tests__/Generated/__snapshots__/PageSidebar.test.tsx.snap +1 -1
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +9 -9
- package/src/demos/examples/DashboardHeader.js +9 -5
- package/src/demos/examples/DashboardWrapper.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.223.1",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"generate": "node scripts/copyStyles.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@patternfly/react-icons": "^4.
|
|
38
|
-
"@patternfly/react-styles": "^4.
|
|
39
|
-
"@patternfly/react-tokens": "^4.
|
|
37
|
+
"@patternfly/react-icons": "^4.74.1",
|
|
38
|
+
"@patternfly/react-styles": "^4.73.1",
|
|
39
|
+
"@patternfly/react-tokens": "^4.75.1",
|
|
40
40
|
"focus-trap": "6.9.2",
|
|
41
41
|
"react-dropzone": "9.0.0",
|
|
42
42
|
"tippy.js": "5.1.2",
|
|
43
43
|
"tslib": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@patternfly/patternfly": "4.
|
|
46
|
+
"@patternfly/patternfly": "4.202.0",
|
|
47
47
|
"@rollup/plugin-commonjs": "^21.0.0",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
49
49
|
"@rollup/plugin-replace": "^3.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "3155699598a7362211658d7e88207c6c34a18c9c"
|
|
64
64
|
}
|
|
@@ -14,8 +14,8 @@ export const MastheadToggle: React.FunctionComponent<MastheadToggleProps> = ({
|
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
16
|
}: MastheadToggleProps) => (
|
|
17
|
-
<
|
|
17
|
+
<span className={css(styles.mastheadToggle, className)} {...props}>
|
|
18
18
|
{children}
|
|
19
|
-
</
|
|
19
|
+
</span>
|
|
20
20
|
);
|
|
21
21
|
MastheadToggle.displayName = 'MastheadToggle';
|
|
@@ -25,11 +25,11 @@ exports[`Masthead verify full structure 1`] = `
|
|
|
25
25
|
<header
|
|
26
26
|
class="pf-c-masthead pf-m-display-inline-on-md"
|
|
27
27
|
>
|
|
28
|
-
<
|
|
28
|
+
<span
|
|
29
29
|
class="pf-c-masthead__toggle"
|
|
30
30
|
>
|
|
31
31
|
Toggle
|
|
32
|
-
</
|
|
32
|
+
</span>
|
|
33
33
|
<div
|
|
34
34
|
class="pf-c-masthead__main"
|
|
35
35
|
>
|
|
@@ -226,20 +226,20 @@ exports[`MastheadMain verify custom class 1`] = `
|
|
|
226
226
|
|
|
227
227
|
exports[`MastheadToggle verify basic 1`] = `
|
|
228
228
|
<DocumentFragment>
|
|
229
|
-
<
|
|
229
|
+
<span
|
|
230
230
|
class="pf-c-masthead__toggle"
|
|
231
231
|
>
|
|
232
232
|
test
|
|
233
|
-
</
|
|
233
|
+
</span>
|
|
234
234
|
</DocumentFragment>
|
|
235
235
|
`;
|
|
236
236
|
|
|
237
237
|
exports[`MastheadToggle verify custom class 1`] = `
|
|
238
238
|
<DocumentFragment>
|
|
239
|
-
<
|
|
239
|
+
<span
|
|
240
240
|
class="pf-c-masthead__toggle custom-css"
|
|
241
241
|
>
|
|
242
242
|
test
|
|
243
|
-
</
|
|
243
|
+
</span>
|
|
244
244
|
</DocumentFragment>
|
|
245
245
|
`;
|
|
@@ -51,7 +51,7 @@ export const PageSidebar: React.FunctionComponent<PageSidebarProps> = ({
|
|
|
51
51
|
aria-hidden={!navOpen}
|
|
52
52
|
{...props}
|
|
53
53
|
>
|
|
54
|
-
<div className=
|
|
54
|
+
<div className={styles.pageSidebarBody}>
|
|
55
55
|
<PageSidebarContext.Provider value={{ isNavOpen: navOpen }}>{nav}</PageSidebarContext.Provider>
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
@@ -27,7 +27,7 @@ exports[`Page Check dark page against snapshot 1`] = `
|
|
|
27
27
|
id="page-sidebar"
|
|
28
28
|
>
|
|
29
29
|
<div
|
|
30
|
-
class="pf-
|
|
30
|
+
class="pf-c-page__sidebar-body"
|
|
31
31
|
>
|
|
32
32
|
Navigation
|
|
33
33
|
</div>
|
|
@@ -93,7 +93,7 @@ exports[`Page Check page horizontal layout example against snapshot 1`] = `
|
|
|
93
93
|
id="page-sidebar"
|
|
94
94
|
>
|
|
95
95
|
<div
|
|
96
|
-
class="pf-
|
|
96
|
+
class="pf-c-page__sidebar-body"
|
|
97
97
|
/>
|
|
98
98
|
</div>
|
|
99
99
|
<main
|
|
@@ -157,7 +157,7 @@ exports[`Page Check page to verify breadcrumb is created - PageBreadcrumb syntax
|
|
|
157
157
|
id="page-sidebar"
|
|
158
158
|
>
|
|
159
159
|
<div
|
|
160
|
-
class="pf-
|
|
160
|
+
class="pf-c-page__sidebar-body"
|
|
161
161
|
/>
|
|
162
162
|
</div>
|
|
163
163
|
<main
|
|
@@ -324,7 +324,7 @@ exports[`Page Check page to verify breadcrumb is created 1`] = `
|
|
|
324
324
|
id="page-sidebar"
|
|
325
325
|
>
|
|
326
326
|
<div
|
|
327
|
-
class="pf-
|
|
327
|
+
class="pf-c-page__sidebar-body"
|
|
328
328
|
/>
|
|
329
329
|
</div>
|
|
330
330
|
<main
|
|
@@ -491,7 +491,7 @@ exports[`Page Check page to verify grouped nav and breadcrumb - new components s
|
|
|
491
491
|
id="page-sidebar"
|
|
492
492
|
>
|
|
493
493
|
<div
|
|
494
|
-
class="pf-
|
|
494
|
+
class="pf-c-page__sidebar-body"
|
|
495
495
|
/>
|
|
496
496
|
</div>
|
|
497
497
|
<main
|
|
@@ -777,7 +777,7 @@ exports[`Page Check page to verify grouped nav and breadcrumb - old / props synt
|
|
|
777
777
|
id="page-sidebar"
|
|
778
778
|
>
|
|
779
779
|
<div
|
|
780
|
-
class="pf-
|
|
780
|
+
class="pf-c-page__sidebar-body"
|
|
781
781
|
/>
|
|
782
782
|
</div>
|
|
783
783
|
<main
|
|
@@ -1067,7 +1067,7 @@ exports[`Page Check page to verify nav is created - PageNavigation syntax 1`] =
|
|
|
1067
1067
|
id="page-sidebar"
|
|
1068
1068
|
>
|
|
1069
1069
|
<div
|
|
1070
|
-
class="pf-
|
|
1070
|
+
class="pf-c-page__sidebar-body"
|
|
1071
1071
|
/>
|
|
1072
1072
|
</div>
|
|
1073
1073
|
<main
|
|
@@ -1253,7 +1253,7 @@ exports[`Page Check page to verify skip to content points to main content region
|
|
|
1253
1253
|
id="page-sidebar"
|
|
1254
1254
|
>
|
|
1255
1255
|
<div
|
|
1256
|
-
class="pf-
|
|
1256
|
+
class="pf-c-page__sidebar-body"
|
|
1257
1257
|
/>
|
|
1258
1258
|
</div>
|
|
1259
1259
|
<main
|
|
@@ -1416,7 +1416,7 @@ exports[`Page Check page vertical layout example against snapshot 1`] = `
|
|
|
1416
1416
|
id="page-sidebar"
|
|
1417
1417
|
>
|
|
1418
1418
|
<div
|
|
1419
|
-
class="pf-
|
|
1419
|
+
class="pf-c-page__sidebar-body"
|
|
1420
1420
|
>
|
|
1421
1421
|
Navigation
|
|
1422
1422
|
</div>
|
|
@@ -27,7 +27,6 @@ import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
|
|
|
27
27
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
28
28
|
import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon';
|
|
29
29
|
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
30
|
-
import imgBrand from './pfColorLogo.svg';
|
|
31
30
|
import imgAvatar from '@patternfly/react-core/src/components/Avatar/examples/avatarImg.svg';
|
|
32
31
|
|
|
33
32
|
export default class DashboardHeader extends React.Component {
|
|
@@ -147,7 +146,7 @@ export default class DashboardHeader extends React.Component {
|
|
|
147
146
|
<Button aria-label="Help" variant={ButtonVariant.plain} icon={<QuestionCircleIcon />} />
|
|
148
147
|
</ToolbarItem>
|
|
149
148
|
</ToolbarGroup>
|
|
150
|
-
<ToolbarItem visibility={{
|
|
149
|
+
<ToolbarItem visibility={{ lg: 'hidden' }}>
|
|
151
150
|
<Dropdown
|
|
152
151
|
isPlain
|
|
153
152
|
position="right"
|
|
@@ -158,10 +157,8 @@ export default class DashboardHeader extends React.Component {
|
|
|
158
157
|
/>
|
|
159
158
|
</ToolbarItem>
|
|
160
159
|
</ToolbarGroup>
|
|
161
|
-
|
|
162
160
|
<ToolbarItem visibility={{ default: 'hidden', sm: 'visible' }}>
|
|
163
161
|
<Dropdown
|
|
164
|
-
position="right"
|
|
165
162
|
isFullHeight
|
|
166
163
|
onSelect={this.onDropdownSelect}
|
|
167
164
|
isOpen={isDropdownOpen}
|
|
@@ -186,7 +183,14 @@ export default class DashboardHeader extends React.Component {
|
|
|
186
183
|
</MastheadToggle>
|
|
187
184
|
<MastheadMain>
|
|
188
185
|
<MastheadBrand>
|
|
189
|
-
<Brand
|
|
186
|
+
<Brand
|
|
187
|
+
widths={{ default: '180px', md: '180px', '2xl': '220px' }}
|
|
188
|
+
src="/assets/images/logo__pf--reverse--base.png"
|
|
189
|
+
alt="Fallback patternFly default logo"
|
|
190
|
+
>
|
|
191
|
+
<source media="(min-width: 768px)" srcSet="/assets/images/logo__pf--reverse-on-md.svg" />
|
|
192
|
+
<source srcSet="/assets/images/logo__pf--reverse--base.svg" />
|
|
193
|
+
</Brand>
|
|
190
194
|
</MastheadBrand>
|
|
191
195
|
</MastheadMain>
|
|
192
196
|
<MastheadContent>{headerToolbar}</MastheadContent>
|
|
@@ -37,7 +37,7 @@ export default class DashboardWrapper extends React.Component {
|
|
|
37
37
|
constructor(props) {
|
|
38
38
|
super(props);
|
|
39
39
|
this.state = {
|
|
40
|
-
activeItem:
|
|
40
|
+
activeItem: 1
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
this.onNavSelect = result => {
|
|
@@ -70,7 +70,7 @@ export default class DashboardWrapper extends React.Component {
|
|
|
70
70
|
<Nav onSelect={this.onNavSelect} aria-label="Nav">
|
|
71
71
|
<NavList>
|
|
72
72
|
<NavItem itemId={0} isActive={activeItem === 0} to="#system-panel">
|
|
73
|
-
System
|
|
73
|
+
System panel
|
|
74
74
|
</NavItem>
|
|
75
75
|
<NavItem itemId={1} isActive={activeItem === 1} to="#policy">
|
|
76
76
|
Policy
|
|
@@ -79,7 +79,7 @@ export default class DashboardWrapper extends React.Component {
|
|
|
79
79
|
Authentication
|
|
80
80
|
</NavItem>
|
|
81
81
|
<NavItem itemId={3} isActive={activeItem === 3} to="#network">
|
|
82
|
-
Network
|
|
82
|
+
Network services
|
|
83
83
|
</NavItem>
|
|
84
84
|
<NavItem itemId={4} isActive={activeItem === 4} to="#server">
|
|
85
85
|
Server
|