@coorpacademy/components 10.3.24 → 10.3.27-alpha.25

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 (1129) hide show
  1. package/es/atom/autocomplete/test/fixtures/error.js +1 -1
  2. package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
  3. package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
  4. package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  5. package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
  6. package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  7. package/es/atom/clue/index.js.map +1 -1
  8. package/es/atom/clue/test/see-clue.js +33 -0
  9. package/es/atom/clue/test/see-clue.js.map +1 -1
  10. package/es/atom/content-badge/test/fixtures.js +2 -0
  11. package/es/atom/content-badge/test/fixtures.js.map +1 -1
  12. package/es/atom/cta/test/fixtures/certification.js +1 -1
  13. package/es/atom/cta/test/fixtures/certification.js.map +1 -1
  14. package/es/atom/cta/test/fixtures/disabled.js +1 -1
  15. package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
  16. package/es/atom/cta/test/fixtures/light-small.js +1 -1
  17. package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
  18. package/es/atom/cta/test/fixtures/light.js +1 -1
  19. package/es/atom/cta/test/fixtures/light.js.map +1 -1
  20. package/es/atom/cta/test/fixtures/logout.js +1 -1
  21. package/es/atom/cta/test/fixtures/logout.js.map +1 -1
  22. package/es/atom/cta/test/fixtures/primary-small.js +1 -1
  23. package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
  24. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  25. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  26. package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  27. package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  28. package/es/atom/cta/test/fixtures/rectangular.js +1 -1
  29. package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
  30. package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
  31. package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  32. package/es/atom/cta/test/fixtures/secondary.js +1 -1
  33. package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
  34. package/es/atom/drag-and-drop/index.js +1 -1
  35. package/es/atom/drag-and-drop/index.js.map +1 -1
  36. package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  37. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  38. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  39. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  40. package/es/atom/image-upload/index.js +1 -1
  41. package/es/atom/image-upload/index.js.map +1 -1
  42. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  43. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  44. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  45. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  46. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  47. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  48. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  49. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  50. package/es/atom/image-upload/test/fixtures/email.js +1 -1
  51. package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
  52. package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
  53. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  54. package/es/atom/image-upload/test/fixtures/modified.js +1 -1
  55. package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
  56. package/es/atom/input-html/index.js.map +1 -1
  57. package/es/atom/input-switch/index.js +13 -6
  58. package/es/atom/input-switch/index.js.map +1 -1
  59. package/es/atom/input-switch/style.css +46 -0
  60. package/es/atom/input-switch/test/fixtures/cm-left.js +11 -0
  61. package/es/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
  62. package/es/atom/input-switch/test/fixtures/cm-right-checked.js +11 -0
  63. package/es/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
  64. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js +11 -0
  65. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
  66. package/es/atom/input-switch/test/fixtures/cm-right-modified.js +12 -0
  67. package/es/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
  68. package/es/atom/input-switch/test/fixtures/cm-right.js +11 -0
  69. package/es/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
  70. package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
  71. package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  72. package/es/atom/input-switch/test/fixtures.js +10 -0
  73. package/es/atom/input-switch/test/fixtures.js.map +1 -1
  74. package/es/atom/link/index.js +3 -2
  75. package/es/atom/link/index.js.map +1 -1
  76. package/es/atom/promo-code/index.js.map +1 -1
  77. package/es/atom/provider/index.js +1 -1
  78. package/es/atom/provider/index.js.map +1 -1
  79. package/es/atom/provider/test/index.js +1 -1
  80. package/es/atom/provider/test/index.js.map +1 -1
  81. package/es/atom/range/index.js +1 -1
  82. package/es/atom/range/index.js.map +1 -1
  83. package/es/atom/range/test/fixtures/multi.js +1 -1
  84. package/es/atom/range/test/fixtures/multi.js.map +1 -1
  85. package/es/atom/range/test/index.js +9 -9
  86. package/es/atom/range/test/index.js.map +1 -1
  87. package/es/atom/video-upload/index.js +1 -1
  88. package/es/atom/video-upload/index.js.map +1 -1
  89. package/es/atom/video-upload/test/fixtures/loading.js +1 -1
  90. package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
  91. package/es/atom/video-upload/test/fixtures/modified.js +1 -1
  92. package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
  93. package/es/hoc/animation-scheduler/index.js +3 -3
  94. package/es/hoc/animation-scheduler/index.js.map +1 -1
  95. package/es/hoc/swapper/index.js +4 -2
  96. package/es/hoc/swapper/index.js.map +1 -1
  97. package/es/hoc/transition/index.js +1 -1
  98. package/es/hoc/transition/index.js.map +1 -1
  99. package/es/molecule/add-to-my-list/index.js +1 -1
  100. package/es/molecule/add-to-my-list/index.js.map +1 -1
  101. package/es/molecule/answer/index.js +3 -2
  102. package/es/molecule/answer/index.js.map +1 -1
  103. package/es/molecule/answer/test/fixtures/audio.js +1 -1
  104. package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
  105. package/es/molecule/answer/test/fixtures/default.js +1 -1
  106. package/es/molecule/answer/test/fixtures/default.js.map +1 -1
  107. package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
  108. package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  109. package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  110. package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  111. package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  112. package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  113. package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  114. package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  115. package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  116. package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  117. package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  118. package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  119. package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
  120. package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  121. package/es/molecule/answer/test/fixtures/qcm.js +1 -1
  122. package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
  123. package/es/molecule/answer/test/fixtures/range.js +1 -1
  124. package/es/molecule/answer/test/fixtures/range.js.map +1 -1
  125. package/es/molecule/answer/test/fixtures/template.js +1 -1
  126. package/es/molecule/answer/test/fixtures/template.js.map +1 -1
  127. package/es/molecule/banner/style.css +1 -0
  128. package/es/molecule/banner/test/fixtures/default.js +1 -1
  129. package/es/molecule/banner/test/fixtures/default.js.map +1 -1
  130. package/es/molecule/banner/test/fixtures.js +8 -0
  131. package/es/molecule/banner/test/fixtures.js.map +1 -1
  132. package/es/molecule/brand-form-group/index.js +18 -18
  133. package/es/molecule/brand-form-group/index.js.map +1 -1
  134. package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  135. package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  136. package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  137. package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  138. package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  139. package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  140. package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  141. package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  142. package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
  143. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  144. package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  145. package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  146. package/es/molecule/card/customer.css +61 -3
  147. package/es/molecule/card/customer.js +17 -5
  148. package/es/molecule/card/customer.js.map +1 -1
  149. package/es/molecule/card/index.js +16 -6
  150. package/es/molecule/card/index.js.map +1 -1
  151. package/es/molecule/card/style.css +86 -24
  152. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  153. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  154. package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
  155. package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  156. package/es/molecule/card/test/fixtures/coorpmanager.js +18 -0
  157. package/es/molecule/card/test/fixtures/coorpmanager.js.map +1 -0
  158. package/es/molecule/card/test/fixtures/disabled.js +1 -1
  159. package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
  160. package/es/molecule/card-content/index.js +11 -5
  161. package/es/molecule/card-content/index.js.map +1 -1
  162. package/es/molecule/card-content/style.css +52 -0
  163. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  164. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  165. package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  166. package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  167. package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
  168. package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  169. package/es/molecule/card-with-button/index.js.map +1 -1
  170. package/es/molecule/cm-popin/style.css +1 -0
  171. package/es/molecule/coorp-manager-roles/index.js +1 -1
  172. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  173. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  174. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  175. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  176. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  177. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  178. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  179. package/es/molecule/dashboard/cards-list/test/index.js +1 -1
  180. package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
  181. package/es/molecule/dashboard/news-list/index.js +1 -1
  182. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  183. package/es/molecule/dashboard/start-battle/index.js +1 -1
  184. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  185. package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  186. package/es/molecule/drag-and-drop/index.js +1 -1
  187. package/es/molecule/drag-and-drop/index.js.map +1 -1
  188. package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  189. package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  190. package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  191. package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  192. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  193. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  194. package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  195. package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  196. package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  197. package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  198. package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  199. package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  200. package/es/molecule/drag-and-drop/test/on-click.js +2 -2
  201. package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
  202. package/es/molecule/drag-and-drop/upload-report.js +1 -1
  203. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  204. package/es/molecule/feedback/index.js +1 -1
  205. package/es/molecule/feedback/index.js.map +1 -1
  206. package/es/molecule/filters/test/fixtures/default.js +4 -4
  207. package/es/molecule/filters/test/fixtures/default.js.map +1 -1
  208. package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
  209. package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  210. package/es/molecule/filters/test/fixtures/one.js +2 -2
  211. package/es/molecule/filters/test/fixtures/one.js.map +1 -1
  212. package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  213. package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  214. package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
  215. package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  216. package/es/molecule/filters/test/fixtures/three.js +3 -3
  217. package/es/molecule/filters/test/fixtures/three.js.map +1 -1
  218. package/es/molecule/filters/test/fixtures/two.js +3 -3
  219. package/es/molecule/filters/test/fixtures/two.js.map +1 -1
  220. package/es/molecule/filters/test/fixtures/zero.js +1 -1
  221. package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
  222. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  223. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  224. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  225. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  226. package/es/molecule/hero/test/fixtures/arabic.js +1 -1
  227. package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
  228. package/es/molecule/hero/test/fixtures/hero.js +1 -1
  229. package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
  230. package/es/molecule/news/test/fixtures/long-description.js +1 -1
  231. package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
  232. package/es/molecule/news/test/fixtures/long-title.js +1 -1
  233. package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
  234. package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
  235. package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  236. package/es/molecule/news/test/fixtures/small-title.js +1 -1
  237. package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
  238. package/es/molecule/popin/index.js +1 -1
  239. package/es/molecule/popin/index.js.map +1 -1
  240. package/es/molecule/progress-bar/index.js +1 -1
  241. package/es/molecule/progress-bar/index.js.map +1 -1
  242. package/es/molecule/questions/drop-down/index.js +1 -1
  243. package/es/molecule/questions/drop-down/index.js.map +1 -1
  244. package/es/molecule/questions/question-range/index.js +3 -2
  245. package/es/molecule/questions/question-range/index.js.map +1 -1
  246. package/es/molecule/questions/template/index.js +2 -2
  247. package/es/molecule/questions/template/index.js.map +1 -1
  248. package/es/molecule/questions/template/test/index.js +1 -1
  249. package/es/molecule/questions/template/test/index.js.map +1 -1
  250. package/es/molecule/quick-access-card/index.js.map +1 -1
  251. package/es/molecule/resource-player/index.js +2 -1
  252. package/es/molecule/resource-player/index.js.map +1 -1
  253. package/es/molecule/select-multiple/index.js +3 -3
  254. package/es/molecule/select-multiple/index.js.map +1 -1
  255. package/es/molecule/select-multiple/style.css +2 -1
  256. package/es/molecule/select-multiple/test/fixtures.js +8 -0
  257. package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
  258. package/es/molecule/select-multiple/test/index.js +2 -2
  259. package/es/molecule/select-multiple/test/index.js.map +1 -1
  260. package/es/molecule/setup-section/index.js +1 -1
  261. package/es/molecule/setup-section/index.js.map +1 -1
  262. package/es/molecule/setup-section/test/fixtures/first.js +1 -1
  263. package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
  264. package/es/molecule/setup-slide/index.js +8 -8
  265. package/es/molecule/setup-slide/index.js.map +1 -1
  266. package/es/molecule/share/index.js +1 -1
  267. package/es/molecule/share/index.js.map +1 -1
  268. package/es/molecule/video-iframe/index.js +1 -1
  269. package/es/molecule/video-iframe/index.js.map +1 -1
  270. package/es/molecule/video-player/index.js +3 -1
  271. package/es/molecule/video-player/index.js.map +1 -1
  272. package/es/molecule/video-player/jwplayer.js +2 -2
  273. package/es/molecule/video-player/jwplayer.js.map +1 -1
  274. package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
  275. package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  276. package/es/molecule/video-player/vimeo.js +1 -1
  277. package/es/molecule/video-player/vimeo.js.map +1 -1
  278. package/es/molecule/wizard-summary/index.js +30 -3
  279. package/es/molecule/wizard-summary/index.js.map +1 -1
  280. package/es/molecule/wizard-summary/style.css +1 -1
  281. package/es/organism/accordion/coorp-manager/index.js +1 -1
  282. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  283. package/es/organism/accordion/toggler/index.js +1 -1
  284. package/es/organism/accordion/toggler/index.js.map +1 -1
  285. package/es/organism/accordion/toggler/test/render.js +2 -2
  286. package/es/organism/accordion/toggler/test/render.js.map +1 -1
  287. package/es/organism/brand-form/test/fixtures/sso.js +3 -3
  288. package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
  289. package/es/organism/content-translation/index.js +2 -2
  290. package/es/organism/content-translation/index.js.map +1 -1
  291. package/es/organism/content-translation/style.css +1 -0
  292. package/es/organism/content-translation/test/fixtures/default.js +2 -2
  293. package/es/organism/content-translation/test/fixtures/default.js.map +1 -1
  294. package/es/organism/content-translation/test/fixtures.js +15 -0
  295. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  296. package/es/organism/course-selection/index.js +26 -9
  297. package/es/organism/course-selection/index.js.map +1 -1
  298. package/es/organism/course-selection/style.css +11 -3
  299. package/es/organism/course-selection/test/fixtures/default.js +44 -13
  300. package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
  301. package/es/organism/course-selection/test/fixtures/empty.js +9 -0
  302. package/es/organism/course-selection/test/fixtures/empty.js.map +1 -1
  303. package/es/organism/course-selection/test/fixtures/filtered.js +11 -3
  304. package/es/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  305. package/es/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
  306. package/es/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  307. package/es/organism/course-selection/test/fixtures/switch-activated.js +23 -0
  308. package/es/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
  309. package/es/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
  310. package/es/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  311. package/es/organism/course-selection/test/fixtures.js +2 -0
  312. package/es/organism/course-selection/test/fixtures.js.map +1 -1
  313. package/es/organism/discussion/test/fixtures/default.js +1 -1
  314. package/es/organism/discussion/test/fixtures/default.js.map +1 -1
  315. package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
  316. package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  317. package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
  318. package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  319. package/es/organism/get-the-app/index.js +2 -2
  320. package/es/organism/get-the-app/index.js.map +1 -1
  321. package/es/organism/list-item/test/fixtures.js +19 -0
  322. package/es/organism/list-item/test/fixtures.js.map +1 -0
  323. package/es/organism/list-items/test/fixtures/archived.js +1 -1
  324. package/es/organism/list-items/test/fixtures/archived.js.map +1 -1
  325. package/es/organism/list-items/test/fixtures/draft.js +1 -1
  326. package/es/organism/list-items/test/fixtures/draft.js.map +1 -1
  327. package/es/organism/list-items/test/fixtures/published.js +2 -2
  328. package/es/organism/list-items/test/fixtures/published.js.map +1 -1
  329. package/es/organism/list-items/test/fixtures.js +17 -0
  330. package/es/organism/list-items/test/fixtures.js.map +1 -0
  331. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  332. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  333. package/es/organism/mooc-footer/style.css +1 -0
  334. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  335. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  336. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  337. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  338. package/es/organism/popin/test/fixtures/default.js.map +1 -1
  339. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  340. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  341. package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  342. package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  343. package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  344. package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  345. package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
  346. package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  347. package/es/organism/search-and-chips-results/index.js +11 -4
  348. package/es/organism/search-and-chips-results/index.js.map +1 -1
  349. package/es/organism/search-and-chips-results/style.css +7 -1
  350. package/es/organism/search-and-chips-results/test/fixtures/default.js +1 -0
  351. package/es/organism/search-and-chips-results/test/fixtures/default.js.map +1 -1
  352. package/es/organism/settings/index.js +3 -2
  353. package/es/organism/settings/index.js.map +1 -1
  354. package/es/organism/sidebar/index.js +11 -10
  355. package/es/organism/sidebar/index.js.map +1 -1
  356. package/es/organism/user-preferences/index.js +3 -2
  357. package/es/organism/user-preferences/index.js.map +1 -1
  358. package/es/organism/wizard-contents/index.js +8 -9
  359. package/es/organism/wizard-contents/index.js.map +1 -1
  360. package/es/organism/wizard-contents/style.css +11 -15
  361. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
  362. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  363. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
  364. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  365. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
  366. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  367. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
  368. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  369. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
  370. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  371. package/es/organism/wizard-contents/test/fixtures.js +21 -0
  372. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  373. package/es/template/activity/index.js +1 -1
  374. package/es/template/activity/index.js.map +1 -1
  375. package/es/template/activity/test/progression-item-test.js +1 -1
  376. package/es/template/activity/test/progression-item-test.js.map +1 -1
  377. package/es/template/app-player/player/slides/footer/index.js +1 -1
  378. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  379. package/es/template/app-player/player/slides/index.js +14 -11
  380. package/es/template/app-player/player/slides/index.js.map +1 -1
  381. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  382. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  383. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  384. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  385. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  386. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  387. package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  388. package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  389. package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  390. package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  391. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  392. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  393. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  394. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  395. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  396. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  397. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  398. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  399. package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
  400. package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  401. package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
  402. package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  403. package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  404. package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  405. package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  406. package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  407. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  408. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  409. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  410. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  411. package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
  412. package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  413. package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  414. package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  415. package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  416. package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  417. package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  418. package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  419. package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  420. package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  421. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  422. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  423. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  424. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  425. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  426. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  427. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  428. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  429. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  430. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  431. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  432. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  433. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  434. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  435. package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  436. package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  437. package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
  438. package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  439. package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
  440. package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  441. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  442. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  443. package/es/template/app-player/player/test/fixtures/background.js +1 -1
  444. package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
  445. package/es/template/app-player/popin-correction/index.js +3 -2
  446. package/es/template/app-player/popin-correction/index.js.map +1 -1
  447. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  448. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  449. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  450. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  451. package/es/template/app-player/popin-end/summary.js +11 -7
  452. package/es/template/app-player/popin-end/summary.js.map +1 -1
  453. package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  454. package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  455. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  456. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  457. package/es/template/app-player/popin-header/index.js +4 -3
  458. package/es/template/app-player/popin-header/index.js.map +1 -1
  459. package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
  460. package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  461. package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  462. package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  463. package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  464. package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  465. package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
  466. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  467. package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  468. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  469. package/es/template/back-office/brand-update/index.js +13 -11
  470. package/es/template/back-office/brand-update/index.js.map +1 -1
  471. package/es/template/back-office/brand-update/style.css +4 -0
  472. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  473. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  474. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  475. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  476. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  477. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  478. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  479. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  480. package/es/template/back-office/brand-update/test/fixtures/loader.js +6 -2
  481. package/es/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
  482. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
  483. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  484. package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js +1 -1
  485. package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
  486. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  487. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  488. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  489. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  490. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  491. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  492. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +2 -2
  493. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  494. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
  495. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  496. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +50 -1
  497. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  498. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
  499. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  500. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
  501. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  502. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
  503. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  504. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
  505. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  506. package/es/template/back-office/brand-update/test/fixtures.js +20 -2
  507. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  508. package/es/template/cockpit/jw-uploader/index.js +1 -1
  509. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  510. package/es/template/common/dashboard/index.js +1 -1
  511. package/es/template/common/dashboard/index.js.map +1 -1
  512. package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  513. package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  514. package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  515. package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  516. package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  517. package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  518. package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
  519. package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  520. package/es/template/common/discipline/test/fixtures/default.js +2 -2
  521. package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
  522. package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  523. package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  524. package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  525. package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  526. package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
  527. package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  528. package/es/template/common/discipline/test/fixtures/share.js +1 -1
  529. package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
  530. package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
  531. package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  532. package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  533. package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  534. package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  535. package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  536. package/es/util/shallow-compare.js.map +1 -1
  537. package/es/util/test/navigation.js +4 -3
  538. package/es/util/test/navigation.js.map +1 -1
  539. package/lib/atom/autocomplete/index.js +2 -2
  540. package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
  541. package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
  542. package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
  543. package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  544. package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
  545. package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  546. package/lib/atom/button-link/index.js +2 -2
  547. package/lib/atom/button-link-icon-only/index.js +2 -2
  548. package/lib/atom/button-menu/index.js +2 -2
  549. package/lib/atom/button-menu/test/fixtures/default.js +1 -1
  550. package/lib/atom/button-menu/test/fixtures/multiple-buttons.js +1 -1
  551. package/lib/atom/chips/index.js +2 -2
  552. package/lib/atom/clue/index.js.map +1 -1
  553. package/lib/atom/clue/test/see-clue.js +34 -0
  554. package/lib/atom/clue/test/see-clue.js.map +1 -1
  555. package/lib/atom/content-badge/test/fixtures.js +3 -0
  556. package/lib/atom/content-badge/test/fixtures.js.map +1 -1
  557. package/lib/atom/cta/test/fixtures/certification.js +1 -1
  558. package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
  559. package/lib/atom/cta/test/fixtures/disabled.js +1 -1
  560. package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
  561. package/lib/atom/cta/test/fixtures/light-small.js +1 -1
  562. package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
  563. package/lib/atom/cta/test/fixtures/light.js +1 -1
  564. package/lib/atom/cta/test/fixtures/light.js.map +1 -1
  565. package/lib/atom/cta/test/fixtures/logout.js +1 -1
  566. package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
  567. package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
  568. package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
  569. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  570. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  571. package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  572. package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  573. package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
  574. package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
  575. package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
  576. package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  577. package/lib/atom/cta/test/fixtures/secondary.js +1 -1
  578. package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
  579. package/lib/atom/drag-and-drop/index.js +1 -1
  580. package/lib/atom/drag-and-drop/index.js.map +1 -1
  581. package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  582. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  583. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  584. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  585. package/lib/atom/image-upload/index.js +3 -3
  586. package/lib/atom/image-upload/index.js.map +1 -1
  587. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  588. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  589. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  590. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  591. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  592. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  593. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  594. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  595. package/lib/atom/image-upload/test/fixtures/email.js +1 -1
  596. package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
  597. package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
  598. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  599. package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
  600. package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
  601. package/lib/atom/input-checkbox/index.js +2 -2
  602. package/lib/atom/input-color/index.js +2 -2
  603. package/lib/atom/input-doublestep/index.js +2 -2
  604. package/lib/atom/input-html/index.js.map +1 -1
  605. package/lib/atom/input-search/index.js +2 -2
  606. package/lib/atom/input-switch/index.js +15 -8
  607. package/lib/atom/input-switch/index.js.map +1 -1
  608. package/lib/atom/input-switch/style.css +46 -0
  609. package/lib/atom/input-switch/test/fixtures/cm-left.js +16 -0
  610. package/lib/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
  611. package/lib/atom/input-switch/test/fixtures/cm-right-checked.js +16 -0
  612. package/lib/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
  613. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js +20 -0
  614. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
  615. package/lib/atom/input-switch/test/fixtures/cm-right-modified.js +17 -0
  616. package/lib/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
  617. package/lib/atom/input-switch/test/fixtures/cm-right.js +16 -0
  618. package/lib/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
  619. package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
  620. package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  621. package/lib/atom/input-switch/test/fixtures.js +15 -0
  622. package/lib/atom/input-switch/test/fixtures.js.map +1 -1
  623. package/lib/atom/input-text/index.js +2 -2
  624. package/lib/atom/input-textarea/index.js +2 -2
  625. package/lib/atom/link/index.js +4 -2
  626. package/lib/atom/link/index.js.map +1 -1
  627. package/lib/atom/promo-code/index.js.map +1 -1
  628. package/lib/atom/provider/index.js +1 -1
  629. package/lib/atom/provider/index.js.map +1 -1
  630. package/lib/atom/provider/test/index.js +1 -1
  631. package/lib/atom/provider/test/index.js.map +1 -1
  632. package/lib/atom/range/index.js +1 -1
  633. package/lib/atom/range/index.js.map +1 -1
  634. package/lib/atom/range/test/fixtures/multi.js +1 -1
  635. package/lib/atom/range/test/fixtures/multi.js.map +1 -1
  636. package/lib/atom/range/test/index.js +9 -9
  637. package/lib/atom/range/test/index.js.map +1 -1
  638. package/lib/atom/select/index.js +2 -2
  639. package/lib/atom/tab/index.js +2 -2
  640. package/lib/atom/video-upload/index.js +1 -1
  641. package/lib/atom/video-upload/index.js.map +1 -1
  642. package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
  643. package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
  644. package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
  645. package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
  646. package/lib/hoc/animation/index.js +1 -1
  647. package/lib/hoc/animation/test/on-mount.js +2 -2
  648. package/lib/hoc/animation-scheduler/index.js +4 -4
  649. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  650. package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
  651. package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
  652. package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
  653. package/lib/hoc/swapper/index.js +5 -3
  654. package/lib/hoc/swapper/index.js.map +1 -1
  655. package/lib/hoc/swapper/test/on-mount.js +2 -2
  656. package/lib/hoc/transition/index.js +3 -3
  657. package/lib/hoc/transition/index.js.map +1 -1
  658. package/lib/molecule/add-to-my-list/index.js +4 -4
  659. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  660. package/lib/molecule/answer/index.js +5 -3
  661. package/lib/molecule/answer/index.js.map +1 -1
  662. package/lib/molecule/answer/test/fixtures/audio.js +1 -1
  663. package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
  664. package/lib/molecule/answer/test/fixtures/default.js +1 -1
  665. package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
  666. package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
  667. package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  668. package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  669. package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  670. package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  671. package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  672. package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  673. package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  674. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  675. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  676. package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  677. package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  678. package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
  679. package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  680. package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
  681. package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
  682. package/lib/molecule/answer/test/fixtures/range.js +1 -1
  683. package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
  684. package/lib/molecule/answer/test/fixtures/template.js +1 -1
  685. package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
  686. package/lib/molecule/banner/style.css +1 -0
  687. package/lib/molecule/banner/test/fixtures/default.js +1 -1
  688. package/lib/molecule/banner/test/fixtures/default.js.map +1 -1
  689. package/lib/molecule/banner/test/fixtures.js +12 -0
  690. package/lib/molecule/banner/test/fixtures.js.map +1 -1
  691. package/lib/molecule/brand-create-form/index.js +2 -2
  692. package/lib/molecule/brand-form-group/index.js +18 -18
  693. package/lib/molecule/brand-form-group/index.js.map +1 -1
  694. package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  695. package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  696. package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  697. package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  698. package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  699. package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  700. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  701. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  702. package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
  703. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  704. package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  705. package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  706. package/lib/molecule/bullet-point-menu-button/index.js +2 -2
  707. package/lib/molecule/card/customer.css +61 -3
  708. package/lib/molecule/card/customer.js +22 -6
  709. package/lib/molecule/card/customer.js.map +1 -1
  710. package/lib/molecule/card/index.js +22 -9
  711. package/lib/molecule/card/index.js.map +1 -1
  712. package/lib/molecule/card/style.css +86 -24
  713. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  714. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  715. package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
  716. package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  717. package/lib/molecule/card/test/fixtures/coorpmanager.js +28 -0
  718. package/lib/molecule/card/test/fixtures/coorpmanager.js.map +1 -0
  719. package/lib/molecule/card/test/fixtures/disabled.js +1 -1
  720. package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
  721. package/lib/molecule/card-content/index.js +14 -6
  722. package/lib/molecule/card-content/index.js.map +1 -1
  723. package/lib/molecule/card-content/style.css +52 -0
  724. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  725. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  726. package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  727. package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  728. package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
  729. package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  730. package/lib/molecule/card-with-button/index.js.map +1 -1
  731. package/lib/molecule/cm-popin/style.css +1 -0
  732. package/lib/molecule/coorp-manager-roles/index.js +1 -1
  733. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  734. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  735. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  736. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  737. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  738. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  739. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  740. package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
  741. package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
  742. package/lib/molecule/dashboard/news-list/index.js +1 -1
  743. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  744. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  745. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  746. package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  747. package/lib/molecule/drag-and-drop/index.js +3 -3
  748. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  749. package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  750. package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  751. package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  752. package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  753. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  754. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  755. package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  756. package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  757. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  758. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  759. package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  760. package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  761. package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
  762. package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
  763. package/lib/molecule/drag-and-drop/upload-report.js +3 -3
  764. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  765. package/lib/molecule/feedback/index.js +3 -3
  766. package/lib/molecule/feedback/index.js.map +1 -1
  767. package/lib/molecule/filters/test/fixtures/default.js +4 -4
  768. package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
  769. package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
  770. package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  771. package/lib/molecule/filters/test/fixtures/one.js +2 -2
  772. package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
  773. package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  774. package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  775. package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
  776. package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  777. package/lib/molecule/filters/test/fixtures/three.js +3 -3
  778. package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
  779. package/lib/molecule/filters/test/fixtures/two.js +3 -3
  780. package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
  781. package/lib/molecule/filters/test/fixtures/zero.js +1 -1
  782. package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
  783. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  784. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  785. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  786. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  787. package/lib/molecule/hero/index.js +2 -2
  788. package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
  789. package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
  790. package/lib/molecule/hero/test/fixtures/hero.js +1 -1
  791. package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
  792. package/lib/molecule/news/test/fixtures/long-description.js +1 -1
  793. package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
  794. package/lib/molecule/news/test/fixtures/long-title.js +1 -1
  795. package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
  796. package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
  797. package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  798. package/lib/molecule/news/test/fixtures/small-title.js +1 -1
  799. package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
  800. package/lib/molecule/popin/index.js +3 -3
  801. package/lib/molecule/popin/index.js.map +1 -1
  802. package/lib/molecule/progress-bar/index.js +1 -1
  803. package/lib/molecule/progress-bar/index.js.map +1 -1
  804. package/lib/molecule/questions/drop-down/index.js +3 -3
  805. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  806. package/lib/molecule/questions/free-text/index.js +2 -2
  807. package/lib/molecule/questions/question-range/index.js +4 -2
  808. package/lib/molecule/questions/question-range/index.js.map +1 -1
  809. package/lib/molecule/questions/template/index.js +2 -2
  810. package/lib/molecule/questions/template/index.js.map +1 -1
  811. package/lib/molecule/questions/template/test/index.js +1 -1
  812. package/lib/molecule/questions/template/test/index.js.map +1 -1
  813. package/lib/molecule/quick-access-card/index.js.map +1 -1
  814. package/lib/molecule/resource-player/index.js +4 -2
  815. package/lib/molecule/resource-player/index.js.map +1 -1
  816. package/lib/molecule/scope-tabs/index.js +2 -2
  817. package/lib/molecule/search-form/index.js +2 -2
  818. package/lib/molecule/select-multiple/index.js +6 -6
  819. package/lib/molecule/select-multiple/index.js.map +1 -1
  820. package/lib/molecule/select-multiple/style.css +2 -1
  821. package/lib/molecule/select-multiple/test/fixtures.js +12 -0
  822. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
  823. package/lib/molecule/select-multiple/test/index.js +4 -4
  824. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  825. package/lib/molecule/setup-section/index.js +1 -1
  826. package/lib/molecule/setup-section/index.js.map +1 -1
  827. package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
  828. package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
  829. package/lib/molecule/setup-sections/index.js +2 -2
  830. package/lib/molecule/setup-slide/index.js +8 -8
  831. package/lib/molecule/setup-slide/index.js.map +1 -1
  832. package/lib/molecule/share/index.js +4 -4
  833. package/lib/molecule/share/index.js.map +1 -1
  834. package/lib/molecule/titled-checkbox/index.js +2 -2
  835. package/lib/molecule/vertical-tabs/test/fixtures/default.js +1 -1
  836. package/lib/molecule/video-iframe/index.js +1 -1
  837. package/lib/molecule/video-iframe/index.js.map +1 -1
  838. package/lib/molecule/video-player/index.js +3 -1
  839. package/lib/molecule/video-player/index.js.map +1 -1
  840. package/lib/molecule/video-player/jwplayer.js +2 -2
  841. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  842. package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
  843. package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  844. package/lib/molecule/video-player/vimeo.js +1 -1
  845. package/lib/molecule/video-player/vimeo.js.map +1 -1
  846. package/lib/molecule/wizard-summary/index.js +31 -4
  847. package/lib/molecule/wizard-summary/index.js.map +1 -1
  848. package/lib/molecule/wizard-summary/style.css +1 -1
  849. package/lib/organism/accordion/container/index.js +2 -2
  850. package/lib/organism/accordion/coorp-manager/index.js +3 -3
  851. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  852. package/lib/organism/accordion/toggler/index.js +1 -1
  853. package/lib/organism/accordion/toggler/index.js.map +1 -1
  854. package/lib/organism/accordion/toggler/test/render.js +2 -2
  855. package/lib/organism/accordion/toggler/test/render.js.map +1 -1
  856. package/lib/organism/brand-form/index.js +2 -2
  857. package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
  858. package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
  859. package/lib/organism/content-translation/index.js +2 -2
  860. package/lib/organism/content-translation/index.js.map +1 -1
  861. package/lib/organism/content-translation/style.css +1 -0
  862. package/lib/organism/content-translation/test/fixtures/default.js +2 -2
  863. package/lib/organism/content-translation/test/fixtures/default.js.map +1 -1
  864. package/lib/organism/content-translation/test/fixtures.js +25 -0
  865. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  866. package/lib/organism/course-selection/index.js +28 -9
  867. package/lib/organism/course-selection/index.js.map +1 -1
  868. package/lib/organism/course-selection/style.css +11 -3
  869. package/lib/organism/course-selection/test/fixtures/default.js +45 -13
  870. package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
  871. package/lib/organism/course-selection/test/fixtures/empty.js +9 -0
  872. package/lib/organism/course-selection/test/fixtures/empty.js.map +1 -1
  873. package/lib/organism/course-selection/test/fixtures/filtered.js +11 -3
  874. package/lib/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  875. package/lib/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
  876. package/lib/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  877. package/lib/organism/course-selection/test/fixtures/switch-activated.js +32 -0
  878. package/lib/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
  879. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
  880. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  881. package/lib/organism/course-selection/test/fixtures.js +3 -0
  882. package/lib/organism/course-selection/test/fixtures.js.map +1 -1
  883. package/lib/organism/discussion/test/fixtures/default.js +1 -1
  884. package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
  885. package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
  886. package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  887. package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
  888. package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  889. package/lib/organism/get-the-app/index.js +2 -2
  890. package/lib/organism/get-the-app/index.js.map +1 -1
  891. package/lib/organism/list-item/test/fixtures.js +31 -0
  892. package/lib/organism/list-item/test/fixtures.js.map +1 -0
  893. package/lib/organism/list-items/test/fixtures/archived.js +1 -1
  894. package/lib/organism/list-items/test/fixtures/archived.js.map +1 -1
  895. package/lib/organism/list-items/test/fixtures/draft.js +1 -1
  896. package/lib/organism/list-items/test/fixtures/draft.js.map +1 -1
  897. package/lib/organism/list-items/test/fixtures/published.js +2 -2
  898. package/lib/organism/list-items/test/fixtures/published.js.map +1 -1
  899. package/lib/organism/list-items/test/fixtures.js +28 -0
  900. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  901. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  902. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  903. package/lib/organism/mooc-footer/style.css +1 -0
  904. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  905. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  906. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  907. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  908. package/lib/organism/popin/test/fixtures/default.js.map +1 -1
  909. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  910. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  911. package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  912. package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  913. package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  914. package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  915. package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
  916. package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  917. package/lib/organism/search-and-chips-results/index.js +12 -4
  918. package/lib/organism/search-and-chips-results/index.js.map +1 -1
  919. package/lib/organism/search-and-chips-results/style.css +7 -1
  920. package/lib/organism/search-and-chips-results/test/fixtures/default.js +1 -0
  921. package/lib/organism/search-and-chips-results/test/fixtures/default.js.map +1 -1
  922. package/lib/organism/settings/index.js +4 -2
  923. package/lib/organism/settings/index.js.map +1 -1
  924. package/lib/organism/sidebar/index.js +15 -13
  925. package/lib/organism/sidebar/index.js.map +1 -1
  926. package/lib/organism/user-preferences/index.js +4 -2
  927. package/lib/organism/user-preferences/index.js.map +1 -1
  928. package/lib/organism/wizard-contents/index.js +8 -10
  929. package/lib/organism/wizard-contents/index.js.map +1 -1
  930. package/lib/organism/wizard-contents/style.css +11 -15
  931. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
  932. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  933. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
  934. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  935. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
  936. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  937. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
  938. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  939. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
  940. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  941. package/lib/organism/wizard-contents/test/fixtures.js +34 -0
  942. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  943. package/lib/template/activity/index.js +1 -1
  944. package/lib/template/activity/index.js.map +1 -1
  945. package/lib/template/activity/progression-item.js +2 -2
  946. package/lib/template/activity/test/progression-item-test.js +1 -1
  947. package/lib/template/activity/test/progression-item-test.js.map +1 -1
  948. package/lib/template/app-player/player/slides/footer/index.js +1 -1
  949. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  950. package/lib/template/app-player/player/slides/index.js +15 -11
  951. package/lib/template/app-player/player/slides/index.js.map +1 -1
  952. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  953. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  954. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  955. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  956. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  957. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  958. package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  959. package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  960. package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  961. package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  962. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  963. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  964. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  965. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  966. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  967. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  968. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  969. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  970. package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
  971. package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  972. package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
  973. package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  974. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  975. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  976. package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  977. package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  978. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  979. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  980. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  981. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  982. package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
  983. package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  984. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  985. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  986. package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  987. package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  988. package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  989. package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  990. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  991. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  992. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  993. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  994. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  995. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  996. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  997. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  998. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  999. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  1000. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  1001. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  1002. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  1003. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  1004. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  1005. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  1006. package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  1007. package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  1008. package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
  1009. package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  1010. package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
  1011. package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  1012. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  1013. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  1014. package/lib/template/app-player/player/test/fixtures/background.js +1 -1
  1015. package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
  1016. package/lib/template/app-player/popin-correction/index.js +6 -4
  1017. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  1018. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  1019. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  1020. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  1021. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  1022. package/lib/template/app-player/popin-end/summary.js +12 -7
  1023. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  1024. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  1025. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  1026. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  1027. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  1028. package/lib/template/app-player/popin-header/index.js +7 -5
  1029. package/lib/template/app-player/popin-header/index.js.map +1 -1
  1030. package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
  1031. package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  1032. package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  1033. package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  1034. package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  1035. package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  1036. package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
  1037. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  1038. package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  1039. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  1040. package/lib/template/back-office/brand-update/index.js +13 -11
  1041. package/lib/template/back-office/brand-update/index.js.map +1 -1
  1042. package/lib/template/back-office/brand-update/style.css +4 -0
  1043. package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
  1044. package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
  1045. package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
  1046. package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
  1047. package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
  1048. package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
  1049. package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
  1050. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  1051. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  1052. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  1053. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  1054. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  1055. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  1056. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  1057. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  1058. package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
  1059. package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
  1060. package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
  1061. package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
  1062. package/lib/template/back-office/brand-update/test/fixtures/loader.js +7 -3
  1063. package/lib/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
  1064. package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
  1065. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
  1066. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  1067. package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js +2 -2
  1068. package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
  1069. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  1070. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  1071. package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
  1072. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  1073. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  1074. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  1075. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  1076. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +3 -3
  1077. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  1078. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
  1079. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  1080. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +50 -1
  1081. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  1082. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
  1083. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  1084. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
  1085. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  1086. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
  1087. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  1088. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
  1089. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  1090. package/lib/template/back-office/brand-update/test/fixtures.js +30 -3
  1091. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  1092. package/lib/template/cockpit/jw-uploader/index.js +1 -1
  1093. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  1094. package/lib/template/common/dashboard/index.js +1 -1
  1095. package/lib/template/common/dashboard/index.js.map +1 -1
  1096. package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  1097. package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  1098. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  1099. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  1100. package/lib/template/common/discipline/index.js +2 -2
  1101. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  1102. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  1103. package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
  1104. package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  1105. package/lib/template/common/discipline/test/fixtures/default.js +2 -2
  1106. package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
  1107. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  1108. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  1109. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  1110. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  1111. package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
  1112. package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  1113. package/lib/template/common/discipline/test/fixtures/share.js +1 -1
  1114. package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
  1115. package/lib/template/teams-dashboard/index.js +2 -2
  1116. package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
  1117. package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  1118. package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  1119. package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  1120. package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  1121. package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  1122. package/lib/test/helpers/render-component.js +1 -1
  1123. package/lib/util/external-content.js +1 -1
  1124. package/lib/util/proptypes.js +1 -1
  1125. package/lib/util/shallow-compare.js.map +1 -1
  1126. package/lib/util/test/navigation.js +5 -3
  1127. package/lib/util/test/navigation.js.map +1 -1
  1128. package/locales/hy/global.json +80 -0
  1129. package/package.json +2 -2
