@coorpacademy/components 10.7.0 → 10.9.0

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 (421) hide show
  1. package/es/atom/autocomplete/test/fixtures.js +0 -0
  2. package/es/atom/avatar/test/fixtures.js +0 -0
  3. package/es/atom/button/test/fixtures.js +0 -0
  4. package/es/atom/button-link/index.js +10 -3
  5. package/es/atom/button-link/index.js.map +1 -1
  6. package/es/atom/card-image-preview/test/fixtures.js +15 -0
  7. package/es/atom/card-image-preview/test/fixtures.js.map +1 -0
  8. package/es/atom/catalog-section/test/fixtures.js +0 -0
  9. package/es/atom/centered-text/test/fixtures.js +0 -0
  10. package/es/atom/checkbox/test/fixtures.js +0 -0
  11. package/es/atom/clue/test/fixtures.js +0 -0
  12. package/es/atom/cta/test/fixtures.js +0 -0
  13. package/es/atom/difficulty-level/test/fixtures.js +0 -0
  14. package/es/atom/drag-and-drop/test/fixtures.js +0 -0
  15. package/es/atom/image-upload/test/fixtures.js +0 -0
  16. package/es/atom/input-checkbox/test/fixtures.js +0 -0
  17. package/es/atom/input-color/test/fixtures.js +0 -0
  18. package/es/atom/input-doublestep/test/fixtures.js +0 -0
  19. package/es/atom/input-html/test/fixtures.js +0 -0
  20. package/es/atom/input-readonly/test/fixtures.js +0 -0
  21. package/es/atom/input-switch/test/fixtures.js +0 -0
  22. package/es/atom/input-text/test/fixtures.js +0 -0
  23. package/es/atom/input-textarea/test/fixtures.js +0 -0
  24. package/es/atom/label/test/fixtures.js +0 -0
  25. package/es/atom/life/test/fixtures.js +0 -0
  26. package/es/atom/link/test/fixtures.js +0 -0
  27. package/es/atom/loader/test/fixtures.js +0 -0
  28. package/es/atom/notification/test/fixtures.js +0 -0
  29. package/es/atom/picture/test/fixtures.js +0 -0
  30. package/es/atom/picture-background/test/fixtures.js +0 -0
  31. package/es/atom/promo-code/test/fixtures.js +0 -0
  32. package/es/atom/provider/test/fixtures.js +0 -0
  33. package/es/atom/radio-group/test/fixtures.js +0 -0
  34. package/es/atom/range/test/fixtures.js +0 -0
  35. package/es/atom/resource-miniature/test/fixtures.js +0 -0
  36. package/es/atom/select/test/fixtures.js +4 -0
  37. package/es/atom/select/test/fixtures.js.map +1 -1
  38. package/es/atom/slide/test/fixtures.js +0 -0
  39. package/es/atom/social-link/test/fixtures.js +0 -0
  40. package/es/atom/spinner/test/fixtures.js +0 -0
  41. package/es/atom/tab/test/fixtures.js +0 -0
  42. package/es/atom/tab-content/test/fixtures.js +0 -0
  43. package/es/atom/tag/index.js +1 -1
  44. package/es/atom/tag/index.js.map +1 -1
  45. package/es/atom/title/test/fixtures.js +0 -0
  46. package/es/atom/video-upload/test/fixtures.js +0 -0
  47. package/es/hoc/animation/test/fixtures.js +0 -0
  48. package/es/hoc/animation-scheduler/test/fixtures.js +0 -0
  49. package/es/hoc/swapper/test/fixtures.js +0 -0
  50. package/es/hoc/transition/test/fixtures.js +0 -0
  51. package/es/molecule/add-to-my-list/test/fixtures.js +0 -0
  52. package/es/molecule/answer/test/fixtures.js +0 -0
  53. package/es/molecule/audio/test/fixtures.js +0 -0
  54. package/es/molecule/battle-request/test/fixtures.js +0 -0
  55. package/es/molecule/brand-card/test/fixtures.js +0 -0
  56. package/es/molecule/brand-card-create/test/fixtures.js +0 -0
  57. package/es/molecule/brand-create-form/test/fixtures.js +0 -0
  58. package/es/molecule/brand-download-box/test/fixtures.js +0 -0
  59. package/es/molecule/brand-form-group/test/fixtures.js +0 -0
  60. package/es/molecule/brand-tabs/test/fixtures.js +0 -0
  61. package/es/molecule/brand-upload-box/test/fixtures.js +0 -0
  62. package/es/molecule/breadcrumbs/test/fixtures.js +0 -0
  63. package/es/molecule/card/test/fixtures.js +0 -0
  64. package/es/molecule/card-content/test/fixtures.js +0 -0
  65. package/es/molecule/card-with-button/test/fixtures.js +0 -0
  66. package/es/molecule/cockpit-popin/test/fixtures.js +0 -0
  67. package/es/molecule/cookie-banner/test/fixtures.js +0 -0
  68. package/es/molecule/course-section/test/fixtures.js +15 -0
  69. package/es/molecule/course-section/test/fixtures.js.map +1 -0
  70. package/es/molecule/course-sections/test/fixtures.js +15 -0
  71. package/es/molecule/course-sections/test/fixtures.js.map +1 -0
  72. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
  73. package/es/molecule/dashboard/cards-list/test/fixtures.js +0 -0
  74. package/es/molecule/dashboard/news-list/test/fixtures.js +0 -0
  75. package/es/molecule/dashboard/review-banner/index.js +79 -0
  76. package/es/molecule/dashboard/review-banner/index.js.map +1 -0
  77. package/es/molecule/dashboard/review-banner/style.css +186 -0
  78. package/es/molecule/dashboard/review-banner/test/fixtures/default.js +11 -0
  79. package/es/molecule/dashboard/review-banner/test/fixtures/default.js.map +1 -0
  80. package/es/molecule/dashboard/review-banner/test/fixtures.js +13 -0
  81. package/es/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  82. package/es/molecule/dashboard/start-battle/test/fixtures.js +0 -0
  83. package/es/molecule/discipline-cta/test/fixtures.js +0 -0
  84. package/es/molecule/discipline-header/test/fixtures.js +0 -0
  85. package/es/molecule/discipline-partners/test/fixtures.js +0 -0
  86. package/es/molecule/discipline-scope/test/fixtures.js +0 -0
  87. package/es/molecule/drag-and-drop/test/fixtures.js +0 -0
  88. package/es/molecule/draggable/test/fixtures.js +13 -0
  89. package/es/molecule/draggable/test/fixtures.js.map +1 -0
  90. package/es/molecule/draggable-list/test/fixtures.js +15 -0
  91. package/es/molecule/draggable-list/test/fixtures.js.map +1 -0
  92. package/es/molecule/external-content-button/test/fixtures.js +0 -0
  93. package/es/molecule/external-content-viewer/test/fixtures.js +0 -0
  94. package/es/molecule/feedback/test/fixtures.js +0 -0
  95. package/es/molecule/filters/test/fixtures.js +0 -0
  96. package/es/molecule/forum/forum-comment/test/fixtures.js +0 -0
  97. package/es/molecule/forum/forum-post/test/fixtures.js +0 -0
  98. package/es/molecule/forum/forum-thread/test/fixtures.js +0 -0
  99. package/es/molecule/hero/test/fixtures.js +0 -0
  100. package/es/molecule/login-alert/test/fixtures.js +0 -0
  101. package/es/molecule/menu-list/test/fixtures.js +0 -0
  102. package/es/molecule/message-popin/test/fixtures.js +0 -0
  103. package/es/molecule/modal/test/fixtures.js +0 -0
  104. package/es/molecule/module-bubble/test/fixtures.js +0 -0
  105. package/es/molecule/module-card/test/fixtures.js +0 -0
  106. package/es/molecule/news/test/fixtures.js +0 -0
  107. package/es/molecule/notification-banner/test/fixtures.js +0 -0
  108. package/es/molecule/pagination/test/fixtures.js +0 -0
  109. package/es/molecule/payment-form/test/fixtures.js +0 -0
  110. package/es/molecule/pdf/test/fixtures.js +0 -0
  111. package/es/molecule/product-card/test/fixtures.js +0 -0
  112. package/es/molecule/progress-bar/test/fixtures.js +0 -0
  113. package/es/molecule/questions/drop-down/test/fixtures.js +0 -0
  114. package/es/molecule/questions/free-text/test/fixtures.js +4 -2
  115. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -1
  116. package/es/molecule/questions/qcm/test/fixtures.js +0 -0
  117. package/es/molecule/questions/qcm-drag/test/fixtures.js +0 -0
  118. package/es/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
  119. package/es/molecule/questions/question-range/test/fixtures.js +0 -0
  120. package/es/molecule/questions/template/test/fixtures.js +0 -0
  121. package/es/molecule/resource-player/test/fixtures.js +0 -0
  122. package/es/molecule/review-correction-popin/index.js +103 -0
  123. package/es/molecule/review-correction-popin/index.js.map +1 -0
  124. package/es/molecule/review-correction-popin/style.css +315 -0
  125. package/es/molecule/review-correction-popin/test/fixtures/right.js +17 -0
  126. package/es/molecule/review-correction-popin/test/fixtures/right.js.map +1 -0
  127. package/es/molecule/review-correction-popin/test/fixtures/wrong.js +19 -0
  128. package/es/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -0
  129. package/es/molecule/review-correction-popin/test/fixtures.js +15 -0
  130. package/es/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  131. package/es/molecule/scope-content/test/fixtures.js +0 -0
  132. package/es/molecule/scope-tabs/test/fixtures.js +0 -0
  133. package/es/molecule/search/test/fixtures.js +0 -0
  134. package/es/molecule/search-form/test/fixtures.js +0 -0
  135. package/es/molecule/select-multiple/test/fixtures.js +0 -0
  136. package/es/molecule/setup-cohort-item/test/fixtures.js +0 -0
  137. package/es/molecule/setup-section/test/fixtures.js +0 -0
  138. package/es/molecule/setup-sections/test/fixtures.js +0 -0
  139. package/es/molecule/setup-slide/test/fixtures.js +0 -0
  140. package/es/molecule/setup-slider/test/fixtures.js +0 -0
  141. package/es/molecule/share/test/fixtures.js +0 -0
  142. package/es/molecule/ssmenu-list/test/fixtures.js +0 -0
  143. package/es/molecule/subscription-freemium/test/fixtures.js +0 -0
  144. package/es/molecule/subscription-premium/test/fixtures.js +0 -0
  145. package/es/molecule/table/test/fixtures.js +0 -0
  146. package/es/molecule/teams-popin/test/fixtures.js +0 -0
  147. package/es/molecule/theme-image/test/fixtures.js +0 -0
  148. package/es/molecule/titled-checkbox/test/fixtures.js +0 -0
  149. package/es/molecule/unsubscribe/test/fixtures.js +0 -0
  150. package/es/molecule/video-iframe/test/fixtures.js +0 -0
  151. package/es/molecule/video-player/test/fixtures.js +0 -0
  152. package/es/molecule/wizard-summary/test/fixtures.js +2 -0
  153. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -1
  154. package/es/organism/accordion/container/test/fixtures.js +0 -0
  155. package/es/organism/accordion/part/test/fixtures.js +0 -0
  156. package/es/organism/accordion/toggler/test/fixtures.js +0 -0
  157. package/es/organism/brand-dashboard/test/fixtures.js +0 -0
  158. package/es/organism/brand-form/test/fixtures.js +0 -0
  159. package/es/organism/brand-table/test/fixtures.js +0 -0
  160. package/es/organism/brand-upload/test/fixtures.js +0 -0
  161. package/es/organism/cards-grid/test/fixtures.js +0 -0
  162. package/es/organism/cart/test/fixtures.js +0 -0
  163. package/es/organism/discussion/test/fixtures.js +0 -0
  164. package/es/organism/get-the-app/test/fixtures.js +0 -0
  165. package/es/organism/grid-list/test/fixtures.js +0 -0
  166. package/es/organism/header/test/fixtures.js +0 -0
  167. package/es/organism/hero/test/fixtures.js +0 -0
  168. package/es/organism/list-items/index.js +2 -2
  169. package/es/organism/list-items/index.js.map +1 -1
  170. package/es/organism/mooc/image-slider/test/fixtures.js +0 -0
  171. package/es/organism/mooc-footer/test/fixtures.js +0 -0
  172. package/es/organism/mooc-header/test/fixtures.js +0 -0
  173. package/es/organism/playlist-translation/test/fixtures.js +15 -0
  174. package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
  175. package/es/organism/popin/test/fixtures.js +0 -0
  176. package/es/organism/resource-browser/test/fixtures.js +0 -0
  177. package/es/organism/settings/test/fixtures.js +0 -0
  178. package/es/organism/setup-header/test/fixtures.js +0 -0
  179. package/es/organism/sidebar/test/fixtures.js +0 -0
  180. package/es/organism/slider/test/fixtures.js +0 -0
  181. package/es/organism/user-preferences/test/fixtures.js +0 -0
  182. package/es/organism/wizard-contents/index.js +2 -2
  183. package/es/organism/wizard-contents/index.js.map +1 -1
  184. package/es/organism/wizard-contents/test/fixtures.js +2 -0
  185. package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
  186. package/es/template/activity/test/fixtures.js +0 -0
  187. package/es/template/app-player/loading/test/fixtures.js +0 -0
  188. package/es/template/app-player/player/slides/footer/test/fixtures.js +0 -0
  189. package/es/template/app-player/player/slides/header/test/fixtures.js +0 -0
  190. package/es/template/app-player/player/slides/test/fixtures.js +0 -0
  191. package/es/template/app-player/player/test/fixtures.js +0 -0
  192. package/es/template/app-player/popin-correction/test/fixtures.js +0 -0
  193. package/es/template/app-player/popin-end/test/fixtures.js +0 -0
  194. package/es/template/app-player/popin-header/test/fixtures.js +0 -0
  195. package/es/template/back-office/brand-create/test/fixtures.js +0 -0
  196. package/es/template/back-office/brand-list/test/fixtures.js +0 -0
  197. package/es/template/back-office/brand-update/test/fixtures.js +2 -0
  198. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  199. package/es/template/back-office/dashboard-preview/test/fixtures.js +0 -0
  200. package/es/template/battle-requests/test/fixtures.js +0 -0
  201. package/es/template/cockpit/jw-uploader/test/fixtures.js +0 -0
  202. package/es/template/common/authors/test/fixtures.js +0 -0
  203. package/es/template/common/coorp-header/test/fixtures.js +0 -0
  204. package/es/template/common/dashboard/test/fixtures.js +0 -0
  205. package/es/template/common/discipline/test/fixtures.js +0 -0
  206. package/es/template/common/search-page/test/fixtures.js +0 -0
  207. package/es/template/external-course/test/fixtures.js +0 -0
  208. package/es/template/teams-dashboard/test/fixtures.js +0 -0
  209. package/es/util/button-icons.js +2 -1
  210. package/es/util/button-icons.js.map +1 -1
  211. package/lib/atom/autocomplete/test/fixtures.js +0 -0
  212. package/lib/atom/avatar/test/fixtures.js +0 -0
  213. package/lib/atom/button/test/fixtures.js +0 -0
  214. package/lib/atom/button-link/index.js +11 -3
  215. package/lib/atom/button-link/index.js.map +1 -1
  216. package/lib/atom/card-image-preview/test/fixtures.js +25 -0
  217. package/lib/atom/card-image-preview/test/fixtures.js.map +1 -0
  218. package/lib/atom/catalog-section/test/fixtures.js +0 -0
  219. package/lib/atom/centered-text/test/fixtures.js +0 -0
  220. package/lib/atom/checkbox/test/fixtures.js +0 -0
  221. package/lib/atom/clue/test/fixtures.js +0 -0
  222. package/lib/atom/cta/test/fixtures.js +0 -0
  223. package/lib/atom/difficulty-level/test/fixtures.js +0 -0
  224. package/lib/atom/drag-and-drop/test/fixtures.js +0 -0
  225. package/lib/atom/image-upload/test/fixtures.js +0 -0
  226. package/lib/atom/input-checkbox/test/fixtures.js +0 -0
  227. package/lib/atom/input-color/test/fixtures.js +0 -0
  228. package/lib/atom/input-doublestep/test/fixtures.js +0 -0
  229. package/lib/atom/input-html/test/fixtures.js +0 -0
  230. package/lib/atom/input-readonly/test/fixtures.js +0 -0
  231. package/lib/atom/input-switch/test/fixtures.js +0 -0
  232. package/lib/atom/input-text/test/fixtures.js +0 -0
  233. package/lib/atom/input-textarea/test/fixtures.js +0 -0
  234. package/lib/atom/label/test/fixtures.js +0 -0
  235. package/lib/atom/life/test/fixtures.js +0 -0
  236. package/lib/atom/link/test/fixtures.js +0 -0
  237. package/lib/atom/loader/test/fixtures.js +0 -0
  238. package/lib/atom/notification/test/fixtures.js +0 -0
  239. package/lib/atom/picture/test/fixtures.js +0 -0
  240. package/lib/atom/picture-background/test/fixtures.js +0 -0
  241. package/lib/atom/promo-code/test/fixtures.js +0 -0
  242. package/lib/atom/provider/test/fixtures.js +0 -0
  243. package/lib/atom/radio-group/test/fixtures.js +0 -0
  244. package/lib/atom/range/test/fixtures.js +0 -0
  245. package/lib/atom/resource-miniature/test/fixtures.js +0 -0
  246. package/lib/atom/select/test/fixtures.js +6 -0
  247. package/lib/atom/select/test/fixtures.js.map +1 -1
  248. package/lib/atom/slide/test/fixtures.js +0 -0
  249. package/lib/atom/social-link/test/fixtures.js +0 -0
  250. package/lib/atom/spinner/test/fixtures.js +0 -0
  251. package/lib/atom/tab/test/fixtures.js +0 -0
  252. package/lib/atom/tab-content/test/fixtures.js +0 -0
  253. package/lib/atom/tag/index.js +1 -1
  254. package/lib/atom/tag/index.js.map +1 -1
  255. package/lib/atom/title/test/fixtures.js +0 -0
  256. package/lib/atom/video-upload/test/fixtures.js +0 -0
  257. package/lib/hoc/animation/test/fixtures.js +0 -0
  258. package/lib/hoc/animation-scheduler/test/fixtures.js +0 -0
  259. package/lib/hoc/swapper/test/fixtures.js +0 -0
  260. package/lib/hoc/transition/test/fixtures.js +0 -0
  261. package/lib/molecule/add-to-my-list/test/fixtures.js +0 -0
  262. package/lib/molecule/answer/test/fixtures.js +0 -0
  263. package/lib/molecule/audio/test/fixtures.js +0 -0
  264. package/lib/molecule/battle-request/test/fixtures.js +0 -0
  265. package/lib/molecule/brand-card/test/fixtures.js +0 -0
  266. package/lib/molecule/brand-card-create/test/fixtures.js +0 -0
  267. package/lib/molecule/brand-create-form/test/fixtures.js +0 -0
  268. package/lib/molecule/brand-download-box/test/fixtures.js +0 -0
  269. package/lib/molecule/brand-form-group/test/fixtures.js +0 -0
  270. package/lib/molecule/brand-tabs/test/fixtures.js +0 -0
  271. package/lib/molecule/brand-upload-box/test/fixtures.js +0 -0
  272. package/lib/molecule/breadcrumbs/test/fixtures.js +0 -0
  273. package/lib/molecule/card/test/fixtures.js +0 -0
  274. package/lib/molecule/card-content/test/fixtures.js +0 -0
  275. package/lib/molecule/card-with-button/test/fixtures.js +0 -0
  276. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -0
  277. package/lib/molecule/cookie-banner/test/fixtures.js +0 -0
  278. package/lib/molecule/course-section/test/fixtures.js +25 -0
  279. package/lib/molecule/course-section/test/fixtures.js.map +1 -0
  280. package/lib/molecule/course-sections/test/fixtures.js +25 -0
  281. package/lib/molecule/course-sections/test/fixtures.js.map +1 -0
  282. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
  283. package/lib/molecule/dashboard/cards-list/test/fixtures.js +0 -0
  284. package/lib/molecule/dashboard/news-list/test/fixtures.js +0 -0
  285. package/lib/molecule/dashboard/review-banner/index.js +94 -0
  286. package/lib/molecule/dashboard/review-banner/index.js.map +1 -0
  287. package/lib/molecule/dashboard/review-banner/style.css +186 -0
  288. package/lib/molecule/dashboard/review-banner/test/fixtures/default.js +16 -0
  289. package/lib/molecule/dashboard/review-banner/test/fixtures/default.js.map +1 -0
  290. package/lib/molecule/dashboard/review-banner/test/fixtures.js +22 -0
  291. package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  292. package/lib/molecule/dashboard/start-battle/test/fixtures.js +0 -0
  293. package/lib/molecule/discipline-cta/test/fixtures.js +0 -0
  294. package/lib/molecule/discipline-header/test/fixtures.js +0 -0
  295. package/lib/molecule/discipline-partners/test/fixtures.js +0 -0
  296. package/lib/molecule/discipline-scope/test/fixtures.js +0 -0
  297. package/lib/molecule/drag-and-drop/test/fixtures.js +0 -0
  298. package/lib/molecule/draggable/test/fixtures.js +22 -0
  299. package/lib/molecule/draggable/test/fixtures.js.map +1 -0
  300. package/lib/molecule/draggable-list/test/fixtures.js +25 -0
  301. package/lib/molecule/draggable-list/test/fixtures.js.map +1 -0
  302. package/lib/molecule/external-content-button/test/fixtures.js +0 -0
  303. package/lib/molecule/external-content-viewer/test/fixtures.js +0 -0
  304. package/lib/molecule/feedback/test/fixtures.js +0 -0
  305. package/lib/molecule/filters/test/fixtures.js +0 -0
  306. package/lib/molecule/forum/forum-comment/test/fixtures.js +0 -0
  307. package/lib/molecule/forum/forum-post/test/fixtures.js +0 -0
  308. package/lib/molecule/forum/forum-thread/test/fixtures.js +0 -0
  309. package/lib/molecule/hero/test/fixtures.js +0 -0
  310. package/lib/molecule/login-alert/test/fixtures.js +0 -0
  311. package/lib/molecule/menu-list/test/fixtures.js +0 -0
  312. package/lib/molecule/message-popin/test/fixtures.js +0 -0
  313. package/lib/molecule/modal/test/fixtures.js +0 -0
  314. package/lib/molecule/module-bubble/test/fixtures.js +0 -0
  315. package/lib/molecule/module-card/test/fixtures.js +0 -0
  316. package/lib/molecule/news/test/fixtures.js +0 -0
  317. package/lib/molecule/notification-banner/test/fixtures.js +0 -0
  318. package/lib/molecule/pagination/test/fixtures.js +0 -0
  319. package/lib/molecule/payment-form/test/fixtures.js +0 -0
  320. package/lib/molecule/pdf/test/fixtures.js +0 -0
  321. package/lib/molecule/product-card/test/fixtures.js +0 -0
  322. package/lib/molecule/progress-bar/test/fixtures.js +0 -0
  323. package/lib/molecule/questions/drop-down/test/fixtures.js +0 -0
  324. package/lib/molecule/questions/free-text/test/fixtures.js +5 -2
  325. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -1
  326. package/lib/molecule/questions/qcm/test/fixtures.js +0 -0
  327. package/lib/molecule/questions/qcm-drag/test/fixtures.js +0 -0
  328. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
  329. package/lib/molecule/questions/question-range/test/fixtures.js +0 -0
  330. package/lib/molecule/questions/template/test/fixtures.js +0 -0
  331. package/lib/molecule/resource-player/test/fixtures.js +0 -0
  332. package/lib/molecule/review-correction-popin/index.js +116 -0
  333. package/lib/molecule/review-correction-popin/index.js.map +1 -0
  334. package/lib/molecule/review-correction-popin/style.css +315 -0
  335. package/lib/molecule/review-correction-popin/test/fixtures/right.js +22 -0
  336. package/lib/molecule/review-correction-popin/test/fixtures/right.js.map +1 -0
  337. package/lib/molecule/review-correction-popin/test/fixtures/wrong.js +24 -0
  338. package/lib/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -0
  339. package/lib/molecule/review-correction-popin/test/fixtures.js +25 -0
  340. package/lib/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  341. package/lib/molecule/scope-content/test/fixtures.js +0 -0
  342. package/lib/molecule/scope-tabs/test/fixtures.js +0 -0
  343. package/lib/molecule/search/test/fixtures.js +0 -0
  344. package/lib/molecule/search-form/test/fixtures.js +0 -0
  345. package/lib/molecule/select-multiple/test/fixtures.js +0 -0
  346. package/lib/molecule/setup-cohort-item/test/fixtures.js +0 -0
  347. package/lib/molecule/setup-section/test/fixtures.js +0 -0
  348. package/lib/molecule/setup-sections/test/fixtures.js +0 -0
  349. package/lib/molecule/setup-slide/test/fixtures.js +0 -0
  350. package/lib/molecule/setup-slider/test/fixtures.js +0 -0
  351. package/lib/molecule/share/test/fixtures.js +0 -0
  352. package/lib/molecule/ssmenu-list/test/fixtures.js +0 -0
  353. package/lib/molecule/subscription-freemium/test/fixtures.js +0 -0
  354. package/lib/molecule/subscription-premium/test/fixtures.js +0 -0
  355. package/lib/molecule/table/test/fixtures.js +0 -0
  356. package/lib/molecule/teams-popin/test/fixtures.js +0 -0
  357. package/lib/molecule/theme-image/test/fixtures.js +0 -0
  358. package/lib/molecule/titled-checkbox/test/fixtures.js +0 -0
  359. package/lib/molecule/unsubscribe/test/fixtures.js +0 -0
  360. package/lib/molecule/video-iframe/test/fixtures.js +0 -0
  361. package/lib/molecule/video-player/test/fixtures.js +0 -0
  362. package/lib/molecule/wizard-summary/test/fixtures.js +3 -0
  363. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -1
  364. package/lib/organism/accordion/container/test/fixtures.js +0 -0
  365. package/lib/organism/accordion/part/test/fixtures.js +0 -0
  366. package/lib/organism/accordion/toggler/test/fixtures.js +0 -0
  367. package/lib/organism/brand-dashboard/test/fixtures.js +0 -0
  368. package/lib/organism/brand-form/test/fixtures.js +0 -0
  369. package/lib/organism/brand-table/test/fixtures.js +0 -0
  370. package/lib/organism/brand-upload/test/fixtures.js +0 -0
  371. package/lib/organism/cards-grid/test/fixtures.js +0 -0
  372. package/lib/organism/cart/test/fixtures.js +0 -0
  373. package/lib/organism/discussion/test/fixtures.js +0 -0
  374. package/lib/organism/get-the-app/test/fixtures.js +0 -0
  375. package/lib/organism/grid-list/test/fixtures.js +0 -0
  376. package/lib/organism/header/test/fixtures.js +0 -0
  377. package/lib/organism/hero/test/fixtures.js +0 -0
  378. package/lib/organism/list-items/index.js +2 -2
  379. package/lib/organism/list-items/index.js.map +1 -1
  380. package/lib/organism/mooc/image-slider/test/fixtures.js +0 -0
  381. package/lib/organism/mooc-footer/test/fixtures.js +0 -0
  382. package/lib/organism/mooc-header/test/fixtures.js +0 -0
  383. package/lib/organism/playlist-translation/test/fixtures.js +25 -0
  384. package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
  385. package/lib/organism/popin/test/fixtures.js +0 -0
  386. package/lib/organism/resource-browser/test/fixtures.js +0 -0
  387. package/lib/organism/settings/test/fixtures.js +0 -0
  388. package/lib/organism/setup-header/test/fixtures.js +0 -0
  389. package/lib/organism/sidebar/test/fixtures.js +0 -0
  390. package/lib/organism/slider/test/fixtures.js +0 -0
  391. package/lib/organism/user-preferences/test/fixtures.js +0 -0
  392. package/lib/organism/wizard-contents/index.js +2 -2
  393. package/lib/organism/wizard-contents/index.js.map +1 -1
  394. package/lib/organism/wizard-contents/test/fixtures.js +3 -0
  395. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
  396. package/lib/template/activity/test/fixtures.js +0 -0
  397. package/lib/template/app-player/loading/test/fixtures.js +0 -0
  398. package/lib/template/app-player/player/slides/footer/test/fixtures.js +0 -0
  399. package/lib/template/app-player/player/slides/header/test/fixtures.js +0 -0
  400. package/lib/template/app-player/player/slides/test/fixtures.js +0 -0
  401. package/lib/template/app-player/player/test/fixtures.js +0 -0
  402. package/lib/template/app-player/popin-correction/test/fixtures.js +0 -0
  403. package/lib/template/app-player/popin-end/test/fixtures.js +0 -0
  404. package/lib/template/app-player/popin-header/test/fixtures.js +0 -0
  405. package/lib/template/back-office/brand-create/test/fixtures.js +0 -0
  406. package/lib/template/back-office/brand-list/test/fixtures.js +0 -0
  407. package/lib/template/back-office/brand-update/test/fixtures.js +3 -0
  408. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  409. package/lib/template/back-office/dashboard-preview/test/fixtures.js +0 -0
  410. package/lib/template/battle-requests/test/fixtures.js +0 -0
  411. package/lib/template/cockpit/jw-uploader/test/fixtures.js +0 -0
  412. package/lib/template/common/authors/test/fixtures.js +0 -0
  413. package/lib/template/common/coorp-header/test/fixtures.js +0 -0
  414. package/lib/template/common/dashboard/test/fixtures.js +0 -0
  415. package/lib/template/common/discipline/test/fixtures.js +0 -0
  416. package/lib/template/common/search-page/test/fixtures.js +0 -0
  417. package/lib/template/external-course/test/fixtures.js +0 -0
  418. package/lib/template/teams-dashboard/test/fixtures.js +0 -0
  419. package/lib/util/button-icons.js +1 -0
  420. package/lib/util/button-icons.js.map +1 -1
  421. package/package.json +2 -2
