@coorpacademy/components 10.0.49-alpha.8 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (996) 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/chips/index.js +36 -0
  8. package/es/atom/chips/index.js.map +1 -0
  9. package/es/atom/chips/style.css +66 -0
  10. package/es/atom/chips/test/fixtures/default.js +9 -0
  11. package/es/atom/chips/test/fixtures/default.js.map +1 -0
  12. package/es/atom/chips/test/fixtures/non-selected.js +9 -0
  13. package/es/atom/chips/test/fixtures/non-selected.js.map +1 -0
  14. package/es/atom/chips/test/fixtures.js +15 -0
  15. package/es/atom/chips/test/fixtures.js.map +1 -0
  16. package/es/atom/clue/index.js.map +1 -1
  17. package/es/atom/content-badge/index.js +21 -0
  18. package/es/atom/content-badge/index.js.map +1 -0
  19. package/es/atom/content-badge/style.css +59 -0
  20. package/es/atom/content-badge/test/fixtures/advanced.js +7 -0
  21. package/es/atom/content-badge/test/fixtures/advanced.js.map +1 -0
  22. package/es/atom/content-badge/test/fixtures/article.js +7 -0
  23. package/es/atom/content-badge/test/fixtures/article.js.map +1 -0
  24. package/es/atom/content-badge/test/fixtures/chapter.js +7 -0
  25. package/es/atom/content-badge/test/fixtures/chapter.js.map +1 -0
  26. package/es/atom/content-badge/test/fixtures/coach.js +7 -0
  27. package/es/atom/content-badge/test/fixtures/coach.js.map +1 -0
  28. package/es/atom/content-badge/test/fixtures/default.js +7 -0
  29. package/es/atom/content-badge/test/fixtures/default.js.map +1 -0
  30. package/es/atom/content-badge/test/fixtures/podcast.js +7 -0
  31. package/es/atom/content-badge/test/fixtures/podcast.js.map +1 -0
  32. package/es/atom/content-badge/test/fixtures/scorm.js +7 -0
  33. package/es/atom/content-badge/test/fixtures/scorm.js.map +1 -0
  34. package/es/atom/content-badge/test/fixtures/video.js +7 -0
  35. package/es/atom/content-badge/test/fixtures/video.js.map +1 -0
  36. package/es/atom/content-badge/test/fixtures.js +27 -0
  37. package/es/atom/content-badge/test/fixtures.js.map +1 -0
  38. package/es/atom/cta/test/fixtures/certification.js +1 -1
  39. package/es/atom/cta/test/fixtures/certification.js.map +1 -1
  40. package/es/atom/cta/test/fixtures/disabled.js +1 -1
  41. package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
  42. package/es/atom/cta/test/fixtures/light-small.js +1 -1
  43. package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
  44. package/es/atom/cta/test/fixtures/light.js +1 -1
  45. package/es/atom/cta/test/fixtures/light.js.map +1 -1
  46. package/es/atom/cta/test/fixtures/logout.js +1 -1
  47. package/es/atom/cta/test/fixtures/logout.js.map +1 -1
  48. package/es/atom/cta/test/fixtures/primary-small.js +1 -1
  49. package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
  50. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  51. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  52. package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  53. package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  54. package/es/atom/cta/test/fixtures/rectangular.js +1 -1
  55. package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
  56. package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
  57. package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  58. package/es/atom/cta/test/fixtures/secondary.js +1 -1
  59. package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
  60. package/es/atom/drag-and-drop/index.js +1 -1
  61. package/es/atom/drag-and-drop/index.js.map +1 -1
  62. package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  63. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  64. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  65. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  66. package/es/atom/image-upload/index.js +1 -1
  67. package/es/atom/image-upload/index.js.map +1 -1
  68. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  69. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  70. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  71. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  72. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  73. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  74. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  75. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  76. package/es/atom/image-upload/test/fixtures/email.js +1 -1
  77. package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
  78. package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
  79. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  80. package/es/atom/image-upload/test/fixtures/modified.js +1 -1
  81. package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
  82. package/es/atom/input-checkbox/index.js.map +1 -1
  83. package/es/atom/input-checkbox/style.css +2 -13
  84. package/es/atom/input-html/index.js.map +1 -1
  85. package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
  86. package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  87. package/es/atom/link/index.js +2 -3
  88. package/es/atom/link/index.js.map +1 -1
  89. package/es/atom/promo-code/index.js.map +1 -1
  90. package/es/atom/provider/index.js.map +1 -1
  91. package/es/atom/provider/test/index.js +1 -1
  92. package/es/atom/provider/test/index.js.map +1 -1
  93. package/es/atom/range/index.js +1 -1
  94. package/es/atom/range/index.js.map +1 -1
  95. package/es/atom/range/test/fixtures/multi.js +1 -1
  96. package/es/atom/range/test/fixtures/multi.js.map +1 -1
  97. package/es/atom/range/test/index.js +9 -9
  98. package/es/atom/range/test/index.js.map +1 -1
  99. package/es/atom/video-upload/index.js +1 -1
  100. package/es/atom/video-upload/index.js.map +1 -1
  101. package/es/atom/video-upload/test/fixtures/loading.js +1 -1
  102. package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
  103. package/es/atom/video-upload/test/fixtures/modified.js +1 -1
  104. package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
  105. package/es/atom/wizard-steps/index.js +38 -0
  106. package/es/atom/wizard-steps/index.js.map +1 -0
  107. package/es/atom/wizard-steps/style.css +150 -0
  108. package/es/atom/wizard-steps/test/fixtures/default.js +28 -0
  109. package/es/atom/wizard-steps/test/fixtures/default.js.map +1 -0
  110. package/es/atom/wizard-steps/test/fixtures/first-step.js +28 -0
  111. package/es/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
  112. package/es/atom/wizard-steps/test/fixtures/last-step.js +28 -0
  113. package/es/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
  114. package/es/atom/wizard-steps/test/fixtures.js +17 -0
  115. package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
  116. package/es/hoc/animation-scheduler/index.js +3 -3
  117. package/es/hoc/animation-scheduler/index.js.map +1 -1
  118. package/es/hoc/swapper/index.js +2 -4
  119. package/es/hoc/swapper/index.js.map +1 -1
  120. package/es/hoc/transition/index.js +1 -1
  121. package/es/hoc/transition/index.js.map +1 -1
  122. package/es/molecule/add-to-my-list/index.js +1 -1
  123. package/es/molecule/add-to-my-list/index.js.map +1 -1
  124. package/es/molecule/answer/index.js +2 -3
  125. package/es/molecule/answer/index.js.map +1 -1
  126. package/es/molecule/answer/test/fixtures/audio.js +1 -1
  127. package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
  128. package/es/molecule/answer/test/fixtures/default.js +1 -1
  129. package/es/molecule/answer/test/fixtures/default.js.map +1 -1
  130. package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
  131. package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  132. package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  133. package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  134. package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  135. package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  136. package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  137. package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  138. package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  139. package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  140. package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  141. package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  142. package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
  143. package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  144. package/es/molecule/answer/test/fixtures/qcm.js +1 -1
  145. package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
  146. package/es/molecule/answer/test/fixtures/range.js +1 -1
  147. package/es/molecule/answer/test/fixtures/range.js.map +1 -1
  148. package/es/molecule/answer/test/fixtures/template.js +1 -1
  149. package/es/molecule/answer/test/fixtures/template.js.map +1 -1
  150. package/es/molecule/brand-form-group/index.js +18 -18
  151. package/es/molecule/brand-form-group/index.js.map +1 -1
  152. package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  153. package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  154. package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  155. package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  156. package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  157. package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  158. package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  159. package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  160. package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
  161. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  162. package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  163. package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  164. package/es/molecule/card/index.js +1 -1
  165. package/es/molecule/card/index.js.map +1 -1
  166. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  167. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  168. package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
  169. package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  170. package/es/molecule/card/test/fixtures/disabled.js +1 -1
  171. package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
  172. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  173. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  174. package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  175. package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  176. package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
  177. package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  178. package/es/molecule/card-with-button/index.js.map +1 -1
  179. package/es/molecule/coorp-manager-roles/index.js +1 -1
  180. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  181. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  182. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  183. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  184. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  185. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  186. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  187. package/es/molecule/dashboard/cards-list/test/index.js +1 -1
  188. package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
  189. package/es/molecule/dashboard/news-list/index.js +1 -1
  190. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  191. package/es/molecule/dashboard/start-battle/index.js +1 -1
  192. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  193. package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  194. package/es/molecule/discipline-partners/index.js +5 -2
  195. package/es/molecule/discipline-partners/index.js.map +1 -1
  196. package/es/molecule/drag-and-drop/index.js +1 -1
  197. package/es/molecule/drag-and-drop/index.js.map +1 -1
  198. package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  199. package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  200. package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  201. package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  202. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  203. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  204. package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  205. package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  206. package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  207. package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  208. package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  209. package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  210. package/es/molecule/drag-and-drop/test/on-click.js +2 -2
  211. package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
  212. package/es/molecule/drag-and-drop/upload-report.js +1 -1
  213. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  214. package/es/molecule/feedback/index.js +1 -1
  215. package/es/molecule/feedback/index.js.map +1 -1
  216. package/es/molecule/filters/test/fixtures/default.js +4 -4
  217. package/es/molecule/filters/test/fixtures/default.js.map +1 -1
  218. package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
  219. package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  220. package/es/molecule/filters/test/fixtures/one.js +2 -2
  221. package/es/molecule/filters/test/fixtures/one.js.map +1 -1
  222. package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  223. package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  224. package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
  225. package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  226. package/es/molecule/filters/test/fixtures/three.js +3 -3
  227. package/es/molecule/filters/test/fixtures/three.js.map +1 -1
  228. package/es/molecule/filters/test/fixtures/two.js +3 -3
  229. package/es/molecule/filters/test/fixtures/two.js.map +1 -1
  230. package/es/molecule/filters/test/fixtures/zero.js +1 -1
  231. package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
  232. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  233. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  234. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  235. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  236. package/es/molecule/hero/test/fixtures/arabic.js +1 -1
  237. package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
  238. package/es/molecule/hero/test/fixtures/hero.js +1 -1
  239. package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
  240. package/es/molecule/news/test/fixtures/long-description.js +1 -1
  241. package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
  242. package/es/molecule/news/test/fixtures/long-title.js +1 -1
  243. package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
  244. package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
  245. package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  246. package/es/molecule/news/test/fixtures/small-title.js +1 -1
  247. package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
  248. package/es/molecule/popin/index.js +1 -1
  249. package/es/molecule/popin/index.js.map +1 -1
  250. package/es/molecule/progress-bar/index.js +1 -1
  251. package/es/molecule/progress-bar/index.js.map +1 -1
  252. package/es/molecule/questions/drop-down/index.js +1 -1
  253. package/es/molecule/questions/drop-down/index.js.map +1 -1
  254. package/es/molecule/questions/question-range/index.js +2 -3
  255. package/es/molecule/questions/question-range/index.js.map +1 -1
  256. package/es/molecule/questions/template/index.js +2 -2
  257. package/es/molecule/questions/template/index.js.map +1 -1
  258. package/es/molecule/questions/template/test/index.js +1 -1
  259. package/es/molecule/questions/template/test/index.js.map +1 -1
  260. package/es/molecule/quick-access-card/index.js.map +1 -1
  261. package/es/molecule/resource-player/index.js +1 -2
  262. package/es/molecule/resource-player/index.js.map +1 -1
  263. package/es/molecule/select-multiple/index.js +1 -1
  264. package/es/molecule/select-multiple/index.js.map +1 -1
  265. package/es/molecule/select-multiple/test/index.js +3 -3
  266. package/es/molecule/select-multiple/test/index.js.map +1 -1
  267. package/es/molecule/setup-section/index.js +1 -1
  268. package/es/molecule/setup-section/index.js.map +1 -1
  269. package/es/molecule/setup-section/test/fixtures/first.js +1 -1
  270. package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
  271. package/es/molecule/setup-slide/index.js +8 -8
  272. package/es/molecule/setup-slide/index.js.map +1 -1
  273. package/es/molecule/share/index.js +1 -1
  274. package/es/molecule/share/index.js.map +1 -1
  275. package/es/molecule/vertical-tabs/index.js +51 -0
  276. package/es/molecule/vertical-tabs/index.js.map +1 -0
  277. package/es/molecule/vertical-tabs/style.css +69 -0
  278. package/es/molecule/vertical-tabs/test/fixtures/default.js +41 -0
  279. package/es/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
  280. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js +81 -0
  281. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
  282. package/es/molecule/vertical-tabs/test/fixtures.js +15 -0
  283. package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  284. package/es/molecule/video-iframe/index.js +1 -1
  285. package/es/molecule/video-iframe/index.js.map +1 -1
  286. package/es/molecule/video-player/index.js +1 -3
  287. package/es/molecule/video-player/index.js.map +1 -1
  288. package/es/molecule/video-player/jwplayer.js +2 -2
  289. package/es/molecule/video-player/jwplayer.js.map +1 -1
  290. package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
  291. package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  292. package/es/molecule/video-player/vimeo.js +1 -1
  293. package/es/molecule/video-player/vimeo.js.map +1 -1
  294. package/es/molecule/wizard-summary/test/fixtures.js +19 -0
  295. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
  296. package/es/organism/accordion/coorp-manager/index.js +1 -1
  297. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  298. package/es/organism/accordion/toggler/index.js +1 -1
  299. package/es/organism/accordion/toggler/index.js.map +1 -1
  300. package/es/organism/accordion/toggler/test/render.js +2 -2
  301. package/es/organism/accordion/toggler/test/render.js.map +1 -1
  302. package/es/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
  303. package/es/organism/brand-form/test/fixtures/sso.js +3 -3
  304. package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
  305. package/es/organism/discussion/test/fixtures/default.js +1 -1
  306. package/es/organism/discussion/test/fixtures/default.js.map +1 -1
  307. package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
  308. package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  309. package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
  310. package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  311. package/es/organism/get-the-app/index.js +2 -2
  312. package/es/organism/get-the-app/index.js.map +1 -1
  313. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  314. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  315. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  316. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  317. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  318. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  319. package/es/organism/popin/test/fixtures/default.js.map +1 -1
  320. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  321. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  322. package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  323. package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  324. package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  325. package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  326. package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
  327. package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  328. package/es/organism/settings/index.js +2 -3
  329. package/es/organism/settings/index.js.map +1 -1
  330. package/es/organism/sidebar/index.js +10 -11
  331. package/es/organism/sidebar/index.js.map +1 -1
  332. package/es/organism/user-preferences/index.js +2 -3
  333. package/es/organism/user-preferences/index.js.map +1 -1
  334. package/es/template/activity/index.js +1 -1
  335. package/es/template/activity/index.js.map +1 -1
  336. package/es/template/activity/test/progression-item-test.js +1 -1
  337. package/es/template/activity/test/progression-item-test.js.map +1 -1
  338. package/es/template/app-player/player/slides/footer/index.js +1 -1
  339. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  340. package/es/template/app-player/player/slides/index.js +11 -14
  341. package/es/template/app-player/player/slides/index.js.map +1 -1
  342. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  343. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  344. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  345. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  346. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  347. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  348. package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  349. package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  350. package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  351. package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  352. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  353. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  354. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  355. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  356. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  357. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  358. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  359. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  360. package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
  361. package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  362. package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
  363. package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  364. package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  365. package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  366. package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  367. package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  368. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  369. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  370. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  371. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  372. package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
  373. package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  374. package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  375. package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  376. package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  377. package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  378. package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  379. package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  380. package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  381. package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  382. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  383. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  384. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  385. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  386. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  387. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  388. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  389. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  390. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  391. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  392. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  393. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  394. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  395. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  396. package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  397. package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  398. package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
  399. package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  400. package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
  401. package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  402. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  403. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  404. package/es/template/app-player/player/test/fixtures/background.js +1 -1
  405. package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
  406. package/es/template/app-player/popin-correction/index.js +2 -3
  407. package/es/template/app-player/popin-correction/index.js.map +1 -1
  408. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  409. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  410. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  411. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  412. package/es/template/app-player/popin-end/summary.js +7 -11
  413. package/es/template/app-player/popin-end/summary.js.map +1 -1
  414. package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  415. package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  416. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  417. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  418. package/es/template/app-player/popin-header/index.js +3 -4
  419. package/es/template/app-player/popin-header/index.js.map +1 -1
  420. package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
  421. package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  422. package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  423. package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  424. package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  425. package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  426. package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
  427. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  428. package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  429. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  430. package/es/template/back-office/brand-update/index.js +7 -7
  431. package/es/template/back-office/brand-update/index.js.map +1 -1
  432. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  433. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  434. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  435. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  436. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  437. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  438. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  439. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  440. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  441. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  442. package/es/template/cockpit/jw-uploader/index.js +1 -1
  443. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  444. package/es/template/common/dashboard/index.js +1 -1
  445. package/es/template/common/dashboard/index.js.map +1 -1
  446. package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  447. package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  448. package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  449. package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  450. package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  451. package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  452. package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
  453. package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  454. package/es/template/common/discipline/test/fixtures/default.js +2 -2
  455. package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
  456. package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  457. package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  458. package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  459. package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  460. package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
  461. package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  462. package/es/template/common/discipline/test/fixtures/share.js +1 -1
  463. package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
  464. package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
  465. package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  466. package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  467. package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  468. package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  469. package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  470. package/es/util/shallow-compare.js.map +1 -1
  471. package/es/util/test/navigation.js +3 -4
  472. package/es/util/test/navigation.js.map +1 -1
  473. package/es/variables/colors.css +8 -0
  474. package/lib/atom/autocomplete/index.js +2 -2
  475. package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
  476. package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
  477. package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
  478. package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  479. package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
  480. package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  481. package/lib/atom/chips/index.js +52 -0
  482. package/lib/atom/chips/index.js.map +1 -0
  483. package/lib/atom/chips/style.css +66 -0
  484. package/lib/atom/chips/test/fixtures/default.js +14 -0
  485. package/lib/atom/chips/test/fixtures/default.js.map +1 -0
  486. package/lib/atom/chips/test/fixtures/non-selected.js +14 -0
  487. package/lib/atom/chips/test/fixtures/non-selected.js.map +1 -0
  488. package/lib/atom/chips/test/fixtures.js +25 -0
  489. package/lib/atom/chips/test/fixtures.js.map +1 -0
  490. package/lib/atom/clue/index.js.map +1 -1
  491. package/lib/atom/content-badge/index.js +32 -0
  492. package/lib/atom/content-badge/index.js.map +1 -0
  493. package/lib/atom/content-badge/style.css +59 -0
  494. package/lib/atom/content-badge/test/fixtures/advanced.js +12 -0
  495. package/lib/atom/content-badge/test/fixtures/advanced.js.map +1 -0
  496. package/lib/atom/content-badge/test/fixtures/article.js +12 -0
  497. package/lib/atom/content-badge/test/fixtures/article.js.map +1 -0
  498. package/lib/atom/content-badge/test/fixtures/chapter.js +12 -0
  499. package/lib/atom/content-badge/test/fixtures/chapter.js.map +1 -0
  500. package/lib/atom/content-badge/test/fixtures/coach.js +12 -0
  501. package/lib/atom/content-badge/test/fixtures/coach.js.map +1 -0
  502. package/lib/atom/content-badge/test/fixtures/default.js +12 -0
  503. package/lib/atom/content-badge/test/fixtures/default.js.map +1 -0
  504. package/lib/atom/content-badge/test/fixtures/podcast.js +12 -0
  505. package/lib/atom/content-badge/test/fixtures/podcast.js.map +1 -0
  506. package/lib/atom/content-badge/test/fixtures/scorm.js +12 -0
  507. package/lib/atom/content-badge/test/fixtures/scorm.js.map +1 -0
  508. package/lib/atom/content-badge/test/fixtures/video.js +12 -0
  509. package/lib/atom/content-badge/test/fixtures/video.js.map +1 -0
  510. package/lib/atom/content-badge/test/fixtures.js +43 -0
  511. package/lib/atom/content-badge/test/fixtures.js.map +1 -0
  512. package/lib/atom/cta/test/fixtures/certification.js +1 -1
  513. package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
  514. package/lib/atom/cta/test/fixtures/disabled.js +1 -1
  515. package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
  516. package/lib/atom/cta/test/fixtures/light-small.js +1 -1
  517. package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
  518. package/lib/atom/cta/test/fixtures/light.js +1 -1
  519. package/lib/atom/cta/test/fixtures/light.js.map +1 -1
  520. package/lib/atom/cta/test/fixtures/logout.js +1 -1
  521. package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
  522. package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
  523. package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
  524. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  525. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  526. package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  527. package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  528. package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
  529. package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
  530. package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
  531. package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  532. package/lib/atom/cta/test/fixtures/secondary.js +1 -1
  533. package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
  534. package/lib/atom/drag-and-drop/index.js +1 -1
  535. package/lib/atom/drag-and-drop/index.js.map +1 -1
  536. package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  537. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  538. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  539. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  540. package/lib/atom/image-upload/index.js +3 -3
  541. package/lib/atom/image-upload/index.js.map +1 -1
  542. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  543. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  544. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  545. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  546. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  547. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  548. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  549. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  550. package/lib/atom/image-upload/test/fixtures/email.js +1 -1
  551. package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
  552. package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
  553. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  554. package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
  555. package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
  556. package/lib/atom/input-checkbox/index.js +2 -2
  557. package/lib/atom/input-checkbox/index.js.map +1 -1
  558. package/lib/atom/input-checkbox/style.css +2 -13
  559. package/lib/atom/input-color/index.js +2 -2
  560. package/lib/atom/input-doublestep/index.js +2 -2
  561. package/lib/atom/input-html/index.js.map +1 -1
  562. package/lib/atom/input-switch/index.js +2 -2
  563. package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
  564. package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  565. package/lib/atom/input-text/index.js +2 -2
  566. package/lib/atom/input-textarea/index.js +2 -2
  567. package/lib/atom/link/index.js +2 -4
  568. package/lib/atom/link/index.js.map +1 -1
  569. package/lib/atom/promo-code/index.js.map +1 -1
  570. package/lib/atom/provider/index.js.map +1 -1
  571. package/lib/atom/provider/test/index.js +1 -1
  572. package/lib/atom/provider/test/index.js.map +1 -1
  573. package/lib/atom/range/index.js +1 -1
  574. package/lib/atom/range/index.js.map +1 -1
  575. package/lib/atom/range/test/fixtures/multi.js +1 -1
  576. package/lib/atom/range/test/fixtures/multi.js.map +1 -1
  577. package/lib/atom/range/test/index.js +9 -9
  578. package/lib/atom/range/test/index.js.map +1 -1
  579. package/lib/atom/select/index.js +2 -2
  580. package/lib/atom/tab/index.js +2 -2
  581. package/lib/atom/video-upload/index.js +1 -1
  582. package/lib/atom/video-upload/index.js.map +1 -1
  583. package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
  584. package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
  585. package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
  586. package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
  587. package/lib/atom/wizard-steps/index.js +49 -0
  588. package/lib/atom/wizard-steps/index.js.map +1 -0
  589. package/lib/atom/wizard-steps/style.css +150 -0
  590. package/lib/atom/wizard-steps/test/fixtures/default.js +33 -0
  591. package/lib/atom/wizard-steps/test/fixtures/default.js.map +1 -0
  592. package/lib/atom/wizard-steps/test/fixtures/first-step.js +33 -0
  593. package/lib/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
  594. package/lib/atom/wizard-steps/test/fixtures/last-step.js +33 -0
  595. package/lib/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
  596. package/lib/atom/wizard-steps/test/fixtures.js +28 -0
  597. package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
  598. package/lib/hoc/animation/index.js +1 -1
  599. package/lib/hoc/animation/test/on-mount.js +2 -2
  600. package/lib/hoc/animation-scheduler/index.js +4 -4
  601. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  602. package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
  603. package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
  604. package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
  605. package/lib/hoc/swapper/index.js +3 -5
  606. package/lib/hoc/swapper/index.js.map +1 -1
  607. package/lib/hoc/swapper/test/on-mount.js +2 -2
  608. package/lib/hoc/transition/index.js +3 -3
  609. package/lib/hoc/transition/index.js.map +1 -1
  610. package/lib/molecule/add-to-my-list/index.js +4 -4
  611. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  612. package/lib/molecule/answer/index.js +3 -5
  613. package/lib/molecule/answer/index.js.map +1 -1
  614. package/lib/molecule/answer/test/fixtures/audio.js +1 -1
  615. package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
  616. package/lib/molecule/answer/test/fixtures/default.js +1 -1
  617. package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
  618. package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
  619. package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  620. package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  621. package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  622. package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  623. package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  624. package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  625. package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  626. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  627. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  628. package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  629. package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  630. package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
  631. package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  632. package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
  633. package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
  634. package/lib/molecule/answer/test/fixtures/range.js +1 -1
  635. package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
  636. package/lib/molecule/answer/test/fixtures/template.js +1 -1
  637. package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
  638. package/lib/molecule/brand-create-form/index.js +2 -2
  639. package/lib/molecule/brand-form-group/index.js +18 -18
  640. package/lib/molecule/brand-form-group/index.js.map +1 -1
  641. package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  642. package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  643. package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  644. package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  645. package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  646. package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  647. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  648. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  649. package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
  650. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  651. package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  652. package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  653. package/lib/molecule/card/index.js +3 -3
  654. package/lib/molecule/card/index.js.map +1 -1
  655. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  656. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  657. package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
  658. package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  659. package/lib/molecule/card/test/fixtures/disabled.js +1 -1
  660. package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
  661. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  662. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  663. package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  664. package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  665. package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
  666. package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  667. package/lib/molecule/card-with-button/index.js.map +1 -1
  668. package/lib/molecule/coorp-manager-roles/index.js +1 -1
  669. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  670. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  671. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  672. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  673. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  674. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  675. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  676. package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
  677. package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
  678. package/lib/molecule/dashboard/news-list/index.js +1 -1
  679. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  680. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  681. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  682. package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  683. package/lib/molecule/discipline-partners/index.js +5 -2
  684. package/lib/molecule/discipline-partners/index.js.map +1 -1
  685. package/lib/molecule/drag-and-drop/index.js +3 -3
  686. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  687. package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  688. package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  689. package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  690. package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  691. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  692. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  693. package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  694. package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  695. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  696. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  697. package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  698. package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  699. package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
  700. package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
  701. package/lib/molecule/drag-and-drop/upload-report.js +3 -3
  702. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  703. package/lib/molecule/feedback/index.js +3 -3
  704. package/lib/molecule/feedback/index.js.map +1 -1
  705. package/lib/molecule/filters/test/fixtures/default.js +4 -4
  706. package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
  707. package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
  708. package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  709. package/lib/molecule/filters/test/fixtures/one.js +2 -2
  710. package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
  711. package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  712. package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  713. package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
  714. package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  715. package/lib/molecule/filters/test/fixtures/three.js +3 -3
  716. package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
  717. package/lib/molecule/filters/test/fixtures/two.js +3 -3
  718. package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
  719. package/lib/molecule/filters/test/fixtures/zero.js +1 -1
  720. package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
  721. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  722. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  723. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  724. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  725. package/lib/molecule/hero/index.js +2 -2
  726. package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
  727. package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
  728. package/lib/molecule/hero/test/fixtures/hero.js +1 -1
  729. package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
  730. package/lib/molecule/news/test/fixtures/long-description.js +1 -1
  731. package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
  732. package/lib/molecule/news/test/fixtures/long-title.js +1 -1
  733. package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
  734. package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
  735. package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  736. package/lib/molecule/news/test/fixtures/small-title.js +1 -1
  737. package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
  738. package/lib/molecule/popin/index.js +3 -3
  739. package/lib/molecule/popin/index.js.map +1 -1
  740. package/lib/molecule/progress-bar/index.js +1 -1
  741. package/lib/molecule/progress-bar/index.js.map +1 -1
  742. package/lib/molecule/questions/drop-down/index.js +3 -3
  743. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  744. package/lib/molecule/questions/free-text/index.js +2 -2
  745. package/lib/molecule/questions/question-range/index.js +2 -4
  746. package/lib/molecule/questions/question-range/index.js.map +1 -1
  747. package/lib/molecule/questions/template/index.js +2 -2
  748. package/lib/molecule/questions/template/index.js.map +1 -1
  749. package/lib/molecule/questions/template/test/index.js +1 -1
  750. package/lib/molecule/questions/template/test/index.js.map +1 -1
  751. package/lib/molecule/quick-access-card/index.js.map +1 -1
  752. package/lib/molecule/resource-player/index.js +2 -4
  753. package/lib/molecule/resource-player/index.js.map +1 -1
  754. package/lib/molecule/scope-tabs/index.js +2 -2
  755. package/lib/molecule/search/index.js +2 -2
  756. package/lib/molecule/search-form/index.js +2 -2
  757. package/lib/molecule/select-multiple/index.js +1 -1
  758. package/lib/molecule/select-multiple/index.js.map +1 -1
  759. package/lib/molecule/select-multiple/test/index.js +3 -3
  760. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  761. package/lib/molecule/setup-section/index.js +1 -1
  762. package/lib/molecule/setup-section/index.js.map +1 -1
  763. package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
  764. package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
  765. package/lib/molecule/setup-sections/index.js +2 -2
  766. package/lib/molecule/setup-slide/index.js +8 -8
  767. package/lib/molecule/setup-slide/index.js.map +1 -1
  768. package/lib/molecule/share/index.js +4 -4
  769. package/lib/molecule/share/index.js.map +1 -1
  770. package/lib/molecule/titled-checkbox/index.js +2 -2
  771. package/lib/molecule/vertical-tabs/index.js +66 -0
  772. package/lib/molecule/vertical-tabs/index.js.map +1 -0
  773. package/lib/molecule/vertical-tabs/style.css +69 -0
  774. package/lib/molecule/vertical-tabs/test/fixtures/default.js +46 -0
  775. package/lib/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
  776. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js +86 -0
  777. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
  778. package/lib/molecule/vertical-tabs/test/fixtures.js +25 -0
  779. package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  780. package/lib/molecule/video-iframe/index.js +1 -1
  781. package/lib/molecule/video-iframe/index.js.map +1 -1
  782. package/lib/molecule/video-player/index.js +1 -3
  783. package/lib/molecule/video-player/index.js.map +1 -1
  784. package/lib/molecule/video-player/jwplayer.js +2 -2
  785. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  786. package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
  787. package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  788. package/lib/molecule/video-player/vimeo.js +1 -1
  789. package/lib/molecule/video-player/vimeo.js.map +1 -1
  790. package/lib/molecule/wizard-summary/test/fixtures.js +31 -0
  791. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
  792. package/lib/organism/accordion/container/index.js +2 -2
  793. package/lib/organism/accordion/coorp-manager/index.js +3 -3
  794. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  795. package/lib/organism/accordion/toggler/index.js +1 -1
  796. package/lib/organism/accordion/toggler/index.js.map +1 -1
  797. package/lib/organism/accordion/toggler/test/render.js +2 -2
  798. package/lib/organism/accordion/toggler/test/render.js.map +1 -1
  799. package/lib/organism/brand-form/index.js +2 -2
  800. package/lib/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
  801. package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
  802. package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
  803. package/lib/organism/discussion/test/fixtures/default.js +1 -1
  804. package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
  805. package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
  806. package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  807. package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
  808. package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  809. package/lib/organism/get-the-app/index.js +2 -2
  810. package/lib/organism/get-the-app/index.js.map +1 -1
  811. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  812. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  813. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  814. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  815. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  816. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  817. package/lib/organism/popin/test/fixtures/default.js.map +1 -1
  818. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  819. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  820. package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  821. package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  822. package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  823. package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  824. package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
  825. package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  826. package/lib/organism/settings/index.js +2 -4
  827. package/lib/organism/settings/index.js.map +1 -1
  828. package/lib/organism/sidebar/index.js +13 -15
  829. package/lib/organism/sidebar/index.js.map +1 -1
  830. package/lib/organism/user-preferences/index.js +2 -4
  831. package/lib/organism/user-preferences/index.js.map +1 -1
  832. package/lib/template/activity/index.js +1 -1
  833. package/lib/template/activity/index.js.map +1 -1
  834. package/lib/template/activity/progression-item.js +2 -2
  835. package/lib/template/activity/test/progression-item-test.js +1 -1
  836. package/lib/template/activity/test/progression-item-test.js.map +1 -1
  837. package/lib/template/app-player/player/slides/footer/index.js +1 -1
  838. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  839. package/lib/template/app-player/player/slides/index.js +11 -15
  840. package/lib/template/app-player/player/slides/index.js.map +1 -1
  841. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  842. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  843. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  844. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  845. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  846. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  847. package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  848. package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  849. package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  850. package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  851. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  852. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  853. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  854. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  855. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  856. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  857. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  858. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  859. package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
  860. package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  861. package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
  862. package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  863. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  864. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  865. package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  866. package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  867. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  868. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  869. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  870. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  871. package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
  872. package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  873. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  874. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  875. package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  876. package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  877. package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  878. package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  879. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  880. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  881. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  882. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  883. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  884. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  885. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  886. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  887. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  888. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  889. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  890. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  891. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  892. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  893. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  894. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  895. package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  896. package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  897. package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
  898. package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  899. package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
  900. package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  901. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  902. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  903. package/lib/template/app-player/player/test/fixtures/background.js +1 -1
  904. package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
  905. package/lib/template/app-player/popin-correction/index.js +4 -6
  906. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  907. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  908. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  909. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  910. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  911. package/lib/template/app-player/popin-end/summary.js +7 -12
  912. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  913. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  914. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  915. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  916. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  917. package/lib/template/app-player/popin-header/index.js +5 -7
  918. package/lib/template/app-player/popin-header/index.js.map +1 -1
  919. package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
  920. package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  921. package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  922. package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  923. package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  924. package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  925. package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
  926. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  927. package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  928. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  929. package/lib/template/back-office/brand-update/index.js +7 -7
  930. package/lib/template/back-office/brand-update/index.js.map +1 -1
  931. package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
  932. package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
  933. package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
  934. package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
  935. package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
  936. package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
  937. package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
  938. package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
  939. package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
  940. package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
  941. package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
  942. package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
  943. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  944. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  945. package/lib/template/back-office/brand-update/test/fixtures/manageusers.js +2 -2
  946. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  947. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  948. package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
  949. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  950. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  951. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  952. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  953. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  954. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  955. package/lib/template/cockpit/jw-uploader/index.js +1 -1
  956. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  957. package/lib/template/common/dashboard/index.js +1 -1
  958. package/lib/template/common/dashboard/index.js.map +1 -1
  959. package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  960. package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  961. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  962. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  963. package/lib/template/common/discipline/index.js +2 -2
  964. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  965. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  966. package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
  967. package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  968. package/lib/template/common/discipline/test/fixtures/default.js +2 -2
  969. package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
  970. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  971. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  972. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  973. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  974. package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
  975. package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  976. package/lib/template/common/discipline/test/fixtures/share.js +1 -1
  977. package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
  978. package/lib/template/teams-dashboard/index.js +2 -2
  979. package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
  980. package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  981. package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  982. package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  983. package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  984. package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  985. package/lib/test/helpers/render-component.js +1 -1
  986. package/lib/util/external-content.js +1 -1
  987. package/lib/util/proptypes.js +1 -1
  988. package/lib/util/shallow-compare.js.map +1 -1
  989. package/lib/util/test/navigation.js +3 -5
  990. package/lib/util/test/navigation.js.map +1 -1
  991. package/lib/variables/colors.css +8 -0
  992. package/package.json +3 -3
  993. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  994. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  995. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  996. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/range/index.js"],"names":["React","PropTypes","Provider","Handle","style","valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","Range","Component","getDerivedStateFromProps","state","pending","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","handle","clientX","isClickToTheLeft","closestHandle","Math","abs","renderHandles","animatedHandle","render","skin","defaultColor","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","childContextTypes","propTypes","func","bool","oneOfType","number","arrayOf"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAG,CAACC,KAAD,EAAQC,CAAR,KAAc;AACjC,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA;AAAP,MAAgBH,KAAK,CAACI,qBAAN,EAAtB;AACA,SAAO,OAAM,CAAN,EAAS,CAAT,EAAY,CAACH,CAAC,GAAGC,IAAL,KAAcC,KAAK,GAAGD,IAAtB,CAAZ,CAAP;AACD,CAHD;;AAKA,MAAMG,qBAAqB,GAAGC,KAAK,IAAI;AACrC,QAAM;AAACC,IAAAA,KAAK,GAAG,KAAT;AAAgBC,IAAAA,KAAK,GAAGD,KAAK,GAAG,CAAC,CAAD,EAAI,CAAJ,CAAH,GAAY;AAAzC,MAA8CD,KAApD;AACA,SAAO;AACLC,IAAAA,KADK;AAELC,IAAAA,KAAK,EAAED,KAAK,GAAGC,KAAH,GAAW,CAAC,CAAD,EAAIA,KAAJ;AAFlB,GAAP;AAID,CAND;;AAQA,MAAMC,KAAN,SAAoBf,KAAK,CAACgB,SAA1B,CAAoC;AAaH,SAAxBC,wBAAwB,CAACL,KAAD,EAAQM,KAAR,EAAe;AAC5C,UAAM;AAACC,MAAAA;AAAD,QAAYD,KAAlB;AAEA,QAAIC,OA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wKrB,eAAexD,KAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, noop, set, clamp} from 'lodash/fp';\nimport Provider from '../provider';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n renderHandles() {\n const {\n value: [left, right],\n multi,\n pending\n } = this.state;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMinChange} onPanEnd={this.handleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMaxChange} onPanEnd={this.handleMaxChangeEnd} />\n </span>\n </div>\n );\n }\n\n render() {\n const {skin} = this.context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: defaultColor,\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n {this.renderHandles()}\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/range/index.js"],"names":["React","PropTypes","Provider","Handle","style","valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","Range","Component","getDerivedStateFromProps","state","pending","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","handle","clientX","isClickToTheLeft","closestHandle","Math","abs","renderHandles","animatedHandle","render","skin","defaultColor","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","childContextTypes","propTypes","func","bool","oneOfType","number","arrayOf"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAG,CAACC,KAAD,EAAQC,CAAR,KAAc;AACjC,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA;AAAP,MAAgBH,KAAK,CAACI,qBAAN,EAAtB;AACA,SAAO,OAAM,CAAN,EAAS,CAAT,EAAY,CAACH,CAAC,GAAGC,IAAL,KAAcC,KAAK,GAAGD,IAAtB,CAAZ,CAAP;AACD,CAHD;;AAKA,MAAMG,qBAAqB,GAAGC,KAAK,IAAI;AACrC,QAAM;AAACC,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A9BrC,K,kBASkB;AACpBwC,EAAAA,IAAI,EAAErD,QAAQ,CAACgE,iBAAT,CAA2BX;AADb,C;;AATlBxC,K,CACGoD,S,2CAAY;AACjBvB,EAAAA,QAAQ,EAAE3C,SAAS,CAACmE,IADH;AAEjBvB,EAAAA,WAAW,EAAE5C,SAAS,CAACmE,IAFN;AAGjBvD,EAAAA,KAAK,EAAEZ,SAAS,CAACoE,IAHA;AAIjB;AACAvD,EAAAA,KAAK,EAAEb,SAAS,CAACqE,SAAV,CAAoB,CAACrE,SAAS,CAACsE,MAAX,EAAmBtE,SAAS,CAACuE,OAAV,CAAkBvE,SAAS,CAACsE,MAA5B,CAAnB,CAApB;AALU,C;AAwKrB,eAAexD,KAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, noop, set, clamp} from 'lodash/fp';\nimport Provider from '../provider';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n renderHandles() {\n const {\n value: [left, right],\n multi,\n pending\n } = this.state;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMinChange} onPanEnd={this.handleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMaxChange} onPanEnd={this.handleMaxChangeEnd} />\n </span>\n </div>\n );\n }\n\n render() {\n const {skin} = this.context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: defaultColor,\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n {this.renderHandles()}\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"file":"index.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Default;
7
7
  export default {
8
- props: _extends({}, props, {
8
+ props: _extends(_extends({}, props), {}, {
9
9
  multi: true,
10
10
  value: [0.2, 0.7]
11
11
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/range/test/fixtures/multi.js"],"names":["Default","props","multi","value"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,IAFJ;AAGHC,IAAAA,KAAK,EAAE,CAAC,GAAD,EAAM,GAAN;AAHJ;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: {\n ...props,\n multi: true,\n value: [0.2, 0.7]\n }\n};\n"],"file":"multi.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/range/test/fixtures/multi.js"],"names":["Default","props","multi","value"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,IAFJ;AAGHC,IAAAA,KAAK,EAAE,CAAC,GAAD,EAAM,GAAN;AAHJ;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: {\n ...props,\n multi: true,\n value: [0.2, 0.7]\n }\n};\n"],"file":"multi.js"}
@@ -159,7 +159,7 @@ test('should move handle when range is clicked (single)', t => {
159
159
  right: 1100
160
160
  });
161
161
 
162
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
162
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
163
163
  clientX: 1020
164
164
  }));
165
165
  });