@@ -21,6 +21,23 @@
21
21
  margin-top: 53px;
22
22
  }
23
23
 
24
+ .coorpmanager .microLearningIcon {
25
+ display: flex;
26
+ flex-direction: column;
27
+ align-self: center;
28
+ margin-top: 35px;
29
+ }
30
+
31
+ .timerIcon {
32
+ height: 40px;
33
+ width: 40px;
34
+ }
35
+
36
+ .coorpmanager .timerIcon {
37
+ height: 30px;
38
+ width: 30px;
39
+ }
40
+
24
41
  .microLearningIcon svg {
25
42
  background:white;
26
43
  border-radius: 50%;
@@ -38,6 +55,10 @@
38
55
  text-transform: uppercase;
39
56
  }
40
57
 
58
+ .coorpmanager .microLearninglabel {
59
+ font-size: 6px;
60
+ }
61
+
41
62
  .infoWrapper {
42
63
  display: flex;
43
64
  flex-direction: column;
@@ -58,6 +79,11 @@
58
79
  user-select: none;
59
80
  }
60
81
 
82
+ .coorpmanager .title {
83
+ font-size: 12px;
84
+ font-weight: bold;
85
+ }
86
+
61
87
  .lightTitle {
62
88
  color: white;
63
89
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
@@ -85,6 +111,10 @@
85
111
  user-select: none;
86
112
  }
