@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.
Files changed (348) hide show
  1. package/.storybook/main.js +3 -0
  2. package/components/Accordion/Accordion.stories.js +11 -11
  3. package/components/Accordion/index.jsx +78 -76
  4. package/components/Alert/Alert.stories.js +60 -51
  5. package/components/Alert/index.js +46 -37
  6. package/components/Breadcrumb/Breadcrumb.stories.js +62 -62
  7. package/components/Breadcrumb/index.js +80 -71
  8. package/components/Button/Button.stories.js +92 -86
  9. package/components/Button/index.js +65 -65
  10. package/components/CalloutBox/CalloutBox.stories.js +75 -75
  11. package/components/CalloutBox/index.js +92 -92
  12. package/components/Card/Card.stories.js +135 -135
  13. package/components/Card/index.js +128 -121
  14. package/components/Dropdown/Dropdown.stories.js +73 -73
  15. package/components/Dropdown/index.js +72 -72
  16. package/components/Error/Collapsible.jsx +75 -70
  17. package/components/Error/ErrorUI.jsx +22 -22
  18. package/components/Error/error.js +20 -20
  19. package/components/FlashNotification/FlashNotificationUI.jsx +77 -77
  20. package/components/FlashNotification/index.js +23 -23
  21. package/components/Footer/Footer.stories.js +13 -13
  22. package/components/Footer/FooterUI.jsx +264 -252
  23. package/components/Footer/LegacyFooterUI.jsx +190 -180
  24. package/components/Footer/SocialLinks.jsx +58 -55
  25. package/components/Footer/Subscribe.jsx +29 -29
  26. package/components/Footer/footer.js +21 -21
  27. package/components/FormControlLabel/index.jsx +23 -0
  28. package/components/Header/Header.stories.js +29 -26
  29. package/components/Header/HeaderAccountMenu.jsx +163 -149
  30. package/components/Header/HeaderCancel.jsx +8 -8
  31. package/components/Header/HeaderContainer.jsx +48 -43
  32. package/components/Header/HeaderLogo.jsx +34 -34
  33. package/components/Header/HeaderMenuButton.js +39 -39
  34. package/components/Header/HeaderMenuItem.jsx +252 -205
  35. package/components/Header/HeaderMenuLink.js +37 -37
  36. package/components/Header/HeaderMenuSignOutButton.js +50 -50
  37. package/components/Header/HeaderMobileButton.js +29 -29
  38. package/components/Header/HeaderUI.jsx +164 -147
  39. package/components/Header/HelpIcon.jsx +15 -15
  40. package/components/Header/ImpersonatorBanner.jsx +50 -47
  41. package/components/Header/NavigationButtonIcon.jsx +21 -21
  42. package/components/Header/header.js +36 -34
  43. package/components/Header/hooks.js +42 -35
  44. package/components/Header/utag-helpers.js +8 -8
  45. package/components/Infotip/Infotip.jsx +48 -48
  46. package/components/Infotip/Infotip.stories.js +32 -30
  47. package/components/Infotip/InfotipIcon.jsx +30 -30
  48. package/components/Infotip/index.js +1 -1
  49. package/components/InputLabel/index.jsx +58 -0
  50. package/components/Link/Link.stories.js +65 -64
  51. package/components/Link/index.js +46 -46
  52. package/components/Modal/LegacyModal.jsx +56 -54
  53. package/components/Modal/Modal.jsx +121 -121
  54. package/components/Modal/Modal.stories.js +152 -144
  55. package/components/Modal/index.jsx +11 -11
  56. package/components/NotificationBanner/NotificationBanner.stories.js +16 -16
  57. package/components/NotificationBanner/index.js +239 -225
  58. package/components/Pagination/index.jsx +171 -160
  59. package/components/SanitizedContent/index.jsx +183 -183
  60. package/components/Search/Search.stories.js +14 -14
  61. package/components/Search/index.js +72 -72
  62. package/components/Select/Select.stories.js +168 -0
  63. package/components/Select/index.jsx +103 -0
  64. package/components/SessionDialog/sessionDialog.js +20 -20
  65. package/components/SessionDialogUI.jsx +231 -219
  66. package/components/SideNav/AnimationGroup/AnimationGroup.jsx +19 -17
  67. package/components/SideNav/Chart/ScoreChart.jsx +238 -229
  68. package/components/SideNav/Chart/__tests__/ScoreChart.test.js +15 -15
  69. package/components/SideNav/Chart/index.js +1 -1
  70. package/components/SideNav/Content/LevelOneContent.jsx +194 -190
  71. package/components/SideNav/Content/LevelTwoContent.jsx +208 -195
  72. package/components/SideNav/Content/index.js +2 -2
  73. package/components/SideNav/Details/IndividualDetails.jsx +10 -10
  74. package/components/SideNav/Details/PracticeDetails.jsx +36 -34
  75. package/components/SideNav/Details/index.js +2 -2
  76. package/components/SideNav/Links/CmsSwitchLink.jsx +32 -32
  77. package/components/SideNav/Links/NavItemInline.jsx +44 -44
  78. package/components/SideNav/Links/NavLinkContainer.jsx +27 -25
  79. package/components/SideNav/Links/NavLinkDrawer.jsx +267 -231
  80. package/components/SideNav/Links/NavLinkInline.jsx +94 -92
  81. package/components/SideNav/Links/NavLinkToggle.jsx +25 -25
  82. package/components/SideNav/Links/index.js +10 -10
  83. package/components/SideNav/SideNav.stories.js +320 -288
  84. package/components/SideNav/UI/SideNavUI.jsx +321 -301
  85. package/components/SideNav/UI/index.js +1 -1
  86. package/components/SideNav/helpers.js +33 -33
  87. package/components/SideNav/index.js +46 -46
  88. package/components/Spinner/index.js +6 -6
  89. package/components/Tabs/Tab.js +19 -19
  90. package/components/Tabs/TabPanel.js +31 -24
  91. package/components/Tabs/Tabs.stories.js +118 -108
  92. package/components/Tabs/index.js +81 -76
  93. package/components/TextField/TextField.stories.js +103 -0
  94. package/components/TextField/index.jsx +80 -0
  95. package/components/TextInput/TextInput.stories.js +84 -84
  96. package/components/TextInput/index.js +123 -123
  97. package/components/Tooltip/Tooltip.jsx +57 -57
  98. package/components/Tooltip/Tooltip.stories.js +50 -50
  99. package/components/Tooltip/index.js +1 -1
  100. package/components/Tooltip/position.js +42 -34
  101. package/components/UnwrappedSpinner/index.js +5 -5
  102. package/components/hooks/useGetConfig.js +64 -55
  103. package/components/index.js +129 -121
  104. package/coverage/clover.xml +368 -331
  105. package/coverage/coverage-final.json +57 -54
  106. package/coverage/lcov-report/InputLabel/index.html +116 -0
  107. package/coverage/lcov-report/InputLabel/index.jsx.html +214 -0
  108. package/coverage/lcov-report/Select/index.html +116 -0
  109. package/coverage/lcov-report/Select/index.jsx.html +391 -0
  110. package/coverage/lcov-report/Textfield/index.html +116 -0
  111. package/coverage/lcov-report/Textfield/index.jsx.html +322 -0
  112. package/coverage/lcov-report/index.html +54 -9
  113. package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
  114. package/coverage/lcov-report/react/components/Accordion/index.jsx.html +84 -78
  115. package/coverage/lcov-report/react/components/Button/index.html +1 -1
  116. package/coverage/lcov-report/react/components/Button/index.js.html +66 -66
  117. package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +87 -72
  118. package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +23 -23
  119. package/coverage/lcov-report/react/components/Error/error.js.html +21 -21
  120. package/coverage/lcov-report/react/components/Error/index.html +1 -1
  121. package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +290 -254
  122. package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +212 -182
  123. package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +66 -57
  124. package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +30 -30
  125. package/coverage/lcov-report/react/components/Footer/footer.js.html +22 -22
  126. package/coverage/lcov-report/react/components/Footer/index.html +1 -1
  127. package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +193 -151
  128. package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +9 -9
  129. package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +60 -45
  130. package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +36 -36
  131. package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +40 -40
  132. package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +348 -207
  133. package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +38 -38
  134. package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +51 -51
  135. package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +30 -30
  136. package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +201 -150
  137. package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +16 -16
  138. package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +58 -49
  139. package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +22 -22
  140. package/coverage/lcov-report/react/components/Header/header.js.html +42 -36
  141. package/coverage/lcov-report/react/components/Header/hooks.js.html +58 -37
  142. package/coverage/lcov-report/react/components/Header/index.html +1 -1
  143. package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +9 -9
  144. package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +49 -49
  145. package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +31 -31
  146. package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
  147. package/coverage/lcov-report/react/components/Infotip/index.js.html +2 -2
  148. package/coverage/lcov-report/react/components/InputLabel/index.html +116 -0
  149. package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +214 -0
  150. package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +62 -56
  151. package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +122 -122
  152. package/coverage/lcov-report/react/components/Modal/index.html +1 -1
  153. package/coverage/lcov-report/react/components/Modal/index.jsx.html +12 -12
  154. package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
  155. package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +269 -227
  156. package/coverage/lcov-report/react/components/Pagination/index.html +1 -1
  157. package/coverage/lcov-report/react/components/Pagination/index.jsx.html +195 -162
  158. package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
  159. package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +184 -184
  160. package/coverage/lcov-report/react/components/Select/index.html +116 -0
  161. package/coverage/lcov-report/react/components/Select/index.jsx.html +391 -0
  162. package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
  163. package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +21 -21
  164. package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +257 -221
  165. package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +25 -19
  166. package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
  167. package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +261 -234
  168. package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
  169. package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +2 -2
  170. package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +197 -185
  171. package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +236 -197
  172. package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
  173. package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +3 -3
  174. package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +11 -11
  175. package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +42 -36
  176. package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
  177. package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +3 -3
  178. package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +33 -33
  179. package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +45 -45
  180. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +33 -27
  181. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +323 -215
  182. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +100 -94
  183. package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +26 -26
  184. package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
  185. package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +11 -11
  186. package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +363 -303
  187. package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
  188. package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +2 -2
  189. package/coverage/lcov-report/react/components/SideNav/helpers.js.html +34 -34
  190. package/coverage/lcov-report/react/components/SideNav/index.html +1 -1
  191. package/coverage/lcov-report/react/components/SideNav/index.js.html +47 -47
  192. package/coverage/lcov-report/react/components/Textfield/index.html +116 -0
  193. package/coverage/lcov-report/react/components/Textfield/index.jsx.html +322 -0
  194. package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +58 -58
  195. package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
  196. package/coverage/lcov-report/react/components/Tooltip/index.js.html +2 -2
  197. package/coverage/lcov-report/react/components/Tooltip/position.js.html +60 -36
  198. package/coverage/lcov-report/react/components/hooks/index.html +1 -1
  199. package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +84 -57
  200. package/coverage/lcov-report/react/components/index.html +1 -1
  201. package/coverage/lcov-report/react/index.html +1 -1
  202. package/coverage/lcov-report/react/index.js.html +1 -1
  203. package/coverage/lcov-report/react/lib/Chevron.jsx.html +1 -1
  204. package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1 -1
  205. package/coverage/lcov-report/react/lib/index.html +1 -1
  206. package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
  207. package/coverage/lcov-report/react/session/index.html +1 -1
  208. package/coverage/lcov-report/react/session/index.js.html +1 -1
  209. package/coverage/lcov-report/react/session/logout.js.html +1 -1
  210. package/coverage/lcov-report/react/session/refresh.js.html +1 -1
  211. package/coverage/lcov-report/react/session/ttl.js.html +1 -1
  212. package/coverage/lcov.info +855 -779
  213. package/dist/browser.js +1 -1
  214. package/dist/index.js +1 -1
  215. package/dist/react/index.js +16 -16
  216. package/dist/react/index.js.LICENSE.txt +1 -1
  217. package/dist/react/index.js.map +1 -1
  218. package/package.json +16 -9
  219. package/styles/qppds/components/_button.scss +29 -1
  220. package/test/components/Accordion.test.js +10 -10
  221. package/test/components/ErrorUI.test.js +29 -30
  222. package/test/components/FooterUI.test.js +82 -80
  223. package/test/components/HeaderUI.test.js +42 -38
  224. package/test/components/Infotip.test.js +64 -61
  225. package/test/components/Pagination.test.js +50 -50
  226. package/test/components/Select.test.js +113 -0
  227. package/test/components/SessionDialogUI.test.js +302 -294
  228. package/test/components/SideNavUI.test.js +19 -19
  229. package/test/components/TextField.test.js +50 -0
  230. package/test/components/Tooltip.test.js +133 -133
  231. package/test/index.test.js +6 -6
  232. package/test/session/session.test.js +200 -200
  233. package/storybook-static/0.5651be4a8d0b1984a772.manager.bundle.js +0 -2
  234. package/storybook-static/0.5651be4a8d0b1984a772.manager.bundle.js.LICENSE.txt +0 -8
  235. package/storybook-static/0.ce0ed568.iframe.bundle.js +0 -1
  236. package/storybook-static/1.1b179d27.iframe.bundle.js +0 -3
  237. package/storybook-static/1.1b179d27.iframe.bundle.js.LICENSE.txt +0 -8
  238. package/storybook-static/1.1b179d27.iframe.bundle.js.map +0 -1
  239. package/storybook-static/1.c46d7d065aa0aa5a87ca.manager.bundle.js +0 -1
  240. package/storybook-static/10.99011d85.iframe.bundle.js +0 -3
  241. package/storybook-static/10.99011d85.iframe.bundle.js.LICENSE.txt +0 -11
  242. package/storybook-static/10.99011d85.iframe.bundle.js.map +0 -1
  243. package/storybook-static/2.35ddc55d.iframe.bundle.js +0 -1
  244. package/storybook-static/3.ed97833d.iframe.bundle.js +0 -1
  245. package/storybook-static/5.333e450fad8648669908.manager.bundle.js +0 -1
  246. package/storybook-static/6.505ea3c696ed314e90c8.manager.bundle.js +0 -2
  247. package/storybook-static/6.505ea3c696ed314e90c8.manager.bundle.js.LICENSE.txt +0 -12
  248. package/storybook-static/7.94be8178.iframe.bundle.js +0 -1
  249. package/storybook-static/7.d26483fcb6f4087398a8.manager.bundle.js +0 -1
  250. package/storybook-static/8.68cd1217.iframe.bundle.js +0 -3
  251. package/storybook-static/8.68cd1217.iframe.bundle.js.LICENSE.txt +0 -12
  252. package/storybook-static/8.68cd1217.iframe.bundle.js.map +0 -1
  253. package/storybook-static/8.7adf0ef161215cd35a66.manager.bundle.js +0 -1
  254. package/storybook-static/9.488e3969.iframe.bundle.js +0 -1
  255. package/storybook-static/fonts/FontAwesome.otf +0 -0
  256. package/storybook-static/fonts/OFL.txt +0 -92
  257. package/storybook-static/fonts/Rubik-Black.ttf +0 -0
  258. package/storybook-static/fonts/Rubik-BlackItalic.ttf +0 -0
  259. package/storybook-static/fonts/Rubik-Bold.ttf +0 -0
  260. package/storybook-static/fonts/Rubik-BoldItalic.ttf +0 -0
  261. package/storybook-static/fonts/Rubik-Italic.ttf +0 -0
  262. package/storybook-static/fonts/Rubik-Light.ttf +0 -0
  263. package/storybook-static/fonts/Rubik-LightItalic.ttf +0 -0
  264. package/storybook-static/fonts/Rubik-Medium.ttf +0 -0
  265. package/storybook-static/fonts/Rubik-MediumItalic.ttf +0 -0
  266. package/storybook-static/fonts/Rubik-Regular.ttf +0 -0
  267. package/storybook-static/fonts/fontawesome-webfont.eot +0 -0
  268. package/storybook-static/fonts/fontawesome-webfont.svg +0 -2671
  269. package/storybook-static/fonts/fontawesome-webfont.ttf +0 -0
  270. package/storybook-static/fonts/fontawesome-webfont.woff +0 -0
  271. package/storybook-static/fonts/fontawesome-webfont.woff2 +0 -0
  272. package/storybook-static/iframe.html +0 -348
  273. package/storybook-static/images/favicon/android-chrome-192x192.png +0 -0
  274. package/storybook-static/images/favicon/android-chrome-256x256.png +0 -0
  275. package/storybook-static/images/favicon/apple-touch-icon.png +0 -0
  276. package/storybook-static/images/favicon/browserconfig.xml +0 -9
  277. package/storybook-static/images/favicon/favicon-16x16.png +0 -0
  278. package/storybook-static/images/favicon/favicon-32x32.png +0 -0
  279. package/storybook-static/images/favicon/favicon.ico +0 -0
  280. package/storybook-static/images/favicon/manifest.json +0 -18
  281. package/storybook-static/images/favicon/mstile-150x150.png +0 -0
  282. package/storybook-static/images/favicon/safari-pinned-tab.svg +0 -32
  283. package/storybook-static/images/hhs-logo-black.svg +0 -10
  284. package/storybook-static/images/hhs-logo-white.svg +0 -10
  285. package/storybook-static/images/icons/close-x.svg +0 -6
  286. package/storybook-static/images/icons/help-headset.svg +0 -21
  287. package/storybook-static/images/icons/svg/arrow-down.svg +0 -1
  288. package/storybook-static/images/icons/svg/arrow-download.svg +0 -1
  289. package/storybook-static/images/icons/svg/arrow-right.svg +0 -1
  290. package/storybook-static/images/icons/svg/calendar.svg +0 -1
  291. package/storybook-static/images/icons/svg/close.svg +0 -1
  292. package/storybook-static/images/icons/svg/download.svg +0 -1
  293. package/storybook-static/images/icons/svg/external.svg +0 -1
  294. package/storybook-static/images/icons/svg/file-upload.svg +0 -1
  295. package/storybook-static/images/icons/svg/print.svg +0 -1
  296. package/storybook-static/images/icons/svg/search.svg +0 -7
  297. package/storybook-static/images/icons/svg/tooltip-question.svg +0 -6
  298. package/storybook-static/images/icons/svg/trash.svg +0 -1
  299. package/storybook-static/images/icons/svg/upload.svg +0 -1
  300. package/storybook-static/images/qpp_logo_reversed.png +0 -0
  301. package/storybook-static/images/qpp_logo_rgb_color.png +0 -0
  302. package/storybook-static/index.html +0 -59
  303. package/storybook-static/main.5ae8041695a4f0c06f75.manager.bundle.js +0 -1
  304. package/storybook-static/main.ee2cae16.iframe.bundle.js +0 -1
  305. package/storybook-static/runtime~main.7eeb017b9a4ce6a70a00.manager.bundle.js +0 -1
  306. package/storybook-static/runtime~main.e2794f2d.iframe.bundle.js +0 -1
  307. package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
  308. package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
  309. package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
  310. package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
  311. package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
  312. package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
  313. package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
  314. package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
  315. package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
  316. package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
  317. package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
  318. package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
  319. package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
  320. package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
  321. package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
  322. package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
  323. package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
  324. package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
  325. package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
  326. package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
  327. package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
  328. package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
  329. package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
  330. package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
  331. package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
  332. package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
  333. package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
  334. package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
  335. package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
  336. package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
  337. package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
  338. package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
  339. package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
  340. package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
  341. package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
  342. package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
  343. package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
  344. package/storybook-static/vendors~main.c7e1bdf2e91d9cdba380.manager.bundle.js +0 -2
  345. package/storybook-static/vendors~main.c7e1bdf2e91d9cdba380.manager.bundle.js.LICENSE.txt +0 -104
  346. package/storybook-static/vendors~main.f299a23f.iframe.bundle.js +0 -76
  347. package/storybook-static/vendors~main.f299a23f.iframe.bundle.js.LICENSE.txt +0 -145
  348. package/storybook-static/vendors~main.f299a23f.iframe.bundle.js.map +0 -1
