@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
|
@@ -396,7 +396,27 @@
|
|
|
396
396
|
<a name='L331'></a><a href='#L331'>331</a>
|
|
397
397
|
<a name='L332'></a><a href='#L332'>332</a>
|
|
398
398
|
<a name='L333'></a><a href='#L333'>333</a>
|
|
399
|
-
<a name='L334'></a><a href='#L334'>334</a
|
|
399
|
+
<a name='L334'></a><a href='#L334'>334</a>
|
|
400
|
+
<a name='L335'></a><a href='#L335'>335</a>
|
|
401
|
+
<a name='L336'></a><a href='#L336'>336</a>
|
|
402
|
+
<a name='L337'></a><a href='#L337'>337</a>
|
|
403
|
+
<a name='L338'></a><a href='#L338'>338</a>
|
|
404
|
+
<a name='L339'></a><a href='#L339'>339</a>
|
|
405
|
+
<a name='L340'></a><a href='#L340'>340</a>
|
|
406
|
+
<a name='L341'></a><a href='#L341'>341</a>
|
|
407
|
+
<a name='L342'></a><a href='#L342'>342</a>
|
|
408
|
+
<a name='L343'></a><a href='#L343'>343</a>
|
|
409
|
+
<a name='L344'></a><a href='#L344'>344</a>
|
|
410
|
+
<a name='L345'></a><a href='#L345'>345</a>
|
|
411
|
+
<a name='L346'></a><a href='#L346'>346</a>
|
|
412
|
+
<a name='L347'></a><a href='#L347'>347</a>
|
|
413
|
+
<a name='L348'></a><a href='#L348'>348</a>
|
|
414
|
+
<a name='L349'></a><a href='#L349'>349</a>
|
|
415
|
+
<a name='L350'></a><a href='#L350'>350</a>
|
|
416
|
+
<a name='L351'></a><a href='#L351'>351</a>
|
|
417
|
+
<a name='L352'></a><a href='#L352'>352</a>
|
|
418
|
+
<a name='L353'></a><a href='#L353'>353</a>
|
|
419
|
+
<a name='L354'></a><a href='#L354'>354</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
400
420
|
<span class="cline-any cline-neutral"> </span>
|
|
401
421
|
<span class="cline-any cline-neutral"> </span>
|
|
402
422
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -478,6 +498,10 @@
|
|
|
478
498
|
<span class="cline-any cline-neutral"> </span>
|
|
479
499
|
<span class="cline-any cline-yes">1x</span>
|
|
480
500
|
<span class="cline-any cline-neutral"> </span>
|
|
501
|
+
<span class="cline-any cline-neutral"> </span>
|
|
502
|
+
<span class="cline-any cline-neutral"> </span>
|
|
503
|
+
<span class="cline-any cline-neutral"> </span>
|
|
504
|
+
<span class="cline-any cline-neutral"> </span>
|
|
481
505
|
<span class="cline-any cline-no"> </span>
|
|
482
506
|
<span class="cline-any cline-no"> </span>
|
|
483
507
|
<span class="cline-any cline-no"> </span>
|
|
@@ -493,6 +517,8 @@
|
|
|
493
517
|
<span class="cline-any cline-neutral"> </span>
|
|
494
518
|
<span class="cline-any cline-no"> </span>
|
|
495
519
|
<span class="cline-any cline-no"> </span>
|
|
520
|
+
<span class="cline-any cline-neutral"> </span>
|
|
521
|
+
<span class="cline-any cline-neutral"> </span>
|
|
496
522
|
<span class="cline-any cline-no"> </span>
|
|
497
523
|
<span class="cline-any cline-neutral"> </span>
|
|
498
524
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -623,6 +649,20 @@
|
|
|
623
649
|
<span class="cline-any cline-neutral"> </span>
|
|
624
650
|
<span class="cline-any cline-neutral"> </span>
|
|
625
651
|
<span class="cline-any cline-neutral"> </span>
|
|
652
|
+
<span class="cline-any cline-neutral"> </span>
|
|
653
|
+
<span class="cline-any cline-neutral"> </span>
|
|
654
|
+
<span class="cline-any cline-neutral"> </span>
|
|
655
|
+
<span class="cline-any cline-neutral"> </span>
|
|
656
|
+
<span class="cline-any cline-neutral"> </span>
|
|
657
|
+
<span class="cline-any cline-neutral"> </span>
|
|
658
|
+
<span class="cline-any cline-neutral"> </span>
|
|
659
|
+
<span class="cline-any cline-neutral"> </span>
|
|
660
|
+
<span class="cline-any cline-neutral"> </span>
|
|
661
|
+
<span class="cline-any cline-neutral"> </span>
|
|
662
|
+
<span class="cline-any cline-neutral"> </span>
|
|
663
|
+
<span class="cline-any cline-neutral"> </span>
|
|
664
|
+
<span class="cline-any cline-neutral"> </span>
|
|
665
|
+
<span class="cline-any cline-neutral"> </span>
|
|
626
666
|
<span class="cline-any cline-no"> </span>
|
|
627
667
|
<span class="cline-any cline-no"> </span>
|
|
628
668
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -729,338 +769,358 @@
|
|
|
729
769
|
<span class="cline-any cline-neutral"> </span>
|
|
730
770
|
<span class="cline-any cline-neutral"> </span>
|
|
731
771
|
<span class="cline-any cline-neutral"> </span>
|
|
732
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect, useRef } from
|
|
733
|
-
import PropTypes from
|
|
734
|
-
import SVGInline from
|
|
772
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect, useRef } from "react";
|
|
773
|
+
import PropTypes from "prop-types";
|
|
774
|
+
import SVGInline from "react-svg-inline";
|
|
735
775
|
|
|
736
|
-
import { withGetConfig } from
|
|
737
|
-
import { LevelOneContent, LevelTwoContent } from
|
|
776
|
+
import { withGetConfig } from "../../hooks/useGetConfig";
|
|
777
|
+
import { LevelOneContent, LevelTwoContent } from "../Content";
|
|
738
778
|
import {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
} from
|
|
744
|
-
import AnimationGroup from
|
|
745
|
-
import { PracticeDetails, IndividualDetails } from
|
|
746
|
-
import { ScoreChart } from
|
|
747
|
-
import SanitizedContent from
|
|
748
|
-
import * as SvgComponents from
|
|
749
|
-
import SVGIcons from
|
|
750
|
-
import CmsSwitchLink from
|
|
751
|
-
import defaultContent from
|
|
779
|
+
NavLinkContainer,
|
|
780
|
+
NavLinkInline,
|
|
781
|
+
NavLinkDrawer,
|
|
782
|
+
NavLinkToggle,
|
|
783
|
+
} from "../Links";
|
|
784
|
+
import AnimationGroup from "../AnimationGroup/AnimationGroup";
|
|
785
|
+
import { PracticeDetails, IndividualDetails } from "../Details";
|
|
786
|
+
import { ScoreChart } from "../Chart";
|
|
787
|
+
import SanitizedContent from "../../SanitizedContent";
|
|
788
|
+
import * as SvgComponents from "../../../lib/SvgComponents.jsx";
|
|
789
|
+
import SVGIcons from "../../../lib/svg-definitions.svg";
|
|
790
|
+
import CmsSwitchLink from "../Links/CmsSwitchLink";
|
|
791
|
+
import defaultContent from "./default-content";
|
|
752
792
|
|
|
753
793
|
const SideNavUI = ({
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
794
|
+
chartData,
|
|
795
|
+
config,
|
|
796
|
+
currentLevel,
|
|
797
|
+
isAltStyle,
|
|
798
|
+
isExpanded,
|
|
799
|
+
items,
|
|
800
|
+
onCollapsed,
|
|
801
|
+
onExpanded,
|
|
802
|
+
performanceYear,
|
|
803
|
+
showReportingLinks,
|
|
804
|
+
svgIcons,
|
|
805
|
+
result,
|
|
766
806
|
}) => {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
807
|
+
const [isExpandedState, setIsExpandedState] = useState(isExpanded);
|
|
808
|
+
const [itemsState, setItemsState] = useState(items);
|
|
809
|
+
const [currentLevelState, setCurrentLevelState] = useState(currentLevel);
|
|
770
810
|
|
|
771
|
-
|
|
811
|
+
const collapseRef = useRef(null);
|
|
772
812
|
|
|
773
|
-
|
|
774
|
-
<span class="cstat-no" title="statement not covered" >
|
|
775
|
-
<span class="cstat-no" title="statement not covered" >
|
|
776
|
-
<span class="cstat-no" title="statement not covered" >
|
|
777
|
-
|
|
778
|
-
|
|
813
|
+
const expand = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
814
|
+
<span class="cstat-no" title="statement not covered" > setIsExpandedState(true);</span>
|
|
815
|
+
<span class="cstat-no" title="statement not covered" > if (onExpanded) {</span>
|
|
816
|
+
<span class="cstat-no" title="statement not covered" > onExpanded();</span>
|
|
817
|
+
}
|
|
818
|
+
};
|
|
779
819
|
|
|
780
|
-
|
|
781
|
-
<span class="cstat-no" title="statement not covered" >
|
|
782
|
-
<span class="cstat-no" title="statement not covered" >
|
|
783
|
-
<span class="cstat-no" title="statement not covered" >
|
|
784
|
-
|
|
785
|
-
|
|
820
|
+
const collapse = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
821
|
+
<span class="cstat-no" title="statement not covered" > setIsExpandedState(false);</span>
|
|
822
|
+
<span class="cstat-no" title="statement not covered" > if (onCollapsed) {</span>
|
|
823
|
+
<span class="cstat-no" title="statement not covered" > onCollapsed();</span>
|
|
824
|
+
}
|
|
825
|
+
};
|
|
786
826
|
|
|
787
|
-
|
|
788
|
-
<span class="cstat-no" title="statement not covered" >
|
|
789
|
-
|
|
827
|
+
const toggleExpanded = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
828
|
+
<span class="cstat-no" title="statement not covered" > isExpandedState ? collapse() : expand();</span>
|
|
829
|
+
};
|
|
790
830
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
831
|
+
const getLevelContent = () => {
|
|
832
|
+
return (
|
|
833
|
+
{
|
|
834
|
+
2: (
|
|
835
|
+
<LevelTwoContent
|
|
836
|
+
showReportingLinks={showReportingLinks}
|
|
837
|
+
isExpanded={isExpandedState}
|
|
838
|
+
chartData={chartData}
|
|
839
|
+
config={config}
|
|
840
|
+
/>
|
|
841
|
+
),
|
|
842
|
+
}[currentLevelState] || (
|
|
843
|
+
<LevelOneContent
|
|
844
|
+
levelOneContent={result?.content}
|
|
845
|
+
isExpanded={isExpandedState}
|
|
846
|
+
config={config}
|
|
847
|
+
/>
|
|
848
|
+
)
|
|
849
|
+
);
|
|
850
|
+
};
|
|
811
851
|
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
852
|
+
const getDynamicContent = <span class="fstat-no" title="function not covered" >(c</span>ontentItems, className, recursionId) => {
|
|
853
|
+
const {
|
|
854
|
+
openDrawersByDefault,
|
|
855
|
+
linkActiveFunc,
|
|
856
|
+
linkCallback,
|
|
857
|
+
useTooltips,
|
|
858
|
+
} = <span class="cstat-no" title="statement not covered" >config;</span>
|
|
859
|
+
const linkClass = <span class="cstat-no" title="statement not covered" >isExpandedState ? "link-inline" : "link-collapsed";</span>
|
|
860
|
+
const containerRecursionId = <span class="cstat-no" title="statement not covered" >recursionId || 0;</span>
|
|
817
861
|
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
<span class="cstat-no" title="statement not covered" >
|
|
821
|
-
|
|
862
|
+
const getDynamicIcon = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(i</span>con) => {</span>
|
|
863
|
+
const Component = <span class="cstat-no" title="statement not covered" >SvgComponents[icon];</span>
|
|
864
|
+
<span class="cstat-no" title="statement not covered" > return Component ? <Component /> : null;</span>
|
|
865
|
+
};
|
|
822
866
|
|
|
823
|
-
|
|
824
|
-
<span class="cstat-no" title="statement not covered" >
|
|
825
|
-
|
|
867
|
+
const hasDarkerBackground = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(d</span>arkerBackground) => {</span>
|
|
868
|
+
<span class="cstat-no" title="statement not covered" > return darkerBackground ? "hr-smaller-vertical-spacing" : "";</span>
|
|
869
|
+
};
|
|
826
870
|
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
871
|
+
const itemsMarkup = <span class="cstat-no" title="statement not covered" >(contentItems || []).map(<span class="fstat-no" title="function not covered" >(i</span>tem, index) => {</span>
|
|
872
|
+
const key = <span class="cstat-no" title="statement not covered" >`${JSON.stringify(</span>
|
|
873
|
+
item
|
|
874
|
+
)}-${index}-${containerRecursionId}`;
|
|
875
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
876
|
+
{
|
|
877
|
+
divider: (
|
|
878
|
+
<AnimationGroup
|
|
879
|
+
display={isExpandedState}
|
|
880
|
+
key={key}
|
|
881
|
+
darkerBackground={item.darkerBackground}
|
|
882
|
+
>
|
|
883
|
+
<hr
|
|
884
|
+
className={`${hasDarkerBackground(
|
|
885
|
+
item.darkerBackground
|
|
886
|
+
)}`}
|
|
887
|
+
/>
|
|
888
|
+
</AnimationGroup>
|
|
889
|
+
),
|
|
890
|
+
container: getDynamicContent(
|
|
891
|
+
item.items,
|
|
892
|
+
item.className,
|
|
893
|
+
containerRecursionId + 1
|
|
894
|
+
),
|
|
895
|
+
linkBack: (
|
|
896
|
+
<AnimationGroup display={isExpandedState} key={key}>
|
|
897
|
+
<NavLinkInline
|
|
898
|
+
className="link-back"
|
|
899
|
+
icon={getDynamicIcon("ChevronLeft")}
|
|
900
|
+
url={item.url}
|
|
901
|
+
label={item.label}
|
|
902
|
+
linkCallback={linkCallback}
|
|
903
|
+
showLabel={true}
|
|
904
|
+
useTooltips={useTooltips}
|
|
905
|
+
/>
|
|
906
|
+
</AnimationGroup>
|
|
907
|
+
),
|
|
908
|
+
linkHome: (
|
|
909
|
+
<AnimationGroup display={isExpandedState} key={key}>
|
|
910
|
+
<NavLinkInline
|
|
911
|
+
className="account-home-link"
|
|
912
|
+
icon={getDynamicIcon(item?.icon)}
|
|
913
|
+
url={item.url}
|
|
914
|
+
label={item.label}
|
|
915
|
+
linkCallback={linkCallback}
|
|
916
|
+
showLabel={true}
|
|
917
|
+
useTooltips={useTooltips}
|
|
918
|
+
/>
|
|
919
|
+
</AnimationGroup>
|
|
920
|
+
),
|
|
921
|
+
practiceDetails: (
|
|
922
|
+
<AnimationGroup
|
|
923
|
+
display={isExpandedState}
|
|
924
|
+
className={"details"}
|
|
925
|
+
key={key}
|
|
926
|
+
>
|
|
927
|
+
<PracticeDetails
|
|
928
|
+
practiceName={item.practiceName}
|
|
929
|
+
{...(!item.practiceTin
|
|
930
|
+
? {}
|
|
931
|
+
: { practiceTin: item.practiceTin })}
|
|
932
|
+
{...(!item.apmEntityId
|
|
933
|
+
? {}
|
|
934
|
+
: { apmEntityId: item.apmEntityId })}
|
|
935
|
+
{...(!item.vgId ? {} : { vgId: item.vgId })}
|
|
936
|
+
{...(!item.cpcPlusId
|
|
937
|
+
? {}
|
|
938
|
+
: { cpcPlusId: item.cpcPlusId })}
|
|
939
|
+
{...(!item.pcfId ? {} : { pcfId: item.pcfId })}
|
|
940
|
+
/>
|
|
941
|
+
</AnimationGroup>
|
|
942
|
+
),
|
|
943
|
+
individualDetails: (
|
|
944
|
+
<AnimationGroup display={isExpandedState} key={key}>
|
|
945
|
+
<IndividualDetails
|
|
946
|
+
individualName={item.individualName}
|
|
947
|
+
individualNpi={item.individualNpi}
|
|
948
|
+
/>
|
|
949
|
+
</AnimationGroup>
|
|
950
|
+
),
|
|
951
|
+
linkDrawer: (
|
|
952
|
+
<NavLinkDrawer
|
|
953
|
+
key={key}
|
|
954
|
+
isExpanded={isExpandedState}
|
|
955
|
+
isAlwaysOpen={item.isAlwaysOpen}
|
|
956
|
+
openByDefault={openDrawersByDefault}
|
|
957
|
+
rightIcon="chevron-down"
|
|
958
|
+
leftIcon={getDynamicIcon(item?.icon)}
|
|
959
|
+
className={linkClass}
|
|
960
|
+
label={item.label}
|
|
961
|
+
linkActiveFunc={linkActiveFunc}
|
|
962
|
+
linkCallback={linkCallback}
|
|
963
|
+
listOfLinks={item.items}
|
|
964
|
+
url={item.url}
|
|
965
|
+
sidebarExpand={expand}
|
|
966
|
+
isHighlighted={item.isHighlighted}
|
|
967
|
+
darkerBackground={item.darkerBackground}
|
|
968
|
+
leftBorderHighlightDisabled={
|
|
969
|
+
item.leftBorderHighlightDisabled
|
|
970
|
+
}
|
|
971
|
+
largerDrawerBottomPadding={
|
|
972
|
+
item.largerDrawerBottomPadding
|
|
973
|
+
}
|
|
974
|
+
/>
|
|
975
|
+
),
|
|
976
|
+
custom: (
|
|
977
|
+
<AnimationGroup display={isExpandedState} key={key}>
|
|
978
|
+
<SanitizedContent
|
|
979
|
+
html={item.content}
|
|
980
|
+
customClassName={item.customClassName}
|
|
981
|
+
/>
|
|
982
|
+
</AnimationGroup>
|
|
983
|
+
),
|
|
984
|
+
chart: (
|
|
985
|
+
<AnimationGroup display={isExpandedState} key={key}>
|
|
986
|
+
<ScoreChart
|
|
987
|
+
chartData={item.chartData}
|
|
988
|
+
linkCallback={linkCallback}
|
|
989
|
+
performanceYear={performanceYear}
|
|
990
|
+
/>
|
|
991
|
+
</AnimationGroup>
|
|
992
|
+
),
|
|
993
|
+
switchLink: (
|
|
994
|
+
<AnimationGroup display={isExpandedState} key={key}>
|
|
995
|
+
<CmsSwitchLink
|
|
996
|
+
linkCallback={linkCallback}
|
|
997
|
+
label={item.label}
|
|
998
|
+
url={item.url}
|
|
999
|
+
/>
|
|
1000
|
+
</AnimationGroup>
|
|
1001
|
+
),
|
|
1002
|
+
}[item.type] || (
|
|
1003
|
+
<NavLinkInline
|
|
1004
|
+
key={key}
|
|
1005
|
+
icon={getDynamicIcon(item?.icon)}
|
|
1006
|
+
className={item.className ? item.className : linkClass}
|
|
1007
|
+
url={item.url}
|
|
1008
|
+
label={item.label}
|
|
1009
|
+
linkCallback={linkCallback}
|
|
1010
|
+
showLabel={isExpandedState}
|
|
1011
|
+
disabled={item.disabled}
|
|
1012
|
+
useTooltips={useTooltips}
|
|
1013
|
+
target={item.target}
|
|
1014
|
+
/>
|
|
1015
|
+
)
|
|
1016
|
+
);
|
|
1017
|
+
});
|
|
958
1018
|
|
|
959
|
-
<span class="cstat-no" title="statement not covered" >
|
|
960
|
-
<span class="cstat-no" title="statement not covered" >
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
<span class="cstat-no" title="statement not covered" >
|
|
973
|
-
|
|
974
|
-
|
|
1019
|
+
<span class="cstat-no" title="statement not covered" > if (className === "link-container") {</span>
|
|
1020
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1021
|
+
<div
|
|
1022
|
+
className="animation-flat"
|
|
1023
|
+
key={`nav-link-container-${recursionId}`}
|
|
1024
|
+
>
|
|
1025
|
+
<NavLinkContainer
|
|
1026
|
+
listOfLinks={itemsMarkup}
|
|
1027
|
+
linkActiveFunc={linkActiveFunc}
|
|
1028
|
+
/>
|
|
1029
|
+
</div>
|
|
1030
|
+
);
|
|
1031
|
+
} else {
|
|
1032
|
+
<span class="cstat-no" title="statement not covered" > return <div className={className}>{itemsMarkup}</div>;</span>
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
975
1035
|
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1036
|
+
const content = itemsState
|
|
1037
|
+
? <span class="branch-0 cbranch-no" title="branch not covered" >getDynamicContent(</span>
|
|
1038
|
+
itemsState,
|
|
1039
|
+
"sidebar-content" + (isAltStyle ? " alt-style" : "")
|
|
1040
|
+
)
|
|
1041
|
+
: getLevelContent();
|
|
982
1042
|
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1043
|
+
useEffect(() => {
|
|
1044
|
+
setIsExpandedState(isExpanded);
|
|
1045
|
+
}, [isExpanded]);
|
|
986
1046
|
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1047
|
+
useEffect(() => {
|
|
1048
|
+
setCurrentLevelState(currentLevel);
|
|
1049
|
+
}, [currentLevel]);
|
|
990
1050
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1051
|
+
useEffect(() => {
|
|
1052
|
+
setItemsState(items);
|
|
1053
|
+
}, [items]);
|
|
994
1054
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1055
|
+
return (
|
|
1056
|
+
<aside
|
|
1057
|
+
id="qppSidebar"
|
|
1058
|
+
tabIndex="-1"
|
|
1059
|
+
className={`${
|
|
1060
|
+
isExpandedState ? "sidebar" : <span class="branch-1 cbranch-no" title="branch not covered" >"sidebar closed"</span>
|
|
1061
|
+
} sidebar-${config.navClassName}`}
|
|
1062
|
+
>
|
|
1063
|
+
<SVGInline svg={svgIcons} />
|
|
1064
|
+
{content}
|
|
1065
|
+
<NavLinkToggle
|
|
1066
|
+
isAltStyle={isAltStyle}
|
|
1067
|
+
collapseRef={collapseRef}
|
|
1068
|
+
isExpanded={isExpandedState}
|
|
1069
|
+
onClick={toggleExpanded}
|
|
1070
|
+
/>
|
|
1071
|
+
</aside>
|
|
1072
|
+
);
|
|
1013
1073
|
};
|
|
1014
1074
|
|
|
1015
1075
|
SideNavUI.propTypes = {
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1076
|
+
currentLevel: PropTypes.number,
|
|
1077
|
+
isExpanded: PropTypes.bool,
|
|
1078
|
+
onExpanded: PropTypes.func,
|
|
1079
|
+
onCollapsed: PropTypes.func,
|
|
1080
|
+
chartData: PropTypes.object,
|
|
1081
|
+
config: PropTypes.object,
|
|
1082
|
+
items: PropTypes.object,
|
|
1083
|
+
isAltStyle: PropTypes.bool,
|
|
1084
|
+
showReportingLinks: PropTypes.bool,
|
|
1085
|
+
performanceYear: PropTypes.string,
|
|
1086
|
+
svgIcons: PropTypes.string,
|
|
1087
|
+
result: PropTypes.shape({
|
|
1088
|
+
content: PropTypes.shape({
|
|
1089
|
+
default: PropTypes.arrayOf(PropTypes.object),
|
|
1090
|
+
devPre: PropTypes.arrayOf(PropTypes.object),
|
|
1091
|
+
internalReviewers: PropTypes.arrayOf(PropTypes.object),
|
|
1092
|
+
viewer: PropTypes.arrayOf(PropTypes.object),
|
|
1093
|
+
}),
|
|
1033
1094
|
}),
|
|
1034
|
-
}),
|
|
1035
1095
|
};
|
|
1036
1096
|
|
|
1037
1097
|
SideNavUI.defaultProps = {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1098
|
+
currentLevel: 1,
|
|
1099
|
+
isExpanded: true,
|
|
1100
|
+
onExpanded: <span class="fstat-no" title="function not covered" >()</span> => {},
|
|
1101
|
+
onCollapsed: <span class="fstat-no" title="function not covered" >()</span> => {},
|
|
1102
|
+
chartData: {},
|
|
1103
|
+
config: {},
|
|
1104
|
+
items: null,
|
|
1105
|
+
isAltStyle: false,
|
|
1106
|
+
showReportingLinks: false,
|
|
1107
|
+
performanceYear: "2017",
|
|
1108
|
+
svgIcons: SVGIcons,
|
|
1109
|
+
result: {
|
|
1110
|
+
content: {
|
|
1111
|
+
default: [],
|
|
1112
|
+
devPre: [],
|
|
1113
|
+
internalReviewers: [],
|
|
1114
|
+
viewer: [],
|
|
1115
|
+
},
|
|
1055
1116
|
},
|
|
1056
|
-
},
|
|
1057
1117
|
};
|
|
1058
1118
|
|
|
1059
1119
|
export default withGetConfig(SideNavUI, {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1120
|
+
timeout: 5,
|
|
1121
|
+
url: "/config/side-navigation",
|
|
1122
|
+
localStorageName: "qpp_side_navigation",
|
|
1123
|
+
defaultContent,
|
|
1064
1124
|
});
|
|
1065
1125
|
</pre></td></tr></table></pre>
|
|
1066
1126
|
|
|
@@ -1069,7 +1129,7 @@ export default withGetConfig(SideNavUI, {
|
|
|
1069
1129
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1070
1130
|
Code coverage generated by
|
|
1071
1131
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1072
|
-
at
|
|
1132
|
+
at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
|
|
1073
1133
|
</div>
|
|
1074
1134
|
<script src="../../../../prettify.js"></script>
|
|
1075
1135
|
<script>
|