qpp-style 0.0.9 → 0.0.10

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.
Files changed (456) hide show
  1. package/.eslintrc.js +28 -28
  2. package/.husky/pre-commit +5 -0
  3. package/README.md +45 -0
  4. package/components/Accordion/index.jsx +35 -43
  5. package/components/Alert/index.js +53 -0
  6. package/components/Breadcrumb/index.js +4 -4
  7. package/components/Button/index.js +17 -6
  8. package/components/CalloutBox/index.js +109 -0
  9. package/components/Card/index.js +137 -0
  10. package/components/Details/DetailsIcons.js +50 -0
  11. package/components/Details/index.js +53 -0
  12. package/components/Dropdown/index.js +85 -0
  13. package/components/DropdownButton/Menu.js +25 -0
  14. package/components/DropdownButton/MenuButton.js +41 -0
  15. package/components/DropdownButton/MenuItem.js +25 -0
  16. package/components/DropdownButton/MenuItemLink.js +27 -0
  17. package/components/Error/Collapsible.jsx +2 -2
  18. package/components/Footer/FooterUI.jsx +175 -177
  19. package/components/Footer/footer.js +2 -12
  20. package/components/GovBanner/index.js +117 -0
  21. package/components/Header/HeaderAccountMenu.jsx +49 -75
  22. package/components/Header/HeaderContainer.jsx +46 -34
  23. package/components/Header/HeaderLogo.jsx +40 -17
  24. package/components/Header/HeaderMenuButton.js +38 -12
  25. package/components/Header/HeaderMenuItem.jsx +204 -64
  26. package/components/Header/HeaderMenuLink.js +46 -10
  27. package/components/Header/HeaderMenuSignOutButton.js +46 -10
  28. package/components/Header/HeaderMobileButton.js +15 -6
  29. package/components/Header/HeaderUI.jsx +118 -117
  30. package/components/Header/HelpIcon.jsx +7 -5
  31. package/components/Header/ImpersonatorBanner.jsx +81 -0
  32. package/components/Header/header.js +2 -0
  33. package/components/Header/hooks.js +53 -1
  34. package/components/Header/utag-helpers.js +9 -0
  35. package/components/Infotip/Infotip.jsx +6 -10
  36. package/components/Infotip/InfotipContent.jsx +46 -0
  37. package/components/Infotip/InfotipIcon.jsx +3 -3
  38. package/components/Link/index.js +61 -0
  39. package/components/Modal/Modal.jsx +53 -40
  40. package/components/Modal/index.jsx +11 -11
  41. package/components/NotificationBanner/CollapsedView.js +39 -0
  42. package/components/NotificationBanner/ExpandedView.js +45 -0
  43. package/components/NotificationBanner/index.js +219 -30
  44. package/components/Search/index.js +98 -0
  45. package/components/SessionDialog/sessionDialog.js +26 -0
  46. package/components/SessionDialogUI.jsx +34 -26
  47. package/components/SideNav/AnimationGroup/AnimationGroup.jsx +9 -2
  48. package/components/SideNav/Chart/ScoreChart.jsx +1 -1
  49. package/components/SideNav/Chart/__tests__/ScoreChart.test.js +3 -12
  50. package/components/SideNav/Chart/__tests__/__snapshots__/ScoreChart.test.js.snap +144 -35
  51. package/components/SideNav/Chart/index.js +1 -1
  52. package/components/SideNav/Content/LevelOneContent.jsx +145 -255
  53. package/components/SideNav/Content/LevelTwoContent.jsx +12 -10
  54. package/components/SideNav/Content/SelectRole/index.js +77 -0
  55. package/components/SideNav/Content/SelectRole/utils.js +140 -0
  56. package/components/SideNav/Details/PracticeDetails.jsx +4 -0
  57. package/components/SideNav/Links/CmsSwitchLink.jsx +1 -1
  58. package/components/SideNav/Links/NavLinkContainer.jsx +29 -34
  59. package/components/SideNav/Links/NavLinkDrawer.jsx +100 -17
  60. package/components/SideNav/Links/NavLinkInline.jsx +7 -2
  61. package/components/SideNav/SideNav.md +28 -27
  62. package/components/SideNav/UI/SideNavUI.jsx +122 -129
  63. package/components/SideNav/UI/default-content.json +117 -0
  64. package/components/SideNav/helpers.js +316 -4
  65. package/components/Tabs/TabPanel.js +5 -0
  66. package/components/Tabs/Tabs.js +73 -0
  67. package/components/TextInput/index.js +137 -0
  68. package/components/hooks/useGetConfig.js +75 -0
  69. package/components/index.js +103 -9
  70. package/coverage/clover.xml +1465 -41
  71. package/coverage/coverage-final.json +72 -1
  72. package/coverage/lcov-report/block-navigation.js +8 -0
  73. package/coverage/lcov-report/components/Accordion/index.html +26 -21
  74. package/coverage/lcov-report/components/Accordion/index.jsx.html +106 -131
  75. package/coverage/lcov-report/{SideNav/Chart → components/Button}/index.html +29 -24
  76. package/coverage/lcov-report/{Error/Collapsible.jsx.html → components/Button/index.js.html} +125 -114
  77. package/coverage/lcov-report/components/Error/Collapsible.jsx.html +92 -87
  78. package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +32 -33
  79. package/coverage/lcov-report/components/Error/index.html +11 -6
  80. package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +200 -189
  81. package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +24 -61
  82. package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +18 -13
  83. package/coverage/lcov-report/components/Footer/index.html +35 -45
  84. package/coverage/lcov-report/components/{InfoModal → GovBanner}/index.html +27 -22
  85. package/coverage/lcov-report/components/{InfoModal/index.jsx.html → GovBanner/index.js.html} +157 -122
  86. package/coverage/lcov-report/components/Header/HeaderAccountMenu.jsx.html +93 -520
  87. package/coverage/lcov-report/components/Header/HeaderCancel.jsx.html +19 -23
  88. package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +280 -0
  89. package/coverage/lcov-report/components/{SideNav/Links/NavLinkContainer.jsx.html → Header/HeaderLogo.jsx.html} +78 -67
  90. package/coverage/lcov-report/components/{SideNav/Links/NavItemInline.jsx.html → Header/HeaderMenuButton.js.html} +71 -78
  91. package/coverage/lcov-report/components/{SideNav/Links/NavLinkDrawer.jsx.html → Header/HeaderMenuItem.jsx.html} +291 -268
  92. package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +253 -0
  93. package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +271 -0
  94. package/coverage/lcov-report/components/{SideNav/Links/NavLinkToggle.jsx.html → Header/HeaderMobileButton.js.html} +64 -47
  95. package/coverage/lcov-report/components/Header/HeaderUI.jsx.html +176 -756
  96. package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +181 -0
  97. package/coverage/lcov-report/{Accordion/index.jsx.html → components/Header/ImpersonatorBanner.jsx.html} +109 -167
  98. package/coverage/lcov-report/components/Header/NavigationButtonIcon.jsx.html +24 -19
  99. package/coverage/lcov-report/components/Header/hooks.js.html +283 -0
  100. package/coverage/lcov-report/components/Header/index.html +203 -33
  101. package/coverage/lcov-report/components/{SideNav/Links/index.js.html → Header/utag-helpers.js.html} +35 -42
  102. package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +53 -48
  103. package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +37 -32
  104. package/coverage/lcov-report/components/Infotip/index.html +8 -3
  105. package/coverage/lcov-report/components/Infotip/index.js.html +8 -3
  106. package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +301 -0
  107. package/coverage/lcov-report/{HeaderUI.jsx.html → components/Modal/Modal.jsx.html} +169 -257
  108. package/coverage/lcov-report/components/Modal/index.html +146 -0
  109. package/coverage/lcov-report/components/{SideNav/Details/IndividualDetails.jsx.html → Modal/index.jsx.html} +50 -42
  110. package/coverage/lcov-report/components/NotificationBanner/CollapsedView.js.html +202 -0
  111. package/coverage/lcov-report/components/NotificationBanner/ExpandedView.js.html +220 -0
  112. package/coverage/lcov-report/components/NotificationBanner/index.html +58 -23
  113. package/coverage/lcov-report/components/{SideNav/Content/LevelTwoContent.jsx.html → NotificationBanner/index.js.html} +292 -272
  114. package/coverage/lcov-report/components/SanitizedContent/index.html +8 -3
  115. package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +475 -50
  116. package/coverage/lcov-report/components/SessionDialogUI.jsx.html +248 -255
  117. package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +272 -408
  118. package/coverage/lcov-report/components/SideNav/Chart/index.html +28 -38
  119. package/coverage/lcov-report/components/SideNav/Content/SelectRole/index.html +116 -0
  120. package/coverage/lcov-report/components/SideNav/Content/SelectRole/utils.js.html +505 -0
  121. package/coverage/lcov-report/components/SideNav/helpers.js.html +987 -46
  122. package/coverage/lcov-report/components/SideNav/index.html +24 -19
  123. package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +70 -65
  124. package/coverage/lcov-report/components/Tooltip/index.html +8 -3
  125. package/coverage/lcov-report/components/Tooltip/index.js.html +8 -3
  126. package/coverage/lcov-report/components/Tooltip/position.js.html +57 -64
  127. package/coverage/lcov-report/components/hooks/index.html +116 -0
  128. package/coverage/lcov-report/components/hooks/useGetConfig.js.html +310 -0
  129. package/coverage/lcov-report/components/index.html +10 -5
  130. package/coverage/lcov-report/index.html +401 -21
  131. package/coverage/lcov-report/{Error/ErrorUI.jsx.html → lib/Chevron.jsx.html} +44 -42
  132. package/coverage/lcov-report/lib/SvgComponents.jsx.html +1840 -0
  133. package/coverage/lcov-report/lib/index.html +34 -14
  134. package/coverage/lcov-report/react/components/Accordion/index.html +26 -21
  135. package/coverage/lcov-report/react/components/Accordion/index.jsx.html +67 -86
  136. package/coverage/lcov-report/react/components/{FlashNotification → Button}/index.html +23 -33
  137. package/coverage/lcov-report/{components/SideNav/Links/NavLinkInline.jsx.html → react/components/Button/index.js.html} +119 -120
  138. package/coverage/lcov-report/react/components/{Tabs → Dropdown}/index.html +23 -33
  139. package/coverage/lcov-report/react/components/{InfoModal/index.jsx.html → Dropdown/index.js.html} +102 -154
  140. package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +26 -21
  141. package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +11 -6
  142. package/coverage/lcov-report/react/components/Error/error.js.html +8 -3
  143. package/coverage/lcov-report/react/components/Error/index.html +11 -6
  144. package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +196 -194
  145. package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +9 -4
  146. package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +18 -13
  147. package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +18 -13
  148. package/coverage/lcov-report/react/components/Footer/footer.js.html +12 -37
  149. package/coverage/lcov-report/react/components/Footer/index.html +35 -45
  150. package/coverage/lcov-report/react/components/{InfoModal → GovBanner}/index.html +27 -22
  151. package/coverage/lcov-report/react/components/{Tabs/TabsUI.jsx.html → GovBanner/index.js.html} +146 -153
  152. package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +81 -154
  153. package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +15 -10
  154. package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +91 -50
  155. package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +105 -31
  156. package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +109 -26
  157. package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +510 -85
  158. package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +137 -24
  159. package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +134 -21
  160. package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +56 -24
  161. package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +172 -179
  162. package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +30 -19
  163. package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +331 -0
  164. package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +9 -4
  165. package/coverage/lcov-report/react/components/Header/header.js.html +15 -4
  166. package/coverage/lcov-report/react/components/Header/hooks.js.html +187 -26
  167. package/coverage/lcov-report/react/components/Header/index.html +157 -122
  168. package/coverage/lcov-report/react/components/{Spinner/index.js.html → Header/utag-helpers.js.html} +26 -21
  169. package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +12 -7
  170. package/coverage/lcov-report/react/components/{Tabs/tabs.js.html → Infotip/InfotipContent.jsx.html} +83 -48
  171. package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +12 -7
  172. package/coverage/lcov-report/react/components/Infotip/index.html +8 -3
  173. package/coverage/lcov-report/react/components/Infotip/index.js.html +8 -3
  174. package/coverage/lcov-report/react/components/{FlashNotification/FlashNotificationUI.jsx.html → Modal/LegacyModal.jsx.html} +89 -84
  175. package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +505 -0
  176. package/coverage/lcov-report/react/components/Modal/index.html +52 -17
  177. package/coverage/lcov-report/react/components/Modal/index.jsx.html +38 -201
  178. package/coverage/lcov-report/{components/SideNav/Links/CmsSwitchLink.jsx.html → react/components/NotificationBanner/CollapsedView.js.html} +52 -50
  179. package/coverage/lcov-report/{components/SideNav/Details/PracticeDetails.jsx.html → react/components/NotificationBanner/ExpandedView.js.html} +74 -57
  180. package/coverage/lcov-report/react/components/NotificationBanner/index.html +56 -21
  181. package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +615 -43
  182. package/coverage/lcov-report/react/components/SanitizedContent/index.html +8 -3
  183. package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +12 -7
  184. package/coverage/lcov-report/react/components/{Spinner → SessionDialog}/index.html +11 -6
  185. package/coverage/lcov-report/react/components/{FlashNotification/index.js.html → SessionDialog/sessionDialog.js.html} +35 -42
  186. package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +80 -51
  187. package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +38 -12
  188. package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +18 -13
  189. package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +67 -56
  190. package/coverage/lcov-report/react/components/SideNav/Chart/index.html +26 -21
  191. package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +9 -4
  192. package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +189 -514
  193. package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +28 -17
  194. package/coverage/lcov-report/{components/SideNav/Details → react/components/SideNav/Content/SelectRole}/index.html +42 -52
  195. package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +316 -0
  196. package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +505 -0
  197. package/coverage/lcov-report/react/components/SideNav/Content/index.html +32 -27
  198. package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +8 -3
  199. package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +10 -5
  200. package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +26 -9
  201. package/coverage/lcov-report/react/components/SideNav/Details/index.html +23 -18
  202. package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +8 -3
  203. package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +9 -4
  204. package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +8 -3
  205. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +54 -64
  206. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +281 -27
  207. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +66 -46
  208. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +8 -3
  209. package/coverage/lcov-report/react/components/SideNav/Links/index.html +44 -39
  210. package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +8 -3
  211. package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +165 -181
  212. package/coverage/lcov-report/react/components/SideNav/UI/index.html +28 -23
  213. package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +8 -3
  214. package/coverage/lcov-report/react/components/SideNav/helpers.js.html +967 -26
  215. package/coverage/lcov-report/react/components/SideNav/index.html +27 -22
  216. package/coverage/lcov-report/react/components/SideNav/index.js.html +8 -3
  217. package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +20 -15
  218. package/coverage/lcov-report/react/components/Tooltip/index.html +8 -3
  219. package/coverage/lcov-report/react/components/Tooltip/index.js.html +8 -3
  220. package/coverage/lcov-report/react/components/Tooltip/position.js.html +22 -17
  221. package/coverage/lcov-report/{components/SideNav/AnimationGroup → react/components/hooks}/index.html +29 -24
  222. package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +310 -0
  223. package/coverage/lcov-report/react/components/index.html +10 -5
  224. package/coverage/lcov-report/react/index.html +20 -15
  225. package/coverage/lcov-report/react/index.js.html +29 -9
  226. package/coverage/lcov-report/react/lib/Chevron.jsx.html +181 -0
  227. package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +221 -132
  228. package/coverage/lcov-report/react/lib/index.html +32 -27
  229. package/coverage/lcov-report/react/lib/svg-definitions.svg.html +8 -3
  230. package/coverage/lcov-report/react/session/index.html +32 -27
  231. package/coverage/lcov-report/react/session/index.js.html +8 -3
  232. package/coverage/lcov-report/react/session/logout.js.html +122 -18
  233. package/coverage/lcov-report/react/session/refresh.js.html +12 -7
  234. package/coverage/lcov-report/react/session/ttl.js.html +9 -4
  235. package/coverage/lcov-report/session/index.html +50 -45
  236. package/coverage/lcov-report/session/index.js.html +8 -3
  237. package/coverage/lcov-report/session/logout.js.html +144 -49
  238. package/coverage/lcov-report/session/refresh.js.html +41 -36
  239. package/coverage/lcov-report/session/ttl.js.html +34 -29
  240. package/coverage/lcov-report/sorter.js +26 -0
  241. package/coverage/lcov.info +3189 -46
  242. package/dist/browser.js +1 -1
  243. package/dist/browser.js.LICENSE.txt +1 -7
  244. package/dist/browser.js.map +1 -1
  245. package/dist/index.js +1 -1
  246. package/dist/index.js.LICENSE.txt +1 -7
  247. package/dist/index.js.map +1 -1
  248. package/dist/react/index.js +1 -1
  249. package/dist/react/index.js.LICENSE.txt +16 -16
  250. package/dist/react/index.js.map +1 -1
  251. package/fonts/PublicSans-Black.ttf +0 -0
  252. package/fonts/PublicSans-BlackItalic.ttf +0 -0
  253. package/fonts/PublicSans-Bold.ttf +0 -0
  254. package/fonts/PublicSans-BoldItalic.ttf +0 -0
  255. package/fonts/PublicSans-ExtraBold.ttf +0 -0
  256. package/fonts/PublicSans-ExtraBoldItalic.ttf +0 -0
  257. package/fonts/PublicSans-ExtraLight.ttf +0 -0
  258. package/fonts/PublicSans-ExtraLightItalic.ttf +0 -0
  259. package/fonts/PublicSans-Italic.ttf +0 -0
  260. package/fonts/PublicSans-Light.ttf +0 -0
  261. package/fonts/PublicSans-LightItalic.ttf +0 -0
  262. package/fonts/PublicSans-Medium.ttf +0 -0
  263. package/fonts/PublicSans-MediumItalic.ttf +0 -0
  264. package/fonts/PublicSans-Regular.ttf +0 -0
  265. package/fonts/PublicSans-SemiBold.ttf +0 -0
  266. package/fonts/PublicSans-SemiBoldItalic.ttf +0 -0
  267. package/fonts/PublicSans-Thin.ttf +0 -0
  268. package/fonts/PublicSans-ThinItalic.ttf +0 -0
  269. package/images/icon-dot-gov.svg +1 -0
  270. package/images/icon-https.svg +1 -0
  271. package/images/icons/close-x.svg +6 -0
  272. package/images/icons/svg/arrow-down.svg +3 -0
  273. package/images/icons/svg/arrow-download.svg +1 -0
  274. package/images/icons/svg/arrow-right.svg +1 -0
  275. package/images/icons/svg/arrow-up.svg +3 -0
  276. package/images/icons/svg/block.svg +5 -0
  277. package/images/icons/svg/calendar.svg +1 -0
  278. package/images/icons/svg/check-circle.svg +5 -0
  279. package/images/icons/svg/checkmark.svg +7 -0
  280. package/images/icons/svg/chevron-down.svg +11 -0
  281. package/images/icons/svg/chevron-left.svg +12 -0
  282. package/images/icons/svg/chevron-right.svg +12 -0
  283. package/images/icons/svg/chevron-up.svg +12 -0
  284. package/images/icons/svg/clipboard.svg +1 -0
  285. package/images/icons/svg/close.svg +1 -0
  286. package/images/icons/svg/divide.svg +13 -0
  287. package/images/icons/svg/doctors-and-clinicians-preview.svg +10 -0
  288. package/images/icons/svg/download.svg +1 -0
  289. package/images/icons/svg/dropdown-arrow.svg +1 -0
  290. package/images/icons/svg/equals.svg +13 -0
  291. package/images/icons/svg/exclamation.svg +11 -0
  292. package/images/icons/svg/external.svg +1 -0
  293. package/images/icons/svg/file-download.svg +1 -0
  294. package/images/icons/svg/file-upload.svg +1 -0
  295. package/images/icons/svg/info.svg +20 -0
  296. package/images/icons/svg/manage-user-access.svg +8 -0
  297. package/images/icons/svg/multiply.svg +12 -0
  298. package/images/icons/svg/performance-feedback.svg +1 -0
  299. package/images/icons/svg/plus.svg +12 -0
  300. package/images/icons/svg/preview.svg +17 -0
  301. package/images/icons/svg/print.svg +1 -0
  302. package/images/icons/svg/registration.svg +8 -0
  303. package/images/icons/svg/reporting.svg +17 -0
  304. package/images/icons/svg/save-disk.svg +5 -0
  305. package/images/icons/svg/search.svg +1 -0
  306. package/images/icons/svg/subtract.svg +15 -0
  307. package/images/icons/svg/targeted-review.svg +15 -0
  308. package/images/icons/svg/tooltip-question.svg +1 -0
  309. package/images/icons/svg/trash.svg +1 -0
  310. package/images/icons/svg/upload.svg +1 -0
  311. package/images/us_flag_small.png +0 -0
  312. package/index.js +5 -0
  313. package/jest.config.js +139 -132
  314. package/lib/Chevron.jsx +32 -0
  315. package/lib/SvgComponents.jsx +197 -49
  316. package/package.json +60 -78
  317. package/session/logout.js +35 -2
  318. package/styles/_global.scss +63 -62
  319. package/styles/_main.scss +6 -0
  320. package/styles/_qpp-style.scss +0 -3
  321. package/styles/components/_accordion.scss +249 -246
  322. package/styles/components/_autocomplete.scss +0 -3
  323. package/styles/components/_spinner.scss +0 -2
  324. package/styles/components/_tables.scss +77 -67
  325. package/styles/components/_text.scss +102 -102
  326. package/styles/components/_variables.scss +12 -12
  327. package/styles/qppds/base/_backgrounds.scss +1 -6
  328. package/styles/qppds/base/_fonts.scss +24 -0
  329. package/styles/qppds/base/_icon.scss +31 -0
  330. package/styles/qppds/base/_layout.scss +5 -0
  331. package/styles/qppds/base/_typography.scss +77 -43
  332. package/styles/qppds/base/index.scss +3 -6
  333. package/styles/qppds/components/_alert.scss +101 -0
  334. package/styles/qppds/components/_breadcrumbs.scss +42 -10
  335. package/styles/qppds/components/_button.scss +38 -12
  336. package/styles/qppds/components/_card.scss +175 -0
  337. package/styles/qppds/components/_checkbox.scss +199 -0
  338. package/styles/qppds/components/_circular-loader.scss +47 -0
  339. package/styles/qppds/components/_details.scss +90 -0
  340. package/styles/qppds/components/_dropdown-menu.scss +125 -0
  341. package/styles/qppds/components/_dropdown.scss +5 -0
  342. package/styles/qppds/components/_footer.scss +606 -0
  343. package/styles/qppds/components/_gov-banner.scss +344 -0
  344. package/styles/{components → qppds/components}/_header.scss +460 -24
  345. package/styles/qppds/components/_link.scss +32 -9
  346. package/styles/qppds/components/_modal.scss +61 -21
  347. package/styles/qppds/components/_page-header.scss +65 -2
  348. package/styles/qppds/components/_pagination.scss +227 -0
  349. package/styles/qppds/components/_process-list.scss +104 -0
  350. package/styles/qppds/components/_radio-button.scss +184 -0
  351. package/styles/qppds/components/_search.scss +118 -0
  352. package/styles/{components → qppds/components}/_sidebar.scss +2 -0
  353. package/styles/qppds/components/_step-indicator.scss +190 -0
  354. package/styles/qppds/components/_table.scss +157 -0
  355. package/styles/qppds/components/_tabs.scss +197 -0
  356. package/styles/qppds/components/_text-input.scss +60 -0
  357. package/styles/qppds/components/index.scss +18 -0
  358. package/styles/{components → qppds/components}/sidebar/_links.scss +48 -1
  359. package/styles/qppds/components/sidebar/_select-role-dropdown.scss +21 -0
  360. package/styles/{components → qppds/components}/sidebar/_sidebar-animation.scss +4 -0
  361. package/styles/qppds/components/sidebar/_sidebar.scss +146 -0
  362. package/styles/qppds/settings/_functions.scss +3 -1
  363. package/styles/qppds/settings/mixins/_borders.scss +6 -0
  364. package/styles/qppds/settings/mixins/_focus.scss +7 -1
  365. package/styles/qppds/settings/mixins/_icons.scss +39 -4
  366. package/styles/qppds/settings/mixins/_index.scss +3 -0
  367. package/styles/qppds/settings/mixins/_layout.scss +46 -7
  368. package/styles/qppds/settings/mixins/_table.scss +91 -0
  369. package/styles/qppds/settings/mixins/_type.scss +89 -0
  370. package/styles/qppds/settings/variables/_color.scss +47 -1
  371. package/styles/qppds/settings/variables/_index.scss +2 -1
  372. package/styles/qppds/settings/variables/_layout.scss +34 -9
  373. package/styles/qppds/settings/variables/_type.scss +41 -0
  374. package/styles/qppds/settings/variables/_z-index.scss +8 -0
  375. package/styles/qppds/utilities/_background-color.scss +4 -0
  376. package/styles/qppds/utilities/_color.scss +24 -0
  377. package/styles/qppds/utilities/{_display-visability.scss → _display-visibility.scss} +8 -0
  378. package/styles/qppds/utilities/_flexbox.scss +113 -0
  379. package/styles/qppds/utilities/_font-family.scss +4 -0
  380. package/styles/qppds/utilities/_gap.scss +38 -0
  381. package/styles/qppds/utilities/_height.scss +79 -0
  382. package/styles/qppds/utilities/_list-style.scss +18 -0
  383. package/styles/qppds/utilities/_position.scss +24 -0
  384. package/styles/qppds/utilities/_text-align.scss +40 -0
  385. package/styles/qppds/utilities/_text-transform.scss +7 -0
  386. package/styles/qppds/utilities/_truncate.scss +5 -5
  387. package/styles/qppds/utilities/_vertical-align.scss +72 -0
  388. package/styles/qppds/utilities/_width.scss +38 -1
  389. package/styles/qppds/utilities/index.scss +8 -2
  390. package/svgo.config.js +14 -0
  391. package/test/components/Accordion.test.js +4 -13
  392. package/test/components/ErrorUI.test.js +10 -46
  393. package/test/components/FooterUI.test.js +0 -30
  394. package/test/components/HeaderUI.test.js +32 -40
  395. package/test/components/Infotip.test.js +18 -12
  396. package/test/components/SessionDialogUI.test.js +55 -70
  397. package/test-setup.js +0 -8
  398. package/webpack.config.js +29 -39
  399. package/webpack.config.react.js +7 -18
  400. package/.storybook/.babelrc +0 -4
  401. package/.storybook/main.js +0 -88
  402. package/.storybook/preview-head.html +0 -9
  403. package/.storybook/preview.js +0 -5
  404. package/Session.vim +0 -83
  405. package/components/Accordion/Accordion.stories.js +0 -20
  406. package/components/Breadcrumb/Breadcrumb.stories.js +0 -58
  407. package/components/Button/Button.stories.js +0 -125
  408. package/components/Footer/Footer.stories.js +0 -20
  409. package/components/Footer/LegacyFooterUI.jsx +0 -194
  410. package/components/Header/Header.stories.js +0 -32
  411. package/components/InfoModal/InfoModal.stories.js +0 -98
  412. package/components/InfoModal/index.jsx +0 -104
  413. package/components/Infotip/Infotip.stories.js +0 -50
  414. package/components/Modal/Modal.stories.js +0 -159
  415. package/components/NotificationBanner/NotificationBanner.stories.js +0 -22
  416. package/components/NotificationBanner/NotificationBannerUI.jsx +0 -282
  417. package/components/SideNav/SideNav.stories.js +0 -397
  418. package/components/Spinner/index.js +0 -9
  419. package/components/Tabs/TabsUI.jsx +0 -118
  420. package/components/Tabs/tabs.js +0 -36
  421. package/components/Tooltip/Tooltip.jsx +0 -88
  422. package/components/Tooltip/Tooltip.stories.js +0 -80
  423. package/components/Tooltip/index.js +0 -3
  424. package/components/Tooltip/position.js +0 -68
  425. package/components/UnwrappedSpinner/index.js +0 -8
  426. package/components/UnwrappedTabs/TabPanelUI.jsx +0 -16
  427. package/components/UnwrappedTabs/TabsUI.jsx +0 -82
  428. package/coverage/lcov-report/Accordion/index.html +0 -111
  429. package/coverage/lcov-report/Error/index.html +0 -126
  430. package/coverage/lcov-report/ScoreChart.jsx.html +0 -1025
  431. package/coverage/lcov-report/SideNav/Chart/ScoreChart.jsx.html +0 -1025
  432. package/coverage/lcov-report/components/Footer/LegacyFooterUI.jsx.html +0 -668
  433. package/coverage/lcov-report/components/NotificationBanner/NotificationBannerUI.jsx.html +0 -1010
  434. package/coverage/lcov-report/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +0 -131
  435. package/coverage/lcov-report/components/SideNav/Chart/index.js.html +0 -89
  436. package/coverage/lcov-report/components/SideNav/Content/LevelOneContent.jsx.html +0 -1007
  437. package/coverage/lcov-report/components/SideNav/Content/index.html +0 -141
  438. package/coverage/lcov-report/components/SideNav/Content/index.js.html +0 -92
  439. package/coverage/lcov-report/components/SideNav/Details/index.js.html +0 -92
  440. package/coverage/lcov-report/components/SideNav/Links/index.html +0 -201
  441. package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +0 -1298
  442. package/coverage/lcov-report/components/SideNav/UI/index.html +0 -126
  443. package/coverage/lcov-report/components/SideNav/UI/index.js.html +0 -89
  444. package/coverage/lcov-report/lib/svg-definitions.svg.html +0 -1319
  445. package/coverage/lcov-report/react/components/NotificationBanner/NotificationBannerUI.jsx.html +0 -926
  446. package/styles/components/_footer.scss +0 -593
  447. package/styles/components/_header_backup.scss +0 -574
  448. package/styles/components/sidebar/_sidebar.scss +0 -141
  449. package/test/components/Tooltip.test.js +0 -147
  450. package/test/components/__snapshots__/Accordion.test.js.snap +0 -11439
  451. package/test/components/__snapshots__/HeaderUI.test.js.snap +0 -3
  452. /package/styles/{components → qppds/components}/sidebar/_animations.scss +0 -0
  453. /package/styles/{components → qppds/components}/sidebar/_cms.scss +0 -0
  454. /package/styles/{components → qppds/components}/sidebar/_details.scss +0 -0
  455. /package/styles/{components → qppds/components}/sidebar/_sidebar-tooltip.scss +0 -0
  456. /package/styles/{components → qppds/components}/sidebar/project-specific/_wi.scss +0 -0
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import PropTypes from 'prop-types';
2
3
 