@@ -324,7 +324,19 @@
324
324
  <a name='L259'></a><a href='#L259'>259</a>
325
325
  <a name='L260'></a><a href='#L260'>260</a>
326
326
  <a name='L261'></a><a href='#L261'>261</a>
327
- <a name='L262'></a><a href='#L262'>262</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
327
+ <a name='L262'></a><a href='#L262'>262</a>
328
+ <a name='L263'></a><a href='#L263'>263</a>
329
+ <a name='L264'></a><a href='#L264'>264</a>
330
+ <a name='L265'></a><a href='#L265'>265</a>
331
+ <a name='L266'></a><a href='#L266'>266</a>
332
+ <a name='L267'></a><a href='#L267'>267</a>
333
+ <a name='L268'></a><a href='#L268'>268</a>
334
+ <a name='L269'></a><a href='#L269'>269</a>
335
+ <a name='L270'></a><a href='#L270'>270</a>
336
+ <a name='L271'></a><a href='#L271'>271</a>
337
+ <a name='L272'></a><a href='#L272'>272</a>
338
+ <a name='L273'></a><a href='#L273'>273</a>
339
+ <a name='L274'></a><a href='#L274'>274</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
328
340
  <span class="cline-any cline-neutral">&nbsp;</span>
329
341
  <span class="cline-any cline-neutral">&nbsp;</span>