@@ -183,37 +183,37 @@ test('should move closest handle when range is clicked (multi)', t => {
183
183
  right: 1100
184
184
  });
185
185
 
186
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
186
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
187
187
  clientX: 1020
188
188
  }));
189
189
  wrapper.setProps({
190
190
  value: [0.2, 0.7]
191
191
  });
192
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
192
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
193
193
  clientX: 1090
194
194
  }));
195
195
  wrapper.setProps({
196
196
  value: [0.2, 0.9]
197
197
  });
198
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
198
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
199
199
  clientX: 1040
200
200
  }));
201
201
  wrapper.setProps({
202
202
  value: [0.4, 0.9]
203
203
  });
204
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
204
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
205
205
  clientX: 1070
206
206
  }));
207
207
  wrapper.setProps({
208
208
  value: [0.4, 0.7]
209
209
  });
210
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
210
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
211
211
  clientX: 1000
212
212
  }));
213
213
  wrapper.setProps({
214
214
  value: [0, 0.7]
215
215
  });
216
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
216
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
217
217
  clientX: 1100
218
218
  }));
219
219
  });
@@ -234,7 +234,7 @@ test('should moveleft handle if the two handles have the same values and the cli
234
234
  right: 100
235
235
  });
236
236
 
237
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
237
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
238
238
  clientX: 40
