qpp-style 9.20.2 → 9.20.3
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/components/Footer/FooterUI.jsx +16 -14
- package/coverage/clover.xml +335 -291
- package/coverage/coverage-final.json +72 -71
- 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/{SideNav/AnimationGroup → Button}/index.html +30 -30
- package/coverage/lcov-report/components/{SideNav/Links/NavLinkInline.jsx.html → Button/index.js.html} +101 -152
- 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 +184 -358
- 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 +29 -44
- package/coverage/lcov-report/components/{SideNav/UI → GovBanner}/index.html +27 -42
- package/coverage/lcov-report/components/GovBanner/index.js.html +436 -0
- package/coverage/lcov-report/components/Header/HeaderAccountMenu.jsx.html +592 -0
- package/coverage/lcov-report/components/{SideNav/Details/IndividualDetails.jsx.html → Header/HeaderCancel.jsx.html} +18 -24
- package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +280 -0
- package/coverage/lcov-report/components/{SideNav/Links/NavLinkContainer.jsx.html → Header/HeaderLogo.jsx.html} +72 -60
- package/coverage/lcov-report/components/{SideNav/Links/NavItemInline.jsx.html → Header/HeaderMenuButton.js.html} +63 -75
- package/coverage/lcov-report/components/{SideNav/Content/LevelTwoContent.jsx.html → Header/HeaderMenuItem.jsx.html} +305 -236
- package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +253 -0
- package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +271 -0
- package/coverage/lcov-report/components/Header/HeaderMobileButton.js.html +196 -0
- package/coverage/lcov-report/components/{Footer/LegacyFooterUI.jsx.html → Header/HeaderUI.jsx.html} +193 -274
- package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +181 -0
- package/coverage/lcov-report/components/Header/ImpersonatorBanner.jsx.html +331 -0
- package/coverage/lcov-report/components/Header/NavigationButtonIcon.jsx.html +166 -0
- package/coverage/lcov-report/components/Header/hooks.js.html +241 -0
- package/coverage/lcov-report/components/Header/index.html +326 -0
- package/coverage/lcov-report/components/{SideNav/Links/index.js.html → Header/utag-helpers.js.html} +28 -40
- 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/{SideNav/AnimationGroup/AnimationGroup.jsx.html → NotificationBanner/CollapsedView.js.html} +56 -41
- package/coverage/lcov-report/components/{SideNav/Details/PracticeDetails.jsx.html → NotificationBanner/ExpandedView.js.html} +64 -64
- package/coverage/lcov-report/components/{SideNav/Details → NotificationBanner}/index.html +40 -40
- package/coverage/lcov-report/components/{SideNav/Content/LevelOneContent.jsx.html → NotificationBanner/index.js.html} +283 -244
- 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/SideNav/Chart/ScoreChart.jsx.html +7 -7
- package/coverage/lcov-report/components/SideNav/Chart/index.html +1 -16
- package/coverage/lcov-report/components/SideNav/helpers.js.html +829 -10
- 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 +39 -36
- 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 +102 -12
- package/coverage/lcov-report/lib/index.html +15 -30
- 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 +26 -8
- 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/{components/SideNav/Links/NavLinkToggle.jsx.html → react/components/NotificationBanner/CollapsedView.js.html} +40 -46
- package/coverage/lcov-report/{components/SideNav/Links/CmsSwitchLink.jsx.html → react/components/NotificationBanner/ExpandedView.js.html} +55 -43
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +51 -21
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +172 -304
- 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 +109 -31
- 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 +10 -16
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +51 -27
- 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 +4 -16
- 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 +197 -17
- 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 +57 -9
- package/coverage/lcov-report/react/lib/index.html +14 -29
- 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 +24 -15
- package/coverage/lcov-report/session/refresh.js.html +2 -2
- package/coverage/lcov-report/session/ttl.js.html +2 -2
- package/coverage/lcov.info +530 -454
- 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 +1 -1
- package/styles/qppds/components/_footer.scss +2 -0
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +0 -94
- package/coverage/lcov-report/components/SideNav/Content/index.html +0 -146
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +0 -97
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +0 -832
- package/coverage/lcov-report/components/SideNav/Links/index.html +0 -206
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +0 -1084
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +0 -94
- package/coverage/lcov-report/lib/svg-definitions.svg.html +0 -460
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/
|
|
6
|
+
<title>Code coverage report for react/components/NotificationBanner/CollapsedView.js</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">components/
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">react/components/NotificationBanner</a> CollapsedView.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">66.66% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>2/3</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/0</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>0/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">66.66% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>2/3</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 medium'></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,19 +95,15 @@
|
|
|
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>
|
|
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>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
101
99
|
<span class="cline-any cline-neutral"> </span>
|
|
102
100
|
<span class="cline-any cline-neutral"> </span>
|
|
103
101
|
<span class="cline-any cline-neutral"> </span>
|
|
104
|
-
<span class="cline-any cline-yes">
|
|
105
|
-
<span class="cline-any cline-yes">1x</span>
|
|
106
|
-
<span class="cline-any cline-yes">1x</span>
|
|
102
|
+
<span class="cline-any cline-yes">2x</span>
|
|
107
103
|
<span class="cline-any cline-neutral"> </span>
|
|
108
|
-
<span class="cline-any cline-yes">1x</span>
|
|
109
104
|
<span class="cline-any cline-neutral"> </span>
|
|
110
105
|
<span class="cline-any cline-neutral"> </span>
|
|
106
|
+
<span class="cline-any cline-no"> </span>
|
|
111
107
|
<span class="cline-any cline-neutral"> </span>
|
|
112
108
|
<span class="cline-any cline-neutral"> </span>
|
|
113
109
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -123,48 +119,46 @@
|
|
|
123
119
|
<span class="cline-any cline-neutral"> </span>
|
|
124
120
|
<span class="cline-any cline-neutral"> </span>
|
|
125
121
|
<span class="cline-any cline-neutral"> </span>
|
|
126
|
-
<span class="cline-any cline-yes">1x</span>
|
|
127
122
|
<span class="cline-any cline-neutral"> </span>
|
|
128
123
|
<span class="cline-any cline-neutral"> </span>
|
|
124
|
+
<span class="cline-any cline-yes">2x</span>
|
|
129
125
|
<span class="cline-any cline-neutral"> </span>
|
|
130
126
|
<span class="cline-any cline-neutral"> </span>
|
|
131
127
|
<span class="cline-any cline-neutral"> </span>
|
|
132
128
|
<span class="cline-any cline-neutral"> </span>
|
|
133
129
|
<span class="cline-any cline-neutral"> </span>
|
|
134
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
130
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { forwardRef } from 'react';
|
|
135
131
|
import PropTypes from 'prop-types';
|
|
136
|
-
import {
|
|
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>: '';
|
|
132
|
+
import { BellOutline } from '../../lib/SvgComponents.jsx';
|
|
141
133
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
ref={
|
|
149
|
-
className={
|
|
150
|
-
onClick={
|
|
134
|
+
const CollapsedView = <span class="fstat-no" title="function not covered" >(</span>
|
|
135
|
+
{ expandNotification, label },
|
|
136
|
+
{ collapsedWrapperRef, collapsedBannerRef }
|
|
137
|
+
) => {
|
|
138
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
139
|
+
<div
|
|
140
|
+
ref={collapsedWrapperRef}
|
|
141
|
+
className={`notification-banner-wrapper collapsed-view`}
|
|
142
|
+
onClick={expandNotification}
|
|
151
143
|
>
|
|
152
|
-
<
|
|
153
|
-
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
144
|
+
<button ref={collapsedBannerRef} className={`notification-banner-label`}>
|
|
145
|
+
{label}
|
|
146
|
+
<span className="bell-icon">
|
|
147
|
+
<svg aria-hidden="true" focusable="false">
|
|
148
|
+
<BellOutline />
|
|
149
|
+
</svg>
|
|
150
|
+
</span>
|
|
151
|
+
</button>
|
|
152
|
+
</div>
|
|
157
153
|
);
|
|
158
154
|
};
|
|
159
155
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
isExpanded: PropTypes.bool,
|
|
164
|
-
onClick: PropTypes.func,
|
|
156
|
+
CollapsedView.propTypes = {
|
|
157
|
+
expandNotification: PropTypes.func,
|
|
158
|
+
label: PropTypes.string,
|
|
165
159
|
};
|
|
166
160
|
|
|
167
|
-
export default
|
|
161
|
+
export default forwardRef(CollapsedView);
|
|
168
162
|
</pre></td></tr></table></pre>
|
|
169
163
|
|
|
170
164
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -172,7 +166,7 @@ export default NavLinkToggle;
|
|
|
172
166
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
173
167
|
Code coverage generated by
|
|
174
168
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
175
|
-
at
|
|
169
|
+
at Tue Sep 13 2022 18:25:01 GMT-0700 (Pacific Daylight Time)
|
|
176
170
|
</div>
|
|
177
171
|
<script src="../../../prettify.js"></script>
|
|
178
172
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/
|
|
6
|
+
<title>Code coverage report for react/components/NotificationBanner/ExpandedView.js</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">components/
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">react/components/NotificationBanner</a> ExpandedView.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">66.66% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>2/
|
|
28
|
+
<span class='fraction'>2/3</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/5</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/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">66.66% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>2/
|
|
49
|
+
<span class='fraction'>2/3</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -104,13 +104,19 @@
|
|
|
104
104
|
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
105
|
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
106
|
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
-
<a name='L42'></a><a href='#L42'>42</a
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a></td><td class="line-coverage quiet"><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>
|
|
110
114
|
<span class="cline-any cline-neutral"> </span>
|
|
111
115
|
<span class="cline-any cline-neutral"> </span>
|
|
112
|
-
<span class="cline-any cline-yes">
|
|
113
|
-
<span class="cline-any cline-
|
|
116
|
+
<span class="cline-any cline-yes">2x</span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
114
120
|
<span class="cline-any cline-neutral"> </span>
|
|
115
121
|
<span class="cline-any cline-neutral"> </span>
|
|
116
122
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -138,7 +144,9 @@
|
|
|
138
144
|
<span class="cline-any cline-neutral"> </span>
|
|
139
145
|
<span class="cline-any cline-neutral"> </span>
|
|
140
146
|
<span class="cline-any cline-neutral"> </span>
|
|
141
|
-
<span class="cline-any cline-yes">
|
|
147
|
+
<span class="cline-any cline-yes">2x</span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
150
|
<span class="cline-any cline-neutral"> </span>
|
|
143
151
|
<span class="cline-any cline-neutral"> </span>
|
|
144
152
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -147,45 +155,49 @@
|
|
|
147
155
|
<span class="cline-any cline-neutral"> </span>
|
|
148
156
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
149
157
|
import PropTypes from 'prop-types';
|
|
150
|
-
import
|
|
151
|
-
import {
|
|
158
|
+
import SanitizedContent from '../SanitizedContent';
|
|
159
|
+
import { CloseXIcon } from '../../lib/SvgComponents.jsx';
|
|
152
160
|
|
|
153
|
-
const
|
|
161
|
+
const ExpandedView = <span class="fstat-no" title="function not covered" >({</span>
|
|
162
|
+
label,
|
|
163
|
+
expanded,
|
|
164
|
+
content,
|
|
165
|
+
dismissable,
|
|
166
|
+
collapseNotification,
|
|
167
|
+
}) => {
|
|
154
168
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
155
|
-
<div className=
|
|
156
|
-
<
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
&
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
className="icon right-icon rotated"
|
|
171
|
-
aria-hidden="true"
|
|
172
|
-
focusable="false"
|
|
173
|
-
>
|
|
174
|
-
<ChevronRight />
|
|
169
|
+
<div className={`notification-banner-wrapper expanded-view`}>
|
|
170
|
+
<div className="notification-banner-label">{label}</div>
|
|
171
|
+
<div className="notification-banner-content">
|
|
172
|
+
<SanitizedContent
|
|
173
|
+
html={expanded ? content : '<p>No notifications to display</p>'}
|
|
174
|
+
/>
|
|
175
|
+
</div>
|
|
176
|
+
{expanded && dismissable && (
|
|
177
|
+
<button
|
|
178
|
+
onClick={collapseNotification}
|
|
179
|
+
type="button"
|
|
180
|
+
className="notification-banner-close"
|
|
181
|
+
>
|
|
182
|
+
<svg className="close-icon" aria-hidden="true" focusable="false">
|
|
183
|
+
<CloseXIcon />
|
|
175
184
|
</svg>
|
|
176
|
-
|
|
177
|
-
|
|
185
|
+
<span className="sr-only">Close</span>
|
|
186
|
+
</button>
|
|
187
|
+
)}
|
|
178
188
|
</div>
|
|
179
189
|
);
|
|
180
190
|
};
|
|
181
191
|
|
|
182
|
-
|
|
183
|
-
linkCallback: PropTypes.func,
|
|
184
|
-
url: PropTypes.string,
|
|
192
|
+
ExpandedView.propTypes = {
|
|
185
193
|
label: PropTypes.string,
|
|
194
|
+
expanded: PropTypes.bool,
|
|
195
|
+
content: PropTypes.string,
|
|
196
|
+
dismissable: PropTypes.bool,
|
|
197
|
+
collapseNotification: PropTypes.func,
|
|
186
198
|
};
|
|
187
199
|
|
|
188
|
-
export default
|
|
200
|
+
export default ExpandedView;
|
|
189
201
|
</pre></td></tr></table></pre>
|
|
190
202
|
|
|
191
203
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -193,7 +205,7 @@ export default CmsSwitchLink;
|
|
|
193
205
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
206
|
Code coverage generated by
|
|
195
207
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at
|
|
208
|
+
at Tue Sep 13 2022 18:25:01 GMT-0700 (Pacific Daylight Time)
|
|
197
209
|
</div>
|
|
198
210
|
<script src="../../../prettify.js"></script>
|
|
199
211
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">60.6% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>40/66</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">27.27% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>9/33</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">50% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>8/16</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">60.6% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>40/66</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 medium'></div>
|
|
65
65
|
<div class="pad1">
|
|
66
66
|
<table class="coverage-summary">
|
|
67
67
|
<thead>
|
|
@@ -79,18 +79,48 @@
|
|
|
79
79
|
</tr>
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
|
-
<td class="file
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
82
|
+
<td class="file medium" data-value="CollapsedView.js"><a href="CollapsedView.js.html">CollapsedView.js</a></td>
|
|
83
|
+
<td data-value="66.66" class="pic medium">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 66%"></div><div class="cover-empty" style="width: 34%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
90
|
-
<td data-value="
|
|
91
|
-
<td data-value="
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
86
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
87
|
+
<td data-value="3" class="abs medium">2/3</td>
|
|
88
|
+
<td data-value="100" class="pct high">100%</td>
|
|
89
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
90
|
+
<td data-value="0" class="pct low">0%</td>
|
|
91
|
+
<td data-value="1" class="abs low">0/1</td>
|
|
92
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
93
|
+
<td data-value="3" class="abs medium">2/3</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<tr>
|
|
97
|
+
<td class="file medium" data-value="ExpandedView.js"><a href="ExpandedView.js.html">ExpandedView.js</a></td>
|
|
98
|
+
<td data-value="66.66" class="pic medium">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 66%"></div><div class="cover-empty" style="width: 34%"></div></div>
|
|
100
|
+
</td>
|
|
101
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
102
|
+
<td data-value="3" class="abs medium">2/3</td>
|
|
103
|
+
<td data-value="0" class="pct low">0%</td>
|
|
104
|
+
<td data-value="5" class="abs low">0/5</td>
|
|
105
|
+
<td data-value="0" class="pct low">0%</td>
|
|
106
|
+
<td data-value="1" class="abs low">0/1</td>
|
|
107
|
+
<td data-value="66.66" class="pct medium">66.66%</td>
|
|
108
|
+
<td data-value="3" class="abs medium">2/3</td>
|
|
109
|
+
</tr>
|
|
110
|
+
|
|
111
|
+
<tr>
|
|
112
|
+
<td class="file medium" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
|
113
|
+
<td data-value="60" class="pic medium">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 60%"></div><div class="cover-empty" style="width: 40%"></div></div>
|
|
115
|
+
</td>
|
|
116
|
+
<td data-value="60" class="pct medium">60%</td>
|
|
117
|
+
<td data-value="60" class="abs medium">36/60</td>
|
|
118
|
+
<td data-value="32.14" class="pct low">32.14%</td>
|
|
119
|
+
<td data-value="28" class="abs low">9/28</td>
|
|
120
|
+
<td data-value="57.14" class="pct medium">57.14%</td>
|
|
121
|
+
<td data-value="14" class="abs medium">8/14</td>
|
|
122
|
+
<td data-value="60" class="pct medium">60%</td>
|
|
123
|
+
<td data-value="60" class="abs medium">36/60</td>
|
|
94
124
|
</tr>
|
|
95
125
|
|
|
96
126
|
</tbody>
|
|
@@ -101,7 +131,7 @@
|
|
|
101
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
132
|
Code coverage generated by
|
|
103
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at Tue
|
|
134
|
+
at Tue Sep 13 2022 18:25:01 GMT-0700 (Pacific Daylight Time)
|
|
105
135
|
</div>
|
|
106
136
|
<script src="../../../prettify.js"></script>
|
|
107
137
|
<script>
|