330
342
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -383,6 +395,9 @@
383
395
  <span class="cline-any cline-neutral">&nbsp;</span>
384
396
  <span class="cline-any cline-neutral">&nbsp;</span>
385
397
  <span class="cline-any cline-neutral">&nbsp;</span>
398
+ <span class="cline-any cline-neutral">&nbsp;</span>
399
+ <span class="cline-any cline-neutral">&nbsp;</span>
400
+ <span class="cline-any cline-neutral">&nbsp;</span>
386
401
  <span class="cline-any cline-yes">1x</span>
387
402
  <span class="cline-any cline-yes">1x</span>
388
403
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -407,6 +422,9 @@
407
422
  <span class="cline-any cline-yes">78x</span>
408
423
  <span class="cline-any cline-neutral">&nbsp;</span>
409
424
  <span class="cline-any cline-yes">78x</span>
425
+ <span class="cline-any cline-neutral">&nbsp;</span>
426
+ <span class="cline-any cline-neutral">&nbsp;</span>
427
+ <span class="cline-any cline-neutral">&nbsp;</span>
410
428
  <span class="cline-any cline-yes">76x</span>
411
429
  <span class="cline-any cline-neutral">&nbsp;</span>
412
430
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -425,6 +443,9 @@
425
443
  <span class="cline-any cline-no">&nbsp;</span>