239
239
  }));
240
240
  });
@@ -255,7 +255,7 @@ test('should move right handle if the two handles have the same values and the c
255
255
  right: 100
256
256
  });
257
257
 
258
- wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
258
+ wrapper.find(`.${style.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
259
259
  clientX: 60
260
260
  }));
261
261
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/range/test/index.js"],"names":["browserEnv","test","React","mount","configure","Adapter","style","Range","adapter","defaultEvent","stopPropagation","preventDefault","t","component","slider","instance","track","getBoundingClientRect","left","right","handleMaxChange","srcEvent","center","setProps","multi","handleMaxChangeEnd","unmount","pass","macro","props","boundingRect","maxCenterEvent","maxExpected","minCenterEvent","minExpected","plan","expectedChange","validChange","value","deepEqual","shift","expectedChangeEnd","validChangeEnd","handleMinChange","handleMinChangeEnd","x","onChange","is","wrapper","find","containerWrapper","simulate","clientX","expectedValues","length"],"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,OAAOC,KAAP,MAAkB,cAAlB,C,CAAkC;;AAClC,OAAOC,KAAP,MAAkB,IAAlB;AAEAP,UAAU;AACVI,SAAS,CAAC;AAACI,EAAAA,OAAO,EAAE,IAAIH,OAAJ;AAAV,CAAD,CAAT;AAEA,MAAMI,YAAY,GAAG;AACnBC,EAAAA,eAAe,OADI;AAEnBC,EAAAA,cAAc;AAFK,CAArB;AAKAV,IAAI,CAAC,wCAAD,EAA2CW,CAAC,IAAI;AAClD,QAAMC,SAAS,gBAAG,oBAAC,KAAD,OAAlB;AACA,QAAMC,MAAM,GAAGX,KAAK,CAACU,SAAD,CAApB;AACA,QAAME,QAAQ,GAAGD,MAAM,CAACC,QAAP,EAAjB;;AACAA,EAAAA,QAAQ,CAACC,KAAT,CAAeC,qBAAf,GAAuC,OAAO;AAACC,IAAAA,IAAI,EAAE,CAAP;AAAUC,IAAAA,KAAK,EAAE;AAAjB,GAAP,CAAvC;;AACAJ,EAAAA,QAAQ,CAACK,eAAT,CAAyB;AAACC,IAAAA,QAAQ,EAAEZ,YAAX;AAAyBa,IAAAA,MAAM,EAAE;AAAjC,GAAzB;AACAR,EAAAA,MAAM,CAACS,QAAP,CAAgB;AAACC,IAAAA,KAAK,EAAE;AAAR,GAAhB;AACAT,EAAAA,QAAQ,CAACU,kBAAT,CAA4B;AAACJ,IAAAA,QAAQ,EAAEZ,YAA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,CAAC2B,SAAF,CAAYD,KAAZ,EAAmB,CAAC,GAAD,EAAM,GAAN,CAAnB;AACD,GAFD;;AAIA,QAAMU,OAAO,GAAG7C,KAAK,eAAC,oBAAC,KAAD;AAAO,IAAA,KAAK,EAAE,CAAC,GAAD,EAAM,GAAN,CAAd;AAA0B,IAAA,QAAQ,EAAE2C,QAApC;AAA8C,IAAA,KAAK;AAAnD,IAAD,CAArB;AACA,QAAM/B,QAAQ,GAAGiC,OAAO,CAACjC,QAAR,EAAjB;;AACAA,EAAAA,QAAQ,CAACC,KAAT,CAAeC,qBAAf,GAAuC,OAAO;AAACC,IAAAA,IAAI,EAAE,CAAP;AAAUC,IAAAA,KAAK,EAAE;AAAjB,GAAP,CAAvC;;AAEA6B,EAAAA,OAAO,CAACC,IAAR,CAAc,IAAG3C,KAAK,CAAC4C,gBAAiB,EAAxC,EAA2CC,QAA3C,CAAoD,OAApD,eAAiE1C,YAAjE;AAA+E2C,IAAAA,OAAO,EAAE;AAAxF;AACD,CAVG,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 {noop} from 'lodash/fp';\nimport style from '../style.css'; // eslint-disable-line css-modules/no-unused-class\nimport Range from '..';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\nconst defaultEvent = {\n stopPropagation: noop,\n preventDefault: noop\n};\n\ntest('should instanciate Range without props', t => {\n const component = <Range />;\n const slider = mount(component);\n const instance = slider.instance();\n instance.track.getBoundingClientRect = () => ({left: 0, right: 100});\n instance.handleMaxChange({srcEvent: defaultEvent, center: {}});\n slider.setProps({multi: true});\n instance.handleMaxChangeEnd({srcEvent: defaultEvent, center: {}});\n slider.unmount();\n t.pass();\n});\n\nconst macro = (\n t,\n props,\n boundingRect,\n maxCenterEvent,\n maxExpected,\n minCenterEvent,\n minExpected\n) => {\n t.plan(minExpected ? 4 : 2);\n\n const expectedChange = [maxExpected, minExpected];\n const validChange = value => {\n t.deepEqual(value, expectedChange.shift());\n };\n const expectedChangeEnd = [maxExpected, minExpected];\n const validChangeEnd = value => {\n t.deepEqual(value, expectedChangeEnd.shift());\n };\n\n const component = <Range {...props} onChange={validChange} onChangeEnd={validChangeEnd} />;\n const slider = mount(component);\n const instance = slider.instance();\n\n instance.track.getBoundingClientRect = () => boundingRect;\n\n instance.handleMaxChange({srcEvent: {...defaultEvent}, center: maxCenterEvent});\n instance.handleMaxChangeEnd({srcEvent: {...defaultEvent}, center: maxCenterEvent});\n if (minCenterEvent)\n instance.handleMinChange({srcEvent: {...defaultEvent}, center: minCenterEvent});\n if (minCenterEvent)\n instance.handleMinChangeEnd({srcEvent: {...defaultEvent}, center: minCenterEvent});\n};\n\ntest('should instanciate Range', macro, {value: 0.5}, {left: 10, right: 110}, {x: 60}, 0.5);\ntest('should limit left hangle', macro, {value: 0.5}, {left: 10, right: 110}, {x: 0}, 0);\ntest('should limit right hangle', macro, {value: 0.5}, {left: 10, right: 110}, {x: 120}, 1);\n\ntest(\n 'should instanciate multi Range',\n macro,\n {multi: true, value: [0, 1]},\n {left: 10, right: 110},\n {x: 60},\n [0, 0.5],\n {x: 20},\n [0.1, 1]\n);\ntest(\n 'should limit hangles',\n macro,\n {multi: true, value: [0, 1]},\n {left: 10, right: 110},\n {x: 120},\n [0, 1],\n {x: 0},\n [0, 1]\n);\ntest(\n 'should limit hangles 2',\n macro,\n {multi: true, value: [0.4, 0.6]},\n {left: 0, right: 100},\n {x: 30},\n [0.4, 0.6],\n {x: 70},\n [0.4, 0.6]\n);\n\ntest('should move handle when range is clicked (single)', t => {\n t.plan(1);\n const onChange = value => {\n t.is(value, 0.2);\n };\n\n const wrapper = mount(<Range value={0.5} onChange={onChange} />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 1000, right: 1100});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1020});\n});\n\ntest('should move closest handle when range is clicked (multi)', t => {\n const expectedValues = [\n [0.2, 0.7],\n [0.2, 0.9],\n [0.4, 0.9],\n [0.4, 0.7],\n [0, 0.7],\n [0, 1]\n ];\n t.plan(expectedValues.length);\n const onChange = value => {\n t.deepEqual(value, expectedValues.shift());\n };\n\n const wrapper = mount(<Range value={[0.3, 0.7]} onChange={onChange} multi />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 1000, right: 1100});\n\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1020});\n wrapper.setProps({value: [0.2, 0.7]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1090});\n wrapper.setProps({value: [0.2, 0.9]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1040});\n wrapper.setProps({value: [0.4, 0.9]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1070});\n wrapper.setProps({value: [0.4, 0.7]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1000});\n wrapper.setProps({value: [0, 0.7]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1100});\n});\n\ntest('should moveleft handle if the two handles have the same values and the click is on the left', t => {\n const onChange = value => {\n t.deepEqual(value, [0.4, 0.5]);\n };\n\n const wrapper = mount(<Range value={[0.5, 0.5]} onChange={onChange} multi />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 0, right: 100});\n\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 40});\n});\n\ntest('should move right handle if the two handles have the same values and the click is on the right', t => {\n const onChange = value => {\n t.deepEqual(value, [0.5, 0.6]);\n };\n\n const wrapper = mount(<Range value={[0.5, 0.5]} onChange={onChange} multi />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 0, right: 100});\n\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 60});\n});\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/atom/range/test/index.js"],"names":["browserEnv","test","React","mount","configure","Adapter","style","Range","adapter","defaultEvent","stopPropagation","preventDefault","t","component","slider","instance","track","getBoundingClientRect","left","right","handleMaxChange","srcEvent","center","setProps","multi","handleMaxChangeEnd","unmount","pass","macro","props","boundingRect","maxCenterEvent","maxExpected","minCenterEvent","minExpected","plan","expectedChange","validChange","value","deepEqual","shift","expectedChangeEnd","validChangeEnd","handleMinChange","handleMinChangeEnd","x","onChange","is","wrapper","find","containerWrapper","simulate","clientX","expectedValues","length"],"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,OAAOC,KAAP,MAAkB,cAAlB,C,CAAkC;;AAClC,OAAOC,KAAP,MAAkB,IAAlB;AAEAP,UAAU;AACVI,SAAS,CAAC;AAACI,EAAAA,OAAO,EAAE,IAAIH,OAAJ;AAAV,CAAD,CAAT;AAEA,MAAMI,YAAY,GAAG;AACnBC,EAAAA,eAAe,OADI;AAEnBC,EAAAA,cAAc;AAFK,CAArB;AAKAV,IAAI,CAAC,wCAAD,EAA2CW,CAAC,IAAI;AAClD,QAAMC,SAAS,gBAAG,oBAAC,KAAD,OAAlB;AACA,QAAMC,MAAM,GAAGX,KAAK,CAACU,SAAD,CAApB;AACA,QAAME,QAAQ,GAAGD,MAAM,CAACC,QAAP,EAAjB;;AACAA,EAAAA,QAAQ,CAACC,KAAT,CAAeC,qBAAf,GAAuC,OAAO;AAACC,IAAAA,IAAI,EAAE,CAAP;AAAUC,IAAAA,KAAK,EAAE;AAAjB,GAAP,CAAvC;;AACAJ,EAAAA,QAAQ,CAACK,eAAT,CAAyB;AAACC,IAAAA,QAAQ,EAAEZ,YA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CC,QAA3C,CAAoD,OAApD,wBAAiE1C,YAAjE;AAA+E2C,IAAAA,OAAO,EAAE;AAAxF;AACD,CAVG,CAAJ;AAYAnD,IAAI,CAAC,gGAAD,EAAmGW,CAAC,IAAI;AAC1G,QAAMkC,QAAQ,GAAGR,KAAK,IAAI;AACxB1B,IAAAA,CAAC,CAAC2B,SAAF,CAAYD,KAAZ,EAAmB,CAAC,GAAD,EAAM,GAAN,CAAnB;AACD,GAFD;;AAIA,QAAMU,OAAO,GAAG7C,KAAK,eAAC,oBAAC,KAAD;AAAO,IAAA,KAAK,EAAE,CAAC,GAAD,EAAM,GAAN,CAAd;AAA0B,IAAA,QAAQ,EAAE2C,QAApC;AAA8C,IAAA,KAAK;AAAnD,IAAD,CAArB;AACA,QAAM/B,QAAQ,GAAGiC,OAAO,CAACjC,QAAR,EAAjB;;AACAA,EAAAA,QAAQ,CAACC,KAAT,CAAeC,qBAAf,GAAuC,OAAO;AAACC,IAAAA,IAAI,EAAE,CAAP;AAAUC,IAAAA,KAAK,EAAE;AAAjB,GAAP,CAAvC;;AAEA6B,EAAAA,OAAO,CAACC,IAAR,CAAc,IAAG3C,KAAK,CAAC4C,gBAAiB,EAAxC,EAA2CC,QAA3C,CAAoD,OAApD,wBAAiE1C,YAAjE;AAA+E2C,IAAAA,OAAO,EAAE;AAAxF;AACD,CAVG,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 {noop} from 'lodash/fp';\nimport style from '../style.css'; // eslint-disable-line css-modules/no-unused-class\nimport Range from '..';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\nconst defaultEvent = {\n stopPropagation: noop,\n preventDefault: noop\n};\n\ntest('should instanciate Range without props', t => {\n const component = <Range />;\n const slider = mount(component);\n const instance = slider.instance();\n instance.track.getBoundingClientRect = () => ({left: 0, right: 100});\n instance.handleMaxChange({srcEvent: defaultEvent, center: {}});\n slider.setProps({multi: true});\n instance.handleMaxChangeEnd({srcEvent: defaultEvent, center: {}});\n slider.unmount();\n t.pass();\n});\n\nconst macro = (\n t,\n props,\n boundingRect,\n maxCenterEvent,\n maxExpected,\n minCenterEvent,\n minExpected\n) => {\n t.plan(minExpected ? 4 : 2);\n\n const expectedChange = [maxExpected, minExpected];\n const validChange = value => {\n t.deepEqual(value, expectedChange.shift());\n };\n const expectedChangeEnd = [maxExpected, minExpected];\n const validChangeEnd = value => {\n t.deepEqual(value, expectedChangeEnd.shift());\n };\n\n const component = <Range {...props} onChange={validChange} onChangeEnd={validChangeEnd} />;\n const slider = mount(component);\n const instance = slider.instance();\n\n instance.track.getBoundingClientRect = () => boundingRect;\n\n instance.handleMaxChange({srcEvent: {...defaultEvent}, center: maxCenterEvent});\n instance.handleMaxChangeEnd({srcEvent: {...defaultEvent}, center: maxCenterEvent});\n if (minCenterEvent)\n instance.handleMinChange({srcEvent: {...defaultEvent}, center: minCenterEvent});\n if (minCenterEvent)\n instance.handleMinChangeEnd({srcEvent: {...defaultEvent}, center: minCenterEvent});\n};\n\ntest('should instanciate Range', macro, {value: 0.5}, {left: 10, right: 110}, {x: 60}, 0.5);\ntest('should limit left hangle', macro, {value: 0.5}, {left: 10, right: 110}, {x: 0}, 0);\ntest('should limit right hangle', macro, {value: 0.5}, {left: 10, right: 110}, {x: 120}, 1);\n\ntest(\n 'should instanciate multi Range',\n macro,\n {multi: true, value: [0, 1]},\n {left: 10, right: 110},\n {x: 60},\n [0, 0.5],\n {x: 20},\n [0.1, 1]\n);\ntest(\n 'should limit hangles',\n macro,\n {multi: true, value: [0, 1]},\n {left: 10, right: 110},\n {x: 120},\n [0, 1],\n {x: 0},\n [0, 1]\n);\ntest(\n 'should limit hangles 2',\n macro,\n {multi: true, value: [0.4, 0.6]},\n {left: 0, right: 100},\n {x: 30},\n [0.4, 0.6],\n {x: 70},\n [0.4, 0.6]\n);\n\ntest('should move handle when range is clicked (single)', t => {\n t.plan(1);\n const onChange = value => {\n t.is(value, 0.2);\n };\n\n const wrapper = mount(<Range value={0.5} onChange={onChange} />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 1000, right: 1100});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1020});\n});\n\ntest('should move closest handle when range is clicked (multi)', t => {\n const expectedValues = [\n [0.2, 0.7],\n [0.2, 0.9],\n [0.4, 0.9],\n [0.4, 0.7],\n [0, 0.7],\n [0, 1]\n ];\n t.plan(expectedValues.length);\n const onChange = value => {\n t.deepEqual(value, expectedValues.shift());\n };\n\n const wrapper = mount(<Range value={[0.3, 0.7]} onChange={onChange} multi />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 1000, right: 1100});\n\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1020});\n wrapper.setProps({value: [0.2, 0.7]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1090});\n wrapper.setProps({value: [0.2, 0.9]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1040});\n wrapper.setProps({value: [0.4, 0.9]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1070});\n wrapper.setProps({value: [0.4, 0.7]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1000});\n wrapper.setProps({value: [0, 0.7]});\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 1100});\n});\n\ntest('should moveleft handle if the two handles have the same values and the click is on the left', t => {\n const onChange = value => {\n t.deepEqual(value, [0.4, 0.5]);\n };\n\n const wrapper = mount(<Range value={[0.5, 0.5]} onChange={onChange} multi />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 0, right: 100});\n\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 40});\n});\n\ntest('should move right handle if the two handles have the same values and the click is on the right', t => {\n const onChange = value => {\n t.deepEqual(value, [0.5, 0.6]);\n };\n\n const wrapper = mount(<Range value={[0.5, 0.5]} onChange={onChange} multi />);\n const instance = wrapper.instance();\n instance.track.getBoundingClientRect = () => ({left: 0, right: 100});\n\n wrapper.find(`.${style.containerWrapper}`).simulate('click', {...defaultEvent, clientX: 60});\n});\n"],"file":"index.js"}
@@ -35,7 +35,7 @@ const VideoUpload = ({
35
35
  onDragLeave: onDragStop
36
36
  }));
37
37
 
38
- VideoUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, DragAndDrop.propTypes, {
38
+ VideoUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends(_extends({}, DragAndDrop.propTypes), {}, {
39
39
  name: PropTypes.string,
40
40
  onChange: PropTypes.func
41
41
  }) : {};
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/video-upload/index.js"],"names":["React","PropTypes","DragAndDrop","style","VideoUpload","title","description","previewLabel","uploadLabel","previewContent","loading","modified","onChange","name","onDragStart","onDragStop","input","propTypes","string","func"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,WAAP,MAAwB,kBAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAAC;AACnBC,EAAAA,KADmB;AAEnBC,EAAAA,WAFmB;AAGnBC,EAAAA,YAHmB;AAInBC,EAAAA,WAJmB;AAKnBC,EAAAA,cALmB;AAMnBC,EAAAA,OANmB;AAOnBC,EAAAA,QAPmB;AAQnBC,EAAAA,QARmB;AASnBC,EAAAA;AATmB,CAAD,kBAWlB,oBAAC,WAAD;AACE,EAAA,KAAK,EAAER,KADT;AAEE,EAAA,WAAW,EAAEC,WAFf;AAGE,EAAA,YAAY,EAAEC,YAHhB;AAIE,EAAA,WAAW,EAAEC,WAJf;AAKE,EAAA,cAAc,EAAEC,cALlB;AAME,EAAA,OAAO,EAAEC,OANX;AAOE,EAAA,QAAQ,EAAEC;AAPZ,GASG,CAACG,WAAD,EAAcC,UAAd,kBACC;AACE,EAAA,IAAI,EAAC,MADP;AAEE,EAAA,IAAI,EAAEF,IAFR;AAGE,EAAA,MAAM,EAAC,SAHT;AAIE,EAAA,QAAQ,EAAEH,OAJZ;AAKE,EAAA,SAAS,EAAEP,KAAK,CAACa,KALnB;AAME,EAAA,QAAQ,EAAEJ,QANZ;AAOE,EAAA,WAAW,EAAEE,WAPf;AAQE,EAAA,MAAM,EAAEC,UARV;AASE,EAAA,WAAW,EAAEA;AATf,EAVJ,CAXF;;AAoCAX,WAAW,CAACa,SAAZ,wDACKf,WAAW,CAACe,SADjB;AAEEJ,EAAAA,IAAI,EAAEZ,SAAS,CAACiB,MAFlB;AAGEN,EAAAA,QAAQ,EAAEX,SAAS,CAACkB;AAHtB;AAMA,eAAef,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport DragAndDrop from '../drag-and-drop';\nimport style from './style.css';\n\nconst VideoUpload = ({\n title,\n description,\n previewLabel,\n uploadLabel,\n previewContent,\n loading,\n modified,\n onChange,\n name\n}) => (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n uploadLabel={uploadLabel}\n previewContent={previewContent}\n loading={loading}\n modified={modified}\n >\n {(onDragStart, onDragStop) => (\n <input\n type=\"file\"\n name={name}\n accept=\"video/*\"\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )}\n </DragAndDrop>\n);\n\nVideoUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func\n};\n\nexport default VideoUpload;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/video-upload/index.js"],"names":["React","PropTypes","DragAndDrop","style","VideoUpload","title","description","previewLabel","uploadLabel","previewContent","loading","modified","onChange","name","onDragStart","onDragStop","input","propTypes","string","func"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,WAAP,MAAwB,kBAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAAC;AACnBC,EAAAA,KADmB;AAEnBC,EAAAA,WAFmB;AAGnBC,EAAAA,YAHmB;AAInBC,EAAAA,WAJmB;AAKnBC,EAAAA,cALmB;AAMnBC,EAAAA,OANmB;AAOnBC,EAAAA,QAPmB;AAQnBC,EAAAA,QARmB;AASnBC,EAAAA;AATmB,CAAD,kBAWlB,oBAAC,WAAD;AACE,EAAA,KAAK,EAAER,KADT;AAEE,EAAA,WAAW,EAAEC,WAFf;AAGE,EAAA,YAAY,EAAEC,YAHhB;AAIE,EAAA,WAAW,EAAEC,WAJf;AAKE,EAAA,cAAc,EAAEC,cALlB;AAME,EAAA,OAAO,EAAEC,OANX;AAOE,EAAA,QAAQ,EAAEC;AAPZ,GASG,CAACG,WAAD,EAAcC,UAAd,kBACC;AACE,EAAA,IAAI,EAAC,MADP;AAEE,EAAA,IAAI,EAAEF,IAFR;AAGE,EAAA,MAAM,EAAC,SAHT;AAIE,EAAA,QAAQ,EAAEH,OAJZ;AAKE,EAAA,SAAS,EAAEP,KAAK,CAACa,KALnB;AAME,EAAA,QAAQ,EAAEJ,QANZ;AAOE,EAAA,WAAW,EAAEE,WAPf;AAQE,EAAA,MAAM,EAAEC,UARV;AASE,EAAA,WAAW,EAAEA;AATf,EAVJ,CAXF;;AAoCAX,WAAW,CAACa,SAAZ,iEACKf,WAAW,CAACe,SADjB;AAEEJ,EAAAA,IAAI,EAAEZ,SAAS,CAACiB,MAFlB;AAGEN,EAAAA,QAAQ,EAAEX,SAAS,CAACkB;AAHtB;AAMA,eAAef,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport DragAndDrop from '../drag-and-drop';\nimport style from './style.css';\n\nconst VideoUpload = ({\n title,\n description,\n previewLabel,\n uploadLabel,\n previewContent,\n loading,\n modified,\n onChange,\n name\n}) => (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n uploadLabel={uploadLabel}\n previewContent={previewContent}\n loading={loading}\n modified={modified}\n >\n {(onDragStart, onDragStop) => (\n <input\n type=\"file\"\n name={name}\n accept=\"video/*\"\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )}\n </DragAndDrop>\n);\n\nVideoUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func\n};\n\nexport default VideoUpload;\n"],"file":"index.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = WithoutVideo;
7
7
  export default {
8
- props: _extends({}, props, {
8
+ props: _extends(_extends({}, props), {}, {
9
9
  loading: true
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/loading.js"],"names":["WithoutVideo","props","loading"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,iBAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,OAAO,EAAE;AAFN;AADQ,CAAf","sourcesContent":["import WithoutVideo from './without-video';\n\nconst {props} = WithoutVideo;\n\nexport default {\n props: {\n ...props,\n loading: true\n }\n};\n"],"file":"loading.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/loading.js"],"names":["WithoutVideo","props","loading"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,iBAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,OAAO,EAAE;AAFN;AADQ,CAAf","sourcesContent":["import WithoutVideo from './without-video';\n\nconst {props} = WithoutVideo;\n\nexport default {\n props: {\n ...props,\n loading: true\n }\n};\n"],"file":"loading.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Desktop;
7
7
  export default {
8
- props: _extends({}, props, {
8
+ props: _extends(_extends({}, props), {}, {
9
9
  modified: true
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/modified.js"],"names":["Desktop","props","modified"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n modified: true\n }\n};\n"],"file":"modified.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/modified.js"],"names":["Desktop","props","modified"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n modified: true\n }\n};\n"],"file":"modified.js"}
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import classnames from 'classnames';
4
+ import style from './style.css';
5
+
6
+ const WizardSteps = (props, context) => {
7
+ const {
8
+ steps
9
+ } = props;
10
+ const wizard = steps.map((step, index) => {
11
+ return /*#__PURE__*/React.createElement("div", {
12
+ className: classnames(style.step, step.done && style.done, step.current && style.current),
13
+ key: `step-${index}`,
14
+ "data-step": index
15
+ }, /*#__PURE__*/React.createElement("div", {
16
+ className: style.label
17
+ }, /*#__PURE__*/React.createElement("div", {
18
+ className: style.title
19
+ }, step.title)), /*#__PURE__*/React.createElement("div", {
20
+ className: style.outerDot
21
+ }, /*#__PURE__*/React.createElement("div", {
22
+ className: style.dot
23
+ }, " ")));
24
+ });
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ className: style.container
27
+ }, wizard);
28
+ };
29
+
30
+ WizardSteps.propTypes = process.env.NODE_ENV !== "production" ? {
31
+ steps: PropTypes.arrayOf(PropTypes.shape({
32
+ title: PropTypes.string,
33
+ done: PropTypes.bool,
34
+ current: PropTypes.bool
35
+ }))
36
+ } : {};
37
+ export default WizardSteps;
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/wizard-steps/index.js"],"names":["React","PropTypes","classnames","style","WizardSteps","props","context","steps","wizard","map","step","index","done","current","label","title","outerDot","dot","container","propTypes","arrayOf","shape","string","bool"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACtC,QAAM;AAACC,IAAAA;AAAD,MAAUF,KAAhB;AAEA,QAAMG,MAAM,GAAGD,KAAK,CAACE,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACxC,wBACE;AACE,MAAA,SAAS,EAAET,UAAU,CAACC,KAAK,CAACO,IAAP,EAAaA,IAAI,CAACE,IAAL,IAAaT,KAAK,CAACS,IAAhC,EAAsCF,IAAI,CAACG,OAAL,IAAgBV,KAAK,CAACU,OAA5D,CADvB;AAEE,MAAA,GAAG,EAAG,QAAOF,KAAM,EAFrB;AAGE,mBAAWA;AAHb,oBAKE;AAAK,MAAA,SAAS,EAAER,KAAK,CAACW;AAAtB,oBACE;AAAK,MAAA,SAAS,EAAEX,KAAK,CAACY;AAAtB,OAA8BL,IAAI,CAACK,KAAnC,CADF,CALF,eAQE;AAAK,MAAA,SAAS,EAAEZ,KAAK,CAACa;AAAtB,oBACE;AAAK,MAAA,SAAS,EAAEb,KAAK,CAACc;AAAtB,WADF,CARF,CADF;AAcD,GAfc,CAAf;AAiBA,sBAAO;AAAK,IAAA,SAAS,EAAEd,KAAK,CAACe;AAAtB,KAAkCV,MAAlC,CAAP;AACD,CArBD;;AAuBAJ,WAAW,CAACe,SAAZ,2CAAwB;AACtBZ,EAAAA,KAAK,EAAEN,SAAS,CAACmB,OAAV,CACLnB,SAAS,CAACoB,KAAV,CAAgB;AACdN,IAAAA,KAAK,EAAEd,SAAS,CAACqB,MADH;AAEdV,IAAAA,IAAI,EAAEX,SAAS,CAACsB,IAFF;AAGdV,IAAAA,OAAO,EAAEZ,SAAS,CAACsB;AAHL,GAAhB,CADK;AADe,CAAxB;AAUA,eAAenB,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport style from './style.css';\n\nconst WizardSteps = (props, context) => {\n const {steps} = props;\n\n const wizard = steps.map((step, index) => {\n return (\n <div\n className={classnames(style.step, step.done && style.done, step.current && style.current)}\n key={`step-${index}`}\n data-step={index}\n >\n <div className={style.label}>\n <div className={style.title}>{step.title}</div>\n </div>\n <div className={style.outerDot}>\n <div className={style.dot}> </div>\n </div>\n </div>\n );\n });\n\n return <div className={style.container}>{wizard}</div>;\n};\n\nWizardSteps.propTypes = {\n steps: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n done: PropTypes.bool,\n current: PropTypes.bool\n })\n )\n};\n\nexport default WizardSteps;\n"],"file":"index.js"}
@@ -0,0 +1,150 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_primary_blue from colors;
3
+ @value cm_grey_500 from colors;
4
+ @value cm_grey_200 from colors;
5
+ @value cm_grey_700 from colors;
6
+ @value cm_blue_200 from colors;
7
+ @value white from colors;
8
+
9
+ .container{
10
+ font-family: 'Gilroy';
11
+ flex: 0 0 100%;
12
+ justify-content: space-around;
13
+ display: flex;
14
+ padding-top: .3rem;
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ .step {
19
+ width: 100%;
20
+ position: relative;
21
+ padding: 0px 5px;
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ -webkit-box-pack: center;
25
+ justify-content: center;
26
+ align-content: space-between;
27
+ }
28
+
29
+ .step:before {
30
+ width: 100%;
31
+ position: absolute;
32
+ border: 1px solid cm_grey_500;
33
+ display: block;
34
+ z-index: 2;
35
+ left: -50%;
36
+ bottom: 17px;
37
+ content: '';
38
+ transition: border 0.5s linear;
39
+ }
40
+ .step:after {
41
+ width: 50%;
42
+ position: absolute;
43
+ border: 1px solid cm_grey_500;
44
+ display: block;
45
+ z-index: 1;
46
+ left: 50%;
47
+ bottom: 17px;
48
+ content: '';
49
+ transition: border 0.5s linear;
50
+ }
51
+
52
+ .step:first-child:before {
53
+ display: none;
54
+ }
55
+
56
+ .step:last-child:after {
57
+ display: none;
58
+ }
59
+
60
+ .step.done:after, .step.current:after {
61
+ content: '';
62
+ width: 50%;
63
+ border: 1px solid cm_primary_blue;
64
+ bottom: 17px;
65
+ left: 50%;
66
+ z-index: 2;
67
+ position: absolute;
68
+ }
69
+ .step.done:before, .step.current:before {
70
+ content: '';
71
+ width: 50%;
72
+ border: 1px solid cm_primary_blue;
73
+ bottom: 17px;
74
+ left: 0px;
75
+ z-index: 2;
76
+ position: absolute;
77
+ }
78
+
79
+ .dot {
80
+ background-color: cm_grey_500;
81
+ height: 10px;
82
+ width: 10px;
83
+ -webkit-border-radius: 10px;
84
+ border-radius: 10px;
85
+ display: inline-block;
86
+ position: relative;
87
+ z-index: 2;
88
+ margin-left: 3px;
89
+ margin-top: 3px;
90
+ border: 1px solid cm_grey_500;
91
+ transition: background-color 0.5s linear;
92
+ }
93
+
94
+ .dot::before {
95
+ content: '';
96
+ position: absolute;
97
+ top: -1px;
98
+ left: -1px;
99
+ width: 10px;
100
+ height: 10px;
101
+ -webkit-transform: scale(.75);
102
+ -ms-transform: scale(.75);
103
+ transform: scale(.75);
104
+ -webkit-border-radius: 10px;
105
+ border-radius: 10px;
106
+ }
107
+
108
+ .step.done .dot, .step.current .dot {
109
+ border-color: cm_primary_blue;
110
+ background-color: cm_primary_blue;
111
+ }
112
+
113
+ .outerDot {
114
+ background-color: cm_grey_200;
115
+ height: 18px;
116
+ width: 18px;
117
+ -webkit-border-radius: 18px;
118
+ border-radius: 18px;
119
+ display: inline-block;
120
+ position: relative;
121
+ z-index: 12;
122
+ margin: 0px auto;
123
+ border: 8px solid white;
124
+ transition: background-color 0.5s linear;
125
+ }
126
+
127
+ .step.done .outerDot, .step.current .outerDot {
128
+ background-color: cm_blue_200;
129
+ }
130
+
131
+ .label {
132
+ font-size: 12px;
133
+ font-weight: 400;
134
+ display: block;
135
+ text-align: center;
136
+ flex: 0 0 100%;
137
+ position: relative;
138
+ min-height: 32px;
139
+ }
140
+
141
+ .step.current .label {
142
+ font-weight: bold;
143
+ color: cm_grey_700;
144
+ }
145
+
146
+ .title {
147
+ position: absolute;
148
+ bottom: 0;
149
+ width: 100%;
150
+ }
@@ -0,0 +1,28 @@
1
+ export default {
2
+ props: {
3
+ steps: [{
4
+ title: 'General Informations',
5
+ done: true
6
+ }, {
7
+ title: 'Translations',
8
+ done: true
9
+ }, {
10
+ title: 'Assign populations',
11
+ done: false,
12
+ current: true
13
+ }, {
14
+ title: 'Add courses',
15
+ done: false
16
+ }, {
17
+ title: 'Cours settings',
18
+ done: false
19
+ }, {
20
+ title: 'Rewards',
21
+ done: false
22
+ }, {
23
+ title: 'Publish settings',
24
+ done: false
25
+ }]
26
+ }
27
+ };
28
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/wizard-steps/test/fixtures/default.js"],"names":["props","steps","title","done","current"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,KAAK,EAAE,sBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACED,MAAAA,KAAK,EAAE,cADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACED,MAAAA,KAAK,EAAE,oBADT;AAEEC,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KATK,EAcL;AACEF,MAAAA,KAAK,EAAE,aADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAdK,EAkBL;AACED,MAAAA,KAAK,EAAE,gBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAlBK,EAsBL;AACED,MAAAA,KAAK,EAAE,SADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAtBK,EA0BL;AACED,MAAAA,KAAK,EAAE,kBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KA1BK;AADF;AADM,CAAf","sourcesContent":["export default {\n props: {\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: false,\n current: true\n },\n {\n title: 'Add courses',\n done: false\n },\n {\n title: 'Cours settings',\n done: false\n },\n {\n title: 'Rewards',\n done: false\n },\n {\n title: 'Publish settings',\n done: false\n }\n ]\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,28 @@
1
+ export default {
2
+ props: {
3
+ steps: [{
4
+ title: 'General Informations',
5
+ done: false,
6
+ current: true
7
+ }, {
8
+ title: 'Translations',
9
+ done: false
10
+ }, {
11
+ title: 'Assign populations',
12
+ done: false
13
+ }, {
14
+ title: 'Add courses',
15
+ done: false
16
+ }, {
17
+ title: 'Cours settings',
18
+ done: false
19
+ }, {
20
+ title: 'Rewards',
21
+ done: false
22
+ }, {
23
+ title: 'Publish settings',
24
+ done: false
25
+ }]
26
+ }
27
+ };
28
+ //# sourceMappingURL=first-step.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/wizard-steps/test/fixtures/first-step.js"],"names":["props","steps","title","done","current"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,KAAK,EAAE,sBADT;AAEEC,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEF,MAAAA,KAAK,EAAE,cADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACED,MAAAA,KAAK,EAAE,oBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACED,MAAAA,KAAK,EAAE,aADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAdK,EAkBL;AACED,MAAAA,KAAK,EAAE,gBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAlBK,EAsBL;AACED,MAAAA,KAAK,EAAE,SADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAtBK,EA0BL;AACED,MAAAA,KAAK,EAAE,kBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KA1BK;AADF;AADM,CAAf","sourcesContent":["export default {\n props: {\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n },\n {\n title: 'Cours settings',\n done: false\n },\n {\n title: 'Rewards',\n done: false\n },\n {\n title: 'Publish settings',\n done: false\n }\n ]\n }\n};\n"],"file":"first-step.js"}
@@ -0,0 +1,28 @@
1
+ export default {
2
+ props: {
3
+ steps: [{
4
+ title: 'General Informations',
5
+ done: true
6
+ }, {
7
+ title: 'Translations',
8
+ done: true
9
+ }, {
10
+ title: 'Assign populations',
11
+ done: true
12
+ }, {
13
+ title: 'Add courses',
14
+ done: true
15
+ }, {
16
+ title: 'Cours settings',
17
+ done: true
18
+ }, {
19
+ title: 'Rewards',
20
+ done: true
21
+ }, {
22
+ title: 'Publish settings',
23
+ done: false,
24
+ current: true
25
+ }]
26
+ }
27
+ };
28
+ //# sourceMappingURL=last-step.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/wizard-steps/test/fixtures/last-step.js"],"names":["props","steps","title","done","current"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,KAAK,EAAE,sBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACED,MAAAA,KAAK,EAAE,cADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACED,MAAAA,KAAK,EAAE,oBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACED,MAAAA,KAAK,EAAE,aADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAbK,EAiBL;AACED,MAAAA,KAAK,EAAE,gBADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KAjBK,EAqBL;AACED,MAAAA,KAAK,EAAE,SADT;AAEEC,MAAAA,IAAI,EAAE;AAFR,KArBK,EAyBL;AACED,MAAAA,KAAK,EAAE,kBADT;AAEEC,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAzBK;AADF;AADM,CAAf","sourcesContent":["export default {\n props: {\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Add courses',\n done: true\n },\n {\n title: 'Cours settings',\n done: true\n },\n {\n title: 'Rewards',\n done: true\n },\n {\n title: 'Publish settings',\n done: false,\n current: true\n }\n ]\n }\n};\n"],"file":"last-step.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomWizardSteps from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureFirstStep from './fixtures/first-step';
7
+ import fixtureLastStep from './fixtures/last-step';
8
+ test('Atom › AtomWizardSteps > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(AtomWizardSteps.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Atom.AtomWizardSteps.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Atom › AtomWizardSteps › Default › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureDefault);
15
+ test('Atom › AtomWizardSteps › FirstStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureFirstStep);
16
+ test('Atom › AtomWizardSteps › LastStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureLastStep);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/wizard-steps/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomWizardSteps","fixtureDefault","fixtureFirstStep","fixtureLastStep","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,eAAP,MAA4B,IAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AAEAN,IAAI,CAAC,sDAAD,EAAyDO,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,eAAe,CAACM,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGC,cAAjG,CAAJ;AACAJ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGE,gBAAnG,CAAJ;AACAL,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGG,eAAlG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomWizardSteps from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFirstStep from './fixtures/first-step';\nimport fixtureLastStep from './fixtures/last-step';\n\ntest('Atom › AtomWizardSteps > should have valid propTypes', t => {\n t.pass();\n forEach(AtomWizardSteps.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomWizardSteps.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomWizardSteps › Default › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureDefault);\ntest('Atom › AtomWizardSteps › FirstStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureFirstStep);\ntest('Atom › AtomWizardSteps › LastStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureLastStep);\n"],"file":"fixtures.js"}
@@ -26,7 +26,7 @@ const AnimationAdapter = ({
26
26
  name,
27
27
  children
28
28
  }) => {
29
- return React.Children.map(children, child => /*#__PURE__*/React.cloneElement(child, {
29
+ return React.Children.map(children, child => React.cloneElement(child, {
30
30
  animated,
31
31
  onAnimationEnd: () => onAnimationEnd(name)
32
32
  }));
@@ -47,7 +47,7 @@ const walker = (type, handler) => children => {
47
47
  if (_isNil(child) || _isString(child)) return child;
48
48
  const newChild = child.type === type ? handler(child) : child;
49
49
  if (React.Children.count(newChild.props.children) === 0) return newChild;
50
- return /*#__PURE__*/React.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));
50
+ return React.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));
51
51
  });
52
52
  };
53
53
 
@@ -136,7 +136,7 @@ class AnimationScheduler extends React.Component {
136
136
  onAnimationEnd = _noop,
137
137
  after
138
138
  } = child.props;
139
- return /*#__PURE__*/React.cloneElement(child, {
139
+ return React.cloneElement(child, {
140
140
  animated: parentAnimated ? this.isAnimated(after) || animated : animated,
141
141
  onAnimationEnd: name => {
142
142
  this.handlerAnimationEnd(name);