@patternfly/react-core 4.161.1 → 4.162.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 +35 -0
- package/dist/esm/components/DualListSelector/DualListSelectorControl.d.ts +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorControlsWrapper.d.ts +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorListItem.d.ts +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorListWrapper.d.ts +1 -1
- package/dist/esm/components/Nav/Nav.d.ts +4 -0
- package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
- package/dist/esm/components/Nav/Nav.js +5 -2
- package/dist/esm/components/Nav/Nav.js.map +1 -1
- package/dist/esm/components/Nav/NavItem.d.ts +4 -0
- package/dist/esm/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavItem.js +96 -6
- package/dist/esm/components/Nav/NavItem.js.map +1 -1
- package/dist/esm/components/Nav/NavList.d.ts +2 -0
- package/dist/esm/components/Nav/NavList.d.ts.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorControl.d.ts +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorControlsWrapper.d.ts +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorListItem.d.ts +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorListWrapper.d.ts +1 -1
- package/dist/js/components/Nav/Nav.d.ts +4 -0
- package/dist/js/components/Nav/Nav.d.ts.map +1 -1
- package/dist/js/components/Nav/Nav.js +5 -2
- package/dist/js/components/Nav/Nav.js.map +1 -1
- package/dist/js/components/Nav/NavItem.d.ts +4 -0
- package/dist/js/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/js/components/Nav/NavItem.js +96 -6
- package/dist/js/components/Nav/NavItem.js.map +1 -1
- package/dist/js/components/Nav/NavList.d.ts +2 -0
- package/dist/js/components/Nav/NavList.d.ts.map +1 -1
- package/dist/umd/react-core.css +9093 -9048
- package/dist/umd/react-core.js +103 -8
- package/dist/umd/react-core.min.css +9357 -9313
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Nav/Nav.tsx +11 -3
- package/src/components/Nav/NavItem.tsx +124 -3
- package/src/components/Nav/__tests__/Generated/__snapshots__/Nav.test.tsx.snap +2 -0
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavItem.test.tsx.snap +1 -0
- package/src/components/Nav/__tests__/__snapshots__/Nav.test.tsx.snap +49 -0
- package/src/components/Nav/examples/Nav.md +69 -0
- package/src/components/Nav/examples/nav.css +6 -1
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.162.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.12.
|
|
38
|
-
"@patternfly/react-styles": "^4.12.
|
|
39
|
-
"@patternfly/react-tokens": "^4.
|
|
37
|
+
"@patternfly/react-icons": "^4.12.4",
|
|
38
|
+
"@patternfly/react-styles": "^4.12.4",
|
|
39
|
+
"@patternfly/react-tokens": "^4.14.0",
|
|
40
40
|
"focus-trap": "6.2.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.144.
|
|
46
|
+
"@patternfly/patternfly": "4.144.4",
|
|
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": "21f7d39c1542a78d1a9cbc0b71bec3c111d6e776"
|
|
64
64
|
}
|
|
@@ -55,9 +55,14 @@ export const NavContext = React.createContext<{
|
|
|
55
55
|
onToggle?: (event: React.MouseEvent<HTMLButtonElement>, groupId: number | string, expanded: boolean) => void;
|
|
56
56
|
updateIsScrollable?: (isScrollable: boolean) => void;
|
|
57
57
|
isHorizontal?: boolean;
|
|
58
|
+
flyoutRef?: React.Ref<HTMLLIElement>;
|
|
59
|
+
setFlyoutRef?: (ref: React.Ref<HTMLLIElement>) => void;
|
|
58
60
|
}>({});
|
|
59
61
|
|
|
60
|
-
export class Nav extends React.Component<
|
|
62
|
+
export class Nav extends React.Component<
|
|
63
|
+
NavProps,
|
|
64
|
+
{ isScrollable: boolean; ouiaStateId: string; flyoutRef: React.Ref<HTMLLIElement> | null }
|
|
65
|
+
> {
|
|
61
66
|
static displayName = 'Nav';
|
|
62
67
|
static defaultProps: NavProps = {
|
|
63
68
|
onSelect: () => undefined,
|
|
@@ -68,7 +73,8 @@ export class Nav extends React.Component<NavProps, { isScrollable: boolean; ouia
|
|
|
68
73
|
|
|
69
74
|
state = {
|
|
70
75
|
isScrollable: false,
|
|
71
|
-
ouiaStateId: getDefaultOUIAId(Nav.displayName, this.props.variant)
|
|
76
|
+
ouiaStateId: getDefaultOUIAId(Nav.displayName, this.props.variant),
|
|
77
|
+
flyoutRef: null as React.Ref<HTMLLIElement>
|
|
72
78
|
};
|
|
73
79
|
|
|
74
80
|
// Callback from NavItem
|
|
@@ -136,7 +142,9 @@ export class Nav extends React.Component<NavProps, { isScrollable: boolean; ouia
|
|
|
136
142
|
onToggle: (event: React.MouseEvent<HTMLButtonElement>, groupId: number | string, expanded: boolean) =>
|
|
137
143
|
this.onToggle(event, groupId, expanded),
|
|
138
144
|
updateIsScrollable: (isScrollable: boolean) => this.setState({ isScrollable }),
|
|
139
|
-
isHorizontal: ['horizontal', 'tertiary', 'horizontal-subnav'].includes(variant)
|
|
145
|
+
isHorizontal: ['horizontal', 'tertiary', 'horizontal-subnav'].includes(variant),
|
|
146
|
+
flyoutRef: this.state.flyoutRef,
|
|
147
|
+
setFlyoutRef: flyoutRef => this.setState({ flyoutRef })
|
|
140
148
|
}}
|
|
141
149
|
>
|
|
142
150
|
<nav
|
|
@@ -4,6 +4,7 @@ import { css } from '@patternfly/react-styles';
|
|
|
4
4
|
import { NavContext, NavSelectClickHandler } from './Nav';
|
|
5
5
|
import { PageSidebarContext } from '../Page/PageSidebar';
|
|
6
6
|
import { useOUIAProps, OUIAProps } from '../../helpers';
|
|
7
|
+
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
7
8
|
|
|
8
9
|
export interface NavItemProps extends Omit<React.HTMLProps<HTMLAnchorElement>, 'onClick'>, OUIAProps {
|
|
9
10
|
/** Content rendered inside the nav item. */
|
|
@@ -26,6 +27,10 @@ export interface NavItemProps extends Omit<React.HTMLProps<HTMLAnchorElement>, '
|
|
|
26
27
|
onClick?: NavSelectClickHandler;
|
|
27
28
|
/** Component used to render NavItems if React.isValidElement(children) is false */
|
|
28
29
|
component?: React.ReactNode;
|
|
30
|
+
/** Flyout of a nav item. This should be a Menu component. */
|
|
31
|
+
flyout?: React.ReactNode;
|
|
32
|
+
/** Callback when flyout is opened or closed */
|
|
33
|
+
onShowFlyout?: () => void;
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
export const NavItem: React.FunctionComponent<NavItemProps> = ({
|
|
@@ -39,12 +44,110 @@ export const NavItem: React.FunctionComponent<NavItemProps> = ({
|
|
|
39
44
|
preventDefault = false,
|
|
40
45
|
onClick = null as NavSelectClickHandler,
|
|
41
46
|
component = 'a',
|
|
47
|
+
flyout,
|
|
48
|
+
onShowFlyout,
|
|
42
49
|
ouiaId,
|
|
43
50
|
ouiaSafe,
|
|
44
51
|
...props
|
|
45
52
|
}: NavItemProps) => {
|
|
46
|
-
const
|
|
53
|
+
const { flyoutRef, setFlyoutRef } = React.useContext(NavContext);
|
|
47
54
|
const { isNavOpen } = React.useContext(PageSidebarContext);
|
|
55
|
+
const [flyoutTarget, setFlyoutTarget] = React.useState(null);
|
|
56
|
+
const ref = React.useRef<HTMLLIElement>();
|
|
57
|
+
const flyoutVisible = ref === flyoutRef;
|
|
58
|
+
const Component = component as any;
|
|
59
|
+
const hasFlyout = flyout !== undefined;
|
|
60
|
+
|
|
61
|
+
const showFlyout = (show: boolean, override?: boolean) => {
|
|
62
|
+
if ((!flyoutVisible || override) && show) {
|
|
63
|
+
setFlyoutRef(ref);
|
|
64
|
+
} else if ((flyoutVisible || override) && !show) {
|
|
65
|
+
setFlyoutRef(null);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
onShowFlyout && show && onShowFlyout();
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const onMouseOver = (event: React.MouseEvent) => {
|
|
72
|
+
const evtContainedInFlyout = (event.target as HTMLElement).closest('.pf-c-nav__item.pf-m-flyout');
|
|
73
|
+
if (hasFlyout && !flyoutVisible) {
|
|
74
|
+
showFlyout(true);
|
|
75
|
+
} else if (flyoutRef !== null && !evtContainedInFlyout) {
|
|
76
|
+
setFlyoutRef(null);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const onFlyoutClick = (event: MouseEvent) => {
|
|
81
|
+
const target = event.target;
|
|
82
|
+
const closestItem = (target as HTMLElement).closest('.pf-m-flyout');
|
|
83
|
+
if (!closestItem) {
|
|
84
|
+
if (hasFlyout) {
|
|
85
|
+
showFlyout(false, true);
|
|
86
|
+
} else if (flyoutRef !== null) {
|
|
87
|
+
setFlyoutRef(null);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
React.useEffect(() => {
|
|
93
|
+
if (hasFlyout) {
|
|
94
|
+
window.addEventListener('click', onFlyoutClick);
|
|
95
|
+
}
|
|
96
|
+
return () => {
|
|
97
|
+
if (hasFlyout) {
|
|
98
|
+
window.removeEventListener('click', onFlyoutClick);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}, []);
|
|
102
|
+
|
|
103
|
+
React.useEffect(() => {
|
|
104
|
+
if (flyoutTarget) {
|
|
105
|
+
if (flyoutVisible) {
|
|
106
|
+
const flyoutMenu = (flyoutTarget as HTMLElement).nextElementSibling;
|
|
107
|
+
const flyoutItems = Array.from(flyoutMenu.getElementsByTagName('UL')[0].children).filter(
|
|
108
|
+
el => !(el.classList.contains('pf-m-disabled') || el.classList.contains('pf-c-divider'))
|
|
109
|
+
);
|
|
110
|
+
(flyoutItems[0].firstChild as HTMLElement).focus();
|
|
111
|
+
} else {
|
|
112
|
+
flyoutTarget.focus();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}, [flyoutVisible, flyoutTarget]);
|
|
116
|
+
|
|
117
|
+
const handleFlyout = (event: React.KeyboardEvent) => {
|
|
118
|
+
const key = event.key;
|
|
119
|
+
const target = event.target as HTMLElement;
|
|
120
|
+
|
|
121
|
+
if (!hasFlyout) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (key === ' ' || key === 'ArrowRight') {
|
|
126
|
+
event.stopPropagation();
|
|
127
|
+
event.preventDefault();
|
|
128
|
+
if (!flyoutVisible) {
|
|
129
|
+
showFlyout(true);
|
|
130
|
+
setFlyoutTarget(target as HTMLElement);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (key === 'Escape' || key === 'ArrowLeft') {
|
|
135
|
+
if (flyoutVisible) {
|
|
136
|
+
event.stopPropagation();
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
showFlyout(false);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const flyoutButton = (
|
|
144
|
+
<span className={css(styles.navToggle)}>
|
|
145
|
+
<span className={css(styles.navToggleIcon)}>
|
|
146
|
+
<AngleRightIcon aria-hidden />
|
|
147
|
+
</span>
|
|
148
|
+
</span>
|
|
149
|
+
);
|
|
150
|
+
|
|
48
151
|
const renderDefaultLink = (context: any): React.ReactNode => {
|
|
49
152
|
const preventLinkDefault = preventDefault || !to;
|
|
50
153
|
return (
|
|
@@ -57,6 +160,7 @@ export const NavItem: React.FunctionComponent<NavItemProps> = ({
|
|
|
57
160
|
{...props}
|
|
58
161
|
>
|
|
59
162
|
{children}
|
|
163
|
+
{flyout && flyoutButton}
|
|
60
164
|
</Component>
|
|
61
165
|
);
|
|
62
166
|
};
|
|
@@ -68,13 +172,29 @@ export const NavItem: React.FunctionComponent<NavItemProps> = ({
|
|
|
68
172
|
...(styleChildren && {
|
|
69
173
|
className: css(styles.navLink, isActive && styles.modifiers.current, child.props && child.props.className)
|
|
70
174
|
}),
|
|
71
|
-
tabIndex: child.props.tabIndex || isNavOpen ? null : -1
|
|
175
|
+
tabIndex: child.props.tabIndex || isNavOpen ? null : -1,
|
|
176
|
+
children: hasFlyout ? (
|
|
177
|
+
<React.Fragment>
|
|
178
|
+
{child.props.children}
|
|
179
|
+
{flyoutButton}
|
|
180
|
+
</React.Fragment>
|
|
181
|
+
) : (
|
|
182
|
+
child.props.children
|
|
183
|
+
)
|
|
72
184
|
});
|
|
73
185
|
|
|
74
186
|
const ouiaProps = useOUIAProps(NavItem.displayName, ouiaId, ouiaSafe);
|
|
75
187
|
|
|
76
188
|
return (
|
|
77
|
-
<li
|
|
189
|
+
<li
|
|
190
|
+
{...(hasFlyout && {
|
|
191
|
+
onKeyDown: handleFlyout
|
|
192
|
+
})}
|
|
193
|
+
onMouseOver={onMouseOver}
|
|
194
|
+
className={css(styles.navItem, hasFlyout && styles.modifiers.flyout, className)}
|
|
195
|
+
ref={ref}
|
|
196
|
+
{...ouiaProps}
|
|
197
|
+
>
|
|
78
198
|
<NavContext.Consumer>
|
|
79
199
|
{context =>
|
|
80
200
|
React.isValidElement(children)
|
|
@@ -82,6 +202,7 @@ export const NavItem: React.FunctionComponent<NavItemProps> = ({
|
|
|
82
202
|
: renderDefaultLink(context)
|
|
83
203
|
}
|
|
84
204
|
</NavContext.Consumer>
|
|
205
|
+
{flyoutVisible && flyout}
|
|
85
206
|
</li>
|
|
86
207
|
);
|
|
87
208
|
};
|
|
@@ -4,9 +4,11 @@ exports[`Nav should match snapshot (auto-generated) 1`] = `
|
|
|
4
4
|
<ContextProvider
|
|
5
5
|
value={
|
|
6
6
|
Object {
|
|
7
|
+
"flyoutRef": null,
|
|
7
8
|
"isHorizontal": false,
|
|
8
9
|
"onSelect": [Function],
|
|
9
10
|
"onToggle": [Function],
|
|
11
|
+
"setFlyoutRef": [Function],
|
|
10
12
|
"updateIsScrollable": [Function],
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -34,6 +34,7 @@ exports[`Dark Nav List 1`] = `
|
|
|
34
34
|
data-ouia-component-id="OUIA-Generated-NavItem-5"
|
|
35
35
|
data-ouia-component-type="PF4/NavItem"
|
|
36
36
|
data-ouia-safe={true}
|
|
37
|
+
onMouseOver={[Function]}
|
|
37
38
|
>
|
|
38
39
|
<a
|
|
39
40
|
aria-current={null}
|
|
@@ -56,6 +57,7 @@ exports[`Dark Nav List 1`] = `
|
|
|
56
57
|
data-ouia-component-id="OUIA-Generated-NavItem-6"
|
|
57
58
|
data-ouia-component-type="PF4/NavItem"
|
|
58
59
|
data-ouia-safe={true}
|
|
60
|
+
onMouseOver={[Function]}
|
|
59
61
|
>
|
|
60
62
|
<a
|
|
61
63
|
aria-current={null}
|
|
@@ -78,6 +80,7 @@ exports[`Dark Nav List 1`] = `
|
|
|
78
80
|
data-ouia-component-id="OUIA-Generated-NavItem-7"
|
|
79
81
|
data-ouia-component-type="PF4/NavItem"
|
|
80
82
|
data-ouia-safe={true}
|
|
83
|
+
onMouseOver={[Function]}
|
|
81
84
|
>
|
|
82
85
|
<a
|
|
83
86
|
aria-current={null}
|
|
@@ -100,6 +103,7 @@ exports[`Dark Nav List 1`] = `
|
|
|
100
103
|
data-ouia-component-id="OUIA-Generated-NavItem-8"
|
|
101
104
|
data-ouia-component-type="PF4/NavItem"
|
|
102
105
|
data-ouia-safe={true}
|
|
106
|
+
onMouseOver={[Function]}
|
|
103
107
|
>
|
|
104
108
|
<a
|
|
105
109
|
aria-current={null}
|
|
@@ -149,6 +153,7 @@ exports[`Default Nav List - Trigger item active update 1`] = `
|
|
|
149
153
|
data-ouia-component-id="OUIA-Generated-NavItem-1"
|
|
150
154
|
data-ouia-component-type="PF4/NavItem"
|
|
151
155
|
data-ouia-safe={true}
|
|
156
|
+
onMouseOver={[Function]}
|
|
152
157
|
>
|
|
153
158
|
<a
|
|
154
159
|
aria-current={null}
|
|
@@ -170,6 +175,7 @@ exports[`Default Nav List - Trigger item active update 1`] = `
|
|
|
170
175
|
data-ouia-component-id="OUIA-Generated-NavItem-2"
|
|
171
176
|
data-ouia-component-type="PF4/NavItem"
|
|
172
177
|
data-ouia-safe={true}
|
|
178
|
+
onMouseOver={[Function]}
|
|
173
179
|
>
|
|
174
180
|
<a
|
|
175
181
|
aria-current={null}
|
|
@@ -191,6 +197,7 @@ exports[`Default Nav List - Trigger item active update 1`] = `
|
|
|
191
197
|
data-ouia-component-id="OUIA-Generated-NavItem-3"
|
|
192
198
|
data-ouia-component-type="PF4/NavItem"
|
|
193
199
|
data-ouia-safe={true}
|
|
200
|
+
onMouseOver={[Function]}
|
|
194
201
|
>
|
|
195
202
|
<a
|
|
196
203
|
aria-current={null}
|
|
@@ -212,6 +219,7 @@ exports[`Default Nav List - Trigger item active update 1`] = `
|
|
|
212
219
|
data-ouia-component-id="OUIA-Generated-NavItem-4"
|
|
213
220
|
data-ouia-component-type="PF4/NavItem"
|
|
214
221
|
data-ouia-safe={true}
|
|
222
|
+
onMouseOver={[Function]}
|
|
215
223
|
>
|
|
216
224
|
<a
|
|
217
225
|
aria-current={null}
|
|
@@ -264,6 +272,7 @@ exports[`Default Nav List 1`] = `
|
|
|
264
272
|
data-ouia-component-id="OUIA-Generated-NavItem-1"
|
|
265
273
|
data-ouia-component-type="PF4/NavItem"
|
|
266
274
|
data-ouia-safe={true}
|
|
275
|
+
onMouseOver={[Function]}
|
|
267
276
|
>
|
|
268
277
|
<a
|
|
269
278
|
aria-current={null}
|
|
@@ -286,6 +295,7 @@ exports[`Default Nav List 1`] = `
|
|
|
286
295
|
data-ouia-component-id="OUIA-Generated-NavItem-2"
|
|
287
296
|
data-ouia-component-type="PF4/NavItem"
|
|
288
297
|
data-ouia-safe={true}
|
|
298
|
+
onMouseOver={[Function]}
|
|
289
299
|
>
|
|
290
300
|
<a
|
|
291
301
|
aria-current={null}
|
|
@@ -308,6 +318,7 @@ exports[`Default Nav List 1`] = `
|
|
|
308
318
|
data-ouia-component-id="OUIA-Generated-NavItem-3"
|
|
309
319
|
data-ouia-component-type="PF4/NavItem"
|
|
310
320
|
data-ouia-safe={true}
|
|
321
|
+
onMouseOver={[Function]}
|
|
311
322
|
>
|
|
312
323
|
<a
|
|
313
324
|
aria-current={null}
|
|
@@ -330,6 +341,7 @@ exports[`Default Nav List 1`] = `
|
|
|
330
341
|
data-ouia-component-id="OUIA-Generated-NavItem-4"
|
|
331
342
|
data-ouia-component-type="PF4/NavItem"
|
|
332
343
|
data-ouia-safe={true}
|
|
344
|
+
onMouseOver={[Function]}
|
|
333
345
|
>
|
|
334
346
|
<a
|
|
335
347
|
aria-current={null}
|
|
@@ -444,6 +456,7 @@ exports[`Expandable Nav List - Trigger toggle 1`] = `
|
|
|
444
456
|
data-ouia-component-id="OUIA-Generated-NavItem-5"
|
|
445
457
|
data-ouia-component-type="PF4/NavItem"
|
|
446
458
|
data-ouia-safe={true}
|
|
459
|
+
onMouseOver={[Function]}
|
|
447
460
|
>
|
|
448
461
|
<a
|
|
449
462
|
aria-current={null}
|
|
@@ -465,6 +478,7 @@ exports[`Expandable Nav List - Trigger toggle 1`] = `
|
|
|
465
478
|
data-ouia-component-id="OUIA-Generated-NavItem-6"
|
|
466
479
|
data-ouia-component-type="PF4/NavItem"
|
|
467
480
|
data-ouia-safe={true}
|
|
481
|
+
onMouseOver={[Function]}
|
|
468
482
|
>
|
|
469
483
|
<a
|
|
470
484
|
aria-current={null}
|
|
@@ -486,6 +500,7 @@ exports[`Expandable Nav List - Trigger toggle 1`] = `
|
|
|
486
500
|
data-ouia-component-id="OUIA-Generated-NavItem-7"
|
|
487
501
|
data-ouia-component-type="PF4/NavItem"
|
|
488
502
|
data-ouia-safe={true}
|
|
503
|
+
onMouseOver={[Function]}
|
|
489
504
|
>
|
|
490
505
|
<a
|
|
491
506
|
aria-current={null}
|
|
@@ -507,6 +522,7 @@ exports[`Expandable Nav List - Trigger toggle 1`] = `
|
|
|
507
522
|
data-ouia-component-id="OUIA-Generated-NavItem-8"
|
|
508
523
|
data-ouia-component-type="PF4/NavItem"
|
|
509
524
|
data-ouia-safe={true}
|
|
525
|
+
onMouseOver={[Function]}
|
|
510
526
|
>
|
|
511
527
|
<a
|
|
512
528
|
aria-current={null}
|
|
@@ -625,6 +641,7 @@ exports[`Expandable Nav List 1`] = `
|
|
|
625
641
|
data-ouia-component-id="OUIA-Generated-NavItem-13"
|
|
626
642
|
data-ouia-component-type="PF4/NavItem"
|
|
627
643
|
data-ouia-safe={true}
|
|
644
|
+
onMouseOver={[Function]}
|
|
628
645
|
>
|
|
629
646
|
<a
|
|
630
647
|
aria-current={null}
|
|
@@ -646,6 +663,7 @@ exports[`Expandable Nav List 1`] = `
|
|
|
646
663
|
data-ouia-component-id="OUIA-Generated-NavItem-14"
|
|
647
664
|
data-ouia-component-type="PF4/NavItem"
|
|
648
665
|
data-ouia-safe={true}
|
|
666
|
+
onMouseOver={[Function]}
|
|
649
667
|
>
|
|
650
668
|
<a
|
|
651
669
|
aria-current={null}
|
|
@@ -667,6 +685,7 @@ exports[`Expandable Nav List 1`] = `
|
|
|
667
685
|
data-ouia-component-id="OUIA-Generated-NavItem-15"
|
|
668
686
|
data-ouia-component-type="PF4/NavItem"
|
|
669
687
|
data-ouia-safe={true}
|
|
688
|
+
onMouseOver={[Function]}
|
|
670
689
|
>
|
|
671
690
|
<a
|
|
672
691
|
aria-current={null}
|
|
@@ -688,6 +707,7 @@ exports[`Expandable Nav List 1`] = `
|
|
|
688
707
|
data-ouia-component-id="OUIA-Generated-NavItem-16"
|
|
689
708
|
data-ouia-component-type="PF4/NavItem"
|
|
690
709
|
data-ouia-safe={true}
|
|
710
|
+
onMouseOver={[Function]}
|
|
691
711
|
>
|
|
692
712
|
<a
|
|
693
713
|
aria-current={null}
|
|
@@ -813,6 +833,7 @@ exports[`Expandable Nav List with aria label 1`] = `
|
|
|
813
833
|
data-ouia-component-id="OUIA-Generated-NavItem-21"
|
|
814
834
|
data-ouia-component-type="PF4/NavItem"
|
|
815
835
|
data-ouia-safe={true}
|
|
836
|
+
onMouseOver={[Function]}
|
|
816
837
|
>
|
|
817
838
|
<a
|
|
818
839
|
aria-current={null}
|
|
@@ -834,6 +855,7 @@ exports[`Expandable Nav List with aria label 1`] = `
|
|
|
834
855
|
data-ouia-component-id="OUIA-Generated-NavItem-22"
|
|
835
856
|
data-ouia-component-type="PF4/NavItem"
|
|
836
857
|
data-ouia-safe={true}
|
|
858
|
+
onMouseOver={[Function]}
|
|
837
859
|
>
|
|
838
860
|
<a
|
|
839
861
|
aria-current={null}
|
|
@@ -855,6 +877,7 @@ exports[`Expandable Nav List with aria label 1`] = `
|
|
|
855
877
|
data-ouia-component-id="OUIA-Generated-NavItem-23"
|
|
856
878
|
data-ouia-component-type="PF4/NavItem"
|
|
857
879
|
data-ouia-safe={true}
|
|
880
|
+
onMouseOver={[Function]}
|
|
858
881
|
>
|
|
859
882
|
<a
|
|
860
883
|
aria-current={null}
|
|
@@ -876,6 +899,7 @@ exports[`Expandable Nav List with aria label 1`] = `
|
|
|
876
899
|
data-ouia-component-id="OUIA-Generated-NavItem-24"
|
|
877
900
|
data-ouia-component-type="PF4/NavItem"
|
|
878
901
|
data-ouia-safe={true}
|
|
902
|
+
onMouseOver={[Function]}
|
|
879
903
|
>
|
|
880
904
|
<a
|
|
881
905
|
aria-current={null}
|
|
@@ -962,6 +986,7 @@ exports[`Horizontal Nav List 1`] = `
|
|
|
962
986
|
data-ouia-component-id="OUIA-Generated-NavItem-33"
|
|
963
987
|
data-ouia-component-type="PF4/NavItem"
|
|
964
988
|
data-ouia-safe={true}
|
|
989
|
+
onMouseOver={[Function]}
|
|
965
990
|
>
|
|
966
991
|
<a
|
|
967
992
|
aria-current={null}
|
|
@@ -983,6 +1008,7 @@ exports[`Horizontal Nav List 1`] = `
|
|
|
983
1008
|
data-ouia-component-id="OUIA-Generated-NavItem-34"
|
|
984
1009
|
data-ouia-component-type="PF4/NavItem"
|
|
985
1010
|
data-ouia-safe={true}
|
|
1011
|
+
onMouseOver={[Function]}
|
|
986
1012
|
>
|
|
987
1013
|
<a
|
|
988
1014
|
aria-current={null}
|
|
@@ -1004,6 +1030,7 @@ exports[`Horizontal Nav List 1`] = `
|
|
|
1004
1030
|
data-ouia-component-id="OUIA-Generated-NavItem-35"
|
|
1005
1031
|
data-ouia-component-type="PF4/NavItem"
|
|
1006
1032
|
data-ouia-safe={true}
|
|
1033
|
+
onMouseOver={[Function]}
|
|
1007
1034
|
>
|
|
1008
1035
|
<a
|
|
1009
1036
|
aria-current={null}
|
|
@@ -1025,6 +1052,7 @@ exports[`Horizontal Nav List 1`] = `
|
|
|
1025
1052
|
data-ouia-component-id="OUIA-Generated-NavItem-36"
|
|
1026
1053
|
data-ouia-component-type="PF4/NavItem"
|
|
1027
1054
|
data-ouia-safe={true}
|
|
1055
|
+
onMouseOver={[Function]}
|
|
1028
1056
|
>
|
|
1029
1057
|
<a
|
|
1030
1058
|
aria-current={null}
|
|
@@ -1139,6 +1167,7 @@ exports[`Horizontal SubNav List 1`] = `
|
|
|
1139
1167
|
data-ouia-component-id="OUIA-Generated-NavItem-37"
|
|
1140
1168
|
data-ouia-component-type="PF4/NavItem"
|
|
1141
1169
|
data-ouia-safe={true}
|
|
1170
|
+
onMouseOver={[Function]}
|
|
1142
1171
|
>
|
|
1143
1172
|
<a
|
|
1144
1173
|
aria-current={null}
|
|
@@ -1160,6 +1189,7 @@ exports[`Horizontal SubNav List 1`] = `
|
|
|
1160
1189
|
data-ouia-component-id="OUIA-Generated-NavItem-38"
|
|
1161
1190
|
data-ouia-component-type="PF4/NavItem"
|
|
1162
1191
|
data-ouia-safe={true}
|
|
1192
|
+
onMouseOver={[Function]}
|
|
1163
1193
|
>
|
|
1164
1194
|
<a
|
|
1165
1195
|
aria-current={null}
|
|
@@ -1181,6 +1211,7 @@ exports[`Horizontal SubNav List 1`] = `
|
|
|
1181
1211
|
data-ouia-component-id="OUIA-Generated-NavItem-39"
|
|
1182
1212
|
data-ouia-component-type="PF4/NavItem"
|
|
1183
1213
|
data-ouia-safe={true}
|
|
1214
|
+
onMouseOver={[Function]}
|
|
1184
1215
|
>
|
|
1185
1216
|
<a
|
|
1186
1217
|
aria-current={null}
|
|
@@ -1202,6 +1233,7 @@ exports[`Horizontal SubNav List 1`] = `
|
|
|
1202
1233
|
data-ouia-component-id="OUIA-Generated-NavItem-40"
|
|
1203
1234
|
data-ouia-component-type="PF4/NavItem"
|
|
1204
1235
|
data-ouia-safe={true}
|
|
1236
|
+
onMouseOver={[Function]}
|
|
1205
1237
|
>
|
|
1206
1238
|
<a
|
|
1207
1239
|
aria-current={null}
|
|
@@ -1300,6 +1332,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1300
1332
|
data-ouia-component-id="OUIA-Generated-NavItem-25"
|
|
1301
1333
|
data-ouia-component-type="PF4/NavItem"
|
|
1302
1334
|
data-ouia-safe={true}
|
|
1335
|
+
onMouseOver={[Function]}
|
|
1303
1336
|
>
|
|
1304
1337
|
<a
|
|
1305
1338
|
aria-current={null}
|
|
@@ -1321,6 +1354,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1321
1354
|
data-ouia-component-id="OUIA-Generated-NavItem-26"
|
|
1322
1355
|
data-ouia-component-type="PF4/NavItem"
|
|
1323
1356
|
data-ouia-safe={true}
|
|
1357
|
+
onMouseOver={[Function]}
|
|
1324
1358
|
>
|
|
1325
1359
|
<a
|
|
1326
1360
|
aria-current={null}
|
|
@@ -1342,6 +1376,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1342
1376
|
data-ouia-component-id="OUIA-Generated-NavItem-27"
|
|
1343
1377
|
data-ouia-component-type="PF4/NavItem"
|
|
1344
1378
|
data-ouia-safe={true}
|
|
1379
|
+
onMouseOver={[Function]}
|
|
1345
1380
|
>
|
|
1346
1381
|
<a
|
|
1347
1382
|
aria-current={null}
|
|
@@ -1363,6 +1398,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1363
1398
|
data-ouia-component-id="OUIA-Generated-NavItem-28"
|
|
1364
1399
|
data-ouia-component-type="PF4/NavItem"
|
|
1365
1400
|
data-ouia-safe={true}
|
|
1401
|
+
onMouseOver={[Function]}
|
|
1366
1402
|
>
|
|
1367
1403
|
<a
|
|
1368
1404
|
aria-current={null}
|
|
@@ -1414,6 +1450,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1414
1450
|
data-ouia-component-id="OUIA-Generated-NavItem-29"
|
|
1415
1451
|
data-ouia-component-type="PF4/NavItem"
|
|
1416
1452
|
data-ouia-safe={true}
|
|
1453
|
+
onMouseOver={[Function]}
|
|
1417
1454
|
>
|
|
1418
1455
|
<a
|
|
1419
1456
|
aria-current={null}
|
|
@@ -1435,6 +1472,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1435
1472
|
data-ouia-component-id="OUIA-Generated-NavItem-30"
|
|
1436
1473
|
data-ouia-component-type="PF4/NavItem"
|
|
1437
1474
|
data-ouia-safe={true}
|
|
1475
|
+
onMouseOver={[Function]}
|
|
1438
1476
|
>
|
|
1439
1477
|
<a
|
|
1440
1478
|
aria-current={null}
|
|
@@ -1456,6 +1494,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1456
1494
|
data-ouia-component-id="OUIA-Generated-NavItem-31"
|
|
1457
1495
|
data-ouia-component-type="PF4/NavItem"
|
|
1458
1496
|
data-ouia-safe={true}
|
|
1497
|
+
onMouseOver={[Function]}
|
|
1459
1498
|
>
|
|
1460
1499
|
<a
|
|
1461
1500
|
aria-current={null}
|
|
@@ -1477,6 +1516,7 @@ exports[`Nav Grouped List 1`] = `
|
|
|
1477
1516
|
data-ouia-component-id="OUIA-Generated-NavItem-32"
|
|
1478
1517
|
data-ouia-component-type="PF4/NavItem"
|
|
1479
1518
|
data-ouia-safe={true}
|
|
1519
|
+
onMouseOver={[Function]}
|
|
1480
1520
|
>
|
|
1481
1521
|
<a
|
|
1482
1522
|
aria-current={null}
|
|
@@ -1562,6 +1602,7 @@ exports[`Nav List with custom item nodes 1`] = `
|
|
|
1562
1602
|
data-ouia-component-id="OUIA-Generated-NavItem-45"
|
|
1563
1603
|
data-ouia-component-type="PF4/NavItem"
|
|
1564
1604
|
data-ouia-safe={true}
|
|
1605
|
+
onMouseOver={[Function]}
|
|
1565
1606
|
>
|
|
1566
1607
|
<div
|
|
1567
1608
|
aria-current={null}
|
|
@@ -1642,6 +1683,7 @@ exports[`Simple Nav List 1`] = `
|
|
|
1642
1683
|
data-ouia-component-id="OUIA-Generated-NavItem-9"
|
|
1643
1684
|
data-ouia-component-type="PF4/NavItem"
|
|
1644
1685
|
data-ouia-safe={true}
|
|
1686
|
+
onMouseOver={[Function]}
|
|
1645
1687
|
>
|
|
1646
1688
|
<a
|
|
1647
1689
|
aria-current={null}
|
|
@@ -1663,6 +1705,7 @@ exports[`Simple Nav List 1`] = `
|
|
|
1663
1705
|
data-ouia-component-id="OUIA-Generated-NavItem-10"
|
|
1664
1706
|
data-ouia-component-type="PF4/NavItem"
|
|
1665
1707
|
data-ouia-safe={true}
|
|
1708
|
+
onMouseOver={[Function]}
|
|
1666
1709
|
>
|
|
1667
1710
|
<a
|
|
1668
1711
|
aria-current={null}
|
|
@@ -1684,6 +1727,7 @@ exports[`Simple Nav List 1`] = `
|
|
|
1684
1727
|
data-ouia-component-id="OUIA-Generated-NavItem-11"
|
|
1685
1728
|
data-ouia-component-type="PF4/NavItem"
|
|
1686
1729
|
data-ouia-safe={true}
|
|
1730
|
+
onMouseOver={[Function]}
|
|
1687
1731
|
>
|
|
1688
1732
|
<a
|
|
1689
1733
|
aria-current={null}
|
|
@@ -1705,6 +1749,7 @@ exports[`Simple Nav List 1`] = `
|
|
|
1705
1749
|
data-ouia-component-id="OUIA-Generated-NavItem-12"
|
|
1706
1750
|
data-ouia-component-type="PF4/NavItem"
|
|
1707
1751
|
data-ouia-safe={true}
|
|
1752
|
+
onMouseOver={[Function]}
|
|
1708
1753
|
>
|
|
1709
1754
|
<a
|
|
1710
1755
|
aria-current={null}
|
|
@@ -1787,6 +1832,7 @@ exports[`Tertiary Nav List 1`] = `
|
|
|
1787
1832
|
data-ouia-component-id="OUIA-Generated-NavItem-41"
|
|
1788
1833
|
data-ouia-component-type="PF4/NavItem"
|
|
1789
1834
|
data-ouia-safe={true}
|
|
1835
|
+
onMouseOver={[Function]}
|
|
1790
1836
|
>
|
|
1791
1837
|
<a
|
|
1792
1838
|
aria-current={null}
|
|
@@ -1808,6 +1854,7 @@ exports[`Tertiary Nav List 1`] = `
|
|
|
1808
1854
|
data-ouia-component-id="OUIA-Generated-NavItem-42"
|
|
1809
1855
|
data-ouia-component-type="PF4/NavItem"
|
|
1810
1856
|
data-ouia-safe={true}
|
|
1857
|
+
onMouseOver={[Function]}
|
|
1811
1858
|
>
|
|
1812
1859
|
<a
|
|
1813
1860
|
aria-current={null}
|
|
@@ -1829,6 +1876,7 @@ exports[`Tertiary Nav List 1`] = `
|
|
|
1829
1876
|
data-ouia-component-id="OUIA-Generated-NavItem-43"
|
|
1830
1877
|
data-ouia-component-type="PF4/NavItem"
|
|
1831
1878
|
data-ouia-safe={true}
|
|
1879
|
+
onMouseOver={[Function]}
|
|
1832
1880
|
>
|
|
1833
1881
|
<a
|
|
1834
1882
|
aria-current={null}
|
|
@@ -1850,6 +1898,7 @@ exports[`Tertiary Nav List 1`] = `
|
|
|
1850
1898
|
data-ouia-component-id="OUIA-Generated-NavItem-44"
|
|
1851
1899
|
data-ouia-component-type="PF4/NavItem"
|
|
1852
1900
|
data-ouia-safe={true}
|
|
1901
|
+
onMouseOver={[Function]}
|
|
1853
1902
|
>
|
|
1854
1903
|
<a
|
|
1855
1904
|
aria-current={null}
|