426
444
  <span class="cline-any cline-neutral">&nbsp;</span>
427
445
  <span class="cline-any cline-no">&nbsp;</span>
446
+ <span class="cline-any cline-neutral">&nbsp;</span>
447
+ <span class="cline-any cline-neutral">&nbsp;</span>
448
+ <span class="cline-any cline-neutral">&nbsp;</span>
428
449
  <span class="cline-any cline-no">&nbsp;</span>
429
450
  <span class="cline-any cline-neutral">&nbsp;</span>
430
451
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -456,6 +477,9 @@
456
477
  <span class="cline-any cline-neutral">&nbsp;</span>
457
478
  <span class="cline-any cline-yes">5x</span>
458
479
  <span class="cline-any cline-neutral">&nbsp;</span>
480
+ <span class="cline-any cline-neutral">&nbsp;</span>
481
+ <span class="cline-any cline-neutral">&nbsp;</span>
482
+ <span class="cline-any cline-neutral">&nbsp;</span>
459
483
  <span class="cline-any cline-yes">5x</span>
460
484
  <span class="cline-any cline-neutral">&nbsp;</span>
461
485
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -585,266 +609,278 @@
585
609
  <span class="cline-any cline-neutral">&nbsp;</span>
586
610
  <span class="cline-any cline-neutral">&nbsp;</span>