3
4
  export const MyApplicationsIcon = () => (
4
5
  <svg className="my-applications" viewBox="0 0 25 25">
@@ -6,9 +7,7 @@ export const MyApplicationsIcon = () => (
6
7
  <g transform="translate(0.000000, 0.629018)">
7
8
  <polygon points="12 23.0964379 24 15.374457 24 16.3397046 12 24.0616855 0 16.3397046 0 15.374457"></polygon>
8
9
  <polygon points="12 19.2701998 24 11.5482189 24 12.5134666 12 20.2354474 0 12.5134666 0 11.5482189"></polygon>
9
- <path
10
- d="M23.25,8.20460469 L12,0.965247611 L0.75,8.20460469 L12,15.4439618 L23.25,8.20460469 Z M24,7.72198089 L24,8.6872285 L12,16.4092094 L0,8.6872285 L0,7.72198089 L12,0 L24,7.72198089 Z"
11
- ></path>
10
+ <path d="M23.25,8.20460469 L12,0.965247611 L0.75,8.20460469 L12,15.4439618 L23.25,8.20460469 Z M24,7.72198089 L24,8.6872285 L12,16.4092094 L0,8.6872285 L0,7.72198089 L12,0 L24,7.72198089 Z"></path>
12
11
  </g>
13
12
  </g>
14
13
  </svg>
@@ -98,12 +97,8 @@ export const PhysicianCompareIcon = () => (
98
97
  <svg className="physician-compare-icon" viewBox="0 0 25 25">
99
98
  <g id="Page-1" stroke="none" strokeWidth="1">
100
99
  <g id="Physician-Compare_Physician-Compare">
101
- <path
102
- d="M19.2204301,5 L18.1451613,5 C17.7419355,5 17.4731183,5.2601626 17.4731183,5.6504065 C17.4731183,6.04065041 17.7419355,6.30081301 18.1451613,6.30081301 L19.2204301,6.30081301 C19.3548387,6.30081301 19.4892473,6.43089431 19.4892473,6.56097561 L19.4892473,11.8943089 C19.4892473,13.3252033 18.2795699,14.6260163 16.6666667,14.6260163 C15.0537634,14.6260163 13.844086,13.4552846 13.844086,11.8943089 L13.844086,6.56097561 C13.844086,6.43089431 13.9784946,6.30081301 14.1129032,6.30081301 L15.188172,6.30081301 C15.5913978,6.30081301 15.8602151,6.04065041 15.8602151,5.6504065 C15.8602151,5.2601626 15.5913978,5 15.188172,5 L14.1129032,5 C13.3064516,5 12.5,5.6504065 12.5,6.56097561 L12.5,11.8943089 C12.5,13.8455285 13.9784946,15.5365854 15.9946237,15.9268293 C15.8602151,18.398374 14.6505376,19.699187 12.5,19.699187 L12.2311828,19.699187 C9.40860215,19.699187 8.33333333,17.2276423 8.33333333,15.6666667 L8.33333333,14.495935 C9.67741935,14.1056911 10.6182796,12.9349593 10.6182796,11.504065 C10.7526882,9.81300813 9.27419355,8.38211382 7.52688172,8.38211382 C5.77956989,8.38211382 4.16666667,9.81300813 4.16666667,11.504065 C4.16666667,13.0650407 5.37634409,14.3658537 6.98924731,14.6260163 L6.98924731,15.6666667 C6.98924731,18.2682927 8.87096774,21 12.2311828,21 L12.5,21 C15.4569892,21 17.2043011,19.1788618 17.3387097,15.796748 C19.3548387,15.5365854 20.8333333,13.8455285 20.8333333,11.7642276 L20.8333333,6.56097561 C20.8333333,5.6504065 20.1612903,5 19.2204301,5 Z M5.77956989,11.504065 C5.77956989,10.5934959 6.58602151,9.94308943 7.39247312,9.94308943 C8.19892473,9.94308943 9.00537634,10.7235772 9.00537634,11.504065 C9.00537634,12.2845528 8.33333333,13.195122 7.52688172,13.195122 C6.72043011,13.195122 5.77956989,12.4146341 5.77956989,11.504065 Z"
103
- ></path>
104
- <path
105
- d="M20.718232,0 L4.14364641,0 C1.79558011,0 0,1.82291667 0,3.90625 L0,21.09375 C0,23.3072917 1.93370166,25 4.14364641,25 L20.8563536,25 C23.2044199,25 25,23.1770833 25,21.09375 L25,3.90625 C24.8618785,1.82291667 23.0662983,0 20.718232,0 Z M23.480663,21.09375 C23.480663,22.5260417 22.2375691,23.6979167 20.718232,23.6979167 L4.14364641,23.6979167 C2.62430939,23.6979167 1.38121547,22.5260417 1.38121547,21.09375 L1.38121547,3.90625 C1.38121547,2.47395833 2.62430939,1.30208333 4.14364641,1.30208333 L20.8563536,1.30208333 C22.3756906,1.30208333 23.6187845,2.47395833 23.6187845,3.90625 L23.6187845,21.09375 L23.480663,21.09375 Z"
106
- ></path>
100
+ <path d="M19.2204301,5 L18.1451613,5 C17.7419355,5 17.4731183,5.2601626 17.4731183,5.6504065 C17.4731183,6.04065041 17.7419355,6.30081301 18.1451613,6.30081301 L19.2204301,6.30081301 C19.3548387,6.30081301 19.4892473,6.43089431 19.4892473,6.56097561 L19.4892473,11.8943089 C19.4892473,13.3252033 18.2795699,14.6260163 16.6666667,14.6260163 C15.0537634,14.6260163 13.844086,13.4552846 13.844086,11.8943089 L13.844086,6.56097561 C13.844086,6.43089431 13.9784946,6.30081301 14.1129032,6.30081301 L15.188172,6.30081301 C15.5913978,6.30081301 15.8602151,6.04065041 15.8602151,5.6504065 C15.8602151,5.2601626 15.5913978,5 15.188172,5 L14.1129032,5 C13.3064516,5 12.5,5.6504065 12.5,6.56097561 L12.5,11.8943089 C12.5,13.8455285 13.9784946,15.5365854 15.9946237,15.9268293 C15.8602151,18.398374 14.6505376,19.699187 12.5,19.699187 L12.2311828,19.699187 C9.40860215,19.699187 8.33333333,17.2276423 8.33333333,15.6666667 L8.33333333,14.495935 C9.67741935,14.1056911 10.6182796,12.9349593 10.6182796,11.504065 C10.7526882,9.81300813 9.27419355,8.38211382 7.52688172,8.38211382 C5.77956989,8.38211382 4.16666667,9.81300813 4.16666667,11.504065 C4.16666667,13.0650407 5.37634409,14.3658537 6.98924731,14.6260163 L6.98924731,15.6666667 C6.98924731,18.2682927 8.87096774,21 12.2311828,21 L12.5,21 C15.4569892,21 17.2043011,19.1788618 17.3387097,15.796748 C19.3548387,15.5365854 20.8333333,13.8455285 20.8333333,11.7642276 L20.8333333,6.56097561 C20.8333333,5.6504065 20.1612903,5 19.2204301,5 Z M5.77956989,11.504065 C5.77956989,10.5934959 6.58602151,9.94308943 7.39247312,9.94308943 C8.19892473,9.94308943 9.00537634,10.7235772 9.00537634,11.504065 C9.00537634,12.2845528 8.33333333,13.195122 7.52688172,13.195122 C6.72043011,13.195122 5.77956989,12.4146341 5.77956989,11.504065 Z"></path>
101
+ <path d="M20.718232,0 L4.14364641,0 C1.79558011,0 0,1.82291667 0,3.90625 L0,21.09375 C0,23.3072917 1.93370166,25 4.14364641,25 L20.8563536,25 C23.2044199,25 25,23.1770833 25,21.09375 L25,3.90625 C24.8618785,1.82291667 23.0662983,0 20.718232,0 Z M23.480663,21.09375 C23.480663,22.5260417 22.2375691,23.6979167 20.718232,23.6979167 L4.14364641,23.6979167 C2.62430939,23.6979167 1.38121547,22.5260417 1.38121547,21.09375 L1.38121547,3.90625 C1.38121547,2.47395833 2.62430939,1.30208333 4.14364641,1.30208333 L20.8563536,1.30208333 C22.3756906,1.30208333 23.6187845,2.47395833 23.6187845,3.90625 L23.6187845,21.09375 L23.480663,21.09375 Z"></path>
107
102
  </g>
108
103
  </g>
109
104
  </svg>
@@ -112,32 +107,12 @@ export const PhysicianCompareIcon = () => (
112
107
  export const HardshipIcon = () => (
113
108
  <svg className="hardship-icon" viewBox="0 0 25 25" version="1.1">
114
109
  <g>
115
- <g
116
- transform="translate(2.000000, 0.000000)"
117
- fillRule="nonzero"
118
- >
119
- <path
120
- d="M18.7721739,2.6119403 L14.4991304,2.6119403 L12.4813043,2.6119403 C12.5178261,2.44402985 12.5543478,2.2761194 12.5543478,2.0988806 C12.5543478,0.942164179 11.6321739,0 10.5,0 C9.36782609,0 8.44565217,0.942164179 8.44565217,2.0988806 C8.44565217,2.2761194 8.47304348,2.44402985 8.51869565,2.6119403 L6.49173913,2.6119403 L2.21869565,2.6119403 C0.995217391,2.6119403 0,3.62873134 0,4.8880597 L0,22.733209 C0,23.983209 0.995217391,25 2.21869565,25 L18.7721739,25 C19.9956522,25 21,23.983209 21,22.7238806 L21,4.8880597 C21,3.62873134 19.9956522,2.6119403 18.7721739,2.6119403 Z M10.5,0.932835821 C11.13,0.932835821 11.6413043,1.45522388 11.6413043,2.0988806 C11.6413043,2.31343284 11.5682609,2.5 11.4769565,2.66791045 C11.403913,2.7891791 11.3126087,2.9011194 11.2030435,2.99440299 C11.1482609,3.04104478 11.0843478,3.08768657 11.0204348,3.125 C10.9747826,3.14365672 10.9382609,3.17164179 10.8926087,3.19029851 C10.7647826,3.22761194 10.6369565,3.26492537 10.5,3.26492537 C10.3630435,3.26492537 10.2352174,3.22761194 10.1165217,3.18097015 C10.0708696,3.16231343 10.0343478,3.14365672 9.98869565,3.11567164 C9.92478261,3.07835821 9.86086957,3.03171642 9.80608696,2.98507463 C9.6873913,2.89179104 9.59608696,2.77052239 9.52304348,2.63992537 C9.43173913,2.47201493 9.36782609,2.29477612 9.36782609,2.08955224 C9.35869565,1.45522388 9.87,0.932835821 10.5,0.932835821 Z M20.0869565,22.7238806 C20.0869565,23.4608209 19.5026087,24.0671642 18.7721739,24.0671642 L2.21869565,24.0671642 C1.4973913,24.0671642 0.903913043,23.4701493 0.903913043,22.7238806 L0.903913043,4.8880597 C0.913043478,4.14179104 1.4973913,3.54477612 2.21869565,3.54477612 L6.49173913,3.54477612 L6.49173913,4.38432836 C6.49173913,4.95335821 6.93913043,5.41044776 7.49608696,5.41044776 L13.503913,5.41044776 C14.0608696,5.41044776 14.5082609,4.95335821 14.5082609,4.38432836 L14.5082609,3.54477612 L18.7813043,3.54477612 C19.5026087,3.54477612 20.096087,4.14179104 20.096087,4.8880597 L20.096087,22.7238806 L20.0869565,22.7238806 L20.0869565,22.7238806 Z"
121
- ></path>
110
+ <g transform="translate(2.000000, 0.000000)" fillRule="nonzero">
111
+ <path d="M18.7721739,2.6119403 L14.4991304,2.6119403 L12.4813043,2.6119403 C12.5178261,2.44402985 12.5543478,2.2761194 12.5543478,2.0988806 C12.5543478,0.942164179 11.6321739,0 10.5,0 C9.36782609,0 8.44565217,0.942164179 8.44565217,2.0988806 C8.44565217,2.2761194 8.47304348,2.44402985 8.51869565,2.6119403 L6.49173913,2.6119403 L2.21869565,2.6119403 C0.995217391,2.6119403 0,3.62873134 0,4.8880597 L0,22.733209 C0,23.983209 0.995217391,25 2.21869565,25 L18.7721739,25 C19.9956522,25 21,23.983209 21,22.7238806 L21,4.8880597 C21,3.62873134 19.9956522,2.6119403 18.7721739,2.6119403 Z M10.5,0.932835821 C11.13,0.932835821 11.6413043,1.45522388 11.6413043,2.0988806 C11.6413043,2.31343284 11.5682609,2.5 11.4769565,2.66791045 C11.403913,2.7891791 11.3126087,2.9011194 11.2030435,2.99440299 C11.1482609,3.04104478 11.0843478,3.08768657 11.0204348,3.125 C10.9747826,3.14365672 10.9382609,3.17164179 10.8926087,3.19029851 C10.7647826,3.22761194 10.6369565,3.26492537 10.5,3.26492537 C10.3630435,3.26492537 10.2352174,3.22761194 10.1165217,3.18097015 C10.0708696,3.16231343 10.0343478,3.14365672 9.98869565,3.11567164 C9.92478261,3.07835821 9.86086957,3.03171642 9.80608696,2.98507463 C9.6873913,2.89179104 9.59608696,2.77052239 9.52304348,2.63992537 C9.43173913,2.47201493 9.36782609,2.29477612 9.36782609,2.08955224 C9.35869565,1.45522388 9.87,0.932835821 10.5,0.932835821 Z M20.0869565,22.7238806 C20.0869565,23.4608209 19.5026087,24.0671642 18.7721739,24.0671642 L2.21869565,24.0671642 C1.4973913,24.0671642 0.903913043,23.4701493 0.903913043,22.7238806 L0.903913043,4.8880597 C0.913043478,4.14179104 1.4973913,3.54477612 2.21869565,3.54477612 L6.49173913,3.54477612 L6.49173913,4.38432836 C6.49173913,4.95335821 6.93913043,5.41044776 7.49608696,5.41044776 L13.503913,5.41044776 C14.0608696,5.41044776 14.5082609,4.95335821 14.5082609,4.38432836 L14.5082609,3.54477612 L18.7813043,3.54477612 C19.5026087,3.54477612 20.096087,4.14179104 20.096087,4.8880597 L20.096087,22.7238806 L20.0869565,22.7238806 L20.0869565,22.7238806 Z"></path>
122
112
  <g transform="translate(4.000000, 9.000000)">
123
- <rect
124
- x="3.50571429"
125
- y="7.24"
126
- width="7.97142857"
127
- height="1"
128
- ></rect>
129
- <rect
130
- x="0.848571429"
131
- y="7.24"
132
- width="1.37142857"
133
- height="1"
134
- ></rect>
135
- <rect
136
- x="6.50571429"
137
- y="2.17"
138
- width="4.97142857"
139
- height="1"
140
- ></rect>
113
+ <rect x="3.50571429" y="7.24" width="7.97142857" height="1"></rect>
114
+ <rect x="0.848571429" y="7.24" width="1.37142857" height="1"></rect>
115
+ <rect x="6.50571429" y="2.17" width="4.97142857" height="1"></rect>
141
116
  <polygon points="2.13428571 4.04 0.402857143 2.01 1.01142857 1.31 2.13428571 2.62 4.03714286 0.41 4.64571429 1.11"></polygon>
142
117
  </g>
143
118
  </g>
@@ -181,9 +156,7 @@ export const TargetIcon = () => (
181
156
  export const ReportsIcon = () => (
182
157
  <svg className="reports-icon" viewBox="0 0 25 25">
183
158
  <g>
184
- <path
185
- d="M17.933,0 C18.1717358,0 18.3968908,0.110656353 18.5402903,0.296256203 L22.7874693,5.70648432 C22.9255465,5.88258285 23,6.10021604 23,6.324 L23,24 C23,24.5521424 22.5521424,25 22,25 L3,25 C2.44785763,25 2,24.5521424 2,24 L2,1 C2,0.447857625 2.44785763,0 3,0 L17.933,0 Z M16.937,1 L3,1 L3,24 L22,24 L22,7 L18.4371948,7 C17.6087677,7 16.9371948,6.32842712 16.9371948,5.5 L16.937,1 Z M16.5,20 C16.7761424,20 17,20.2238576 17,20.5 C17,20.7761424 16.7761424,21 16.5,21 L8.5,21 C8.22385763,21 8,20.7761424 8,20.5 C8,20.2238576 8.22385763,20 8.5,20 L16.5,20 Z M12.5,6 C12.7761424,6 13,6.22385763 13,6.5 L12.999,16.41 L15.4105156,14 C15.5840819,13.8264336 15.8535063,13.8071485 16.0483745,13.9421445 L16.1176224,14 C16.3128845,14.1952621 16.3128845,14.5118446 16.1176224,14.7071068 L16.1176224,14.7071068 L12.8535534,17.9711757 C12.6582912,18.1664379 12.3417088,18.1664379 12.1464466,17.9711757 L12.1464466,17.9711757 L8.88237764,14.7071068 C8.6871155,14.5118446 8.6871155,14.1952621 8.88237764,14 C9.07763979,13.8047379 9.39422228,13.8047379 9.58948443,14 L9.58948443,14 L11.999,16.41 L12,6.5 C12,6.22385763 12.2238576,6 12.5,6 Z M17.937,1.148 L17.9371948,5.5 C17.9371948,5.77614237 18.1610524,6 18.4371948,6 L21.746,6 L17.937,1.148 Z"
186
- ></path>
159
+ <path d="M17.933,0 C18.1717358,0 18.3968908,0.110656353 18.5402903,0.296256203 L22.7874693,5.70648432 C22.9255465,5.88258285 23,6.10021604 23,6.324 L23,24 C23,24.5521424 22.5521424,25 22,25 L3,25 C2.44785763,25 2,24.5521424 2,24 L2,1 C2,0.447857625 2.44785763,0 3,0 L17.933,0 Z M16.937,1 L3,1 L3,24 L22,24 L22,7 L18.4371948,7 C17.6087677,7 16.9371948,6.32842712 16.9371948,5.5 L16.937,1 Z M16.5,20 C16.7761424,20 17,20.2238576 17,20.5 C17,20.7761424 16.7761424,21 16.5,21 L8.5,21 C8.22385763,21 8,20.7761424 8,20.5 C8,20.2238576 8.22385763,20 8.5,20 L16.5,20 Z M12.5,6 C12.7761424,6 13,6.22385763 13,6.5 L12.999,16.41 L15.4105156,14 C15.5840819,13.8264336 15.8535063,13.8071485 16.0483745,13.9421445 L16.1176224,14 C16.3128845,14.1952621 16.3128845,14.5118446 16.1176224,14.7071068 L16.1176224,14.7071068 L12.8535534,17.9711757 C12.6582912,18.1664379 12.3417088,18.1664379 12.1464466,17.9711757 L12.1464466,17.9711757 L8.88237764,14.7071068 C8.6871155,14.5118446 8.6871155,14.1952621 8.88237764,14 C9.07763979,13.8047379 9.39422228,13.8047379 9.58948443,14 L9.58948443,14 L11.999,16.41 L12,6.5 C12,6.22385763 12.2238576,6 12.5,6 Z M17.937,1.148 L17.9371948,5.5 C17.9371948,5.77614237 18.1610524,6 18.4371948,6 L21.746,6 L17.937,1.148 Z"></path>
187
160
  </g>
188
161
  </svg>
189
162
  );
@@ -279,6 +252,13 @@ export const StarIcon = () => (
279
252
  </svg>
280
253
  );
281
254
 
255
+ export const RegistrationIcon = () => (
256
+ <svg className="registration-icon" viewBox="0 0 25 25">
257
+ <path d="M11,24.74c-2.69,0-5.38,.03-8.07-.01C1.12,24.7,.02,23.49,0,21.61c-.01-2.75,0-5.51,0-8.26,0-2.52,0-5.04,0-7.56,0-2.1,1.21-3.31,3.32-3.32,2.48,0,4.96,0,7.44,0,.17,0,.51,0,.65,.05,.23,.09,.33,.39,.33,.57,0,.25-.11,.51-.35,.62-.18,.08-.52,.04-.71,.04-2.5,0-5,0-7.5,0-1.27,0-1.92,.65-1.92,1.91,0,5.32,0,10.64,0,15.95,0,1.29,.67,1.96,1.95,1.96,5.32,0,10.64,0,15.95,0,1.24,0,1.92-.69,1.92-1.93,0-2.54,0-5.09,.01-7.63,0-.25,.06-.55,.21-.75,.31-.4,.82-.27,.97,.22,.05,.18,.05,.38,.05,.57,0,2.5,0,5,0,7.5,0,2.05-1.19,3.24-3.24,3.25-2.69,.01-5.38,0-8.07,0,0-.02,0-.03,0-.05Z" />
258
+ <path d="M24.78,3.09c0,.85-.28,1.58-.88,2.18-3.67,3.67-7.33,7.35-11.01,11.01-.18,.18-.46,.31-.71,.37-1.37,.36-2.74,.7-4.12,1.04-.8,.2-1.14-.13-.94-.95,.34-1.42,.7-2.83,1.08-4.24,.06-.23,.2-.47,.37-.64,3.63-3.65,7.27-7.29,10.92-10.92,.97-.96,2.28-1.18,3.46-.66,1.13,.5,1.83,1.58,1.84,2.81ZM8.5,16.3c1.17-.3,2.25-.56,3.32-.86,.19-.05,.36-.21,.5-.35,3.52-3.51,7.04-7.03,10.56-10.55,.88-.88,.92-1.96,.12-2.75-.8-.79-1.88-.75-2.76,.13-3.52,3.51-7.04,7.03-10.55,10.56-.17,.17-.33,.4-.39,.63-.27,1.02-.51,2.04-.79,3.2Z" />
259
+ </svg>
260
+ );
261
+
282
262
  export const CliniciansIcon = () => (
283
263
  <svg className="clinicians-icon" viewBox="0 0 25 25">
284
264
  <g>
@@ -428,10 +408,20 @@ export const NavExpand = () => (
428
408
  );
429
409
 
430
410
  export const CloseXIcon = () => (
431
- <svg className="closex" viewBox="0 0 15 15">
411
+ <svg className="closex" viewBox="0 0 15 15" focusable="false">
432
412
  <g strokeWidth="1" transform="translate(-968.000000, -236.000000)">
413
+ <path d="M982.725141,249.399456 L976.82556,243.499875 L982.725141,237.600294 C983.091286,237.234148 983.091286,236.640905 982.725141,236.274609 C982.359295,235.908464 981.765752,235.908464 981.399456,236.274609 L975.499875,242.17419 L969.600294,236.274609 C969.234448,235.908464 968.640905,235.908464 968.274609,236.274609 C967.908464,236.640155 967.908464,237.233998 968.274609,237.600294 L974.17419,243.499875 L968.274609,249.399456 C967.908464,249.765602 967.908464,250.358845 968.274609,250.725141 C968.640755,251.091286 969.233998,251.091286 969.600294,250.725141 L975.499875,244.82556 L981.399456,250.725141 C981.765602,251.091286 982.359295,251.091286 982.725141,250.725141 C983.091286,250.358995 983.091286,249.765752 982.725141,249.399456 Z"></path>
414
+ </g>
415
+ </svg>
416
+ );
417
+
418
+ export const CloseXIcon2 = () => (
419
+ <svg viewBox="0 0 16 16" focusable="false">
420
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
433
421
  <path
434
- d="M982.725141,249.399456 L976.82556,243.499875 L982.725141,237.600294 C983.091286,237.234148 983.091286,236.640905 982.725141,236.274609 C982.359295,235.908464 981.765752,235.908464 981.399456,236.274609 L975.499875,242.17419 L969.600294,236.274609 C969.234448,235.908464 968.640905,235.908464 968.274609,236.274609 C967.908464,236.640155 967.908464,237.233998 968.274609,237.600294 L974.17419,243.499875 L968.274609,249.399456 C967.908464,249.765602 967.908464,250.358845 968.274609,250.725141 C968.640755,251.091286 969.233998,251.091286 969.600294,250.725141 L975.499875,244.82556 L981.399456,250.725141 C981.765602,251.091286 982.359295,251.091286 982.725141,250.725141 C983.091286,250.358995 983.091286,249.765752 982.725141,249.399456 Z"
422
+ d="M0.292893219,0.292893219 C0.683417511,-0.0976310729 1.31658249,-0.0976310729 1.70710678,0.292893219 L1.70710678,0.292893219 L8,6.585 L14.2928932,0.292893219 C14.6834175,-0.0976310729 15.3165825,-0.0976310729 15.7071068,0.292893219 C16.0675907,0.65337718 16.0953203,1.22060824 15.7902954,1.61289944 L15.7071068,1.70710678 L9.415,8 L15.7071068,14.2928932 L15.7902954,14.3871006 C16.0953203,14.7793918 16.0675907,15.3466228 15.7071068,15.7071068 C15.3165825,16.0976311 14.6834175,16.0976311 14.2928932,15.7071068 L14.2928932,15.7071068 L8,9.415 L1.70710678,15.7071068 C1.31658249,16.0976311 0.683417511,16.0976311 0.292893219,15.7071068 C-0.0675907428,15.3466228 -0.0953202783,14.7793918 0.209704612,14.3871006 L0.292893219,14.2928932 L6.585,8 L0.292893219,1.70710678 L0.209704612,1.61289944 C-0.0953202783,1.22060824 -0.0675907428,0.65337718 0.292893219,0.292893219 Z"
423
+ fill="#242424"
424
+ fillRule="nonzero"
435
425
  ></path>
436
426
  </g>
437
427
  </svg>
@@ -502,7 +492,7 @@ export const YoutubeIcon = () => (
502
492
 
503
493
  export const TwitterIcon = () => (
504
494
  <svg className="twitter-icon" width="19px" height="16px" viewBox="0 0 19 16">
505
- <g stroke="none" stroke-Width="1" fill="none" fillRule="evenodd">
495
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
506
496
  <g
507
497
  transform="translate(-763.000000, -177.000000)"
508
498
  fill="#242424"
@@ -525,11 +515,11 @@ export const WiViewReportsIcon = () => (
525
515
  <svg className="wi-view-reports" viewBox="0 0 25 25">
526
516
  <title>WI View Reports</title>
527
517
  <g>
528
- <path d="M20.8680556,0.0569444444 L3.37638889,0.0569444444 C3.11944444,0.0569444444 2.9125,0.265277778 2.9125,0.520833333 L2.9125,2.07777778 L1.35555556,2.07777778 C1.09861111,2.07777778 0.891666667,2.28472222 0.891666667,2.54027778 L0.891666667,24.4763889 C0.891666667,24.7333333 1.09861111,24.9402778 1.35555556,24.9402778 L18.8472222,24.9402778 C19.1027778,24.9402778 19.3097222,24.7319444 19.3097222,24.4763889 L19.3097222,22.9208333 L20.8680556,22.9208333 C21.1236111,22.9208333 21.3305556,22.7125 21.3305556,22.4583333 L21.3305556,0.522222222 C21.3305556,0.265277778 21.1236111,0.0569444444 20.8680556,0.0569444444 Z M1.82222222,24.0111111 L1.82222222,3.00833333 L18.3861111,3.00833333 L18.3861111,24.0125 L1.82222222,24.0125 L1.82222222,24.0111111 Z M18.8472222,2.07777778 L3.84305556,2.07777778 L3.84305556,0.986111111 L20.4027778,0.986111111 L20.4027778,21.9930556 L19.3097222,21.9930556 L19.3097222,2.54166667 C19.3097222,2.28611111 19.1027778,2.07777778 18.8472222,2.07777778 Z"></path>
529
- <path d="M14.8069444,7.05138889 L5.4,7.05138889 C5.14305556,7.05138889 4.93611111,7.25972222 4.93611111,7.51666667 C4.93611111,7.77222222 5.14305556,7.97916667 5.4,7.97916667 L14.8069444,7.97916667 C15.0638889,7.97916667 15.2708333,7.77083333 15.2708333,7.51666667 C15.2708333,7.25972222 15.0638889,7.05138889 14.8069444,7.05138889 Z"></path>
530
- <path d="M14.8069444,11.0472222 L5.4,11.0472222 C5.14305556,11.0472222 4.93611111,11.2569444 4.93611111,11.5138889 C4.93611111,11.7694444 5.14305556,11.9763889 5.4,11.9763889 L14.8069444,11.9763889 C15.0638889,11.9763889 15.2708333,11.7680556 15.2708333,11.5138889 C15.2708333,11.2569444 15.0638889,11.0472222 14.8069444,11.0472222 Z"></path>
531
- <path d="M14.8069444,15.0416667 L5.4,15.0416667 C5.14305556,15.0416667 4.93611111,15.25 4.93611111,15.5069444 C4.93611111,15.7638889 5.14305556,15.9722222 5.4,15.9722222 L14.8069444,15.9722222 C15.0638889,15.9722222 15.2708333,15.7638889 15.2708333,15.5069444 C15.2708333,15.25 15.0638889,15.0416667 14.8069444,15.0416667 Z"></path>
532
- <path d="M14.8069444,18.5819444 L5.4,18.5819444 C5.14305556,18.5819444 4.93611111,18.7902778 4.93611111,19.0472222 C4.93611111,19.3041667 5.14305556,19.5125 5.4,19.5125 L14.8069444,19.5125 C15.0638889,19.5125 15.2708333,19.3041667 15.2708333,19.0472222 C15.2708333,18.7902778 15.0638889,18.5819444 14.8069444,18.5819444 Z"></path>
518
+ <path d="M20.8680556,0.0569444444 L3.37638889,0.0569444444 C3.11944444,0.0569444444 2.9125,0.265277778 2.9125,0.520833333 L2.9125,2.07777778 L1.35555556,2.07777778 C1.09861111,2.07777778 0.891666667,2.28472222 0.891666667,2.54027778 L0.891666667,24.4763889 C0.891666667,24.7333333 1.09861111,24.9402778 1.35555556,24.9402778 L18.8472222,24.9402778 C19.1027778,24.9402778 19.3097222,24.7319444 19.3097222,24.4763889 L19.3097222,22.9208333 L20.8680556,22.9208333 C21.1236111,22.9208333 21.3305556,22.7125 21.3305556,22.4583333 L21.3305556,0.522222222 C21.3305556,0.265277778 21.1236111,0.0569444444 20.8680556,0.0569444444 Z M1.82222222,24.0111111 L1.82222222,3.00833333 L18.3861111,3.00833333 L18.3861111,24.0125 L1.82222222,24.0125 L1.82222222,24.0111111 Z M18.8472222,2.07777778 L3.84305556,2.07777778 L3.84305556,0.986111111 L20.4027778,0.986111111 L20.4027778,21.9930556 L19.3097222,21.9930556 L19.3097222,2.54166667 C19.3097222,2.28611111 19.1027778,2.07777778 18.8472222,2.07777778 Z"></path>
519
+ <path d="M14.8069444,7.05138889 L5.4,7.05138889 C5.14305556,7.05138889 4.93611111,7.25972222 4.93611111,7.51666667 C4.93611111,7.77222222 5.14305556,7.97916667 5.4,7.97916667 L14.8069444,7.97916667 C15.0638889,7.97916667 15.2708333,7.77083333 15.2708333,7.51666667 C15.2708333,7.25972222 15.0638889,7.05138889 14.8069444,7.05138889 Z"></path>
520
+ <path d="M14.8069444,11.0472222 L5.4,11.0472222 C5.14305556,11.0472222 4.93611111,11.2569444 4.93611111,11.5138889 C4.93611111,11.7694444 5.14305556,11.9763889 5.4,11.9763889 L14.8069444,11.9763889 C15.0638889,11.9763889 15.2708333,11.7680556 15.2708333,11.5138889 C15.2708333,11.2569444 15.0638889,11.0472222 14.8069444,11.0472222 Z"></path>
521
+ <path d="M14.8069444,15.0416667 L5.4,15.0416667 C5.14305556,15.0416667 4.93611111,15.25 4.93611111,15.5069444 C4.93611111,15.7638889 5.14305556,15.9722222 5.4,15.9722222 L14.8069444,15.9722222 C15.0638889,15.9722222 15.2708333,15.7638889 15.2708333,15.5069444 C15.2708333,15.25 15.0638889,15.0416667 14.8069444,15.0416667 Z"></path>
522
+ <path d="M14.8069444,18.5819444 L5.4,18.5819444 C5.14305556,18.5819444 4.93611111,18.7902778 4.93611111,19.0472222 C4.93611111,19.3041667 5.14305556,19.5125 5.4,19.5125 L14.8069444,19.5125 C15.0638889,19.5125 15.2708333,19.3041667 15.2708333,19.0472222 C15.2708333,18.7902778 15.0638889,18.5819444 14.8069444,18.5819444 Z"></path>
533
523
  </g>
534
524
  </svg>
535
525
  );
@@ -538,10 +528,10 @@ export const WiViewProgressIcon = () => (
538
528
  <svg className="wi-view-progress" viewBox="0 0 25 25">
539
529
  <title>WI View Progress</title>
540
530
  <g>
541
- <path d="M22.2,25.5H2.8c-1.8,0-3.3-1.5-3.3-3.3V2.8C-0.5,1,1-0.5,2.8-0.5h19.4c1.8,0,3.3,1.5,3.3,3.3v19.4C25.5,24,24,25.5,22.2,25.5z M2.8,0.5c-1.3,0-2.3,1-2.3,2.3v19.4c0,1.3,1,2.3,2.3,2.3h19.4c1.3,0,2.3-1,2.3-2.3V2.8c0-1.3-1-2.3-2.3-2.3H2.8z"/>
542
- <path d="M7.8,18.8c0.5,0,0.9-0.4,0.9-0.9v-4.6c0-0.5-0.4-0.9-0.9-0.9s-0.9,0.4-0.9,0.9v4.6C6.9,18.3,7.3,18.8,7.8,18.8z"/>
543
- <path d="M17.4,18.8c0.5,0,0.9-0.4,0.9-0.9V7.4c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9v10.5C16.5,18.3,16.9,18.8,17.4,18.8z"/>
544
- <path d="M12.6,18.8c0.5,0,0.9-0.4,0.9-0.9v-7.5c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9v7.5C11.7,18.3,12.1,18.8,12.6,18.8z"/>
531
+ <path d="M22.2,25.5H2.8c-1.8,0-3.3-1.5-3.3-3.3V2.8C-0.5,1,1-0.5,2.8-0.5h19.4c1.8,0,3.3,1.5,3.3,3.3v19.4C25.5,24,24,25.5,22.2,25.5z M2.8,0.5c-1.3,0-2.3,1-2.3,2.3v19.4c0,1.3,1,2.3,2.3,2.3h19.4c1.3,0,2.3-1,2.3-2.3V2.8c0-1.3-1-2.3-2.3-2.3H2.8z" />
532
+ <path d="M7.8,18.8c0.5,0,0.9-0.4,0.9-0.9v-4.6c0-0.5-0.4-0.9-0.9-0.9s-0.9,0.4-0.9,0.9v4.6C6.9,18.3,7.3,18.8,7.8,18.8z" />
533
+ <path d="M17.4,18.8c0.5,0,0.9-0.4,0.9-0.9V7.4c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9v10.5C16.5,18.3,16.9,18.8,17.4,18.8z" />
534
+ <path d="M12.6,18.8c0.5,0,0.9-0.4,0.9-0.9v-7.5c0-0.5-0.4-0.9-0.9-0.9c-0.5,0-0.9,0.4-0.9,0.9v7.5C11.7,18.3,12.1,18.8,12.6,18.8z" />
545
535
  </g>
546
536
  </svg>
547
537
  );
@@ -555,3 +545,161 @@ export const WiManageGroupIcon = () => (
555
545
  </g>
556
546
  </svg>
557
547
  );
548
+
549
+ export const EyeIcon = ({ classes }) => (
550
+ <svg
551
+ className={`eye-icon ${classes}`}
552
+ viewBox="0 0 22 15"
553
+ width="15"
554
+ height="15"
555
+ >
556
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
557
+ <g fill="#80CBC4" fillRule="nonzero">
558
+ <path
559
+ d="M11,11.75 C12.1833333,11.75 13.1875,11.3375 14.0125,10.5125 C14.8375,9.6875 15.25,8.68333333 15.25,7.5 C15.25,6.31666667 14.8375,5.3125 14.0125,4.4875 C13.1875,3.6625 12.1833333,3.25 11,3.25 C9.81666667,3.25 8.8125,3.6625 7.9875,4.4875 C7.1625,5.3125 6.75,6.31666667 6.75,7.5 C6.75,8.68333333 7.1625,9.6875 7.9875,10.5125 C8.8125,11.3375 9.81666667,11.75 11,11.75 Z M11,10.3 C10.2166667,10.3 9.55416667,10.0291667 9.0125,9.4875 C8.47083333,8.94583333 8.2,8.28333333 8.2,7.5 C8.2,6.71666667 8.47083333,6.05416667 9.0125,5.5125 C9.55416667,4.97083333 10.2166667,4.7 11,4.7 C11.7833333,4.7 12.4458333,4.97083333 12.9875,5.5125 C13.5291667,6.05416667 13.8,6.71666667 13.8,7.5 C13.8,8.28333333 13.5291667,8.94583333 12.9875,9.4875 C12.4458333,10.0291667 11.7833333,10.3 11,10.3 Z M11,15 C8.56666667,15 6.36666667,14.3083333 4.4,12.925 C2.43333333,11.5416667 0.966666667,9.73333333 0,7.5 C0.966666667,5.26666667 2.43333333,3.45833333 4.4,2.075 C6.36666667,0.691666667 8.56666667,0 11,0 C13.4333333,0 15.6333333,0.691666667 17.6,2.075 C19.5666667,3.45833333 21.0333333,5.26666667 22,7.5 C21.0333333,9.73333333 19.5666667,11.5416667 17.6,12.925 C15.6333333,14.3083333 13.4333333,15 11,15 Z M11,13.5 C13.0166667,13.5 14.8708333,12.9541667 16.5625,11.8625 C18.2541667,10.7708333 19.5416667,9.31666667 20.425,7.5 C19.5416667,5.68333333 18.2541667,4.22916667 16.5625,3.1375 C14.8708333,2.04583333 13.0166667,1.5 11,1.5 C8.98333333,1.5 7.12916667,2.04583333 5.4375,3.1375 C3.74583333,4.22916667 2.45,5.68333333 1.55,7.5 C2.45,9.31666667 3.74583333,10.7708333 5.4375,11.8625 C7.12916667,12.9541667 8.98333333,13.5 11,13.5 Z"
560
+ id="Shape"
561
+ ></path>
562
+ </g>
563
+ </g>
564
+ </svg>
565
+ );
566
+
567
+ EyeIcon.propTypes = {
568
+ classes: PropTypes.string,
569
+ };
570
+
571
+ export const ManageDocumentsIcon = () => (
572
+ <svg width="25px" height="25px" viewBox="0 0 25 25">
573
+ <g>
574
+ <path d="M15.933,3.15544362e-30 C16.1717358,3.15544362e-30 16.3968908,0.110656353 16.5402903,0.296256203 L20.7874693,5.70648432 C20.9255465,5.88258285 21,6.10021604 21,6.324 L21,24 C21,24.5521424 20.5521424,25 20,25 L1,25 C0.447857625,25 0,24.5521424 0,24 L0,1 C0,0.447857625 0.447857625,3.15544362e-30 1,3.15544362e-30 L15.933,3.15544362e-30 Z M14.937,1 L1,1 L1,24 L20,24 L20,7 L16.4371948,7 C15.6087677,7 14.9371948,6.32842712 14.9371948,5.5 L14.937,1 Z M19.746,6 L15.937,1.148 L15.9371948,5.5 C15.9371948,5.77614237 16.1610524,6 16.4371948,6 L19.746,6 Z M3,22 L3,21 L17.810791,21 L17.810791,22 L3,22 Z M3,19 L3,18 L17.810791,18 L17.810791,19 L3,19 Z M3,16 L3,15 L17.810791,15 L17.810791,16 L3,16 Z M3,13 L3,12 L17.810791,12 L17.810791,13 L3,13 Z M3,10 L3,9 L17.810791,9 L17.810791,10 L3,10 Z"></path>
575
+ </g>
576
+ </svg>
577
+ );
578
+
579
+ export const AuthorContentIcon = () => (
580
+ <svg width="25px" height="26px" viewBox="0 0 25 28">
581
+ <g>
582
+ <path d="M12.3690401,0 C12.5089135,0 12.643038,0.0545896414 12.7419831,0.151701195 L12.7419831,0.151701195 L17.0947785,4.42616335 C17.1936709,4.5232749 17.2492616,4.65503586 17.2492616,4.79239044 L17.2492616,4.79239044 L17.2492616,10.8009801 C18.8116034,11.8150319 19.7705696,13.5487968 19.7705696,15.3972311 C19.7705696,16.2998247 19.5464135,17.181753 19.1197785,17.9722151 L19.1197785,17.9722151 L24.4784283,23.2343147 C25.1216772,23.8659801 25.1216772,24.8938088 24.4783755,25.5254741 C24.1667722,25.8314661 23.7524262,26 23.3117089,26 C22.8710443,26 22.4566983,25.8314661 22.1450949,25.5254741 L22.1450949,25.5254741 L17.2492616,20.7178048 L17.2492616,22.6715339 C17.2492616,22.9575857 17.0130802,23.1894622 16.7218354,23.1894622 L16.7218354,23.1894622 L0.52742616,23.1894622 C0.236181435,23.1894622 2.4158453e-13,22.9575857 2.4158453e-13,22.6715339 L2.4158453e-13,22.6715339 L2.4158453e-13,0.517928287 C2.4158453e-13,0.231876494 0.236181435,0 0.52742616,0 L0.52742616,0 Z M18.5264241,18.854506 L18.332801,19.076681 C18.1332707,19.2942789 17.916192,19.4965817 17.6845464,19.6807052 L17.6845464,19.6807052 L22.890981,24.7930199 C23.0033228,24.9033904 23.1527426,24.9641434 23.3117089,24.9641434 C23.4706751,24.9641434 23.6200949,24.9033904 23.7324895,24.7930199 C23.9644515,24.5652351 23.9644515,24.1946056 23.7324895,23.9668207 L23.7324895,23.9668207 L18.5264241,18.854506 Z M11.8416139,1.03585657 L1.05485232,1.03585657 L1.05485232,22.1536056 L16.1944093,22.1536056 L16.194884,20.5287092 C15.5506857,20.774259 14.8618143,20.9023944 14.164346,20.9023944 C11.0731013,20.9023944 8.55812236,18.432757 8.55812236,15.3971793 C8.55812236,12.3616016 11.0731013,9.89196414 14.164346,9.89196414 C14.8618143,9.89196414 15.5506857,10.0200996 16.194884,10.2656494 L16.194884,10.2656494 L16.1944093,5.31031873 L12.3690401,5.31031873 C12.0777954,5.31031873 11.8416139,5.07844223 11.8416139,4.79239044 L11.8416139,4.79239044 L11.8416139,1.03585657 Z M14.1643987,10.9278725 C11.6547468,10.9278725 9.61302743,12.9328247 9.61302743,15.3972311 C9.61302743,17.8616375 11.6547468,19.8665896 14.1643987,19.8665896 C14.9709388,19.8665896 15.7632911,19.6566215 16.4558544,19.2593705 C16.501635,19.2331633 16.5468882,19.2061793 16.5916139,19.1784183 C17.1621835,18.8243625 17.6543249,18.3411355 18.0148207,17.7808406 C18.473365,17.0682749 18.7157173,16.2440438 18.7157173,15.3972311 C18.7157173,13.8143904 17.849789,12.3345139 16.4559072,11.5350916 C15.7632911,11.1378406 14.9708861,10.9278725 14.1643987,10.9278725 Z M12.2609177,12.3475657 C12.5091245,12.1978845 12.8339135,12.2741753 12.9863397,12.5179641 C13.1387658,12.7617012 13.0611287,13.0806414 12.8128692,13.2303227 C12.039135,13.6968725 11.5771624,14.5069124 11.5771624,15.3972311 C11.5771624,15.6832829 11.340981,15.9151594 11.0497363,15.9151594 C10.7584916,15.9151594 10.5223101,15.6832829 10.5223101,15.3972311 C10.5223101,14.1440518 11.1722574,13.003988 12.2609177,12.3475657 Z M14.164346,11.8207809 C14.8095992,11.8207809 15.4439346,11.9889522 15.9987869,12.3072191 C16.2503165,12.4514622 16.3351266,12.7686414 16.1881857,13.0156932 C16.0900844,13.1805498 15.9135549,13.2724821 15.7322257,13.2724821 C15.6418776,13.2724821 15.5503692,13.2496414 15.4667194,13.2016813 C15.0732068,12.9759681 14.6228376,12.8566375 14.164346,12.8566375 C13.8731013,12.8566375 13.6369198,12.624761 13.6369198,12.3387092 C13.6369198,12.0526574 13.8731013,11.8207809 14.164346,11.8207809 Z M12.896519,1.76836255 L12.896519,4.27446215 L15.4485759,4.27446215 L12.896519,1.76836255 Z"></path>
583
+ </g>
584
+ </svg>
585
+ );
586
+
587
+ export const OpenInNewIcon = ({ className, ...rest }) => (
588
+ <svg
589
+ xmlns="http://www.w3.org/2000/svg"
590
+ viewBox="0 0 24 24"
591
+ className={`qpp-icon-mat ${className}`}
592
+ {...rest}
593
+ >
594
+ <path d="M0 0h24v24H0z" fill="none" />
595
+ <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" />
596
+ </svg>
597
+ );
598
+
599
+ OpenInNewIcon.propTypes = {
600
+ className: PropTypes.string,
601
+ };
602
+
603
+ OpenInNewIcon.defaultProps = {
604
+ className: '',
605
+ };
606
+
607
+ export const SearchIcon = ({ className, viewBox = '0 0 24 24', ...rest }) => (
608
+ <svg
609
+ className={`qpp-icon-mat ${className}`}
610
+ xmlns="http://www.w3.org/2000/svg"
611
+ viewBox={viewBox}
612
+ {...rest}
613
+ >
614
+ <path d="M39.8 41.95 26.65 28.8q-1.5 1.3-3.5 2.025-2 .725-4.25.725-5.4 0-9.15-3.75T6 18.75q0-5.3 3.75-9.05 3.75-3.75 9.1-3.75 5.3 0 9.025 3.75 3.725 3.75 3.725 9.05 0 2.15-.7 4.15-.7 2-2.1 3.75L42 39.75Zm-20.95-13.4q4.05 0 6.9-2.875Q28.6 22.8 28.6 18.75t-2.85-6.925Q22.9 8.95 18.85 8.95q-4.1 0-6.975 2.875T9 18.75q0 4.05 2.875 6.925t6.975 2.875Z" />
615
+ </svg>
616
+ );
617
+
618
+ SearchIcon.propTypes = {
619
+ className: PropTypes.string,
620
+ viewBox: PropTypes.string,
621
+ };
622
+
623
+ SearchIcon.defaultProps = {
624
+ className: '',
625
+ };
626
+
627
+ export const DownloadIcon = ({ className, viewBox = '0 0 24 24', ...rest }) => (
628
+ <svg
629
+ className={`qpp-icon-mat ${className}`}
630
+ xmlns="http://www.w3.org/2000/svg"
631
+ viewBox={viewBox}
632
+ {...rest}
633
+ >
634
+ <path d="M11 40q-1.2 0-2.1-.9Q8 38.2 8 37v-7.15h3V37h26v-7.15h3V37q0 1.2-.9 2.1-.9.9-2.1.9Zm13-7.65-9.65-9.65 2.15-2.15 6 6V8h3v18.55l6-6 2.15 2.15Z" />
635
+ </svg>
636
+ );
637
+
638
+ DownloadIcon.propTypes = {
639
+ className: PropTypes.string,
640
+ viewBox: PropTypes.string,
641
+ };
642
+
643
+ DownloadIcon.defaultProps = {
644
+ className: '',
645
+ };
646
+
647
+ export const CloseIcon = ({ className, ...rest }) => (
648
+ <svg
649
+ className={`qpp-icon-mat ${className}`}
650
+ xmlns="http://www.w3.org/2000/svg"
651
+ viewBox="0 0 24 24"
652
+ {...rest}
653
+ >
654
+ <path d="M0 0h24v24H0z" fill="none" />
655
+ <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
656
+ </svg>
657
+ );
658
+
659
+ CloseIcon.propTypes = {
660
+ className: PropTypes.string,
661
+ };
662
+
663
+ CloseIcon.defaultProps = {
664
+ className: '',
665
+ };
666
+
667
+ export const ExpandMoreIcon = ({ className, ...rest }) => (
668
+ <svg
669
+ xmlns="http://www.w3.org/2000/svg"
670
+ viewBox="0 0 24 24"
671
+ className={`qpp-icon-mat ${className}`}
672
+ {...rest}
673
+ >
674
+ <path d="M0 0h24v24H0z" fill="none" />
675
+ <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" />
676
+ </svg>
677
+ );
678
+
679
+ ExpandMoreIcon.propTypes = {
680
+ className: PropTypes.string,
681
+ };
682
+
683
+ ExpandMoreIcon.defaultProps = {
684
+ className: '',
685
+ };
686
+
687
+ export const ExpandLessIcon = ({ className, ...rest }) => (
688
+ <svg
689
+ xmlns="http://www.w3.org/2000/svg"
690
+ viewBox="0 0 24 24"
691
+ className={`qpp-icon-mat ${className}`}
692
+ {...rest}
693
+ >
694
+ <path d="M0 0h24v24H0z" fill="none" />
695
+ <path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" />
696
+ </svg>
697
+ );
698
+
699
+ ExpandLessIcon.propTypes = {
700
+ className: PropTypes.string,
701
+ };
702
+
703
+ ExpandLessIcon.defaultProps = {
704
+ className: '',
705
+ };
package/package.json CHANGED
@@ -1,87 +1,72 @@
1
1
  {
2
2
  "name": "qpp-style",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Shared style guide across the QPP program.",
5
5
  "main": "dist/index.js",
6
+ "homepage": "https://cmsgov.github.io/qpp-style",
6
7
  "scripts": {
7
8
  "prepublishOnly": "npm run build",
8
- "build": "npm run clean && webpack-cli --progress --colors --env.production=true && npm run build-react",
9
- "dev": "npm run clean && webpack-cli --progress --colors --watch --env.production=false",
9
+ "build": "npm run clean && webpack-cli --progress --env production=true && npm run build-react",
10
+ "dev": "npm run clean && webpack-cli --progress --watch --env production=false",
10
11
  "clean": "rimraf build && rimraf dist",
11
12
  "build-react": "webpack --progress --config webpack.config.react.js",
12
13
  "start": "npm run build",
13
14
  "test": "jest",
15
+ "prepare": "cd .. && husky install react/.husky",
14
16
  "precommit": "npm run format && npm run lint && npm run format-styles",
15
17
  "prepush": "npm test",
16
18
  "format": "prettier --write 'components/**/*.(js|jsx)'",
17
19
  "lint": "eslint 'components/**/*.{js,jsx}'",
18
20
  "stylelint": "stylelint 'styles/**/*.{css,scss}'",
19
- "format-styles": "prettier 'styles/**/*.{css,scss}' --write --quiet",
20
- "storybook": "start-storybook -p 6007",
21
- "build-storybook": "build-storybook -c .storybook -o .sb-dist"
21
+ "format-styles": "prettier 'styles/**/*.{css,scss}' --write --quiet"
22
22
  },
23
23
  "devDependencies": {
24
- "@babel/cli": "^7.12.10",
25
- "@babel/core": "^7.12.10",
26
- "@babel/preset-env": "^7.12.11",
27
- "@babel/preset-react": "^7.12.10",
28
- "@babel/register": "^7.12.10",
29
- "@storybook/addon-a11y": "^6.1.14",
30
- "@storybook/addon-actions": "^6.1.14",
31
- "@storybook/addon-backgrounds": "^6.1.14",
32
- "@storybook/addon-docs": "^6.1.14",
33
- "@storybook/addon-knobs": "^6.1.14",
34
- "@storybook/addon-links": "^6.1.14",
35
- "@storybook/addon-storysource": "^6.1.14",
36
- "@storybook/addon-viewport": "^6.1.14",
37
- "@storybook/addons": "^6.1.14",
38
- "@storybook/react": "^6.1.14",
39
- "@testing-library/react": "^11.2.3",
40
- "autoprefixer": "^10.2.1",
41
- "babel-eslint": "^10.1.0",
42
- "babel-jest": "^26.6.3",
43
- "babel-loader": "^8.2.2",
24
+ "@babel/cli": "^7.20.7",
25
+ "@babel/core": "^7.20.12",
26
+ "@babel/eslint-parser": "^7.19.1",
27
+ "@babel/preset-env": "^7.20.2",
28
+ "@babel/preset-react": "^7.18.6",
29
+ "@babel/register": "^7.18.9",
30
+ "@svgr/webpack": "^6.5.1",
31
+ "@testing-library/react": "^14.0.0",
32
+ "autoprefixer": "^10.4.13",
33
+ "babel-jest": "^29.4.1",
34
+ "babel-loader": "^9.1.2",
44
35
  "babel-plugin-transform-class-properties": "^6.24.1",
45
36
  "babel-plugin-transform-es2015-modules-umd": "^6.24.1",
46
- "chai": "^4.2.0",
47
- "copy-webpack-plugin": "^5.1.2",
48
- "css-loader": "^3.6.0",
49
- "enzyme": "^3.11.0",
50
- "enzyme-adapter-react-16": "^1.15.5",
51
- "enzyme-to-json": "^3.6.1",
52
- "eslint": "^6.8.0",
53
- "eslint-config-prettier": "^6.15.0",
54
- "eslint-loader": "^3.0.3",
37
+ "chai": "^4.3.7",
38
+ "copy-webpack-plugin": "^11.0.0",
39
+ "css-loader": "^6.7.3",
40
+ "eslint": "^8.33.0",
41
+ "eslint-config-prettier": "^8.6.0",
55
42
  "eslint-plugin-babel": "^5.3.1",
56
- "eslint-plugin-prettier": "^3.3.1",
57
- "eslint-plugin-react": "^7.22.0",
58
- "feather-icons-react": "^0.4.1",
59
- "file-loader": "^6.2.0",
60
- "husky": "^4.3.8",
61
- "jest": "^26.6.3",
62
- "jsonwebtoken": "^8.5.1",
63
- "mini-css-extract-plugin": "^0.11.3",
43
+ "eslint-plugin-prettier": "^4.2.1",
44
+ "eslint-plugin-react": "^7.32.2",
45
+ "eslint-webpack-plugin": "^3.2.0",
46
+ "feather-icons-react": "^0.6.2",
47
+ "gh-pages": "^5.0.0",
48
+ "husky": "^8.0.3",
49
+ "jest": "^29.4.1",
50
+ "jest-environment-jsdom": "^29.4.1",
51
+ "jsonwebtoken": "^9.0.0",
52
+ "mini-css-extract-plugin": "^2.7.2",
64
53
  "moxios": "^0.4.0",
65
- "node-fetch": "^2.6.1",
66
- "node-sass": "^4.14.1",
67
- "postcss": "^8.2.4",
68
- "prettier": "^2.2.1",
69
- "raw-loader": "^4.0.2",
70
- "react": "^16.14.0",
71
- "react-dom": "^16.14.0",
72
- "react-svg-inline": "^2.1.1",
73
- "react-test-renderer": "^16.14.0",
74
- "regenerator-runtime": "^0.13.7",
75
- "rimraf": "^3.0.2",
76
- "sass": "^1.32.4",
77
- "sass-loader": "^10.1.1",
78
- "sinon": "^9.2.3",
79
- "style-loader": "^1.3.0",
80
- "svgo": "^1.3.2",
81
- "svgo-loader": "^2.2.1",
82
- "terser-webpack-plugin": "^4.2.3",
83
- "webpack": "^4.46.0",
84
- "webpack-cli": "^3.3.12"
54
+ "preact": "^10.11.3",
55
+ "prettier": "^2.8.3",
56
+ "react": "^18.2.0",
57
+ "react-dom": "^18.2.0",
58
+ "react-test-renderer": "^18.2.0",
59
+ "regenerator-runtime": "^0.13.11",
60
+ "rimraf": "^4.1.2",
61
+ "sass": "^1.58.0",
62
+ "sass-loader": "^13.1.0",
63
+ "sinon": "^15.0.1",
64
+ "style-loader": "^3.3.1",
65
+ "svgo": "^3.0.2",
66
+ "svgo-loader": "^4.0.0",
67
+ "terser-webpack-plugin": "^5.3.5",
68
+ "webpack": "^5.75.0",
69
+ "webpack-cli": "^5.0.1"
85
70
  },
86
71
  "repository": {
87
72
  "type": "git",
@@ -100,21 +85,18 @@
100
85
  "bugs": {
101
86
  "url": "https://github.com/CMSgov/qpp-style/issues"
102
87
  },
103
- "homepage": "https://github.com/CMSgov/qpp-style#readme",
104
88
  "dependencies": {
105
- "@cmsgov/design-system-core": "^3.7.2",
106
- "@reach/portal": "^0.9.0",
107
- "@reach/tooltip": "^0.9.1",
108
- "axios": "^0.21.1",
109
- "cookie": "^0.4.1",
110
- "d3-selection": "^1.4.2",
111
- "d3-shape": "^1.3.7",
112
- "jwt-decode": "^2.2.0",
113
- "preact": "^10.5.10",
114
- "prop-types": "^15.7.2",
115
- "react-modal": "^3.12.1",
116
- "retry": "^0.12.0",
117
- "what-input": "^5.2.10",
118
- "xss": "^1.0.8"
89
+ "@material-design-icons/svg": "^0.14.2",
90
+ "ariakit": "^2.0.0-next.43",
91
+ "axios": "^1.3.3",
92
+ "cookie": "^0.5.0",
93
+ "d3-selection": "^3.0.0",
94
+ "d3-shape": "^3.2.0",
95
+ "jwt-decode": "^3.1.2",
96
+ "prop-types": "^15.8.1",
97
+ "react-modal": "^3.14.4",
98
+ "retry": "^0.13.1",
99
+ "what-input": "^5.2.12",
100
+ "xss": "^1.0.14"
119
101
  }
120
102
  }
package/session/logout.js CHANGED
@@ -1,6 +1,37 @@
1
1
  import cookie from 'cookie';
2
2
  import axios from 'axios';
3
3
 
4
+ export const deleteImpersonatedUser = (cookies) => {
5
+ if (cookies.hasOwnProperty('qpp_impersonated_user')) {
6
+ document.cookie =
7
+ 'qpp_impersonated_user=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
8
+ }
9
+
10
+ if (cookies.hasOwnProperty('qpp_impersonated_type')) {
11
+ document.cookie =
12
+ 'qpp_impersonated_type=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
13
+ }
14
+ };
15
+
16
+ export const revertApmPaymentCookie = () => {
17
+ const userHasApmPayments = localStorage.getItem('user_has_apm_payments');
18
+
19
+ if (userHasApmPayments) {
20
+ document.cookie = `user_has_apm_payments=${userHasApmPayments}; Path=/;`;
21
+ }
22
+ };
23
+
24
+ export const revertQppHasAuthsCookie = () => {
25
+ const { qppHasAuthorizations, behindSSL } = JSON.parse(
26
+ localStorage.getItem('impersonatorAuthValues')
27
+ );
28
+ if (qppHasAuthorizations) {
29
+ document.cookie = `qpp_has_authorizations=${qppHasAuthorizations};path=/${
30
+ behindSSL ? ';secure' : ''
31
+ }`;
32
+ }
33
+ };
34
+
4
35
  /**
5
36
  * Makes an API request to end the user session.
6
37
  * @param {Object} [_window] The DOM Window
@@ -11,13 +42,15 @@ const LogoutSession = (_window) => {
11
42
  let logoutDestination = '/logout-confirmation';
12
43
 
13
44
  if (cookies.hasOwnProperty('qpp_auth_token')) {
14
- let onSuccess = (/*response*/) => {
45
+ let onSuccess = () => {
15
46
  // redirect to login/logged out screen
47
+ deleteImpersonatedUser(cookies);
16
48
  _window.location.pathname = logoutDestination;
17
49
  };
18
50
 
19
- let onError = (/*response*/) => {
51
+ let onError = () => {
20
52
  // delete cookie and redirect login/logged out screen
53
+ deleteImpersonatedUser(cookies);
21
54
  _window.location.pathname = logoutDestination;
22
55
  };
23
56