@coorpacademy/components 10.0.49-alpha.1 → 10.0.49-alpha.5

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 (881) hide show
  1. package/es/atom/autocomplete/test/fixtures/error.js +1 -1
  2. package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
  3. package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
  4. package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  5. package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
  6. package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  7. package/es/atom/clue/index.js.map +1 -1
  8. package/es/atom/cta/test/fixtures/certification.js +1 -1
  9. package/es/atom/cta/test/fixtures/certification.js.map +1 -1
  10. package/es/atom/cta/test/fixtures/disabled.js +1 -1
  11. package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
  12. package/es/atom/cta/test/fixtures/light-small.js +1 -1
  13. package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
  14. package/es/atom/cta/test/fixtures/light.js +1 -1
  15. package/es/atom/cta/test/fixtures/light.js.map +1 -1
  16. package/es/atom/cta/test/fixtures/logout.js +1 -1
  17. package/es/atom/cta/test/fixtures/logout.js.map +1 -1
  18. package/es/atom/cta/test/fixtures/primary-small.js +1 -1
  19. package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
  20. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  21. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  22. package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  23. package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  24. package/es/atom/cta/test/fixtures/rectangular.js +1 -1
  25. package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
  26. package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
  27. package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  28. package/es/atom/cta/test/fixtures/secondary.js +1 -1
  29. package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
  30. package/es/atom/drag-and-drop/index.js +1 -1
  31. package/es/atom/drag-and-drop/index.js.map +1 -1
  32. package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  33. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  34. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  35. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  36. package/es/atom/image-upload/index.js +1 -1
  37. package/es/atom/image-upload/index.js.map +1 -1
  38. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  39. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  40. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  41. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  42. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  43. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  44. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  45. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  46. package/es/atom/image-upload/test/fixtures/email.js +1 -1
  47. package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
  48. package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
  49. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  50. package/es/atom/image-upload/test/fixtures/modified.js +1 -1
  51. package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
  52. package/es/atom/input-checkbox/index.js +5 -2
  53. package/es/atom/input-checkbox/index.js.map +1 -1
  54. package/es/atom/input-checkbox/style.css +32 -0
  55. package/es/atom/input-html/index.js.map +1 -1
  56. package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
  57. package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  58. package/es/atom/link/index.js +3 -2
  59. package/es/atom/link/index.js.map +1 -1
  60. package/es/atom/promo-code/index.js.map +1 -1
  61. package/es/atom/provider/index.js.map +1 -1
  62. package/es/atom/provider/test/index.js +1 -1
  63. package/es/atom/provider/test/index.js.map +1 -1
  64. package/es/atom/range/index.js +1 -1
  65. package/es/atom/range/index.js.map +1 -1
  66. package/es/atom/range/test/fixtures/multi.js +1 -1
  67. package/es/atom/range/test/fixtures/multi.js.map +1 -1
  68. package/es/atom/range/test/index.js +9 -9
  69. package/es/atom/range/test/index.js.map +1 -1
  70. package/es/atom/video-upload/index.js +1 -1
  71. package/es/atom/video-upload/index.js.map +1 -1
  72. package/es/atom/video-upload/test/fixtures/loading.js +1 -1
  73. package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
  74. package/es/atom/video-upload/test/fixtures/modified.js +1 -1
  75. package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
  76. package/es/hoc/animation-scheduler/index.js +3 -3
  77. package/es/hoc/animation-scheduler/index.js.map +1 -1
  78. package/es/hoc/swapper/index.js +4 -2
  79. package/es/hoc/swapper/index.js.map +1 -1
  80. package/es/hoc/transition/index.js +1 -1
  81. package/es/hoc/transition/index.js.map +1 -1
  82. package/es/molecule/add-to-my-list/index.js +1 -1
  83. package/es/molecule/add-to-my-list/index.js.map +1 -1
  84. package/es/molecule/answer/index.js +3 -2
  85. package/es/molecule/answer/index.js.map +1 -1
  86. package/es/molecule/answer/test/fixtures/audio.js +1 -1
  87. package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
  88. package/es/molecule/answer/test/fixtures/default.js +1 -1
  89. package/es/molecule/answer/test/fixtures/default.js.map +1 -1
  90. package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
  91. package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  92. package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  93. package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  94. package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  95. package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  96. package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  97. package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  98. package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  99. package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  100. package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  101. package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  102. package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
  103. package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  104. package/es/molecule/answer/test/fixtures/qcm.js +1 -1
  105. package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
  106. package/es/molecule/answer/test/fixtures/range.js +1 -1
  107. package/es/molecule/answer/test/fixtures/range.js.map +1 -1
  108. package/es/molecule/answer/test/fixtures/template.js +1 -1
  109. package/es/molecule/answer/test/fixtures/template.js.map +1 -1
  110. package/es/molecule/brand-form-group/index.js +18 -18
  111. package/es/molecule/brand-form-group/index.js.map +1 -1
  112. package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  113. package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  114. package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  115. package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  116. package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  117. package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  118. package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  119. package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  120. package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
  121. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  122. package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  123. package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  124. package/es/molecule/card/index.js +1 -1
  125. package/es/molecule/card/index.js.map +1 -1
  126. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  127. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  128. package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
  129. package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  130. package/es/molecule/card/test/fixtures/disabled.js +1 -1
  131. package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
  132. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  133. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  134. package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  135. package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  136. package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
  137. package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  138. package/es/molecule/card-with-button/index.js.map +1 -1
  139. package/es/molecule/coorp-manager-roles/index.js +1 -1
  140. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  141. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  142. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  143. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  144. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  145. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  146. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  147. package/es/molecule/dashboard/cards-list/test/index.js +1 -1
  148. package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
  149. package/es/molecule/dashboard/news-list/index.js +1 -1
  150. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  151. package/es/molecule/dashboard/start-battle/index.js +1 -1
  152. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  153. package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  154. package/es/molecule/drag-and-drop/index.js +1 -1
  155. package/es/molecule/drag-and-drop/index.js.map +1 -1
  156. package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  157. package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  158. package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  159. package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  160. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  161. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  162. package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  163. package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  164. package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  165. package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  166. package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  167. package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  168. package/es/molecule/drag-and-drop/test/on-click.js +2 -2
  169. package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
  170. package/es/molecule/drag-and-drop/upload-report.js +1 -1
  171. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  172. package/es/molecule/feedback/index.js +1 -1
  173. package/es/molecule/feedback/index.js.map +1 -1
  174. package/es/molecule/filters/test/fixtures/default.js +4 -4
  175. package/es/molecule/filters/test/fixtures/default.js.map +1 -1
  176. package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
  177. package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  178. package/es/molecule/filters/test/fixtures/one.js +2 -2
  179. package/es/molecule/filters/test/fixtures/one.js.map +1 -1
  180. package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  181. package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  182. package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
  183. package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  184. package/es/molecule/filters/test/fixtures/three.js +3 -3
  185. package/es/molecule/filters/test/fixtures/three.js.map +1 -1
  186. package/es/molecule/filters/test/fixtures/two.js +3 -3
  187. package/es/molecule/filters/test/fixtures/two.js.map +1 -1
  188. package/es/molecule/filters/test/fixtures/zero.js +1 -1
  189. package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
  190. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  191. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  192. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  193. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  194. package/es/molecule/hero/test/fixtures/arabic.js +1 -1
  195. package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
  196. package/es/molecule/hero/test/fixtures/hero.js +1 -1
  197. package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
  198. package/es/molecule/news/test/fixtures/long-description.js +1 -1
  199. package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
  200. package/es/molecule/news/test/fixtures/long-title.js +1 -1
  201. package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
  202. package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
  203. package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  204. package/es/molecule/news/test/fixtures/small-title.js +1 -1
  205. package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
  206. package/es/molecule/popin/index.js +1 -1
  207. package/es/molecule/popin/index.js.map +1 -1
  208. package/es/molecule/progress-bar/index.js +1 -1
  209. package/es/molecule/progress-bar/index.js.map +1 -1
  210. package/es/molecule/questions/drop-down/index.js +1 -1
  211. package/es/molecule/questions/drop-down/index.js.map +1 -1
  212. package/es/molecule/questions/question-range/index.js +3 -2
  213. package/es/molecule/questions/question-range/index.js.map +1 -1
  214. package/es/molecule/questions/template/index.js +2 -2
  215. package/es/molecule/questions/template/index.js.map +1 -1
  216. package/es/molecule/questions/template/test/index.js +1 -1
  217. package/es/molecule/questions/template/test/index.js.map +1 -1
  218. package/es/molecule/quick-access-card/index.js.map +1 -1
  219. package/es/molecule/resource-player/index.js +2 -1
  220. package/es/molecule/resource-player/index.js.map +1 -1
  221. package/es/molecule/select-multiple/index.js +1 -1
  222. package/es/molecule/select-multiple/index.js.map +1 -1
  223. package/es/molecule/select-multiple/test/index.js +3 -3
  224. package/es/molecule/select-multiple/test/index.js.map +1 -1
  225. package/es/molecule/setup-section/index.js +1 -1
  226. package/es/molecule/setup-section/index.js.map +1 -1
  227. package/es/molecule/setup-section/test/fixtures/first.js +1 -1
  228. package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
  229. package/es/molecule/setup-slide/index.js +8 -8
  230. package/es/molecule/setup-slide/index.js.map +1 -1
  231. package/es/molecule/share/index.js +1 -1
  232. package/es/molecule/share/index.js.map +1 -1
  233. package/es/molecule/video-iframe/index.js +1 -1
  234. package/es/molecule/video-iframe/index.js.map +1 -1
  235. package/es/molecule/video-player/index.js +3 -1
  236. package/es/molecule/video-player/index.js.map +1 -1
  237. package/es/molecule/video-player/jwplayer.js +2 -2
  238. package/es/molecule/video-player/jwplayer.js.map +1 -1
  239. package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
  240. package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  241. package/es/molecule/video-player/vimeo.js +1 -1
  242. package/es/molecule/video-player/vimeo.js.map +1 -1
  243. package/es/organism/accordion/coorp-manager/index.js +1 -1
  244. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  245. package/es/organism/accordion/toggler/index.js +1 -1
  246. package/es/organism/accordion/toggler/index.js.map +1 -1
  247. package/es/organism/accordion/toggler/test/render.js +2 -2
  248. package/es/organism/accordion/toggler/test/render.js.map +1 -1
  249. package/es/organism/brand-form/test/fixtures/sso.js +3 -3
  250. package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
  251. package/es/organism/discussion/test/fixtures/default.js +1 -1
  252. package/es/organism/discussion/test/fixtures/default.js.map +1 -1
  253. package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
  254. package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  255. package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
  256. package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  257. package/es/organism/get-the-app/index.js +2 -2
  258. package/es/organism/get-the-app/index.js.map +1 -1
  259. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  260. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  261. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  262. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  263. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  264. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  265. package/es/organism/popin/test/fixtures/default.js.map +1 -1
  266. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  267. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  268. package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  269. package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  270. package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  271. package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  272. package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
  273. package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  274. package/es/organism/settings/index.js +3 -2
  275. package/es/organism/settings/index.js.map +1 -1
  276. package/es/organism/sidebar/index.js +11 -10
  277. package/es/organism/sidebar/index.js.map +1 -1
  278. package/es/organism/user-preferences/index.js +3 -2
  279. package/es/organism/user-preferences/index.js.map +1 -1
  280. package/es/template/activity/index.js +1 -1
  281. package/es/template/activity/index.js.map +1 -1
  282. package/es/template/activity/test/progression-item-test.js +1 -1
  283. package/es/template/activity/test/progression-item-test.js.map +1 -1
  284. package/es/template/app-player/player/slides/footer/index.js +1 -1
  285. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  286. package/es/template/app-player/player/slides/index.js +14 -11
  287. package/es/template/app-player/player/slides/index.js.map +1 -1
  288. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  289. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  290. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  291. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  292. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  293. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  294. package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  295. package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  296. package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  297. package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  298. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  299. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  300. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  301. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  302. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  303. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  304. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  305. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  306. package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
  307. package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  308. package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
  309. package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  310. package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  311. package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  312. package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  313. package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  314. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  315. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  316. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  317. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  318. package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
  319. package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  320. package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  321. package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  322. package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  323. package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  324. package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  325. package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  326. package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  327. package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  328. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  329. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  330. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  331. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  332. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  333. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  334. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  335. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  336. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  337. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  338. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  339. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  340. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  341. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  342. package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  343. package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  344. package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
  345. package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  346. package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
  347. package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  348. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  349. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  350. package/es/template/app-player/player/test/fixtures/background.js +1 -1
  351. package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
  352. package/es/template/app-player/popin-correction/index.js +3 -2
  353. package/es/template/app-player/popin-correction/index.js.map +1 -1
  354. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  355. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  356. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  357. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  358. package/es/template/app-player/popin-end/summary.js +11 -7
  359. package/es/template/app-player/popin-end/summary.js.map +1 -1
  360. package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  361. package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  362. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  363. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  364. package/es/template/app-player/popin-header/index.js +4 -3
  365. package/es/template/app-player/popin-header/index.js.map +1 -1
  366. package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
  367. package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  368. package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  369. package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  370. package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  371. package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  372. package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
  373. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  374. package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  375. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  376. package/es/template/back-office/brand-update/index.js +6 -6
  377. package/es/template/back-office/brand-update/index.js.map +1 -1
  378. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  379. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  380. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  381. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  382. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  383. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  384. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  385. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  386. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  387. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  388. package/es/template/cockpit/jw-uploader/index.js +1 -1
  389. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  390. package/es/template/common/dashboard/index.js +1 -1
  391. package/es/template/common/dashboard/index.js.map +1 -1
  392. package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  393. package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  394. package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  395. package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  396. package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  397. package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  398. package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
  399. package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  400. package/es/template/common/discipline/test/fixtures/default.js +2 -2
  401. package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
  402. package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  403. package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  404. package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  405. package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  406. package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
  407. package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  408. package/es/template/common/discipline/test/fixtures/share.js +1 -1
  409. package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
  410. package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
  411. package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  412. package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  413. package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  414. package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  415. package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  416. package/es/util/shallow-compare.js.map +1 -1
  417. package/es/util/test/navigation.js +4 -3
  418. package/es/util/test/navigation.js.map +1 -1
  419. package/lib/atom/autocomplete/index.js +2 -2
  420. package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
  421. package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
  422. package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
  423. package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  424. package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
  425. package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  426. package/lib/atom/clue/index.js.map +1 -1
  427. package/lib/atom/cta/test/fixtures/certification.js +1 -1
  428. package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
  429. package/lib/atom/cta/test/fixtures/disabled.js +1 -1
  430. package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
  431. package/lib/atom/cta/test/fixtures/light-small.js +1 -1
  432. package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
  433. package/lib/atom/cta/test/fixtures/light.js +1 -1
  434. package/lib/atom/cta/test/fixtures/light.js.map +1 -1
  435. package/lib/atom/cta/test/fixtures/logout.js +1 -1
  436. package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
  437. package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
  438. package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
  439. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  440. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  441. package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  442. package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  443. package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
  444. package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
  445. package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
  446. package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  447. package/lib/atom/cta/test/fixtures/secondary.js +1 -1
  448. package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
  449. package/lib/atom/drag-and-drop/index.js +1 -1
  450. package/lib/atom/drag-and-drop/index.js.map +1 -1
  451. package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  452. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  453. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  454. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  455. package/lib/atom/image-upload/index.js +3 -3
  456. package/lib/atom/image-upload/index.js.map +1 -1
  457. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  458. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  459. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  460. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  461. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  462. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  463. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  464. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  465. package/lib/atom/image-upload/test/fixtures/email.js +1 -1
  466. package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
  467. package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
  468. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  469. package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
  470. package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
  471. package/lib/atom/input-checkbox/index.js +8 -5
  472. package/lib/atom/input-checkbox/index.js.map +1 -1
  473. package/lib/atom/input-checkbox/style.css +32 -0
  474. package/lib/atom/input-color/index.js +2 -2
  475. package/lib/atom/input-doublestep/index.js +2 -2
  476. package/lib/atom/input-html/index.js.map +1 -1
  477. package/lib/atom/input-switch/index.js +2 -2
  478. package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
  479. package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  480. package/lib/atom/input-text/index.js +2 -2
  481. package/lib/atom/input-textarea/index.js +2 -2
  482. package/lib/atom/link/index.js +4 -2
  483. package/lib/atom/link/index.js.map +1 -1
  484. package/lib/atom/promo-code/index.js.map +1 -1
  485. package/lib/atom/provider/index.js.map +1 -1
  486. package/lib/atom/provider/test/index.js +1 -1
  487. package/lib/atom/provider/test/index.js.map +1 -1
  488. package/lib/atom/range/index.js +1 -1
  489. package/lib/atom/range/index.js.map +1 -1
  490. package/lib/atom/range/test/fixtures/multi.js +1 -1
  491. package/lib/atom/range/test/fixtures/multi.js.map +1 -1
  492. package/lib/atom/range/test/index.js +9 -9
  493. package/lib/atom/range/test/index.js.map +1 -1
  494. package/lib/atom/select/index.js +2 -2
  495. package/lib/atom/tab/index.js +2 -2
  496. package/lib/atom/video-upload/index.js +1 -1
  497. package/lib/atom/video-upload/index.js.map +1 -1
  498. package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
  499. package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
  500. package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
  501. package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
  502. package/lib/hoc/animation/index.js +1 -1
  503. package/lib/hoc/animation/test/on-mount.js +2 -2
  504. package/lib/hoc/animation-scheduler/index.js +4 -4
  505. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  506. package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
  507. package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
  508. package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
  509. package/lib/hoc/swapper/index.js +5 -3
  510. package/lib/hoc/swapper/index.js.map +1 -1
  511. package/lib/hoc/swapper/test/on-mount.js +2 -2
  512. package/lib/hoc/transition/index.js +3 -3
  513. package/lib/hoc/transition/index.js.map +1 -1
  514. package/lib/molecule/add-to-my-list/index.js +4 -4
  515. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  516. package/lib/molecule/answer/index.js +5 -3
  517. package/lib/molecule/answer/index.js.map +1 -1
  518. package/lib/molecule/answer/test/fixtures/audio.js +1 -1
  519. package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
  520. package/lib/molecule/answer/test/fixtures/default.js +1 -1
  521. package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
  522. package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
  523. package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  524. package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  525. package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  526. package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  527. package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  528. package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  529. package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  530. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  531. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  532. package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  533. package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  534. package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
  535. package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  536. package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
  537. package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
  538. package/lib/molecule/answer/test/fixtures/range.js +1 -1
  539. package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
  540. package/lib/molecule/answer/test/fixtures/template.js +1 -1
  541. package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
  542. package/lib/molecule/brand-create-form/index.js +2 -2
  543. package/lib/molecule/brand-form-group/index.js +18 -18
  544. package/lib/molecule/brand-form-group/index.js.map +1 -1
  545. package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  546. package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  547. package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  548. package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  549. package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  550. package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  551. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  552. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  553. package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
  554. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  555. package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  556. package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  557. package/lib/molecule/card/index.js +3 -3
  558. package/lib/molecule/card/index.js.map +1 -1
  559. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  560. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  561. package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
  562. package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  563. package/lib/molecule/card/test/fixtures/disabled.js +1 -1
  564. package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
  565. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  566. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  567. package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  568. package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  569. package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
  570. package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  571. package/lib/molecule/card-with-button/index.js.map +1 -1
  572. package/lib/molecule/coorp-manager-roles/index.js +1 -1
  573. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  574. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  575. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  576. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  577. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  578. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  579. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  580. package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
  581. package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
  582. package/lib/molecule/dashboard/news-list/index.js +1 -1
  583. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  584. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  585. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  586. package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  587. package/lib/molecule/drag-and-drop/index.js +3 -3
  588. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  589. package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  590. package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  591. package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  592. package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  593. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  594. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  595. package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  596. package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  597. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  598. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  599. package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  600. package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  601. package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
  602. package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
  603. package/lib/molecule/drag-and-drop/upload-report.js +3 -3
  604. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  605. package/lib/molecule/feedback/index.js +3 -3
  606. package/lib/molecule/feedback/index.js.map +1 -1
  607. package/lib/molecule/filters/test/fixtures/default.js +4 -4
  608. package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
  609. package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
  610. package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  611. package/lib/molecule/filters/test/fixtures/one.js +2 -2
  612. package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
  613. package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  614. package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  615. package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
  616. package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  617. package/lib/molecule/filters/test/fixtures/three.js +3 -3
  618. package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
  619. package/lib/molecule/filters/test/fixtures/two.js +3 -3
  620. package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
  621. package/lib/molecule/filters/test/fixtures/zero.js +1 -1
  622. package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
  623. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  624. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  625. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  626. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  627. package/lib/molecule/hero/index.js +2 -2
  628. package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
  629. package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
  630. package/lib/molecule/hero/test/fixtures/hero.js +1 -1
  631. package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
  632. package/lib/molecule/news/test/fixtures/long-description.js +1 -1
  633. package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
  634. package/lib/molecule/news/test/fixtures/long-title.js +1 -1
  635. package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
  636. package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
  637. package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  638. package/lib/molecule/news/test/fixtures/small-title.js +1 -1
  639. package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
  640. package/lib/molecule/popin/index.js +3 -3
  641. package/lib/molecule/popin/index.js.map +1 -1
  642. package/lib/molecule/progress-bar/index.js +1 -1
  643. package/lib/molecule/progress-bar/index.js.map +1 -1
  644. package/lib/molecule/questions/drop-down/index.js +3 -3
  645. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  646. package/lib/molecule/questions/free-text/index.js +2 -2
  647. package/lib/molecule/questions/question-range/index.js +4 -2
  648. package/lib/molecule/questions/question-range/index.js.map +1 -1
  649. package/lib/molecule/questions/template/index.js +2 -2
  650. package/lib/molecule/questions/template/index.js.map +1 -1
  651. package/lib/molecule/questions/template/test/index.js +1 -1
  652. package/lib/molecule/questions/template/test/index.js.map +1 -1
  653. package/lib/molecule/quick-access-card/index.js.map +1 -1
  654. package/lib/molecule/resource-player/index.js +4 -2
  655. package/lib/molecule/resource-player/index.js.map +1 -1
  656. package/lib/molecule/scope-tabs/index.js +2 -2
  657. package/lib/molecule/search/index.js +2 -2
  658. package/lib/molecule/search-form/index.js +2 -2
  659. package/lib/molecule/select-multiple/index.js +1 -1
  660. package/lib/molecule/select-multiple/index.js.map +1 -1
  661. package/lib/molecule/select-multiple/test/index.js +3 -3
  662. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  663. package/lib/molecule/setup-section/index.js +1 -1
  664. package/lib/molecule/setup-section/index.js.map +1 -1
  665. package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
  666. package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
  667. package/lib/molecule/setup-sections/index.js +2 -2
  668. package/lib/molecule/setup-slide/index.js +8 -8
  669. package/lib/molecule/setup-slide/index.js.map +1 -1
  670. package/lib/molecule/share/index.js +4 -4
  671. package/lib/molecule/share/index.js.map +1 -1
  672. package/lib/molecule/titled-checkbox/index.js +2 -2
  673. package/lib/molecule/video-iframe/index.js +1 -1
  674. package/lib/molecule/video-iframe/index.js.map +1 -1
  675. package/lib/molecule/video-player/index.js +3 -1
  676. package/lib/molecule/video-player/index.js.map +1 -1
  677. package/lib/molecule/video-player/jwplayer.js +2 -2
  678. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  679. package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
  680. package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  681. package/lib/molecule/video-player/vimeo.js +1 -1
  682. package/lib/molecule/video-player/vimeo.js.map +1 -1
  683. package/lib/organism/accordion/container/index.js +2 -2
  684. package/lib/organism/accordion/coorp-manager/index.js +3 -3
  685. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  686. package/lib/organism/accordion/toggler/index.js +1 -1
  687. package/lib/organism/accordion/toggler/index.js.map +1 -1
  688. package/lib/organism/accordion/toggler/test/render.js +2 -2
  689. package/lib/organism/accordion/toggler/test/render.js.map +1 -1
  690. package/lib/organism/brand-form/index.js +2 -2
  691. package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
  692. package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
  693. package/lib/organism/discussion/test/fixtures/default.js +1 -1
  694. package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
  695. package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
  696. package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  697. package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
  698. package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  699. package/lib/organism/get-the-app/index.js +2 -2
  700. package/lib/organism/get-the-app/index.js.map +1 -1
  701. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  702. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  703. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  704. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  705. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  706. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  707. package/lib/organism/popin/test/fixtures/default.js.map +1 -1
  708. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  709. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  710. package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  711. package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  712. package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  713. package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  714. package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
  715. package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  716. package/lib/organism/settings/index.js +4 -2
  717. package/lib/organism/settings/index.js.map +1 -1
  718. package/lib/organism/sidebar/index.js +15 -13
  719. package/lib/organism/sidebar/index.js.map +1 -1
  720. package/lib/organism/user-preferences/index.js +4 -2
  721. package/lib/organism/user-preferences/index.js.map +1 -1
  722. package/lib/template/activity/index.js +1 -1
  723. package/lib/template/activity/index.js.map +1 -1
  724. package/lib/template/activity/progression-item.js +2 -2
  725. package/lib/template/activity/test/progression-item-test.js +1 -1
  726. package/lib/template/activity/test/progression-item-test.js.map +1 -1
  727. package/lib/template/app-player/player/slides/footer/index.js +1 -1
  728. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  729. package/lib/template/app-player/player/slides/index.js +15 -11
  730. package/lib/template/app-player/player/slides/index.js.map +1 -1
  731. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  732. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  733. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  734. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  735. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  736. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  737. package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  738. package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  739. package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  740. package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  741. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  742. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  743. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  744. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  745. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  746. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  747. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  748. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  749. package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
  750. package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  751. package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
  752. package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  753. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  754. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  755. package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  756. package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  757. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  758. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  759. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  760. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  761. package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
  762. package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  763. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  764. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  765. package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  766. package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  767. package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  768. package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  769. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  770. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  771. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  772. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  773. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  774. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  775. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  776. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  777. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  778. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  779. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  780. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  781. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  782. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  783. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  784. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  785. package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  786. package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  787. package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
  788. package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  789. package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
  790. package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  791. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  792. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  793. package/lib/template/app-player/player/test/fixtures/background.js +1 -1
  794. package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
  795. package/lib/template/app-player/popin-correction/index.js +6 -4
  796. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  797. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  798. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  799. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  800. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  801. package/lib/template/app-player/popin-end/summary.js +12 -7
  802. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  803. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  804. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  805. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  806. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  807. package/lib/template/app-player/popin-header/index.js +7 -5
  808. package/lib/template/app-player/popin-header/index.js.map +1 -1
  809. package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
  810. package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  811. package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  812. package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  813. package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  814. package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  815. package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
  816. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  817. package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  818. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  819. package/lib/template/back-office/brand-update/index.js +6 -6
  820. package/lib/template/back-office/brand-update/index.js.map +1 -1
  821. package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
  822. package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
  823. package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
  824. package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
  825. package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
  826. package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
  827. package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
  828. package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
  829. package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
  830. package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
  831. package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
  832. package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
  833. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  834. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  835. package/lib/template/back-office/brand-update/test/fixtures/manageusers.js +2 -2
  836. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  837. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  838. package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
  839. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  840. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  841. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  842. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  843. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  844. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  845. package/lib/template/cockpit/jw-uploader/index.js +1 -1
  846. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  847. package/lib/template/common/dashboard/index.js +1 -1
  848. package/lib/template/common/dashboard/index.js.map +1 -1
  849. package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  850. package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  851. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  852. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  853. package/lib/template/common/discipline/index.js +2 -2
  854. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  855. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  856. package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
  857. package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  858. package/lib/template/common/discipline/test/fixtures/default.js +2 -2
  859. package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
  860. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  861. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  862. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  863. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  864. package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
  865. package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  866. package/lib/template/common/discipline/test/fixtures/share.js +1 -1
  867. package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
  868. package/lib/template/teams-dashboard/index.js +2 -2
  869. package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
  870. package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  871. package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  872. package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  873. package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  874. package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  875. package/lib/test/helpers/render-component.js +1 -1
  876. package/lib/util/external-content.js +1 -1
  877. package/lib/util/proptypes.js +1 -1
  878. package/lib/util/shallow-compare.js.map +1 -1
  879. package/lib/util/test/navigation.js +5 -3
  880. package/lib/util/test/navigation.js.map +1 -1
  881. package/package.json +2 -2
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Filled;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  error: true
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/autocomplete/test/fixtures/error.js"],"names":["Filled","props","error"],"mappings":";;AAAA,OAAOA,MAAP,MAAmB,UAAnB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,MAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import Filled from './filled';\n\nconst {props} = Filled;\n\nexport default {\n props: {\n ...props,\n error: true\n }\n};\n"],"file":"error.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/autocomplete/test/fixtures/error.js"],"names":["Filled","props","error"],"mappings":";;AAAA,OAAOA,MAAP,MAAmB,UAAnB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,MAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import Filled from './filled';\n\nconst {props} = Filled;\n\nexport default {\n props: {\n ...props,\n error: true\n }\n};\n"],"file":"error.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Default;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  title: 'Population',
10
10
  value: 'c',