587
611
  <span class="cline-any cline-neutral">&nbsp;</span>
588
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React, { Component } from 'react';
589
- import PropTypes from 'prop-types';
590
- import cookie from 'cookie';
591
- import retry from 'retry';
592
- import jwtDecode from 'jwt-decode';
612
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React, { Component } from "react";
613
+ import PropTypes from "prop-types";
614
+ import cookie from "cookie";
615
+ import retry from "retry";
616
+ import jwtDecode from "jwt-decode";
593
617
  &nbsp;
594
- import Modal from './Modal';
595
- import RefreshSession from '../session/refresh';
596
- import LogoutSession from '../session/logout';
597
- import fetchTtl from '../session/ttl';
618
+ import Modal from "./Modal";
619
+ import RefreshSession from "../session/refresh";
620
+ import LogoutSession from "../session/logout";
621
+ import fetchTtl from "../session/ttl";
598
622
  &nbsp;
599
623
  const fetchTtlIntervalMs = 60000;
600
624
  &nbsp;
601
625
  export default class SessionDialogUI extends Component {
602
- /**
603
- * Create a SessionDialogUI component.
604
- * @param {object} props - Configuration options. See SessionDialog for more
605
- */
606
- constructor(props) {
607
- super(props);
626
+ /**
627
+ * Create a SessionDialogUI component.
628
+ * @param {object} props - Configuration options. See SessionDialog for more
629
+ */
630
+ constructor(props) {
631
+ super(props);
608
632
  &nbsp;
609
- this.handleOpenModal = this.handleOpenModal.bind(this);
610
- this.handleCloseModal = this.handleCloseModal.bind(this);
611
- this.refreshSession = this.refreshSession.bind(this);
612
- this.signOut = this.signOut.bind(this);
613
- this.startTimer = this.startTimer.bind(this);
614
- this.shouldShowDialog = this.shouldShowDialog.bind(this);
615
- this.shouldSignOut = this.shouldSignOut.bind(this);
616
- this.minutesUntil = this.minutesUntil.bind(this);
617
- this.checkExpiry = this.checkExpiry.bind(this);
618
- this.onInterval = this.onInterval.bind(this);
633
+ this.handleOpenModal = this.handleOpenModal.bind(this);
634
+ this.handleCloseModal = this.handleCloseModal.bind(this);
635
+ this.refreshSession = this.refreshSession.bind(this);
636
+ this.signOut = this.signOut.bind(this);
637
+ this.startTimer = this.startTimer.bind(this);
638
+ this.shouldShowDialog = this.shouldShowDialog.bind(this);
639
+ this.shouldSignOut = this.shouldSignOut.bind(this);
640
+ this.minutesUntil = this.minutesUntil.bind(this);
641
+ this.checkExpiry = this.checkExpiry.bind(this);
642
+ this.onInterval = this.onInterval.bind(this);
619
643
  &nbsp;
620
- if (props.showImmediate === true) {
621
- this.state = {
622
- showModal: true,
623
- showError: false,
624
- };
625
- } else {
626
- this.state = {
627
- showModal: false,
628
- showError: false,
629
- };
644
+ if (props.showImmediate === true) {
645
+ this.state = {
646
+ showModal: true,
647
+ showError: false,
648
+ };
649
+ } else {
650
+ this.state = {
651
+ showModal: false,
652
+ showError: false,
653
+ };
630
654
  &nbsp;
631
- this.startTimer();
655
+ this.startTimer();
656
+ }
632
657
  }
633
- }
634
658
  &nbsp;
635
- /**
636
- * Extracts the token exp value as a JavaScript date.
637
- * @param {Object} cookies - An object representation of the cookie store
638
- * @returns {(date|null)} The token expiration date, if found
639
- */
640
- getTokenExpiry(cookies) {
641
- let expiry = null;
659
+ /**
660
+ * Extracts the token exp value as a JavaScript date.
661
+ * @param {Object} cookies - An object representation of the cookie store
662
+ * @returns {(date|null)} The token expiration date, if found
663
+ */
664
+ getTokenExpiry(cookies) {
665
+ let expiry = null;
642
666
  &nbsp;
643
- if (cookies.hasOwnProperty('qpp_auth_token') &amp;&amp; cookies.qpp_auth_token) {
644
- // See https://tools.ietf.org/html/rfc7519
645
- // `exp` is a NumericDate representing "seconds since the epoch"
646
- // and it needs to be milliseconds to get a JavaScript date from it.
647
- const { exp } = jwtDecode(cookies.qpp_auth_token);
648
- expiry = new Date(exp * 1000);
649
- }
667
+ if (
668
+ cookies.hasOwnProperty("qpp_auth_token") &amp;&amp;
669
+ cookies.qpp_auth_token
670
+ ) {
671
+ // See https://tools.ietf.org/html/rfc7519
672
+ // `exp` is a NumericDate representing "seconds since the epoch"
673
+ // and it needs to be milliseconds to get a JavaScript date from it.
674
+ const { exp } = jwtDecode(cookies.qpp_auth_token);
675
+ expiry = new Date(exp * 1000);
676
+ }
650
677
  &nbsp;
651
- return expiry;
652
- }
678
+ return expiry;
679
+ }
653
680
  &nbsp;
654
- <span class="fstat-no" title="function not covered" > ch</span>eckExpiry(expiry) {
655
- <span class="cstat-no" title="statement not covered" > if (expiry) {</span>
656
- <span class="cstat-no" title="statement not covered" > if (this.shouldShowDialog(expiry)) {</span>
657
- <span class="cstat-no" title="statement not covered" > this.handleOpenModal();</span>
658
- } else <span class="cstat-no" title="statement not covered" >if (this.shouldSignOut(expiry)) {</span>
659
- <span class="cstat-no" title="statement not covered" > this.signOut();</span>
660
- <span class="cstat-no" title="statement not covered" > clearInterval(this.warningInterval);</span>
661
- }
662
- } else {
663
- <span class="cstat-no" title="statement not covered" > clearInterval(this.warningInterval);</span>
681
+ <span class="fstat-no" title="function not covered" > ch</span>eckExpiry(expiry) {
682
+ <span class="cstat-no" title="statement not covered" > if (expiry) {</span>
683
+ <span class="cstat-no" title="statement not covered" > if (this.shouldShowDialog(expiry)) {</span>
684
+ <span class="cstat-no" title="statement not covered" > this.handleOpenModal();</span>
685
+ } else <span class="cstat-no" title="statement not covered" >if (this.shouldSignOut(expiry)) {</span>
686
+ <span class="cstat-no" title="statement not covered" > this.signOut();</span>
687
+ <span class="cstat-no" title="statement not covered" > clearInterval(this.warningInterval);</span>
688
+ }
689
+ } else {
690
+ <span class="cstat-no" title="statement not covered" > clearInterval(this.warningInterval);</span>
691
+ }
664
692
  }
665
- }
666
693
  &nbsp;
667
- onInterval() {
668
- const cookies = cookie.parse(document.cookie);
694
+ onInterval() {
695
+ const cookies = cookie.parse(document.cookie);
669
696
  &nbsp;
670
- if (cookies.hasOwnProperty('qpp_auth_token') &amp;&amp; cookies.qpp_auth_token) {
671
- const operation = retry.operation({
672
- retries: 5,
673
- factor: 1,
674
- minTimeout: 1000,
675
- maxTimeout: 1000,
676
- });
697
+ if (
698
+ cookies.hasOwnProperty("qpp_auth_token") &amp;&amp;
699
+ cookies.qpp_auth_token
700
+ ) {
701
+ const operation = retry.operation({
702
+ retries: 5,
703
+ factor: 1,
704
+ minTimeout: 1000,
705
+ maxTimeout: 1000,
706
+ });
677
707
  &nbsp;
678
- operation.attempt(() =&gt; {
679
- fetchTtl(cookies.qpp_auth_token)
680
- .then(this.checkExpiry)
681
- .catch(<span class="fstat-no" title="function not covered" >(e</span>rror) =&gt; {
682
- <span class="cstat-no" title="statement not covered" > if (operation.retry(error)) {</span>
683
- // try again before giving up
684
- <span class="cstat-no" title="statement not covered" > return;</span>
685
- }
686
- <span class="cstat-no" title="statement not covered" > clearInterval(this.warningInterval);</span>
687
- // sign an inactive user out
688
- <span class="cstat-no" title="statement not covered" > this.forceTimeoutHandle = setTimeout(this.signOut, 120 * 1000);</span>
689
- <span class="cstat-no" title="statement not covered" > this.setState({</span>
690
- showModal: false,
691
- showError: true,
708
+ operation.attempt(() =&gt; {
709
+ fetchTtl(cookies.qpp_auth_token)
710
+ .then(this.checkExpiry)
711
+ .catch(<span class="fstat-no" title="function not covered" >(e</span>rror) =&gt; {
712
+ <span class="cstat-no" title="statement not covered" > if (operation.retry(error)) {</span>
713
+ // try again before giving up
714
+ <span class="cstat-no" title="statement not covered" > return;</span>
715
+ }
716
+ <span class="cstat-no" title="statement not covered" > clearInterval(this.warningInterval);</span>
717
+ // sign an inactive user out
718
+ <span class="cstat-no" title="statement not covered" > this.forceTimeoutHandle = setTimeout(</span>
719
+ this.signOut,
720
+ 120 * 1000
721
+ );
722
+ <span class="cstat-no" title="statement not covered" > this.setState({</span>
723
+ showModal: false,
724
+ showError: true,
725
+ });
726
+ });
692
727
  });
693
- });
694
- });
728
+ }
695
729
  }
696
- }
697
730
  &nbsp;
698
- /**
699
- * Checks whether the user is within a specified number of minutes before
700
- * their session token expires. If so, show a warning dialog. If the
701
- * expiration has been reached, sign the user out.
702
- */
703
- startTimer() {
704
- clearInterval(this.warningInterval);
731
+ /**
732
+ * Checks whether the user is within a specified number of minutes before
733
+ * their session token expires. If so, show a warning dialog. If the
734
+ * expiration has been reached, sign the user out.
735
+ */
736
+ startTimer() {
737
+ clearInterval(this.warningInterval);
705
738
  &nbsp;
706
- this.warningInterval = setInterval(this.onInterval, fetchTtlIntervalMs);
707
- }
739
+ this.warningInterval = setInterval(this.onInterval, fetchTtlIntervalMs);
740
+ }
708
741
  &nbsp;
709
- /**
710
- * Returns whether the current time is within the timeout range of expiry.
711
- * @param {date|number} expiry - Expiration date to check against
712
- * @returns {boolean}
713
- */
714
- shouldShowDialog(expiry) {
715
- if (typeof expiry === 'number') {
716
- const minutesLeft = expiry / 60;
742
+ /**
743
+ * Returns whether the current time is within the timeout range of expiry.
744
+ * @param {date|number} expiry - Expiration date to check against
745
+ * @returns {boolean}
746
+ */
747
+ shouldShowDialog(expiry) {
748
+ if (typeof expiry === "number") {
749
+ const minutesLeft = expiry / 60;
717
750
  &nbsp;
718
- return !this.state.showModal &amp;&amp; minutesLeft &lt;= this.props.warningTimeout;
719
- } else {
720
- return (
721
- !this.state.showModal &amp;&amp;
722
- this.minutesUntil(expiry) &lt;= this.props.warningTimeout
723
- );
751
+ return (
752
+ !this.state.showModal &amp;&amp;
753
+ minutesLeft &lt;= this.props.warningTimeout
754
+ );
755
+ } else {
756
+ return (
757
+ !this.state.showModal &amp;&amp;
758
+ this.minutesUntil(expiry) &lt;= this.props.warningTimeout
759
+ );
760
+ }
724
761
  }
725
- }
726
762
  &nbsp;
727
- /**
728
- * Returns whether the current time has reached the expiration date.
729
- * @param {date|number} expiry - Expiration date to check against
730
- * @returns {boolean}
731
- */
732
- shouldSignOut(expiry) {
733
- if (typeof expiry === 'number') {
734
- return expiry &lt;= 1;
735
- } else {
736
- return this.minutesUntil(expiry) &lt;= 0;
763
+ /**
764
+ * Returns whether the current time has reached the expiration date.
765
+ * @param {date|number} expiry - Expiration date to check against
766
+ * @returns {boolean}
767
+ */
768
+ shouldSignOut(expiry) {
769
+ if (typeof expiry === "number") {
770
+ return expiry &lt;= 1;
771
+ } else {
772
+ return this.minutesUntil(expiry) &lt;= 0;
773
+ }
737
774
  }
738
- }
739
775
  &nbsp;
740
- /**
741
- * Returns number of minutes until the expiration date.
742
- * @param {date} expiry - Expiration date to check against
743
- * @returns {number}
744
- */
745
- minutesUntil(expiry) {
746
- return (expiry - new Date().getTime()) / 60000;
747
- }
776
+ /**
777
+ * Returns number of minutes until the expiration date.
778
+ * @param {date} expiry - Expiration date to check against
779
+ * @returns {number}
780
+ */
781
+ minutesUntil(expiry) {
782
+ return (expiry - new Date().getTime()) / 60000;
783
+ }
748
784
  &nbsp;
749
- /**
750
- * Sets the modal state to visible.
751
- */
752
- handleOpenModal() {
753
- this.setState({
754
- showModal: true,
755
- showError: false,
756
- });
757
- }
785
+ /**
786
+ * Sets the modal state to visible.
787
+ */
788
+ handleOpenModal() {
789
+ this.setState({
790
+ showModal: true,
791
+ showError: false,
792
+ });
793
+ }
758
794
  &nbsp;
759
- /**
760
- * Sets the modal state to hidden.
761
- */
762
- handleCloseModal() {
763
- this.setState({
764
- showModal: false,
765
- showError: false,
766
- });
767
- }
795
+ /**
796
+ * Sets the modal state to hidden.
797
+ */
798
+ handleCloseModal() {
799
+ this.setState({
800
+ showModal: false,
801
+ showError: false,
802
+ });
803
+ }
768
804
  &nbsp;
769
- /**
770
- * Handles the user requesting their session be extended.
771
- */
772
- refreshSession() {
773
- RefreshSession({
774
- window,
775
- onSuccess: () =&gt; {
776
- this.startTimer();
777
- },
778
- });
805
+ /**
806
+ * Handles the user requesting their session be extended.
807
+ */
808
+ refreshSession() {
809
+ RefreshSession({
810
+ window,
811
+ onSuccess: () =&gt; {
812
+ this.startTimer();
813
+ },
814
+ });
779
815
  &nbsp;
780
- this.handleCloseModal();
781
- }
816
+ this.handleCloseModal();
817
+ }
782
818
  &nbsp;
783
- /**
784
- * Handles the user requesting their session be ended.
785
- */
786
- signOut() {
787
- <span class="missing-if-branch" title="if path not taken" >I</span>if (this.forceTimeoutHandle) {
788
- <span class="cstat-no" title="statement not covered" > clearTimeout(this.forceTimeoutHandle);</span>
819
+ /**
820
+ * Handles the user requesting their session be ended.
821
+ */
822
+ signOut() {
823
+ <span class="missing-if-branch" title="if path not taken" >I</span>if (this.forceTimeoutHandle) {
824
+ <span class="cstat-no" title="statement not covered" > clearTimeout(this.forceTimeoutHandle);</span>
825
+ }
826
+ LogoutSession(window);
827
+ this.handleCloseModal();
789
828
  }
790
- LogoutSession(window);
791
- this.handleCloseModal();
792
- }
793
829
  &nbsp;
794
- render() {
795
- return (
796
- &lt;React.Fragment&gt;
797
- &lt;Modal
798
- useDesignSystem
799
- title="You will be signed out within two minutes"
800
- isOpen={this.state.showModal}
801
- primary={{
802
- title: 'Keep me signed in',
803
- onClick: this.refreshSession,
804
- }}
805
- secondary={{
806
- title: 'Sign me out now',
807
- onClick: this.signOut,
808
- }}
809
- onRequestClose={this.handleCloseModal}
810
- &gt;
811
- &lt;p&gt;
812
- You have been inactive for thirty minutes. For your security, we
813
- will sign you out automatically.
814
- &lt;/p&gt;
815
- &lt;/Modal&gt;
830
+ render() {
831
+ return (
832
+ &lt;React.Fragment&gt;
833
+ &lt;Modal
834
+ useDesignSystem
835
+ title="You will be signed out within two minutes"
836
+ isOpen={this.state.showModal}
837
+ primary={{
838
+ title: "Keep me signed in",
839
+ onClick: this.refreshSession,
840
+ }}
841
+ secondary={{
842
+ title: "Sign me out now",
843
+ onClick: this.signOut,
844
+ }}
845
+ onRequestClose={this.handleCloseModal}
846
+ &gt;
847
+ &lt;p&gt;
848
+ You have been inactive for thirty minutes. For your
849
+ security, we will sign you out automatically.
850
+ &lt;/p&gt;
851
+ &lt;/Modal&gt;
816
852
  &nbsp;
817
- &lt;Modal
818
- useDesignSystem
819
- title="Technical Difficulties"
820
- isOpen={this.state.showError}
821
- primary={{
822
- title: 'Sign Out',
823
- onClick: this.signOut,
824
- }}
825
- onRequestClose={this.signOut}
826
- &gt;
827
- &lt;p&gt;
828
- We’re experiencing technical difficulties. Please log in again to
829
- continue. For your security, we will sign you out automatically
830
- within two minutes.
831
- &lt;/p&gt;
832
- &lt;/Modal&gt;
833
- &lt;/React.Fragment&gt;
834
- );
835
- }
853
+ &lt;Modal
854
+ useDesignSystem
855
+ title="Technical Difficulties"
856
+ isOpen={this.state.showError}
857
+ primary={{
858
+ title: "Sign Out",
859
+ onClick: this.signOut,
860
+ }}
861
+ onRequestClose={this.signOut}
862
+ &gt;
863
+ &lt;p&gt;
864
+ We’re experiencing technical difficulties. Please log in
865
+ again to continue. For your security, we will sign you
866
+ out automatically within two minutes.
867
+ &lt;/p&gt;
868
+ &lt;/Modal&gt;
869
+ &lt;/React.Fragment&gt;
870
+ );
871
+ }
836
872
  }
837
873
  &nbsp;
838
874
  SessionDialogUI.propTypes = {
839
- showImmediate: PropTypes.bool,
840
- warningTimeout: PropTypes.number,
841
- appElement: PropTypes.string,
875
+ showImmediate: PropTypes.bool,
876
+ warningTimeout: PropTypes.number,
877
+ appElement: PropTypes.string,
842
878
  };
843
879
  &nbsp;
844
880
  SessionDialogUI.defaultProps = {
845
- showImmediate: false,
846
- warningTimeout: 2,
847
- appElement: undefined,
881
+ showImmediate: false,
882
+ warningTimeout: 2,
883
+ appElement: undefined,
848
884
  };
849
885
  &nbsp;</pre></td></tr></table></pre>
850
886
 
@@ -853,7 +889,7 @@ SessionDialogUI.defaultProps = {
853
889
  <div class='footer quiet pad2 space-top1 center small'>
854
890
  Code coverage generated by
855
891
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
856
- at Mon Mar 14 2022 14:52:06 GMT-0700 (Pacific Daylight Time)
892
+ at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
857
893
  </div>
858
894
  <script src="../../prettify.js"></script>
859
895
  <script>
@@ -90,7 +90,9 @@
90
90
  <a name='L25'></a><a href='#L25'>25</a>
91
91
  <a name='L26'></a><a href='#L26'>26</a>
92
92
  <a name='L27'></a><a href='#L27'>27</a>
93
- <a name='L28'></a><a href='#L28'>28</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
93
+ <a name='L28'></a><a href='#L28'>28</a>
94
+ <a name='L29'></a><a href='#L29'>29</a>
95
+ <a name='L30'></a><a href='#L30'>30</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
94
96
  <span class="cline-any cline-neutral">&nbsp;</span>
95
97
  <span class="cline-any cline-neutral">&nbsp;</span>
96
98
  <span class="cline-any cline-yes">2x</span>
@@ -109,6 +111,8 @@
109
111
  <span class="cline-any cline-neutral">&nbsp;</span>
110
112
  <span class="cline-any cline-neutral">&nbsp;</span>
111
113
  <span class="cline-any cline-neutral">&nbsp;</span>
114
+ <span class="cline-any cline-neutral">&nbsp;</span>
115
+ <span class="cline-any cline-neutral">&nbsp;</span>
112
116
  <span class="cline-any cline-yes">2x</span>
113
117
  <span class="cline-any cline-neutral">&nbsp;</span>
114
118
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -117,30 +121,32 @@
117
121
  <span class="cline-any cline-neutral">&nbsp;</span>
118
122
  <span class="cline-any cline-neutral">&nbsp;</span>
119
123
  <span class="cline-any cline-neutral">&nbsp;</span>
120
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
121
- import PropTypes from 'prop-types';
124
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
125
+ import PropTypes from "prop-types";
122
126
  &nbsp;
123
127
  const hasDarkerBackground = (darkerBackground) =&gt; {
124
- return darkerBackground ? <span class="branch-0 cbranch-no" title="branch not covered" >'background-highlight' </span>: '';
125
- }
128
+ return darkerBackground ? <span class="branch-0 cbranch-no" title="branch not covered" >"background-highlight" </span>: "";
129
+ };
126
130
  &nbsp;
127
131
  const AnimationGroup = ({ display, className, children, darkerBackground }) =&gt; {
128
- return (
129
- &lt;div
130
- className={`animation-group animation-group-${className || 'default'}${
131
- display ? ' animation-group-enter' : <span class="branch-1 cbranch-no" title="branch not covered" >' animation-group-exit'</span>
132
- } ${hasDarkerBackground(darkerBackground)}`}
133
- &gt;
134
- {children}
135
- &lt;/div&gt;
136
- );
132
+ return (
133
+ &lt;div
134
+ className={`animation-group animation-group-${
135
+ className || "default"
136
+ }${
137
+ display ? " animation-group-enter" : <span class="branch-1 cbranch-no" title="branch not covered" >" animation-group-exit"</span>
138
+ } ${hasDarkerBackground(darkerBackground)}`}
139
+ &gt;
140
+ {children}
141
+ &lt;/div&gt;
142
+ );
137
143
  };
138
144
  &nbsp;
139
145
  AnimationGroup.propTypes = {
140
- children: PropTypes.node,
141
- className: PropTypes.string,
142
- display: PropTypes.bool,
143
- darkerBackground: PropTypes.bool
146
+ children: PropTypes.node,
147
+ className: PropTypes.string,
148
+ display: PropTypes.bool,
149
+ darkerBackground: PropTypes.bool,
144
150
  };
145
151
  &nbsp;
146
152
  export default AnimationGroup;
@@ -151,7 +157,7 @@ export default AnimationGroup;
151
157
  <div class='footer quiet pad2 space-top1 center small'>
152
158
  Code coverage generated by
153
159
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
154
- at Mon Mar 14 2022 14:52:06 GMT-0700 (Pacific Daylight Time)
160
+ at Thu Mar 24 2022 11:31:04 GMT-0700 (Pacific Daylight Time)
155
161
  </div>
156
162
  <script src="../../../../prettify.js"></script>
157
163
  <script>