@madie/madie-design-system 1.2.39 → 1.2.41

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 (289) hide show
  1. package/components/TruncateText/TruncateText.stories.js +25 -0
  2. package/components/TruncateText/index.js +52 -0
  3. package/components/index.js +2 -0
  4. package/coverage/clover.xml +3 -646
  5. package/coverage/coverage-final.json +1 -39
  6. package/coverage/lcov-report/index.html +11 -431
  7. package/coverage/lcov.info +0 -1389
  8. package/dist/browser.js +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/react/index.js +1 -1
  11. package/dist/react/index.js.map +1 -1
  12. package/doctor-storybook.log +41 -0
  13. package/migration-storybook.log +329 -0
  14. package/package.json +2 -1
  15. package/storybook-static/149.65bbc904.iframe.bundle.js +2 -0
  16. package/storybook-static/149.65bbc904.iframe.bundle.js.LICENSE.txt +14 -0
  17. package/storybook-static/164.e319e208c2d3a626e1f5.manager.bundle.js +1 -0
  18. package/storybook-static/192.69f71338.iframe.bundle.js +1 -0
  19. package/storybook-static/198.80608638.iframe.bundle.js +2 -0
  20. package/storybook-static/198.80608638.iframe.bundle.js.LICENSE.txt +31 -0
  21. package/storybook-static/217.b9975326.iframe.bundle.js +2 -0
  22. package/storybook-static/217.b9975326.iframe.bundle.js.LICENSE.txt +12 -0
  23. package/storybook-static/261.70d64bef7770b201fb77.manager.bundle.js +1 -0
  24. package/storybook-static/303.0d9893ef.iframe.bundle.js +1 -0
  25. package/storybook-static/319.3e8dc6b4a7d2f3e67eb0.manager.bundle.js +2 -0
  26. package/storybook-static/319.3e8dc6b4a7d2f3e67eb0.manager.bundle.js.LICENSE.txt +8 -0
  27. package/storybook-static/322.8b797be6.iframe.bundle.js +103 -0
  28. package/storybook-static/322.8b797be6.iframe.bundle.js.LICENSE.txt +140 -0
  29. package/storybook-static/322.8b797be6.iframe.bundle.js.map +1 -0
  30. package/storybook-static/40.df6534995de03601f813.manager.bundle.js +2 -0
  31. package/storybook-static/40.df6534995de03601f813.manager.bundle.js.LICENSE.txt +31 -0
  32. package/storybook-static/45.b37f580f.iframe.bundle.js +2 -0
  33. package/storybook-static/45.b37f580f.iframe.bundle.js.LICENSE.txt +8 -0
  34. package/storybook-static/467.7fabc4cd8819eddb42f9.manager.bundle.js +2 -0
  35. package/storybook-static/467.7fabc4cd8819eddb42f9.manager.bundle.js.LICENSE.txt +12 -0
  36. package/storybook-static/582.ffbf0b74.iframe.bundle.js +1 -0
  37. package/storybook-static/609.e27a5f77.iframe.bundle.js +2 -0
  38. package/storybook-static/609.e27a5f77.iframe.bundle.js.LICENSE.txt +11 -0
  39. package/storybook-static/794.cbe100d1870b4d8a130a.manager.bundle.js +1 -0
  40. package/storybook-static/861.0b692bf7.iframe.bundle.js +1 -0
  41. package/storybook-static/931.51f69825a96d7bce33f5.manager.bundle.js +2 -0
  42. package/storybook-static/931.51f69825a96d7bce33f5.manager.bundle.js.LICENSE.txt +94 -0
  43. package/storybook-static/987.874321cb40e99203aabe.manager.bundle.js +1 -0
  44. package/storybook-static/favicon.ico +0 -0
  45. package/storybook-static/iframe.html +364 -0
  46. package/storybook-static/index.html +59 -0
  47. package/storybook-static/main.07b67595538d689438e4.manager.bundle.js +1 -0
  48. package/storybook-static/main.8ae59f4f.iframe.bundle.js +1 -0
  49. package/storybook-static/project.json +1 -0
  50. package/storybook-static/runtime~main.09b9b14c88359f235007.manager.bundle.js +1 -0
  51. package/storybook-static/runtime~main.c9dcb6d8.iframe.bundle.js +1 -0
  52. package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
  53. package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
  54. package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
  55. package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
  56. package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
  57. package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
  58. package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
  59. package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
  60. package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
  61. package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
  62. package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
  63. package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
  64. package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
  65. package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
  66. package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
  67. package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
  68. package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
  69. package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
  70. package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
  71. package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
  72. package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
  73. package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
  74. package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
  75. package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
  76. package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
  77. package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
  78. package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
  79. package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
  80. package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
  81. package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
  82. package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
  83. package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
  84. package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
  85. package/storybook-static/static/media/arrow-both.a0959e13.svg +3 -0
  86. package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
  87. package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
  88. package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
  89. package/storybook-static/static/media/fontawesome-webfont.c1e38fd9.svg +2671 -0
  90. package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
  91. package/storybook.log +26 -0
  92. package/styles/_global.scss +66 -66
  93. package/styles/_main.scss +7 -7
  94. package/styles/_paths.scss +1 -1
  95. package/styles/_qpp-style.scss +35 -35
  96. package/styles/components/_accordion.scss +254 -254
  97. package/styles/components/_breadcrumbs.scss +7 -7
  98. package/styles/components/_buttons.scss +535 -535
  99. package/styles/components/_error-page.scss +4 -4
  100. package/styles/components/_flash-notification.scss +4 -4
  101. package/styles/components/_fonts.scss +16 -16
  102. package/styles/components/_forms.scss +1 -1
  103. package/styles/components/_grid.scss +22 -22
  104. package/styles/components/_links.scss +5 -3
  105. package/styles/components/_madie-alert.scss +80 -71
  106. package/styles/components/_madie-confirm-dialog.scss +33 -33
  107. package/styles/components/_madie-delete-dialog.scss +33 -33
  108. package/styles/components/_madie-discard-dialog.scss +27 -27
  109. package/styles/components/_madie-tooltip.scss +59 -60
  110. package/styles/components/_modals.scss +9 -9
  111. package/styles/components/_score-chart.scss +3 -3
  112. package/styles/components/_tables.scss +74 -74
  113. package/styles/components/_tabs.scss +3 -3
  114. package/styles/components/_text-field-variable.scss +13 -13
  115. package/styles/components/_toast.scss +75 -75
  116. package/styles/components/_variables.scss +13 -13
  117. package/styles/qppds/base/_backgrounds.scss +3 -3
  118. package/styles/qppds/base/_fonts.scss +17 -17
  119. package/styles/qppds/base/_icon.scss +6 -6
  120. package/styles/qppds/base/_layout.scss +2 -2
  121. package/styles/qppds/base/_typography.scss +51 -51
  122. package/styles/qppds/base/index.scss +4 -4
  123. package/styles/qppds/components/_alert.scss +73 -73
  124. package/styles/qppds/components/_breadcrumbs.scss +54 -54
  125. package/styles/qppds/components/_button.scss +437 -437
  126. package/styles/qppds/components/_card.scss +172 -172
  127. package/styles/qppds/components/_dropdown.scss +40 -40
  128. package/styles/qppds/components/_footer.scss +604 -605
  129. package/styles/qppds/components/_header.scss +804 -804
  130. package/styles/qppds/components/_link.scss +35 -35
  131. package/styles/qppds/components/_madie-alert.scss +80 -71
  132. package/styles/qppds/components/_madie-confirm-dialog.scss +33 -34
  133. package/styles/qppds/components/_madie-delete-dialog.scss +33 -33
  134. package/styles/qppds/components/_madie-discard-dialog.scss +27 -27
  135. package/styles/qppds/components/_madie-tooltip.scss +59 -60
  136. package/styles/qppds/components/_modal.scss +109 -109
  137. package/styles/qppds/components/_page-header.scss +59 -55
  138. package/styles/qppds/components/_pagination.scss +154 -154
  139. package/styles/qppds/components/_search.scss +100 -100
  140. package/styles/qppds/components/_sidebar.scss +8 -8
  141. package/styles/qppds/components/_table.scss +129 -129
  142. package/styles/qppds/components/_tabs.scss +172 -172
  143. package/styles/qppds/components/_text-field-variable.scss +12 -12
  144. package/styles/qppds/components/_text-input.scss +57 -57
  145. package/styles/qppds/components/_toast.scss +75 -75
  146. package/styles/qppds/components/index.scss +23 -23
  147. package/styles/qppds/components/sidebar/_cms.scss +5 -5
  148. package/styles/qppds/components/sidebar/_details.scss +5 -5
  149. package/styles/qppds/components/sidebar/_links.scss +12 -11
  150. package/styles/qppds/components/sidebar/_sidebar-animation.scss +9 -9
  151. package/styles/qppds/components/sidebar/_sidebar-tooltip.scss +1 -1
  152. package/styles/qppds/components/sidebar/_sidebar.scss +140 -140
  153. package/styles/qppds/components/sidebar/project-specific/_wi.scss +3 -3
  154. package/styles/qppds/index.scss +4 -4
  155. package/styles/qppds/settings/_functions.scss +1 -1
  156. package/styles/qppds/settings/_index.scss +3 -3
  157. package/styles/qppds/settings/mixins/_borders.scss +3 -3
  158. package/styles/qppds/settings/mixins/_focus.scss +20 -20
  159. package/styles/qppds/settings/mixins/_icons.scss +19 -19
  160. package/styles/qppds/settings/mixins/_index.scss +8 -8
  161. package/styles/qppds/settings/mixins/_layout.scss +59 -59
  162. package/styles/qppds/settings/mixins/_lists.scss +8 -8
  163. package/styles/qppds/settings/mixins/_table.scss +75 -75
  164. package/styles/qppds/settings/mixins/_type.scss +43 -43
  165. package/styles/qppds/settings/mixins/_visually-hidden.scss +12 -12
  166. package/styles/qppds/settings/variables/_color.scss +41 -41
  167. package/styles/qppds/settings/variables/_index.scss +3 -3
  168. package/styles/qppds/settings/variables/_layout.scss +43 -43
  169. package/styles/qppds/settings/variables/_type.scss +90 -90
  170. package/styles/qppds/utilities/_background-color.scss +34 -34
  171. package/styles/qppds/utilities/_color.scss +8 -8
  172. package/styles/qppds/utilities/_display-visibility.scss +40 -40
  173. package/styles/qppds/utilities/_flexbox.scss +188 -188
  174. package/styles/qppds/utilities/_font-family.scss +2 -2
  175. package/styles/qppds/utilities/_font-size.scss +4 -4
  176. package/styles/qppds/utilities/_font-weight.scss +2 -2
  177. package/styles/qppds/utilities/_height.scss +24 -24
  178. package/styles/qppds/utilities/_margin.scss +108 -108
  179. package/styles/qppds/utilities/_padding.scss +69 -69
  180. package/styles/qppds/utilities/_position.scss +12 -12
  181. package/styles/qppds/utilities/_text-align.scss +20 -20
  182. package/styles/qppds/utilities/_text-transform.scss +2 -2
  183. package/styles/qppds/utilities/_truncate.scss +4 -4
  184. package/styles/qppds/utilities/_width.scss +53 -53
  185. package/styles/qppds/utilities/index.scss +15 -15
  186. package/styles/qppds.scss +2 -2
  187. package/styles/third-party/_legacy-bootstrap.scss +10 -10
  188. package/styles/third-party/legacy-bootstrap/_buttons.scss +91 -91
  189. package/styles/third-party/legacy-bootstrap/_dropdowns.scss +136 -136
  190. package/styles/third-party/legacy-bootstrap/_forms.scss +328 -324
  191. package/styles/third-party/legacy-bootstrap/_grid.scss +19 -19
  192. package/styles/third-party/legacy-bootstrap/_mixins.scss +19 -19
  193. package/styles/third-party/legacy-bootstrap/_navbar.scss +525 -525
  194. package/styles/third-party/legacy-bootstrap/_navs.scss +156 -156
  195. package/styles/third-party/legacy-bootstrap/_normalize.scss +70 -70
  196. package/styles/third-party/legacy-bootstrap/_scaffolding.scss +47 -47
  197. package/styles/third-party/legacy-bootstrap/_variables.scss +18 -18
  198. package/styles/third-party/legacy-bootstrap/mixins/_buttons.scss +52 -52
  199. package/styles/third-party/legacy-bootstrap/mixins/_clearfix.scss +8 -8
  200. package/styles/third-party/legacy-bootstrap/mixins/_forms.scss +70 -70
  201. package/styles/third-party/legacy-bootstrap/mixins/_grid-framework.scss +58 -58
  202. package/styles/third-party/legacy-bootstrap/mixins/_grid.scss +63 -63
  203. package/styles/third-party/legacy-bootstrap/mixins/_labels.scss +7 -7
  204. package/styles/third-party/legacy-bootstrap/mixins/_nav-divider.scss +4 -4
  205. package/styles/third-party/legacy-bootstrap/mixins/_nav-vertical-align.scss +2 -2
  206. package/styles/third-party/legacy-bootstrap/mixins/_opacity.scss +3 -3
  207. package/styles/third-party/legacy-bootstrap/mixins/_panels.scss +22 -22
  208. package/styles/third-party/legacy-bootstrap/mixins/_reset-filter.scss +1 -1
  209. package/styles/third-party/legacy-bootstrap/mixins/_reset-text.scss +16 -16
  210. package/styles/third-party/legacy-bootstrap/mixins/_resize.scss +2 -2
  211. package/styles/third-party/legacy-bootstrap/mixins/_responsive-visibility.scss +16 -16
  212. package/styles/third-party/legacy-bootstrap/mixins/_size.scss +3 -3
  213. package/styles/third-party/legacy-bootstrap/mixins/_tab-focus.scss +5 -5
  214. package/styles/third-party/legacy-bootstrap/mixins/_table-row.scss +23 -23
  215. package/styles/third-party/legacy-bootstrap/mixins/_text-emphasis.scss +7 -7
  216. package/styles/third-party/legacy-bootstrap/mixins/_text-overflow.scss +3 -3
  217. package/styles/third-party/legacy-bootstrap/mixins/_vendor-prefixes.scss +85 -85
  218. package/test/components/DateField.test.js +5 -10
  219. package/test/components/DateTimeField.test.js +3 -1
  220. package/test/components/Instant.test.js +37 -32
  221. package/test/components/MadieAlert.test.js +54 -11
  222. package/test/components/MadieConfirmDialog.test.js +1 -1
  223. package/coverage/lcov-report/react/components/Accordion/index.html +0 -116
  224. package/coverage/lcov-report/react/components/Accordion/index.jsx.html +0 -370
  225. package/coverage/lcov-report/react/components/Button/index.html +0 -116
  226. package/coverage/lcov-report/react/components/Button/index.js.html +0 -385
  227. package/coverage/lcov-report/react/components/DateField/DateField.jsx.html +0 -427
  228. package/coverage/lcov-report/react/components/DateField/index.html +0 -116
  229. package/coverage/lcov-report/react/components/DateTimeField/DateTimeField.jsx.html +0 -352
  230. package/coverage/lcov-report/react/components/DateTimeField/index.html +0 -116
  231. package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +0 -364
  232. package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +0 -178
  233. package/coverage/lcov-report/react/components/Error/error.js.html +0 -163
  234. package/coverage/lcov-report/react/components/Error/index.html +0 -146
  235. package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +0 -496
  236. package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +0 -697
  237. package/coverage/lcov-report/react/components/Footer/footer.js.html +0 -175
  238. package/coverage/lcov-report/react/components/Footer/index.html +0 -146
  239. package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +0 -310
  240. package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +0 -208
  241. package/coverage/lcov-report/react/components/Infotip/index.html +0 -146
  242. package/coverage/lcov-report/react/components/Infotip/index.js.html +0 -94
  243. package/coverage/lcov-report/react/components/InputLabel/index.html +0 -116
  244. package/coverage/lcov-report/react/components/InputLabel/index.jsx.html +0 -244
  245. package/coverage/lcov-report/react/components/Instant/index.html +0 -116
  246. package/coverage/lcov-report/react/components/Instant/index.jsx.html +0 -886
  247. package/coverage/lcov-report/react/components/MadieAlert/index.html +0 -116
  248. package/coverage/lcov-report/react/components/MadieAlert/index.jsx.html +0 -565
  249. package/coverage/lcov-report/react/components/MadieConfirmDialog/index.html +0 -116
  250. package/coverage/lcov-report/react/components/MadieConfirmDialog/index.jsx.html +0 -277
  251. package/coverage/lcov-report/react/components/MadieDeleteDialog/index.html +0 -116
  252. package/coverage/lcov-report/react/components/MadieDeleteDialog/index.jsx.html +0 -247
  253. package/coverage/lcov-report/react/components/MadieDialog/index.html +0 -116
  254. package/coverage/lcov-report/react/components/MadieDialog/index.jsx.html +0 -1021
  255. package/coverage/lcov-report/react/components/MadieDiscardDialog/index.html +0 -116
  256. package/coverage/lcov-report/react/components/MadieDiscardDialog/index.jsx.html +0 -232
  257. package/coverage/lcov-report/react/components/MadieSpinner/index.html +0 -116
  258. package/coverage/lcov-report/react/components/MadieSpinner/index.jsx.html +0 -190
  259. package/coverage/lcov-report/react/components/MadieTooltip/index.html +0 -116
  260. package/coverage/lcov-report/react/components/MadieTooltip/index.jsx.html +0 -232
  261. package/coverage/lcov-report/react/components/MadieTooltipIcon/index.html +0 -116
  262. package/coverage/lcov-report/react/components/MadieTooltipIcon/index.jsx.html +0 -178
  263. package/coverage/lcov-report/react/components/Pagination/index.html +0 -116
  264. package/coverage/lcov-report/react/components/Pagination/index.jsx.html +0 -736
  265. package/coverage/lcov-report/react/components/Popover/index.html +0 -116
  266. package/coverage/lcov-report/react/components/Popover/index.js.html +0 -478
  267. package/coverage/lcov-report/react/components/ReadOnlyTextField/index.html +0 -116
  268. package/coverage/lcov-report/react/components/ReadOnlyTextField/index.jsx.html +0 -514
  269. package/coverage/lcov-report/react/components/Select/index.html +0 -116
  270. package/coverage/lcov-report/react/components/Select/index.jsx.html +0 -646
  271. package/coverage/lcov-report/react/components/Tabs/Tab.js.html +0 -325
  272. package/coverage/lcov-report/react/components/Tabs/index.html +0 -131
  273. package/coverage/lcov-report/react/components/Tabs/index.js.html +0 -370
  274. package/coverage/lcov-report/react/components/TextArea/index.html +0 -116
  275. package/coverage/lcov-report/react/components/TextArea/index.jsx.html +0 -436
  276. package/coverage/lcov-report/react/components/TextField/index.html +0 -116
  277. package/coverage/lcov-report/react/components/TextField/index.jsx.html +0 -655
  278. package/coverage/lcov-report/react/components/Toast/index.html +0 -116
  279. package/coverage/lcov-report/react/components/Toast/index.jsx.html +0 -436
  280. package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +0 -349
  281. package/coverage/lcov-report/react/components/Tooltip/index.html +0 -146
  282. package/coverage/lcov-report/react/components/Tooltip/index.js.html +0 -94
  283. package/coverage/lcov-report/react/components/Tooltip/position.js.html +0 -313
  284. package/coverage/lcov-report/react/index.html +0 -116
  285. package/coverage/lcov-report/react/index.js.html +0 -133
  286. package/coverage/lcov-report/react/lib/Chevron.jsx.html +0 -181
  287. package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +0 -1777
  288. package/coverage/lcov-report/react/lib/index.html +0 -131
  289. package/package-lock.json +0 -22162
