@madie/madie-design-system 1.0.2 → 1.0.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/.storybook/main.js +3 -0
- package/components/Accordion/Accordion.stories.js +11 -11
- package/components/Accordion/index.jsx +78 -76
- package/components/Alert/Alert.stories.js +60 -51
- package/components/Alert/index.js +46 -37
- package/components/Breadcrumb/Breadcrumb.stories.js +62 -62
- package/components/Breadcrumb/index.js +80 -71
- package/components/Button/Button.stories.js +92 -86
- package/components/Button/index.js +65 -65
- package/components/CalloutBox/CalloutBox.stories.js +75 -75
- package/components/CalloutBox/index.js +92 -92
- package/components/Card/Card.stories.js +135 -135
- package/components/Card/index.js +128 -121
- package/components/Dropdown/Dropdown.stories.js +73 -73
- package/components/Dropdown/index.js +72 -72
- package/components/Error/Collapsible.jsx +75 -70
- package/components/Error/ErrorUI.jsx +22 -22
- package/components/Error/error.js +20 -20
- package/components/FlashNotification/FlashNotificationUI.jsx +77 -77
- package/components/FlashNotification/index.js +23 -23
- package/components/Footer/Footer.stories.js +13 -13
- package/components/Footer/FooterUI.jsx +264 -252
- package/components/Footer/LegacyFooterUI.jsx +190 -180
- package/components/Footer/SocialLinks.jsx +58 -55
- package/components/Footer/Subscribe.jsx +29 -29
- package/components/Footer/footer.js +21 -21
- package/components/FormControlLabel/index.jsx +23 -0
- package/components/Header/Header.stories.js +29 -26
- package/components/Header/HeaderAccountMenu.jsx +163 -149
- package/components/Header/HeaderCancel.jsx +8 -8
- package/components/Header/HeaderContainer.jsx +48 -43
- package/components/Header/HeaderLogo.jsx +34 -34
- package/components/Header/HeaderMenuButton.js +39 -39
- package/components/Header/HeaderMenuItem.jsx +252 -205
- package/components/Header/HeaderMenuLink.js +37 -37
- package/components/Header/HeaderMenuSignOutButton.js +50 -50
- package/components/Header/HeaderMobileButton.js +29 -29
- package/components/Header/HeaderUI.jsx +164 -147
- package/components/Header/HelpIcon.jsx +15 -15
- package/components/Header/ImpersonatorBanner.jsx +50 -47
- package/components/Header/NavigationButtonIcon.jsx +21 -21
- package/components/Header/header.js +36 -34
- package/components/Header/hooks.js +42 -35
- package/components/Header/utag-helpers.js +8 -8
- package/components/Infotip/Infotip.jsx +48 -48
- package/components/Infotip/Infotip.stories.js +32 -30
- package/components/Infotip/InfotipIcon.jsx +30 -30
- package/components/Infotip/index.js +1 -1
- package/components/InputLabel/index.jsx +58 -0
- package/components/Link/Link.stories.js +65 -64
- package/components/Link/index.js +46 -46
- package/components/Modal/LegacyModal.jsx +56 -54
- package/components/Modal/Modal.jsx +121 -121
- package/components/Modal/Modal.stories.js +152 -144
- package/components/Modal/index.jsx +11 -11
- package/components/NotificationBanner/NotificationBanner.stories.js +16 -16
- package/components/NotificationBanner/index.js +239 -225
- package/components/Pagination/index.jsx +171 -160
- package/components/SanitizedContent/index.jsx +183 -183
- package/components/Search/Search.stories.js +14 -14
- package/components/Search/index.js +72 -72
- package/components/Select/Select.stories.js +168 -0
- package/components/Select/index.jsx +103 -0
- package/components/SessionDialog/sessionDialog.js +20 -20
- package/components/SessionDialogUI.jsx +231 -219
- package/components/SideNav/AnimationGroup/AnimationGroup.jsx +19 -17
- package/components/SideNav/Chart/ScoreChart.jsx +238 -229
- package/components/SideNav/Chart/__tests__/ScoreChart.test.js +15 -15
- package/components/SideNav/Chart/index.js +1 -1
- package/components/SideNav/Content/LevelOneContent.jsx +194 -190
- package/components/SideNav/Content/LevelTwoContent.jsx +208 -195
- package/components/SideNav/Content/index.js +2 -2
- package/components/SideNav/Details/IndividualDetails.jsx +10 -10
- package/components/SideNav/Details/PracticeDetails.jsx +36 -34
- package/components/SideNav/Details/index.js +2 -2
- package/components/SideNav/Links/CmsSwitchLink.jsx +32 -32
- package/components/SideNav/Links/NavItemInline.jsx +44 -44
- package/components/SideNav/Links/NavLinkContainer.jsx +27 -25
- package/components/SideNav/Links/NavLinkDrawer.jsx +267 -231
- package/components/SideNav/Links/NavLinkInline.jsx +94 -92
- package/components/SideNav/Links/NavLinkToggle.jsx +25 -25
- package/components/SideNav/Links/index.js +10 -10
- package/components/SideNav/SideNav.stories.js +320 -288
- package/components/SideNav/UI/SideNavUI.jsx +321 -301
- package/components/SideNav/UI/index.js +1 -1
- package/components/SideNav/helpers.js +33 -33
- package/components/SideNav/index.js +46 -46
- package/components/Spinner/index.js +6 -6
- package/components/Tabs/Tab.js +19 -19
- package/components/Tabs/TabPanel.js +31 -24
- package/components/Tabs/Tabs.stories.js +118 -108
- package/components/Tabs/index.js +81 -76
- package/components/TextField/TextField.stories.js +103 -0
- package/components/TextField/index.jsx +80 -0
- package/components/TextInput/TextInput.stories.js +84 -84
- package/components/TextInput/index.js +123 -123
- package/components/Tooltip/Tooltip.jsx +57 -57
- package/components/Tooltip/Tooltip.stories.js +50 -50
- package/components/Tooltip/index.js +1 -1
- package/components/Tooltip/position.js +42 -34
- package/components/UnwrappedSpinner/index.js +5 -5
- package/components/hooks/useGetConfig.js +64 -55
- package/components/index.js +129 -121
- package/coverage/clover.xml +368 -331
- package/coverage/coverage-final.json +57 -54
- package/coverage/lcov-report/InputLabel/index.html +116 -0
- package/coverage/lcov-report/InputLabel/index.jsx.html +214 -0
- package/coverage/lcov-report/Select/index.html +116 -0
- package/coverage/lcov-report/Select/index.jsx.html +391 -0
- package/coverage/lcov-report/Textfield/index.html +116 -0
- package/coverage/lcov-report/Textfield/index.jsx.html +322 -0
- package/coverage/lcov-report/index.html +54 -9
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +84 -78
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +66 -66
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +87 -72
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +23 -23
- package/coverage/lcov-report/react/components/Error/error.js.html +21 -21
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +290 -254
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +212 -182
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +66 -57
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +30 -30
- package/coverage/lcov-report/react/components/Footer/footer.js.html +22 -22
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +193 -151
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +60 -45
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +36 -36
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +40 -40
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +348 -207
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +38 -38
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +51 -51
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +30 -30
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +201 -150
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +16 -16
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +58 -49
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +22 -22
- package/coverage/lcov-report/react/components/Header/header.js.html +42 -36
- package/coverage/lcov-report/react/components/Header/hooks.js.html +58 -37
- package/coverage/lcov-report/react/components/Header/index.html +1 -1
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +9 -9
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +49 -49
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +31 -31
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/InputLabel/index.html +116 -0
- package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +214 -0
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +62 -56
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +122 -122
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +12 -12
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +269 -227
- package/coverage/lcov-report/react/components/Pagination/index.html +1 -1
- package/coverage/lcov-report/react/components/Pagination/index.jsx.html +195 -162
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +184 -184
- package/coverage/lcov-report/react/components/Select/index.html +116 -0
- package/coverage/lcov-report/react/components/Select/index.jsx.html +391 -0
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +21 -21
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +257 -221
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +25 -19
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +261 -234
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +197 -185
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +236 -197
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +11 -11
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +42 -36
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +33 -33
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +45 -45
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +33 -27
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +323 -215
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +100 -94
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +26 -26
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +11 -11
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +363 -303
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +34 -34
- package/coverage/lcov-report/react/components/SideNav/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/index.js.html +47 -47
- package/coverage/lcov-report/react/components/Textfield/index.html +116 -0
- package/coverage/lcov-report/react/components/Textfield/index.jsx.html +322 -0
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +58 -58
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +60 -36
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +84 -57
- 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 +1 -1
- package/coverage/lcov-report/react/lib/index.html +1 -1
- 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.info +855 -779
- package/dist/browser.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +16 -16
- package/dist/react/index.js.LICENSE.txt +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +16 -9
- package/styles/qppds/components/_button.scss +29 -1
- package/test/components/Accordion.test.js +10 -10
- package/test/components/ErrorUI.test.js +29 -30
- package/test/components/FooterUI.test.js +82 -80
- package/test/components/HeaderUI.test.js +42 -38
- package/test/components/Infotip.test.js +64 -61
- package/test/components/Pagination.test.js +50 -50
- package/test/components/Select.test.js +113 -0
- package/test/components/SessionDialogUI.test.js +302 -294
- package/test/components/SideNavUI.test.js +19 -19
- package/test/components/TextField.test.js +50 -0
- package/test/components/Tooltip.test.js +133 -133
- package/test/index.test.js +6 -6
- package/test/session/session.test.js +200 -200
- package/storybook-static/0.5651be4a8d0b1984a772.manager.bundle.js +0 -2
- package/storybook-static/0.5651be4a8d0b1984a772.manager.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/0.ce0ed568.iframe.bundle.js +0 -1
- package/storybook-static/1.1b179d27.iframe.bundle.js +0 -3
- package/storybook-static/1.1b179d27.iframe.bundle.js.LICENSE.txt +0 -8
- package/storybook-static/1.1b179d27.iframe.bundle.js.map +0 -1
- package/storybook-static/1.c46d7d065aa0aa5a87ca.manager.bundle.js +0 -1
- package/storybook-static/10.99011d85.iframe.bundle.js +0 -3
- package/storybook-static/10.99011d85.iframe.bundle.js.LICENSE.txt +0 -11
- package/storybook-static/10.99011d85.iframe.bundle.js.map +0 -1
- package/storybook-static/2.35ddc55d.iframe.bundle.js +0 -1
- package/storybook-static/3.ed97833d.iframe.bundle.js +0 -1
- package/storybook-static/5.333e450fad8648669908.manager.bundle.js +0 -1
- package/storybook-static/6.505ea3c696ed314e90c8.manager.bundle.js +0 -2
- package/storybook-static/6.505ea3c696ed314e90c8.manager.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/7.94be8178.iframe.bundle.js +0 -1
- package/storybook-static/7.d26483fcb6f4087398a8.manager.bundle.js +0 -1
- package/storybook-static/8.68cd1217.iframe.bundle.js +0 -3
- package/storybook-static/8.68cd1217.iframe.bundle.js.LICENSE.txt +0 -12
- package/storybook-static/8.68cd1217.iframe.bundle.js.map +0 -1
- package/storybook-static/8.7adf0ef161215cd35a66.manager.bundle.js +0 -1
- package/storybook-static/9.488e3969.iframe.bundle.js +0 -1
- package/storybook-static/fonts/FontAwesome.otf +0 -0
- package/storybook-static/fonts/OFL.txt +0 -92
- package/storybook-static/fonts/Rubik-Black.ttf +0 -0
- package/storybook-static/fonts/Rubik-BlackItalic.ttf +0 -0
- package/storybook-static/fonts/Rubik-Bold.ttf +0 -0
- package/storybook-static/fonts/Rubik-BoldItalic.ttf +0 -0
- package/storybook-static/fonts/Rubik-Italic.ttf +0 -0
- package/storybook-static/fonts/Rubik-Light.ttf +0 -0
- package/storybook-static/fonts/Rubik-LightItalic.ttf +0 -0
- package/storybook-static/fonts/Rubik-Medium.ttf +0 -0
- package/storybook-static/fonts/Rubik-MediumItalic.ttf +0 -0
- package/storybook-static/fonts/Rubik-Regular.ttf +0 -0
- package/storybook-static/fonts/fontawesome-webfont.eot +0 -0
- package/storybook-static/fonts/fontawesome-webfont.svg +0 -2671
- package/storybook-static/fonts/fontawesome-webfont.ttf +0 -0
- package/storybook-static/fonts/fontawesome-webfont.woff +0 -0
- package/storybook-static/fonts/fontawesome-webfont.woff2 +0 -0
- package/storybook-static/iframe.html +0 -348
- package/storybook-static/images/favicon/android-chrome-192x192.png +0 -0
- package/storybook-static/images/favicon/android-chrome-256x256.png +0 -0
- package/storybook-static/images/favicon/apple-touch-icon.png +0 -0
- package/storybook-static/images/favicon/browserconfig.xml +0 -9
- package/storybook-static/images/favicon/favicon-16x16.png +0 -0
- package/storybook-static/images/favicon/favicon-32x32.png +0 -0
- package/storybook-static/images/favicon/favicon.ico +0 -0
- package/storybook-static/images/favicon/manifest.json +0 -18
- package/storybook-static/images/favicon/mstile-150x150.png +0 -0
- package/storybook-static/images/favicon/safari-pinned-tab.svg +0 -32
- package/storybook-static/images/hhs-logo-black.svg +0 -10
- package/storybook-static/images/hhs-logo-white.svg +0 -10
- package/storybook-static/images/icons/close-x.svg +0 -6
- package/storybook-static/images/icons/help-headset.svg +0 -21
- package/storybook-static/images/icons/svg/arrow-down.svg +0 -1
- package/storybook-static/images/icons/svg/arrow-download.svg +0 -1
- package/storybook-static/images/icons/svg/arrow-right.svg +0 -1
- package/storybook-static/images/icons/svg/calendar.svg +0 -1
- package/storybook-static/images/icons/svg/close.svg +0 -1
- package/storybook-static/images/icons/svg/download.svg +0 -1
- package/storybook-static/images/icons/svg/external.svg +0 -1
- package/storybook-static/images/icons/svg/file-upload.svg +0 -1
- package/storybook-static/images/icons/svg/print.svg +0 -1
- package/storybook-static/images/icons/svg/search.svg +0 -7
- package/storybook-static/images/icons/svg/tooltip-question.svg +0 -6
- package/storybook-static/images/icons/svg/trash.svg +0 -1
- package/storybook-static/images/icons/svg/upload.svg +0 -1
- package/storybook-static/images/qpp_logo_reversed.png +0 -0
- package/storybook-static/images/qpp_logo_rgb_color.png +0 -0
- package/storybook-static/index.html +0 -59
- package/storybook-static/main.5ae8041695a4f0c06f75.manager.bundle.js +0 -1
- package/storybook-static/main.ee2cae16.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.7eeb017b9a4ce6a70a00.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.e2794f2d.iframe.bundle.js +0 -1
- package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
- package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
- package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
- package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
- package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
- package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
- package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
- package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
- package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
- package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
- package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
- package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
- package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
- package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
- package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
- package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
- package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
- package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
- package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
- package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
- package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
- package/storybook-static/vendors~main.c7e1bdf2e91d9cdba380.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.c7e1bdf2e91d9cdba380.manager.bundle.js.LICENSE.txt +0 -104
- package/storybook-static/vendors~main.f299a23f.iframe.bundle.js +0 -76
- package/storybook-static/vendors~main.f299a23f.iframe.bundle.js.LICENSE.txt +0 -145
- package/storybook-static/vendors~main.f299a23f.iframe.bundle.js.map +0 -1
|
@@ -230,7 +230,24 @@
|
|
|
230
230
|
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
231
|
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
232
|
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
-
<a name='L168'></a><a href='#L168'>168</a
|
|
233
|
+
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
|
+
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
+
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
+
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
+
<a name='L172'></a><a href='#L172'>172</a>
|
|
238
|
+
<a name='L173'></a><a href='#L173'>173</a>
|
|
239
|
+
<a name='L174'></a><a href='#L174'>174</a>
|
|
240
|
+
<a name='L175'></a><a href='#L175'>175</a>
|
|
241
|
+
<a name='L176'></a><a href='#L176'>176</a>
|
|
242
|
+
<a name='L177'></a><a href='#L177'>177</a>
|
|
243
|
+
<a name='L178'></a><a href='#L178'>178</a>
|
|
244
|
+
<a name='L179'></a><a href='#L179'>179</a>
|
|
245
|
+
<a name='L180'></a><a href='#L180'>180</a>
|
|
246
|
+
<a name='L181'></a><a href='#L181'>181</a>
|
|
247
|
+
<a name='L182'></a><a href='#L182'>182</a>
|
|
248
|
+
<a name='L183'></a><a href='#L183'>183</a>
|
|
249
|
+
<a name='L184'></a><a href='#L184'>184</a>
|
|
250
|
+
<a name='L185'></a><a href='#L185'>185</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
234
251
|
<span class="cline-any cline-neutral"> </span>
|
|
235
252
|
<span class="cline-any cline-neutral"> </span>
|
|
236
253
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -320,6 +337,12 @@
|
|
|
320
337
|
<span class="cline-any cline-neutral"> </span>
|
|
321
338
|
<span class="cline-any cline-neutral"> </span>
|
|
322
339
|
<span class="cline-any cline-neutral"> </span>
|
|
340
|
+
<span class="cline-any cline-neutral"> </span>
|
|
341
|
+
<span class="cline-any cline-neutral"> </span>
|
|
342
|
+
<span class="cline-any cline-neutral"> </span>
|
|
343
|
+
<span class="cline-any cline-neutral"> </span>
|
|
344
|
+
<span class="cline-any cline-neutral"> </span>
|
|
345
|
+
<span class="cline-any cline-neutral"> </span>
|
|
323
346
|
<span class="cline-any cline-yes">4x</span>
|
|
324
347
|
<span class="cline-any cline-yes">2x</span>
|
|
325
348
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -333,12 +356,17 @@
|
|
|
333
356
|
<span class="cline-any cline-neutral"> </span>
|
|
334
357
|
<span class="cline-any cline-neutral"> </span>
|
|
335
358
|
<span class="cline-any cline-neutral"> </span>
|
|
359
|
+
<span class="cline-any cline-neutral"> </span>
|
|
336
360
|
<span class="cline-any cline-no"> </span>
|
|
337
361
|
<span class="cline-any cline-neutral"> </span>
|
|
338
362
|
<span class="cline-any cline-neutral"> </span>
|
|
339
363
|
<span class="cline-any cline-neutral"> </span>
|
|
340
364
|
<span class="cline-any cline-neutral"> </span>
|
|
341
365
|
<span class="cline-any cline-neutral"> </span>
|
|
366
|
+
<span class="cline-any cline-neutral"> </span>
|
|
367
|
+
<span class="cline-any cline-neutral"> </span>
|
|
368
|
+
<span class="cline-any cline-neutral"> </span>
|
|
369
|
+
<span class="cline-any cline-neutral"> </span>
|
|
342
370
|
<span class="cline-any cline-yes">2x</span>
|
|
343
371
|
<span class="cline-any cline-neutral"> </span>
|
|
344
372
|
<span class="cline-any cline-no"> </span>
|
|
@@ -349,6 +377,9 @@
|
|
|
349
377
|
<span class="cline-any cline-neutral"> </span>
|
|
350
378
|
<span class="cline-any cline-neutral"> </span>
|
|
351
379
|
<span class="cline-any cline-neutral"> </span>
|
|
380
|
+
<span class="cline-any cline-neutral"> </span>
|
|
381
|
+
<span class="cline-any cline-neutral"> </span>
|
|
382
|
+
<span class="cline-any cline-neutral"> </span>
|
|
352
383
|
<span class="cline-any cline-no"> </span>
|
|
353
384
|
<span class="cline-any cline-neutral"> </span>
|
|
354
385
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -365,6 +396,9 @@
|
|
|
365
396
|
<span class="cline-any cline-neutral"> </span>
|
|
366
397
|
<span class="cline-any cline-neutral"> </span>
|
|
367
398
|
<span class="cline-any cline-neutral"> </span>
|
|
399
|
+
<span class="cline-any cline-neutral"> </span>
|
|
400
|
+
<span class="cline-any cline-neutral"> </span>
|
|
401
|
+
<span class="cline-any cline-neutral"> </span>
|
|
368
402
|
<span class="cline-any cline-yes">2x</span>
|
|
369
403
|
<span class="cline-any cline-neutral"> </span>
|
|
370
404
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -397,170 +431,187 @@
|
|
|
397
431
|
<span class="cline-any cline-neutral"> </span>
|
|
398
432
|
<span class="cline-any cline-neutral"> </span>
|
|
399
433
|
<span class="cline-any cline-neutral"> </span>
|
|
400
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from
|
|
401
|
-
import PropTypes from
|
|
434
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from "react";
|
|
435
|
+
import PropTypes from "prop-types";
|
|
402
436
|
|
|
403
|
-
import HeaderAccountMenu from
|
|
404
|
-
import HeaderCancel from
|
|
405
|
-
import HeaderContainer from
|
|
406
|
-
import HeaderMenuItem from
|
|
407
|
-
import HeaderMobileButton from
|
|
408
|
-
import ImpersonatorBanner from
|
|
409
|
-
import HelpIcon from
|
|
410
|
-
import defaultHeaderContent from
|
|
411
|
-
import { HeaderStateProvider } from
|
|
412
|
-
import useGetConfig from
|
|
437
|
+
import HeaderAccountMenu from "./HeaderAccountMenu.jsx";
|
|
438
|
+
import HeaderCancel from "./HeaderCancel.jsx";
|
|
439
|
+
import HeaderContainer from "./HeaderContainer";
|
|
440
|
+
import HeaderMenuItem from "./HeaderMenuItem";
|
|
441
|
+
import HeaderMobileButton from "./HeaderMobileButton";
|
|
442
|
+
import ImpersonatorBanner from "./ImpersonatorBanner";
|
|
443
|
+
import HelpIcon from "./HelpIcon";
|
|
444
|
+
import defaultHeaderContent from "./default-content.json";
|
|
445
|
+
import { HeaderStateProvider } from "./hooks";
|
|
446
|
+
import useGetConfig from "../hooks/useGetConfig";
|
|
413
447
|
|
|
414
448
|
const HeaderUI = ({
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
449
|
+
fbpPerformanceYear,
|
|
450
|
+
feedbackPerformanceYear,
|
|
451
|
+
handleCancel,
|
|
452
|
+
includeSkipToSidebar,
|
|
453
|
+
isDevPre,
|
|
454
|
+
isLoginEnabled,
|
|
455
|
+
performanceYear,
|
|
456
|
+
showCancelButton,
|
|
457
|
+
showPhysicianCompareLink,
|
|
458
|
+
showFacilityBasedPreviewLink,
|
|
459
|
+
skipToContentId,
|
|
460
|
+
RouterLink,
|
|
461
|
+
isIESupportPage,
|
|
428
462
|
}) => {
|
|
429
|
-
|
|
463
|
+
const [isMobileMenuExpanded, setIsMobileMenuExpanded] = useState(false);
|
|
430
464
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
<span class="cstat-no" title="statement not covered" >
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
<span class="cstat-no" title="statement not covered" >
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
465
|
+
const mapContentToRows = (config) => {
|
|
466
|
+
// Append transposed array to content
|
|
467
|
+
return config?.map((section) => {
|
|
468
|
+
// Only header items with multiple columns need to be transposed
|
|
469
|
+
// Single column menus' tab order will remain the same
|
|
470
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (section.columns?.length > 1) {
|
|
471
|
+
const { columns } = <span class="cstat-no" title="statement not covered" >section;</span>
|
|
472
|
+
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
473
|
+
...section,
|
|
474
|
+
rows: columns[0].map(<span class="fstat-no" title="function not covered" >(_</span>, colIndex) =>
|
|
475
|
+
<span class="cstat-no" title="statement not covered" > columns.map(<span class="fstat-no" title="function not covered" >(r</span>ow) => <span class="cstat-no" title="statement not covered" >row[colIndex])</span></span>
|
|
476
|
+
),
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
return { ...section, rows: section.columns };
|
|
480
|
+
});
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
const result = useGetConfig({
|
|
484
|
+
localStorageName: "qpp_top_nav_content",
|
|
485
|
+
url: "/config/header",
|
|
486
|
+
timeout: 30,
|
|
487
|
+
defaultContent: defaultHeaderContent,
|
|
446
488
|
});
|
|
447
|
-
};
|
|
448
489
|
|
|
449
|
-
|
|
450
|
-
localStorageName: 'qpp_top_nav_content',
|
|
451
|
-
url: '/config/header',
|
|
452
|
-
timeout: 30,
|
|
453
|
-
defaultContent: defaultHeaderContent,
|
|
454
|
-
});
|
|
490
|
+
const content = mapContentToRows(result?.content);
|
|
455
491
|
|
|
456
|
-
|
|
492
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (showCancelButton) {
|
|
493
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
494
|
+
<HeaderStateProvider RouterLink={RouterLink}>
|
|
495
|
+
<HeaderContainer
|
|
496
|
+
showCancelButton
|
|
497
|
+
skipToContentId={skipToContentId}
|
|
498
|
+
includeSkipToSidebar={includeSkipToSidebar}
|
|
499
|
+
>
|
|
500
|
+
<HeaderCancel handleCancel={handleCancel} />
|
|
501
|
+
</HeaderContainer>
|
|
502
|
+
</HeaderStateProvider>
|
|
503
|
+
);
|
|
504
|
+
}
|
|
457
505
|
|
|
458
|
-
|
|
459
|
-
<span class="cstat-no" title="statement not covered" >
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
506
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (isDevPre) {
|
|
507
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
508
|
+
<HeaderStateProvider RouterLink={RouterLink}>
|
|
509
|
+
<HeaderContainer
|
|
510
|
+
isIESupportPage={isIESupportPage}
|
|
511
|
+
skipToContentId={skipToContentId}
|
|
512
|
+
includeSkipToSidebar={includeSkipToSidebar}
|
|
513
|
+
>
|
|
514
|
+
<nav
|
|
515
|
+
aria-label="Primary navigation"
|
|
516
|
+
hidden={!isMobileMenuExpanded}
|
|
517
|
+
>
|
|
518
|
+
<ul className="navigation-menu">
|
|
519
|
+
<HeaderAccountMenu
|
|
520
|
+
isDevPre
|
|
521
|
+
isLoginEnabled={isLoginEnabled}
|
|
522
|
+
/>
|
|
523
|
+
</ul>
|
|
524
|
+
</nav>
|
|
525
|
+
</HeaderContainer>
|
|
526
|
+
</HeaderStateProvider>
|
|
527
|
+
);
|
|
528
|
+
}
|
|
471
529
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
<HeaderContainer
|
|
476
|
-
isIESupportPage={isIESupportPage}
|
|
477
|
-
skipToContentId={skipToContentId}
|
|
478
|
-
includeSkipToSidebar={includeSkipToSidebar}
|
|
479
|
-
>
|
|
480
|
-
<nav aria-label="Primary navigation" hidden={!isMobileMenuExpanded}>
|
|
481
|
-
<ul className="navigation-menu">
|
|
482
|
-
<HeaderAccountMenu isDevPre isLoginEnabled={isLoginEnabled} />
|
|
483
|
-
</ul>
|
|
484
|
-
</nav>
|
|
485
|
-
</HeaderContainer>
|
|
486
|
-
</HeaderStateProvider>
|
|
487
|
-
);
|
|
488
|
-
}
|
|
530
|
+
if (!content) {
|
|
531
|
+
return null;
|
|
532
|
+
}
|
|
489
533
|
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
<span class="
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
534
|
+
return (
|
|
535
|
+
<HeaderStateProvider RouterLink={RouterLink}>
|
|
536
|
+
<HeaderContainer
|
|
537
|
+
isIESupportPage={isIESupportPage}
|
|
538
|
+
skipToContentId={skipToContentId}
|
|
539
|
+
includeSkipToSidebar={includeSkipToSidebar}
|
|
540
|
+
>
|
|
541
|
+
<HelpIcon />
|
|
542
|
+
<HeaderMobileButton
|
|
543
|
+
handleClick={<span class="fstat-no" title="function not covered" >()</span> =>
|
|
544
|
+
<span class="cstat-no" title="statement not covered" > setIsMobileMenuExpanded(!isMobileMenuExpanded)</span>
|
|
545
|
+
}
|
|
546
|
+
isMobileMenuExpanded={isMobileMenuExpanded}
|
|
547
|
+
/>
|
|
548
|
+
<nav
|
|
549
|
+
aria-label="Primary navigation"
|
|
550
|
+
hidden={!isMobileMenuExpanded}
|
|
551
|
+
>
|
|
552
|
+
<ul className="navigation-menu navigation-new-style">
|
|
553
|
+
{content.map((header) => (
|
|
554
|
+
<HeaderMenuItem
|
|
555
|
+
handleClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
556
|
+
<span class="cstat-no" title="statement not covered" > setIsMobileMenuExpanded(</span>
|
|
557
|
+
!isMobileMenuExpanded
|
|
558
|
+
);
|
|
559
|
+
}}
|
|
560
|
+
isMobileMenuExpanded={isMobileMenuExpanded}
|
|
561
|
+
key={header.name}
|
|
562
|
+
{...header}
|
|
563
|
+
/>
|
|
564
|
+
))}
|
|
565
|
+
<HeaderAccountMenu
|
|
566
|
+
handleClick={<span class="fstat-no" title="function not covered" >()</span> =>
|
|
567
|
+
<span class="cstat-no" title="statement not covered" > setIsMobileMenuExpanded(!isMobileMenuExpanded)</span>
|
|
568
|
+
}
|
|
569
|
+
fbpPerformanceYear={fbpPerformanceYear}
|
|
570
|
+
feedbackPerformanceYear={feedbackPerformanceYear}
|
|
571
|
+
isLoginEnabled={isLoginEnabled}
|
|
572
|
+
performanceYear={performanceYear}
|
|
573
|
+
showPhysicianCompareLink={showPhysicianCompareLink}
|
|
574
|
+
showFacilityBasedPreviewLink={
|
|
575
|
+
showFacilityBasedPreviewLink
|
|
576
|
+
}
|
|
577
|
+
/>
|
|
578
|
+
</ul>
|
|
579
|
+
</nav>
|
|
580
|
+
</HeaderContainer>
|
|
581
|
+
<ImpersonatorBanner />
|
|
582
|
+
</HeaderStateProvider>
|
|
583
|
+
);
|
|
533
584
|
};
|
|
534
585
|
|
|
535
586
|
HeaderUI.propTypes = {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
587
|
+
fbpPerformanceYear: PropTypes.string,
|
|
588
|
+
feedbackPerformanceYear: PropTypes.string,
|
|
589
|
+
handleCancel: PropTypes.func,
|
|
590
|
+
includeSkipToSidebar: PropTypes.bool,
|
|
591
|
+
isDevPre: PropTypes.bool,
|
|
592
|
+
isLoginEnabled: PropTypes.bool,
|
|
593
|
+
performanceYear: PropTypes.number,
|
|
594
|
+
showCancelButton: PropTypes.bool,
|
|
595
|
+
showPhysicianCompareLink: PropTypes.bool,
|
|
596
|
+
showFacilityBasedPreviewLink: PropTypes.bool,
|
|
597
|
+
skipToContentId: PropTypes.string,
|
|
598
|
+
RouterLink: PropTypes.func,
|
|
599
|
+
isIESupportPage: PropTypes.bool,
|
|
549
600
|
};
|
|
550
601
|
HeaderUI.defaultProps = {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
602
|
+
fbpPerformanceYear: null,
|
|
603
|
+
feedbackPerformanceYear: null,
|
|
604
|
+
handleCancel: Function.prototype,
|
|
605
|
+
includeSkipToSidebar: false,
|
|
606
|
+
isDevPre: false,
|
|
607
|
+
isLoginEnabled: true,
|
|
608
|
+
performanceYear: 2017,
|
|
609
|
+
showCancelButton: false,
|
|
610
|
+
showPhysicianCompareLink: false,
|
|
611
|
+
showFacilityBasedPreviewLink: false,
|
|
612
|
+
skipToContentId: null,
|
|
613
|
+
RouterLink: null,
|
|
614
|
+
isIESupportPage: false,
|
|
564
615
|
};
|
|
565
616
|
|
|
566
617
|
export default HeaderUI;
|
|
@@ -571,7 +622,7 @@ export default HeaderUI;
|
|
|
571
622
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
572
623
|
Code coverage generated by
|
|
573
624
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
574
|
-
at
|
|
625
|
+
at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
|
|
575
626
|
</div>
|
|
576
627
|
<script src="../../../prettify.js"></script>
|
|
577
628
|
<script>
|
|
@@ -127,19 +127,19 @@
|
|
|
127
127
|
<span class="cline-any cline-neutral"> </span>
|
|
128
128
|
<span class="cline-any cline-neutral"> </span>
|
|
129
129
|
<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 from
|
|
130
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
131
131
|
|
|
132
132
|
const HelpIcon = () => (
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
133
|
+
<a
|
|
134
|
+
className="header-help"
|
|
135
|
+
href="tel:1-866-288-8292"
|
|
136
|
+
data-track-category="MainContent"
|
|
137
|
+
data-track-action="CallQPPServiceCenter"
|
|
138
|
+
data-track-label="QPP Service Center Phone"
|
|
139
|
+
>
|
|
140
|
+
<svg viewBox="0 0 28 28" className="header-help-icon">
|
|
141
|
+
<path
|
|
142
|
+
d="M23.9,5.9c0-0.6-0.2-1.1-0.6-1.5c-2.5-2.5-5.7-3.8-9.2-3.8S7.2,1.9,4.8,4.4c-0.4,0.4-0.6,1-0.6,1.5
|
|
143
143
|
c0,0.4,0.1,0.8,0.3,1.1c-1.3,1.9-2,4.1-2,6.6v2.9c0,2.1,1.1,4,2.9,5.1c0,1.2,1,2.1,2.2,2.1c1.2,0,2.2-1,2.2-2.2v-6.5
|
|
144
144
|
c0-1.2-1-2.2-2.2-2.2c-1.1,0-2,0.8-2.1,1.8H3.8v-1.1c0-2.1,0.6-4,1.7-5.6C5.8,8.1,6,8.1,6.3,8.1c0.6,0,1.1-0.2,1.5-0.6
|
|
145
145
|
c1.6-1.6,3.8-2.5,6.2-2.5s4.5,0.9,6.2,2.5c0.4,0.4,1,0.6,1.5,0.6c0.3,0,0.5,0,0.7-0.1c1.1,1.6,1.7,3.6,1.7,5.6v1.1h-1.5
|
|
@@ -152,10 +152,10 @@ const HelpIcon = () => (
|
|
|
152
152
|
S19.8,22,19.8,21.6z M22.7,16.2h1.5v0.4c0,1.3-0.5,2.5-1.5,3.3V16.2z M21.2,6.5c-1.9-1.9-4.5-3-7.2-3s-5.3,1.1-7.2,3
|
|
153
153
|
c-0.3,0.3-0.8,0.3-1,0C5.7,6.3,5.6,6.1,5.6,5.9s0.1-0.4,0.2-0.5C8,3.2,10.9,2,14,2s6,1.2,8.2,3.4l0,0c0.1,0.1,0.2,0.3,0.2,0.5
|
|
154
154
|
s-0.1,0.4-0.2,0.5C21.9,6.7,21.5,6.7,21.2,6.5z"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
/>
|
|
156
|
+
</svg>
|
|
157
|
+
<span>Help</span>
|
|
158
|
+
</a>
|
|
159
159
|
);
|
|
160
160
|
|
|
161
161
|
export default HelpIcon;
|
|
@@ -166,7 +166,7 @@ export default HelpIcon;
|
|
|
166
166
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
167
167
|
Code coverage generated by
|
|
168
168
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
169
|
-
at
|
|
169
|
+
at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
|
|
170
170
|
</div>
|
|
171
171
|
<script src="../../../prettify.js"></script>
|
|
172
172
|
<script>
|
|
@@ -120,7 +120,13 @@
|
|
|
120
120
|
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
121
|
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
122
|
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
-
<a name='L58'></a><a href='#L58'>58</a
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-neutral"> </span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
124
130
|
<span class="cline-any cline-neutral"> </span>
|
|
125
131
|
<span class="cline-any cline-neutral"> </span>
|
|
126
132
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -177,60 +183,63 @@
|
|
|
177
183
|
<span class="cline-any cline-neutral"> </span>
|
|
178
184
|
<span class="cline-any cline-neutral"> </span>
|
|
179
185
|
<span class="cline-any cline-neutral"> </span>
|
|
180
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
181
|
-
import cookie from
|
|
182
|
-
import axios from
|
|
183
|
-
import CloseIcon from
|
|
186
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
187
|
+
import cookie from "cookie";
|
|
188
|
+
import axios from "axios";
|
|
189
|
+
import CloseIcon from "@mui/icons-material/Close";
|
|
184
190
|
|
|
185
|
-
import { TextButton } from
|
|
186
|
-
import {
|
|
191
|
+
import { TextButton } from "../Button";
|
|
192
|
+
import {
|
|
193
|
+
deleteImpersonatedUser,
|
|
194
|
+
revertQppHasAuthsCookie,
|
|
195
|
+
} from "../../session/logout";
|
|
187
196
|
|
|
188
197
|
const ImpersonatorBanner = () => {
|
|
189
|
-
|
|
190
|
-
|
|
198
|
+
const { qpp_auth_token: token = null, qpp_impersonated_user: user = null } =
|
|
199
|
+
cookie.parse(document.cookie);
|
|
191
200
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
const className = [
|
|
202
|
+
"qpp-u-display--flex",
|
|
203
|
+
"qpp-u-justify-content--between",
|
|
204
|
+
"qpp-u-fill--gold-20",
|
|
205
|
+
"qpp-u-padding-x--40",
|
|
206
|
+
"qpp-u-padding-y--24",
|
|
207
|
+
"qpp-u-font-size--14",
|
|
208
|
+
"qpp-u-color--gray-80",
|
|
209
|
+
].join(" ");
|
|
201
210
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
<span class="cstat-no" title="statement not covered" >
|
|
205
|
-
|
|
206
|
-
<span class="cstat-no" title="statement not covered" >
|
|
207
|
-
<span class="cstat-no" title="statement not covered" >
|
|
211
|
+
const onClick = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
212
|
+
const fn = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
213
|
+
<span class="cstat-no" title="statement not covered" > deleteImpersonatedUser({ qpp_impersonated_user: user });</span>
|
|
214
|
+
// Set qpp_has_authorizations cookie back to impersonator's value
|
|
215
|
+
<span class="cstat-no" title="statement not covered" > revertQppHasAuthsCookie();</span>
|
|
216
|
+
<span class="cstat-no" title="statement not covered" > window.location.reload();</span>
|
|
217
|
+
};
|
|
218
|
+
<span class="cstat-no" title="statement not covered" > return axios</span>
|
|
219
|
+
.delete("/api/auth/users/impersonate", {
|
|
220
|
+
headers: {
|
|
221
|
+
Accept: "application/vnd.qpp.cms.gov.v1+json",
|
|
222
|
+
Authorization: `Bearer ${token}`,
|
|
223
|
+
},
|
|
224
|
+
})
|
|
225
|
+
.then(fn, fn);
|
|
208
226
|
};
|
|
209
|
-
<span class="cstat-no" title="statement not covered" > return axios</span>
|
|
210
|
-
.delete('/api/auth/users/impersonate', {
|
|
211
|
-
headers: {
|
|
212
|
-
Accept: 'application/vnd.qpp.cms.gov.v1+json',
|
|
213
|
-
Authorization: `Bearer ${token}`,
|
|
214
|
-
},
|
|
215
|
-
})
|
|
216
|
-
.then(fn, fn);
|
|
217
|
-
};
|
|
218
227
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
<span class="branch-1 cbranch-no" title="branch not covered" >
|
|
222
|
-
<span class="branch-2 cbranch-no" title="branch not covered" >
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
228
|
+
return (
|
|
229
|
+
token &&
|
|
230
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > user </span>&& (
|
|
231
|
+
<span class="branch-2 cbranch-no" title="branch not covered" > <div className={className}></span>
|
|
232
|
+
<div>
|
|
233
|
+
VIEW ONLY | You are currently impersonating HARP user:{" "}
|
|
234
|
+
<strong>{user}</strong>
|
|
235
|
+
</div>
|
|
236
|
+
<TextButton onClick={onClick} className="qpp-u-color--gray-80">
|
|
237
|
+
Exit Impersonation Mode
|
|
238
|
+
<CloseIcon />
|
|
239
|
+
</TextButton>
|
|
240
|
+
</div>
|
|
241
|
+
)
|
|
242
|
+
);
|
|
234
243
|
};
|
|
235
244
|
|
|
236
245
|
export default ImpersonatorBanner;
|
|
@@ -241,7 +250,7 @@ export default ImpersonatorBanner;
|
|
|
241
250
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
242
251
|
Code coverage generated by
|
|
243
252
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
244
|
-
at
|
|
253
|
+
at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
|
|
245
254
|
</div>
|
|
246
255
|
<script src="../../../prettify.js"></script>
|
|
247
256
|
<script>
|