qpp-style 9.20.0 → 9.20.2
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/coverage/clover.xml +291 -335
- package/coverage/coverage-final.json +71 -72
- package/coverage/lcov-report/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/components/Accordion/index.jsx.html +4 -4
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/components/Error/index.html +1 -1
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +358 -184
- package/coverage/lcov-report/components/{Header/HeaderUI.jsx.html → Footer/LegacyFooterUI.jsx.html} +274 -193
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +11 -11
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +11 -11
- package/coverage/lcov-report/components/Footer/index.html +44 -29
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +2 -2
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +5 -5
- package/coverage/lcov-report/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +3 -3
- package/coverage/lcov-report/components/Modal/Modal.jsx.html +5 -5
- package/coverage/lcov-report/components/Modal/index.html +1 -1
- package/coverage/lcov-report/components/Modal/index.jsx.html +5 -5
- package/coverage/lcov-report/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +4 -4
- package/coverage/lcov-report/components/{NotificationBanner/CollapsedView.js.html → SideNav/AnimationGroup/AnimationGroup.jsx.html} +41 -56
- package/coverage/lcov-report/components/{Button → SideNav/AnimationGroup}/index.html +30 -30
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +7 -7
- package/coverage/lcov-report/components/SideNav/Chart/index.html +16 -1
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +94 -0
- package/coverage/lcov-report/components/{NotificationBanner/index.js.html → SideNav/Content/LevelOneContent.jsx.html} +244 -283
- package/coverage/lcov-report/components/{Header/HeaderMenuItem.jsx.html → SideNav/Content/LevelTwoContent.jsx.html} +236 -305
- package/coverage/lcov-report/components/SideNav/Content/index.html +146 -0
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +97 -0
- package/coverage/lcov-report/components/{Header/HeaderCancel.jsx.html → SideNav/Details/IndividualDetails.jsx.html} +24 -18
- package/coverage/lcov-report/components/{NotificationBanner/ExpandedView.js.html → SideNav/Details/PracticeDetails.jsx.html} +64 -64
- package/coverage/lcov-report/components/{NotificationBanner → SideNav/Details}/index.html +40 -40
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +97 -0
- package/coverage/lcov-report/{react/components/NotificationBanner/ExpandedView.js.html → components/SideNav/Links/CmsSwitchLink.jsx.html} +43 -55
- package/coverage/lcov-report/components/{Header/HeaderMenuButton.js.html → SideNav/Links/NavItemInline.jsx.html} +75 -63
- package/coverage/lcov-report/components/{Header/HeaderLogo.jsx.html → SideNav/Links/NavLinkContainer.jsx.html} +60 -72
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +832 -0
- package/coverage/lcov-report/components/{Button/index.js.html → SideNav/Links/NavLinkInline.jsx.html} +152 -101
- package/coverage/lcov-report/{react/components/NotificationBanner/CollapsedView.js.html → components/SideNav/Links/NavLinkToggle.jsx.html} +46 -40
- package/coverage/lcov-report/components/SideNav/Links/index.html +206 -0
- package/coverage/lcov-report/components/{Header/utag-helpers.js.html → SideNav/Links/index.js.html} +40 -28
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +1084 -0
- package/coverage/lcov-report/components/{GovBanner → SideNav/UI}/index.html +42 -27
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +94 -0
- package/coverage/lcov-report/components/SideNav/helpers.js.html +10 -829
- package/coverage/lcov-report/components/SideNav/index.html +17 -17
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +8 -8
- package/coverage/lcov-report/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/components/hooks/index.html +19 -19
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +36 -39
- package/coverage/lcov-report/components/index.html +1 -1
- package/coverage/lcov-report/index.html +63 -63
- package/coverage/lcov-report/lib/Chevron.jsx.html +5 -5
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +12 -102
- package/coverage/lcov-report/lib/index.html +30 -15
- package/coverage/lcov-report/lib/svg-definitions.svg.html +460 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +16 -16
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +8 -26
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/header.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/hooks.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/index.html +17 -17
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +21 -51
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +304 -172
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +31 -109
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +14 -14
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +16 -10
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +27 -51
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +16 -4
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +17 -197
- package/coverage/lcov-report/react/components/SideNav/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
- package/coverage/lcov-report/react/components/index.html +1 -1
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +1 -1
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +9 -57
- package/coverage/lcov-report/react/lib/index.html +29 -14
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
- package/coverage/lcov-report/react/session/index.html +1 -1
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +1 -1
- package/coverage/lcov-report/react/session/refresh.js.html +1 -1
- package/coverage/lcov-report/react/session/ttl.js.html +1 -1
- package/coverage/lcov-report/session/index.html +20 -20
- package/coverage/lcov-report/session/index.js.html +1 -1
- package/coverage/lcov-report/session/logout.js.html +15 -24
- package/coverage/lcov-report/session/refresh.js.html +2 -2
- package/coverage/lcov-report/session/ttl.js.html +2 -2
- package/coverage/lcov.info +454 -530
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +9 -9
- package/styles/qppds/components/_header.scss +1 -1
- package/coverage/lcov-report/components/GovBanner/index.js.html +0 -436
- package/coverage/lcov-report/components/Header/HeaderAccountMenu.jsx.html +0 -592
- package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +0 -280
- package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +0 -253
- package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +0 -271
- package/coverage/lcov-report/components/Header/HeaderMobileButton.js.html +0 -196
- package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +0 -181
- package/coverage/lcov-report/components/Header/ImpersonatorBanner.jsx.html +0 -331
- package/coverage/lcov-report/components/Header/NavigationButtonIcon.jsx.html +0 -166
- package/coverage/lcov-report/components/Header/hooks.js.html +0 -241
- package/coverage/lcov-report/components/Header/index.html +0 -326
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/
|
|
6
|
+
<title>Code coverage report for components/SideNav/Links/NavLinkInline.jsx</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,34 +19,34 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">components/SideNav/Links</a> NavLinkInline.jsx</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">6.66% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>2/30</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/39</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/
|
|
42
|
+
<span class='fraction'>0/5</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">6.66% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>2/30</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -153,11 +153,27 @@
|
|
|
153
153
|
<a name='L88'></a><a href='#L88'>88</a>
|
|
154
154
|
<a name='L89'></a><a href='#L89'>89</a>
|
|
155
155
|
<a name='L90'></a><a href='#L90'>90</a>
|
|
156
|
-
<a name='L91'></a><a href='#L91'>91</a
|
|
156
|
+
<a name='L91'></a><a href='#L91'>91</a>
|
|
157
|
+
<a name='L92'></a><a href='#L92'>92</a>
|
|
158
|
+
<a name='L93'></a><a href='#L93'>93</a>
|
|
159
|
+
<a name='L94'></a><a href='#L94'>94</a>
|
|
160
|
+
<a name='L95'></a><a href='#L95'>95</a>
|
|
161
|
+
<a name='L96'></a><a href='#L96'>96</a>
|
|
162
|
+
<a name='L97'></a><a href='#L97'>97</a>
|
|
163
|
+
<a name='L98'></a><a href='#L98'>98</a>
|
|
164
|
+
<a name='L99'></a><a href='#L99'>99</a>
|
|
165
|
+
<a name='L100'></a><a href='#L100'>100</a>
|
|
166
|
+
<a name='L101'></a><a href='#L101'>101</a>
|
|
167
|
+
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
|
+
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
|
+
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
+
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
+
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
+
<a name='L107'></a><a href='#L107'>107</a>
|
|
173
|
+
<a name='L108'></a><a href='#L108'>108</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-neutral"> </span>
|
|
157
175
|
<span class="cline-any cline-neutral"> </span>
|
|
158
176
|
<span class="cline-any cline-neutral"> </span>
|
|
159
|
-
<span class="cline-any cline-yes">1x</span>
|
|
160
|
-
<span class="cline-any cline-yes">1x</span>
|
|
161
177
|
<span class="cline-any cline-neutral"> </span>
|
|
162
178
|
<span class="cline-any cline-yes">1x</span>
|
|
163
179
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -170,27 +186,48 @@
|
|
|
170
186
|
<span class="cline-any cline-neutral"> </span>
|
|
171
187
|
<span class="cline-any cline-neutral"> </span>
|
|
172
188
|
<span class="cline-any cline-neutral"> </span>
|
|
189
|
+
<span class="cline-any cline-neutral"> </span>
|
|
190
|
+
<span class="cline-any cline-neutral"> </span>
|
|
191
|
+
<span class="cline-any cline-no"> </span>
|
|
192
|
+
<span class="cline-any cline-no"> </span>
|
|
193
|
+
<span class="cline-any cline-no"> </span>
|
|
194
|
+
<span class="cline-any cline-no"> </span>
|
|
195
|
+
<span class="cline-any cline-no"> </span>
|
|
196
|
+
<span class="cline-any cline-no"> </span>
|
|
173
197
|
<span class="cline-any cline-no"> </span>
|
|
174
198
|
<span class="cline-any cline-neutral"> </span>
|
|
175
199
|
<span class="cline-any cline-no"> </span>
|
|
176
200
|
<span class="cline-any cline-no"> </span>
|
|
201
|
+
<span class="cline-any cline-no"> </span>
|
|
202
|
+
<span class="cline-any cline-no"> </span>
|
|
177
203
|
<span class="cline-any cline-neutral"> </span>
|
|
178
204
|
<span class="cline-any cline-no"> </span>
|
|
179
205
|
<span class="cline-any cline-no"> </span>
|
|
206
|
+
<span class="cline-any cline-no"> </span>
|
|
207
|
+
<span class="cline-any cline-no"> </span>
|
|
208
|
+
<span class="cline-any cline-no"> </span>
|
|
180
209
|
<span class="cline-any cline-neutral"> </span>
|
|
181
210
|
<span class="cline-any cline-no"> </span>
|
|
182
211
|
<span class="cline-any cline-no"> </span>
|
|
183
212
|
<span class="cline-any cline-neutral"> </span>
|
|
184
213
|
<span class="cline-any cline-neutral"> </span>
|
|
214
|
+
<span class="cline-any cline-neutral"> </span>
|
|
215
|
+
<span class="cline-any cline-no"> </span>
|
|
185
216
|
<span class="cline-any cline-no"> </span>
|
|
186
217
|
<span class="cline-any cline-no"> </span>
|
|
187
218
|
<span class="cline-any cline-neutral"> </span>
|
|
219
|
+
<span class="cline-any cline-no"> </span>
|
|
220
|
+
<span class="cline-any cline-no"> </span>
|
|
188
221
|
<span class="cline-any cline-neutral"> </span>
|
|
189
222
|
<span class="cline-any cline-neutral"> </span>
|
|
223
|
+
<span class="cline-any cline-no"> </span>
|
|
190
224
|
<span class="cline-any cline-neutral"> </span>
|
|
225
|
+
<span class="cline-any cline-no"> </span>
|
|
226
|
+
<span class="cline-any cline-no"> </span>
|
|
191
227
|
<span class="cline-any cline-neutral"> </span>
|
|
192
228
|
<span class="cline-any cline-neutral"> </span>
|
|
193
229
|
<span class="cline-any cline-neutral"> </span>
|
|
230
|
+
<span class="cline-any cline-no"> </span>
|
|
194
231
|
<span class="cline-any cline-neutral"> </span>
|
|
195
232
|
<span class="cline-any cline-neutral"> </span>
|
|
196
233
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -208,7 +245,6 @@
|
|
|
208
245
|
<span class="cline-any cline-neutral"> </span>
|
|
209
246
|
<span class="cline-any cline-neutral"> </span>
|
|
210
247
|
<span class="cline-any cline-neutral"> </span>
|
|
211
|
-
<span class="cline-any cline-yes">1x</span>
|
|
212
248
|
<span class="cline-any cline-neutral"> </span>
|
|
213
249
|
<span class="cline-any cline-neutral"> </span>
|
|
214
250
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -219,120 +255,135 @@
|
|
|
219
255
|
<span class="cline-any cline-neutral"> </span>
|
|
220
256
|
<span class="cline-any cline-neutral"> </span>
|
|
221
257
|
<span class="cline-any cline-neutral"> </span>
|
|
222
|
-
<span class="cline-any cline-yes">1x</span>
|
|
223
258
|
<span class="cline-any cline-neutral"> </span>
|
|
224
259
|
<span class="cline-any cline-neutral"> </span>
|
|
225
260
|
<span class="cline-any cline-neutral"> </span>
|
|
226
261
|
<span class="cline-any cline-neutral"> </span>
|
|
227
|
-
<span class="cline-any cline-no"> </span>
|
|
228
262
|
<span class="cline-any cline-neutral"> </span>
|
|
229
263
|
<span class="cline-any cline-neutral"> </span>
|
|
230
264
|
<span class="cline-any cline-neutral"> </span>
|
|
265
|
+
<span class="cline-any cline-yes">1x</span>
|
|
266
|
+
<span class="cline-any cline-neutral"> </span>
|
|
231
267
|
<span class="cline-any cline-neutral"> </span>
|
|
232
268
|
<span class="cline-any cline-neutral"> </span>
|
|
233
|
-
<span class="cline-any cline-yes">1x</span>
|
|
234
|
-
<span class="cline-any cline-no"> </span>
|
|
235
269
|
<span class="cline-any cline-neutral"> </span>
|
|
236
270
|
<span class="cline-any cline-neutral"> </span>
|
|
237
|
-
<span class="cline-any cline-yes">1x</span>
|
|
238
271
|
<span class="cline-any cline-neutral"> </span>
|
|
239
272
|
<span class="cline-any cline-neutral"> </span>
|
|
240
273
|
<span class="cline-any cline-neutral"> </span>
|
|
241
|
-
<span class="cline-any cline-yes">1x</span>
|
|
242
274
|
<span class="cline-any cline-neutral"> </span>
|
|
243
275
|
<span class="cline-any cline-neutral"> </span>
|
|
244
276
|
<span class="cline-any cline-neutral"> </span>
|
|
245
277
|
<span class="cline-any cline-neutral"> </span>
|
|
246
|
-
<span class="cline-any cline-neutral"> </span
|
|
278
|
+
<span class="cline-any cline-neutral"> </span>
|
|
279
|
+
<span class="cline-any cline-neutral"> </span>
|
|
280
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from 'react';
|
|
281
|
+
import { handleNavigation } from '../helpers';
|
|
282
|
+
import AnimationGroup from '../AnimationGroup/AnimationGroup';
|
|
247
283
|
import PropTypes from 'prop-types';
|
|
248
284
|
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
const Button = <span class="fstat-no" title="function not covered" >({</span>
|
|
253
|
-
children,
|
|
285
|
+
const NavLinkInline = <span class="fstat-no" title="function not covered" >({</span>
|
|
286
|
+
url,
|
|
287
|
+
urlExpressionToMatch,
|
|
254
288
|
className,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
289
|
+
icon,
|
|
290
|
+
label,
|
|
291
|
+
isActive,
|
|
292
|
+
showLabel,
|
|
293
|
+
linkCallback,
|
|
294
|
+
disabled,
|
|
295
|
+
useTooltips,
|
|
296
|
+
target,
|
|
262
297
|
}) => {
|
|
263
|
-
|
|
298
|
+
const localUrl = <span class="cstat-no" title="statement not covered" >urlExpressionToMatch || url;</span>
|
|
299
|
+
const urlRegExp = <span class="cstat-no" title="statement not covered" >new RegExp(`${localUrl}/?$`);</span>
|
|
300
|
+
const path = <span class="cstat-no" title="statement not covered" >window.location.href && window.location.href.split('?')[0];</span>
|
|
301
|
+
const currentPage = <span class="cstat-no" title="statement not covered" >path && path.match(urlRegExp);</span>
|
|
302
|
+
const svgRef = <span class="cstat-no" title="statement not covered" >React.useRef();</span>
|
|
303
|
+
const [showTooltip, setShowTooltip] = <span class="cstat-no" title="statement not covered" >useState(false);</span>
|
|
304
|
+
const tooltipRef = <span class="cstat-no" title="statement not covered" >React.useRef();</span>
|
|
305
|
+
|
|
306
|
+
<span class="cstat-no" title="statement not covered" > React.useEffect(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
307
|
+
<span class="cstat-no" title="statement not covered" > if (!showLabel && useTooltips && svgRef.current) {</span>
|
|
308
|
+
const existingMouseenter = <span class="cstat-no" title="statement not covered" >svgRef.current.onmouseover;</span>
|
|
309
|
+
const existingMouseout = <span class="cstat-no" title="statement not covered" >svgRef.current.onmouseout;</span>
|
|
310
|
+
|
|
311
|
+
<span class="cstat-no" title="statement not covered" > svgRef.current.onmouseover = <span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
312
|
+
<span class="cstat-no" title="statement not covered" > if (tooltipRef.current && useTooltips) {</span>
|
|
313
|
+
const svgOffset = <span class="cstat-no" title="statement not covered" >svgRef.current.getBoundingClientRect();</span>
|
|
314
|
+
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.top = `${svgOffset.top - 5}px`;</span>
|
|
315
|
+
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.display = 'block';</span>
|
|
316
|
+
}
|
|
317
|
+
<span class="cstat-no" title="statement not covered" > if (typeof existingMouseenter === 'function') {</span>
|
|
318
|
+
<span class="cstat-no" title="statement not covered" > existingMouseenter();</span>
|
|
319
|
+
}
|
|
320
|
+
};
|
|
264
321
|
|
|
265
|
-
<span class="cstat-no" title="statement not covered" >
|
|
266
|
-
<span class="cstat-no" title="statement not covered" >
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
<span class="cstat-no" title="statement not covered" >
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
322
|
+
<span class="cstat-no" title="statement not covered" > svgRef.current.onmouseout = <span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
323
|
+
<span class="cstat-no" title="statement not covered" > if (tooltipRef.current) {</span>
|
|
324
|
+
<span class="cstat-no" title="statement not covered" > tooltipRef.current.style.display = 'none';</span>
|
|
325
|
+
}
|
|
326
|
+
<span class="cstat-no" title="statement not covered" > if (typeof existingMouseout === 'function') {</span>
|
|
327
|
+
<span class="cstat-no" title="statement not covered" > existingMouseout();</span>
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
<span class="cstat-no" title="statement not covered" > setShowTooltip(true);</span>
|
|
331
|
+
}
|
|
332
|
+
<span class="cstat-no" title="statement not covered" > if (showLabel) {</span>
|
|
333
|
+
<span class="cstat-no" title="statement not covered" > setShowTooltip(false);</span>
|
|
334
|
+
}
|
|
335
|
+
}, [svgRef.current, showLabel]);
|
|
274
336
|
|
|
275
|
-
<span class="cstat-no" title="statement not covered" >
|
|
276
|
-
|
|
337
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
338
|
+
<React.Fragment>
|
|
277
339
|
<a
|
|
278
|
-
href={
|
|
279
|
-
|
|
280
|
-
className={
|
|
281
|
-
|
|
340
|
+
href={disabled ? undefined : url}
|
|
341
|
+
onClick={<span class="fstat-no" title="function not covered" >(e</span>) => <span class="cstat-no" title="statement not covered" >handleNavigation(e, linkCallback, label)}</span>
|
|
342
|
+
className={`${className} ${currentPage || isActive ? 'active' : ''} ${
|
|
343
|
+
disabled ? 'disabled' : ''
|
|
344
|
+
}`}
|
|
345
|
+
data-track-category="SidebarNav"
|
|
346
|
+
data-track-action={`GoTo${label ? label.split(' ').join('') : ''}`}
|
|
347
|
+
data-track-label={label}
|
|
348
|
+
aria-label={label}
|
|
349
|
+
target={`${target ? target : '_self'}`}
|
|
282
350
|
>
|
|
283
|
-
|
|
351
|
+
<svg
|
|
352
|
+
className={`left-icon ${disabled ? 'disabled' : ''}`}
|
|
353
|
+
aria-hidden="true"
|
|
354
|
+
focusable="false"
|
|
355
|
+
ref={svgRef}
|
|
356
|
+
>
|
|
357
|
+
{icon}
|
|
358
|
+
</svg>
|
|
359
|
+
<AnimationGroup display={showLabel}>
|
|
360
|
+
<span tabIndex="-1">{label}</span>
|
|
361
|
+
</AnimationGroup>
|
|
284
362
|
</a>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
onClick={onClick}
|
|
292
|
-
disabled={loading}
|
|
293
|
-
type={type}
|
|
294
|
-
{...rest}
|
|
295
|
-
>
|
|
296
|
-
{children}
|
|
297
|
-
</button>
|
|
363
|
+
{showTooltip && (
|
|
364
|
+
<div ref={tooltipRef} className="sidebar-tooltip">
|
|
365
|
+
<span className="sidebar-tooltip-text">{label}</span>
|
|
366
|
+
</div>
|
|
367
|
+
)}
|
|
368
|
+
</React.Fragment>
|
|
298
369
|
);
|
|
299
370
|
};
|
|
300
371
|
|
|
301
|
-
|
|
302
|
-
|
|
372
|
+
NavLinkInline.propTypes = {
|
|
373
|
+
urlExpressionToMatch: PropTypes.string,
|
|
374
|
+
url: PropTypes.string,
|
|
303
375
|
className: PropTypes.string,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
Button.defaultProps = {
|
|
313
|
-
children: false,
|
|
314
|
-
className: '',
|
|
315
|
-
href: '',
|
|
316
|
-
loading: false,
|
|
317
|
-
onClick: <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null,</span>
|
|
318
|
-
size: null,
|
|
319
|
-
type: 'button',
|
|
320
|
-
variant: null,
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
export const TextButton = <span class="fstat-no" title="function not covered" >({</span> className = <span class="branch-0 cbranch-no" title="branch not covered" >'',</span> ...props }) => (
|
|
324
|
-
<span class="cstat-no" title="statement not covered" > <Button className={`qpp-c-button--text ${className}`} {...props} /></span>
|
|
325
|
-
);
|
|
326
|
-
|
|
327
|
-
TextButton.propTypes = {
|
|
328
|
-
className: PropTypes.string,
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
TextButton.defaultProps = {
|
|
332
|
-
className: '',
|
|
376
|
+
icon: PropTypes.element,
|
|
377
|
+
label: PropTypes.string,
|
|
378
|
+
isActive: PropTypes.bool,
|
|
379
|
+
showLabel: PropTypes.bool,
|
|
380
|
+
linkCallback: PropTypes.func,
|
|
381
|
+
disabled: PropTypes.bool,
|
|
382
|
+
useTooltips: PropTypes.bool,
|
|
383
|
+
target: PropTypes.string,
|
|
333
384
|
};
|
|
334
385
|
|
|
335
|
-
export default
|
|
386
|
+
export default NavLinkInline;
|
|
336
387
|
</pre></td></tr></table></pre>
|
|
337
388
|
|
|
338
389
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -340,16 +391,16 @@ export default Button;
|
|
|
340
391
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
341
392
|
Code coverage generated by
|
|
342
393
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
343
|
-
at
|
|
394
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
344
395
|
</div>
|
|
345
|
-
<script src="
|
|
396
|
+
<script src="../../../prettify.js"></script>
|
|
346
397
|
<script>
|
|
347
398
|
window.onload = function () {
|
|
348
399
|
prettyPrint();
|
|
349
400
|
};
|
|
350
401
|
</script>
|
|
351
|
-
<script src="
|
|
352
|
-
<script src="
|
|
402
|
+
<script src="../../../sorter.js"></script>
|
|
403
|
+
<script src="../../../block-navigation.js"></script>
|
|
353
404
|
</body>
|
|
354
405
|
</html>
|
|
355
406
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for
|
|
6
|
+
<title>Code coverage report for components/SideNav/Links/NavLinkToggle.jsx</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../../base.css" />
|
|
@@ -19,34 +19,34 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../index.html">All files</a> / <a href="index.html">
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">components/SideNav/Links</a> NavLinkToggle.jsx</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>5/5</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">50% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>5/10</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>1/1</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>5/5</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -95,15 +95,19 @@
|
|
|
95
95
|
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
96
|
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
97
|
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
-
<a name='L33'></a><a href='#L33'>33</a
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
99
101
|
<span class="cline-any cline-neutral"> </span>
|
|
100
102
|
<span class="cline-any cline-neutral"> </span>
|
|
101
103
|
<span class="cline-any cline-neutral"> </span>
|
|
102
|
-
<span class="cline-any cline-yes">
|
|
104
|
+
<span class="cline-any cline-yes">1x</span>
|
|
105
|
+
<span class="cline-any cline-yes">1x</span>
|
|
106
|
+
<span class="cline-any cline-yes">1x</span>
|
|
103
107
|
<span class="cline-any cline-neutral"> </span>
|
|
108
|
+
<span class="cline-any cline-yes">1x</span>
|
|
104
109
|
<span class="cline-any cline-neutral"> </span>
|
|
105
110
|
<span class="cline-any cline-neutral"> </span>
|
|
106
|
-
<span class="cline-any cline-no"> </span>
|
|
107
111
|
<span class="cline-any cline-neutral"> </span>
|
|
108
112
|
<span class="cline-any cline-neutral"> </span>
|
|
109
113
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -119,46 +123,48 @@
|
|
|
119
123
|
<span class="cline-any cline-neutral"> </span>
|
|
120
124
|
<span class="cline-any cline-neutral"> </span>
|
|
121
125
|
<span class="cline-any cline-neutral"> </span>
|
|
126
|
+
<span class="cline-any cline-yes">1x</span>
|
|
122
127
|
<span class="cline-any cline-neutral"> </span>
|
|
123
128
|
<span class="cline-any cline-neutral"> </span>
|
|
124
|
-
<span class="cline-any cline-yes">2x</span>
|
|
125
129
|
<span class="cline-any cline-neutral"> </span>
|
|
126
130
|
<span class="cline-any cline-neutral"> </span>
|
|
127
131
|
<span class="cline-any cline-neutral"> </span>
|
|
128
132
|
<span class="cline-any cline-neutral"> </span>
|
|
129
133
|
<span class="cline-any cline-neutral"> </span>
|
|
130
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React
|
|
134
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
131
135
|
import PropTypes from 'prop-types';
|
|
132
|
-
import {
|
|
136
|
+
import { NavCollapse, NavExpand } from '../../../lib/SvgComponents';
|
|
137
|
+
|
|
138
|
+
const NavLinkToggle = ({ isAltStyle, collapseRef, isExpanded, onClick }) => {
|
|
139
|
+
const expandedStyle = isExpanded ? 'link-collapse' : <span class="branch-1 cbranch-no" title="branch not covered" >'link-expand';</span>
|
|
140
|
+
const altStyle = isAltStyle ? <span class="branch-0 cbranch-no" title="branch not covered" >'alt-style' </span>: '';
|
|
133
141
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<span class="
|
|
139
|
-
|
|
140
|
-
ref={
|
|
141
|
-
className={
|
|
142
|
-
onClick={
|
|
142
|
+
return (
|
|
143
|
+
<button
|
|
144
|
+
type="button"
|
|
145
|
+
aria-label={`Click to ${
|
|
146
|
+
isExpanded ? 'collapse' : <span class="branch-1 cbranch-no" title="branch not covered" >'expand'</span>
|
|
147
|
+
} the sidebar menu`}
|
|
148
|
+
ref={collapseRef}
|
|
149
|
+
className={`${expandedStyle} ${altStyle}`}
|
|
150
|
+
onClick={onClick}
|
|
143
151
|
>
|
|
144
|
-
<
|
|
145
|
-
{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
</svg>
|
|
150
|
-
</span>
|
|
151
|
-
</button>
|
|
152
|
-
</div>
|
|
152
|
+
<svg className="left-icon" aria-hidden="true" focusable="false">
|
|
153
|
+
{isExpanded ? <NavCollapse /> : <span class="branch-1 cbranch-no" title="branch not covered" ><NavExpand />}</span>
|
|
154
|
+
</svg>
|
|
155
|
+
<span>{isExpanded ? 'Collapse' : <span class="branch-1 cbranch-no" title="branch not covered" >'Expand'}</span></span>
|
|
156
|
+
</button>
|
|
153
157
|
);
|
|
154
158
|
};
|
|
155
159
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
NavLinkToggle.propTypes = {
|
|
161
|
+
isAltStyle: PropTypes.bool,
|
|
162
|
+
collapseRef: PropTypes.object,
|
|
163
|
+
isExpanded: PropTypes.bool,
|
|
164
|
+
onClick: PropTypes.func,
|
|
159
165
|
};
|
|
160
166
|
|
|
161
|
-
export default
|
|
167
|
+
export default NavLinkToggle;
|
|
162
168
|
</pre></td></tr></table></pre>
|
|
163
169
|
|
|
164
170
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -166,7 +172,7 @@ export default forwardRef(CollapsedView);
|
|
|
166
172
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
167
173
|
Code coverage generated by
|
|
168
174
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
169
|
-
at
|
|
175
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
170
176
|
</div>
|
|
171
177
|
<script src="../../../prettify.js"></script>
|
|
172
178
|
<script>
|