@@ -7,7 +7,7 @@ import dayjs from "dayjs";
7
7
  export const InstantTester = () => {
8
8
  const [value, setValue] = useState("");
9
9
  const handleDateTimeChange = (v) => {
10
- setValue(v)
10
+ setValue(v);
11
11
  };
12
12
  return (
13
13
  <div>
@@ -20,12 +20,18 @@ export const InstantTester = () => {
20
20
  dateTimeValue={value}
21
21
  dateFieldSx={{}}
22
22
  />
23
- </div>)
24
- }
25
-
23
+ </div>
24
+ );
25
+ };
26
26
 
27
27
  describe("Instant", () => {
28
- const { getByDisplayValue, findByTestId, findByText, getByText, getByTestId } = screen;
28
+ const {
29
+ getByDisplayValue,
30
+ findByTestId,
31
+ findByText,
32
+ getByText,
33
+ getByTestId,
34
+ } = screen;
29
35
  it("It renders as expected with static values", async () => {
30
36
  const handleDateTimeChange = jest.fn();
31
37
  render(
@@ -41,43 +47,42 @@ describe("Instant", () => {
41
47
  </div>
42
48
  );
43
49
  const labelText = await findByText("Status Date");
44
- expect(labelText).toBeInTheDocument();
45
- expect(await findByText("Status Date")).toBeInTheDocument();
46
- expect(
47
- getByDisplayValue("04/17/2022")
48
- ).toBeInTheDocument();
50
+ expect(labelText).toBeInTheDocument();
51
+ expect(await findByText("Status Date")).toBeInTheDocument();
52
+ expect(getByDisplayValue("04/17/2022")).toBeInTheDocument();
49
53
  });
50
54
 
51
55
  it("we can change the date from null and when date to date", async () => {
52
- await render(<InstantTester />)
56
+ await render(<InstantTester />);
53
57
  const labelText = await findByText("Status Date");
54
- expect(labelText).toBeInTheDocument();
55
- expect(await findByText("Status Date")).toBeInTheDocument();
56
- const inputField = await findByTestId("status_date_time-input");
57
- fireEvent.change(inputField, { target: { value: "01/01/2026" } })
58
- expect(
59
- getByText("2026-01-01T00:00:00.000+00:00")
60
- ).toBeInTheDocument();
61
- fireEvent.change(inputField, { target: { value: "01/01/2027" } })
62
- expect(
63
- getByText("2027-01-01T00:00:00.000+00:00")
64
- ).toBeInTheDocument();
58
+ expect(labelText).toBeInTheDocument();
59
+ expect(await findByText("Status Date")).toBeInTheDocument();
60
+ const inputField = await findByTestId("status_date_time-input");
61
+ fireEvent.change(inputField, { target: { value: "01/01/2026" } });
62
+ expect(getByText("2026-01-01T00:00:00.000+00:00")).toBeInTheDocument();
63
+ fireEvent.change(inputField, { target: { value: "01/01/2027" } });
64
+ expect(getByText("2027-01-01T00:00:00.000+00:00")).toBeInTheDocument();
65
65
  });
66
66
  it("Handles change for Hours, minutes, seconds, ms; does not combust.", async () => {
67
-
68
- await render(<InstantTester />)
67
+ await render(<InstantTester />);
69
68
  const labelText = await findByText("Status Date");
70
69
  expect(labelText).toBeInTheDocument();
71
70
  expect(await findByText("Status Date")).toBeInTheDocument();
72
71
  const inputField = await findByTestId("status_date_time-input");
73
- fireEvent.change(inputField, { target: { value: "01/01/2026" } })
72
+ fireEvent.change(inputField, { target: { value: "01/01/2026" } });
74
73
  expect(getByText("2026-01-01T00:00:00.000+00:00")).toBeInTheDocument();
75
- fireEvent.change(getByTestId("status_date_time-hour-input"), { target : {value: "1"}})
76
- fireEvent.change(getByTestId("status_date_time-minute-input"), { target : {value: "2"}})
77
- fireEvent.change(getByTestId("status_date_time-second-input"), { target : {value: "3"}})
78
- fireEvent.change(getByTestId("status_date_time-millisecond-input"), { target : {value: "4"}})
79
- expect(
80
- getByText("2026-01-01T01:02:03.004+00:00")
81
- ).toBeInTheDocument();
74
+ fireEvent.change(getByTestId("status_date_time-hour-input"), {
75
+ target: { value: "1" },
76
+ });
77
+ fireEvent.change(getByTestId("status_date_time-minute-input"), {
78
+ target: { value: "2" },
79
+ });
80
+ fireEvent.change(getByTestId("status_date_time-second-input"), {
81
+ target: { value: "3" },
82
+ });
83
+ fireEvent.change(getByTestId("status_date_time-millisecond-input"), {
84
+ target: { value: "4" },
85
+ });
86
+ expect(getByText("2026-01-01T01:02:03.004+00:00")).toBeInTheDocument();
82
87
  });
83
88
  });
@@ -31,11 +31,10 @@ describe("Madie Alert", () => {
31
31
  });
32
32
 
33
33
  it("renders with copy button and copies text correctly", async () => {
34
- const expectedReturn =
35
- `Following issues were found within the CQL(3) Errors:
34
+ const expectedReturn = `Following issues were found within the CQL(3) Errors:
36
35
  Row: 7, Col:0: VSAC: 0:66 | Request failed with status code 404 for oid = 1.16.840.1.113762.1.4.1206.28 location = 7:0-7:66
37
36
  Row: 5, Col:0: VSAC: 0:89 | Request failed with status code 404 for oid = 1.16.840.1.113762.1.4.1222.1334 location = 5:0-5:89
38
- Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.840.1.113762.1.4.1106.114 location = 6:0-6:87`
37
+ Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.840.1.113762.1.4.1106.114 location = 6:0-6:87`;
39
38
  const onClose = jest.fn();
40
39
  const mockedWriteText = jest.fn();
41
40
  navigator.clipboard = {
@@ -48,7 +47,36 @@ Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.8
48
47
  canClose={false}
49
48
  copyButton={true}
50
49
  content={
51
- <div aria-live="polite" role="alert"><h3 aria-live="polite" role="alert" data-testid="generic-error-text-header">Following issues were found within the CQL</h3><h6>(3) Errors:</h6><ul data-testid="generic-errors-text-list"><li>Row: 7, Col:0: VSAC: 0:66 | Request failed with status code 404 for oid = 1.16.840.1.113762.1.4.1206.28 location = 7:0-7:66</li><li>Row: 5, Col:0: VSAC: 0:89 | Request failed with status code 404 for oid = 1.16.840.1.113762.1.4.1222.1334 location = 5:0-5:89</li><li>Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.840.1.113762.1.4.1106.114 location = 6:0-6:87</li></ul></div>
50
+ <div aria-live="polite" role="alert">
51
+ <h3
52
+ aria-live="polite"
53
+ role="alert"
54
+ data-testid="generic-error-text-header"
55
+ >
56
+ Following issues were found within the CQL
57
+ </h3>
58
+ <h6>(3) Errors:</h6>
59
+ <ul data-testid="generic-errors-text-list">
60
+ <li>
61
+ Row: 7, Col:0: VSAC: 0:66 | Request failed with
62
+ status code 404 for oid =
63
+ 1.16.840.1.113762.1.4.1206.28 location =
64
+ 7:0-7:66
65
+ </li>
66
+ <li>
67
+ Row: 5, Col:0: VSAC: 0:89 | Request failed with
68
+ status code 404 for oid =
69
+ 1.16.840.1.113762.1.4.1222.1334 location =
70
+ 5:0-5:89
71
+ </li>
72
+ <li>
73
+ Row: 6, Col:0: VSAC: 0:87 | Request failed with
74
+ status code 404 for oid =
75
+ 1.16.840.1.113762.1.4.1106.114 location =
76
+ 6:0-6:87
77
+ </li>
78
+ </ul>
79
+ </div>
52
80
  }
53
81
  alertProps={{
54
82
  "data-testid": "alert-dialog",
@@ -70,10 +98,9 @@ Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.8
70
98
  });
71
99
  });
72
100
  it("renders with copy button and copies text correctly with a non-array in children", async () => {
73
- const expectedReturn =
74
- `Following test case(s) were imported successfully, but the measure populations do not match the populations in the import file. The Test Case has been imported, but no expected values have been set.
101
+ const expectedReturn = `Following test case(s) were imported successfully, but the measure populations do not match the populations in the import file. The Test Case has been imported, but no expected values have been set.
75
102
  9ccff643-5ec1-4875-910e-4f602c174455
76
- 21b8a225-7cd5-4b4b-bc08-b25100e6346c`
103
+ 21b8a225-7cd5-4b4b-bc08-b25100e6346c`;
77
104
  const onClose = jest.fn();
78
105
  const mockedWriteText = jest.fn();
79
106
  navigator.clipboard = {
@@ -86,7 +113,25 @@ Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.8
86
113
  canClose={false}
87
114
  copyButton={true}
88
115
  content={
89
- <div aria-live="polite" role="alert"><div><div class="StatusHandler___StyledDiv2-sc-1tujbo9-2 gtcQQP">Following test case(s) were imported successfully, but the measure populations do not match the populations in the import file. The Test Case has been imported, but no expected values have been set.</div><ul><li data-testid="success-imports-with-warnings">9ccff643-5ec1-4875-910e-4f602c174455 </li><li data-testid="success-imports-with-warnings">21b8a225-7cd5-4b4b-bc08-b25100e6346c </li></ul></div></div>
116
+ <div aria-live="polite" role="alert">
117
+ <div>
118
+ <div class="StatusHandler___StyledDiv2-sc-1tujbo9-2 gtcQQP">
119
+ Following test case(s) were imported
120
+ successfully, but the measure populations do not
121
+ match the populations in the import file. The
122
+ Test Case has been imported, but no expected
123
+ values have been set.
124
+ </div>
125
+ <ul>
126
+ <li data-testid="success-imports-with-warnings">
127
+ 9ccff643-5ec1-4875-910e-4f602c174455{" "}
128
+ </li>
129
+ <li data-testid="success-imports-with-warnings">
130
+ 21b8a225-7cd5-4b4b-bc08-b25100e6346c{" "}
131
+ </li>
132
+ </ul>
133
+ </div>
134
+ </div>
90
135
  }
91
136
  alertProps={{
92
137
  "data-testid": "alert-dialog",
@@ -109,7 +154,7 @@ Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.8
109
154
  });
110
155
 
111
156
  it("renders with copy button and copies simple text", async () => {
112
- const expectedReturn = `hello`
157
+ const expectedReturn = `hello`;
113
158
  const onClose = jest.fn();
114
159
  const mockedWriteText = jest.fn();
115
160
  navigator.clipboard = {
@@ -146,8 +191,6 @@ Row: 6, Col:0: VSAC: 0:87 | Request failed with status code 404 for oid = 1.16.8
146
191
  expect(copySuccess).not.toBeInTheDocument();
147
192
  });
148
193
 
149
-
150
-
151
194
  it("It does not render when inivislbe", async () => {
152
195
  render(
153
196
  <MadieAlert
@@ -45,7 +45,7 @@ const DialogTesterForDiscard = () => {
45
45
  action="discard"
46
46
  dialogTitle="Discard Changes"
47
47
  name="discard your changes"
48
- continueText= "Yes, Discard All Changes"
48
+ continueText="Yes, Discard All Changes"
49
49
  cancelText="No, Keep Working"
50
50
  />
51
51
  </div>
@@ -1,116 +0,0 @@
1
-
2
- <!doctype html>
3
- <html lang="en">
4
-
5
- <head>
6
- <title>Code coverage report for react/components/Accordion</title>
7
- <meta charset="utf-8" />
8
- <link rel="stylesheet" href="../../../prettify.css" />
9
- <link rel="stylesheet" href="../../../base.css" />
10
- <link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
11
- <meta name="viewport" content="width=device-width, initial-scale=1" />
12
- <style type='text/css'>
13
- .coverage-summary .sorter {
14
- background-image: url(../../../sort-arrow-sprite.png);
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div class='wrapper'>
21
- <div class='pad1'>
22
- <h1><a href="../../../index.html">All files</a> react/components/Accordion</h1>
23
- <div class='clearfix'>
24
-
25
- <div class='fl pad1y space-right2'>
26
- <span class="strong">85% </span>
27
- <span class="quiet">Statements</span>
28
- <span class='fraction'>17/20</span>
29
- </div>
30
-
31
-
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">80% </span>
34
- <span class="quiet">Branches</span>
35
- <span class='fraction'>16/20</span>
36
- </div>
37
-
38
-
39
- <div class='fl pad1y space-right2'>
40
- <span class="strong">83.33% </span>
41
- <span class="quiet">Functions</span>
42
- <span class='fraction'>5/6</span>
43
- </div>
44
-
45
-
46
- <div class='fl pad1y space-right2'>
47
- <span class="strong">85% </span>
48
- <span class="quiet">Lines</span>
49
- <span class='fraction'>17/20</span>
50
- </div>
51
-
52
-
53
- </div>
54
- <p class="quiet">
55
- Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
- </p>
57
- <template id="filterTemplate">
58
- <div class="quiet">
59
- Filter:
60
- <input type="search" id="fileSearch">
61
- </div>
62
- </template>
63
- </div>
64
- <div class='status-line high'></div>
65
- <div class="pad1">
66
- <table class="coverage-summary">
67
- <thead>
68
- <tr>
69
- <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
70
- <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
71
- <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
72
- <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
73
- <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
74
- <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
75
- <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
76
- <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
77
- <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
78
- <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
79
- </tr>
80
- </thead>
81
- <tbody><tr>
82
- <td class="file high" data-value="index.jsx"><a href="index.jsx.html">index.jsx</a></td>
83
- <td data-value="85" class="pic high">
84
- <div class="chart"><div class="cover-fill" style="width: 85%"></div><div class="cover-empty" style="width: 15%"></div></div>
85
- </td>
86
- <td data-value="85" class="pct high">85%</td>
87
- <td data-value="20" class="abs high">17/20</td>
88
- <td data-value="80" class="pct high">80%</td>
89
- <td data-value="20" class="abs high">16/20</td>
90
- <td data-value="83.33" class="pct high">83.33%</td>
91
- <td data-value="6" class="abs high">5/6</td>
92
- <td data-value="85" class="pct high">85%</td>
93
- <td data-value="20" class="abs high">17/20</td>
94
- </tr>
95
-
96
- </tbody>
97
- </table>
98
- </div>
99
- <div class='push'></div><!-- for sticky footer -->
100
- </div><!-- /wrapper -->
101
- <div class='footer quiet pad2 space-top1 center small'>
102
- Code coverage generated by
103
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at 2024-12-11T11:54:01.778Z
105
- </div>
106
- <script src="../../../prettify.js"></script>
107
- <script>
108
- window.onload = function () {
109
- prettyPrint();
110
- };
111
- </script>
112
- <script src="../../../sorter.js"></script>
113
- <script src="../../../block-navigation.js"></script>
114
- </body>
115
- </html>
116
-