@elliemae/pui-app-sdk 2.16.1 → 3.0.0-beta.1

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 (356) hide show
  1. package/dist/cjs/analytics/appdynamics.js +34 -30
  2. package/dist/cjs/analytics/index.js +32 -26
  3. package/dist/cjs/analytics/page-view-event.js +33 -29
  4. package/dist/cjs/analytics/user-session-event.js +34 -27
  5. package/dist/cjs/analytics/user-wait-event.js +31 -17
  6. package/dist/cjs/analytics/web-analytics.js +16 -19
  7. package/dist/cjs/api/auth/index.js +41 -39
  8. package/dist/cjs/api/helpers.js +33 -99
  9. package/dist/cjs/api/users/index.js +28 -16
  10. package/dist/cjs/communication/http-client/index.js +44 -48
  11. package/dist/cjs/communication/http-client/request-interceptor.js +28 -12
  12. package/dist/cjs/communication/http-client/response-interceptor.js +41 -38
  13. package/dist/cjs/communication/http-client/retry-axios.js +68 -122
  14. package/dist/cjs/communication/http-client/retry.js +42 -36
  15. package/dist/cjs/communication/http-client/tests/index.test-disable.js +48 -56
  16. package/dist/cjs/data/auth/actions.js +17 -26
  17. package/dist/cjs/data/auth/reducer.js +30 -18
  18. package/dist/cjs/data/breakpoint/index.js +38 -32
  19. package/dist/cjs/data/error/index.js +33 -18
  20. package/dist/cjs/data/live-message/index.js +34 -25
  21. package/dist/cjs/data/logout/actions.js +12 -9
  22. package/dist/cjs/data/navigation-prompt/actions.js +12 -9
  23. package/dist/cjs/data/react-redux.js +29 -13
  24. package/dist/cjs/data/reducers.js +35 -23
  25. package/dist/cjs/data/saga.js +12 -9
  26. package/dist/cjs/data/store.js +53 -60
  27. package/dist/cjs/data/wait-message/actions.js +14 -13
  28. package/dist/cjs/data/wait-message/reducer.js +32 -24
  29. package/dist/cjs/index.js +187 -800
  30. package/dist/cjs/route/index.js +37 -32
  31. package/dist/cjs/route/page-view.js +30 -22
  32. package/dist/cjs/route/private-route/index.js +52 -60
  33. package/dist/cjs/sideeffect/auth/index.js +42 -30
  34. package/dist/cjs/sideeffect/error-toast/index.js +39 -26
  35. package/dist/cjs/sideeffect/wait-message/index.js +45 -29
  36. package/dist/cjs/typings/custom.d.js +0 -1
  37. package/dist/cjs/typings/elliemae.d.js +0 -1
  38. package/dist/cjs/typings/styled.d.js +19 -3
  39. package/dist/cjs/utils/app-config/config.js +33 -33
  40. package/dist/cjs/utils/app-config/index.js +42 -44
  41. package/dist/cjs/utils/app-host-integration/react.js +27 -14
  42. package/dist/cjs/utils/auth/helper.js +30 -18
  43. package/dist/cjs/utils/auth/index.js +76 -116
  44. package/dist/cjs/utils/await.js +3 -0
  45. package/dist/cjs/utils/constants.js +22 -21
  46. package/dist/cjs/utils/font-size.js +13 -14
  47. package/dist/cjs/utils/guest-with-service.js +11 -12
  48. package/dist/cjs/utils/helpers.js +15 -19
  49. package/dist/cjs/utils/history.js +29 -12
  50. package/dist/cjs/utils/log-records.js +38 -35
  51. package/dist/cjs/utils/micro-frontend/console-logger.js +39 -23
  52. package/dist/cjs/utils/micro-frontend/guest.js +80 -128
  53. package/dist/cjs/utils/micro-frontend/host.js +84 -124
  54. package/dist/cjs/utils/micro-frontend/index.js +60 -61
  55. package/dist/cjs/utils/micro-frontend/types.js +3 -5
  56. package/dist/cjs/utils/redact-pii.js +15 -17
  57. package/dist/cjs/utils/service-worker.js +36 -21
  58. package/dist/cjs/utils/session.js +64 -70
  59. package/dist/cjs/utils/storybook/main.js +32 -25
  60. package/dist/cjs/utils/storybook/manager.js +31 -16
  61. package/dist/cjs/utils/storybook/middleware.js +3 -7
  62. package/dist/cjs/utils/storybook/preview.js +57 -48
  63. package/dist/cjs/utils/storybook/theme.js +30 -14
  64. package/dist/cjs/utils/storybook/vite.js +6 -0
  65. package/dist/cjs/utils/storybook/webpack.js +13 -0
  66. package/dist/cjs/utils/testing/index.js +38 -50
  67. package/dist/cjs/utils/testing/render-with-redux.js +34 -27
  68. package/dist/cjs/utils/testing/render-with-router-redux.js +40 -37
  69. package/dist/cjs/utils/testing/render-with-router.js +34 -28
  70. package/dist/cjs/utils/testing/render-with-state-addons.js +40 -36
  71. package/dist/cjs/utils/types.js +3 -0
  72. package/dist/cjs/utils/url.js +12 -13
  73. package/dist/cjs/utils/web-storage.js +40 -30
  74. package/dist/cjs/utils/window.js +36 -28
  75. package/dist/cjs/view/app-root/hosted-app.js +35 -32
  76. package/dist/cjs/view/app-root/index.js +57 -62
  77. package/dist/cjs/view/app-root/stand-alone-app.js +38 -37
  78. package/dist/cjs/view/app-root/style.js +50 -12
  79. package/dist/cjs/view/error-boundary/default-error-template.js +10 -15
  80. package/dist/cjs/view/error-boundary/index.js +41 -43
  81. package/dist/cjs/view/error-toast/index.js +42 -32
  82. package/dist/cjs/view/fetch-host-app-data/index.js +34 -26
  83. package/dist/cjs/view/fetch-host-app-data/store.js +31 -24
  84. package/dist/cjs/view/fields/check-box/index.js +34 -39
  85. package/dist/cjs/view/fields/combo-box/index.js +37 -31
  86. package/dist/cjs/view/fields/connect-form.js +30 -15
  87. package/dist/cjs/view/fields/date-input/index.js +34 -26
  88. package/dist/cjs/view/fields/date-picker/index.js +34 -26
  89. package/dist/cjs/view/fields/form-item-layout/index.js +36 -30
  90. package/dist/cjs/view/fields/input-mask/index.js +35 -41
  91. package/dist/cjs/view/fields/large-text-box/index.js +34 -26
  92. package/dist/cjs/view/fields/radio/index.js +34 -30
  93. package/dist/cjs/view/fields/radio-group/index.js +32 -27
  94. package/dist/cjs/view/fields/text-box/index.js +34 -26
  95. package/dist/cjs/view/fields/watch-value.js +41 -35
  96. package/dist/cjs/view/form/index.js +41 -34
  97. package/dist/cjs/view/form/personal-info-section.js +56 -80
  98. package/dist/cjs/view/form/submit-button/index.js +34 -23
  99. package/dist/cjs/view/guest-unload-handlers/index.js +33 -22
  100. package/dist/cjs/view/header/center-region/index.js +61 -38
  101. package/dist/cjs/view/header/index.js +41 -35
  102. package/dist/cjs/view/header/logo-region/index.js +31 -23
  103. package/dist/cjs/view/header/nav-region/index.js +44 -30
  104. package/dist/cjs/view/header/nav-region/notification/index.js +28 -18
  105. package/dist/cjs/view/header/nav-region/user/index.js +28 -18
  106. package/dist/cjs/view/host-binding-events/index.js +10 -11
  107. package/dist/cjs/view/live-message/index.js +33 -34
  108. package/dist/cjs/view/loadable/index.js +33 -27
  109. package/dist/cjs/view/login/index.js +36 -30
  110. package/dist/cjs/view/media-breakpoint/index.js +43 -34
  111. package/dist/cjs/view/message-to-host-app/index.js +31 -20
  112. package/dist/cjs/view/micro-app/app-factory/index.js +98 -134
  113. package/dist/cjs/view/micro-app/const.js +10 -7
  114. package/dist/cjs/view/micro-app/index.js +37 -27
  115. package/dist/cjs/view/micro-app/resources/manifest.js +41 -34
  116. package/dist/cjs/view/micro-app/resources/script.js +56 -53
  117. package/dist/cjs/view/micro-app/resources/style.js +44 -38
  118. package/dist/cjs/view/micro-app/types.js +3 -5
  119. package/dist/cjs/view/micro-app/use-app-will-render.js +58 -50
  120. package/dist/cjs/view/micro-app/utils.js +32 -21
  121. package/dist/cjs/view/micro-iframe-app/app.js +37 -39
  122. package/dist/cjs/view/micro-iframe-app/iframe/const.js +10 -7
  123. package/dist/cjs/view/micro-iframe-app/iframe/index.js +51 -47
  124. package/dist/cjs/view/micro-iframe-app/index.js +36 -24
  125. package/dist/cjs/view/micro-iframe-app/types.js +3 -5
  126. package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +40 -36
  127. package/dist/cjs/view/modals/error/index.js +35 -28
  128. package/dist/cjs/view/modals/navigation-prompt/index.js +38 -37
  129. package/dist/cjs/view/modals/session-expiry/customHooks.js +40 -35
  130. package/dist/cjs/view/modals/session-expiry/index.js +45 -50
  131. package/dist/cjs/view/modals/wait-message/html-wait-message.js +32 -18
  132. package/dist/cjs/view/modals/wait-message/index.js +50 -53
  133. package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +33 -21
  134. package/dist/cjs/view/render-with-delay/index.js +30 -19
  135. package/dist/cjs/view/render-with-host-data/index.js +35 -30
  136. package/dist/cjs/view/session-timeout/index.js +44 -35
  137. package/dist/cjs/view/storybook/decorator.js +32 -21
  138. package/dist/cjs/view/use-previous.js +29 -13
  139. package/dist/cjs/view/useMediaBreakpoints/index.js +34 -19
  140. package/dist/cjs/view/visually-hidden/index.js +41 -21
  141. package/dist/cjs/view/window-size/index.js +37 -29
  142. package/dist/es/analytics/appdynamics.js +14 -15
  143. package/dist/es/analytics/index.js +11 -17
  144. package/dist/es/analytics/page-view-event.js +11 -20
  145. package/dist/es/analytics/user-session-event.js +13 -15
  146. package/dist/es/analytics/user-wait-event.js +10 -6
  147. package/dist/es/analytics/web-analytics.js +12 -10
  148. package/dist/es/api/auth/index.js +22 -27
  149. package/dist/es/api/helpers.js +8 -81
  150. package/dist/es/api/users/index.js +7 -8
  151. package/dist/es/communication/http-client/index.js +24 -30
  152. package/dist/es/communication/http-client/request-interceptor.js +6 -3
  153. package/dist/es/communication/http-client/response-interceptor.js +20 -21
  154. package/dist/es/communication/http-client/retry-axios.js +45 -105
  155. package/dist/es/communication/http-client/retry.js +22 -25
  156. package/dist/es/communication/http-client/tests/index.test-disable.js +28 -47
  157. package/dist/es/data/auth/actions.js +13 -19
  158. package/dist/es/data/auth/reducer.js +9 -7
  159. package/dist/es/data/breakpoint/index.js +19 -21
  160. package/dist/es/data/error/index.js +11 -9
  161. package/dist/es/data/live-message/index.js +12 -16
  162. package/dist/es/data/logout/actions.js +9 -5
  163. package/dist/es/data/navigation-prompt/actions.js +9 -5
  164. package/dist/es/data/react-redux.js +7 -3
  165. package/dist/es/data/reducers.js +10 -7
  166. package/dist/es/data/saga.js +8 -5
  167. package/dist/es/data/store.js +27 -44
  168. package/dist/es/data/wait-message/actions.js +11 -9
  169. package/dist/es/data/wait-message/reducer.js +10 -10
  170. package/dist/es/index.js +181 -83
  171. package/dist/es/route/index.js +16 -19
  172. package/dist/es/route/page-view.js +9 -9
  173. package/dist/es/route/private-route/index.js +30 -38
  174. package/dist/es/sideeffect/auth/index.js +27 -14
  175. package/dist/es/sideeffect/error-toast/index.js +15 -14
  176. package/dist/es/sideeffect/wait-message/index.js +18 -14
  177. package/dist/es/typings/styled.d.js +1 -1
  178. package/dist/es/utils/app-config/config.js +11 -9
  179. package/dist/es/utils/app-config/index.js +21 -31
  180. package/dist/es/utils/app-host-integration/react.js +8 -6
  181. package/dist/es/utils/auth/helper.js +8 -4
  182. package/dist/es/utils/auth/index.js +59 -83
  183. package/dist/es/utils/constants.js +18 -13
  184. package/dist/es/utils/font-size.js +7 -3
  185. package/dist/es/utils/guest-with-service.js +6 -7
  186. package/dist/es/utils/helpers.js +10 -6
  187. package/dist/es/utils/history.js +7 -3
  188. package/dist/es/utils/log-records.js +34 -31
  189. package/dist/es/utils/micro-frontend/console-logger.js +17 -13
  190. package/dist/es/utils/micro-frontend/guest.js +52 -108
  191. package/dist/es/utils/micro-frontend/host.js +53 -89
  192. package/dist/es/utils/micro-frontend/index.js +39 -37
  193. package/dist/es/utils/micro-frontend/types.js +0 -1
  194. package/dist/es/utils/redact-pii.js +10 -11
  195. package/dist/es/utils/service-worker.js +14 -11
  196. package/dist/es/utils/session.js +47 -48
  197. package/dist/es/utils/storybook/manager.js +8 -5
  198. package/dist/es/utils/storybook/preview.js +30 -26
  199. package/dist/es/utils/storybook/theme.js +9 -6
  200. package/dist/es/utils/testing/index.js +14 -21
  201. package/dist/es/utils/testing/render-with-redux.js +13 -13
  202. package/dist/es/utils/testing/render-with-router-redux.js +19 -21
  203. package/dist/es/utils/testing/render-with-router.js +14 -16
  204. package/dist/es/utils/testing/render-with-state-addons.js +18 -18
  205. package/dist/es/utils/url.js +7 -3
  206. package/dist/es/utils/web-storage.js +21 -17
  207. package/dist/es/utils/window.js +18 -18
  208. package/dist/es/view/app-root/hosted-app.js +13 -17
  209. package/dist/es/view/app-root/index.js +34 -39
  210. package/dist/es/view/app-root/stand-alone-app.js +17 -19
  211. package/dist/es/view/app-root/style.js +30 -5
  212. package/dist/es/view/error-boundary/default-error-template.js +4 -5
  213. package/dist/es/view/error-boundary/index.js +20 -27
  214. package/dist/es/view/error-toast/index.js +21 -16
  215. package/dist/es/view/fetch-host-app-data/index.js +13 -13
  216. package/dist/es/view/fetch-host-app-data/store.js +10 -7
  217. package/dist/es/view/fields/check-box/index.js +16 -18
  218. package/dist/es/view/fields/combo-box/index.js +19 -19
  219. package/dist/es/view/fields/connect-form.js +8 -6
  220. package/dist/es/view/fields/date-input/index.js +16 -14
  221. package/dist/es/view/fields/date-picker/index.js +16 -14
  222. package/dist/es/view/fields/form-item-layout/index.js +15 -16
  223. package/dist/es/view/fields/input-mask/index.js +20 -14
  224. package/dist/es/view/fields/large-text-box/index.js +16 -14
  225. package/dist/es/view/fields/radio/index.js +16 -18
  226. package/dist/es/view/fields/radio-group/index.js +14 -15
  227. package/dist/es/view/fields/text-box/index.js +16 -14
  228. package/dist/es/view/fields/watch-value.js +19 -24
  229. package/dist/es/view/form/index.js +22 -22
  230. package/dist/es/view/form/personal-info-section.js +31 -52
  231. package/dist/es/view/form/submit-button/index.js +12 -10
  232. package/dist/es/view/guest-unload-handlers/index.js +11 -10
  233. package/dist/es/view/header/center-region/index.js +40 -23
  234. package/dist/es/view/header/index.js +19 -19
  235. package/dist/es/view/header/logo-region/index.js +8 -9
  236. package/dist/es/view/header/nav-region/index.js +22 -15
  237. package/dist/es/view/header/nav-region/notification/index.js +5 -6
  238. package/dist/es/view/header/nav-region/user/index.js +5 -6
  239. package/dist/es/view/host-binding-events/index.js +7 -3
  240. package/dist/es/view/live-message/index.js +13 -23
  241. package/dist/es/view/loadable/index.js +12 -15
  242. package/dist/es/view/login/index.js +14 -18
  243. package/dist/es/view/media-breakpoint/index.js +19 -17
  244. package/dist/es/view/message-to-host-app/index.js +11 -10
  245. package/dist/es/view/micro-app/app-factory/index.js +67 -86
  246. package/dist/es/view/micro-app/const.js +4 -1
  247. package/dist/es/view/micro-app/index.js +13 -11
  248. package/dist/es/view/micro-app/resources/manifest.js +19 -19
  249. package/dist/es/view/micro-app/resources/script.js +36 -36
  250. package/dist/es/view/micro-app/resources/style.js +23 -22
  251. package/dist/es/view/micro-app/types.js +0 -1
  252. package/dist/es/view/micro-app/use-app-will-render.js +32 -28
  253. package/dist/es/view/micro-app/utils.js +12 -14
  254. package/dist/es/view/micro-iframe-app/app.js +15 -22
  255. package/dist/es/view/micro-iframe-app/iframe/const.js +4 -1
  256. package/dist/es/view/micro-iframe-app/iframe/index.js +27 -32
  257. package/dist/es/view/micro-iframe-app/index.js +11 -12
  258. package/dist/es/view/micro-iframe-app/types.js +0 -1
  259. package/dist/es/view/micro-iframe-app/use-frame-loaded.js +16 -21
  260. package/dist/es/view/modals/error/index.js +12 -10
  261. package/dist/es/view/modals/navigation-prompt/index.js +12 -16
  262. package/dist/es/view/modals/session-expiry/customHooks.js +13 -15
  263. package/dist/es/view/modals/session-expiry/index.js +16 -24
  264. package/dist/es/view/modals/wait-message/html-wait-message.js +10 -10
  265. package/dist/es/view/modals/wait-message/index.js +31 -39
  266. package/dist/es/view/modals/wait-message/wait-message-launcher.js +9 -8
  267. package/dist/es/view/render-with-delay/index.js +7 -10
  268. package/dist/es/view/render-with-host-data/index.js +11 -15
  269. package/dist/es/view/session-timeout/index.js +21 -12
  270. package/dist/es/view/storybook/decorator.js +9 -7
  271. package/dist/es/view/use-previous.js +6 -3
  272. package/dist/es/view/useMediaBreakpoints/index.js +11 -9
  273. package/dist/es/view/visually-hidden/index.js +19 -10
  274. package/dist/es/view/window-size/index.js +16 -19
  275. package/dist/types/utils/storybook/main.d.cts +41 -0
  276. package/dist/types/utils/storybook/{middleware.d.ts → middleware.d.cts} +0 -0
  277. package/dist/types/utils/storybook/preview.d.ts +2 -2
  278. package/dist/types/utils/storybook/vite.d.cts +4 -0
  279. package/dist/types/utils/storybook/webpack.d.cts +8 -0
  280. package/dist/types/utils/window.d.ts +1 -1
  281. package/dist/types/view/visually-hidden/index.d.ts +1 -3
  282. package/package.json +7 -5
  283. package/dist/cjs/api/users/index.endpoint.js +0 -14
  284. package/dist/cjs/api/users/users.json +0 -8
  285. package/dist/cjs/app.config.json +0 -129
  286. package/dist/cjs/communication/http-client/tests/hello.endpoint.js +0 -14
  287. package/dist/cjs/communication/http-client/tests/private.endpoint.js +0 -14
  288. package/dist/cjs/index.pug +0 -15
  289. package/dist/cjs/view/error-toast/index.stories.js +0 -128
  290. package/dist/cjs/view/fields/check-box/index.stories.js +0 -64
  291. package/dist/cjs/view/fields/check-box/set-value.stories.js +0 -83
  292. package/dist/cjs/view/fields/combo-box/index.stories.js +0 -65
  293. package/dist/cjs/view/fields/date-input/index.stories.js +0 -53
  294. package/dist/cjs/view/fields/date-input/index1.stories.js +0 -53
  295. package/dist/cjs/view/fields/date-picker/index.stories.js +0 -53
  296. package/dist/cjs/view/fields/form-item-layout/index.stories.js +0 -43
  297. package/dist/cjs/view/fields/input-mask/index.stories.js +0 -52
  298. package/dist/cjs/view/fields/large-text-box/index.stories.js +0 -47
  299. package/dist/cjs/view/fields/radio/index.stories.js +0 -60
  300. package/dist/cjs/view/fields/radio/set-value.stories.js +0 -81
  301. package/dist/cjs/view/fields/radio-group/index.stories.js +0 -85
  302. package/dist/cjs/view/fields/text-box/index.stories.js +0 -48
  303. package/dist/cjs/view/form/index.stories.js +0 -71
  304. package/dist/cjs/view/form/usecases.stories.js +0 -59
  305. package/dist/cjs/view/header/index.stories.js +0 -24
  306. package/dist/cjs/view/header/logo-region/logo.svg +0 -2
  307. package/dist/cjs/view/header/nav-region/notification/index.svg +0 -5
  308. package/dist/cjs/view/header/nav-region/user/index.svg +0 -4
  309. package/dist/cjs/view/intro.stories.mdx +0 -27
  310. package/dist/cjs/view/live-message/index.stories.js +0 -53
  311. package/dist/cjs/view/media-breakpoint/index.stories.js +0 -24
  312. package/dist/cjs/view/micro-iframe-app/iframe/index.html +0 -74
  313. package/dist/cjs/view/modals/error/index.stories.js +0 -36
  314. package/dist/cjs/view/modals/navigation-prompt/index.stories.js +0 -32
  315. package/dist/cjs/view/modals/session-expiry/index.stories.js +0 -30
  316. package/dist/cjs/view/modals/wait-message/index.stories.js +0 -47
  317. package/dist/cjs/view/session-timeout/index.stories.js +0 -28
  318. package/dist/es/api/users/index.endpoint.js +0 -14
  319. package/dist/es/api/users/users.json +0 -8
  320. package/dist/es/app.config.json +0 -129
  321. package/dist/es/communication/http-client/tests/hello.endpoint.js +0 -14
  322. package/dist/es/communication/http-client/tests/private.endpoint.js +0 -14
  323. package/dist/es/index.pug +0 -15
  324. package/dist/es/utils/storybook/main.js +0 -38
  325. package/dist/es/utils/storybook/middleware.js +0 -9
  326. package/dist/es/view/error-toast/index.stories.js +0 -108
  327. package/dist/es/view/fields/check-box/index.stories.js +0 -47
  328. package/dist/es/view/fields/check-box/set-value.stories.js +0 -65
  329. package/dist/es/view/fields/combo-box/index.stories.js +0 -48
  330. package/dist/es/view/fields/date-input/index.stories.js +0 -35
  331. package/dist/es/view/fields/date-input/index1.stories.js +0 -35
  332. package/dist/es/view/fields/date-picker/index.stories.js +0 -35
  333. package/dist/es/view/fields/form-item-layout/index.stories.js +0 -27
  334. package/dist/es/view/fields/input-mask/index.stories.js +0 -35
  335. package/dist/es/view/fields/large-text-box/index.stories.js +0 -30
  336. package/dist/es/view/fields/radio/index.stories.js +0 -43
  337. package/dist/es/view/fields/radio/set-value.stories.js +0 -63
  338. package/dist/es/view/fields/radio-group/index.stories.js +0 -68
  339. package/dist/es/view/fields/text-box/index.stories.js +0 -31
  340. package/dist/es/view/form/index.stories.js +0 -56
  341. package/dist/es/view/form/usecases.stories.js +0 -43
  342. package/dist/es/view/header/index.stories.js +0 -14
  343. package/dist/es/view/header/logo-region/logo.svg +0 -2
  344. package/dist/es/view/header/nav-region/notification/index.svg +0 -5
  345. package/dist/es/view/header/nav-region/user/index.svg +0 -4
  346. package/dist/es/view/intro.stories.mdx +0 -27
  347. package/dist/es/view/live-message/index.stories.js +0 -32
  348. package/dist/es/view/media-breakpoint/index.stories.js +0 -10
  349. package/dist/es/view/micro-iframe-app/iframe/index.html +0 -74
  350. package/dist/es/view/modals/error/index.stories.js +0 -21
  351. package/dist/es/view/modals/navigation-prompt/index.stories.js +0 -18
  352. package/dist/es/view/modals/session-expiry/index.stories.js +0 -18
  353. package/dist/es/view/modals/wait-message/index.stories.js +0 -33
  354. package/dist/es/view/session-timeout/index.stories.js +0 -13
  355. package/dist/types/utils/storybook/main.d.ts +0 -30
  356. package/dist/types/view/fields/date-input/index1.stories.d.ts +0 -24