87
113
 
114
+ .coorpmanager .author {
115
+ font-size: 8px;
116
+ }
117
+
88
118
  .hero .title {
89
119
  text-align: center;
90
120
  color: white;
@@ -97,6 +127,14 @@
97
127
  margin-top: 5px;
98
128
  }
99
129
 
130
+ .card .coorpmanager .author {
131
+ margin-top: 0px;
132
+ }
133
+
134
+ .externalContent.coorpmanager .author {
135
+ margin-top: 5px;
136
+ }
137
+
100
138
  .hero .author {
101
139
  margin-top: 9px;
102
140
  margin-bottom: 24px;
@@ -179,6 +217,11 @@
179
217
  background: light;
180
218
  }
181
219
 
220
+ .coorpmanager .progressWrapper {
221
+ height: 2px;
222
+ margin: 11px auto;
223
+ }
224
+
182
225
  .card .progressWrapper {
183
226
  width: 150px;
184
227
  }
@@ -193,12 +236,21 @@
193
236
  font-weight: 700;
194
237
  }
195
238
 
239
+ .coorpmanager.externalContent .contentTypeInfo {
240
+ font-size: 6px;
241
+ }
242
+
196
243
  .externalContent .cardInfo {
197
244
  flex-grow: 2;
198
245
  max-height: 115px;
199
246
  overflow: hidden;
200
247
  }
201
248
 
