qpp-style 9.15.2-beta.5 → 9.16.1-beta.0
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/GovBanner/index.js +109 -0
- package/components/Header/HeaderContainer.jsx +3 -1
- package/components/Header/ImpersonatorBanner.jsx +13 -10
- package/components/SideNav/helpers.js +2 -0
- package/coverage/clover.xml +188 -555
- package/coverage/coverage-final.json +34 -57
- package/coverage/lcov-report/components/Accordion/index.html +116 -0
- package/coverage/lcov-report/components/Accordion/index.jsx.html +364 -0
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +349 -0
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +178 -0
- package/coverage/lcov-report/components/Error/index.html +131 -0
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +880 -0
- package/coverage/lcov-report/components/Footer/LegacyFooterUI.jsx.html +667 -0
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +265 -0
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +187 -0
- package/coverage/lcov-report/components/Footer/index.html +161 -0
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +310 -0
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +208 -0
- package/coverage/lcov-report/components/Infotip/index.html +146 -0
- package/coverage/lcov-report/components/Infotip/index.js.html +94 -0
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +301 -0
- package/coverage/lcov-report/components/Modal/Modal.jsx.html +505 -0
- package/coverage/lcov-report/components/Modal/index.html +146 -0
- package/coverage/lcov-report/components/Modal/index.jsx.html +151 -0
- package/coverage/lcov-report/components/SanitizedContent/index.html +116 -0
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +685 -0
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +868 -0
- package/coverage/lcov-report/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +166 -0
- package/coverage/lcov-report/components/SideNav/AnimationGroup/index.html +116 -0
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +889 -0
- package/coverage/lcov-report/components/SideNav/Chart/index.html +131 -0
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +94 -0
- package/coverage/lcov-report/components/SideNav/Content/LevelOneContent.jsx.html +709 -0
- package/coverage/lcov-report/components/SideNav/Content/LevelTwoContent.jsx.html +733 -0
- 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/SideNav/Details/IndividualDetails.jsx.html +139 -0
- package/coverage/lcov-report/components/SideNav/Details/PracticeDetails.jsx.html +220 -0
- package/coverage/lcov-report/components/SideNav/Details/index.html +146 -0
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +97 -0
- package/coverage/lcov-report/components/SideNav/Links/CmsSwitchLink.jsx.html +208 -0
- package/coverage/lcov-report/components/SideNav/Links/NavItemInline.jsx.html +247 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkContainer.jsx.html +199 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +832 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkInline.jsx.html +406 -0
- package/coverage/lcov-report/components/SideNav/Links/NavLinkToggle.jsx.html +187 -0
- package/coverage/lcov-report/components/SideNav/Links/index.html +206 -0
- package/coverage/lcov-report/components/SideNav/Links/index.js.html +124 -0
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +1084 -0
- package/coverage/lcov-report/components/SideNav/UI/index.html +131 -0
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +94 -0
- package/coverage/lcov-report/components/SideNav/helpers.js.html +238 -0
- package/coverage/lcov-report/components/SideNav/index.html +116 -0
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +349 -0
- package/coverage/lcov-report/components/Tooltip/index.html +146 -0
- package/coverage/lcov-report/components/Tooltip/index.js.html +94 -0
- package/coverage/lcov-report/components/Tooltip/position.js.html +289 -0
- package/coverage/lcov-report/components/hooks/index.html +116 -0
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +307 -0
- package/coverage/lcov-report/components/index.html +116 -0
- package/coverage/lcov-report/index.html +62 -137
- package/coverage/lcov-report/lib/Chevron.jsx.html +181 -0
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +1702 -0
- package/coverage/lcov-report/lib/index.html +146 -0
- package/coverage/lcov-report/lib/svg-definitions.svg.html +460 -0
- package/coverage/lcov-report/session/index.html +161 -0
- package/coverage/lcov-report/session/index.js.html +100 -0
- package/coverage/lcov-report/session/logout.js.html +298 -0
- package/coverage/lcov-report/session/refresh.js.html +232 -0
- package/coverage/lcov-report/session/ttl.js.html +196 -0
- package/coverage/lcov.info +237 -1067
- 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/components/_text.scss +102 -102
- package/styles/qppds/components/_pagination.scss +7 -7
- package/styles/qppds/settings/_functions.scss +1 -1
- package/styles/third-party/legacy-bootstrap/_forms.scss +1 -1
- package/styles/third-party/legacy-bootstrap/_navbar.scss +2 -2
- package/styles/third-party/legacy-bootstrap/_variables.scss +2 -2
- package/styles/third-party/legacy-bootstrap/mixins/_grid-framework.scss +6 -6
- package/styles/third-party/legacy-bootstrap/mixins/_grid.scss +21 -21
- package/styles/third-party/legacy-bootstrap/mixins/_nav-divider.scss +1 -1
- package/styles/third-party/legacy-bootstrap/mixins/_nav-vertical-align.scss +2 -2
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
|
|
3
|
+
const GovBanner = () => {
|
|
4
|
+
const [hideContent, setHideContent] = useState(true)
|
|
5
|
+
|
|
6
|
+
return (
|
|
7
|
+
<section className='qpp-c-gov-banner' aria-label='Official government website'>
|
|
8
|
+
<div className='qpp-c-gov-banner__expand-wrap'>
|
|
9
|
+
<header
|
|
10
|
+
className={ `qpp-c-gov-banner__header ${!hideContent ? 'qpp-c-gov-banner__header--expanded' : ''}` }
|
|
11
|
+
>
|
|
12
|
+
<div className='qpp-c-gov-banner__inner'>
|
|
13
|
+
<div className='qpp-c-gov-banner__header-col1'>
|
|
14
|
+
<img
|
|
15
|
+
className='qpp-c-gov-banner__header-flag'
|
|
16
|
+
src='/images/us_flag_small.png'
|
|
17
|
+
alt='U.S. flag'
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
<div className='qpp-c-gov-banner__header-col2'>
|
|
21
|
+
<p className='qpp-c-gov-banner__header-text'>
|
|
22
|
+
An official website of the United States government
|
|
23
|
+
</p>
|
|
24
|
+
<p className='qpp-c-gov-banner__header-action' aria-hidden='true'>
|
|
25
|
+
<span className='qpp-c-gov-banner__header-action-text qpp-c-button qpp-c-button--text'>Here’s how you know</span><span className='qpp-c-gov-banner__header-action-icon qpp-c-button qpp-c-button--text'></span>
|
|
26
|
+
</p>
|
|
27
|
+
</div>
|
|
28
|
+
<button
|
|
29
|
+
className='qpp-c-gov-banner__button qpp-c-button qpp-c-button--icon-after qpp-c-button--text'
|
|
30
|
+
aria-expanded={ !hideContent }
|
|
31
|
+
aria-controls='qpp-gov-banner-content'
|
|
32
|
+
onClick={ () => setHideContent(!hideContent) }
|
|
33
|
+
>
|
|
34
|
+
<span className='qpp-c-gov-banner__button-text'>Here’s how you know</span>
|
|
35
|
+
</button>
|
|
36
|
+
</div>
|
|
37
|
+
</header>
|
|
38
|
+
<div
|
|
39
|
+
className='qpp-c-gov-banner__content'
|
|
40
|
+
id='qpp-gov-banner-content'
|
|
41
|
+
hidden={ hideContent }
|
|
42
|
+
>
|
|
43
|
+
<div className='qpp-u-display--flex qpp-u-flex-direction--column qpp-u-xs-flex-direction--row qpp-u-flex-gap--24'>
|
|
44
|
+
<div className='qpp-c-gov-banner__guidance'>
|
|
45
|
+
<img
|
|
46
|
+
className='qpp-c-gov-banner__icon'
|
|
47
|
+
src='/images/icon-dot-gov.svg'
|
|
48
|
+
role='img'
|
|
49
|
+
alt=''
|
|
50
|
+
aria-hidden='true'
|
|
51
|
+
/>
|
|
52
|
+
<div>
|
|
53
|
+
<p>
|
|
54
|
+
<strong> Official websites use .gov </strong>
|
|
55
|
+
<br />
|
|
56
|
+
A <strong>.gov</strong> website belongs to an official
|
|
57
|
+
government organization in the United States.
|
|
58
|
+
</p>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div className='qpp-c-gov-banner__guidance'>
|
|
62
|
+
<img
|
|
63
|
+
className='qpp-c-gov-banner__icon'
|
|
64
|
+
src='/images/icon-https.svg'
|
|
65
|
+
role='img'
|
|
66
|
+
alt=''
|
|
67
|
+
aria-hidden='true'
|
|
68
|
+
/>
|
|
69
|
+
<div>
|
|
70
|
+
<p>
|
|
71
|
+
<strong> Secure .gov websites use HTTPS </strong>
|
|
72
|
+
<br />
|
|
73
|
+
A <strong>lock</strong> (
|
|
74
|
+
<span className='icon-lock'>
|
|
75
|
+
<svg
|
|
76
|
+
xmlns='http://www.w3.org/2000/svg'
|
|
77
|
+
width='52'
|
|
78
|
+
height='64'
|
|
79
|
+
viewBox='0 0 52 64'
|
|
80
|
+
className='qpp-c-gov-banner__lock-image '
|
|
81
|
+
role='img'
|
|
82
|
+
aria-labelledby='banner-lock-title-default banner-lock-description-default'
|
|
83
|
+
focusable='false'
|
|
84
|
+
>
|
|
85
|
+
<title id='banner-lock-title-default'>Lock</title>
|
|
86
|
+
<desc id='banner-lock-description-default'>
|
|
87
|
+
A locked padlock
|
|
88
|
+
</desc>
|
|
89
|
+
<path
|
|
90
|
+
fill='#000000'
|
|
91
|
+
fillRule='evenodd'
|
|
92
|
+
d='M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z'
|
|
93
|
+
/>
|
|
94
|
+
</svg>
|
|
95
|
+
</span>
|
|
96
|
+
) or <strong>https://</strong> means you’ve safely connected
|
|
97
|
+
to the .gov website. Share sensitive information only on
|
|
98
|
+
official, secure websites.
|
|
99
|
+
</p>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</section>
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default GovBanner
|
|
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
|
|
4
4
|
import HeaderLogo from './HeaderLogo';
|
|
5
5
|
import NotificationBanner from '../NotificationBanner';
|
|
6
|
+
import GovBanner from '../GovBanner';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Accessibility enhancement that moves focus to an element for "Skip" links
|
|
@@ -38,7 +39,8 @@ const HeaderContainer = ({
|
|
|
38
39
|
Skip to sidebar
|
|
39
40
|
</a>
|
|
40
41
|
)}
|
|
41
|
-
|
|
42
|
+
<GovBanner />
|
|
43
|
+
{!isIESupportPage && <NotificationBanner />}
|
|
42
44
|
<header id="top" className={showCancelButton ? 'show-cancel-button' : ''}>
|
|
43
45
|
<HeaderLogo />
|
|
44
46
|
{children}
|
|
@@ -8,15 +8,17 @@ import {
|
|
|
8
8
|
deleteImpersonatedUser,
|
|
9
9
|
revertQppHasAuthsCookie,
|
|
10
10
|
} from '../../session/logout';
|
|
11
|
+
import { viewingToolUrl } from '../SideNav/helpers';
|
|
11
12
|
|
|
12
|
-
const getViewType = (viewType) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
const getViewType = (viewType) =>
|
|
14
|
+
({
|
|
15
|
+
username: 'HARP ID',
|
|
16
|
+
npi: 'NPI',
|
|
17
|
+
tin: 'TIN',
|
|
18
|
+
apm_id: 'APM Entity',
|
|
19
|
+
cms_id: 'Registry',
|
|
20
|
+
vg_id: 'Virtual Group',
|
|
21
|
+
}[viewType]);
|
|
20
22
|
|
|
21
23
|
const ImpersonatorBanner = () => {
|
|
22
24
|
const {
|
|
@@ -43,7 +45,7 @@ const ImpersonatorBanner = () => {
|
|
|
43
45
|
});
|
|
44
46
|
// Set qpp_has_authorizations cookie back to impersonator's value
|
|
45
47
|
revertQppHasAuthsCookie();
|
|
46
|
-
window.location.
|
|
48
|
+
window.location.href = viewingToolUrl;
|
|
47
49
|
};
|
|
48
50
|
return axios
|
|
49
51
|
.delete('/api/auth/helpdesk/view', {
|
|
@@ -60,7 +62,8 @@ const ImpersonatorBanner = () => {
|
|
|
60
62
|
user && (
|
|
61
63
|
<div className={className}>
|
|
62
64
|
<div>
|
|
63
|
-
VIEW ONLY | You are currently viewing {getViewType(viewType)}:
|
|
65
|
+
VIEW ONLY | You are currently viewing {getViewType(viewType)}:{' '}
|
|
66
|
+
<strong>{user}</strong>
|
|
64
67
|
</div>
|
|
65
68
|
<TextButton onClick={onClick} className="qpp-u-color--gray-80">
|
|
66
69
|
Exit View Mode
|
|
@@ -5,6 +5,7 @@ const feedbackUrl = `${submissionsUrl}/feedback`;
|
|
|
5
5
|
const physicianCompareUrl = `${submissionsUrl}/doctors-clinicians-preview`;
|
|
6
6
|
const reportsPortalUrl = `${submissionsUrl}/reports`;
|
|
7
7
|
const facilityBasedPreviewBaseUrl = `${submissionsUrl}/facility-based-preview`;
|
|
8
|
+
const viewingToolUrl = '/user/helpdesk-viewing-tool';
|
|
8
9
|
|
|
9
10
|
const performanceFeedbackUrl = (performanceYear) => {
|
|
10
11
|
if (performanceYear) {
|
|
@@ -46,4 +47,5 @@ module.exports = {
|
|
|
46
47
|
handleNavigation,
|
|
47
48
|
reportsPortalUrl,
|
|
48
49
|
facilityBasedPreviewBaseUrl,
|
|
50
|
+
viewingToolUrl,
|
|
49
51
|
};
|