@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
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<a name='L4'></a><a href='#L4'>4</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
70
70
|
<span class="cline-any cline-neutral"> </span>
|
|
71
71
|
<span class="cline-any cline-neutral"> </span>
|
|
72
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import ScoreChart from
|
|
72
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import ScoreChart from "./ScoreChart";
|
|
73
73
|
|
|
74
74
|
export { ScoreChart };
|
|
75
75
|
</pre></td></tr></table></pre>
|
|
@@ -79,7 +79,7 @@ export { ScoreChart };
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at
|
|
82
|
+
at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -271,7 +271,11 @@
|
|
|
271
271
|
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
272
|
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
273
|
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
-
<a name='L209'></a><a href='#L209'>209</a
|
|
274
|
+
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
+
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
|
+
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
+
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
+
<a name='L213'></a><a href='#L213'>213</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
275
279
|
<span class="cline-any cline-neutral"> </span>
|
|
276
280
|
<span class="cline-any cline-neutral"> </span>
|
|
277
281
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -374,6 +378,7 @@
|
|
|
374
378
|
<span class="cline-any cline-neutral"> </span>
|
|
375
379
|
<span class="cline-any cline-neutral"> </span>
|
|
376
380
|
<span class="cline-any cline-neutral"> </span>
|
|
381
|
+
<span class="cline-any cline-neutral"> </span>
|
|
377
382
|
<span class="cline-any cline-yes">1x</span>
|
|
378
383
|
<span class="cline-any cline-neutral"> </span>
|
|
379
384
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -419,6 +424,8 @@
|
|
|
419
424
|
<span class="cline-any cline-no"> </span>
|
|
420
425
|
<span class="cline-any cline-no"> </span>
|
|
421
426
|
<span class="cline-any cline-neutral"> </span>
|
|
427
|
+
<span class="cline-any cline-neutral"> </span>
|
|
428
|
+
<span class="cline-any cline-neutral"> </span>
|
|
422
429
|
<span class="cline-any cline-no"> </span>
|
|
423
430
|
<span class="cline-any cline-neutral"> </span>
|
|
424
431
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -427,6 +434,7 @@
|
|
|
427
434
|
<span class="cline-any cline-no"> </span>
|
|
428
435
|
<span class="cline-any cline-neutral"> </span>
|
|
429
436
|
<span class="cline-any cline-neutral"> </span>
|
|
437
|
+
<span class="cline-any cline-neutral"> </span>
|
|
430
438
|
<span class="cline-any cline-no"> </span>
|
|
431
439
|
<span class="cline-any cline-neutral"> </span>
|
|
432
440
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -479,211 +487,215 @@
|
|
|
479
487
|
<span class="cline-any cline-neutral"> </span>
|
|
480
488
|
<span class="cline-any cline-neutral"> </span>
|
|
481
489
|
<span class="cline-any cline-neutral"> </span>
|
|
482
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
483
|
-
import PropTypes from
|
|
484
|
-
import cookie from
|
|
485
|
-
import jwtDecode from
|
|
490
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
491
|
+
import PropTypes from "prop-types";
|
|
492
|
+
import cookie from "cookie";
|
|
493
|
+
import jwtDecode from "jwt-decode";
|
|
486
494
|
|
|
487
|
-
import { NavLinkContainer, NavLinkInline, NavLinkDrawer } from
|
|
488
|
-
import AnimationGroup from
|
|
489
|
-
import defaultContent from
|
|
495
|
+
import { NavLinkContainer, NavLinkInline, NavLinkDrawer } from "../Links";
|
|
496
|
+
import AnimationGroup from "../AnimationGroup/AnimationGroup";
|
|
497
|
+
import defaultContent from "../UI/default-content";
|
|
490
498
|
import {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
} from
|
|
499
|
+
AccountHomeIcon,
|
|
500
|
+
DashboardIcon,
|
|
501
|
+
FacilityBasedPreviewIcon,
|
|
502
|
+
HardshipIcon,
|
|
503
|
+
HelpSupportIcon,
|
|
504
|
+
ManageUsersIcon,
|
|
505
|
+
MyApplicationsIcon,
|
|
506
|
+
MyTestDataIcon,
|
|
507
|
+
PaymentIcon,
|
|
508
|
+
PhysicianCompareIcon,
|
|
509
|
+
StarIcon,
|
|
510
|
+
TargetIcon,
|
|
511
|
+
IndividualReporting,
|
|
512
|
+
} from "../../../lib/SvgComponents";
|
|
505
513
|
import {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
} from
|
|
514
|
+
dashboardUrl,
|
|
515
|
+
facilityBasedPreviewBaseUrl,
|
|
516
|
+
feedbackUrl,
|
|
517
|
+
manageUrl,
|
|
518
|
+
physicianCompareUrl,
|
|
519
|
+
reportsPortalUrl,
|
|
520
|
+
submissionsUrl,
|
|
521
|
+
} from "../helpers";
|
|
514
522
|
|
|
515
523
|
const getIcon = <span class="fstat-no" title="function not covered" >(u</span>rl) =>
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
524
|
+
(<span class="cstat-no" title="statement not covered" >{</span>
|
|
525
|
+
[dashboardUrl]: DashboardIcon,
|
|
526
|
+
[feedbackUrl]: StarIcon,
|
|
527
|
+
[manageUrl]: ManageUsersIcon,
|
|
528
|
+
[physicianCompareUrl]: PhysicianCompareIcon,
|
|
529
|
+
[reportsPortalUrl]: HardshipIcon,
|
|
530
|
+
[submissionsUrl]: AccountHomeIcon,
|
|
531
|
+
[facilityBasedPreviewBaseUrl]: FacilityBasedPreviewIcon,
|
|
532
|
+
"/developers": HelpSupportIcon,
|
|
533
|
+
"/resources/help-and-support": HelpSupportIcon,
|
|
534
|
+
"/user/apm-incentive-payments": PaymentIcon,
|
|
535
|
+
"/user/applications": MyApplicationsIcon,
|
|
536
|
+
"/user/exception/#/landing": HardshipIcon,
|
|
537
|
+
"/user/targeted-review/#/landing": TargetIcon,
|
|
538
|
+
"/user/test-data": MyTestDataIcon,
|
|
539
|
+
"/user/self-nomination/#/landing": IndividualReporting,
|
|
540
|
+
"/user/reviewers": DashboardIcon,
|
|
541
|
+
"/reviewer/exception": HardshipIcon,
|
|
542
|
+
"/reviewer/targeted-review": TargetIcon,
|
|
543
|
+
"/self-nomination": IndividualReporting,
|
|
544
|
+
}[url] || null);
|
|
537
545
|
|
|
538
546
|
const LevelOneContent = ({
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
547
|
+
isExpanded,
|
|
548
|
+
config: { linkCallback, useTooltips } = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
549
|
+
levelOneContent,
|
|
542
550
|
}) => {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
551
|
+
let {
|
|
552
|
+
qpp_has_authorizations,
|
|
553
|
+
user_has_apm_payments,
|
|
554
|
+
qpp_is_dev_pre,
|
|
555
|
+
qpp_ehr_authorized,
|
|
556
|
+
qpp_has_non_registry_authorizations,
|
|
557
|
+
qpp_auth_token,
|
|
558
|
+
qpp_cms_internal_authorized,
|
|
559
|
+
qpp_can_impersonate,
|
|
560
|
+
} = cookie.parse(document.cookie);
|
|
553
561
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
562
|
+
let name = "";
|
|
563
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (qpp_auth_token) {
|
|
564
|
+
const { firstName, lastName } = jwtDecode(qpp_auth_token);
|
|
565
|
+
name = `${firstName} ${lastName}`;
|
|
566
|
+
}
|
|
559
567
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
const canImpersonate = qpp_can_impersonate === "true";
|
|
569
|
+
const hasAuthorizations = qpp_has_authorizations === "true";
|
|
570
|
+
const hasApmPayments = user_has_apm_payments === "true";
|
|
571
|
+
const isDevPre = qpp_is_dev_pre === "true";
|
|
572
|
+
const internalReviewerNames = JSON.parse(
|
|
573
|
+
qpp_cms_internal_authorized || "null"
|
|
574
|
+
);
|
|
575
|
+
const ehrAuthorized = qpp_ehr_authorized === "true";
|
|
576
|
+
const hasNonRegistryAuthorizations =
|
|
577
|
+
qpp_has_non_registry_authorizations === "true";
|
|
570
578
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
<span class="fstat-no" title="function not covered" >
|
|
576
|
-
<span class="cstat-no" title="statement not covered" >
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
<span class="cstat-no" title="statement not covered" >
|
|
581
|
-
|
|
582
|
-
|
|
579
|
+
const linkClass = isExpanded ? "link-inline" : <span class="branch-1 cbranch-no" title="branch not covered" >"link-collapsed";</span>
|
|
580
|
+
let content = isDevPre ? <span class="branch-0 cbranch-no" title="branch not covered" >levelOneContent?.devPre </span>: levelOneContent?.default;
|
|
581
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (
|
|
582
|
+
(internalReviewerNames || []).some(
|
|
583
|
+
<span class="fstat-no" title="function not covered" > (n</span>ame) =>
|
|
584
|
+
<span class="cstat-no" title="statement not covered" > name === "QPP Self-Nomination" ||</span>
|
|
585
|
+
name === "QPP Targeted Review & Exceptions"
|
|
586
|
+
)
|
|
587
|
+
) {
|
|
588
|
+
<span class="cstat-no" title="statement not covered" > content =</span>
|
|
589
|
+
levelOneContent?.internalReviewers ||
|
|
590
|
+
defaultContent.internalReviewers;
|
|
591
|
+
}
|
|
583
592
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
+
// Mapping side nav link urls to the conditions that determine their inclusion in the side nav
|
|
594
|
+
const urlConditionMap = {
|
|
595
|
+
[dashboardUrl]: hasAuthorizations,
|
|
596
|
+
[feedbackUrl]: hasAuthorizations,
|
|
597
|
+
"/user/apm-incentive-payments": hasApmPayments,
|
|
598
|
+
[physicianCompareUrl]: hasNonRegistryAuthorizations,
|
|
599
|
+
[reportsPortalUrl]: hasAuthorizations,
|
|
600
|
+
[facilityBasedPreviewBaseUrl]: hasAuthorizations,
|
|
601
|
+
"/user/impersonate": canImpersonate,
|
|
593
602
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
+
"/reviewer/exception": (internalReviewerNames || []).includes(
|
|
604
|
+
"QPP Targeted Review & Exceptions"
|
|
605
|
+
),
|
|
606
|
+
"/reviewer/targeted-review": (internalReviewerNames || []).includes(
|
|
607
|
+
"QPP Targeted Review & Exceptions"
|
|
608
|
+
),
|
|
609
|
+
"/self-nomination": (internalReviewerNames || []).includes(
|
|
610
|
+
"QPP Self-Nomination"
|
|
611
|
+
),
|
|
603
612
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
613
|
+
// dev pre
|
|
614
|
+
"/user/applications": ehrAuthorized,
|
|
615
|
+
"/user/test-data": ehrAuthorized,
|
|
616
|
+
};
|
|
608
617
|
|
|
609
|
-
|
|
610
|
-
|
|
618
|
+
const navLinks = content.reduce(<span class="fstat-no" title="function not covered" >(a</span>cc, link) => {
|
|
619
|
+
const { url, label, className, listOfLinks, ...rest } = <span class="cstat-no" title="statement not covered" >link;</span>
|
|
611
620
|
|
|
612
|
-
|
|
613
|
-
<span class="cstat-no" title="statement not covered" >
|
|
614
|
-
<span class="cstat-no" title="statement not covered" >
|
|
615
|
-
|
|
621
|
+
// Any links failing the corresponding condition in the urlConditionMap are skipped
|
|
622
|
+
<span class="cstat-no" title="statement not covered" > if (url in urlConditionMap && !urlConditionMap[url]) {</span>
|
|
623
|
+
<span class="cstat-no" title="statement not covered" > return acc;</span>
|
|
624
|
+
}
|
|
616
625
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
626
|
+
const IconComponent = <span class="cstat-no" title="statement not covered" >getIcon(url);</span>
|
|
627
|
+
const Icon = <span class="cstat-no" title="statement not covered" >IconComponent ? <IconComponent /> : null;</span>
|
|
628
|
+
const sharedProps = <span class="cstat-no" title="statement not covered" >{</span>
|
|
629
|
+
url,
|
|
630
|
+
label,
|
|
631
|
+
linkCallback,
|
|
632
|
+
className: className ? `${linkClass} ${className}` : linkClass,
|
|
633
|
+
};
|
|
625
634
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
<span class="cstat-no" title="statement not covered" >
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
635
|
+
const { pathname, hash } = <span class="cstat-no" title="statement not covered" >window.location;</span>
|
|
636
|
+
const filteredListOfLinks = <span class="cstat-no" title="statement not covered" >(listOfLinks || []).filter(<span class="fstat-no" title="function not covered" >(s</span>ublink) => {</span>
|
|
637
|
+
<span class="cstat-no" title="statement not covered" > return !(</span>
|
|
638
|
+
sublink.url in urlConditionMap && !urlConditionMap[sublink.url]
|
|
639
|
+
);
|
|
640
|
+
});
|
|
641
|
+
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
642
|
+
filteredListOfLinks?.length > 0 &&
|
|
643
|
+
(pathname === url ||
|
|
644
|
+
filteredListOfLinks.some(
|
|
645
|
+
<span class="fstat-no" title="function not covered" > (s</span>ublink) =>
|
|
646
|
+
<span class="cstat-no" title="statement not covered" > pathname === sublink.url ||</span>
|
|
647
|
+
`${pathname}${hash}` === sublink.url
|
|
648
|
+
))
|
|
649
|
+
) {
|
|
650
|
+
<span class="cstat-no" title="statement not covered" > acc.push(</span>
|
|
651
|
+
<NavLinkDrawer
|
|
652
|
+
key={`nav-drawer-${url}-${label}`}
|
|
653
|
+
leftIcon={Icon}
|
|
654
|
+
listOfLinks={filteredListOfLinks}
|
|
655
|
+
isExpanded={isExpanded}
|
|
656
|
+
staticDrawer={false}
|
|
657
|
+
openByDefault
|
|
658
|
+
isAlwaysOpen
|
|
659
|
+
{...sharedProps}
|
|
660
|
+
{...rest}
|
|
661
|
+
/>
|
|
662
|
+
);
|
|
663
|
+
} else {
|
|
664
|
+
<span class="cstat-no" title="statement not covered" > acc.push(</span>
|
|
665
|
+
<NavLinkInline
|
|
666
|
+
key={`nav-link-${url}-${label}`}
|
|
667
|
+
icon={Icon}
|
|
668
|
+
useTooltips={useTooltips}
|
|
669
|
+
showLabel={isExpanded}
|
|
670
|
+
{...sharedProps}
|
|
671
|
+
{...rest}
|
|
672
|
+
/>
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
<span class="cstat-no" title="statement not covered" > return acc;</span>
|
|
676
|
+
}, []);
|
|
665
677
|
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
678
|
+
return (
|
|
679
|
+
<div className="sidebar-content">
|
|
680
|
+
<AnimationGroup display={isExpanded}>
|
|
681
|
+
<h1 className="label">{name}</h1>
|
|
682
|
+
</AnimationGroup>
|
|
683
|
+
<div className="level-one-nav animation-flat">
|
|
684
|
+
<NavLinkContainer listOfLinks={navLinks} />
|
|
685
|
+
</div>
|
|
686
|
+
</div>
|
|
687
|
+
);
|
|
676
688
|
};
|
|
677
689
|
|
|
678
690
|
LevelOneContent.propTypes = {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
691
|
+
isExpanded: PropTypes.bool,
|
|
692
|
+
config: PropTypes.object,
|
|
693
|
+
levelOneContent: PropTypes.shape({
|
|
694
|
+
default: PropTypes.arrayOf(PropTypes.object),
|
|
695
|
+
devPre: PropTypes.arrayOf(PropTypes.object),
|
|
696
|
+
viewer: PropTypes.arrayOf(PropTypes.object),
|
|
697
|
+
internalReviewers: PropTypes.arrayOf(PropTypes.object),
|
|
698
|
+
}),
|
|
687
699
|
};
|
|
688
700
|
|
|
689
701
|
export default LevelOneContent;
|
|
@@ -694,7 +706,7 @@ export default LevelOneContent;
|
|
|
694
706
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
695
707
|
Code coverage generated by
|
|
696
708
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
697
|
-
at
|
|
709
|
+
at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
|
|
698
710
|
</div>
|
|
699
711
|
<script src="../../../../prettify.js"></script>
|
|
700
712
|
<script>
|