@@ -1,56 +0,0 @@
1
- import _jsx from "@babel/runtime/helpers/jsx";
2
- import _styled2 from "styled-components";
3
- import _styled from "styled-components";
4
-
5
- var _h, _FirstName, _DOB, _State, _MaritalStatus, _WatchDashBoard;
6
-
7
- import styled from 'styled-components';
8
- import { useFormContext } from 'react-hook-form';
9
- import { FormSubmitButton } from "./submit-button/index.js";
10
- import { Form } from "./index.js";
11
- import { FirstName, DOB, State, MaritalStatus } from "./personal-info-section.js";
12
- import { jsx as _jsx2 } from "react/jsx-runtime";
13
- const btnProps = {
14
- containerProps: {
15
- id: 'submit'
16
- },
17
- labelText: 'Submit Application',
18
- size: 'l'
19
- };
20
- export default {
21
- title: 'Components/Form',
22
- component: Form
23
- };
24
- const StyledButton = /*#__PURE__*/styled(FormSubmitButton).withConfig({
25
- componentId: "sc-1mzmcta-0"
26
- })(["margin-top:", ";"], ({
27
- theme
28
- }) => theme.space.xs);
29
-
30
- const WatchDashBoard = () => {
31
- const {
32
- watch
33
- } = useFormContext();
34
- const watchFirstName = watch('firstname', '');
35
- const watchDOB = watch('dob', '');
36
- const watchState = watch('state', '');
37
- const watchMaritalStatus = watch('marital_status', '');
38
- return /*#__PURE__*/_jsx(_StyledSection, {}, void 0, _h || (_h = /*#__PURE__*/_jsx("h4", {}, void 0, "Form Data:")), /*#__PURE__*/_jsx(_StyledDiv, {}, void 0, /*#__PURE__*/_jsx("div", {}, void 0, "FirstName : ", /*#__PURE__*/_jsx("strong", {}, void 0, watchFirstName)), /*#__PURE__*/_jsx("div", {}, void 0, "DOB : ", /*#__PURE__*/_jsx("strong", {}, void 0, JSON.stringify(watchDOB))), /*#__PURE__*/_jsx("div", {}, void 0, "State : ", /*#__PURE__*/_jsx("strong", {}, void 0, watchState)), /*#__PURE__*/_jsx("div", {}, void 0, "Marital Status : ", /*#__PURE__*/_jsx("strong", {}, void 0, watchMaritalStatus))));
39
- }; // eslint-disable-next-line no-unused-vars
40
-
41
-
42
- const Template = () => /*#__PURE__*/_jsx(Form, {
43
- onSubmit: data => {}
44
- }, void 0, _FirstName || (_FirstName = /*#__PURE__*/_jsx(FirstName, {})), _DOB || (_DOB = /*#__PURE__*/_jsx(DOB, {})), _State || (_State = /*#__PURE__*/_jsx(State, {})), _MaritalStatus || (_MaritalStatus = /*#__PURE__*/_jsx(MaritalStatus, {})), /*#__PURE__*/_jsx2(StyledButton, { ...btnProps
45
- }), _WatchDashBoard || (_WatchDashBoard = /*#__PURE__*/_jsx(WatchDashBoard, {})));
46
-
47
- export const WatchFormControls = Template.bind({});
48
- WatchFormControls.args = {};
49
-
50
- var _StyledSection = /*#__PURE__*/styled("section").withConfig({
51
- componentId: "sc-1mzmcta-1"
52
- })(["margin-top:10px;border-top:2px blue dotted;width:100%;"]);
53
-
54
- var _StyledDiv = /*#__PURE__*/styled("div").withConfig({
55
- componentId: "sc-1mzmcta-2"
56
- })(["display:flex;flex-direction:column;padding-left:10px;align-items:flex-start;"]);
@@ -1,43 +0,0 @@
1
- import _jsx from "@babel/runtime/helpers/jsx";
2
-
3
- var _FirstName, _DOB, _State, _MaritalStatus;
4
-
5
- import styled from 'styled-components';
6
- import { FormSubmitButton } from "./submit-button/index.js";
7
- import { Form } from "./index.js";
8
- import { FirstName, DOB, State, MaritalStatus } from "./personal-info-section.js";
9
- import { jsx as _jsx2 } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
- const btnProps = {
12
- containerProps: {
13
- id: 'submit'
14
- },
15
- labelText: 'Submit Application',
16
- size: 'l'
17
- };
18
- export default {
19
- title: 'Components/Form',
20
- component: FormSubmitButton
21
- };
22
- const StyledButton = /*#__PURE__*/styled(FormSubmitButton).withConfig({
23
- componentId: "sc-1wwguuk-0"
24
- })(["margin-top:", ";"], ({
25
- theme
26
- }) => theme.space.xs);
27
-
28
- const Template = args => /*#__PURE__*/_jsxs(Form, { ...args,
29
- children: [_FirstName || (_FirstName = /*#__PURE__*/_jsx(FirstName, {})), _DOB || (_DOB = /*#__PURE__*/_jsx(DOB, {})), _State || (_State = /*#__PURE__*/_jsx(State, {})), _MaritalStatus || (_MaritalStatus = /*#__PURE__*/_jsx(MaritalStatus, {})), /*#__PURE__*/_jsx2(StyledButton, { ...btnProps
30
- })]
31
- });
32
-
33
- export const FormValidationOnBlur = Template.bind({});
34
- FormValidationOnBlur.args = {
35
- onSubmit: data => {}
36
- };
37
- export const FormValidationOnSubmit = Template.bind({});
38
- FormValidationOnSubmit.args = {
39
- onSubmit: data => {},
40
- reactHookFormProps: {
41
- mode: 'onSubmit'
42
- }
43
- };
@@ -1,14 +0,0 @@
1
- import { Header } from "./index.js";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
-
4
- const Template = args => /*#__PURE__*/_jsx(Header, { ...args
5
- });
6
-
7
- export default {
8
- title: 'Components/Header',
9
- component: Header
10
- };
11
- export const Basic = Template.bind({});
12
- Basic.args = {
13
- show: true
14
- };
@@ -1,2 +0,0 @@
1
-
2
- <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" width="195" height="28" viewBox="0 0 195 28"><style>.st0{fill:#dee3e0}.st1{fill:#fff}.st2{fill:#408a90}.st3{fill:#00acdc}.st4{fill:#f7911e}.st5{fill:#0067ab}.st6{fill:#fefefe}</style><g id="Page-1_2_"><g id="brand-assets" transform="translate(-107 -187)"><g id="logo-enc-em-inline-dark" transform="translate(107 187)"><g id="Group-3"><g id="Group" transform="translate(143 14)"><path id="Fill-27" class="st0" d="M1.8 1.9c-.6 0-.9.6-.9 1.1s.3 1.1.9 1.1c.6 0 .8-.7.8-1.1.1-.5-.2-1.1-.8-1.1zM.4.1h.5v1.8c.2-.3.5-.5 1-.5.9 0 1.3.7 1.3 1.5s-.4 1.6-1.3 1.6c-.5 0-.9-.3-1-.5v.4H.4V.1z"/><path id="Fill-29" class="st0" d="M3.7 5.3H4c.5 0 .7-.7.7-.7 0-.1-.1-.2-.1-.3l-1-2.8h.6L5 4l.8-2.5h.6l-1.1 3c-.2.6-.4 1.2-1.1 1.2h-.4l-.1-.4z"/><path id="Fill-31" class="st0" d="M50.5 1.8h.2c.1 0 .2 0 .2-.2 0-.1-.1-.2-.2-.2h-.2v.4zm-.2-.5h.4c.3 0 .4.1.4.3 0 .2-.1.3-.3.3l.3.5h-.2l-.3-.5h-.2v.5h-.2V1.3h.1zm.3 1.4c.5 0 .8-.4.8-.8 0-.5-.3-.8-.8-.8s-.8.4-.8.8.4.8.8.8zm0-1.8c.5 0 1 .4 1 1 0 .5-.4 1-1 1s-1-.4-1-1c.1-.6.5-1 1-1z"/><path id="Fill-33" class="st0" d="M8.8.1h4.8v1.1H10v2.5h3.2v1H10v2.9h3.6v1H8.8z"/><path id="Fill-35" class="st0" d="M14.6 8.6h1.1V0h-1.1z"/><path id="Fill-37" class="st0" d="M17 8.6h1.1V0H17z"/><path id="Fill-38" class="st0" d="M19.4 8.6h1.2V2.3h-1.2v6.3zm-.1-7.2h1.2V0h-1.2v1.4z"/><path id="Fill-39" class="st0" d="M25.7 4.9c0-1-.6-1.7-1.6-1.7-1.1 0-1.6.9-1.7 1.7h3.3zm.7 3.5c-.4.2-.9.4-2 .4-2.2 0-3.2-1.3-3.2-3.4 0-1.9 1.2-3.2 2.9-3.2 2.1 0 2.8 1.5 2.8 3.5h-4.5c0 1.2 1 2.1 2.1 2.1.8 0 1.6-.4 1.9-.6v1.2z"/><path id="Fill-40" class="st0" d="M27.9.1H30l2.6 7.1L35.3.1h2v8.5h-1.2V1.2l-2.9 7.4H32l-2.8-7.4v7.4h-1.3z"/><path id="Fill-41" class="st0" d="M48.2 4.9c0-1-.6-1.7-1.6-1.7-1.1 0-1.6.9-1.7 1.7h3.3zm.8 3.5c-.4.2-.9.4-2 .4-2.2 0-3.2-1.3-3.2-3.4 0-1.9 1.2-3.2 2.9-3.2 2.1 0 2.8 1.5 2.8 3.5H45c0 1.2 1 2.1 2.1 2.1.8 0 1.6-.4 1.9-.6v1.2z"/><path id="Fill-42" class="st0" d="M42.2 5.6h-.7c-.6 0-2.2.1-2.2 1.2 0 .7.6 1 1.2 1 1.1 0 1.7-.7 1.7-1.6v-.6zm-3-1.5l-.9-.2c.3-1.4 1.6-1.7 2.4-1.7 1.8 0 2.5.9 2.5 2.6v2.6c0 .7 0 1 .1 1.2h-1.2v-.8c-.3.4-.9 1-1.9 1-1.3 0-2.3-.6-2.3-1.9 0-1.6 1.7-2.1 2.9-2.1H42c0-1.1-.4-1.8-1.5-1.7-1 .1-1.3 1-1.3 1z"/></g><g id="Page-1"><path id="Fill-1" class="st1" d="M28 14c0 7.7-6.3 14-14 14S0 21.7 0 14 6.3 0 14 0s14 6.3 14 14"/><path id="Fill-3" class="st2" d="M14.1 2.3v-.5H14C7.2 1.8 1.8 7.3 1.8 14h.6c6.5.1 11.7-5.2 11.7-11.7"/><path id="Fill-5" class="st3" d="M2.3 14.1h-.6c.1 6.7 5.5 12.2 12.2 12.2h.1v-.4c.1-6.5-5.1-11.8-11.7-11.8"/><path id="Fill-7" class="st4" d="M25.9 14.1h.3V14c0-6.7-5.4-12.2-12.1-12.2v.5c0 6.5 5.3 11.8 11.8 11.8"/><path id="Fill-9" class="st5" d="M14.1 25.9v.4c6.7-.1 12-5.5 12.1-12.2h-.3c-6.5 0-11.8 5.3-11.8 11.8"/></g><path id="Page-1_1_" class="st6" d="M131.1 20.1c.8.5 2 .8 2.6.8.9 0 2.1-.4 2.1-1.6 0-2-4.9-1.9-4.9-5 0-2.3 1.7-3.5 4-3.5 1 0 1.8.2 2.6.4l-.2 1.8c-.5-.3-1.7-.6-2.2-.6-1.1 0-2 .4-2 1.4 0 2.3 4.9 1.6 4.9 5.2 0 2.4-1.9 3.5-3.9 3.5-1.1 0-2.1-.1-3.1-.6l.1-1.8zm9.4-9.7h.3c.2 0 .4 0 .4-.3 0-.2-.2-.3-.4-.3h-.3v.6zm-.3-.8h.7c.4 0 .6.2.6.5s-.2.5-.5.5l.5.8h-.3l-.5-.8h-.2v.8h-.3V9.6zm.6 2.2c.7 0 1.2-.6 1.2-1.3 0-.7-.5-1.3-1.2-1.3s-1.2.6-1.2 1.3c0 .8.5 1.3 1.2 1.3zm0-2.8c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zM123 20.1c.8.5 2 .8 2.6.8.9 0 2.1-.4 2.1-1.6 0-2-4.9-1.9-4.9-5 0-2.3 1.7-3.5 4-3.5 1 0 1.8.2 2.6.4l-.2 1.8c-.5-.3-1.7-.6-2.2-.6-1.1 0-2 .4-2 1.4 0 2.3 4.9 1.6 4.9 5.2 0 2.4-1.9 3.5-3.9 3.5-1.1 0-2.1-.1-3.1-.6l.1-1.8zm-3.8-3.1h-1.3c-1.1 0-3.9.2-3.9 2.2 0 1.2 1.1 1.8 2.1 1.8 2 0 3.1-1.3 3.1-2.9V17zm-6.2-5.1c1-.6 2.3-1.1 3.7-1.1 3.2 0 4.5 1.6 4.5 4.6V20c0 1.3 0 1.9.1 2.2h-1.9v-1.5c-.5.7-1.6 1.7-3.5 1.7-2.4 0-4.1-1.1-4.1-3.5 0-2.8 3.1-3.7 5.2-3.7h2.2c0-1.9-.7-2.9-2.8-2.9-1.2 0-2.4.4-3.3 1.1l-.1-1.5zm-7.7.6c-2.2 0-3.3 2.1-3.3 4.2 0 1.9 1 4.2 3.3 4.2 2.2 0 3.1-2.5 3.1-4.2 0-2-.8-4.2-3.1-4.2zm-5.4-1.4h2v1.6c.5-.8 1.8-1.8 3.8-1.8 3.3 0 4.8 2.7 4.8 5.7 0 3.1-1.4 6.1-4.8 6.1-2 0-3.1-.8-3.7-1.8V26h-2.1V11.1zm-17.3 0h1.9v1.6c.8-1.3 1.9-1.9 3.6-1.9 1.3 0 2.6.7 3.2 2.2.8-1.6 2.5-2.2 3.5-2.2 2.9 0 3.9 1.8 3.9 4.3v7.2h-2.1v-6.7c0-1.4-.3-3.1-2-3.1-2.1 0-2.9 2.1-2.9 4.2v5.7h-2.1v-6.7c0-1.4-.3-3.1-2-3.1-2.1 0-2.9 2.1-2.9 4.2v5.7h-2.1V11.1zm-8 9.8c2.4 0 3.5-2.2 3.5-4.2 0-2.1-1.3-4.2-3.5-4.2s-3.5 2.1-3.5 4.2c-.1 2 1 4.2 3.5 4.2zm0-10c3.4 0 5.7 2.5 5.7 5.9 0 3.2-2.3 5.9-5.7 5.9s-5.7-2.7-5.7-5.9c-.1-3.5 2.2-5.9 5.7-5.9zM67.4 13c-.8-.3-1.6-.5-2.2-.5-2.3 0-3.6 2.1-3.6 4.2 0 2 1.1 4.2 3.7 4.2.7 0 1.6-.2 2.2-.6l.2 1.8c-.9.4-1.8.5-2.6.5-3.4 0-5.7-2.7-5.7-5.9 0-3.4 2.3-5.9 5.7-5.9.8 0 1.9.2 2.5.4l-.2 1.8zm-19.2-1.9h2v1.8c.6-1.3 2.1-2 3.7-2 2.9 0 4.2 1.8 4.2 4.8v6.7H56v-5.8c0-2.6-.6-3.9-2.4-4-2.4 0-3.4 1.9-3.4 4.6v5.2h-2.1V11.1h.1zM38 7h8.6v1.9h-6.4v4.5H46v1.9h-5.8v5.1h6.4v1.9H38V7z"/></g></g></g></g></svg>
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g>
2
- <path data-color="color-2" fill="#ffffff" d="M10,14H6c0,1.1,0.9,2,2,2S10,15.1,10,14z"/>
3
- <path fill="#ffffff" d="M15,11h-0.5C13.8,10.3,13,9.3,13,8V5c0-2.8-2.2-5-5-5S3,2.2,3,5v3c0,1.3-0.8,2.3-1.5,3H1c-0.6,0-1,0.4-1,1
4
- s0.4,1,1,1h14c0.6,0,1-0.4,1-1S15.6,11,15,11z"/>
5
- </g></svg>
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="16px" viewBox="0 0 16 16"><g><path fill="#ffffff" d="M8,2c1.1,0,2,0.9,2,2v1c0,1.1-0.9,2-2,2S6,6.1,6,5V4C6,2.9,6.9,2,8,2 M8,0C5.8,0,4,1.8,4,4v1
2
- c0,2.2,1.8,4,4,4s4-1.8,4-4V4C12,1.8,10.2,0,8,0L8,0z"/>
3
- <path data-color="color-2" fill="#ffffff" d="M9,12c1.5,0,2.8,0.8,3.5,2l-8.9,0c0.7-1.2,2-2,3.5-2H9 M9,10H7c-3.3,0-6,2.7-6,6v0h14v0
4
- C15,12.7,12.3,10,9,10L9,10z"/></g></svg>
@@ -1,27 +0,0 @@
1
- import { Meta } from '@storybook/addon-docs/blocks';
2
-
3
- <Meta title="Intro" />
4
-
5
- # Get Started
6
-
7
- Software Development Kit / API for developing React Web applications. Implements cross cutting concerns as reusable APIs
8
-
9
- ## Install
10
-
11
- `npm install --save @elliemae/app-react-dependencies @elliemae/pui-user-monitoring @elliemae/pui-theme @elliemae/ds-basic @elliemae/ds-modal @elliemae/pui-app-sdk`
12
-
13
- ### **Use**
14
-
15
- Import react components you want into your UI
16
-
17
- `import { WaitMessage } from ‘@elliemae/pui-app-sdk’;`
18
-
19
- and use them like so
20
-
21
- ```
22
- const LoadingIndicator = () => (
23
- <div>
24
- <WaitMessage size='m' isOpen />
25
- </div>
26
- )
27
- ```
@@ -1,32 +0,0 @@
1
- import _jsx from "@babel/runtime/helpers/jsx";
2
-
3
- var _LiveMessage, _LiveMessageStory;
4
-
5
- import React, { useState, useEffect } from 'react';
6
- import { LiveAnnouncer } from 'react-aria-live';
7
- import { useAppDispatch } from "../../data/react-redux.js";
8
- import { actions } from "../../data/live-message/index.js";
9
- import { LiveMessage } from "./index.js";
10
- export default {
11
- title: 'A11y/LiveMessage',
12
- component: LiveMessage
13
- };
14
-
15
- const LiveMessageStory = () => {
16
- const dispatch = useAppDispatch();
17
- return /*#__PURE__*/_jsx(LiveAnnouncer, {}, void 0, _LiveMessage || (_LiveMessage = /*#__PURE__*/_jsx(LiveMessage, {})), /*#__PURE__*/_jsx("button", {
18
- type: "button",
19
- onClick: () => dispatch(actions.announce({
20
- message: 'Page changed',
21
- ariaLive: 'polite'
22
- }))
23
- }, void 0, "Announce"));
24
- };
25
-
26
- export const Basic = () => {
27
- const [show, setShow] = useState(false);
28
- useEffect(() => {
29
- setShow(true);
30
- }, []);
31
- return show ? _LiveMessageStory || (_LiveMessageStory = /*#__PURE__*/_jsx(LiveMessageStory, {})) : null;
32
- };
@@ -1,10 +0,0 @@
1
- import _jsx from "@babel/runtime/helpers/jsx";
2
-
3
- var _MediaBreakpoint;
4
-
5
- import { MediaBreakpoint } from "./index.js";
6
- export default {
7
- title: 'Components/MediaBreakpoint',
8
- component: MediaBreakpoint
9
- };
10
- export const Basic = () => _MediaBreakpoint || (_MediaBreakpoint = /*#__PURE__*/_jsx(MediaBreakpoint, {}));
@@ -1,74 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <!-- The first thing in any HTML file should be the charset -->
5
- <meta charset="utf-8" />
6
- <!-- Make the page mobile compatible -->
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- <!-- Allow installing the app to the homescreen -->
9
- <meta name="mobile-web-app-capable" content="yes" />
10
- <link rel="icon" href="/favicon.ico" />
11
- <title>Application</title>
12
- <!-- Google Tag Manager -->
13
- <!-- <script nonce="__CSP_NONCE__">
14
- (function (w, d, s, l, i) {
15
- w[l] = w[l] || [];
16
- w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
17
- var f = d.getElementsByTagName(s)[0],
18
- j = d.createElement(s),
19
- dl = l != 'dataLayer' ? '&l=' + l : '';
20
- j.async = true;
21
- j.src =
22
- 'https://www.googletagmanager.com/gtm.js?id=' +
23
- i +
24
- dl;
25
- f.parentNode.insertBefore(j, f);
26
- })(window, document, 'script', 'dataLayer', window.emui.gtm.id);
27
- </script> -->
28
- <!-- <script nonce="__CSP_NONCE__">
29
- window.emuiUserMonitoring = window.parent.emuiUserMonitoring || {
30
- setCustomVirtualPageName: function () {},
31
- startVirtualPageMonitoringWithAutoEnd: function () {},
32
- };
33
- </script> -->
34
- <script>
35
- (function (i, s, o, g, r, a, m) {
36
- i['GoogleAnalyticsObject'] = r;
37
- (i[r] =
38
- i[r] ||
39
- function () {
40
- (i[r].q = i[r].q || []).push(arguments);
41
- }),
42
- (i[r].l = 1 * new Date());
43
- (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
44
- a.async = 1;
45
- a.src = g;
46
- m.parentNode.insertBefore(a, m);
47
- })(
48
- window,
49
- document,
50
- 'script',
51
- 'https://www.google-analytics.com/analytics.js',
52
- 'ga',
53
- );
54
- </script>
55
- <style>
56
- .full-width {
57
- width: 100%;
58
- }
59
- .full-height {
60
- height: 100%;
61
- }
62
- </style>
63
- </head>
64
-
65
- <body class="full-width full-height">
66
- <!-- Display a message if JS has been disabled on the browser. -->
67
- <noscript
68
- >If you're seeing this message, that means
69
- <strong>JavaScript has been disabled on your browser</strong>, please
70
- <strong>enable JS</strong> to make this app work.</noscript
71
- >
72
- <div id="pui-app-container-" class="full-width full-height"></div>
73
- </body>
74
- </html>
@@ -1,21 +0,0 @@
1
- import _jsx2 from "@babel/runtime/helpers/jsx";
2
- import { Error } from "./index.js";
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- export default {
5
- title: 'Modals/Error',
6
- component: Error
7
- };
8
-
9
- const Template = args => /*#__PURE__*/_jsx(Error, { ...args
10
- });
11
-
12
- export const Basic = Template.bind({});
13
- Basic.args = {
14
- name: 'Loan',
15
- open: true,
16
- children: /*#__PURE__*/_jsx2("h2", {}, void 0, "This is an error message")
17
- };
18
- export const CloseModal = Template.bind({});
19
- CloseModal.args = { ...Basic.args,
20
- open: false
21
- };
@@ -1,18 +0,0 @@
1
- import { NavigationPrompt } from "./index.js";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- export default {
4
- title: 'Modals/NavigationPrompt',
5
- component: NavigationPrompt
6
- };
7
-
8
- const Template = args => /*#__PURE__*/_jsx(NavigationPrompt, { ...args
9
- });
10
-
11
- export const Basic = Template.bind({});
12
- Basic.args = {
13
- open: true
14
- };
15
- export const Close = () => Template.bind({});
16
- Close.args = {
17
- open: false
18
- };
@@ -1,18 +0,0 @@
1
- import { SessionExpiry } from "./index.js";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- export default {
4
- title: 'Modals/SessionExpiry',
5
- component: SessionExpiry
6
- };
7
-
8
- const Template = args => /*#__PURE__*/_jsx(SessionExpiry, { ...args
9
- });
10
-
11
- export const Basic = Template.bind({});
12
- Basic.args = {
13
- open: true
14
- };
15
- export const Close = Template.bind({});
16
- Close.args = {
17
- open: false
18
- };
@@ -1,33 +0,0 @@
1
- import { useEffect } from 'react';
2
- import { useAppDispatch } from "../../../data/react-redux.js";
3
- import { waitMessage } from "../../../data/wait-message/actions.js";
4
- import { WaitMessage } from "./index.js";
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
-
7
- const Template = ({
8
- isOpen,
9
- ...rest
10
- }) => {
11
- const dispatch = useAppDispatch();
12
- useEffect(() => {
13
- if (!dispatch) return;
14
- if (isOpen) dispatch(waitMessage.open());else dispatch(waitMessage.close());
15
- }, [isOpen, dispatch]);
16
- return /*#__PURE__*/_jsx(WaitMessage, { ...rest
17
- });
18
- };
19
-
20
- export default {
21
- title: 'Modals/WaitMessage',
22
- component: WaitMessage
23
- };
24
- export const Basic = Template.bind({});
25
- Basic.args = {
26
- size: 'm',
27
- isOpen: true
28
- };
29
- export const Close = Template.bind({});
30
- Close.args = {
31
- size: 'm',
32
- isOpen: false
33
- };
@@ -1,13 +0,0 @@
1
- import _jsx from "@babel/runtime/helpers/jsx";
2
-
3
- var _SessionTimeout;
4
-
5
- import StoryRouter from 'storybook-react-router';
6
- import { SessionTimeout } from "./index.js";
7
- export default {
8
- title: 'Components/SessionTimeout',
9
- component: SessionTimeout
10
- };
11
- export const Basic = () => _SessionTimeout || (_SessionTimeout = /*#__PURE__*/_jsx(SessionTimeout, {})); // eslint-disable-next-line @typescript-eslint/no-unsafe-call
12
-
13
- Basic.decorators = [StoryRouter()];
@@ -1,30 +0,0 @@
1
- export declare const stories: string[];
2
- export declare const addons: (string | {
3
- name: string;
4
- options: {
5
- sourceLoaderOptions: {
6
- parser: string;
7
- injectStoryParameters: boolean;
8
- };
9
- };
10
- })[];
11
- export declare namespace core {
12
- const builder: string;
13
- }
14
- export declare namespace reactOptions {
15
- const fastRefresh: boolean;
16
- }
17
- export declare namespace typescript {
18
- const check: boolean;
19
- const checkOptions: {};
20
- const reactDocgen: string;
21
- namespace reactDocgenTypescriptOptions {
22
- const shouldExtractLiteralValuesFromEnum: boolean;
23
- function propFilter(prop: any): boolean;
24
- namespace compilerOptions {
25
- const allowSyntheticDefaultImports: boolean;
26
- const esModuleInterop: boolean;
27
- }
28
- }
29
- }
30
- export { managerWebpack, webpackFinal };
@@ -1,24 +0,0 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { DateInput as component };
4
- }
5
- export default _default;
6
- export function Basic(args: any): JSX.Element;
7
- export namespace Basic {
8
- namespace args {
9
- const labelText: string;
10
- const name: string;
11
- const required: boolean;
12
- const defaultValue: moment.Moment;
13
- namespace rules {
14
- export namespace required_1 {
15
- const value: boolean;
16
- const message: string;
17
- }
18
- export { required_1 as required };
19
- export function validate(value: any): true | "Date of Birth can not be greater than current date";
20
- }
21
- }
22
- }
23
- import { DateInput } from ".";
24
- import moment from "moment";