11
11
  suggestions: [{
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/autocomplete/test/fixtures/filled.js"],"names":["Default","props","title","value","suggestions","name","onChange","e","target","console","log","onFetch","onClear","onSuggestionSelected","data","onBlur","selectedSuggestion"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,YAFJ;AAGHC,IAAAA,KAAK,EAAE,GAHJ;AAIHC,IAAAA,WAAW,EAAE,CACX;AACEC,MAAAA,IAAI,EAAE,GADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KADW,EAKX;AACEE,MAAAA,IAAI,EAAE,IADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KALW,EASX;AACEE,MAAAA,IAAI,EAAE,KADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KATW,EAaX;AACEE,MAAAA,IAAI,EAAE,SADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KAbW,CAJV;AAsBHG,IAAAA,QAAQ,EAAEC,CAAC,IAAI;AACb,YAAMJ,KAAK,GAAGI,CAAC,CAACC,MAAF,CAASL,KAAvB;AACAM,MAAAA,OAAO,CAACC,GAAR,CAAa,YAAWP,KAAM,EAA9B,EAAiCI,CAAjC;AACD,KAzBE;AA0BHI,IAAAA,OAAO,EAAEJ,CAAC,IAAI;AACZ,YAAM;AAACJ,QAAAA;AAAD,UAAUI,CAAhB;AACAE,MAAAA,OAAO,CAACC,GAAR,CAAa,WAAUP,KAAM,EAA7B;AACD,KA7BE;AA8BHS,IAAAA,OAAO,EAAEL,CAAC,IAAI;AACZE,MAAAA,OAAO,CAACC,GAAR,CAAY,SAAZ,EAAuBH,CAAvB;AACD,KAhCE;AAiCHM,IAAAA,oBAAoB,EAAEC,IAAI,IAAI;AAC5BL,MAAAA,OAAO,CAACC,GAAR,CAAY,sBAAZ,EAAoCI,IAApC;AACD,KAnCE;AAoCHC,IAAAA,MAAM,EAAE,CAACR,CAAD,EAAIS,kBAAJ,KAA2B;AACjCP,MAAAA,OAAO,CAACC,GAAR,CAAY,mBAAZ,EAAiCM,kBAAjC;AACD;AAtCE;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: {\n ...props,\n title: 'Population',\n value: 'c',\n suggestions: [\n {\n name: 'C',\n value: 1972\n },\n {\n name: 'C#',\n value: 2000\n },\n {\n name: 'C++',\n value: 1983\n },\n {\n name: 'Clojure',\n value: 2007\n }\n ],\n onChange: e => {\n const value = e.target.value;\n console.log(`onChange ${value}`, e);\n },\n onFetch: e => {\n const {value} = e;\n console.log(`onFetch ${value}`);\n },\n onClear: e => {\n console.log('onClear', e);\n },\n onSuggestionSelected: data => {\n console.log('onSuggestionSelected', data);\n },\n onBlur: (e, selectedSuggestion) => {\n console.log('onBlur > selected', selectedSuggestion);\n }\n }\n};\n"],"file":"filled.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/autocomplete/test/fixtures/filled.js"],"names":["Default","props","title","value","suggestions","name","onChange","e","target","console","log","onFetch","onClear","onSuggestionSelected","data","onBlur","selectedSuggestion"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,YAFJ;AAGHC,IAAAA,KAAK,EAAE,GAHJ;AAIHC,IAAAA,WAAW,EAAE,CACX;AACEC,MAAAA,IAAI,EAAE,GADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KADW,EAKX;AACEE,MAAAA,IAAI,EAAE,IADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KALW,EASX;AACEE,MAAAA,IAAI,EAAE,KADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KATW,EAaX;AACEE,MAAAA,IAAI,EAAE,SADR;AAEEF,MAAAA,KAAK,EAAE;AAFT,KAbW,CAJV;AAsBHG,IAAAA,QAAQ,EAAEC,CAAC,IAAI;AACb,YAAMJ,KAAK,GAAGI,CAAC,CAACC,MAAF,CAASL,KAAvB;AACAM,MAAAA,OAAO,CAACC,GAAR,CAAa,YAAWP,KAAM,EAA9B,EAAiCI,CAAjC;AACD,KAzBE;AA0BHI,IAAAA,OAAO,EAAEJ,CAAC,IAAI;AACZ,YAAM;AAACJ,QAAAA;AAAD,UAAUI,CAAhB;AACAE,MAAAA,OAAO,CAACC,GAAR,CAAa,WAAUP,KAAM,EAA7B;AACD,KA7BE;AA8BHS,IAAAA,OAAO,EAAEL,CAAC,IAAI;AACZE,MAAAA,OAAO,CAACC,GAAR,CAAY,SAAZ,EAAuBH,CAAvB;AACD,KAhCE;AAiCHM,IAAAA,oBAAoB,EAAEC,IAAI,IAAI;AAC5BL,MAAAA,OAAO,CAACC,GAAR,CAAY,sBAAZ,EAAoCI,IAApC;AACD,KAnCE;AAoCHC,IAAAA,MAAM,EAAE,CAACR,CAAD,EAAIS,kBAAJ,KAA2B;AACjCP,MAAAA,OAAO,CAACC,GAAR,CAAY,mBAAZ,EAAiCM,kBAAjC;AACD;AAtCE;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: {\n ...props,\n title: 'Population',\n value: 'c',\n suggestions: [\n {\n name: 'C',\n value: 1972\n },\n {\n name: 'C#',\n value: 2000\n },\n {\n name: 'C++',\n value: 1983\n },\n {\n name: 'Clojure',\n value: 2007\n }\n ],\n onChange: e => {\n const value = e.target.value;\n console.log(`onChange ${value}`, e);\n },\n onFetch: e => {\n const {value} = e;\n console.log(`onFetch ${value}`);\n },\n onClear: e => {\n console.log('onClear', e);\n },\n onSuggestionSelected: data => {\n console.log('onSuggestionSelected', data);\n },\n onBlur: (e, selectedSuggestion) => {\n console.log('onBlur > selected', selectedSuggestion);\n }\n }\n};\n"],"file":"filled.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Filled;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  modified: true
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/autocomplete/test/fixtures/modified.js"],"names":["Filled","props","modified"],"mappings":";;AAAA,OAAOA,MAAP,MAAmB,UAAnB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,MAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import Filled from './filled';\n\nconst {props} = Filled;\n\nexport default {\n props: {\n ...props,\n modified: true\n }\n};\n"],"file":"modified.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/autocomplete/test/fixtures/modified.js"],"names":["Filled","props","modified"],"mappings":";;AAAA,OAAOA,MAAP,MAAmB,UAAnB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,MAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import Filled from './filled';\n\nconst {props} = Filled;\n\nexport default {\n props: {\n ...props,\n modified: true\n }\n};\n"],"file":"modified.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/clue/index.js"],"names":["React","PropTypes","classnames","Provider","Loader","Cta","style","LoadedClue","text","clueText","__html","propTypes","string","Clue","Component","getDerivedStateFromProps","props","isLoading","constructor","context","state","handleClick","bind","e","stopPropagation","preventDefault","onClick","setState","render","starsDiff","skin","translate","primaryColor","inlineStyle","backgroundColor","starsToLoose","count","Math","abs","seeClueCta","wrapperClue","clueCard","flip","back","backContent","loading","stars","front","childContextTypes","number"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,SAAP,MAAsB,Y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A,SAAS,MAAvC;AAAwC,MAAA,KAAK,MAA7C;AAA8C,MAAA,OAAO,EAAE,KAAKlB;AAA5D,MAFF,CAFF,CADF,eAQE;AAAK,MAAA,SAAS,EAAEf,KAAK,CAACyC,KAAtB;AAA6B,MAAA,KAAK,EAAEd;AAApC,oBACE,oBAAC,UAAD;AAAY,MAAA,IAAI,EAAEzB;AAAlB,MADF,CARF,CADF,CADF;AAgBD;;AAhEgC;;gBAA7BK,I,kBAOkB;AACpBiB,EAAAA,IAAI,EAAE3B,QAAQ,CAAC6C,iBAAT,CAA2BlB,IADb;AAEpBC,EAAAA,SAAS,EAAE5B,QAAQ,CAAC6C,iBAAT,CAA2BjB;AAFlB,C;;AAPlBlB,I,CACGF,S,2CAAY;AACjBH,EAAAA,IAAI,EAAED,UAAU,CAACI,SAAX,CAAqBH,IADV;AAEjBkB,EAAAA,OAAO,EAAErB,GAAG,CAACM,SAAJ,CAAce,OAFN;AAGjBG,EAAAA,SAAS,EAAE5B,SAAS,CAACgD;AAHJ,C;AAkErB,eAAepC,IAAf","sourcesContent":["import React from 'react';\nimport {get, isEmpty, noop} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider from '../provider';\nimport Loader from '../loader';\nimport Cta from '../cta';\nimport style from './style.css';\n\nconst LoadedClue = ({text}) => {\n return (\n <div data-name=\"text\" className={style.clueText}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: text}}\n />\n </div>\n );\n};\n\nLoadedClue.propTypes = {\n text: PropTypes.string\n};\n\nclass Clue extends React.Component {\n static propTypes = {\n text: LoadedClue.propTypes.text,\n onClick: Cta.propTypes.onClick,\n starsDiff: PropTypes.number\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n };\n\n static getDerivedStateFromProps(props) {\n const {text} = props;\n const isLoading = isEmpty(text);\n\n if (isLoading) return null;\n return {isLoading};\n }\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n isLoading: false\n };\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {text, onClick = noop} = this.props;\n onClick(e);\n const isLoading = isEmpty(text);\n return this.setState({\n isLoading\n });\n }\n\n render() {\n const {text, starsDiff} = this.props;\n const {skin, translate} = this.context;\n const {isLoading} = this.state;\n const primaryColor = get('common.primary', skin);\n const inlineStyle = {backgroundColor: primaryColor};\n const starsToLoose = translate('clue_stars_to_loose', {count: Math.abs(starsDiff)});\n const seeClueCta = translate('See clue');\n\n return (\n <div data-name=\"clue\" className={style.wrapperClue}>\n <div className={classnames(style.clueCard, !isEmpty(text) && style.flip)}>\n <div className={style.back} style={inlineStyle}>\n {isLoading ? <Loader /> : null}\n <div className={classnames(style.backContent, isLoading && style.loading)}>\n <div className={style.stars}>{starsToLoose}</div>\n <Cta submitValue={seeClueCta} secondary light onClick={this.handleClick} />\n </div>\n </div>\n <div className={style.front} style={inlineStyle}>\n <LoadedClue text={text} />\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default Clue;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/clue/index.js"],"names":["React","PropTypes","classnames","Provider","Loader","Cta","style","LoadedClue","text","clueText","__html","propTypes","string","Clue","Component","getDerivedStateFromProps","props","isLoading","constructor","context","state","handleClick","bind","e","stopPropagation","preventDefault","onClick","setState","render","starsDiff","skin","translate","primaryColor","inlineStyle","backgroundColor","starsToLoose","count","Math","abs","seeClueCta","wrapperClue","clueCard","flip","back","backContent","loading","stars","front","childContextTypes","number"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,GAAP,MAAgB,QAAhB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAE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Ed;AAApC,oBACE,oBAAC,UAAD;AAAY,MAAA,IAAI,EAAEzB;AAAlB,MADF,CARF,CADF,CADF;AAgBD;;AAhEgC;;gBAA7BK,I,kBAOkB;AACpBiB,EAAAA,IAAI,EAAE3B,QAAQ,CAAC6C,iBAAT,CAA2BlB,IADb;AAEpBC,EAAAA,SAAS,EAAE5B,QAAQ,CAAC6C,iBAAT,CAA2BjB;AAFlB,C;;AAPlBlB,I,CACGF,S,2CAAY;AACjBH,EAAAA,IAAI,EAAED,UAAU,CAACI,SAAX,CAAqBH,IADV;AAEjBkB,EAAAA,OAAO,EAAErB,GAAG,CAACM,SAAJ,CAAce,OAFN;AAGjBG,EAAAA,SAAS,EAAE5B,SAAS,CAACgD;AAHJ,C;AAkErB,eAAepC,IAAf","sourcesContent":["import React from 'react';\nimport {get, isEmpty, noop} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider from '../provider';\nimport Loader from '../loader';\nimport Cta from '../cta';\nimport style from './style.css';\n\nconst LoadedClue = ({text}) => {\n return (\n <div data-name=\"text\" className={style.clueText}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: text}}\n />\n </div>\n );\n};\n\nLoadedClue.propTypes = {\n text: PropTypes.string\n};\n\nclass Clue extends React.Component {\n static propTypes = {\n text: LoadedClue.propTypes.text,\n onClick: Cta.propTypes.onClick,\n starsDiff: PropTypes.number\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n };\n\n static getDerivedStateFromProps(props) {\n const {text} = props;\n const isLoading = isEmpty(text);\n\n if (isLoading) return null;\n return {isLoading};\n }\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n isLoading: false\n };\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {text, onClick = noop} = this.props;\n onClick(e);\n const isLoading = isEmpty(text);\n return this.setState({\n isLoading\n });\n }\n\n render() {\n const {text, starsDiff} = this.props;\n const {skin, translate} = this.context;\n const {isLoading} = this.state;\n const primaryColor = get('common.primary', skin);\n const inlineStyle = {backgroundColor: primaryColor};\n const starsToLoose = translate('clue_stars_to_loose', {count: Math.abs(starsDiff)});\n const seeClueCta = translate('See clue');\n\n return (\n <div data-name=\"clue\" className={style.wrapperClue}>\n <div className={classnames(style.clueCard, !isEmpty(text) && style.flip)}>\n <div className={style.back} style={inlineStyle}>\n {isLoading ? <Loader /> : null}\n <div className={classnames(style.backContent, isLoading && style.loading)}>\n <div className={style.stars}>{starsToLoose}</div>\n <Cta submitValue={seeClueCta} secondary light onClick={this.handleClick} />\n </div>\n </div>\n <div className={style.front} style={inlineStyle}>\n <LoadedClue text={text} />\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default Clue;\n"],"file":"index.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import rectangularSecondaryFullwidth from './rectangular-secondary-fullwidth';
4
4
  export default {
5
- props: _extends(_extends({}, rectangularSecondaryFullwidth.props), {}, {
5
+ props: _extends({}, rectangularSecondaryFullwidth.props, {
6
6
  certificationButton: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/certification.js"],"names":["rectangularSecondaryFullwidth","props","certificationButton"],"mappings":";;AAAA,OAAOA,6BAAP,MAA0C,mCAA1C;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,6BAA6B,CAACC,KAD9B;AAEHC,IAAAA,mBAAmB,EAAE;AAFlB;AADQ,CAAf","sourcesContent":["import rectangularSecondaryFullwidth from './rectangular-secondary-fullwidth';\n\nexport default {\n props: {\n ...rectangularSecondaryFullwidth.props,\n certificationButton: true\n }\n};\n"],"file":"certification.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/certification.js"],"names":["rectangularSecondaryFullwidth","props","certificationButton"],"mappings":";;AAAA,OAAOA,6BAAP,MAA0C,mCAA1C;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,6BAA6B,CAACC,KAD9B;AAEHC,IAAAA,mBAAmB,EAAE;AAFlB;AADQ,CAAf","sourcesContent":["import rectangularSecondaryFullwidth from './rectangular-secondary-fullwidth';\n\nexport default {\n props: {\n ...rectangularSecondaryFullwidth.props,\n certificationButton: true\n }\n};\n"],"file":"certification.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  disabled: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/disabled.js"],"names":["primary","props","disabled"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n disabled: true\n }\n};\n"],"file":"disabled.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/disabled.js"],"names":["primary","props","disabled"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,QAAQ,EAAE;AAFP;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n disabled: true\n }\n};\n"],"file":"disabled.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary-small';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  light: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/light-small.js"],"names":["primary","props","light"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,iBAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import primary from './primary-small';\n\nexport default {\n props: {\n ...primary.props,\n light: true\n }\n};\n"],"file":"light-small.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/light-small.js"],"names":["primary","props","light"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,iBAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import primary from './primary-small';\n\nexport default {\n props: {\n ...primary.props,\n light: true\n }\n};\n"],"file":"light-small.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  light: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/light.js"],"names":["primary","props","light"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n light: true\n }\n};\n"],"file":"light.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/light.js"],"names":["primary","props","light"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n light: true\n }\n};\n"],"file":"light.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  submitValue: 'Logout',
7
7
  logout: true
8
8
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/logout.js"],"names":["primary","props","submitValue","logout"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE,QAFV;AAGHC,IAAAA,MAAM,EAAE;AAHL;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n submitValue: 'Logout',\n logout: true\n }\n};\n"],"file":"logout.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/logout.js"],"names":["primary","props","submitValue","logout"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE,QAFV;AAGHC,IAAAA,MAAM,EAAE;AAHL;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n submitValue: 'Logout',\n logout: true\n }\n};\n"],"file":"logout.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  small: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/primary-small.js"],"names":["primary","props","small"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n small: true\n }\n};\n"],"file":"primary-small.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/primary-small.js"],"names":["primary","props","small"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,KAAK,EAAE;AAFJ;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n small: true\n }\n};\n"],"file":"primary-small.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  rectangular: true,
7
7
  secondary: true,