249
+ .coorpmanager.externalContent .cardInfo {
250
+ flex-grow: 2;
251
+ max-height: 79px;
252
+ }
253
+
202
254
  @media mobile {
203
255
  .author {
204
256
  font-size: 12px;
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import base from './card';
4
4
  export default {
5
- props: _extends(_extends({}, base.props), {}, {
5
+ props: _extends({}, base.props, {
6
6
  adaptiv: true,
7
7
  disabled: true
8
8
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/adaptiv-and-disabled.js"],"names":["base","props","adaptiv","disabled"],"mappings":";;AAAA,OAAOA,IAAP,MAAiB,QAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,IAAI,CAACC,KADL;AAEHC,IAAAA,OAAO,EAAE,IAFN;AAGHC,IAAAA,QAAQ,EAAE;AAHP;AADQ,CAAf","sourcesContent":["import base from './card';\n\nexport default {\n props: {\n ...base.props,\n adaptiv: true,\n disabled: true\n }\n};\n"],"file":"adaptiv-and-disabled.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/adaptiv-and-disabled.js"],"names":["base","props","adaptiv","disabled"],"mappings":";;AAAA,OAAOA,IAAP,MAAiB,QAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,IAAI,CAACC,KADL;AAEHC,IAAAA,OAAO,EAAE,IAFN;AAGHC,IAAAA,QAAQ,EAAE;AAHP;AADQ,CAAf","sourcesContent":["import base from './card';\n\nexport default {\n props: {\n ...base.props,\n adaptiv: true,\n disabled: true\n }\n};\n"],"file":"adaptiv-and-disabled.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import base from './card';
4
4
  export default {
5
- props: _extends(_extends({}, base.props), {}, {
5
+ props: _extends({}, base.props, {
6
6
  adaptiv: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/adaptiv.js"],"names":["base","props","adaptiv"],"mappings":";;AAAA,OAAOA,IAAP,MAAiB,QAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,IAAI,CAACC,KADL;AAEHC,IAAAA,OAAO,EAAE;AAFN;AADQ,CAAf","sourcesContent":["import base from './card';\n\nexport default {\n props: {\n ...base.props,\n adaptiv: true\n }\n};\n"],"file":"adaptiv.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/adaptiv.js"],"names":["base","props","adaptiv"],"mappings":";;AAAA,OAAOA,IAAP,MAAiB,QAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,IAAI,CAACC,KADL;AAEHC,IAAAA,OAAO,EAAE;AAFN;AADQ,CAAf","sourcesContent":["import base from './card';\n\nexport default {\n props: {\n ...base.props,\n adaptiv: true\n }\n};\n"],"file":"adaptiv.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import base from './card';
4
4
  export default {
5
- props: _extends(_extends({}, base.props), {}, {
5
+ props: _extends({}, base.props, {
6
6
  disabled: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/disabled.js"],"names":["base","props","disabled"],"mappings":";;AAAA,OAAOA,IAAP,MAAiB,QAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,IAAI,CAACC,KADL;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import base from './card';\n\nexport default {\n props: {\n ...base.props,\n disabled: true\n }\n};\n"],"file":"disabled.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/disabled.js"],"names":["base","props","disabled"],"mappings":";;AAAA,OAAOA,IAAP,MAAiB,QAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,IAAI,CAACC,KADL;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import base from './card';\n\nexport default {\n props: {\n ...base.props,\n disabled: true\n }\n};\n"],"file":"disabled.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/card-with-button/index.js"],"names":["React","PropTypes","Provider","Link","Cta","style","backgroundImage","url","background","backgroundSize","Button","props","onClick","submitValue","light","CardWithButton","context","lightButtonLabel","primaryButtonLabel","tagLabel","onLightButtonClick","onPrimaryButtonClick","backgroundImg","children","skin","primaryColor","inlineStyle","color","container","imageBox","filtre","image","zoom","content","levelContainer","level","avatar","buttons","lightButton","contextTypes","translate","childContextTypes","propTypes","isRequired","string","node"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,SAASC,eAAT,CAAyBC,GAAzB,EAA8B;AAC5B,SAAO;AACLC,IAAAA,UAAU,EAAG;;;cAGHD,GAAI,GAJT;AAKLE,IAAAA,cAAc,EAAE;AALX,GAAP;AAOD;;AAED,MAAMC,MAAM,GAAGC,KAAK,IAAI;AACtB,QAAM;AAACC,IAAAA,OAAD;AAAUC,IAAAA,WAAV;AAAuBC,IAAAA,KAAK,GAAG;AAA/B,MAAwCH,KAA9C;AACA,sBAAO,oBAAC,GAAD;AAAK,IAAA,WAAW,EAAEE,WAAlB;AAA+B,IAAA,OAAO,EAAED,OAAxC;AAAiD,IAAA,KAAK,EAAEE;AAAxD,IAAP;AACD,CAHD;;AAIA,MAAMC,cAAc,GAAG,CAACJ,KAAD,EAAQK,OAAR,KAAoB;AACzC,QAAM;AACJC,IAAAA,gBADI;AAEJC,IAAAA,kBAFI;AAGJC,IAAAA,QAHI;AAIJC,IAAAA,kBAJI;AAKJC,IAAAA,oBALI;AAMJC,IAAAA,aANI;AAOJC,IAAAA;AAPI,MAQFZ,KARJ;AASA,QAAM;AAACa,IAAAA;AAAD,MAASR,OAAf;;AACA,QAAMS,YAAY,GAAG,KAAI,gBAAJ,EAAsBD,IAAtB,CAArB;;AACA,QAAME,WAAW,GAAG;AAACC,IAAAA,KAAK,EAAEF;AAAR,GAApB;AACA,sBACE;AAAK,IAAA,SAAS,EAAEpB,KAAK,CAACuB;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEvB,K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AFV,CAAnB;AAKAE,cAAc,CAAC2B,SAAf,2CAA2B;AACzBzB,EAAAA,gBAAgB,EAAEP,MAAM,CAACgC,SAAP,CAAiB7B,WADV;AAEzBK,EAAAA,kBAAkB,EAAER,MAAM,CAACgC,SAAP,CAAiB7B,WAAjB,CAA6B8B,UAFxB;AAGzBxB,EAAAA,QAAQ,EAAEhB,IAAI,CAACuC,SAAL,CAAenB,QAHA;AAIzBH,EAAAA,kBAAkB,EAAEV,MAAM,CAACgC,SAAP,CAAiB9B,OAJZ;AAKzBS,EAAAA,oBAAoB,EAAEX,MAAM,CAACgC,SAAP,CAAiB9B,OAAjB,CAAyB+B,UALtB;AAMzBrB,EAAAA,aAAa,EAAErB,SAAS,CAAC2C,MAAV,CAAiBD,UANP;AAOzBpB,EAAAA,QAAQ,EAAEtB,SAAS,CAAC4C;AAPK,CAA3B;AAUA,eAAe9B,cAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Link from '../../atom/link';\nimport Cta from '../../atom/cta';\nimport style from './style.css';\n\nfunction backgroundImage(url) {\n return {\n background: `linear-gradient(\n rgba(0, 0, 0, 0.65), \n rgba(0, 0, 0, 0.65)\n ),url(${url})`,\n backgroundSize: 'cover'\n };\n}\n\nconst Button = props => {\n const {onClick, submitValue, light = false} = props;\n return <Cta submitValue={submitValue} onClick={onClick} light={light} />;\n};\nconst CardWithButton = (props, context) => {\n const {\n lightButtonLabel,\n primaryButtonLabel,\n tagLabel,\n onLightButtonClick,\n onPrimaryButtonClick,\n backgroundImg,\n children\n } = props;\n const {skin} = context;\n const primaryColor = get('common.primary', skin);\n const inlineStyle = {color: primaryColor};\n return (\n <div className={style.container}>\n <div className={style.imageBox}>\n <div className={style.filtre}>\n <div className={`${style.image} ${style.zoom}`} style={backgroundImage(backgroundImg)}>\n <div className={style.content}>\n {tagLabel ? (\n <div className={style.levelContainer}>\n <div className={style.level}>\n <p>{tagLabel}</p>\n </div>\n </div>\n ) : null}\n {children ? <div className={style.avatar}>{children}</div> : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.buttons}>\n {lightButtonLabel ? (\n <a className={style.lightButton} style={inlineStyle} onClick={onLightButtonClick}>\n {lightButtonLabel}\n </a>\n ) : null}\n <Button submitValue={primaryButtonLabel} onClick={onPrimaryButtonClick} />\n </div>\n </div>\n );\n};\n\nCardWithButton.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nButton.propTypes = {\n onClick: Cta.propTypes.onClick,\n submitValue: Cta.propTypes.submitValue\n};\n\nCardWithButton.propTypes = {\n lightButtonLabel: Button.propTypes.submitValue,\n primaryButtonLabel: Button.propTypes.submitValue.isRequired,\n tagLabel: Link.propTypes.children,\n onLightButtonClick: Button.propTypes.onClick,\n onPrimaryButtonClick: Button.propTypes.onClick.isRequired,\n backgroundImg: PropTypes.string.isRequired,\n children: PropTypes.node\n};\n\nexport default CardWithButton;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/card-with-button/index.js"],"names":["React","PropTypes","Provider","Link","Cta","style","backgroundImage","url","background","backgroundSize","Button","props","onClick","submitValue","light","CardWithButton","context","lightButtonLabel","primaryButtonLabel","tagLabel","onLightButtonClick","onPrimaryButtonClick","backgroundImg","children","skin","primaryColor","inlineStyle","color","container","imageBox","filtre","image","zoom","content","levelContainer","level","avatar","buttons","lightButton","contextTypes","translate","childContextTypes","propTypes","isRequired","string","node"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,SAASC,eAAT,CAAyBC,GAAzB,EAA8B;AAC5B,SAAO;AACLC,IAAAA,UAAU,EAAG;AACjB;AACA;AAC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AyB+B,UALtB;AAMzBrB,EAAAA,aAAa,EAAErB,SAAS,CAAC2C,MAAV,CAAiBD,UANP;AAOzBpB,EAAAA,QAAQ,EAAEtB,SAAS,CAAC4C;AAPK,CAA3B;AAUA,eAAe9B,cAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Link from '../../atom/link';\nimport Cta from '../../atom/cta';\nimport style from './style.css';\n\nfunction backgroundImage(url) {\n return {\n background: `linear-gradient(\n rgba(0, 0, 0, 0.65), \n rgba(0, 0, 0, 0.65)\n ),url(${url})`,\n backgroundSize: 'cover'\n };\n}\n\nconst Button = props => {\n const {onClick, submitValue, light = false} = props;\n return <Cta submitValue={submitValue} onClick={onClick} light={light} />;\n};\nconst CardWithButton = (props, context) => {\n const {\n lightButtonLabel,\n primaryButtonLabel,\n tagLabel,\n onLightButtonClick,\n onPrimaryButtonClick,\n backgroundImg,\n children\n } = props;\n const {skin} = context;\n const primaryColor = get('common.primary', skin);\n const inlineStyle = {color: primaryColor};\n return (\n <div className={style.container}>\n <div className={style.imageBox}>\n <div className={style.filtre}>\n <div className={`${style.image} ${style.zoom}`} style={backgroundImage(backgroundImg)}>\n <div className={style.content}>\n {tagLabel ? (\n <div className={style.levelContainer}>\n <div className={style.level}>\n <p>{tagLabel}</p>\n </div>\n </div>\n ) : null}\n {children ? <div className={style.avatar}>{children}</div> : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.buttons}>\n {lightButtonLabel ? (\n <a className={style.lightButton} style={inlineStyle} onClick={onLightButtonClick}>\n {lightButtonLabel}\n </a>\n ) : null}\n <Button submitValue={primaryButtonLabel} onClick={onPrimaryButtonClick} />\n </div>\n </div>\n );\n};\n\nCardWithButton.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nButton.propTypes = {\n onClick: Cta.propTypes.onClick,\n submitValue: Cta.propTypes.submitValue\n};\n\nCardWithButton.propTypes = {\n lightButtonLabel: Button.propTypes.submitValue,\n primaryButtonLabel: Button.propTypes.submitValue.isRequired,\n tagLabel: Link.propTypes.children,\n onLightButtonClick: Button.propTypes.onClick,\n onPrimaryButtonClick: Button.propTypes.onClick.isRequired,\n backgroundImg: PropTypes.string.isRequired,\n children: PropTypes.node\n};\n\nexport default CardWithButton;\n"],"file":"index.js"}
@@ -26,6 +26,7 @@
26
26
  box-sizing: border-box;
27
27
  overflow: hidden;
28
28
  display: flex;
29
+ position:fixed;
29
30
  }
30
31
 
31
32
  .popin {
@@ -23,7 +23,7 @@ const Roles = ({
23
23
 
24
24
  Roles.propTypes = process.env.NODE_ENV !== "production" ? {
25
25
  title: PropTypes.string,
26
- fields: PropTypes.arrayOf(PropTypes.shape(_extends(_extends({}, InputCheckbox.propTypes), {}, {
26
+ fields: PropTypes.arrayOf(PropTypes.shape(_extends({}, InputCheckbox.propTypes, {
27
27
  type: PropTypes.oneOf(['checkbox'])
28
28
  })))
29
29
  } : {};
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/coorp-manager-roles/index.js"],"names":["React","PropTypes","InputCheckbox","style","Roles","title","fields","rolesGroup","content","map","field","i","propTypes","string","arrayOf","shape","type","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,KAAK,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA;AAAR,CAAD,KAAqB;AACjC,sBACE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACI;AAAtB,kBACE;AAAI,IAAA,SAAS,EAAEJ,KAAK,CAACE;AAArB,KAA6BA,KAA7B,CADF,eAEE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACK;AAAtB,KACGF,MAAM,CAACG,GAAP,CAAW,CAACC,KAAD,EAAQC,CAAR,kBACV;AAAM,IAAA,SAAS,EAAER,KAAK,CAACO,KAAvB;AAA8B,IAAA,GAAG,EAAEC;AAAnC,kBACE,oBAAC,aAAD,EAAmBD,KAAnB,CADF,CADD,CADH,CAFF,CADF;AAYD,CAbD;;AAeAN,KAAK,CAACQ,SAAN,2CAAkB;AAChBP,EAAAA,KAAK,EAAEJ,SAAS,CAACY,MADD;AAEhBP,EAAAA,MAAM,EAAEL,SAAS,CAACa,OAAV,CACNb,SAAS,CAACc,KAAV,uBACKb,aAAa,CAACU,SADnB;AAEEI,IAAAA,IAAI,EAAEf,SAAS,CAACgB,KAAV,CAAgB,CAAC,UAAD,CAAhB;AAFR,KADM;AAFQ,CAAlB;AAUA,eAAeb,KAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport style from './style.css';\n\nconst Roles = ({title, fields}) => {\n return (\n <div className={style.rolesGroup}>\n <h3 className={style.title}>{title}</h3>\n <div className={style.content}>\n {fields.map((field, i) => (\n <span className={style.field} key={i}>\n <InputCheckbox {...field} />\n </span>\n ))}\n </div>\n </div>\n );\n};\n\nRoles.propTypes = {\n title: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n })\n )\n};\n\nexport default Roles;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/coorp-manager-roles/index.js"],"names":["React","PropTypes","InputCheckbox","style","Roles","title","fields","rolesGroup","content","map","field","i","propTypes","string","arrayOf","shape","type","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,KAAK,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA;AAAR,CAAD,KAAqB;AACjC,sBACE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACI;AAAtB,kBACE;AAAI,IAAA,SAAS,EAAEJ,KAAK,CAACE;AAArB,KAA6BA,KAA7B,CADF,eAEE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACK;AAAtB,KACGF,MAAM,CAACG,GAAP,CAAW,CAACC,KAAD,EAAQC,CAAR,kBACV;AAAM,IAAA,SAAS,EAAER,KAAK,CAACO,KAAvB;AAA8B,IAAA,GAAG,EAAEC;AAAnC,kBACE,oBAAC,aAAD,EAAmBD,KAAnB,CADF,CADD,CADH,CAFF,CADF;AAYD,CAbD;;AAeAN,KAAK,CAACQ,SAAN,2CAAkB;AAChBP,EAAAA,KAAK,EAAEJ,SAAS,CAACY,MADD;AAEhBP,EAAAA,MAAM,EAAEL,SAAS,CAACa,OAAV,CACNb,SAAS,CAACc,KAAV,cACKb,aAAa,CAACU,SADnB;AAEEI,IAAAA,IAAI,EAAEf,SAAS,CAACgB,KAAV,CAAgB,CAAC,UAAD,CAAhB;AAFR,KADM;AAFQ,CAAlB;AAUA,eAAeb,KAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport style from './style.css';\n\nconst Roles = ({title, fields}) => {\n return (\n <div className={style.rolesGroup}>\n <h3 className={style.title}>{title}</h3>\n <div className={style.content}>\n {fields.map((field, i) => (\n <span className={style.field} key={i}>\n <InputCheckbox {...field} />\n </span>\n ))}\n </div>\n </div>\n );\n};\n\nRoles.propTypes = {\n title: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n })\n )\n};\n\nexport default Roles;\n"],"file":"index.js"}
@@ -22,5 +22,5 @@ const BattleRequestList = (props, context) => {
22
22
  BattleRequestList.propTypes = process.env.NODE_ENV !== "production" ? {
23
23
  requests: PropTypes.arrayOf(PropTypes.shape(BattleRequest.propTypes))
24
24
  } : {};
25
- export default React.memo(BattleRequestList);
25
+ export default /*#__PURE__*/React.memo(BattleRequestList);
26
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/dashboard/battle-request-list/index.js"],"names":["React","PropTypes","BattleRequest","style","BattleRequestList","props","context","requests","cards","map","request","key","card","list","propTypes","arrayOf","shape","memo"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,sBAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,iBAAiB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AAC5C,QAAM;AAACC,IAAAA;AAAD,MAAaF,KAAnB;AAEA,QAAMG,KAAK,GAAGD,QAAQ,CAACE,GAAT,CAAa,CAACC,OAAD,EAAUC,GAAV,KAAkB;AAC3C,wBACE;AAAK,MAAA,SAAS,EAAER,KAAK,CAACS,IAAtB;AAA4B,MAAA,GAAG,EAAED;AAAjC,oBACE,oBAAC,aAAD,EAAmBD,OAAnB,CADF,CADF;AAKD,GANa,CAAd;AAQA,sBACE;AAAK,IAAA,SAAS,EAAEP,KAAK,CAACU,IAAtB;AAA4B,iBAAU;AAAtC,KACGL,KADH,CADF;AAKD,CAhBD;;AAkBAJ,iBAAiB,CAACU,SAAlB,2CAA8B;AAC5BP,EAAAA,QAAQ,EAAEN,SAAS,CAACc,OAAV,CAAkBd,SAAS,CAACe,KAAV,CAAgBd,aAAa,CAACY,SAA9B,CAAlB;AADkB,CAA9B;AAIA,eAAed,KAAK,CAACiB,IAAN,CAAWb,iBAAX,CAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport BattleRequest from '../../battle-request';\nimport style from './style.css';\n\nconst BattleRequestList = (props, context) => {\n const {requests} = props;\n\n const cards = requests.map((request, key) => {\n return (\n <div className={style.card} key={key}>\n <BattleRequest {...request} />\n </div>\n );\n });\n\n return (\n <div className={style.list} data-name=\"battle-request-list\">\n {cards}\n </div>\n );\n};\n\nBattleRequestList.propTypes = {\n requests: PropTypes.arrayOf(PropTypes.shape(BattleRequest.propTypes))\n};\n\nexport default React.memo(BattleRequestList);\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/dashboard/battle-request-list/index.js"],"names":["React","PropTypes","BattleRequest","style","BattleRequestList","props","context","requests","cards","map","request","key","card","list","propTypes","arrayOf","shape","memo"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,sBAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,iBAAiB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AAC5C,QAAM;AAACC,IAAAA;AAAD,MAAaF,KAAnB;AAEA,QAAMG,KAAK,GAAGD,QAAQ,CAACE,GAAT,CAAa,CAACC,OAAD,EAAUC,GAAV,KAAkB;AAC3C,wBACE;AAAK,MAAA,SAAS,EAAER,KAAK,CAACS,IAAtB;AAA4B,MAAA,GAAG,EAAED;AAAjC,oBACE,oBAAC,aAAD,EAAmBD,OAAnB,CADF,CADF;AAKD,GANa,CAAd;AAQA,sBACE;AAAK,IAAA,SAAS,EAAEP,KAAK,CAACU,IAAtB;AAA4B,iBAAU;AAAtC,KACGL,KADH,CADF;AAKD,CAhBD;;AAkBAJ,iBAAiB,CAACU,SAAlB,2CAA8B;AAC5BP,EAAAA,QAAQ,EAAEN,SAAS,CAACc,OAAV,CAAkBd,SAAS,CAACe,KAAV,CAAgBd,aAAa,CAACY,SAA9B,CAAlB;AADkB,CAA9B;AAIA,4BAAed,KAAK,CAACiB,IAAN,CAAWb,iBAAX,CAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport BattleRequest from '../../battle-request';\nimport style from './style.css';\n\nconst BattleRequestList = (props, context) => {\n const {requests} = props;\n\n const cards = requests.map((request, key) => {\n return (\n <div className={style.card} key={key}>\n <BattleRequest {...request} />\n </div>\n );\n });\n\n return (\n <div className={style.list} data-name=\"battle-request-list\">\n {cards}\n </div>\n );\n};\n\nBattleRequestList.propTypes = {\n requests: PropTypes.arrayOf(PropTypes.shape(BattleRequest.propTypes))\n};\n\nexport default React.memo(BattleRequestList);\n"],"file":"index.js"}
@@ -11,7 +11,7 @@ export default {
11
11
  props: {
12
12
  title: 'Microlearning: Most popular',
13
13
  showMore: 'See all',
14
- cards: _times(() => props, 8).map((p, index) => _extends(_extends({}, p), {}, {
14
+ cards: _times(() => props, 8).map((p, index) => _extends({}, p, {
15
15
  title: `${p.title}#${index}`
16
16
  })),
17
17
  onScroll: (skip, limit) => {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/molecule/dashboard/cards-list/test/fixtures/microlearning.js"],"names":["Card","props","type","title","showMore","cards","map","p","index","onScroll","skip","limit","console","log","onShowMore","contentType"],"mappings":";;;;AACA,OAAOA,IAAP,MAAiB,wCAAjB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,IAAhB;AACAC,KAAK,CAACC,IAAN,GAAa,SAAb;AAEA,eAAe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,6BADF;AAELC,IAAAA,QAAQ,EAAE,SAFL;AAGLC,IAAAA,KAAK,EAAE,OAAM,MAAMJ,KAAZ,EAAmB,CAAnB,EAAsBK,GAAtB,CAA0B,CAACC,CAAD,EAAIC,KAAJ,2BAAmBD,CAAnB;AAAsBJ,MAAAA,KAAK,EAAG,GAAEI,CAAC,CAACJ,KAAM,IAAGK,KAAM;AAAjD,MAA1B,CAHF;AAILC,IAAAA,QAAQ,EAAE,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACzBC,MAAAA,OAAO,CAACC,GAAR,CAAYH,IAAZ,EAAkBC,KAAlB;AACD,KANI;AAOLG,IAAAA,UAAU,EAAE,MAAM;AAChBF,MAAAA,OAAO,CAACC,GAAR,CAAY,WAAZ;AACD,KATI;AAULE,IAAAA,WAAW,EAAE;AAVR;AADM,CAAf","sourcesContent":["import {times} from 'lodash/fp';\nimport Card from '../../../../card/test/fixtures/default';\n\nconst {props} = Card;\nprops.type = 'chapter';\n\nexport default {\n props: {\n title: 'Microlearning: Most popular',\n showMore: 'See all',\n cards: times(() => props, 8).map((p, index) => ({...p, title: `${p.title}#${index}`})),\n onScroll: (skip, limit) => {\n console.log(skip, limit);\n },\n onShowMore: () => {\n console.log('show More');\n },\n contentType: 'chapter'\n }\n};\n"],"file":"microlearning.js"}
1
+ {"version":3,"sources":["../../../../../../src/molecule/dashboard/cards-list/test/fixtures/microlearning.js"],"names":["Card","props","type","title","showMore","cards","map","p","index","onScroll","skip","limit","console","log","onShowMore","contentType"],"mappings":";;;;AACA,OAAOA,IAAP,MAAiB,wCAAjB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,IAAhB;AACAC,KAAK,CAACC,IAAN,GAAa,SAAb;AAEA,eAAe;AACbD,EAAAA,KAAK,EAAE;AACLE,IAAAA,KAAK,EAAE,6BADF;AAELC,IAAAA,QAAQ,EAAE,SAFL;AAGLC,IAAAA,KAAK,EAAE,OAAM,MAAMJ,KAAZ,EAAmB,CAAnB,EAAsBK,GAAtB,CAA0B,CAACC,CAAD,EAAIC,KAAJ,kBAAmBD,CAAnB;AAAsBJ,MAAAA,KAAK,EAAG,GAAEI,CAAC,CAACJ,KAAM,IAAGK,KAAM;AAAjD,MAA1B,CAHF;AAILC,IAAAA,QAAQ,EAAE,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACzBC,MAAAA,OAAO,CAACC,GAAR,CAAYH,IAAZ,EAAkBC,KAAlB;AACD,KANI;AAOLG,IAAAA,UAAU,EAAE,MAAM;AAChBF,MAAAA,OAAO,CAACC,GAAR,CAAY,WAAZ;AACD,KATI;AAULE,IAAAA,WAAW,EAAE;AAVR;AADM,CAAf","sourcesContent":["import {times} from 'lodash/fp';\nimport Card from '../../../../card/test/fixtures/default';\n\nconst {props} = Card;\nprops.type = 'chapter';\n\nexport default {\n props: {\n title: 'Microlearning: Most popular',\n showMore: 'See all',\n cards: times(() => props, 8).map((p, index) => ({...p, title: `${p.title}#${index}`})),\n onScroll: (skip, limit) => {\n console.log(skip, limit);\n },\n onShowMore: () => {\n console.log('show More');\n },\n contentType: 'chapter'\n }\n};\n"],"file":"microlearning.js"}
@@ -18,7 +18,7 @@ const mapValuesWithIndex = _map.convert({
18
18
  cap: false
19
19
  });
20
20
 
21
- const cards = _pipe(_flatMap(_get('props.cards')), cs => _times(() => cs, 35), _flatten, mapValuesWithIndex((p, index) => _isEmpty(p) ? p : _extends(_extends({}, p), {}, {
21
+ const cards = _pipe(_flatMap(_get('props.cards')), cs => _times(() => cs, 35), _flatten, mapValuesWithIndex((p, index) => _isEmpty(p) ? p : _extends({}, p, {
22
22
  title: `${p.title}#${index}`
23
23
  })))([Default, Many, ManyEmpty, Microlearning, NoIcon]);
24
24
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/molecule/dashboard/cards-list/test/fixtures/performance.js"],"names":["Default","Many","ManyEmpty","Microlearning","NoIcon","mapValuesWithIndex","convert","cap","cards","cs","p","index","title","props","showMore","onScroll","skip","limit","console","log","onShowMore","contentType"],"mappings":";;;;;;;;;;AACA,OAAOA,OAAP,MAAoB,WAApB;AACA,OAAOC,IAAP,MAAiB,QAAjB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,MAAP,MAAmB,WAAnB;;AAEA,MAAMC,kBAAkB,GAAG,KAAIC,OAAJ,CAAY;AAACC,EAAAA,GAAG,EAAE;AAAN,CAAZ,CAA3B;;AAEA,MAAMC,KAAK,GAAG,MACZ,SAAQ,KAAI,aAAJ,CAAR,CADY,EAEZC,EAAE,IAAI,OAAM,MAAMA,EAAZ,EAAgB,EAAhB,CAFM,YAIZJ,kBAAkB,CAAC,CAACK,CAAD,EAAIC,KAAJ,KACjB,SAAQD,CAAR,IACIA,CADJ,yBAGSA,CAHT;AAIME,EAAAA,KAAK,EAAG,GAAEF,CAAC,CAACE,KAAM,IAAGD,KAAM;AAJjC,EADgB,CAJN,EAYZ,CAACX,OAAD,EAAUC,IAAV,EAAgBC,SAAhB,EAA2BC,aAA3B,EAA0CC,MAA1C,CAZY,CAAd;;AAcA,eAAe;AACbS,EAAAA,KAAK,EAAE;AACLD,IAAAA,KAAK,EAAE,aADF;AAELE,IAAAA,QAAQ,EAAE,SAFL;AAGLN,IAAAA,KAHK;AAILO,IAAAA,QAAQ,EAAE,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACzBC,MAAAA,OAAO,CAACC,GAAR,CAAYH,IAAZ,EAAkBC,KAAlB;AACD,KANI;AAOLG,IAAAA,UAAU,EAAE,MAAM;AAChBF,MAAAA,OAAO,CAACC,GAAR,CAAY,WAAZ;AACD,KATI;AAULE,IAAAA,WAAW,EAAE;AAVR;AADM,CAAf","sourcesContent":["import {times, flatMap, get, flatten, map, pipe, isEmpty} from 'lodash/fp';\nimport Default from './default';\nimport Many from './many';\nimport ManyEmpty from './many-empty';\nimport Microlearning from './microlearning';\nimport NoIcon from './no-icon';\n\nconst mapValuesWithIndex = map.convert({cap: false});\n\nconst cards = pipe(\n flatMap(get('props.cards')),\n cs => times(() => cs, 35),\n flatten,\n mapValuesWithIndex((p, index) =>\n isEmpty(p)\n ? p\n : {\n ...p,\n title: `${p.title}#${index}`\n }\n )\n)([Default, Many, ManyEmpty, Microlearning, NoIcon]);\n\nexport default {\n props: {\n title: 'Performance',\n showMore: 'See all',\n cards,\n onScroll: (skip, limit) => {\n console.log(skip, limit);\n },\n onShowMore: () => {\n console.log('show More');\n },\n contentType: 'chapter'\n }\n};\n"],"file":"performance.js"}
1
+ {"version":3,"sources":["../../../../../../src/molecule/dashboard/cards-list/test/fixtures/performance.js"],"names":["Default","Many","ManyEmpty","Microlearning","NoIcon","mapValuesWithIndex","convert","cap","cards","cs","p","index","title","props","showMore","onScroll","skip","limit","console","log","onShowMore","contentType"],"mappings":";;;;;;;;;;AACA,OAAOA,OAAP,MAAoB,WAApB;AACA,OAAOC,IAAP,MAAiB,QAAjB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,MAAP,MAAmB,WAAnB;;AAEA,MAAMC,kBAAkB,GAAG,KAAIC,OAAJ,CAAY;AAACC,EAAAA,GAAG,EAAE;AAAN,CAAZ,CAA3B;;AAEA,MAAMC,KAAK,GAAG,MACZ,SAAQ,KAAI,aAAJ,CAAR,CADY,EAEZC,EAAE,IAAI,OAAM,MAAMA,EAAZ,EAAgB,EAAhB,CAFM,YAIZJ,kBAAkB,CAAC,CAACK,CAAD,EAAIC,KAAJ,KACjB,SAAQD,CAAR,IACIA,CADJ,gBAGSA,CAHT;AAIME,EAAAA,KAAK,EAAG,GAAEF,CAAC,CAACE,KAAM,IAAGD,KAAM;AAJjC,EADgB,CAJN,EAYZ,CAACX,OAAD,EAAUC,IAAV,EAAgBC,SAAhB,EAA2BC,aAA3B,EAA0CC,MAA1C,CAZY,CAAd;;AAcA,eAAe;AACbS,EAAAA,KAAK,EAAE;AACLD,IAAAA,KAAK,EAAE,aADF;AAELE,IAAAA,QAAQ,EAAE,SAFL;AAGLN,IAAAA,KAHK;AAILO,IAAAA,QAAQ,EAAE,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACzBC,MAAAA,OAAO,CAACC,GAAR,CAAYH,IAAZ,EAAkBC,KAAlB;AACD,KANI;AAOLG,IAAAA,UAAU,EAAE,MAAM;AAChBF,MAAAA,OAAO,CAACC,GAAR,CAAY,WAAZ;AACD,KATI;AAULE,IAAAA,WAAW,EAAE;AAVR;AADM,CAAf","sourcesContent":["import {times, flatMap, get, flatten, map, pipe, isEmpty} from 'lodash/fp';\nimport Default from './default';\nimport Many from './many';\nimport ManyEmpty from './many-empty';\nimport Microlearning from './microlearning';\nimport NoIcon from './no-icon';\n\nconst mapValuesWithIndex = map.convert({cap: false});\n\nconst cards = pipe(\n flatMap(get('props.cards')),\n cs => times(() => cs, 35),\n flatten,\n mapValuesWithIndex((p, index) =>\n isEmpty(p)\n ? p\n : {\n ...p,\n title: `${p.title}#${index}`\n }\n )\n)([Default, Many, ManyEmpty, Microlearning, NoIcon]);\n\nexport default {\n props: {\n title: 'Performance',\n showMore: 'See all',\n cards,\n onScroll: (skip, limit) => {\n console.log(skip, limit);\n },\n onShowMore: () => {\n console.log('show More');\n },\n contentType: 'chapter'\n }\n};\n"],"file":"performance.js"}
@@ -91,7 +91,7 @@ test('should return scrollWidth and call onScroll if exist', t => {
91
91
  scrollData.limit = limit;
92
92
  };
93
93
 
94
- const cardsList_ = mountCardsList(_extends(_extends({}, props_), {}, {
94
+ const cardsList_ = mountCardsList(_extends({}, props_, {
95
95
  onScroll
96
96
  }));
97
97
  const instance_ = cardsList_.instance();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/dashboard/cards-list/test/index.js"],"names":["browserEnv","test","React","mount","configure","Adapter","wrappingComponent","Card","CardsList","adapter","mountCardsList","props","component","cards","t","props_","cardsList","instance","cardsWrapper","offsetWidth","scrollLeft","removeEventListener","setState","is","state","maxPages","actualPage","handleOnLeft","handleOnRight","unmount","handleScroll","scrollData","skip","limit","onScroll","cardsList_","instance_","CARD_WIDTH","getScrollWidth","handleResize"],"mappings":";;;;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,KAAR,EAAeC,SAAf,QAA+B,QAA/B;AACA,OAAOC,OAAP,MAAoB,yBAApB;AAEA,SAAQC,iBAAR,QAAgC,2CAAhC;AACA,OAAOC,IAAP,MAAiB,qCAAjB;AACA,OAAOC,SAAP,MAAsB,IAAtB;AAEAR,UAAU;AACVI,SAAS,CAAC;AAACK,EAAAA,OAAO,EAAE,IAAIJ,OAAJ;AAAV,CAAD,CAAT;;AAEA,MAAMK,cAAc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B;AAEAT,EAAAA,SAAS,CAACa,OAAV;AACD,CArBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport {times} from 'lodash/fp';\nimport {wrappingComponent} from '../../../../test/helpers/render-component';\nimport Card from '../../../card/test/fixtures/default';\nimport CardsList from '..';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\nconst mountCardsList = props => {\n const component = <CardsList {...props} />;\n const cards = mount(component, {wrappingComponent});\n return cards;\n};\n\ntest('should move cards by pages', t => {\n const {props} = Card;\n const props_ = {\n cards: times(() => props, 11)\n };\n\n const cardsList = mountCardsList(props_);\n const instance = cardsList.instance();\n instance.cardsWrapper = {offsetWidth: 1088, scrollLeft: 271, removeEventListener: () => {}};\n instance.setState({offsetWidth: 1088});\n\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 2);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 1);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 2);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 1);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 2);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 1);\n\n cardsList.unmount();\n});\n\ntest('should return scrollWidth and call onScroll if exist', t => {\n const {props} = Card;\n const props_ = {\n cards: times(() => props, 3)\n };\n\n const cardsList = mountCardsList(props_);\n const instance = cardsList.instance();\n instance.handleScroll({});\n\n const scrollData = {skip: 0, limit: 0};\n const onScroll = (skip, limit) => {\n scrollData.skip = skip;\n scrollData.limit = limit;\n };\n\n const cardsList_ = mountCardsList({...props_, onScroll});\n const instance_ = cardsList_.instance();\n\n const CARD_WIDTH = 272;\n\n t.is(instance_.getScrollWidth(0), 272);\n\n instance_.cardsWrapper = {\n scrollLeft: 0,\n offsetWidth: CARD_WIDTH * 2,\n removeEventListener: () => {}\n };\n instance_.setState({scrollLeft: 0, offsetWidth: CARD_WIDTH * 2});\n\n instance_.handleScroll();\n t.is(scrollData.skip, 0);\n t.is(scrollData.limit, 2);\n\n instance_.cardsWrapper = {\n scrollLeft: CARD_WIDTH / 2,\n offsetWidth: CARD_WIDTH * 2,\n removeEventListener: () => {}\n };\n instance_.setState({scrollLeft: CARD_WIDTH / 2});\n instance_.handleScroll();\n\n t.is(scrollData.skip, 0);\n t.is(scrollData.limit, 3);\n\n instance_.cardsWrapper = {\n scrollLeft: CARD_WIDTH,\n offsetWidth: CARD_WIDTH * 2,\n removeEventListener: () => {}\n };\n instance_.setState({scrollLeft: CARD_WIDTH});\n instance_.handleScroll();\n\n t.is(scrollData.skip, 1);\n t.is(scrollData.limit, 2);\n\n cardsList.unmount();\n});\n\ntest('should update component when resizing', t => {\n const {props} = Card;\n const props_ = {\n cards: times(() => props, 3)\n };\n\n const cardsList = mountCardsList(props_);\n const instance = cardsList.instance();\n instance.cardsWrapper = {offsetWidth: 1088, scrollLeft: 272, removeEventListener: () => {}};\n instance.setState({scrollLeft: 1088, offsetWidth: 1088});\n\n t.is(instance.state.maxPages, 0);\n\n instance.cardsWrapper = {offsetWidth: 600, scrollLeft: 272, removeEventListener: () => {}};\n instance.setState({offsetWidth: 600, scrollLeft: 272});\n\n instance.handleResize();\n\n t.is(instance.state.maxPages, 1);\n\n cardsList.unmount();\n});\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/dashboard/cards-list/test/index.js"],"names":["browserEnv","test","React","mount","configure","Adapter","wrappingComponent","Card","CardsList","adapter","mountCardsList","props","component","cards","t","props_","cardsList","instance","cardsWrapper","offsetWidth","scrollLeft","removeEventListener","setState","is","state","maxPages","actualPage","handleOnLeft","handleOnRight","unmount","handleScroll","scrollData","skip","limit","onScroll","cardsList_","instance_","CARD_WIDTH","getScrollWidth","handleResize"],"mappings":";;;;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,KAAR,EAAeC,SAAf,QAA+B,QAA/B;AACA,OAAOC,OAAP,MAAoB,yBAApB;AAEA,SAAQC,iBAAR,QAAgC,2CAAhC;AACA,OAAOC,IAAP,MAAiB,qCAAjB;AACA,OAAOC,SAAP,MAAsB,IAAtB;AAEAR,UAAU;AACVI,SAAS,CAAC;AAACK,EAAAA,OAAO,EAAE,IAAIJ,OAAJ;AAAV,CAAD,CAAT;;AAEA,MAAMK,cAAc,GAAGC,KAAK,IAAI;AAC9B,QAAMC,SAAS,gBAAG,oBAAC,SAAD,EAAeD,KAAf,CAAlB;AACA,QAAME,KAAK,GAAGV,KAAK,CAACS,SAAD,EAAY;AAACN,IAAAA;AAAD,GAAZ,CAAnB;AACA,SAAOO,KAAP;AACD,CAJD;;AAMAZ,IAAI,CAAC,4BAAD,EAA+Ba,CAAC,IAAI;AACtC,QAAM;AAACH,IAAAA;AAAD,MAAUJ,IAAhB;AACA,QAAMQ,MAAM,GAAG;AACbF,IAAAA,KAAK,EAAE,OAAM,MAAMF,KAAZ,EAAmB,EAAnB;AADM,GAAf;AAIA,QAAMK,SAAS,GAAGN,cAAc,CAACK,MAAD,CAAhC;AACA,QAAME,QAAQ,GAAGD,SAAS,CAACC,QAAV,EAAjB;AACAA,EAAAA,QAAQ,CAACC,YAAT,GAAwB;AAACC,IAAAA,WAAW,EAAE,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A,UAAU,EAAE,GAAhC;AAAqCC,IAAAA,mBAAmB,EAAE,MAAM,CAAE;AAAlE,GAAxB;AACAJ,EAAAA,QAAQ,CAACK,QAAT,CAAkB;AAACF,IAAAA,UAAU,EAAE,IAAb;AAAmBD,IAAAA,WAAW,EAAE;AAAhC,GAAlB;AAEAL,EAAAA,CAAC,CAACS,EAAF,CAAKN,QAAQ,CAACO,KAAT,CAAeC,QAApB,EAA8B,CAA9B;AAEAR,EAAAA,QAAQ,CAACC,YAAT,GAAwB;AAACC,IAAAA,WAAW,EAAE,GAAd;AAAmBC,IAAAA,UAAU,EAAE,GAA/B;AAAoCC,IAAAA,mBAAmB,EAAE,MAAM,CAAE;AAAjE,GAAxB;AACAJ,EAAAA,QAAQ,CAACK,QAAT,CAAkB;AAACH,IAAAA,WAAW,EAAE,GAAd;AAAmBC,IAAAA,UAAU,EAAE;AAA/B,GAAlB;AAEAH,EAAAA,QAAQ,CAACsB,YAAT;AAEAzB,EAAAA,CAAC,CAACS,EAAF,CAAKN,QAAQ,CAACO,KAAT,CAAeC,QAApB,EAA8B,CAA9B;AAEAT,EAAAA,SAAS,CAACa,OAAV;AACD,CArBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport {times} from 'lodash/fp';\nimport {wrappingComponent} from '../../../../test/helpers/render-component';\nimport Card from '../../../card/test/fixtures/default';\nimport CardsList from '..';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\nconst mountCardsList = props => {\n const component = <CardsList {...props} />;\n const cards = mount(component, {wrappingComponent});\n return cards;\n};\n\ntest('should move cards by pages', t => {\n const {props} = Card;\n const props_ = {\n cards: times(() => props, 11)\n };\n\n const cardsList = mountCardsList(props_);\n const instance = cardsList.instance();\n instance.cardsWrapper = {offsetWidth: 1088, scrollLeft: 271, removeEventListener: () => {}};\n instance.setState({offsetWidth: 1088});\n\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 2);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 1);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 2);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnRight();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 1);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 0);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 2);\n\n instance.handleOnLeft();\n t.is(instance.state.maxPages, 2);\n t.is(instance.state.actualPage, 1);\n\n cardsList.unmount();\n});\n\ntest('should return scrollWidth and call onScroll if exist', t => {\n const {props} = Card;\n const props_ = {\n cards: times(() => props, 3)\n };\n\n const cardsList = mountCardsList(props_);\n const instance = cardsList.instance();\n instance.handleScroll({});\n\n const scrollData = {skip: 0, limit: 0};\n const onScroll = (skip, limit) => {\n scrollData.skip = skip;\n scrollData.limit = limit;\n };\n\n const cardsList_ = mountCardsList({...props_, onScroll});\n const instance_ = cardsList_.instance();\n\n const CARD_WIDTH = 272;\n\n t.is(instance_.getScrollWidth(0), 272);\n\n instance_.cardsWrapper = {\n scrollLeft: 0,\n offsetWidth: CARD_WIDTH * 2,\n removeEventListener: () => {}\n };\n instance_.setState({scrollLeft: 0, offsetWidth: CARD_WIDTH * 2});\n\n instance_.handleScroll();\n t.is(scrollData.skip, 0);\n t.is(scrollData.limit, 2);\n\n instance_.cardsWrapper = {\n scrollLeft: CARD_WIDTH / 2,\n offsetWidth: CARD_WIDTH * 2,\n removeEventListener: () => {}\n };\n instance_.setState({scrollLeft: CARD_WIDTH / 2});\n instance_.handleScroll();\n\n t.is(scrollData.skip, 0);\n t.is(scrollData.limit, 3);\n\n instance_.cardsWrapper = {\n scrollLeft: CARD_WIDTH,\n offsetWidth: CARD_WIDTH * 2,\n removeEventListener: () => {}\n };\n instance_.setState({scrollLeft: CARD_WIDTH});\n instance_.handleScroll();\n\n t.is(scrollData.skip, 1);\n t.is(scrollData.limit, 2);\n\n cardsList.unmount();\n});\n\ntest('should update component when resizing', t => {\n const {props} = Card;\n const props_ = {\n cards: times(() => props, 3)\n };\n\n const cardsList = mountCardsList(props_);\n const instance = cardsList.instance();\n instance.cardsWrapper = {offsetWidth: 1088, scrollLeft: 272, removeEventListener: () => {}};\n instance.setState({scrollLeft: 1088, offsetWidth: 1088});\n\n t.is(instance.state.maxPages, 0);\n\n instance.cardsWrapper = {offsetWidth: 600, scrollLeft: 272, removeEventListener: () => {}};\n instance.setState({offsetWidth: 600, scrollLeft: 272});\n\n instance.handleResize();\n\n t.is(instance.state.maxPages, 1);\n\n cardsList.unmount();\n});\n"],"file":"index.js"}
@@ -46,5 +46,5 @@ NewsList.propTypes = process.env.NODE_ENV !== "production" ? {
46
46
  }),
47
47
  loading: PropTypes.bool
48
48
  } : {};
49
- export default React.memo(NewsList);
49
+ export default /*#__PURE__*/React.memo(NewsList);
50
50
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/dashboard/news-list/index.js"],"names":["React","PropTypes","News","Loader","style","NewsList","props","context","title","news","more","loading","loadingView","loader","moreView","onClick","label","cardsView","map","nws","key","card","wrapper","list","propTypes","string","arrayOf","shape","func","bool","memo"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,YAAjB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,GAAG,C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,EAAEf,SAAS,CAACwB,MADG;AAEpBV,IAAAA,OAAO,EAAEd,SAAS,CAAC2B;AAFC,GAAhB,CAHa;AAOnBjB,EAAAA,OAAO,EAAEV,SAAS,CAAC4B;AAPA,CAArB;AAUA,eAAe7B,KAAK,CAAC8B,IAAN,CAAWzB,QAAX,CAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport News from '../../news';\nimport Loader from '../../../atom/loader';\nimport style from './style.css';\n\nconst NewsList = (props, context) => {\n const {title, news, more, loading = false} = props;\n\n const loadingView = (\n <div className={style.loader}>\n <Loader />\n </div>\n );\n\n const moreView = more ? (\n // eslint-disable-next-line react/jsx-handler-names\n <div className={style.more} onClick={more.onClick}>\n {more.label}\n </div>\n ) : null;\n\n const cardsView = news.map((nws, key) => {\n return (\n <div className={style.card} key={key}>\n <News {...nws} />\n </div>\n );\n });\n\n return (\n <div className={style.wrapper} data-name=\"news-list\">\n <div className={style.list}>\n <div className={style.title}>{title}</div>\n {cardsView}\n {loading ? loadingView : moreView}\n </div>\n </div>\n );\n};\n\nNewsList.propTypes = {\n title: PropTypes.string,\n news: PropTypes.arrayOf(PropTypes.shape(News.propTypes)),\n more: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n loading: PropTypes.bool\n};\n\nexport default React.memo(NewsList);\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/dashboard/news-list/index.js"],"names":["React","PropTypes","News","Loader","style","NewsList","props","context","title","news","more","loading","loadingView","loader","moreView","onClick","label","cardsView","map","nws","key","card","wrapper","list","propTypes","string","arrayOf","shape","func","bool","memo"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,YAAjB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,GAAG,CAACC,KAAD,EAAQC,OAAR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ADG;AAEpBV,IAAAA,OAAO,EAAEd,SAAS,CAAC2B;AAFC,GAAhB,CAHa;AAOnBjB,EAAAA,OAAO,EAAEV,SAAS,CAAC4B;AAPA,CAArB;AAUA,4BAAe7B,KAAK,CAAC8B,IAAN,CAAWzB,QAAX,CAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport News from '../../news';\nimport Loader from '../../../atom/loader';\nimport style from './style.css';\n\nconst NewsList = (props, context) => {\n const {title, news, more, loading = false} = props;\n\n const loadingView = (\n <div className={style.loader}>\n <Loader />\n </div>\n );\n\n const moreView = more ? (\n // eslint-disable-next-line react/jsx-handler-names\n <div className={style.more} onClick={more.onClick}>\n {more.label}\n </div>\n ) : null;\n\n const cardsView = news.map((nws, key) => {\n return (\n <div className={style.card} key={key}>\n <News {...nws} />\n </div>\n );\n });\n\n return (\n <div className={style.wrapper} data-name=\"news-list\">\n <div className={style.list}>\n <div className={style.title}>{title}</div>\n {cardsView}\n {loading ? loadingView : moreView}\n </div>\n </div>\n );\n};\n\nNewsList.propTypes = {\n title: PropTypes.string,\n news: PropTypes.arrayOf(PropTypes.shape(News.propTypes)),\n more: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n loading: PropTypes.bool\n};\n\nexport default React.memo(NewsList);\n"],"file":"index.js"}
@@ -61,5 +61,5 @@ StartBattle.propTypes = process.env.NODE_ENV !== "production" ? {
61
61
  onClick: PropTypes.func,
62
62
  href: PropTypes.string
63
63
  } : {};
64
- export default React.memo(StartBattle);
64
+ export default /*#__PURE__*/React.memo(StartBattle);
65
65
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/dashboard/start-battle/index.js"],"names":["React","PropTypes","NovaCompositionCoorpacademyBigFlashRight","FlashRight","NovaCompositionCoorpacademyBigFlashLeft","FlashLeft","Provider","Link","style","StartBattle","props","context","startBattleText","becomeAChampionText","challengeText","onClick","href","root","container","wrapper","start","leftFlashes","bigFlashLeft","smallFlashLeft","middle","becomeText","smallFlashLeftMobile","smallFlashRightMobile","button","rightFlashes","bigFlashRight","smallFlashRight","contextTypes","skin","childContextTypes","propTypes","string","func","memo"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SACEC,wCAAwC,IAAIC,UAD9C,EAEEC,uCAAuC,IAAIC,SAF7C,QAGO,0BAHP;AAIA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,IAAP,MAAiB,oBAAjB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACtC,QAAM;AAACC,IAAAA,eAAD;AAAkBC,IAAAA,mBAAlB;AAAuCC,IAAAA,aAAvC;AAAsDC,IAAAA,OAAtD;AAA+DC,IAAAA;AAA/D,MAAuEN,KAA7E;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACS,IAAtB;AAA4B,iBAAU;AAAtC,kBACE;AAAK,IAAA,SAAS,EAAET,KAAK,CAACU;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEV,KAAK,CAACW;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEX,KAAK,CAACY;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEZ,KAAK,CAACa;AAAtB,kBACE,oBAAC,SAAD;AAAW,IAAA,SAAS,EAAEb,KAAK,CAACc;AAA5B,IADF,eAEE,oBAAC,SAAD;AAAW,IAAA,SAAS,EAAEd,KAAK,CAACe;AAA5B,IAFF,CADF,eAKE;AAAK,IAAA,SAAS,EAAEf,KAAK,CAACgB;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEhB,KAAK,CAACiB;AAAtB,kBACE,oBAAC,SAAD;AAAW,IAAA,SAAS,EAAEjB,KAAK,CAACkB;AAA5B,IADF,EAEGb,mBAFH,eAGE,oBAAC,UAAD;AAAY,IAAA,SAAS,EAAEL,KAAK,CAACmB;AAA7B,IAHF,CADF,eAME;AAAK,IAAA,SAAS,EAAEnB,KAAK,CAACM;AAAtB,KAAsCA,aAAtC,CANF,eAOE,oBAAC,IAAD;AAAM,IAAA,SAAS,EAAEN,KAAK,CAACoB,MAAvB;AAA+B,IAAA,OAAO,EAAEb,OAAxC;AAAiD,IAAA,IAAI,EAAEC;AAAvD,KACGJ,eADH,CAPF,CALF,eAgBE;AAAK,IAAA,SAAS,EAAEJ,KAAK,CAACqB;AAAtB,kBACE,oBAAC,UAAD;AAAY,IAAA,SAAS,EAAErB,KAAK,CAACsB;AAA7B,IADF,eAEE,oBAAC,UAAD;AAAY,IAAA,SAAS,EAAEtB,KAAK,CAACuB;AAA7B,IAFF,CAhBF,CADF,CADF,CADF,CADF;AA6BD,CAhCD;;AAkCAtB,WAAW,CAACuB,YAAZ,GAA2B;AACzBC,EAAAA,IAAI,EAAE3B,QAAQ,CAAC4B,iBAAT,CAA2BD;AADR,CAA3B;AAIAxB,WAAW,CAAC0B,SAAZ,2CAAwB;AACtBvB,EAAAA,eAAe,EAAEX,SAAS,CAACmC,MADL;AAEtBvB,EAAAA,mBAAmB,EAAEZ,SAAS,CAACmC,MAFT;AAGtBtB,EAAAA,aAAa,EAAEb,SAAS,CAACmC,MAHH;AAItBrB,EAAAA,OAAO,EAAEd,SAAS,CAACoC,IAJG;AAKtBrB,EAAAA,IAAI,EAAEf,SAAS,CAACmC;AALM,CAAxB;AAQA,eAAepC,KAAK,CAACsC,IAAN,CAAW7B,WAAX,CAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyBigFlashRight as FlashRight,\n NovaCompositionCoorpacademyBigFlashLeft as FlashLeft\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../atom/provider';\nimport Link from '../../../atom/link';\nimport style from './style.css';\n\nconst StartBattle = (props, context) => {\n const {startBattleText, becomeAChampionText, challengeText, onClick, href} = props;\n\n return (\n <div className={style.root} data-name=\"start-battle\">\n <div className={style.container}>\n <div className={style.wrapper}>\n <div className={style.start}>\n <div className={style.leftFlashes}>\n <FlashLeft className={style.bigFlashLeft} />\n <FlashLeft className={style.smallFlashLeft} />\n </div>\n <div className={style.middle}>\n <div className={style.becomeText}>\n <FlashLeft className={style.smallFlashLeftMobile} />\n {becomeAChampionText}\n <FlashRight className={style.smallFlashRightMobile} />\n </div>\n <div className={style.challengeText}>{challengeText}</div>\n <Link className={style.button} onClick={onClick} href={href}>\n {startBattleText}\n </Link>\n </div>\n <div className={style.rightFlashes}>\n <FlashRight className={style.bigFlashRight} />\n <FlashRight className={style.smallFlashRight} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nStartBattle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nStartBattle.propTypes = {\n startBattleText: PropTypes.string,\n becomeAChampionText: PropTypes.string,\n challengeText: PropTypes.string,\n onClick: PropTypes.func,\n href: PropTypes.string\n};\n\nexport default React.memo(StartBattle);\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/dashboard/start-battle/index.js"],"names":["React","PropTypes","NovaCompositionCoorpacademyBigFlashRight","FlashRight","NovaCompositionCoorpacademyBigFlashLeft","FlashLeft","Provider","Link","style","StartBattle","props","context","startBattleText","becomeAChampionText","challengeText","onClick","href","root","container","wrapper","start","leftFlashes","bigFlashLeft","smallFlashLeft","middle","becomeText","smallFlashLeftMobile","smallFlashRightMobile","button","rightFlashes","bigFlashRight","smallFlashRight","contextTypes","skin","childContextTypes","propTypes","string","func","memo"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SACEC,wCAAwC,IAAIC,UAD9C,EAEEC,uCAAuC,IAAIC,SAF7C,QAGO,0BAHP;AAIA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,IAAP,MAAiB,oBAAjB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,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AAY,IAAA,SAAS,EAAEtB,KAAK,CAACuB;AAA7B,IAFF,CAhBF,CADF,CADF,CADF,CADF;AA6BD,CAhCD;;AAkCAtB,WAAW,CAACuB,YAAZ,GAA2B;AACzBC,EAAAA,IAAI,EAAE3B,QAAQ,CAAC4B,iBAAT,CAA2BD;AADR,CAA3B;AAIAxB,WAAW,CAAC0B,SAAZ,2CAAwB;AACtBvB,EAAAA,eAAe,EAAEX,SAAS,CAACmC,MADL;AAEtBvB,EAAAA,mBAAmB,EAAEZ,SAAS,CAACmC,MAFT;AAGtBtB,EAAAA,aAAa,EAAEb,SAAS,CAACmC,MAHH;AAItBrB,EAAAA,OAAO,EAAEd,SAAS,CAACoC,IAJG;AAKtBrB,EAAAA,IAAI,EAAEf,SAAS,CAACmC;AALM,CAAxB;AAQA,4BAAepC,KAAK,CAACsC,IAAN,CAAW7B,WAAX,CAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyBigFlashRight as FlashRight,\n NovaCompositionCoorpacademyBigFlashLeft as FlashLeft\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../atom/provider';\nimport Link from '../../../atom/link';\nimport style from './style.css';\n\nconst StartBattle = (props, context) => {\n const {startBattleText, becomeAChampionText, challengeText, onClick, href} = props;\n\n return (\n <div className={style.root} data-name=\"start-battle\">\n <div className={style.container}>\n <div className={style.wrapper}>\n <div className={style.start}>\n <div className={style.leftFlashes}>\n <FlashLeft className={style.bigFlashLeft} />\n <FlashLeft className={style.smallFlashLeft} />\n </div>\n <div className={style.middle}>\n <div className={style.becomeText}>\n <FlashLeft className={style.smallFlashLeftMobile} />\n {becomeAChampionText}\n <FlashRight className={style.smallFlashRightMobile} />\n </div>\n <div className={style.challengeText}>{challengeText}</div>\n <Link className={style.button} onClick={onClick} href={href}>\n {startBattleText}\n </Link>\n </div>\n <div className={style.rightFlashes}>\n <FlashRight className={style.bigFlashRight} />\n <FlashRight className={style.smallFlashRight} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nStartBattle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nStartBattle.propTypes = {\n startBattleText: PropTypes.string,\n becomeAChampionText: PropTypes.string,\n challengeText: PropTypes.string,\n onClick: PropTypes.func,\n href: PropTypes.string\n};\n\nexport default React.memo(StartBattle);\n"],"file":"index.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/discipline-header/test/fixtures/long-description.js"],"names":["props","title","description","image"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBADF;AAELC,IAAAA,WAAW,EAAG;;;;;;;;;;;;;;;;oFAFT;AAmBLC,IAAAA,KAAK,EACH;AApBG;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Les nouveaux business',\n description: `La révolution numérique a tout accéléré : les communications, la récupération des données, \n la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données,la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique a tout accéléré : les communications, \n la récupération des données, la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données, la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets.`,\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-digital-core/cockpit-digital-2016/default/shutterstock_777835606-1616609267419.jpg&h=500&w=500&q=90&m=contain'\n }\n};\n"],"file":"long-description.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/discipline-header/test/fixtures/long-description.js"],"names":["props","title","description","image"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBADF;AAELC,IAAAA,WAAW,EAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAlBS;AAmBLC,IAAAA,KAAK,EACH;AApBG;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Les nouveaux business',\n description: `La révolution numérique a tout accéléré : les communications, la récupération des données, \n la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données,la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique a tout accéléré : les communications, \n la récupération des données, la propagation de l’information et des innovations… On peut presque tout savoir instantanément : \n les bonnes pratiques d’une entreprise comme les mauvaises ; les goûts et les comportements de ses \n clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets. La révolution numérique \n a tout accéléré : les communications, la récupération des données, la propagation de l’information et des innovations… \n On peut presque tout savoir instantanément : les bonnes pratiques d’une entreprise comme les mauvaises ; \n les goûts et les comportements de ses clients… Pour ne pas rater le coche, il faut être au fait des tendances et des changements qui se \n profilent. C’est ce que propose cette discipline nourrie d’exemples concrets.`,\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-digital-core/cockpit-digital-2016/default/shutterstock_777835606-1616609267419.jpg&h=500&w=500&q=90&m=contain'\n }\n};\n"],"file":"long-description.js"}
@@ -110,7 +110,7 @@ DragAndDrop.propTypes = process.env.NODE_ENV !== "production" ? {
110
110
  orLabel: PropTypes.string,
111
111
  onBack: PropTypes.func,
112
112
  accept: PropTypes.string,
113
- fields: PropTypes.arrayOf(PropTypes.shape(_extends(_extends({}, InputText.propTypes), {}, {
113
+ fields: PropTypes.arrayOf(PropTypes.shape(_extends({}, InputText.propTypes, {
114
114
  type: PropTypes.oneOf(['text'])
115
115
  }))),
116
116
  onDrop: PropTypes.func,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/drag-and-drop/index.js"],"names":["React","useCallback","PropTypes","getOr","includes","Dropzone","NovaCompositionNavigationArrowLeft","ArrowLeft","Provider","InputText","Overlay","UploadReport","PlaceHolder","style","DragAndDrop","props","context","skin","primaryColor","state","title","message","warningMessage","mode","dragAndDropMessage","buttonTitle","backLabel","orLabel","accept","type","contentType","fields","onDrop","onDelete","onBack","handleBack","e","stopPropagation","preventDefault","loading","back","arrow","getRootProps","getInputProps","isDragActive","getView","disableFileInput","wrapper","contextTypes","childContextTypes","propTypes","oneOf","isRequired","string","func","arrayOf","shape","actions","label","onClick"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,QAAP,MAAqB,oBAArB;AACA,OAAOC,QAAP,MAAqB,gBAArB;AACA,SAAQC,kCAAkC,I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CAAhB;AAFR,KADM,CAbc;AAmBtBnB,EAAAA,MAAM,EAAE9B,SAAS,CAACoD,IAnBI;AAoBtBrB,EAAAA,QAAQ,EAAE/B,SAAS,CAACoD,IApBE;AAqBtBG,EAAAA,OAAO,EAAEvD,SAAS,CAACqD,OAAV,CACPrD,SAAS,CAACsD,KAAV,CAAgB;AACd3B,IAAAA,IAAI,EAAE3B,SAAS,CAACiD,KAAV,CAAgB,CAAC,MAAD,EAAS,QAAT,EAAmB,QAAnB,CAAhB,CADQ;AAEdO,IAAAA,KAAK,EAAExD,SAAS,CAACmD,MAFH;AAGdM,IAAAA,OAAO,EAAEzD,SAAS,CAACoD;AAHL,GAAhB,CADO;AArBa,CAAxB;AA8BA,eAAexC,WAAf","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport includes from 'lodash/fp/includes';\nimport Dropzone from 'react-dropzone';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport InputText from '../../atom/input-text';\nimport {Overlay} from './overlay';\nimport {UploadReport} from './upload-report';\nimport {PlaceHolder} from './placeholder';\nimport style from './style.css';\n\nexport const DragAndDrop = (props, context) => {\n const {skin} = context;\n const primaryColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n state,\n title,\n message,\n warningMessage,\n mode,\n dragAndDropMessage,\n buttonTitle,\n backLabel,\n orLabel,\n accept,\n type: contentType = 'scorm',\n fields,\n onDrop,\n onDelete,\n onBack\n } = props;\n\n const handleBack = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onBack && onBack(e);\n },\n [onBack]\n );\n\n const loading = state === 'loading';\n return (\n <div>\n <span onClick={handleBack} className={style.back}>\n <ArrowLeft width={12} height={12} className={style.arrow} />\n {backLabel}\n </span>\n <Dropzone accept={accept} disabled={loading} onDrop={onDrop}>\n {({getRootProps, getInputProps, isDragActive}) => {\n const getView = () => {\n if (contentType !== 'scorm' || includes(state, ['success', 'error', 'ready'])) {\n return (\n <UploadReport\n state={state}\n message={message}\n warningMessage={warningMessage}\n fields={fields}\n type={contentType}\n onDelete={onDelete}\n mode={mode}\n orLabel={orLabel}\n onClick={onDrop}\n buttonTitle={buttonTitle}\n primaryColor={primaryColor}\n />\n );\n }\n return (\n <PlaceHolder\n title={title}\n buttonTitle={buttonTitle}\n uploadLabel={message}\n primaryColor={primaryColor}\n onClick={onDrop}\n />\n );\n };\n\n const disableFileInput = state === 'success';\n\n return (\n <div {...getRootProps()} className={style.wrapper}>\n <input {...getInputProps()} disabled={disableFileInput} />\n {getView()}\n {isDragActive || loading ? (\n <Overlay\n iconColor={primaryColor}\n description={dragAndDropMessage}\n isLoading={loading}\n />\n ) : null}\n </div>\n );\n }}\n </Dropzone>\n </div>\n );\n};\n\nDragAndDrop.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nDragAndDrop.propTypes = {\n state: PropTypes.oneOf(['default', 'ready', 'loading', 'success', 'error']).isRequired,\n mode: PropTypes.oneOf(['edit', 'upload']),\n title: PropTypes.string,\n type: PropTypes.string,\n message: PropTypes.string,\n warningMessage: PropTypes.string,\n dragAndDropMessage: PropTypes.string,\n buttonTitle: PropTypes.string,\n backLabel: PropTypes.string,\n orLabel: PropTypes.string,\n onBack: PropTypes.func,\n accept: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text'])\n })\n ),\n onDrop: PropTypes.func,\n onDelete: PropTypes.func,\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf(['edit', 'upload', 'delete']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport default DragAndDrop;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/drag-and-drop/index.js"],"names":["React","useCallback","PropTypes","getOr","includes","Dropzone","NovaCompositionNavigationArrowLeft","ArrowLeft","Provider","InputText","Overlay","UploadReport","PlaceHolder","style","DragAndDrop","props","context","skin","primaryColor","state","title","message","warningMessage","mode","dragAndDropMessage","buttonTitle","backLabel","orLabel","accept","type","contentType","fields","onDrop","onDelete","onBack","handleBack","e","stopPropagation","preventDefault","loading","back","arrow","getRootProps","getInputProps","isDragActive","getView","disableFileInput","wrapper","contextTypes","childContextTypes","propTypes","oneOf","isRequired","string","func","arrayOf","shape","actions","label","onClick"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,QAAP,MAAqB,oBAArB;AACA,OAAOC,QAAP,MAAqB,gBAArB;AACA,SAAQC,kCAAkC,IAAIC,SAA9C,QAA8D,0BAA9D;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,SAAP,MAAsB,uBAAtB;AACA,SAAQC,OAAR,QAAsB,WAAtB;AACA,SAAQC,YAAR,QAA2B,iBAA3B;AACA,SAAQC,WAAR,QAA0B,eAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AAC7C,QAAM;AAACC,IAAAA;AAAD,MAASD,OAAf;AACA,QAAME,YAAY,GAAGf,KAAK,CAAC,SAAD,EAAY,gBAAZ,EAA8Bc,IAA9B,CAA1B;AAEA,QAAM;AACJE,IAAAA,KADI;AAEJC,IAAAA,KAFI;AAGJC,IAAAA,OAHI;AAIJC,IAAAA,cAJI;AAKJC,IAAAA,IALI;AAMJC,IAAAA,kBANI;AAOJC,IAAAA,WAPI;AAQJC,IAAAA,SARI;AASJC,IAAAA,OATI;AAUJC,IAAAA,MAVI;AAWJC,IAAAA,IAAI,EAAEC,WAAW,GAAG,OAXhB;AAYJC,IAAAA,MAZI;AAaJC,IAAAA,MAbI;AAcJC,IAAAA,QAdI;AAeJC,IAAAA;AAfI,MAgB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J;AAOtB7B,EAAAA,kBAAkB,EAAEtB,SAAS,CAACmD,MAPR;AAQtB5B,EAAAA,WAAW,EAAEvB,SAAS,CAACmD,MARD;AAStB3B,EAAAA,SAAS,EAAExB,SAAS,CAACmD,MATC;AAUtB1B,EAAAA,OAAO,EAAEzB,SAAS,CAACmD,MAVG;AAWtBnB,EAAAA,MAAM,EAAEhC,SAAS,CAACoD,IAXI;AAYtB1B,EAAAA,MAAM,EAAE1B,SAAS,CAACmD,MAZI;AAatBtB,EAAAA,MAAM,EAAE7B,SAAS,CAACqD,OAAV,CACNrD,SAAS,CAACsD,KAAV,cACK/C,SAAS,CAACyC,SADf;AAEErB,IAAAA,IAAI,EAAE3B,SAAS,CAACiD,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAFR,KADM,CAbc;AAmBtBnB,EAAAA,MAAM,EAAE9B,SAAS,CAACoD,IAnBI;AAoBtBrB,EAAAA,QAAQ,EAAE/B,SAAS,CAACoD,IApBE;AAqBtBG,EAAAA,OAAO,EAAEvD,SAAS,CAACqD,OAAV,CACPrD,SAAS,CAACsD,KAAV,CAAgB;AACd3B,IAAAA,IAAI,EAAE3B,SAAS,CAACiD,KAAV,CAAgB,CAAC,MAAD,EAAS,QAAT,EAAmB,QAAnB,CAAhB,CADQ;AAEdO,IAAAA,KAAK,EAAExD,SAAS,CAACmD,MAFH;AAGdM,IAAAA,OAAO,EAAEzD,SAAS,CAACoD;AAHL,GAAhB,CADO;AArBa,CAAxB;AA8BA,eAAexC,WAAf","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport includes from 'lodash/fp/includes';\nimport Dropzone from 'react-dropzone';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport InputText from '../../atom/input-text';\nimport {Overlay} from './overlay';\nimport {UploadReport} from './upload-report';\nimport {PlaceHolder} from './placeholder';\nimport style from './style.css';\n\nexport const DragAndDrop = (props, context) => {\n const {skin} = context;\n const primaryColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n state,\n title,\n message,\n warningMessage,\n mode,\n dragAndDropMessage,\n buttonTitle,\n backLabel,\n orLabel,\n accept,\n type: contentType = 'scorm',\n fields,\n onDrop,\n onDelete,\n onBack\n } = props;\n\n const handleBack = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n onBack && onBack(e);\n },\n [onBack]\n );\n\n const loading = state === 'loading';\n return (\n <div>\n <span onClick={handleBack} className={style.back}>\n <ArrowLeft width={12} height={12} className={style.arrow} />\n {backLabel}\n </span>\n <Dropzone accept={accept} disabled={loading} onDrop={onDrop}>\n {({getRootProps, getInputProps, isDragActive}) => {\n const getView = () => {\n if (contentType !== 'scorm' || includes(state, ['success', 'error', 'ready'])) {\n return (\n <UploadReport\n state={state}\n message={message}\n warningMessage={warningMessage}\n fields={fields}\n type={contentType}\n onDelete={onDelete}\n mode={mode}\n orLabel={orLabel}\n onClick={onDrop}\n buttonTitle={buttonTitle}\n primaryColor={primaryColor}\n />\n );\n }\n return (\n <PlaceHolder\n title={title}\n buttonTitle={buttonTitle}\n uploadLabel={message}\n primaryColor={primaryColor}\n onClick={onDrop}\n />\n );\n };\n\n const disableFileInput = state === 'success';\n\n return (\n <div {...getRootProps()} className={style.wrapper}>\n <input {...getInputProps()} disabled={disableFileInput} />\n {getView()}\n {isDragActive || loading ? (\n <Overlay\n iconColor={primaryColor}\n description={dragAndDropMessage}\n isLoading={loading}\n />\n ) : null}\n </div>\n );\n }}\n </Dropzone>\n </div>\n );\n};\n\nDragAndDrop.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nDragAndDrop.propTypes = {\n state: PropTypes.oneOf(['default', 'ready', 'loading', 'success', 'error']).isRequired,\n mode: PropTypes.oneOf(['edit', 'upload']),\n title: PropTypes.string,\n type: PropTypes.string,\n message: PropTypes.string,\n warningMessage: PropTypes.string,\n dragAndDropMessage: PropTypes.string,\n buttonTitle: PropTypes.string,\n backLabel: PropTypes.string,\n orLabel: PropTypes.string,\n onBack: PropTypes.func,\n accept: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text'])\n })\n ),\n onDrop: PropTypes.func,\n onDelete: PropTypes.func,\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf(['edit', 'upload', 'delete']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n )\n};\n\nexport default DragAndDrop;\n"],"file":"index.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import Default from './default';
4
4
  export default {
5
- props: _extends(_extends({}, Default.props), {}, {
5
+ props: _extends({}, Default.props, {
6
6
  state: 'error',
7
7
  buttonTitle: 'Try Again',
8
8
  message: "Sorry we couldn't upload your file."
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/error.js"],"names":["Default","props","state","buttonTitle","message"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,WAAW,EAAE,WAHV;AAIHC,IAAAA,OAAO,EAAE;AAJN;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'error',\n buttonTitle: 'Try Again',\n message: \"Sorry we couldn't upload your file.\"\n }\n};\n"],"file":"error.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/error.js"],"names":["Default","props","state","buttonTitle","message"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,WAAW,EAAE,WAHV;AAIHC,IAAAA,OAAO,EAAE;AAJN;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'error',\n buttonTitle: 'Try Again',\n message: \"Sorry we couldn't upload your file.\"\n }\n};\n"],"file":"error.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import Default from './default';
4
4
  export default {
5
- props: _extends(_extends({}, Default.props), {}, {
5
+ props: _extends({}, Default.props, {
6
6
  state: 'loading'
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/loading.js"],"names":["Default","props","state"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'loading'\n }\n};\n"],"file":"loading.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/loading.js"],"names":["Default","props","state"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'loading'\n }\n};\n"],"file":"loading.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import Default from './ready';
4
4
  export default {
5
- props: _extends(_extends({}, Default.props), {}, {
5
+ props: _extends({}, Default.props, {
6
6
  type: 'podcast',
7
7
  warningMessage: 'We can’t verify this url. Please check its authenticity before saving.'
8
8
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready-invalid.js"],"names":["Default","props","type","warningMessage"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,SAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,IAAI,EAAE,SAFH;AAGHC,IAAAA,cAAc,EAAE;AAHb;AADQ,CAAf","sourcesContent":["import Default from './ready';\n\nexport default {\n props: {\n ...Default.props,\n type: 'podcast',\n warningMessage: 'We can’t verify this url. Please check its authenticity before saving.'\n }\n};\n"],"file":"ready-invalid.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready-invalid.js"],"names":["Default","props","type","warningMessage"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,SAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,IAAI,EAAE,SAFH;AAGHC,IAAAA,cAAc,EAAE;AAHb;AADQ,CAAf","sourcesContent":["import Default from './ready';\n\nexport default {\n props: {\n ...Default.props,\n type: 'podcast',\n warningMessage: 'We can’t verify this url. Please check its authenticity before saving.'\n }\n};\n"],"file":"ready-invalid.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import Default from './default';
4
4
  export default {
5
- props: _extends(_extends({}, Default.props), {}, {
5
+ props: _extends({}, Default.props, {
6
6
  state: 'ready',
7
7
  message: 'Drag & Drop your file here',
8
8
  type: 'scorm',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready.js"],"names":["Default","props","state","message","type","fields","title","value","required","placeholder","description","onChange","onDelete","console","log","mode"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,OAAO,EAAE,4BAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEC,MAAAA,QAAQ,EAAE,IAHZ;AAIEJ,MAAAA,IAAI,EAAE,MAJR;AAKEK,MAAAA,WAAW,EAAE,UALf;AAMEC,MAAAA,WAAW,EAAE,6BANf;AAOEC,MAAAA,QAAQ,EAAE,MAAM,CAAE;AAPpB,KADM,CALL;AAgBHC,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ,CAhBb;AAiBHC,IAAAA,IAAI,EAAE;AAjBH;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'ready',\n message: 'Drag & Drop your file here',\n type: 'scorm',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n required: true,\n type: 'text',\n placeholder: 'Your url',\n description: 'Lorem Ipsum dolor sit amet.',\n onChange: () => {}\n }\n ],\n onDelete: () => console.log('Delete'),\n mode: 'edit'\n }\n};\n"],"file":"ready.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/ready.js"],"names":["Default","props","state","message","type","fields","title","value","required","placeholder","description","onChange","onDelete","console","log","mode"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE,OAFJ;AAGHC,IAAAA,OAAO,EAAE,4BAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEC,MAAAA,QAAQ,EAAE,IAHZ;AAIEJ,MAAAA,IAAI,EAAE,MAJR;AAKEK,MAAAA,WAAW,EAAE,UALf;AAMEC,MAAAA,WAAW,EAAE,6BANf;AAOEC,MAAAA,QAAQ,EAAE,MAAM,CAAE;AAPpB,KADM,CALL;AAgBHC,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ,CAhBb;AAiBHC,IAAAA,IAAI,EAAE;AAjBH;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'ready',\n message: 'Drag & Drop your file here',\n type: 'scorm',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n required: true,\n type: 'text',\n placeholder: 'Your url',\n description: 'Lorem Ipsum dolor sit amet.',\n onChange: () => {}\n }\n ],\n onDelete: () => console.log('Delete'),\n mode: 'edit'\n }\n};\n"],"file":"ready.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import Default from './default';
4
4
  export default {
5
- props: _extends(_extends({}, Default.props), {}, {
5
+ props: _extends({}, Default.props, {
6
6
  state: 'success',
7
7
  message: 'Your file is successfully imported!',
8
8
  type: 'video',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/success-video.js"],"names":["Default","props","state","message","type","fields","title","value","onDelete","console","log"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE,SAFJ;AAGHC,IAAAA,OAAO,EAAE,qCAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEH,MAAAA,IAAI,EAAE;AAHR,KADM,CALL;AAYHI,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AAZb;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'success',\n message: 'Your file is successfully imported!',\n type: 'video',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n type: 'text'\n }\n ],\n onDelete: () => console.log('Delete')\n }\n};\n"],"file":"success-video.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/drag-and-drop/test/fixtures/success-video.js"],"names":["Default","props","state","message","type","fields","title","value","onDelete","console","log"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE,SAFJ;AAGHC,IAAAA,OAAO,EAAE,qCAHN;AAIHC,IAAAA,IAAI,EAAE,OAJH;AAKHC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,KADT;AAEEC,MAAAA,KAAK,EAAE,8EAFT;AAGEH,MAAAA,IAAI,EAAE;AAHR,KADM,CALL;AAYHI,IAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AAZb;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n state: 'success',\n message: 'Your file is successfully imported!',\n type: 'video',\n fields: [\n {\n title: 'Url',\n value: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg',\n type: 'text'\n }\n ],\n onDelete: () => console.log('Delete')\n }\n};\n"],"file":"success-video.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import Default from './default';
4
4
  export default {
5
- props: _extends(_extends({}, Default.props), {}, {
5
+ props: _extends({}, Default.props, {
6
6
  state: 'success',
7
7
  message: 'Your file is successfully imported!',
8
8
  type: 'scorm',