@@ -0,0 +1,186 @@
1
+ @value breakpoints: "../../../variables/breakpoints.css";
2
+ @value colors: "../../../variables/colors.css";
3
+ @value tablet from breakpoints;
4
+ @value mobile from breakpoints;
5
+ @value white from colors;
6
+ @value battle_bg from colors;
7
+
8
+ .root {
9
+ display: flex;
10
+ justify-content: center;
11
+ padding: 24px 30px;
12
+ font-family: Gilroy;
13
+ }
14
+
15
+ .container {
16
+ width: 100%;
17
+ max-width: 1080px;
18
+ height: 214px;
19
+ display: flex;
20
+ justify-content: center;
21
+ position: relative;
22
+ top: 0px;
23
+ left: 0px;
24
+ background: battle_bg;
25
+ background-image: url(https://static.coorpacademy.com/site/startBattleBackground.png);
26
+ background-size: cover;
27
+ border-radius: 16px;
28
+ }
29
+
30
+ .container:hover .right, .container:hover .left {
31
+ animation-play-state: running;
32
+ }
33
+
34
+ .banner {
35
+ width: 100%;
36
+ height: 100%;
37
+ display: flex;
38
+ flex-direction: row;
39
+ align-items: center;
40
+ justify-content: space-between;
41
+ }
42
+
43
+ .left {
44
+ width: 210px;
45
+ height: 123px;
46
+ position: relative;
47
+ top: -57px;
48
+ left: 2%;
49
+ animation-play-state: paused;
50
+ animation-name: leftAnimation;
51
+ animation-duration: 2s;
52
+ animation-delay: 0;
53
+ animation-iteration-count: infinite;
54
+ animation-direction: forward;
55
+ animation-timing-function: ease-in-out;
56
+ }
57
+
58
+ .right {
59
+ position: relative;
60
+ bottom: -32px;
61
+ width: 210px;
62
+ height: 180px;
63
+ right: 2%;
64
+ animation-play-state: paused;
65
+ animation-name: rightAnimation;
66
+ animation-duration: 2s;
67
+ animation-delay: 0;
68
+ animation-iteration-count: infinite;
69
+ animation-direction: forward;
70
+ animation-timing-function: ease-in-out;
71
+ }
72
+
73
+ .image {
74
+ width: 100%;
75
+ height: 100%;
76
+ }
77
+
78
+ .middle {
79
+ display: flex;
80
+ flex-direction: column;
81
+ align-items: center;
82
+ }
83
+
84
+ .title {
85
+ padding-top: 30px;
86
+ font-weight: 800;
87
+ font-size: 48px;
88
+ line-height: 59px;
89
+ color: white;
90
+ display: block;
91
+ }
92
+
93
+ .subtitle {
94
+ font-style: normal;
95
+ font-weight: normal;
96
+ font-size: 20px;
97
+ line-height: 24px;
98
+ opacity: 0.9;
99
+ display: block;
100
+ color: white;
101
+ text-align: center;
102
+ }
103
+
104
+ .cta {
105
+ margin-top: 22px;
106
+ max-width: 200px;
107
+ border-radius: 36px;
108
+ font-style: normal;
109
+ font-weight: bold;
110
+ font-size: 16px;
111
+ }
112
+
113
+ @media tablet {
114
+ .left {
115
+ width: 170px;
116
+ height: 100px;
117
+ top: -67px
118
+ }
119
+
120
+ .right {
121
+ width: 170px;
122
+ height: 146px;
123
+ bottom: -45px;
124
+ }
125
+
126
+ .title {
127
+ padding-top: 5px;
128
+ font-size: 32px;
129
+ line-height: 39px;
130
+ }
131
+
132
+ .subtitle {
133
+ font-size: 16px;
134
+ line-height: 19px;
135
+ }
136
+
137
+ .cta {
138
+ max-width: 175px;
139
+ }
140
+ }
141
+
142
+ @media mobile {
143
+ .container {
144
+ height: 161px;
145
+ max-width: 327px;
146
+ }
147
+
148
+ .banner {
149
+ justify-content: center;
150
+ }
151
+
152
+ .right {
153
+ display: none;
154
+ }
155
+
156
+ .left {
157
+ display: none;
158
+ }
159
+
160
+ .title {
161
+ padding-top: 5px;
162
+ font-size: 32px;
163
+ line-height: 39px;
164
+ }
165
+
166
+ .subtitle {
167
+ font-size: 16px;
168
+ line-height: 19px;
169
+ }
170
+
171
+ .cta {
172
+ max-width: 150px;
173
+ }
174
+ }
175
+
176
+ @keyframes rightAnimation {
177
+ 0% {transform: translate3d(0, 10px, 0);}
178
+ 50% {transform: translate3d(0, 0, 0);}
179
+ 100% {transform: translate3d(0, 10px, 0);}
180
+ }
181
+
182
+ @keyframes leftAnimation {
183
+ 0% {transform: translate3d(0, 0, 0);}
184
+ 50% {transform: translate3d(0, 10px, 0);}
185
+ 100% {transform: translate3d(0, 0, 0);}
186
+ }
@@ -0,0 +1,11 @@
1
+ export default {
2
+ props: {
3
+ title: 'Revision mode',
4
+ subtitle: 'Lorem ipsum dolor sit amet consectur',
5
+ cta: {
6
+ label: 'Start revision',
7
+ onClick: () => {}
8
+ }
9
+ }
10
+ };
11
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/molecule/dashboard/review-banner/test/fixtures/default.js"],"names":["props","title","subtitle","cta","label","onClick"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,eADF;AAELC,IAAAA,QAAQ,EAAE,sCAFL;AAGLC,IAAAA,GAAG,EAAE;AACHC,MAAAA,KAAK,EAAE,gBADJ;AAEHC,MAAAA,OAAO,EAAE,MAAM,CAAE;AAFd;AAHA;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Revision mode',\n subtitle: 'Lorem ipsum dolor sit amet consectur',\n cta: {\n label: 'Start revision',\n onClick: () => {}\n }\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,13 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../test/helpers/render-component';
4
+ import MoleculeDashboardReviewBanner from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('MoleculeDashboard › MoleculeDashboardReviewBanner > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(MoleculeDashboardReviewBanner.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "MoleculeDashboard.MoleculeDashboardReviewBanner.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('MoleculeDashboard › MoleculeDashboardReviewBanner › Default › should be rendered', renderComponentMacro, MoleculeDashboardReviewBanner, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/dashboard/review-banner/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDashboardReviewBanner","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,iFAAD,EAAoFK,CAAC,IAAI;AAC3FA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,6BAA6B,CAACI,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2EAA0EF,GAAI,mEAAvG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,6BAA3G,EAA0IC,cAA1I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeDashboardReviewBanner from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('MoleculeDashboard › MoleculeDashboardReviewBanner > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDashboardReviewBanner.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeDashboard.MoleculeDashboardReviewBanner.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeDashboard › MoleculeDashboardReviewBanner › Default › should be rendered', renderComponentMacro, MoleculeDashboardReviewBanner, fixtureDefault);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,13 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeDraggable from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('Molecule › MoleculeDraggable > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(MoleculeDraggable.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "Molecule.MoleculeDraggable.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('Molecule › MoleculeDraggable › Default › should be rendered', renderComponentMacro, MoleculeDraggable, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/draggable/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDraggable","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,4DAAD,EAA+DK,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,iBAAiB,CAACI,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGC,cAAzG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDraggable from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Molecule › MoleculeDraggable > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDraggable.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDraggable.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDraggable › Default › should be rendered', renderComponentMacro, MoleculeDraggable, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -0,0 +1,15 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeDraggableList from '..';
5
+ import fixtureCourseSections from './fixtures/course-sections';
6
+ import fixtureDashboardSections from './fixtures/dashboard-sections';
7
+ test('Molecule › MoleculeDraggableList > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(MoleculeDraggableList.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Molecule.MoleculeDraggableList.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Molecule › MoleculeDraggableList › CourseSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureCourseSections);
14
+ test('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureDashboardSections);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/draggable-list/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDraggableList","fixtureCourseSections","fixtureDashboardSections","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,qBAAP,MAAkC,IAAlC;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,wBAAP,MAAqC,+BAArC;AAEAL,IAAI,CAAC,gEAAD,EAAmEM,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,qBAAqB,CAACK,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,qBAAjG,EAAwHC,qBAAxH,CAAJ;AACAJ,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,qBAApG,EAA2HE,wBAA3H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDraggableList from '..';\nimport fixtureCourseSections from './fixtures/course-sections';\nimport fixtureDashboardSections from './fixtures/dashboard-sections';\n\ntest('Molecule › MoleculeDraggableList > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDraggableList.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDraggableList.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDraggableList › CourseSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureCourseSections);\ntest('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureDashboardSections);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -3,7 +3,8 @@ import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../../test/helpers/render-component';
4
4
  import MoleculeQuestionsFreeText from '..';
5
5
  import fixtureDefault from './fixtures/default';
6
- import fixtureWithDefaultValue from './fixtures/with-default-value';
6
+ import fixtureWithValueOnChange from './fixtures/with-value-on-change';
7
+ import fixtureWithValue from './fixtures/with-value';
7
8
  test('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTypes', t => {
8
9
  t.pass();
9
10
  forEach(MoleculeQuestionsFreeText.propTypes, (value, key) => {
@@ -11,5 +12,6 @@ test('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTy
11
12
  });
12
13
  });
13
14
  test('MoleculeQuestions › MoleculeQuestionsFreeText › Default › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureDefault);
14
- test('MoleculeQuestions › MoleculeQuestionsFreeText › WithDefaultValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithDefaultValue);
15
+ test('MoleculeQuestions › MoleculeQuestionsFreeText › WithValueOnChange › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValueOnChange);
16
+ test('MoleculeQuestions › MoleculeQuestionsFreeText › WithValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValue);
15
17
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/questions/free-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuestionsFreeText","fixtureDefault","fixtureWithDefaultValue","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,yBAAP,MAAsC,IAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AAEAL,IAAI,CAAC,6EAAD,EAAgFM,CAAC,IAAI;AACvFA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,yBAAyB,CAACK,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uEAAsEF,GAAI,mEAAnG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,yBAAvG,EAAkIC,cAAlI,CAAJ;AACAJ,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,yBAAhH,EAA2IE,uBAA3I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeQuestionsFreeText from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithDefaultValue from './fixtures/with-default-value';\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuestionsFreeText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeQuestions.MoleculeQuestionsFreeText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › Default › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureDefault);\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › WithDefaultValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithDefaultValue);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/questions/free-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuestionsFreeText","fixtureDefault","fixtureWithValueOnChange","fixtureWithValue","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,yBAAP,MAAsC,IAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,wBAAP,MAAqC,iCAArC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAN,IAAI,CAAC,6EAAD,EAAgFO,CAAC,IAAI;AACvFA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,yBAAyB,CAACM,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uEAAsEF,GAAI,mEAAnG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,yBAAvG,EAAkIC,cAAlI,CAAJ;AACAJ,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,yBAAjH,EAA4IE,wBAA5I,CAAJ;AACAL,IAAI,CAAC,gFAAD,EAAmFE,oBAAnF,EAAyGC,yBAAzG,EAAoIG,gBAApI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeQuestionsFreeText from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithValueOnChange from './fixtures/with-value-on-change';\nimport fixtureWithValue from './fixtures/with-value';\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuestionsFreeText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeQuestions.MoleculeQuestionsFreeText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › Default › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureDefault);\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › WithValueOnChange › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValueOnChange);\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › WithValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValue);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,103 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import React from 'react';
4
+ import classnames from 'classnames';
5
+ import PropTypes from 'prop-types';
6
+ import { NovaCompositionCoorpacademyCheck as RightIcon, NovaSolidStatusClose as WrongIcon } from '@coorpacademy/nova-icons';
7
+ import ButtonLink from '../../atom/button-link';
8
+ import style from './style.css';
9
+
10
+ const buildKlfButton = klf => {
11
+ const klfButtonProps = _extends(_extends({}, klf), {}, {
12
+ icon: {
13
+ position: 'left',
14
+ type: 'key'
15
+ },
16
+ type: 'primary'
17
+ });
18
+
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ className: style.klfContainer
21
+ }, /*#__PURE__*/React.createElement("div", {
22
+ className: style.klfButtonContainer
23
+ }, /*#__PURE__*/React.createElement(ButtonLink, _extends({}, klfButtonProps, {
24
+ className: style.klfButton
25
+ }))), /*#__PURE__*/React.createElement("div", {
26
+ className: style.toolTip
27
+ }, /*#__PURE__*/React.createElement("div", {
28
+ className: style.tooltipText
29
+ }, klf.tooltip)));
30
+ };
31
+
32
+ const ReviewCorrectionPopin = props => {
33
+ const {
34
+ information,
35
+ resultLabel,
36
+ type,
37
+ klf,
38
+ next
39
+ } = props;
40
+
41
+ const nextQuestionButtonProps = _extends(_extends({}, next), {}, {
42
+ type: 'primary'
43
+ });
44
+
45
+ const cta = type === 'wrong' ? buildKlfButton(klf) : null;
46
+ const ICONS = {
47
+ right: RightIcon,
48
+ wrong: WrongIcon
49
+ };
50
+ const Icon = ICONS[type];
51
+ return /*#__PURE__*/React.createElement("div", {
52
+ className: style.wrapper
53
+ }, /*#__PURE__*/React.createElement("div", {
54
+ className: classnames(style.popin, type === 'right' ? style.right : style.wrong)
55
+ }, /*#__PURE__*/React.createElement("div", {
56
+ className: style.correctionSection
57
+ }, /*#__PURE__*/React.createElement("div", {
58
+ className: style.iconCircle
59
+ }, /*#__PURE__*/React.createElement(Icon, {
60
+ className: type === 'right' ? style.iconRight : style.iconWrong
61
+ })), /*#__PURE__*/React.createElement("div", {
62
+ className: style.resultLabel,
63
+ "aria-label": "result"
64
+ }, /*#__PURE__*/React.createElement("span", {
65
+ "aria-label": resultLabel
66
+ }, resultLabel))), /*#__PURE__*/React.createElement("div", {
67
+ className: style.feedbackSection
68
+ }, /*#__PURE__*/React.createElement("div", {
69
+ className: style.information,
70
+ "aria-label": "answer-information"
71
+ }, /*#__PURE__*/React.createElement("span", {
72
+ className: style.label,
73
+ "aria-label": information.label
74
+ }, information.label), /*#__PURE__*/React.createElement("span", {
75
+ className: style.message,
76
+ "aria-label": information.message
77
+ }, information.message))), /*#__PURE__*/React.createElement("div", {
78
+ className: type === 'right' ? style.actions : style.actionsWrong
79
+ }, cta, /*#__PURE__*/React.createElement("div", {
80
+ className: style.nextQuestionContainer
81
+ }, /*#__PURE__*/React.createElement(ButtonLink, _extends({}, nextQuestionButtonProps, {
82
+ className: style.nextQuestionButton
83
+ }))))));
84
+ };
85
+
86
+ ReviewCorrectionPopin.propTypes = process.env.NODE_ENV !== "production" ? {
87
+ type: PropTypes.oneOf(['right', 'wrong']),
88
+ resultLabel: PropTypes.string,
89
+ information: PropTypes.shape({
90
+ label: PropTypes.string,
91
+ message: PropTypes.string
92
+ }),
93
+ next: PropTypes.shape({
94
+ label: PropTypes.string,
95
+ onClick: PropTypes.func
96
+ }),
97
+ klf: PropTypes.shape({
98
+ label: PropTypes.string,
99
+ onClick: PropTypes.func
100
+ })
101
+ } : {};
102
+ export default ReviewCorrectionPopin;
103
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/review-correction-popin/index.js"],"names":["React","classnames","PropTypes","NovaCompositionCoorpacademyCheck","RightIcon","NovaSolidStatusClose","WrongIcon","ButtonLink","style","buildKlfButton","klf","klfButtonProps","icon","position","type","klfContainer","klfButtonContainer","klfButton","toolTip","tooltipText","tooltip","ReviewCorrectionPopin","props","information","resultLabel","next","nextQuestionButtonProps","cta","ICONS","right","wrong","Icon","wrapper","popin","correctionSection","iconCircle","iconRight","iconWrong","feedbackSection","label","message","actions","actionsWrong","nextQuestionContainer","nextQuestionButton","propTypes","oneOf","string","shape","onClick","func"],"mappings":"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","sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyCheck as RightIcon,\n NovaSolidStatusClose as WrongIcon\n} from '@coorpacademy/nova-icons';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst buildKlfButton = klf => {\n const klfButtonProps = {\n ...klf,\n icon: {\n position: 'left',\n type: 'key'\n },\n type: 'primary'\n };\n\n return (\n <div className={style.klfContainer}>\n <div className={style.klfButtonContainer}>\n <ButtonLink {...klfButtonProps} className={style.klfButton} />\n </div>\n <div className={style.toolTip}>\n <div className={style.tooltipText}>{klf.tooltip}</div>\n </div>\n </div>\n );\n};\n\nconst ReviewCorrectionPopin = props => {\n const {information, resultLabel, type, klf, next} = props;\n\n const nextQuestionButtonProps = {\n ...next,\n type: 'primary'\n };\n\n const cta = type === 'wrong' ? buildKlfButton(klf) : null;\n\n const ICONS = {\n right: RightIcon,\n wrong: WrongIcon\n };\n const Icon = ICONS[type];\n\n return (\n <div className={style.wrapper}>\n <div className={classnames(style.popin, type === 'right' ? style.right : style.wrong)}>\n <div className={style.correctionSection}>\n <div className={style.iconCircle}>\n <Icon className={type === 'right' ? style.iconRight : style.iconWrong} />\n </div>\n <div className={style.resultLabel} aria-label=\"result\">\n <span aria-label={resultLabel}>{resultLabel}</span>\n </div>\n </div>\n <div className={style.feedbackSection}>\n <div className={style.information} aria-label=\"answer-information\">\n <span className={style.label} aria-label={information.label}>\n {information.label}\n </span>\n <span className={style.message} aria-label={information.message}>\n {information.message}\n </span>\n </div>\n </div>\n <div className={type === 'right' ? style.actions : style.actionsWrong}>\n {cta}\n <div className={style.nextQuestionContainer}>\n <ButtonLink {...nextQuestionButtonProps} className={style.nextQuestionButton} />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nReviewCorrectionPopin.propTypes = {\n type: PropTypes.oneOf(['right', 'wrong']),\n resultLabel: PropTypes.string,\n information: PropTypes.shape({\n label: PropTypes.string,\n message: PropTypes.string\n }),\n next: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n klf: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default ReviewCorrectionPopin;\n"],"file":"index.js"}