8
8
  fullWidth: true
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js"],"names":["primary","props","rectangular","secondary","fullWidth"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE,IAFV;AAGHC,IAAAA,SAAS,EAAE,IAHR;AAIHC,IAAAA,SAAS,EAAE;AAJR;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n rectangular: true,\n secondary: true,\n fullWidth: true\n }\n};\n"],"file":"rectangular-secondary-fullwidth.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js"],"names":["primary","props","rectangular","secondary","fullWidth"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE,IAFV;AAGHC,IAAAA,SAAS,EAAE,IAHR;AAIHC,IAAAA,SAAS,EAAE;AAJR;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n rectangular: true,\n secondary: true,\n fullWidth: true\n }\n};\n"],"file":"rectangular-secondary-fullwidth.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  rectangular: true,
7
7
  secondary: true
8
8
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/rectangular-secondary.js"],"names":["primary","props","rectangular","secondary"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE,IAFV;AAGHC,IAAAA,SAAS,EAAE;AAHR;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n rectangular: true,\n secondary: true\n }\n};\n"],"file":"rectangular-secondary.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/rectangular-secondary.js"],"names":["primary","props","rectangular","secondary"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE,IAFV;AAGHC,IAAAA,SAAS,EAAE;AAHR;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n rectangular: true,\n secondary: true\n }\n};\n"],"file":"rectangular-secondary.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  rectangular: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/rectangular.js"],"names":["primary","props","rectangular"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE;AAFV;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n rectangular: true\n }\n};\n"],"file":"rectangular.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/rectangular.js"],"names":["primary","props","rectangular"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,WAAW,EAAE;AAFV;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n rectangular: true\n }\n};\n"],"file":"rectangular.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary-small';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  secondary: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/secondary-small.js"],"names":["primary","props","secondary"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,iBAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,SAAS,EAAE;AAFR;AADQ,CAAf","sourcesContent":["import primary from './primary-small';\n\nexport default {\n props: {\n ...primary.props,\n secondary: true\n }\n};\n"],"file":"secondary-small.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/secondary-small.js"],"names":["primary","props","secondary"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,iBAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,SAAS,EAAE;AAFR;AADQ,CAAf","sourcesContent":["import primary from './primary-small';\n\nexport default {\n props: {\n ...primary.props,\n secondary: true\n }\n};\n"],"file":"secondary-small.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import primary from './primary';
4
4
  export default {
5
- props: _extends(_extends({}, primary.props), {}, {
5
+ props: _extends({}, primary.props, {
6
6
  secondary: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/secondary.js"],"names":["primary","props","secondary"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,SAAS,EAAE;AAFR;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n secondary: true\n }\n};\n"],"file":"secondary.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/cta/test/fixtures/secondary.js"],"names":["primary","props","secondary"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,SAAS,EAAE;AAFR;AADQ,CAAf","sourcesContent":["import primary from './primary';\n\nexport default {\n props: {\n ...primary.props,\n secondary: true\n }\n};\n"],"file":"secondary.js"}
@@ -70,7 +70,7 @@ class DragAndDrop extends React.Component {
70
70
  }));
71
71
  } else if (previewContent && previewContent.type === 'video') {
72
72
  previewView = /*#__PURE__*/React.createElement("div", {
73
- className: _extends(_extends({}, style.previewView), {}, {
73
+ className: _extends({}, style.previewView, {
74
74
  width: '300px'
75
75
  })
76
76
  }, /*#__PURE__*/React.createElement("video", {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/drag-and-drop/index.js"],"names":["React","PropTypes","NovaSolidDataTransferDataUpload1","UploadIcon","NovaLineStatusClose","Close","Provider","Loader","style","constantNull","DragAndDrop","Component","constructor","props","state","dragging","handleDragStart","bind","handleDragStop","setState","render","skin","context","brandColor","idBox","children","title","description","uploadLabel","previewLabel","previewContent","loading","modified","onReset","previewView","type","src","width","resetContent","resetUploadWrapper","resetSrcLabel","closeIcon","wrapper","previewWrapper","inputWrapper","arrow","__html","childContextTypes","propTypes","string","shape","bool","func"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SACEC,gCAAgC,IAAIC,UADtC,EAEEC,mBAAmB,IAAIC,KAFzB,QAGO,0BAHP;AAIA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAG,UAAS,IAAT,CAArB;;AAEA,MAAMC,WAAN,SAA0BV,KAAK,CAACW,SAAhC,CAA0C;AAoBxCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;AAEA,SAAKC,KAAL,GAAa;AACXC,MAAAA,QAAQ,EAAE;AADC,KAAb;AAIA,SAAKC,eAAL,GAAuB,KAAKA,eAAL,CAAqBC,IAArB,CAA0B,IAA1B,CAAvB;AACA,SAAKC,cAAL,GAAsB,KAAKA,cAAL,CAAoBD,IAApB,CAAyB,IAAzB,CAAtB;AACD;;AAEDD,EAAAA,eAAe,GAAG;AAChB,SAAKG,QAAL,CAAc;AACZJ,MAAAA,QAAQ,EAAE;AADE,KAAd;AAGD;;AAEDG,EAAAA,cAAc,GAAG;AACf,SAAKC,QAAL,CAAc;AACZJ,MAAAA,QAAQ,EAAE;AADE,KAAd;AAGD;;AAEDK,EAAAA,MAAM,GAAG;AACP,UAAM;AAACC,MAAAA;AAAD,QAAS,KAAKC,OAApB;;AACA,UAAMC,UAAU,GA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kBAgBkB;AACpBW,EAAAA,IAAI,EAAEf,QAAQ,CAACyC,iBAAT,CAA2B1B;AADb,C;;AAhBlBX,W,CACGsC,S,2CAAY;AACjBtB,EAAAA,KAAK,EAAEzB,SAAS,CAACgD,MADA;AAEjBtB,EAAAA,WAAW,EAAE1B,SAAS,CAACgD,MAFN;AAGjBrB,EAAAA,WAAW,EAAE3B,SAAS,CAACgD,MAHN;AAIjBpB,EAAAA,YAAY,EAAE5B,SAAS,CAACgD,MAJP;AAKjBnB,EAAAA,cAAc,EAAE7B,SAAS,CAACiD,KAAV,CAAgB;AAC9Bf,IAAAA,IAAI,EAAElC,SAAS,CAACgD,MADc;AAE9Bb,IAAAA,GAAG,EAAEnC,SAAS,CAACgD;AAFe,GAAhB,CALC;AASjBlB,EAAAA,OAAO,EAAE9B,SAAS,CAACkD,IATF;AAUjBnB,EAAAA,QAAQ,EAAE/B,SAAS,CAACkD,IAVH;AAWjB1B,EAAAA,QAAQ,EAAExB,SAAS,CAACmD,IAXH;AAYjBnB,EAAAA,OAAO,EAAEhC,SAAS,CAACmD;AAZF,C;AAoHrB,eAAe1C,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {uniqueId, get, constant} from 'lodash/fp';\nimport {\n NovaSolidDataTransferDataUpload1 as UploadIcon,\n NovaLineStatusClose as Close\n} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport Loader from '../loader';\nimport style from './style.css';\n\nconst constantNull = constant(null);\n\nclass DragAndDrop extends React.Component {\n static propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n uploadLabel: PropTypes.string,\n previewLabel: PropTypes.string,\n previewContent: PropTypes.shape({\n type: PropTypes.string,\n src: PropTypes.string\n }),\n loading: PropTypes.bool,\n modified: PropTypes.bool,\n children: PropTypes.func,\n onReset: PropTypes.func\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n dragging: false\n };\n\n this.handleDragStart = this.handleDragStart.bind(this);\n this.handleDragStop = this.handleDragStop.bind(this);\n }\n\n handleDragStart() {\n this.setState({\n dragging: true\n });\n }\n\n handleDragStop() {\n this.setState({\n dragging: false\n });\n }\n\n render() {\n const {skin} = this.context;\n const brandColor = get('common.brand', skin);\n const idBox = uniqueId('drop-box-');\n const {\n children = constantNull,\n title,\n description,\n uploadLabel,\n previewLabel = '',\n previewContent,\n loading = false,\n modified = false,\n onReset = null\n } = this.props;\n const {dragging} = this.state;\n\n let previewView = null;\n\n if (previewContent && previewContent.type === 'image') {\n previewView = (\n <div className={style.previewView}>\n <img src={previewContent.src} />\n </div>\n );\n } else if (previewContent && previewContent.type === 'video') {\n previewView = (\n <div className={{...style.previewView, width: '300px'}}>\n <video width=\"100%\" controls src={previewContent.src} type=\"video/*\" />\n </div>\n );\n } else if (loading) {\n previewView = (\n <div className={style.loading}>\n <Loader />\n </div>\n );\n } else {\n previewView = <span>{previewLabel}</span>;\n }\n\n const resetContent =\n previewContent && previewContent.src && onReset ? (\n <div className={style.resetUploadWrapper}>\n <div className={style.resetSrcLabel}>{previewContent.src}</div>\n <Close\n data-name=\"reset-content-icon\"\n height={16}\n width={16}\n className={style.closeIcon}\n onClick={onReset}\n />\n </div>\n ) : null;\n\n return (\n <div className={style.wrapper} data-name=\"drag-and-drop-wrapper\">\n <div className={style.title}>{title}</div>\n <div className={modified ? style.modified : style.previewWrapper}>{previewView}</div>\n <div className={dragging ? style.dragging : style.inputWrapper} id={idBox}>\n <UploadIcon className={style.arrow} color={brandColor} />\n <div className={style.uploadLabel}>{uploadLabel}</div>\n {children(this.handleDragStart, this.handleDragStop)}\n </div>\n {resetContent}\n {description ? (\n // eslint-disable-next-line react/no-danger\n <div className={style.description} dangerouslySetInnerHTML={{__html: description}} />\n ) : null}\n </div>\n );\n }\n}\n\nexport default DragAndDrop;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/drag-and-drop/index.js"],"names":["React","PropTypes","NovaSolidDataTransferDataUpload1","UploadIcon","NovaLineStatusClose","Close","Provider","Loader","style","constantNull","DragAndDrop","Component","constructor","props","state","dragging","handleDragStart","bind","handleDragStop","setState","render","skin","context","brandColor","idBox","children","title","description","uploadLabel","previewLabel","previewContent","loading","modified","onReset","previewView","type","src","width","resetContent","resetUploadWrapper","resetSrcLabel","closeIcon","wrapper","previewWrapper","inputWrapper","arrow","__html","childContextTypes","propTypes","string","shape","bool","func"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SACEC,gCAAgC,IAAIC,UADtC,EAEEC,mBAAmB,IAAIC,KAFzB,QAGO,0BAHP;AAIA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAG,UAAS,IAAT,CAArB;;AAEA,MAAMC,WAAN,SAA0BV,KAAK,CAACW,SAAhC,CAA0C;AAoBxCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;AAEA,SAAKC,KAAL,GAAa;AACXC,MAAAA,QAAQ,EAAE;AADC,KAAb;AAIA,SAAKC,eAAL,GAAuB,KAAKA,eAAL,CAAqBC,IAArB,CAA0B,IAA1B,CAAvB;AACA,SAAKC,cAAL,GAAsB,KAAKA,cAAL,CAAoBD,IAApB,CAAyB,IAAzB,CAAtB;AACD;;AAEDD,EAAAA,eAAe,GAAG;AAChB,SAAKG,QAAL,CAAc;AACZJ,MAAAA,QAAQ,EAAE;AADE,KAAd;AAGD;;AAEDG,EAAAA,cAAc,GAAG;AACf,SAAKC,QAAL,CAAc;AACZJ,MAAAA,QAAQ,EAAE;AADE,KAAd;AAGD;;AAEDK,EAAAA,MAAM,GAAG;AACP,UAAM;AAACC,MAAAA;AAAD,QAAS,KAAKC,OAApB;;AACA,UAAMC,UAAU,GAAG,KAAI,cAAJ,EAAoBF,IAApB,CAA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,QAAQ,CAACyC,iBAAT,CAA2B1B;AADb,C;;AAhBlBX,W,CACGsC,S,2CAAY;AACjBtB,EAAAA,KAAK,EAAEzB,SAAS,CAACgD,MADA;AAEjBtB,EAAAA,WAAW,EAAE1B,SAAS,CAACgD,MAFN;AAGjBrB,EAAAA,WAAW,EAAE3B,SAAS,CAACgD,MAHN;AAIjBpB,EAAAA,YAAY,EAAE5B,SAAS,CAACgD,MAJP;AAKjBnB,EAAAA,cAAc,EAAE7B,SAAS,CAACiD,KAAV,CAAgB;AAC9Bf,IAAAA,IAAI,EAAElC,SAAS,CAACgD,MADc;AAE9Bb,IAAAA,GAAG,EAAEnC,SAAS,CAACgD;AAFe,GAAhB,CALC;AASjBlB,EAAAA,OAAO,EAAE9B,SAAS,CAACkD,IATF;AAUjBnB,EAAAA,QAAQ,EAAE/B,SAAS,CAACkD,IAVH;AAWjB1B,EAAAA,QAAQ,EAAExB,SAAS,CAACmD,IAXH;AAYjBnB,EAAAA,OAAO,EAAEhC,SAAS,CAACmD;AAZF,C;AAoHrB,eAAe1C,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {uniqueId, get, constant} from 'lodash/fp';\nimport {\n NovaSolidDataTransferDataUpload1 as UploadIcon,\n NovaLineStatusClose as Close\n} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport Loader from '../loader';\nimport style from './style.css';\n\nconst constantNull = constant(null);\n\nclass DragAndDrop extends React.Component {\n static propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n uploadLabel: PropTypes.string,\n previewLabel: PropTypes.string,\n previewContent: PropTypes.shape({\n type: PropTypes.string,\n src: PropTypes.string\n }),\n loading: PropTypes.bool,\n modified: PropTypes.bool,\n children: PropTypes.func,\n onReset: PropTypes.func\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n dragging: false\n };\n\n this.handleDragStart = this.handleDragStart.bind(this);\n this.handleDragStop = this.handleDragStop.bind(this);\n }\n\n handleDragStart() {\n this.setState({\n dragging: true\n });\n }\n\n handleDragStop() {\n this.setState({\n dragging: false\n });\n }\n\n render() {\n const {skin} = this.context;\n const brandColor = get('common.brand', skin);\n const idBox = uniqueId('drop-box-');\n const {\n children = constantNull,\n title,\n description,\n uploadLabel,\n previewLabel = '',\n previewContent,\n loading = false,\n modified = false,\n onReset = null\n } = this.props;\n const {dragging} = this.state;\n\n let previewView = null;\n\n if (previewContent && previewContent.type === 'image') {\n previewView = (\n <div className={style.previewView}>\n <img src={previewContent.src} />\n </div>\n );\n } else if (previewContent && previewContent.type === 'video') {\n previewView = (\n <div className={{...style.previewView, width: '300px'}}>\n <video width=\"100%\" controls src={previewContent.src} type=\"video/*\" />\n </div>\n );\n } else if (loading) {\n previewView = (\n <div className={style.loading}>\n <Loader />\n </div>\n );\n } else {\n previewView = <span>{previewLabel}</span>;\n }\n\n const resetContent =\n previewContent && previewContent.src && onReset ? (\n <div className={style.resetUploadWrapper}>\n <div className={style.resetSrcLabel}>{previewContent.src}</div>\n <Close\n data-name=\"reset-content-icon\"\n height={16}\n width={16}\n className={style.closeIcon}\n onClick={onReset}\n />\n </div>\n ) : null;\n\n return (\n <div className={style.wrapper} data-name=\"drag-and-drop-wrapper\">\n <div className={style.title}>{title}</div>\n <div className={modified ? style.modified : style.previewWrapper}>{previewView}</div>\n <div className={dragging ? style.dragging : style.inputWrapper} id={idBox}>\n <UploadIcon className={style.arrow} color={brandColor} />\n <div className={style.uploadLabel}>{uploadLabel}</div>\n {children(this.handleDragStart, this.handleDragStop)}\n </div>\n {resetContent}\n {description ? (\n // eslint-disable-next-line react/no-danger\n <div className={style.description} dangerouslySetInnerHTML={{__html: description}} />\n ) : null}\n </div>\n );\n }\n}\n\nexport default DragAndDrop;\n"],"file":"index.js"}
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import Default from './default';
4
4
  export default {
5
- props: _extends(_extends({}, Default.props), {}, {
5
+ props: _extends({}, Default.props, {
6
6
  loading: true
7
7
  })
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/loading.js"],"names":["Default","props","loading"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,OAAO,EAAE;AAFN;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n loading: true\n }\n};\n"],"file":"loading.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/loading.js"],"names":["Default","props","loading"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,OAAO,EAAE;AAFN;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n loading: true\n }\n};\n"],"file":"loading.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = WithImage;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  onReset: () => console.log('reset')
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-image-reset.js"],"names":["WithImage","props","onReset","console","log"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,cAAtB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,SAAhB;AACA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFZ;AADQ,CAAf","sourcesContent":["import WithImage from './with-image';\n\nconst {props} = WithImage;\nexport default {\n props: {\n ...props,\n onReset: () => console.log('reset')\n }\n};\n"],"file":"with-image-reset.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-image-reset.js"],"names":["WithImage","props","onReset","console","log"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,cAAtB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,SAAhB;AACA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFZ;AADQ,CAAf","sourcesContent":["import WithImage from './with-image';\n\nconst {props} = WithImage;\nexport default {\n props: {\n ...props,\n onReset: () => console.log('reset')\n }\n};\n"],"file":"with-image-reset.js"}
@@ -53,7 +53,7 @@ const ImageUpload = ({
53
53
  })));
54
54
  };
55
55
 
56
- ImageUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends(_extends({}, DragAndDrop.propTypes), {}, {
56
+ ImageUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, DragAndDrop.propTypes, {
57
57
  name: PropTypes.string,
58
58
  onChange: PropTypes.func,
59
59
  onReset: PropTypes.func,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/image-upload/index.js"],"names":["React","useMemo","PropTypes","DragAndDrop","ImagePropType","style","ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","onChange","onReset","name","imageTypes","handleReset","e","preventDefault","acceptedImages","t","onDragStart","onDragStop","input","propTypes","string","func","arrayOf"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,WAAP,MAAwB,kBAAxB;AACA,SAAQC,aAAR,QAA4B,sBAA5B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAAC;AACnBC,EAAAA,KADmB;AAEnBC,EAAAA,WAFmB;AAGnBC,EAAAA,YAHmB;AAInBC,EAAAA,cAJmB;AAKnBC,EAAAA,WALmB;AAMnBC,EAAAA,OANmB;AAOnBC,EA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AEZ,SAAS,CAAC0B,IAHtB;AAIEb,EAAAA,OAAO,EAAEb,SAAS,CAAC0B,IAJrB;AAKEX,EAAAA,UAAU,EAAEf,SAAS,CAAC2B,OAAV,CAAkBzB,aAAlB;AALd;AAQA,eAAeE,WAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {join, map, pipe} from 'lodash/fp';\nimport DragAndDrop from '../drag-and-drop';\nimport {ImagePropType} from '../../util/proptypes';\nimport style from './style.css';\n\nconst ImageUpload = ({\n title,\n description,\n previewLabel,\n previewContent,\n uploadLabel,\n loading,\n modified,\n onChange,\n onReset = null,\n name,\n // See ImagePropType for accepted values\n imageTypes = ['*']\n}) => {\n const handleReset = onReset\n ? useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n )\n : null;\n const acceptedImages = pipe(\n map(t => `image/${t}`),\n join(',')\n )(imageTypes);\n return (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n previewContent={previewContent}\n uploadLabel={uploadLabel}\n loading={loading}\n modified={modified}\n onReset={handleReset}\n >\n {(onDragStart, onDragStop) => (\n <div>\n <input\n type=\"file\"\n name={name}\n accept={acceptedImages}\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n </div>\n )}\n </DragAndDrop>\n );\n};\n\nImageUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onReset: PropTypes.func,\n imageTypes: PropTypes.arrayOf(ImagePropType)\n};\n\nexport default ImageUpload;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/image-upload/index.js"],"names":["React","useMemo","PropTypes","DragAndDrop","ImagePropType","style","ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","onChange","onReset","name","imageTypes","handleReset","e","preventDefault","acceptedImages","t","onDragStart","onDragStop","input","propTypes","string","func","arrayOf"],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K,cAHV;AAIE,IAAA,QAAQ,EAAET,OAJZ;AAKE,IAAA,SAAS,EAAEP,KAAK,CAACoB,KALnB;AAME,IAAA,QAAQ,EAAEX,QANZ;AAOE,IAAA,WAAW,EAAES,WAPf;AAQE,IAAA,MAAM,EAAEC,UARV;AASE,IAAA,WAAW,EAAEA;AATf,IADF,CAXJ,CADF;AA4BD,CAvDD;;AAyDAlB,WAAW,CAACoB,SAAZ,wDACKvB,WAAW,CAACuB,SADjB;AAEEV,EAAAA,IAAI,EAAEd,SAAS,CAACyB,MAFlB;AAGEb,EAAAA,QAAQ,EAAEZ,SAAS,CAAC0B,IAHtB;AAIEb,EAAAA,OAAO,EAAEb,SAAS,CAAC0B,IAJrB;AAKEX,EAAAA,UAAU,EAAEf,SAAS,CAAC2B,OAAV,CAAkBzB,aAAlB;AALd;AAQA,eAAeE,WAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {join, map, pipe} from 'lodash/fp';\nimport DragAndDrop from '../drag-and-drop';\nimport {ImagePropType} from '../../util/proptypes';\nimport style from './style.css';\n\nconst ImageUpload = ({\n title,\n description,\n previewLabel,\n previewContent,\n uploadLabel,\n loading,\n modified,\n onChange,\n onReset = null,\n name,\n // See ImagePropType for accepted values\n imageTypes = ['*']\n}) => {\n const handleReset = onReset\n ? useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n )\n : null;\n const acceptedImages = pipe(\n map(t => `image/${t}`),\n join(',')\n )(imageTypes);\n return (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n previewContent={previewContent}\n uploadLabel={uploadLabel}\n loading={loading}\n modified={modified}\n onReset={handleReset}\n >\n {(onDragStart, onDragStop) => (\n <div>\n <input\n type=\"file\"\n name={name}\n accept={acceptedImages}\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n </div>\n )}\n </DragAndDrop>\n );\n};\n\nImageUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onReset: PropTypes.func,\n imageTypes: PropTypes.arrayOf(ImagePropType)\n};\n\nexport default ImageUpload;\n"],"file":"index.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = DesktopReset;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  imageTypes: ['png', 'jpg', 'svg+xml']
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js"],"names":["DesktopReset","props","imageTypes"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,6BAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,UAAU,EAAE,CAAC,KAAD,EAAQ,KAAR,EAAe,SAAf;AAFT;AADQ,CAAf","sourcesContent":["import DesktopReset from './desktop-reset-description';\n\nconst {props} = DesktopReset;\n\nexport default {\n props: {\n ...props,\n imageTypes: ['png', 'jpg', 'svg+xml']\n }\n};\n"],"file":"desktop-reset-description-multiple.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js"],"names":["DesktopReset","props","imageTypes"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,6BAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,UAAU,EAAE,CAAC,KAAD,EAAQ,KAAR,EAAe,SAAf;AAFT;AADQ,CAAf","sourcesContent":["import DesktopReset from './desktop-reset-description';\n\nconst {props} = DesktopReset;\n\nexport default {\n props: {\n ...props,\n imageTypes: ['png', 'jpg', 'svg+xml']\n }\n};\n"],"file":"desktop-reset-description-multiple.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = DesktopReset;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  previewContent: {
10
10
  type: 'image',
11
11
  src: 'https://static.coorpacademy.com/content/up/raw/batman.png'
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js"],"names":["DesktopReset","props","previewContent","type","src","imageTypes"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,6BAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS,KAFb;AAMHC,IAAAA,UAAU,EAAE,CAAC,KAAD;AANT;AADQ,CAAf","sourcesContent":["import DesktopReset from './desktop-reset-description';\n\nconst {props} = DesktopReset;\n\nexport default {\n props: {\n ...props,\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/batman.png'\n },\n imageTypes: ['png']\n }\n};\n"],"file":"desktop-reset-description-only-png.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js"],"names":["DesktopReset","props","previewContent","type","src","imageTypes"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,6BAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS,KAFb;AAMHC,IAAAA,UAAU,EAAE,CAAC,KAAD;AANT;AADQ,CAAf","sourcesContent":["import DesktopReset from './desktop-reset-description';\n\nconst {props} = DesktopReset;\n\nexport default {\n props: {\n ...props,\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/batman.png'\n },\n imageTypes: ['png']\n }\n};\n"],"file":"desktop-reset-description-only-png.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = DesktopReset;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  description: 'This is where you can load a custom logo (that of Coorpacademy, the client, or one specific to the learning platform) which will be added at the bottom right of the thumbnails of the different courses in SAP.<br /><br />Max file size: 5MO. Format: PNG. NB: The logo will be re-sized by the media service (height = 125px & wide = 400px), therefore, a horizontal format is highly suggested.'
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-description.js"],"names":["DesktopReset","props","description"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,gCAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,WAAW,EACT;AAHC;AADQ,CAAf","sourcesContent":["import DesktopReset from './desktop-reset-no-description';\n\nconst {props} = DesktopReset;\n\nexport default {\n props: {\n ...props,\n description:\n 'This is where you can load a custom logo (that of Coorpacademy, the client, or one specific to the learning platform) which will be added at the bottom right of the thumbnails of the different courses in SAP.<br /><br />Max file size: 5MO. Format: PNG. NB: The logo will be re-sized by the media service (height = 125px & wide = 400px), therefore, a horizontal format is highly suggested.'\n }\n};\n"],"file":"desktop-reset-description.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-description.js"],"names":["DesktopReset","props","description"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,gCAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,WAAW,EACT;AAHC;AADQ,CAAf","sourcesContent":["import DesktopReset from './desktop-reset-no-description';\n\nconst {props} = DesktopReset;\n\nexport default {\n props: {\n ...props,\n description:\n 'This is where you can load a custom logo (that of Coorpacademy, the client, or one specific to the learning platform) which will be added at the bottom right of the thumbnails of the different courses in SAP.<br /><br />Max file size: 5MO. Format: PNG. NB: The logo will be re-sized by the media service (height = 125px & wide = 400px), therefore, a horizontal format is highly suggested.'\n }\n};\n"],"file":"desktop-reset-description.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Desktop;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  onReset: () => console.log('reset')
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-no-description.js"],"names":["Desktop","props","onReset","console","log"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFZ;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n onReset: () => console.log('reset')\n }\n};\n"],"file":"desktop-reset-no-description.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/desktop-reset-no-description.js"],"names":["Desktop","props","onReset","console","log"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFZ;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n onReset: () => console.log('reset')\n }\n};\n"],"file":"desktop-reset-no-description.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Desktop;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  title: 'Email (*)',
10
10
  previewContent: {
11
11
  type: 'image',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/email.js"],"names":["Desktop","props","title","previewContent","type","src"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,WAFJ;AAGHC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS;AAHb;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n title: 'Email (*)',\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_coorp_mail-1491561014878.svg'\n }\n }\n};\n"],"file":"email.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/email.js"],"names":["Desktop","props","title","previewContent","type","src"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,WAFJ;AAGHC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS;AAHb;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n title: 'Email (*)',\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_coorp_mail-1491561014878.svg'\n }\n }\n};\n"],"file":"email.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Desktop;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  title: 'Mobile (*)',
10
10
  description: 'Recommended aspect ratio: 1:1 (e.g. 250px x 250px). Maximum accepted aspect ratio: 2:1 (e.g. 500px x 250px. Meaning, no more than twice as large as it is tall)',
11
11
  previewContent: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/mobile.js"],"names":["Desktop","props","title","description","previewContent","type","src"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,YAFJ;AAGHC,IAAAA,WAAW,EACT,iKAJC;AAKHC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS;AALb;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n title: 'Mobile (*)',\n description:\n 'Recommended aspect ratio: 1:1 (e.g. 250px x 250px). Maximum accepted aspect ratio: 2:1 (e.g. 500px x 250px. Meaning, no more than twice as large as it is tall)',\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg'\n }\n }\n};\n"],"file":"mobile.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/mobile.js"],"names":["Desktop","props","title","description","previewContent","type","src"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAA,KADA;AAEHC,IAAAA,KAAK,EAAE,YAFJ;AAGHC,IAAAA,WAAW,EACT,iKAJC;AAKHC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS;AALb;AADQ,CAAf","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n title: 'Mobile (*)',\n description:\n 'Recommended aspect ratio: 1:1 (e.g. 250px x 250px). Maximum accepted aspect ratio: 2:1 (e.g. 500px x 250px. Meaning, no more than twice as large as it is tall)',\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg'\n }\n }\n};\n"],"file":"mobile.js"}
@@ -5,7 +5,7 @@ const {
5
5
  props
6
6
  } = Desktop;
7
7
  export default {
8
- props: _extends(_extends({}, props), {}, {
8
+ props: _extends({}, props, {
9
9
  modified: true
10
10
  })
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/image-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"}
1
+ {"version":3,"sources":["../../../../../src/atom/image-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,9 +1,9 @@
1
1
  import _uniqueId from "lodash/fp/uniqueId";
2
2
  import _noop from "lodash/fp/noop";
3
3
  import React, { useMemo } from 'react';
4
- import classNames from 'classnames';
5
4
  import PropTypes from 'prop-types';
6
5
  import { NovaSolidStatusValidate as CheckIcon } from '@coorpacademy/nova-icons';
6
+ import getClassState from '../../util/get-class-state';
7
7
  import style from './style.css';
8
8
  const titleStylesClassNames = {
9
9
  primary: style.primary,
@@ -29,9 +29,12 @@ const InputCheckbox = props => {
29
29
 
30
30
  const title = `${propsTitle}${required ? '*' : ''}`;
31
31
  const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);
32
+ const modifiedClassName = theme === 'coorpmanager' ? style.coorpManagerModified : style.defaultModified;
33
+ const errorClassName = theme === 'coorpmanager' ? style.coorpManagerError : style.defaultError;
32
34
  const defaultContainerClassName = theme === 'coorpmanager' ? style.coorpManager : style.default;
35
+ const className = getClassState(defaultContainerClassName, modifiedClassName, errorClassName, modified, error);
33
36
  return /*#__PURE__*/React.createElement("div", {
34
- className: classNames(defaultContainerClassName, modified && style.modified, error && style.error)
37
+ className: className
35
38
  }, /*#__PURE__*/React.createElement("input", {
36
39
  type: "checkbox",
37
40
  className: style.checkbox,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/input-checkbox/index.js"],"names":["React","useMemo","classNames","PropTypes","NovaSolidStatusValidate","CheckIcon","style","titleStylesClassNames","primary","secondary","tertiary","InputCheckbox","props","checked","onChange","error","disabled","required","titleStyle","modified","theme","title","propsTitle","titleStyleClassName","idCheckbox","handleChange","e","target","defaultContainerClassName","coorpManager","default","checkbox","icon","propTypes","string","isRequired","bool","func","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,uBAAuB,IAAIC,SAAnC,QAAmD,0BAAnD;AAEA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,qBAAqB,GAAG;AAC5BC,EAA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OE,IAAA,QAAQ,EAAET;AAPZ,IAPF,eAgBE;AAAO,IAAA,OAAO,EAAEQ;AAAhB,kBACE,oBAAC,SAAD;AAAW,IAAA,SAAS,EAAElB,KAAK,CAAC0B;AAA5B,IADF,CAhBF,eAmBE;AAAM,IAAA,SAAS,EAAET;AAAjB,KAAuCF,KAAvC,CAnBF,CADF;AAuBD,CA1CD;;AA4CAV,aAAa,CAACsB,SAAd,2CAA0B;AACxBZ,EAAAA,KAAK,EAAElB,SAAS,CAAC+B,MAAV,CAAiBC,UADA;AAExBnB,EAAAA,QAAQ,EAAEb,SAAS,CAACiC,IAFI;AAGxBnB,EAAAA,QAAQ,EAAEd,SAAS,CAACiC,IAHI;AAIxBvB,EAAAA,OAAO,EAAEV,SAAS,CAACiC,IAJK;AAKxBrB,EAAAA,KAAK,EAAEZ,SAAS,CAACiC,IALO;AAMxBtB,EAAAA,QAAQ,EAAEX,SAAS,CAACkC,IANI;AAOxBlB,EAAAA,QAAQ,EAAEhB,SAAS,CAACiC,IAPI;AAQxBhB,EAAAA,KAAK,EAAEjB,SAAS,CAACmC,KAAV,CAAgB,CAAC,cAAD,EAAiB,SAAjB,CAAhB,CARiB;AASxBpB,EAAAA,UAAU,EAAEf,SAAS,CAACmC,KAAV,CAAgB,CAAC,SAAD,EAAY,WAAZ,EAAyB,UAAzB,CAAhB;AATY,CAA1B;AAYA,eAAe3B,aAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport {NovaSolidStatusValidate as CheckIcon} from '@coorpacademy/nova-icons';\nimport {noop, uniqueId} from 'lodash/fp';\nimport style from './style.css';\n\nconst titleStylesClassNames = {\n primary: style.primary,\n secondary: style.secondary,\n tertiary: style.tertiary\n};\n\nconst InputCheckbox = props => {\n const {\n checked,\n onChange = noop,\n error,\n disabled,\n required,\n titleStyle = 'primary',\n modified = false,\n theme = 'default',\n title: propsTitle\n } = props;\n\n const titleStyleClassName = titleStylesClassNames[titleStyle];\n const idCheckbox = uniqueId('input-checkbox-');\n const title = `${propsTitle}${required ? '*' : ''}`;\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n const defaultContainerClassName = theme === 'coorpmanager' ? style.coorpManager : style.default;\n\n return (\n <div\n className={classNames(\n defaultContainerClassName,\n modified && style.modified,\n error && style.error\n )}\n >\n <input\n type=\"checkbox\"\n className={style.checkbox}\n name={title}\n id={idCheckbox}\n checked={checked}\n onChange={handleChange}\n disabled={disabled}\n />\n <label htmlFor={idCheckbox}>\n <CheckIcon className={style.icon} />\n </label>\n <span className={titleStyleClassName}>{title}</span>\n </div>\n );\n};\n\nInputCheckbox.propTypes = {\n title: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n required: PropTypes.bool,\n checked: PropTypes.bool,\n error: PropTypes.bool,\n onChange: PropTypes.func,\n modified: PropTypes.bool,\n theme: PropTypes.oneOf(['coorpmanager', 'default']),\n titleStyle: PropTypes.oneOf(['primary', 'secondary', 'tertiary'])\n};\n\nexport default InputCheckbox;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/input-checkbox/index.js"],"names":["React","useMemo","PropTypes","NovaSolidStatusValidate","CheckIcon","getClassState","style","titleStylesClassNames","primary","secondary","tertiary","InputCheckbox","props","checked","onChange","error","disabled","required","titleStyle","modified","theme","title","propsTitle","titleStyleClassName","idCheckbox","handleChange","e","target","modifiedClassName","coorpManagerModified","defaultModified","errorClassName","coorpManagerError","defaultError","defaultContainerClassName","coorpManager","default","className","checkbox","icon","propTypes","string","isRequired","bool","func","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,uBAAuB,IAAIC,SAAnC,QAAmD,0BAAnD;AAEA,OAAOC,aAAP,MAA0B,4BAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,qBAAqB,GAAG;AAC5BC,EAAAA,OAAO,EA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AA,SAAS,EAAEsB;AAAhB,kBACE;AACE,IAAA,IAAI,EAAC,UADP;AAEE,IAAA,SAAS,EAAE/B,KAAK,CAACgC,QAFnB;AAGE,IAAA,IAAI,EAAEjB,KAHR;AAIE,IAAA,EAAE,EAAEG,UAJN;AAKE,IAAA,OAAO,EAAEX,OALX;AAME,IAAA,QAAQ,EAAEY,YANZ;AAOE,IAAA,QAAQ,EAAET;AAPZ,IADF,eAUE;AAAO,IAAA,OAAO,EAAEQ;AAAhB,kBACE,oBAAC,SAAD;AAAW,IAAA,SAAS,EAAElB,KAAK,CAACiC;AAA5B,IADF,CAVF,eAaE;AAAM,IAAA,SAAS,EAAEhB;AAAjB,KAAuCF,KAAvC,CAbF,CADF;AAiBD,CA/CD;;AAiDAV,aAAa,CAAC6B,SAAd,2CAA0B;AACxBnB,EAAAA,KAAK,EAAEnB,SAAS,CAACuC,MAAV,CAAiBC,UADA;AAExB1B,EAAAA,QAAQ,EAAEd,SAAS,CAACyC,IAFI;AAGxB1B,EAAAA,QAAQ,EAAEf,SAAS,CAACyC,IAHI;AAIxB9B,EAAAA,OAAO,EAAEX,SAAS,CAACyC,IAJK;AAKxB5B,EAAAA,KAAK,EAAEb,SAAS,CAACyC,IALO;AAMxB7B,EAAAA,QAAQ,EAAEZ,SAAS,CAAC0C,IANI;AAOxBzB,EAAAA,QAAQ,EAAEjB,SAAS,CAACyC,IAPI;AAQxBvB,EAAAA,KAAK,EAAElB,SAAS,CAAC2C,KAAV,CAAgB,CAAC,cAAD,EAAiB,SAAjB,CAAhB,CARiB;AASxB3B,EAAAA,UAAU,EAAEhB,SAAS,CAAC2C,KAAV,CAAgB,CAAC,SAAD,EAAY,WAAZ,EAAyB,UAAzB,CAAhB;AATY,CAA1B;AAYA,eAAelC,aAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {NovaSolidStatusValidate as CheckIcon} from '@coorpacademy/nova-icons';\nimport {noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst titleStylesClassNames = {\n primary: style.primary,\n secondary: style.secondary,\n tertiary: style.tertiary\n};\n\nconst InputCheckbox = props => {\n const {\n checked,\n onChange = noop,\n error,\n disabled,\n required,\n titleStyle = 'primary',\n modified = false,\n theme = 'default',\n title: propsTitle\n } = props;\n\n const titleStyleClassName = titleStylesClassNames[titleStyle];\n const idCheckbox = uniqueId('input-checkbox-');\n const title = `${propsTitle}${required ? '*' : ''}`;\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n const modifiedClassName = theme === 'coorpmanager' ? style.coorpManagerModified : style.defaultModified;\n const errorClassName = theme === 'coorpmanager' ? style.coorpManagerError : style.defaultError;\n const defaultContainerClassName = theme === 'coorpmanager' ? style.coorpManager : style.default;\n\n const className = getClassState(\n defaultContainerClassName,\n modifiedClassName,\n errorClassName,\n modified,\n error\n );\n\n return (\n <div className={className}>\n <input\n type=\"checkbox\"\n className={style.checkbox}\n name={title}\n id={idCheckbox}\n checked={checked}\n onChange={handleChange}\n disabled={disabled}\n />\n <label htmlFor={idCheckbox}>\n <CheckIcon className={style.icon} />\n </label>\n <span className={titleStyleClassName}>{title}</span>\n </div>\n );\n};\n\nInputCheckbox.propTypes = {\n title: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n required: PropTypes.bool,\n checked: PropTypes.bool,\n error: PropTypes.bool,\n onChange: PropTypes.func,\n modified: PropTypes.bool,\n theme: PropTypes.oneOf(['coorpmanager', 'default']),\n titleStyle: PropTypes.oneOf(['primary', 'secondary', 'tertiary'])\n};\n\nexport default InputCheckbox;\n"],"file":"index.js"}