@coorpacademy/components 10.0.49 → 10.1.2

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 (899) hide show
  1. package/es/atom/autocomplete/test/fixtures.js +19 -0
  2. package/es/atom/autocomplete/test/fixtures.js.map +1 -0
  3. package/es/atom/avatar/test/fixtures.js +13 -0
  4. package/es/atom/avatar/test/fixtures.js.map +1 -0
  5. package/es/atom/bullet-point-menu-button/test/fixtures.js +27 -0
  6. package/es/atom/bullet-point-menu-button/test/fixtures.js.map +1 -0
  7. package/es/atom/button/index.js +3 -1
  8. package/es/atom/button/index.js.map +1 -1
  9. package/es/atom/button/test/fixtures.js +27 -0
  10. package/es/atom/button/test/fixtures.js.map +1 -0
  11. package/es/atom/catalog-section/test/fixtures.js +15 -0
  12. package/es/atom/catalog-section/test/fixtures.js.map +1 -0
  13. package/es/atom/centered-text/test/fixtures.js +13 -0
  14. package/es/atom/centered-text/test/fixtures.js.map +1 -0
  15. package/es/atom/checkbox/test/fixtures.js +19 -0
  16. package/es/atom/checkbox/test/fixtures.js.map +1 -0
  17. package/es/atom/chips/index.js +36 -0
  18. package/es/atom/chips/index.js.map +1 -0
  19. package/es/atom/chips/style.css +66 -0
  20. package/es/atom/chips/test/fixtures/default.js +9 -0
  21. package/es/atom/chips/test/fixtures/default.js.map +1 -0
  22. package/es/atom/chips/test/fixtures/non-selected.js +9 -0
  23. package/es/atom/chips/test/fixtures/non-selected.js.map +1 -0
  24. package/es/atom/clue/test/fixtures.js +17 -0
  25. package/es/atom/clue/test/fixtures.js.map +1 -0
  26. package/es/atom/content-badge/index.js +21 -0
  27. package/es/atom/content-badge/index.js.map +1 -0
  28. package/es/atom/content-badge/style.css +59 -0
  29. package/es/atom/content-badge/test/fixtures/advanced.js +7 -0
  30. package/es/atom/content-badge/test/fixtures/advanced.js.map +1 -0
  31. package/es/atom/content-badge/test/fixtures/article.js +7 -0
  32. package/es/atom/content-badge/test/fixtures/article.js.map +1 -0
  33. package/es/atom/content-badge/test/fixtures/chapter.js +7 -0
  34. package/es/atom/content-badge/test/fixtures/chapter.js.map +1 -0
  35. package/es/atom/content-badge/test/fixtures/coach.js +7 -0
  36. package/es/atom/content-badge/test/fixtures/coach.js.map +1 -0
  37. package/es/atom/content-badge/test/fixtures/default.js +7 -0
  38. package/es/atom/content-badge/test/fixtures/default.js.map +1 -0
  39. package/es/atom/content-badge/test/fixtures/podcast.js +7 -0
  40. package/es/atom/content-badge/test/fixtures/podcast.js.map +1 -0
  41. package/es/atom/content-badge/test/fixtures/scorm.js +7 -0
  42. package/es/atom/content-badge/test/fixtures/scorm.js.map +1 -0
  43. package/es/atom/content-badge/test/fixtures/video.js +7 -0
  44. package/es/atom/content-badge/test/fixtures/video.js.map +1 -0
  45. package/es/atom/cta/test/fixtures.js +37 -0
  46. package/es/atom/cta/test/fixtures.js.map +1 -0
  47. package/es/atom/difficulty-level/test/fixtures.js +19 -0
  48. package/es/atom/difficulty-level/test/fixtures.js.map +1 -0
  49. package/es/atom/drag-and-drop/test/fixtures.js +23 -0
  50. package/es/atom/drag-and-drop/test/fixtures.js.map +1 -0
  51. package/es/atom/image-upload/test/fixtures.js +29 -0
  52. package/es/atom/image-upload/test/fixtures.js.map +1 -0
  53. package/es/atom/input-checkbox/test/fixtures.js +23 -0
  54. package/es/atom/input-checkbox/test/fixtures.js.map +1 -0
  55. package/es/atom/input-color/test/fixtures.js +19 -0
  56. package/es/atom/input-color/test/fixtures.js.map +1 -0
  57. package/es/atom/input-doublestep/test/fixtures.js +21 -0
  58. package/es/atom/input-doublestep/test/fixtures.js.map +1 -0
  59. package/es/atom/input-html/test/fixtures.js +17 -0
  60. package/es/atom/input-html/test/fixtures.js.map +1 -0
  61. package/es/atom/input-readonly/test/fixtures.js +13 -0
  62. package/es/atom/input-readonly/test/fixtures.js.map +1 -0
  63. package/es/atom/input-switch/test/fixtures.js +23 -0
  64. package/es/atom/input-switch/test/fixtures.js.map +1 -0
  65. package/es/atom/input-text/index.js +34 -6
  66. package/es/atom/input-text/index.js.map +1 -1
  67. package/es/atom/input-text/style.css +229 -1
  68. package/es/atom/input-text/test/fixtures/cm-default.js +17 -0
  69. package/es/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  70. package/es/atom/input-text/test/fixtures.js +25 -0
  71. package/es/atom/input-text/test/fixtures.js.map +1 -0
  72. package/es/atom/input-textarea/index.js +36 -11
  73. package/es/atom/input-textarea/index.js.map +1 -1
  74. package/es/atom/input-textarea/style.css +265 -0
  75. package/es/atom/input-textarea/test/fixtures/cm-default.js +17 -0
  76. package/es/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  77. package/es/atom/input-textarea/test/fixtures/cm-empty.js +17 -0
  78. package/es/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  79. package/es/atom/input-textarea/test/fixtures.js +17 -0
  80. package/es/atom/input-textarea/test/fixtures.js.map +1 -0
  81. package/es/atom/label/test/fixtures.js +15 -0
  82. package/es/atom/label/test/fixtures.js.map +1 -0
  83. package/es/atom/life/test/fixtures.js +25 -0
  84. package/es/atom/life/test/fixtures.js.map +1 -0
  85. package/es/atom/link/test/fixtures.js +17 -0
  86. package/es/atom/link/test/fixtures.js.map +1 -0
  87. package/es/atom/loader/test/fixtures.js +13 -0
  88. package/es/atom/loader/test/fixtures.js.map +1 -0
  89. package/es/atom/notification/test/fixtures.js +17 -0
  90. package/es/atom/notification/test/fixtures.js.map +1 -0
  91. package/es/atom/picture/test/fixtures.js +19 -0
  92. package/es/atom/picture/test/fixtures.js.map +1 -0
  93. package/es/atom/picture-background/test/fixtures.js +19 -0
  94. package/es/atom/picture-background/test/fixtures.js.map +1 -0
  95. package/es/atom/promo-code/test/fixtures.js +17 -0
  96. package/es/atom/promo-code/test/fixtures.js.map +1 -0
  97. package/es/atom/provider/test/fixtures.js +13 -0
  98. package/es/atom/provider/test/fixtures.js.map +1 -0
  99. package/es/atom/radio-group/test/fixtures.js +17 -0
  100. package/es/atom/radio-group/test/fixtures.js.map +1 -0
  101. package/es/atom/range/test/fixtures.js +15 -0
  102. package/es/atom/range/test/fixtures.js.map +1 -0
  103. package/es/atom/resource-miniature/test/fixtures.js +21 -0
  104. package/es/atom/resource-miniature/test/fixtures.js.map +1 -0
  105. package/es/atom/select/test/fixtures.js +43 -0
  106. package/es/atom/select/test/fixtures.js.map +1 -0
  107. package/es/atom/slide/test/fixtures.js +21 -0
  108. package/es/atom/slide/test/fixtures.js.map +1 -0
  109. package/es/atom/social-link/test/fixtures.js +17 -0
  110. package/es/atom/social-link/test/fixtures.js.map +1 -0
  111. package/es/atom/spinner/test/fixtures.js +13 -0
  112. package/es/atom/spinner/test/fixtures.js.map +1 -0
  113. package/es/atom/tab/test/fixtures.js +13 -0
  114. package/es/atom/tab/test/fixtures.js.map +1 -0
  115. package/es/atom/tab-content/test/fixtures.js +15 -0
  116. package/es/atom/tab-content/test/fixtures.js.map +1 -0
  117. package/es/atom/title/test/fixtures.js +13 -0
  118. package/es/atom/title/test/fixtures.js.map +1 -0
  119. package/es/atom/video-upload/test/fixtures.js +21 -0
  120. package/es/atom/video-upload/test/fixtures.js.map +1 -0
  121. package/es/atom/wizard-steps/index.js +38 -0
  122. package/es/atom/wizard-steps/index.js.map +1 -0
  123. package/es/atom/wizard-steps/style.css +150 -0
  124. package/es/atom/wizard-steps/test/fixtures/default.js +28 -0
  125. package/es/atom/wizard-steps/test/fixtures/default.js.map +1 -0
  126. package/es/atom/wizard-steps/test/fixtures/first-step.js +28 -0
  127. package/es/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
  128. package/es/atom/wizard-steps/test/fixtures/last-step.js +28 -0
  129. package/es/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
  130. package/es/hoc/animation/test/fixtures.js +15 -0
  131. package/es/hoc/animation/test/fixtures.js.map +1 -0
  132. package/es/hoc/animation-scheduler/test/fixtures.js +15 -0
  133. package/es/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  134. package/es/hoc/swapper/test/fixtures.js +13 -0
  135. package/es/hoc/swapper/test/fixtures.js.map +1 -0
  136. package/es/hoc/transition/test/fixtures.js +13 -0
  137. package/es/hoc/transition/test/fixtures.js.map +1 -0
  138. package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
  139. package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  140. package/es/molecule/answer/test/fixtures.js +35 -0
  141. package/es/molecule/answer/test/fixtures.js.map +1 -0
  142. package/es/molecule/audio/test/fixtures.js +15 -0
  143. package/es/molecule/audio/test/fixtures.js.map +1 -0
  144. package/es/molecule/banner/index.js +46 -0
  145. package/es/molecule/banner/index.js.map +1 -0
  146. package/es/molecule/banner/style.css +63 -0
  147. package/es/molecule/banner/test/fixtures/default.js +11 -0
  148. package/es/molecule/banner/test/fixtures/default.js.map +1 -0
  149. package/es/molecule/banner/test/fixtures/error-banner.js +7 -0
  150. package/es/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  151. package/es/molecule/battle-request/test/fixtures.js +15 -0
  152. package/es/molecule/battle-request/test/fixtures.js.map +1 -0
  153. package/es/molecule/brand-card/test/fixtures.js +15 -0
  154. package/es/molecule/brand-card/test/fixtures.js.map +1 -0
  155. package/es/molecule/brand-card-create/test/fixtures.js +13 -0
  156. package/es/molecule/brand-card-create/test/fixtures.js.map +1 -0
  157. package/es/molecule/brand-create-form/test/fixtures.js +19 -0
  158. package/es/molecule/brand-create-form/test/fixtures.js.map +1 -0
  159. package/es/molecule/brand-download-box/test/fixtures.js +17 -0
  160. package/es/molecule/brand-download-box/test/fixtures.js.map +1 -0
  161. package/es/molecule/brand-form-group/test/fixtures/cm-default.js +51 -0
  162. package/es/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  163. package/es/molecule/brand-form-group/test/fixtures/default.js +12 -3
  164. package/es/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  165. package/es/molecule/brand-form-group/test/fixtures.js +33 -0
  166. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -0
  167. package/es/molecule/brand-tabs/test/fixtures.js +29 -0
  168. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -0
  169. package/es/molecule/brand-upload-box/test/fixtures.js +17 -0
  170. package/es/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  171. package/es/molecule/breadcrumbs/test/fixtures.js +13 -0
  172. package/es/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  173. package/es/molecule/card/index.js +16 -5
  174. package/es/molecule/card/index.js.map +1 -1
  175. package/es/molecule/card/selectable.css +71 -0
  176. package/es/molecule/card/selectable.js +32 -0
  177. package/es/molecule/card/selectable.js.map +1 -0
  178. package/es/molecule/card/test/fixtures/default.js +1 -0
  179. package/es/molecule/card/test/fixtures/default.js.map +1 -1
  180. package/es/molecule/card/test/fixtures/selectable-false.js +16 -0
  181. package/es/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  182. package/es/molecule/card/test/fixtures/selectable-true.js +17 -0
  183. package/es/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  184. package/es/molecule/card/test/fixtures.js +39 -0
  185. package/es/molecule/card/test/fixtures.js.map +1 -0
  186. package/es/molecule/card-content/index.js +13 -3
  187. package/es/molecule/card-content/index.js.map +1 -1
  188. package/es/molecule/card-content/style.css +13 -3
  189. package/es/molecule/card-content/test/fixtures.js +27 -0
  190. package/es/molecule/card-content/test/fixtures.js.map +1 -0
  191. package/es/molecule/card-with-button/test/fixtures.js +17 -0
  192. package/es/molecule/card-with-button/test/fixtures.js.map +1 -0
  193. package/es/molecule/cm-popin/index.js +76 -0
  194. package/es/molecule/cm-popin/index.js.map +1 -0
  195. package/es/molecule/cm-popin/style.css +157 -0
  196. package/es/molecule/cm-popin/test/fixtures/dangerous.js +16 -0
  197. package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  198. package/es/molecule/cm-popin/test/fixtures/default.js +16 -0
  199. package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  200. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +17 -0
  201. package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  202. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  203. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  204. package/es/molecule/cookie-banner/test/fixtures.js +13 -0
  205. package/es/molecule/cookie-banner/test/fixtures.js.map +1 -0
  206. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +15 -0
  207. package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  208. package/es/molecule/dashboard/cards-list/test/fixtures.js +23 -0
  209. package/es/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  210. package/es/molecule/dashboard/news-list/test/fixtures.js +17 -0
  211. package/es/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  212. package/es/molecule/dashboard/start-battle/test/fixtures.js +15 -0
  213. package/es/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  214. package/es/molecule/discipline-cta/test/fixtures.js +15 -0
  215. package/es/molecule/discipline-cta/test/fixtures.js.map +1 -0
  216. package/es/molecule/discipline-header/test/fixtures.js +27 -0
  217. package/es/molecule/discipline-header/test/fixtures.js.map +1 -0
  218. package/es/molecule/discipline-partners/index.js +5 -2
  219. package/es/molecule/discipline-partners/index.js.map +1 -1
  220. package/es/molecule/discipline-partners/test/fixtures.js +21 -0
  221. package/es/molecule/discipline-partners/test/fixtures.js.map +1 -0
  222. package/es/molecule/discipline-scope/test/fixtures.js +27 -0
  223. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -0
  224. package/es/molecule/drag-and-drop/test/fixtures.js +25 -0
  225. package/es/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  226. package/es/molecule/external-content-button/test/fixtures.js +19 -0
  227. package/es/molecule/external-content-button/test/fixtures.js.map +1 -0
  228. package/es/molecule/external-content-viewer/test/fixtures.js +27 -0
  229. package/es/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  230. package/es/molecule/feedback/test/fixtures.js +27 -0
  231. package/es/molecule/feedback/test/fixtures.js.map +1 -0
  232. package/es/molecule/filters/test/fixtures.js +33 -0
  233. package/es/molecule/filters/test/fixtures.js.map +1 -0
  234. package/es/molecule/forum/forum-comment/test/fixtures.js +17 -0
  235. package/es/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  236. package/es/molecule/forum/forum-post/test/fixtures.js +31 -0
  237. package/es/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  238. package/es/molecule/forum/forum-thread/test/fixtures.js +17 -0
  239. package/es/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  240. package/es/molecule/hero/test/fixtures.js +15 -0
  241. package/es/molecule/hero/test/fixtures.js.map +1 -0
  242. package/es/molecule/login-alert/test/fixtures.js +13 -0
  243. package/es/molecule/login-alert/test/fixtures.js.map +1 -0
  244. package/es/molecule/menu-list/test/fixtures.js +13 -0
  245. package/es/molecule/menu-list/test/fixtures.js.map +1 -0
  246. package/es/molecule/message-popin/test/fixtures.js +13 -0
  247. package/es/molecule/message-popin/test/fixtures.js.map +1 -0
  248. package/es/molecule/modal/test/fixtures.js +13 -0
  249. package/es/molecule/modal/test/fixtures.js.map +1 -0
  250. package/es/molecule/module-bubble/test/fixtures.js +17 -0
  251. package/es/molecule/module-bubble/test/fixtures.js.map +1 -0
  252. package/es/molecule/module-card/test/fixtures.js +17 -0
  253. package/es/molecule/module-card/test/fixtures.js.map +1 -0
  254. package/es/molecule/news/test/fixtures.js +23 -0
  255. package/es/molecule/news/test/fixtures.js.map +1 -0
  256. package/es/molecule/notification-banner/test/fixtures.js +17 -0
  257. package/es/molecule/notification-banner/test/fixtures.js.map +1 -0
  258. package/es/molecule/pagination/test/fixtures.js +15 -0
  259. package/es/molecule/pagination/test/fixtures.js.map +1 -0
  260. package/es/molecule/payment-form/test/fixtures.js +17 -0
  261. package/es/molecule/payment-form/test/fixtures.js.map +1 -0
  262. package/es/molecule/pdf/test/fixtures.js +13 -0
  263. package/es/molecule/pdf/test/fixtures.js.map +1 -0
  264. package/es/molecule/popin/test/fixtures.js +21 -0
  265. package/es/molecule/popin/test/fixtures.js.map +1 -0
  266. package/es/molecule/product-card/test/fixtures.js +13 -0
  267. package/es/molecule/product-card/test/fixtures.js.map +1 -0
  268. package/es/molecule/progress-bar/test/fixtures.js +15 -0
  269. package/es/molecule/progress-bar/test/fixtures.js.map +1 -0
  270. package/es/molecule/questions/drop-down/test/fixtures.js +15 -0
  271. package/es/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  272. package/es/molecule/questions/free-text/test/fixtures.js +15 -0
  273. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -0
  274. package/es/molecule/questions/qcm/test/fixtures.js +19 -0
  275. package/es/molecule/questions/qcm/test/fixtures.js.map +1 -0
  276. package/es/molecule/questions/qcm-drag/test/fixtures.js +15 -0
  277. package/es/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  278. package/es/molecule/questions/qcm-graphic/test/fixtures.js +15 -0
  279. package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  280. package/es/molecule/questions/question-range/test/fixtures.js +13 -0
  281. package/es/molecule/questions/question-range/test/fixtures.js.map +1 -0
  282. package/es/molecule/questions/template/test/fixtures.js +15 -0
  283. package/es/molecule/questions/template/test/fixtures.js.map +1 -0
  284. package/es/molecule/resource-player/test/fixtures.js +25 -0
  285. package/es/molecule/resource-player/test/fixtures.js.map +1 -0
  286. package/es/molecule/scope-content/test/fixtures.js +27 -0
  287. package/es/molecule/scope-content/test/fixtures.js.map +1 -0
  288. package/es/molecule/scope-tabs/test/fixtures.js +17 -0
  289. package/es/molecule/scope-tabs/test/fixtures.js.map +1 -0
  290. package/es/molecule/search/test/fixtures.js +15 -0
  291. package/es/molecule/search/test/fixtures.js.map +1 -0
  292. package/es/molecule/search-form/test/fixtures.js +13 -0
  293. package/es/molecule/search-form/test/fixtures.js.map +1 -0
  294. package/es/molecule/select-multiple/test/fixtures.js +23 -0
  295. package/es/molecule/select-multiple/test/fixtures.js.map +1 -0
  296. package/es/molecule/setup-cohort-item/test/fixtures.js +19 -0
  297. package/es/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  298. package/es/molecule/setup-section/test/fixtures.js +25 -0
  299. package/es/molecule/setup-section/test/fixtures.js.map +1 -0
  300. package/es/molecule/setup-sections/test/fixtures.js +19 -0
  301. package/es/molecule/setup-sections/test/fixtures.js.map +1 -0
  302. package/es/molecule/setup-slide/test/fixtures.js +23 -0
  303. package/es/molecule/setup-slide/test/fixtures.js.map +1 -0
  304. package/es/molecule/setup-slider/test/fixtures.js +15 -0
  305. package/es/molecule/setup-slider/test/fixtures.js.map +1 -0
  306. package/es/molecule/share/test/fixtures.js +13 -0
  307. package/es/molecule/share/test/fixtures.js.map +1 -0
  308. package/es/molecule/ssmenu-list/test/fixtures.js +19 -0
  309. package/es/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  310. package/es/molecule/subscription-freemium/test/fixtures.js +13 -0
  311. package/es/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  312. package/es/molecule/subscription-premium/test/fixtures.js +15 -0
  313. package/es/molecule/subscription-premium/test/fixtures.js.map +1 -0
  314. package/es/molecule/table/test/fixtures.js +19 -0
  315. package/es/molecule/table/test/fixtures.js.map +1 -0
  316. package/es/molecule/teams-popin/test/fixtures.js +29 -0
  317. package/es/molecule/teams-popin/test/fixtures.js.map +1 -0
  318. package/es/molecule/theme-image/test/fixtures.js +13 -0
  319. package/es/molecule/theme-image/test/fixtures.js.map +1 -0
  320. package/es/molecule/titled-checkbox/test/fixtures.js +17 -0
  321. package/es/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  322. package/es/molecule/unsubscribe/test/fixtures.js +15 -0
  323. package/es/molecule/unsubscribe/test/fixtures.js.map +1 -0
  324. package/es/molecule/vertical-tabs/index.js +51 -0
  325. package/es/molecule/vertical-tabs/index.js.map +1 -0
  326. package/es/molecule/vertical-tabs/style.css +69 -0
  327. package/es/molecule/vertical-tabs/test/fixtures/default.js +41 -0
  328. package/es/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
  329. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js +81 -0
  330. package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
  331. package/es/molecule/video-iframe/test/fixtures.js +25 -0
  332. package/es/molecule/video-iframe/test/fixtures.js.map +1 -0
  333. package/es/molecule/video-player/test/fixtures.js +29 -0
  334. package/es/molecule/video-player/test/fixtures.js.map +1 -0
  335. package/es/molecule/wizard-summary/index.js +187 -0
  336. package/es/molecule/wizard-summary/index.js.map +1 -0
  337. package/es/molecule/wizard-summary/style.css +247 -0
  338. package/es/molecule/wizard-summary/test/fixtures/default.js +123 -0
  339. package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  340. package/es/molecule/wizard-summary/test/fixtures/one-section.js +22 -0
  341. package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  342. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js +117 -0
  343. package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  344. package/es/molecule/wizard-summary/test/fixtures/three-sections.js +41 -0
  345. package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  346. package/es/molecule/wizard-summary/test/fixtures/two-sections.js +34 -0
  347. package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  348. package/es/organism/accordion/container/test/fixtures.js +17 -0
  349. package/es/organism/accordion/container/test/fixtures.js.map +1 -0
  350. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +13 -0
  351. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  352. package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
  353. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  354. package/es/organism/accordion/part/test/fixtures.js +15 -0
  355. package/es/organism/accordion/part/test/fixtures.js.map +1 -0
  356. package/es/organism/accordion/toggler/test/fixtures.js +17 -0
  357. package/es/organism/accordion/toggler/test/fixtures.js.map +1 -0
  358. package/es/organism/brand-analytics/test/fixtures.js +23 -0
  359. package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
  360. package/es/organism/brand-dashboard/test/fixtures.js +13 -0
  361. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
  362. package/es/organism/brand-form/test/fixtures.js +31 -0
  363. package/es/organism/brand-form/test/fixtures.js.map +1 -0
  364. package/es/organism/brand-table/test/fixtures.js +19 -0
  365. package/es/organism/brand-table/test/fixtures.js.map +1 -0
  366. package/es/organism/brand-upload/test/fixtures.js +15 -0
  367. package/es/organism/brand-upload/test/fixtures.js.map +1 -0
  368. package/es/organism/cards-grid/test/fixtures.js +19 -0
  369. package/es/organism/cards-grid/test/fixtures.js.map +1 -0
  370. package/es/organism/cart/test/fixtures.js +13 -0
  371. package/es/organism/cart/test/fixtures.js.map +1 -0
  372. package/es/organism/discussion/test/fixtures.js +19 -0
  373. package/es/organism/discussion/test/fixtures.js.map +1 -0
  374. package/es/organism/get-the-app/test/fixtures.js +13 -0
  375. package/es/organism/get-the-app/test/fixtures.js.map +1 -0
  376. package/es/organism/grid-list/test/fixtures.js +13 -0
  377. package/es/organism/grid-list/test/fixtures.js.map +1 -0
  378. package/es/organism/header/test/fixtures.js +13 -0
  379. package/es/organism/header/test/fixtures.js.map +1 -0
  380. package/es/organism/hero/test/fixtures.js +17 -0
  381. package/es/organism/hero/test/fixtures.js.map +1 -0
  382. package/es/organism/mooc/image-slider/test/fixtures.js +15 -0
  383. package/es/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  384. package/es/organism/mooc-footer/test/fixtures.js +23 -0
  385. package/es/organism/mooc-footer/test/fixtures.js.map +1 -0
  386. package/es/organism/mooc-header/test/fixtures.js +31 -0
  387. package/es/organism/mooc-header/test/fixtures.js.map +1 -0
  388. package/es/organism/popin/test/fixtures.js +13 -0
  389. package/es/organism/popin/test/fixtures.js.map +1 -0
  390. package/es/organism/resource-browser/test/fixtures.js +37 -0
  391. package/es/organism/resource-browser/test/fixtures.js.map +1 -0
  392. package/es/organism/settings/test/fixtures.js +19 -0
  393. package/es/organism/settings/test/fixtures.js.map +1 -0
  394. package/es/organism/setup-header/test/fixtures.js +15 -0
  395. package/es/organism/setup-header/test/fixtures.js.map +1 -0
  396. package/es/organism/sidebar/test/fixtures.js +23 -0
  397. package/es/organism/sidebar/test/fixtures.js.map +1 -0
  398. package/es/organism/slider/test/fixtures.js +15 -0
  399. package/es/organism/slider/test/fixtures.js.map +1 -0
  400. package/es/organism/user-preferences/style.css +1 -0
  401. package/es/organism/user-preferences/test/fixtures.js +13 -0
  402. package/es/organism/user-preferences/test/fixtures.js.map +1 -0
  403. package/es/template/activity/test/fixtures.js +21 -0
  404. package/es/template/activity/test/fixtures.js.map +1 -0
  405. package/es/template/app-player/loading/test/fixtures.js +13 -0
  406. package/es/template/app-player/loading/test/fixtures.js.map +1 -0
  407. package/es/template/app-player/player/slides/footer/test/fixtures.js +29 -0
  408. package/es/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  409. package/es/template/app-player/player/slides/header/test/fixtures.js +23 -0
  410. package/es/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  411. package/es/template/app-player/player/slides/test/fixtures.js +79 -0
  412. package/es/template/app-player/player/slides/test/fixtures.js.map +1 -0
  413. package/es/template/app-player/player/test/fixtures.js +55 -0
  414. package/es/template/app-player/player/test/fixtures.js.map +1 -0
  415. package/es/template/app-player/popin-correction/test/fixtures.js +47 -0
  416. package/es/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  417. package/es/template/app-player/popin-end/test/fixtures.js +49 -0
  418. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -0
  419. package/es/template/app-player/popin-header/test/fixtures.js +29 -0
  420. package/es/template/app-player/popin-header/test/fixtures.js.map +1 -0
  421. package/es/template/back-office/brand-create/test/fixtures.js +19 -0
  422. package/es/template/back-office/brand-create/test/fixtures.js.map +1 -0
  423. package/es/template/back-office/brand-list/test/fixtures.js +17 -0
  424. package/es/template/back-office/brand-list/test/fixtures.js.map +1 -0
  425. package/es/template/back-office/brand-update/index.js +1 -1
  426. package/es/template/back-office/brand-update/index.js.map +1 -1
  427. package/es/template/back-office/brand-update/test/fixtures.js +67 -0
  428. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -0
  429. package/es/template/back-office/dashboard-preview/test/fixtures.js +23 -0
  430. package/es/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  431. package/es/template/battle-requests/test/fixtures.js +13 -0
  432. package/es/template/battle-requests/test/fixtures.js.map +1 -0
  433. package/es/template/cockpit/jw-uploader/test/fixtures.js +13 -0
  434. package/es/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  435. package/es/template/common/authors/test/fixtures.js +15 -0
  436. package/es/template/common/authors/test/fixtures.js.map +1 -0
  437. package/es/template/common/coorp-header/test/fixtures.js +15 -0
  438. package/es/template/common/coorp-header/test/fixtures.js.map +1 -0
  439. package/es/template/common/dashboard/test/fixtures.js +17 -0
  440. package/es/template/common/dashboard/test/fixtures.js.map +1 -0
  441. package/es/template/common/discipline/test/fixtures.js +47 -0
  442. package/es/template/common/discipline/test/fixtures.js.map +1 -0
  443. package/es/template/common/search-page/test/fixtures.js +17 -0
  444. package/es/template/common/search-page/test/fixtures.js.map +1 -0
  445. package/es/template/external-course/test/fixtures.js +31 -0
  446. package/es/template/external-course/test/fixtures.js.map +1 -0
  447. package/es/template/teams-dashboard/test/fixtures.js +17 -0
  448. package/es/template/teams-dashboard/test/fixtures.js.map +1 -0
  449. package/es/variables/colors.css +20 -2
  450. package/lib/atom/autocomplete/test/fixtures.js +31 -0
  451. package/lib/atom/autocomplete/test/fixtures.js.map +1 -0
  452. package/lib/atom/avatar/test/fixtures.js +22 -0
  453. package/lib/atom/avatar/test/fixtures.js.map +1 -0
  454. package/lib/atom/bullet-point-menu-button/test/fixtures.js +43 -0
  455. package/lib/atom/bullet-point-menu-button/test/fixtures.js.map +1 -0
  456. package/lib/atom/button/index.js +3 -1
  457. package/lib/atom/button/index.js.map +1 -1
  458. package/lib/atom/button/test/fixtures.js +43 -0
  459. package/lib/atom/button/test/fixtures.js.map +1 -0
  460. package/lib/atom/catalog-section/test/fixtures.js +25 -0
  461. package/lib/atom/catalog-section/test/fixtures.js.map +1 -0
  462. package/lib/atom/centered-text/test/fixtures.js +22 -0
  463. package/lib/atom/centered-text/test/fixtures.js.map +1 -0
  464. package/lib/atom/checkbox/test/fixtures.js +31 -0
  465. package/lib/atom/checkbox/test/fixtures.js.map +1 -0
  466. package/lib/atom/chips/index.js +52 -0
  467. package/lib/atom/chips/index.js.map +1 -0
  468. package/lib/atom/chips/style.css +66 -0
  469. package/lib/atom/chips/test/fixtures/default.js +14 -0
  470. package/lib/atom/chips/test/fixtures/default.js.map +1 -0
  471. package/lib/atom/chips/test/fixtures/non-selected.js +14 -0
  472. package/lib/atom/chips/test/fixtures/non-selected.js.map +1 -0
  473. package/lib/atom/clue/test/fixtures.js +28 -0
  474. package/lib/atom/clue/test/fixtures.js.map +1 -0
  475. package/lib/atom/content-badge/index.js +32 -0
  476. package/lib/atom/content-badge/index.js.map +1 -0
  477. package/lib/atom/content-badge/style.css +59 -0
  478. package/lib/atom/content-badge/test/fixtures/advanced.js +12 -0
  479. package/lib/atom/content-badge/test/fixtures/advanced.js.map +1 -0
  480. package/lib/atom/content-badge/test/fixtures/article.js +12 -0
  481. package/lib/atom/content-badge/test/fixtures/article.js.map +1 -0
  482. package/lib/atom/content-badge/test/fixtures/chapter.js +12 -0
  483. package/lib/atom/content-badge/test/fixtures/chapter.js.map +1 -0
  484. package/lib/atom/content-badge/test/fixtures/coach.js +12 -0
  485. package/lib/atom/content-badge/test/fixtures/coach.js.map +1 -0
  486. package/lib/atom/content-badge/test/fixtures/default.js +12 -0
  487. package/lib/atom/content-badge/test/fixtures/default.js.map +1 -0
  488. package/lib/atom/content-badge/test/fixtures/podcast.js +12 -0
  489. package/lib/atom/content-badge/test/fixtures/podcast.js.map +1 -0
  490. package/lib/atom/content-badge/test/fixtures/scorm.js +12 -0
  491. package/lib/atom/content-badge/test/fixtures/scorm.js.map +1 -0
  492. package/lib/atom/content-badge/test/fixtures/video.js +12 -0
  493. package/lib/atom/content-badge/test/fixtures/video.js.map +1 -0
  494. package/lib/atom/cta/test/fixtures.js +58 -0
  495. package/lib/atom/cta/test/fixtures.js.map +1 -0
  496. package/lib/atom/difficulty-level/test/fixtures.js +31 -0
  497. package/lib/atom/difficulty-level/test/fixtures.js.map +1 -0
  498. package/lib/atom/drag-and-drop/test/fixtures.js +37 -0
  499. package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -0
  500. package/lib/atom/image-upload/test/fixtures.js +46 -0
  501. package/lib/atom/image-upload/test/fixtures.js.map +1 -0
  502. package/lib/atom/input-checkbox/test/fixtures.js +37 -0
  503. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -0
  504. package/lib/atom/input-color/test/fixtures.js +31 -0
  505. package/lib/atom/input-color/test/fixtures.js.map +1 -0
  506. package/lib/atom/input-doublestep/test/fixtures.js +34 -0
  507. package/lib/atom/input-doublestep/test/fixtures.js.map +1 -0
  508. package/lib/atom/input-html/test/fixtures.js +28 -0
  509. package/lib/atom/input-html/test/fixtures.js.map +1 -0
  510. package/lib/atom/input-readonly/test/fixtures.js +22 -0
  511. package/lib/atom/input-readonly/test/fixtures.js.map +1 -0
  512. package/lib/atom/input-switch/test/fixtures.js +37 -0
  513. package/lib/atom/input-switch/test/fixtures.js.map +1 -0
  514. package/lib/atom/input-text/index.js +36 -6
  515. package/lib/atom/input-text/index.js.map +1 -1
  516. package/lib/atom/input-text/style.css +229 -1
  517. package/lib/atom/input-text/test/fixtures/cm-default.js +22 -0
  518. package/lib/atom/input-text/test/fixtures/cm-default.js.map +1 -0
  519. package/lib/atom/input-text/test/fixtures.js +40 -0
  520. package/lib/atom/input-text/test/fixtures.js.map +1 -0
  521. package/lib/atom/input-textarea/index.js +38 -11
  522. package/lib/atom/input-textarea/index.js.map +1 -1
  523. package/lib/atom/input-textarea/style.css +265 -0
  524. package/lib/atom/input-textarea/test/fixtures/cm-default.js +22 -0
  525. package/lib/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
  526. package/lib/atom/input-textarea/test/fixtures/cm-empty.js +22 -0
  527. package/lib/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
  528. package/lib/atom/input-textarea/test/fixtures.js +28 -0
  529. package/lib/atom/input-textarea/test/fixtures.js.map +1 -0
  530. package/lib/atom/label/test/fixtures.js +25 -0
  531. package/lib/atom/label/test/fixtures.js.map +1 -0
  532. package/lib/atom/life/test/fixtures.js +40 -0
  533. package/lib/atom/life/test/fixtures.js.map +1 -0
  534. package/lib/atom/link/test/fixtures.js +28 -0
  535. package/lib/atom/link/test/fixtures.js.map +1 -0
  536. package/lib/atom/loader/test/fixtures.js +22 -0
  537. package/lib/atom/loader/test/fixtures.js.map +1 -0
  538. package/lib/atom/notification/test/fixtures.js +28 -0
  539. package/lib/atom/notification/test/fixtures.js.map +1 -0
  540. package/lib/atom/picture/test/fixtures.js +31 -0
  541. package/lib/atom/picture/test/fixtures.js.map +1 -0
  542. package/lib/atom/picture-background/test/fixtures.js +31 -0
  543. package/lib/atom/picture-background/test/fixtures.js.map +1 -0
  544. package/lib/atom/promo-code/test/fixtures.js +28 -0
  545. package/lib/atom/promo-code/test/fixtures.js.map +1 -0
  546. package/lib/atom/provider/test/fixtures.js +22 -0
  547. package/lib/atom/provider/test/fixtures.js.map +1 -0
  548. package/lib/atom/radio-group/test/fixtures.js +28 -0
  549. package/lib/atom/radio-group/test/fixtures.js.map +1 -0
  550. package/lib/atom/range/test/fixtures.js +25 -0
  551. package/lib/atom/range/test/fixtures.js.map +1 -0
  552. package/lib/atom/resource-miniature/test/fixtures.js +34 -0
  553. package/lib/atom/resource-miniature/test/fixtures.js.map +1 -0
  554. package/lib/atom/select/test/fixtures.js +67 -0
  555. package/lib/atom/select/test/fixtures.js.map +1 -0
  556. package/lib/atom/slide/test/fixtures.js +34 -0
  557. package/lib/atom/slide/test/fixtures.js.map +1 -0
  558. package/lib/atom/social-link/test/fixtures.js +28 -0
  559. package/lib/atom/social-link/test/fixtures.js.map +1 -0
  560. package/lib/atom/spinner/test/fixtures.js +22 -0
  561. package/lib/atom/spinner/test/fixtures.js.map +1 -0
  562. package/lib/atom/tab/test/fixtures.js +22 -0
  563. package/lib/atom/tab/test/fixtures.js.map +1 -0
  564. package/lib/atom/tab-content/test/fixtures.js +25 -0
  565. package/lib/atom/tab-content/test/fixtures.js.map +1 -0
  566. package/lib/atom/title/test/fixtures.js +22 -0
  567. package/lib/atom/title/test/fixtures.js.map +1 -0
  568. package/lib/atom/video-upload/test/fixtures.js +34 -0
  569. package/lib/atom/video-upload/test/fixtures.js.map +1 -0
  570. package/lib/atom/wizard-steps/index.js +49 -0
  571. package/lib/atom/wizard-steps/index.js.map +1 -0
  572. package/lib/atom/wizard-steps/style.css +150 -0
  573. package/lib/atom/wizard-steps/test/fixtures/default.js +33 -0
  574. package/lib/atom/wizard-steps/test/fixtures/default.js.map +1 -0
  575. package/lib/atom/wizard-steps/test/fixtures/first-step.js +33 -0
  576. package/lib/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
  577. package/lib/atom/wizard-steps/test/fixtures/last-step.js +33 -0
  578. package/lib/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
  579. package/lib/hoc/animation/test/fixtures.js +25 -0
  580. package/lib/hoc/animation/test/fixtures.js.map +1 -0
  581. package/lib/hoc/animation-scheduler/test/fixtures.js +25 -0
  582. package/lib/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  583. package/lib/hoc/swapper/test/fixtures.js +22 -0
  584. package/lib/hoc/swapper/test/fixtures.js.map +1 -0
  585. package/lib/hoc/transition/test/fixtures.js +22 -0
  586. package/lib/hoc/transition/test/fixtures.js.map +1 -0
  587. package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
  588. package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  589. package/lib/molecule/answer/test/fixtures.js +55 -0
  590. package/lib/molecule/answer/test/fixtures.js.map +1 -0
  591. package/lib/molecule/audio/test/fixtures.js +25 -0
  592. package/lib/molecule/audio/test/fixtures.js.map +1 -0
  593. package/lib/molecule/banner/index.js +59 -0
  594. package/lib/molecule/banner/index.js.map +1 -0
  595. package/lib/molecule/banner/style.css +63 -0
  596. package/lib/molecule/banner/test/fixtures/default.js +16 -0
  597. package/lib/molecule/banner/test/fixtures/default.js.map +1 -0
  598. package/lib/molecule/banner/test/fixtures/error-banner.js +12 -0
  599. package/lib/molecule/banner/test/fixtures/error-banner.js.map +1 -0
  600. package/lib/molecule/battle-request/test/fixtures.js +25 -0
  601. package/lib/molecule/battle-request/test/fixtures.js.map +1 -0
  602. package/lib/molecule/brand-card/test/fixtures.js +25 -0
  603. package/lib/molecule/brand-card/test/fixtures.js.map +1 -0
  604. package/lib/molecule/brand-card-create/test/fixtures.js +22 -0
  605. package/lib/molecule/brand-card-create/test/fixtures.js.map +1 -0
  606. package/lib/molecule/brand-create-form/test/fixtures.js +31 -0
  607. package/lib/molecule/brand-create-form/test/fixtures.js.map +1 -0
  608. package/lib/molecule/brand-download-box/test/fixtures.js +28 -0
  609. package/lib/molecule/brand-download-box/test/fixtures.js.map +1 -0
  610. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js +56 -0
  611. package/lib/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
  612. package/lib/molecule/brand-form-group/test/fixtures/default.js +12 -3
  613. package/lib/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
  614. package/lib/molecule/brand-form-group/test/fixtures.js +52 -0
  615. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -0
  616. package/lib/molecule/brand-tabs/test/fixtures.js +46 -0
  617. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -0
  618. package/lib/molecule/brand-upload-box/test/fixtures.js +28 -0
  619. package/lib/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  620. package/lib/molecule/breadcrumbs/test/fixtures.js +22 -0
  621. package/lib/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  622. package/lib/molecule/card/index.js +17 -5
  623. package/lib/molecule/card/index.js.map +1 -1
  624. package/lib/molecule/card/selectable.css +71 -0
  625. package/lib/molecule/card/selectable.js +45 -0
  626. package/lib/molecule/card/selectable.js.map +1 -0
  627. package/lib/molecule/card/test/fixtures/default.js +1 -0
  628. package/lib/molecule/card/test/fixtures/default.js.map +1 -1
  629. package/lib/molecule/card/test/fixtures/selectable-false.js +26 -0
  630. package/lib/molecule/card/test/fixtures/selectable-false.js.map +1 -0
  631. package/lib/molecule/card/test/fixtures/selectable-true.js +27 -0
  632. package/lib/molecule/card/test/fixtures/selectable-true.js.map +1 -0
  633. package/lib/molecule/card/test/fixtures.js +61 -0
  634. package/lib/molecule/card/test/fixtures.js.map +1 -0
  635. package/lib/molecule/card-content/index.js +14 -3
  636. package/lib/molecule/card-content/index.js.map +1 -1
  637. package/lib/molecule/card-content/style.css +13 -3
  638. package/lib/molecule/card-content/test/fixtures.js +43 -0
  639. package/lib/molecule/card-content/test/fixtures.js.map +1 -0
  640. package/lib/molecule/card-with-button/test/fixtures.js +28 -0
  641. package/lib/molecule/card-with-button/test/fixtures.js.map +1 -0
  642. package/lib/molecule/cm-popin/index.js +89 -0
  643. package/lib/molecule/cm-popin/index.js.map +1 -0
  644. package/lib/molecule/cm-popin/style.css +157 -0
  645. package/lib/molecule/cm-popin/test/fixtures/dangerous.js +21 -0
  646. package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
  647. package/lib/molecule/cm-popin/test/fixtures/default.js +21 -0
  648. package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -0
  649. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +22 -0
  650. package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
  651. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  652. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  653. package/lib/molecule/cookie-banner/test/fixtures.js +22 -0
  654. package/lib/molecule/cookie-banner/test/fixtures.js.map +1 -0
  655. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +25 -0
  656. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  657. package/lib/molecule/dashboard/cards-list/test/fixtures.js +37 -0
  658. package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  659. package/lib/molecule/dashboard/news-list/test/fixtures.js +28 -0
  660. package/lib/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  661. package/lib/molecule/dashboard/start-battle/test/fixtures.js +25 -0
  662. package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  663. package/lib/molecule/discipline-cta/test/fixtures.js +25 -0
  664. package/lib/molecule/discipline-cta/test/fixtures.js.map +1 -0
  665. package/lib/molecule/discipline-header/test/fixtures.js +43 -0
  666. package/lib/molecule/discipline-header/test/fixtures.js.map +1 -0
  667. package/lib/molecule/discipline-partners/index.js +5 -2
  668. package/lib/molecule/discipline-partners/index.js.map +1 -1
  669. package/lib/molecule/discipline-partners/test/fixtures.js +34 -0
  670. package/lib/molecule/discipline-partners/test/fixtures.js.map +1 -0
  671. package/lib/molecule/discipline-scope/test/fixtures.js +43 -0
  672. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -0
  673. package/lib/molecule/drag-and-drop/test/fixtures.js +40 -0
  674. package/lib/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  675. package/lib/molecule/external-content-button/test/fixtures.js +31 -0
  676. package/lib/molecule/external-content-button/test/fixtures.js.map +1 -0
  677. package/lib/molecule/external-content-viewer/test/fixtures.js +43 -0
  678. package/lib/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  679. package/lib/molecule/feedback/test/fixtures.js +43 -0
  680. package/lib/molecule/feedback/test/fixtures.js.map +1 -0
  681. package/lib/molecule/filters/test/fixtures.js +52 -0
  682. package/lib/molecule/filters/test/fixtures.js.map +1 -0
  683. package/lib/molecule/forum/forum-comment/test/fixtures.js +28 -0
  684. package/lib/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  685. package/lib/molecule/forum/forum-post/test/fixtures.js +49 -0
  686. package/lib/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  687. package/lib/molecule/forum/forum-thread/test/fixtures.js +28 -0
  688. package/lib/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  689. package/lib/molecule/hero/test/fixtures.js +25 -0
  690. package/lib/molecule/hero/test/fixtures.js.map +1 -0
  691. package/lib/molecule/login-alert/test/fixtures.js +22 -0
  692. package/lib/molecule/login-alert/test/fixtures.js.map +1 -0
  693. package/lib/molecule/menu-list/test/fixtures.js +22 -0
  694. package/lib/molecule/menu-list/test/fixtures.js.map +1 -0
  695. package/lib/molecule/message-popin/test/fixtures.js +22 -0
  696. package/lib/molecule/message-popin/test/fixtures.js.map +1 -0
  697. package/lib/molecule/modal/test/fixtures.js +22 -0
  698. package/lib/molecule/modal/test/fixtures.js.map +1 -0
  699. package/lib/molecule/module-bubble/test/fixtures.js +28 -0
  700. package/lib/molecule/module-bubble/test/fixtures.js.map +1 -0
  701. package/lib/molecule/module-card/test/fixtures.js +28 -0
  702. package/lib/molecule/module-card/test/fixtures.js.map +1 -0
  703. package/lib/molecule/news/test/fixtures.js +37 -0
  704. package/lib/molecule/news/test/fixtures.js.map +1 -0
  705. package/lib/molecule/notification-banner/test/fixtures.js +28 -0
  706. package/lib/molecule/notification-banner/test/fixtures.js.map +1 -0
  707. package/lib/molecule/pagination/test/fixtures.js +25 -0
  708. package/lib/molecule/pagination/test/fixtures.js.map +1 -0
  709. package/lib/molecule/payment-form/test/fixtures.js +28 -0
  710. package/lib/molecule/payment-form/test/fixtures.js.map +1 -0
  711. package/lib/molecule/pdf/test/fixtures.js +22 -0
  712. package/lib/molecule/pdf/test/fixtures.js.map +1 -0
  713. package/lib/molecule/popin/test/fixtures.js +34 -0
  714. package/lib/molecule/popin/test/fixtures.js.map +1 -0
  715. package/lib/molecule/product-card/test/fixtures.js +22 -0
  716. package/lib/molecule/product-card/test/fixtures.js.map +1 -0
  717. package/lib/molecule/progress-bar/test/fixtures.js +25 -0
  718. package/lib/molecule/progress-bar/test/fixtures.js.map +1 -0
  719. package/lib/molecule/questions/drop-down/test/fixtures.js +25 -0
  720. package/lib/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  721. package/lib/molecule/questions/free-text/test/fixtures.js +25 -0
  722. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -0
  723. package/lib/molecule/questions/qcm/test/fixtures.js +31 -0
  724. package/lib/molecule/questions/qcm/test/fixtures.js.map +1 -0
  725. package/lib/molecule/questions/qcm-drag/test/fixtures.js +25 -0
  726. package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  727. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +25 -0
  728. package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  729. package/lib/molecule/questions/question-range/test/fixtures.js +22 -0
  730. package/lib/molecule/questions/question-range/test/fixtures.js.map +1 -0
  731. package/lib/molecule/questions/template/test/fixtures.js +25 -0
  732. package/lib/molecule/questions/template/test/fixtures.js.map +1 -0
  733. package/lib/molecule/resource-player/test/fixtures.js +40 -0
  734. package/lib/molecule/resource-player/test/fixtures.js.map +1 -0
  735. package/lib/molecule/scope-content/test/fixtures.js +43 -0
  736. package/lib/molecule/scope-content/test/fixtures.js.map +1 -0
  737. package/lib/molecule/scope-tabs/test/fixtures.js +28 -0
  738. package/lib/molecule/scope-tabs/test/fixtures.js.map +1 -0
  739. package/lib/molecule/search/test/fixtures.js +25 -0
  740. package/lib/molecule/search/test/fixtures.js.map +1 -0
  741. package/lib/molecule/search-form/test/fixtures.js +22 -0
  742. package/lib/molecule/search-form/test/fixtures.js.map +1 -0
  743. package/lib/molecule/select-multiple/test/fixtures.js +37 -0
  744. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -0
  745. package/lib/molecule/setup-cohort-item/test/fixtures.js +31 -0
  746. package/lib/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  747. package/lib/molecule/setup-section/test/fixtures.js +40 -0
  748. package/lib/molecule/setup-section/test/fixtures.js.map +1 -0
  749. package/lib/molecule/setup-sections/test/fixtures.js +31 -0
  750. package/lib/molecule/setup-sections/test/fixtures.js.map +1 -0
  751. package/lib/molecule/setup-slide/test/fixtures.js +37 -0
  752. package/lib/molecule/setup-slide/test/fixtures.js.map +1 -0
  753. package/lib/molecule/setup-slider/test/fixtures.js +25 -0
  754. package/lib/molecule/setup-slider/test/fixtures.js.map +1 -0
  755. package/lib/molecule/share/test/fixtures.js +22 -0
  756. package/lib/molecule/share/test/fixtures.js.map +1 -0
  757. package/lib/molecule/ssmenu-list/test/fixtures.js +31 -0
  758. package/lib/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  759. package/lib/molecule/subscription-freemium/test/fixtures.js +22 -0
  760. package/lib/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  761. package/lib/molecule/subscription-premium/test/fixtures.js +25 -0
  762. package/lib/molecule/subscription-premium/test/fixtures.js.map +1 -0
  763. package/lib/molecule/table/test/fixtures.js +31 -0
  764. package/lib/molecule/table/test/fixtures.js.map +1 -0
  765. package/lib/molecule/teams-popin/test/fixtures.js +46 -0
  766. package/lib/molecule/teams-popin/test/fixtures.js.map +1 -0
  767. package/lib/molecule/theme-image/test/fixtures.js +22 -0
  768. package/lib/molecule/theme-image/test/fixtures.js.map +1 -0
  769. package/lib/molecule/titled-checkbox/test/fixtures.js +28 -0
  770. package/lib/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  771. package/lib/molecule/unsubscribe/test/fixtures.js +25 -0
  772. package/lib/molecule/unsubscribe/test/fixtures.js.map +1 -0
  773. package/lib/molecule/vertical-tabs/index.js +66 -0
  774. package/lib/molecule/vertical-tabs/index.js.map +1 -0
  775. package/lib/molecule/vertical-tabs/style.css +69 -0
  776. package/lib/molecule/vertical-tabs/test/fixtures/default.js +46 -0
  777. package/lib/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
  778. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js +86 -0
  779. package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
  780. package/lib/molecule/video-iframe/test/fixtures.js +40 -0
  781. package/lib/molecule/video-iframe/test/fixtures.js.map +1 -0
  782. package/lib/molecule/video-player/test/fixtures.js +46 -0
  783. package/lib/molecule/video-player/test/fixtures.js.map +1 -0
  784. package/lib/molecule/wizard-summary/index.js +205 -0
  785. package/lib/molecule/wizard-summary/index.js.map +1 -0
  786. package/lib/molecule/wizard-summary/style.css +247 -0
  787. package/lib/molecule/wizard-summary/test/fixtures/default.js +128 -0
  788. package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
  789. package/lib/molecule/wizard-summary/test/fixtures/one-section.js +27 -0
  790. package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
  791. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js +122 -0
  792. package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
  793. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +46 -0
  794. package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
  795. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +39 -0
  796. package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
  797. package/lib/organism/accordion/container/test/fixtures.js +28 -0
  798. package/lib/organism/accordion/container/test/fixtures.js.map +1 -0
  799. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +22 -0
  800. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  801. package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
  802. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  803. package/lib/organism/accordion/part/test/fixtures.js +25 -0
  804. package/lib/organism/accordion/part/test/fixtures.js.map +1 -0
  805. package/lib/organism/accordion/toggler/test/fixtures.js +28 -0
  806. package/lib/organism/accordion/toggler/test/fixtures.js.map +1 -0
  807. package/lib/organism/brand-analytics/test/fixtures.js +37 -0
  808. package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
  809. package/lib/organism/brand-dashboard/test/fixtures.js +22 -0
  810. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
  811. package/lib/organism/brand-form/test/fixtures.js +49 -0
  812. package/lib/organism/brand-form/test/fixtures.js.map +1 -0
  813. package/lib/organism/brand-table/test/fixtures.js +31 -0
  814. package/lib/organism/brand-table/test/fixtures.js.map +1 -0
  815. package/lib/organism/brand-upload/test/fixtures.js +25 -0
  816. package/lib/organism/brand-upload/test/fixtures.js.map +1 -0
  817. package/lib/organism/cards-grid/test/fixtures.js +31 -0
  818. package/lib/organism/cards-grid/test/fixtures.js.map +1 -0
  819. package/lib/organism/cart/test/fixtures.js +22 -0
  820. package/lib/organism/cart/test/fixtures.js.map +1 -0
  821. package/lib/organism/discussion/test/fixtures.js +31 -0
  822. package/lib/organism/discussion/test/fixtures.js.map +1 -0
  823. package/lib/organism/get-the-app/test/fixtures.js +22 -0
  824. package/lib/organism/get-the-app/test/fixtures.js.map +1 -0
  825. package/lib/organism/grid-list/test/fixtures.js +22 -0
  826. package/lib/organism/grid-list/test/fixtures.js.map +1 -0
  827. package/lib/organism/header/test/fixtures.js +22 -0
  828. package/lib/organism/header/test/fixtures.js.map +1 -0
  829. package/lib/organism/hero/test/fixtures.js +28 -0
  830. package/lib/organism/hero/test/fixtures.js.map +1 -0
  831. package/lib/organism/mooc/image-slider/test/fixtures.js +25 -0
  832. package/lib/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  833. package/lib/organism/mooc-footer/test/fixtures.js +37 -0
  834. package/lib/organism/mooc-footer/test/fixtures.js.map +1 -0
  835. package/lib/organism/mooc-header/test/fixtures.js +49 -0
  836. package/lib/organism/mooc-header/test/fixtures.js.map +1 -0
  837. package/lib/organism/popin/test/fixtures.js +22 -0
  838. package/lib/organism/popin/test/fixtures.js.map +1 -0
  839. package/lib/organism/resource-browser/test/fixtures.js +58 -0
  840. package/lib/organism/resource-browser/test/fixtures.js.map +1 -0
  841. package/lib/organism/settings/test/fixtures.js +31 -0
  842. package/lib/organism/settings/test/fixtures.js.map +1 -0
  843. package/lib/organism/setup-header/test/fixtures.js +25 -0
  844. package/lib/organism/setup-header/test/fixtures.js.map +1 -0
  845. package/lib/organism/sidebar/test/fixtures.js +37 -0
  846. package/lib/organism/sidebar/test/fixtures.js.map +1 -0
  847. package/lib/organism/slider/test/fixtures.js +25 -0
  848. package/lib/organism/slider/test/fixtures.js.map +1 -0
  849. package/lib/organism/user-preferences/style.css +1 -0
  850. package/lib/organism/user-preferences/test/fixtures.js +22 -0
  851. package/lib/organism/user-preferences/test/fixtures.js.map +1 -0
  852. package/lib/template/activity/test/fixtures.js +34 -0
  853. package/lib/template/activity/test/fixtures.js.map +1 -0
  854. package/lib/template/app-player/loading/test/fixtures.js +22 -0
  855. package/lib/template/app-player/loading/test/fixtures.js.map +1 -0
  856. package/lib/template/app-player/player/slides/footer/test/fixtures.js +46 -0
  857. package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  858. package/lib/template/app-player/player/slides/header/test/fixtures.js +37 -0
  859. package/lib/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  860. package/lib/template/app-player/player/slides/test/fixtures.js +121 -0
  861. package/lib/template/app-player/player/slides/test/fixtures.js.map +1 -0
  862. package/lib/template/app-player/player/test/fixtures.js +85 -0
  863. package/lib/template/app-player/player/test/fixtures.js.map +1 -0
  864. package/lib/template/app-player/popin-correction/test/fixtures.js +73 -0
  865. package/lib/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  866. package/lib/template/app-player/popin-end/test/fixtures.js +76 -0
  867. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -0
  868. package/lib/template/app-player/popin-header/test/fixtures.js +46 -0
  869. package/lib/template/app-player/popin-header/test/fixtures.js.map +1 -0
  870. package/lib/template/back-office/brand-create/test/fixtures.js +31 -0
  871. package/lib/template/back-office/brand-create/test/fixtures.js.map +1 -0
  872. package/lib/template/back-office/brand-list/test/fixtures.js +28 -0
  873. package/lib/template/back-office/brand-list/test/fixtures.js.map +1 -0
  874. package/lib/template/back-office/brand-update/index.js +1 -1
  875. package/lib/template/back-office/brand-update/index.js.map +1 -1
  876. package/lib/template/back-office/brand-update/test/fixtures.js +103 -0
  877. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -0
  878. package/lib/template/back-office/dashboard-preview/test/fixtures.js +37 -0
  879. package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  880. package/lib/template/battle-requests/test/fixtures.js +22 -0
  881. package/lib/template/battle-requests/test/fixtures.js.map +1 -0
  882. package/lib/template/cockpit/jw-uploader/test/fixtures.js +22 -0
  883. package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  884. package/lib/template/common/authors/test/fixtures.js +25 -0
  885. package/lib/template/common/authors/test/fixtures.js.map +1 -0
  886. package/lib/template/common/coorp-header/test/fixtures.js +25 -0
  887. package/lib/template/common/coorp-header/test/fixtures.js.map +1 -0
  888. package/lib/template/common/dashboard/test/fixtures.js +28 -0
  889. package/lib/template/common/dashboard/test/fixtures.js.map +1 -0
  890. package/lib/template/common/discipline/test/fixtures.js +73 -0
  891. package/lib/template/common/discipline/test/fixtures.js.map +1 -0
  892. package/lib/template/common/search-page/test/fixtures.js +28 -0
  893. package/lib/template/common/search-page/test/fixtures.js.map +1 -0
  894. package/lib/template/external-course/test/fixtures.js +49 -0
  895. package/lib/template/external-course/test/fixtures.js.map +1 -0
  896. package/lib/template/teams-dashboard/test/fixtures.js +28 -0
  897. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -0
  898. package/lib/variables/colors.css +20 -2
  899. package/package.json +3 -3
@@ -0,0 +1,29 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeBrandTabs from '..';
5
+ import fixtureAnalytics from './fixtures/analytics';
6
+ import fixtureCohort from './fixtures/cohort';
7
+ import fixtureDefault from './fixtures/default';
8
+ import fixtureImportusers from './fixtures/importusers';
9
+ import fixtureLight from './fixtures/light';
10
+ import fixtureLms from './fixtures/lms';
11
+ import fixtureLookandfeel from './fixtures/lookandfeel';
12
+ import fixtureManageusers from './fixtures/manageusers';
13
+ import fixtureSso from './fixtures/sso';
14
+ test('Molecule › MoleculeBrandTabs > should have valid propTypes', t => {
15
+ t.pass();
16
+ forEach(MoleculeBrandTabs.propTypes, (value, key) => {
17
+ t.not(value, undefined, `PropType for "Molecule.MoleculeBrandTabs.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
18
+ });
19
+ });
20
+ test('Molecule › MoleculeBrandTabs › Analytics › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureAnalytics);
21
+ test('Molecule › MoleculeBrandTabs › Cohort › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureCohort);
22
+ test('Molecule › MoleculeBrandTabs › Default › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureDefault);
23
+ test('Molecule › MoleculeBrandTabs › Importusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureImportusers);
24
+ test('Molecule › MoleculeBrandTabs › Light › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLight);
25
+ test('Molecule › MoleculeBrandTabs › Lms › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLms);
26
+ test('Molecule › MoleculeBrandTabs › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLookandfeel);
27
+ test('Molecule › MoleculeBrandTabs › Manageusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureManageusers);
28
+ test('Molecule › MoleculeBrandTabs › Sso › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureSso);
29
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/brand-tabs/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandTabs","fixtureAnalytics","fixtureCohort","fixtureDefault","fixtureImportusers","fixtureLight","fixtureLms","fixtureLookandfeel","fixtureManageusers","fixtureSso","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AAEAZ,IAAI,CAAC,4DAAD,EAA+Da,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAb,EAAAA,OAAO,CAACE,iBAAiB,CAACY,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAjB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,iBAAxF,EAA2GC,gBAA3G,CAAJ;AACAJ,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,iBAArF,EAAwGE,aAAxG,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGG,cAAzG,CAAJ;AACAN,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GI,kBAA7G,CAAJ;AACAP,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,iBAApF,EAAuGK,YAAvG,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGM,UAArG,CAAJ;AACAT,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GO,kBAA7G,CAAJ;AACAV,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GQ,kBAA7G,CAAJ;AACAX,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGS,UAArG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBrandTabs from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDefault from './fixtures/default';\nimport fixtureImportusers from './fixtures/importusers';\nimport fixtureLight from './fixtures/light';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureSso from './fixtures/sso';\n\ntest('Molecule › MoleculeBrandTabs > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandTabs.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandTabs.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandTabs › Analytics › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureAnalytics);\ntest('Molecule › MoleculeBrandTabs › Cohort › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureCohort);\ntest('Molecule › MoleculeBrandTabs › Default › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureDefault);\ntest('Molecule › MoleculeBrandTabs › Importusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureImportusers);\ntest('Molecule › MoleculeBrandTabs › Light › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLight);\ntest('Molecule › MoleculeBrandTabs › Lms › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLms);\ntest('Molecule › MoleculeBrandTabs › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureLookandfeel);\ntest('Molecule › MoleculeBrandTabs › Manageusers › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureManageusers);\ntest('Molecule › MoleculeBrandTabs › Sso › should be rendered', renderComponentMacro, MoleculeBrandTabs, fixtureSso);\n"],"file":"fixtures.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeBrandUploadBox from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureLoading from './fixtures/loading';
7
+ import fixtureSso from './fixtures/sso';
8
+ test('Molecule › MoleculeBrandUploadBox > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(MoleculeBrandUploadBox.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Molecule.MoleculeBrandUploadBox.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Molecule › MoleculeBrandUploadBox › Default › should be rendered', renderComponentMacro, MoleculeBrandUploadBox, fixtureDefault);
15
+ test('Molecule › MoleculeBrandUploadBox › Loading › should be rendered', renderComponentMacro, MoleculeBrandUploadBox, fixtureLoading);
16
+ test('Molecule › MoleculeBrandUploadBox › Sso › should be rendered', renderComponentMacro, MoleculeBrandUploadBox, fixtureSso);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/brand-upload-box/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandUploadBox","fixtureDefault","fixtureLoading","fixtureSso","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AAEAN,IAAI,CAAC,iEAAD,EAAoEO,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,sBAAsB,CAACM,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHE,cAAnH,CAAJ;AACAL,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,sBAAvF,EAA+GG,UAA/G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBrandUploadBox from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureSso from './fixtures/sso';\n\ntest('Molecule › MoleculeBrandUploadBox > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandUploadBox.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandUploadBox.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandUploadBox › Default › should be rendered', renderComponentMacro, MoleculeBrandUploadBox, fixtureDefault);\ntest('Molecule › MoleculeBrandUploadBox › Loading › should be rendered', renderComponentMacro, MoleculeBrandUploadBox, fixtureLoading);\ntest('Molecule › MoleculeBrandUploadBox › Sso › should be rendered', renderComponentMacro, MoleculeBrandUploadBox, fixtureSso);\n"],"file":"fixtures.js"}
@@ -0,0 +1,13 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeBreadcrumbs from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('Molecule › MoleculeBreadcrumbs > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(MoleculeBreadcrumbs.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "Molecule.MoleculeBreadcrumbs.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('Molecule › MoleculeBreadcrumbs › Default › should be rendered', renderComponentMacro, MoleculeBreadcrumbs, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/breadcrumbs/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBreadcrumbs","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,mBAAP,MAAgC,IAAhC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,8DAAD,EAAiEK,CAAC,IAAI;AACxEA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,mBAAmB,CAACI,SAArB,EAAgC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACrDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,wDAAuDF,GAAI,mEAApF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,mBAAxF,EAA6GC,cAA7G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBreadcrumbs from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Molecule › MoleculeBreadcrumbs > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBreadcrumbs.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBreadcrumbs.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBreadcrumbs › Default › should be rendered', renderComponentMacro, MoleculeBreadcrumbs, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -14,6 +14,7 @@ import Provider from '../../atom/provider';
14
14
  import CardContentInfo, { MODES } from '../card-content';
15
15
  import Customer from './customer';
16
16
  import Favorite from './favorite';
17
+ import Selectable from './selectable';
17
18
  import Notification from './notification';
18
19
  import style from './style.css';
19
20
 
@@ -116,7 +117,10 @@ const Card = memo(function Card(props, context) {
116
117
  removeFavoriteToolTip,
117
118
  onClick,
118
119
  onFavoriteClick,
119
- notification
120
+ isSelected,
121
+ notification,
122
+ badgeCategory,
123
+ badgeLabel
120
124
  } = props;
121
125
 
122
126
  const empty = _isEmpty(_pick(['title', 'type', 'author', 'image'], props));
@@ -160,14 +164,16 @@ const Card = memo(function Card(props, context) {
160
164
  type: type,
161
165
  image: image,
162
166
  empty: empty
163
- }), !_isUndefined(favorite) ? /*#__PURE__*/React.createElement(Favorite, {
167
+ }), _isUndefined(isSelected) && !_isUndefined(favorite) ? /*#__PURE__*/React.createElement(Favorite, {
164
168
  className: style.favorite,
165
169
  favorite: favorite,
166
170
  disabled: disabled,
167
171
  onFavoriteClick: onFavoriteClick,
168
172
  addFavoriteToolTip: addFavoriteToolTip,
169
173
  removeFavoriteToolTip: removeFavoriteToolTip
170
- }) : null, notification ? /*#__PURE__*/React.createElement(Notification, notification) : null, customer ? /*#__PURE__*/React.createElement(Customer, _extends({}, customer, {
174
+ }) : null, /*#__PURE__*/React.createElement(Selectable, {
175
+ isSelected: isSelected
176
+ }), notification ? /*#__PURE__*/React.createElement(Notification, notification) : null, customer ? /*#__PURE__*/React.createElement(Customer, _extends({}, customer, {
171
177
  className: classnames(style.customer, type === 'chapter' ? style.chapterCustomer : null)
172
178
  })) : null, /*#__PURE__*/React.createElement(CardContentInfo, {
173
179
  mode: MODES.CARD,
@@ -178,7 +184,9 @@ const Card = memo(function Card(props, context) {
178
184
  empty: empty,
179
185
  progress: progress,
180
186
  title: title,
181
- type: type
187
+ type: type,
188
+ badgeCategory: badgeCategory,
189
+ badgeLabel: badgeLabel
182
190
  }), badge ? /*#__PURE__*/React.createElement("div", {
183
191
  className: style.badge,
184
192
  style: inlineBadgeStyle
@@ -205,7 +213,10 @@ Card.propTypes = process.env.NODE_ENV !== "production" ? {
205
213
  removeFavoriteToolTip: PropTypes.string,
206
214
  onClick: PropTypes.func,
207
215
  onFavoriteClick: PropTypes.func,
208
- notification: PropTypes.shape(Notification.propTypes)
216
+ isSelected: PropTypes.bool,
217
+ notification: PropTypes.shape(Notification.propTypes),
218
+ badgeCategory: CardContentInfo.propTypes.badgeCategory,
219
+ badgeLabel: CardContentInfo.propTypes.badgeLabel
209
220
  } : {};
210
221
  export default Card;
211
222
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["React","useMemo","memo","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaCompositionCoorpacademyPictures","PicturesIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","CardContentInfo","MODES","Customer","Favorite","Notification","style","CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","childContextTypes","propTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","notification","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","chapterCustomer","CARD","lockWrapper","shape","number","func"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,EAAwBC,IAAxB,QAAmC,OAAnC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,oBAAoB,IAAIC,QAD1B,EAEEC,mCAAmC,IAAIC,YAFzC,QAGO,0BAHP;AAIA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,cAAc,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,KAAP;AAAcC,EAAAA;AAAd,CAAD,EAAuB;AAACC,EAAAA;AAAD,CAAvB,KAAkC;AACvD,QAAMC,eAAe,GAAGd,iBAAiB,CAACU,IAAD,CAAzC;;AACA,QAAMK,YAAY,GAAG,KAAI,gBAAJ,EAAsBF,IAAtB,CAArB;;AACA,QAAMG,UAAU,GAAG,KAAI,cAAJ,EAAoBH,IAApB,CAAnB;;AAEA,MAAIC,eAAe,IAAIb,sBAAsB,CAACS,IAAD,CAA7C,EAAqD;AACnD,UAAMO,QAAQ,GAAGhB,sBAAsB,CAACS,IAAD,CAAtB,CAA6BQ,IAA9C;AACA,UAAMC,SAAS,GAAGl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CAAjB;AA6FAxB,IAAI,CAACL,YAAL,GAAoB;AAClBrB,EAAAA,IAAI,EAAEX,QAAQ,CAACiC,iBAAT,CAA2BtB;AADf,CAApB;AAIA0B,IAAI,CAACH,SAAL,2CAAiB;AACfM,EAAAA,KAAK,EAAEhD,SAAS,CAAC2C,MADF;AAEf1B,EAAAA,KAAK,EAAEjB,SAAS,CAAC2C,MAFF;AAGfO,EAAAA,QAAQ,EAAElD,SAAS,CAAC4C,IAHL;AAIfK,EAAAA,OAAO,EAAEjD,SAAS,CAAC4C,IAJJ;AAKf5B,EAAAA,IAAI,EAAEhB,SAAS,CAAC2C,MALD;AAMfQ,EAAAA,KAAK,EAAEnD,SAAS,CAAC2C,MANF;AAOfS,EAAAA,MAAM,EAAEpD,SAAS,CAAC2C,MAPH;AAQfW,EAAAA,eAAe,EAAEtD,SAAS,CAAC4C,IARZ;AASfS,EAAAA,QAAQ,EAAErD,SAAS,CAAC6E,KAAV,CAAgBlE,QAAQ,CAAC+B,SAAzB,CATK;AAUfa,EAAAA,QAAQ,EAAEvD,SAAS,CAAC8E,MAVL;AAWftB,EAAAA,QAAQ,EAAExD,SAAS,CAAC4C,IAXL;AAYfa,EAAAA,kBAAkB,EAAEzD,SAAS,CAAC2C,MAZf;AAafe,EAAAA,qBAAqB,EAAE1D,SAAS,CAAC2C,MAblB;AAcfgB,EAAAA,OAAO,EAAE3D,SAAS,CAAC+E,IAdJ;AAefnB,EAAAA,eAAe,EAAE5D,SAAS,CAAC+E,IAfZ;AAgBflB,EAAAA,YAAY,EAAE7D,SAAS,CAAC6E,KAAV,CAAgBhE,YAAY,CAAC6B,SAA7B;AAhBC,CAAjB;AAkBA,eAAeG,IAAf","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Notification from './notification';\nimport style from './style.css';\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n notification\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [onClick]);\n\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {!isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n className={classnames(style.customer, type === 'chapter' ? style.chapterCustomer : null)}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n notification: PropTypes.shape(Notification.propTypes)\n};\nexport default Card;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["React","useMemo","memo","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaCompositionCoorpacademyPictures","PicturesIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","CardContentInfo","MODES","Customer","Favorite","Selectable","Notification","style","CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","childContextTypes","propTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","chapterCustomer","CARD","lockWrapper","shape","number","func"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,EAAwBC,IAAxB,QAAmC,OAAnC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,oBAAoB,IAAIC,QAD1B,EAEEC,mCAAmC,IAAIC,YAFzC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AAC4C,MAFF;AAGfO,EAAAA,QAAQ,EAAEnD,SAAS,CAAC6C,IAHL;AAIfK,EAAAA,OAAO,EAAElD,SAAS,CAAC6C,IAJJ;AAKf5B,EAAAA,IAAI,EAAEjB,SAAS,CAAC4C,MALD;AAMfQ,EAAAA,KAAK,EAAEpD,SAAS,CAAC4C,MANF;AAOfS,EAAAA,MAAM,EAAErD,SAAS,CAAC4C,MAPH;AAQfW,EAAAA,eAAe,EAAEvD,SAAS,CAAC6C,IARZ;AASfS,EAAAA,QAAQ,EAAEtD,SAAS,CAACiF,KAAV,CAAgBtE,QAAQ,CAACgC,SAAzB,CATK;AAUfa,EAAAA,QAAQ,EAAExD,SAAS,CAACkF,MAVL;AAWfzB,EAAAA,QAAQ,EAAEzD,SAAS,CAAC6C,IAXL;AAYfa,EAAAA,kBAAkB,EAAE1D,SAAS,CAAC4C,MAZf;AAafe,EAAAA,qBAAqB,EAAE3D,SAAS,CAAC4C,MAblB;AAcfgB,EAAAA,OAAO,EAAE5D,SAAS,CAACmF,IAdJ;AAeftB,EAAAA,eAAe,EAAE7D,SAAS,CAACmF,IAfZ;AAgBfrB,EAAAA,UAAU,EAAE9D,SAAS,CAAC6C,IAhBP;AAiBfkB,EAAAA,YAAY,EAAE/D,SAAS,CAACiF,KAAV,CAAgBnE,YAAY,CAAC6B,SAA7B,CAjBC;AAkBfqB,EAAAA,aAAa,EAAEvD,eAAe,CAACkC,SAAhB,CAA0BqB,aAlB1B;AAmBfC,EAAAA,UAAU,EAAExD,eAAe,CAACkC,SAAhB,CAA0BsB;AAnBvB,CAAjB;AAqBA,eAAenB,IAAf","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n <Selectable isSelected={isSelected} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n className={classnames(style.customer, type === 'chapter' ? style.chapterCustomer : null)}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel\n};\nexport default Card;\n"],"file":"index.js"}
@@ -0,0 +1,71 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value positive from colors;
3
+ @value negative from colors;
4
+ @value cm_grey_400 from colors;
5
+
6
+ .selectable {
7
+ width: 100%;
8
+ height: 100%;
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ background-color: rgba(0, 0, 0, 0.3);
13
+ position: absolute;
14
+ z-index: 1;
15
+ overflow: hidden;
16
+ }
17
+
18
+ .circle {
19
+ background-color: white;
20
+ width: 38px;
21
+ height: 38px;
22
+ border-radius: 50%;
23
+ display: none;
24
+ }
25
+
26
+ .iconWrapper {
27
+ position: absolute;
28
+ display: flex;
29
+ justify-content: center;
30
+ }
31
+
32
+ .icons {
33
+ width: 48px;
34
+ height: 48px;
35
+ display: none;
36
+ }
37
+
38
+ .checkIcon {
39
+ color: positive;
40
+ composes: icons;
41
+ }
42
+
43
+ .removeIcon {
44
+ color: negative;
45
+ composes: icons;
46
+ }
47
+
48
+ .addIcon {
49
+ color: cm_grey_400;
50
+ composes: icons;
51
+ }
52
+
53
+ .selectable:hover .addIcon,
54
+ .selectable:hover .circle {
55
+ display: block;
56
+ }
57
+
58
+ .selectable.selected .checkIcon,
59
+ .selectable.selected .circle,
60
+ .selectable.selected:hover .removeIcon {
61
+ display: block;
62
+ }
63
+
64
+ .selectable.selected:hover .circle {
65
+ display: block;
66
+ }
67
+
68
+ .selectable.selected:hover .checkIcon,
69
+ .selectable.selected:hover .addIcon {
70
+ display: none;
71
+ }
@@ -0,0 +1,32 @@
1
+ import _isUndefined from "lodash/fp/isUndefined";
2
+ import React from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import classnames from 'classnames';
5
+ import { NovaSolidStatusCheckCircle2 as CheckIcon, NovaSolidRemoveAddRemoveCircle1 as RemoveIcon, NovaSolidRemoveAddAddCircle1 as AddIcon } from '@coorpacademy/nova-icons';
6
+ import style from './selectable.css';
7
+
8
+ const Selectable = props => {
9
+ const {
10
+ isSelected
11
+ } = props;
12
+ if (_isUndefined(isSelected)) return null;
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: classnames(style.selectable, isSelected && style.selected)
15
+ }, /*#__PURE__*/React.createElement("div", {
16
+ className: style.circle
17
+ }), /*#__PURE__*/React.createElement("div", {
18
+ className: style.iconWrapper
19
+ }, /*#__PURE__*/React.createElement(RemoveIcon, {
20
+ className: style.removeIcon
21
+ }), /*#__PURE__*/React.createElement(AddIcon, {
22
+ className: style.addIcon
23
+ }), /*#__PURE__*/React.createElement(CheckIcon, {
24
+ className: style.checkIcon
25
+ })));
26
+ };
27
+
28
+ Selectable.propTypes = process.env.NODE_ENV !== "production" ? {
29
+ isSelected: PropTypes.bool
30
+ } : {};
31
+ export default Selectable;
32
+ //# sourceMappingURL=selectable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/card/selectable.js"],"names":["React","PropTypes","classnames","NovaSolidStatusCheckCircle2","CheckIcon","NovaSolidRemoveAddRemoveCircle1","RemoveIcon","NovaSolidRemoveAddAddCircle1","AddIcon","style","Selectable","props","isSelected","selectable","selected","circle","iconWrapper","removeIcon","addIcon","checkIcon","propTypes","bool"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,2BAA2B,IAAIC,SADjC,EAEEC,+BAA+B,IAAIC,UAFrC,EAGEC,4BAA4B,IAAIC,OAHlC,QAIO,0BAJP;AAKA,OAAOC,KAAP,MAAkB,kBAAlB;;AAEA,MAAMC,UAAU,GAAGC,KAAK,IAAI;AAC1B,QAAM;AAACC,IAAAA;AAAD,MAAeD,KAArB;AAEA,MAAI,aAAYC,UAAZ,CAAJ,EAA6B,OAAO,IAAP;AAE7B,sBACE;AAAK,IAAA,SAAS,EAAEV,UAAU,CAACO,KAAK,CAACI,UAAP,EAAmBD,UAAU,IAAIH,KAAK,CAACK,QAAvC;AAA1B,kBACE;AAAK,IAAA,SAAS,EAAEL,KAAK,CAACM;AAAtB,IADF,eAEE;AAAK,IAAA,SAAS,EAAEN,KAAK,CAACO;AAAtB,kBACE,oBAAC,UAAD;AAAY,IAAA,SAAS,EAAEP,KAAK,CAACQ;AAA7B,IADF,eAEE,oBAAC,OAAD;AAAS,IAAA,SAAS,EAAER,KAAK,CAACS;AAA1B,IAFF,eAGE,oBAAC,SAAD;AAAW,IAAA,SAAS,EAAET,KAAK,CAACU;AAA5B,IAHF,CAFF,CADF;AAUD,CAfD;;AAiBAT,UAAU,CAACU,SAAX,2CAAuB;AACrBR,EAAAA,UAAU,EAAEX,SAAS,CAACoB;AADD,CAAvB;AAIA,eAAeX,UAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isUndefined} from 'lodash/fp';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidRemoveAddRemoveCircle1 as RemoveIcon,\n NovaSolidRemoveAddAddCircle1 as AddIcon\n} from '@coorpacademy/nova-icons';\nimport style from './selectable.css';\n\nconst Selectable = props => {\n const {isSelected} = props;\n\n if (isUndefined(isSelected)) return null;\n\n return (\n <div className={classnames(style.selectable, isSelected && style.selected)}>\n <div className={style.circle} />\n <div className={style.iconWrapper}>\n <RemoveIcon className={style.removeIcon} />\n <AddIcon className={style.addIcon} />\n <CheckIcon className={style.checkIcon} />\n </div>\n </div>\n );\n};\n\nSelectable.propTypes = {\n isSelected: PropTypes.bool\n};\n\nexport default Selectable;\n"],"file":"selectable.js"}
@@ -12,6 +12,7 @@ export default {
12
12
  favorite: true,
13
13
  addFavoriteToolTip: 'Add to my list',
14
14
  removeFavoriteToolTip: 'Remove from my list',
15
+ isSelected: undefined,
15
16
  customer: {
16
17
  coorpOriginal: true,
17
18
  name: 'Decathlon creation'
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/default.js"],"names":["props","image","adaptiv","certification","type","title","author","certifiedAuthor","progress","badge","favorite","addFavoriteToolTip","removeFavoriteToolTip","customer","coorpOriginal","name","onClick","console","log","onFavoriteClick"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EACH,4LAFG;AAGLC,IAAAA,OAAO,EAAE,KAHJ;AAILC,IAAAA,aAAa,EAAE,KAJV;AAKLC,IAAAA,IAAI,EAAE,QALD;AAMLC,IAAAA,KAAK,EAAE,sDANF;AAOLC,IAAAA,MAAM,EAAE,cAPH;AAQLC,IAAAA,eAAe,EAAE,IARZ;AASLC,IAAAA,QAAQ,EAAE,IATL;AAULC,IAAAA,KAAK,EAAE,KAVF;AAWLC,IAAAA,QAAQ,EAAE,IAXL;AAYLC,IAAAA,kBAAkB,EAAE,gBAZf;AAaLC,IAAAA,qBAAqB,EAAE,qBAblB;AAcLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,aAAa,EAAE,IADP;AAERC,MAAAA,IAAI,EAAE;AAFE,KAdL;AAkBLC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ,CAlBV;AAmBLC,IAAAA,eAAe,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,gBAAZ;AAnBlB;AADM,CAAf","sourcesContent":["export default {\n props: {\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/partner-wedemain/fr/medias/img/cover/shutterstock_248741149-1470302136299.jpg&h=500&w=500&q=90',\n adaptiv: false,\n certification: false,\n type: 'course',\n title: 'From Mass Market to One to One targeting Lorem ipsum',\n author: 'Coorpacademy',\n certifiedAuthor: true,\n progress: 0.65,\n badge: 'new',\n favorite: true,\n addFavoriteToolTip: 'Add to my list',\n removeFavoriteToolTip: 'Remove from my list',\n customer: {\n coorpOriginal: true,\n name: 'Decathlon creation'\n },\n onClick: () => console.log('click everywhere'),\n onFavoriteClick: () => console.log('click Favorite')\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/default.js"],"names":["props","image","adaptiv","certification","type","title","author","certifiedAuthor","progress","badge","favorite","addFavoriteToolTip","removeFavoriteToolTip","isSelected","undefined","customer","coorpOriginal","name","onClick","console","log","onFavoriteClick"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EACH,4LAFG;AAGLC,IAAAA,OAAO,EAAE,KAHJ;AAILC,IAAAA,aAAa,EAAE,KAJV;AAKLC,IAAAA,IAAI,EAAE,QALD;AAMLC,IAAAA,KAAK,EAAE,sDANF;AAOLC,IAAAA,MAAM,EAAE,cAPH;AAQLC,IAAAA,eAAe,EAAE,IARZ;AASLC,IAAAA,QAAQ,EAAE,IATL;AAULC,IAAAA,KAAK,EAAE,KAVF;AAWLC,IAAAA,QAAQ,EAAE,IAXL;AAYLC,IAAAA,kBAAkB,EAAE,gBAZf;AAaLC,IAAAA,qBAAqB,EAAE,qBAblB;AAcLC,IAAAA,UAAU,EAAEC,SAdP;AAeLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,aAAa,EAAE,IADP;AAERC,MAAAA,IAAI,EAAE;AAFE,KAfL;AAmBLC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ,CAnBV;AAoBLC,IAAAA,eAAe,EAAE,MAAMF,OAAO,CAACC,GAAR,CAAY,gBAAZ;AApBlB;AADM,CAAf","sourcesContent":["export default {\n props: {\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/partner-wedemain/fr/medias/img/cover/shutterstock_248741149-1470302136299.jpg&h=500&w=500&q=90',\n adaptiv: false,\n certification: false,\n type: 'course',\n title: 'From Mass Market to One to One targeting Lorem ipsum',\n author: 'Coorpacademy',\n certifiedAuthor: true,\n progress: 0.65,\n badge: 'new',\n favorite: true,\n addFavoriteToolTip: 'Add to my list',\n removeFavoriteToolTip: 'Remove from my list',\n isSelected: undefined,\n customer: {\n coorpOriginal: true,\n name: 'Decathlon creation'\n },\n onClick: () => console.log('click everywhere'),\n onFavoriteClick: () => console.log('click Favorite')\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,16 @@
1
+ import _defaultsDeep from "lodash/fp/defaultsDeep";
2
+ import Default from './default';
3
+ const {
4
+ props
5
+ } = Default;
6
+ export default {
7
+ props: _defaultsDeep(props, {
8
+ disabled: false,
9
+ image: 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-marmiton/cockpit-marmiton/cover/shutterstock_520965634-1491986518210.jpg&h=500&w=500&q=90',
10
+ progress: 0.1,
11
+ isSelected: false,
12
+ badgeCategory: 'coach',
13
+ badgeLabel: 'Coach'
14
+ })
15
+ };
16
+ //# sourceMappingURL=selectable-false.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/selectable-false.js"],"names":["Default","props","disabled","image","progress","isSelected","badgeCategory","badgeLabel"],"mappings":";AACA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBC,IAAAA,QAAQ,EAAE,KADe;AAEzBC,IAAAA,KAAK,EACH,4MAHuB;AAIzBC,IAAAA,QAAQ,EAAE,GAJe;AAKzBC,IAAAA,UAAU,EAAE,KALa;AAMzBC,IAAAA,aAAa,EAAE,OANU;AAOzBC,IAAAA,UAAU,EAAE;AAPa,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: defaultsDeep(props, {\n disabled: false,\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-marmiton/cockpit-marmiton/cover/shutterstock_520965634-1491986518210.jpg&h=500&w=500&q=90',\n progress: 0.1,\n isSelected: false,\n badgeCategory: 'coach',\n badgeLabel: 'Coach'\n })\n};\n"],"file":"selectable-false.js"}
@@ -0,0 +1,17 @@
1
+ import _defaultsDeep from "lodash/fp/defaultsDeep";
2
+ import Default from './default';
3
+ const {
4
+ props
5
+ } = Default;
6
+ export default {
7
+ props: _defaultsDeep(props, {
8
+ disabled: false,
9
+ type: 'course',
10
+ image: 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-marmiton/cockpit-marmiton/cover/shutterstock_520965634-1491986518210.jpg&h=500&w=500&q=90',
11
+ progress: 0.1,
12
+ isSelected: true,
13
+ badgeCategory: 'base',
14
+ badgeLabel: 'basic'
15
+ })
16
+ };
17
+ //# sourceMappingURL=selectable-true.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/selectable-true.js"],"names":["Default","props","disabled","type","image","progress","isSelected","badgeCategory","badgeLabel"],"mappings":";AACA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBC,IAAAA,QAAQ,EAAE,KADe;AAEzBC,IAAAA,IAAI,EAAE,QAFmB;AAGzBC,IAAAA,KAAK,EACH,4MAJuB;AAKzBC,IAAAA,QAAQ,EAAE,GALe;AAMzBC,IAAAA,UAAU,EAAE,IANa;AAOzBC,IAAAA,aAAa,EAAE,MAPU;AAQzBC,IAAAA,UAAU,EAAE;AARa,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: defaultsDeep(props, {\n disabled: false,\n type: 'course',\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-marmiton/cockpit-marmiton/cover/shutterstock_520965634-1491986518210.jpg&h=500&w=500&q=90',\n progress: 0.1,\n isSelected: true,\n badgeCategory: 'base',\n badgeLabel: 'basic'\n })\n};\n"],"file":"selectable-true.js"}
@@ -0,0 +1,39 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeCard from '..';
5
+ import fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';
6
+ import fixtureAdaptiv from './fixtures/adaptiv';
7
+ import fixtureArabic from './fixtures/arabic';
8
+ import fixtureArticle from './fixtures/article';
9
+ import fixtureDefault from './fixtures/default';
10
+ import fixtureDisabled from './fixtures/disabled';
11
+ import fixtureEmpty from './fixtures/empty';
12
+ import fixtureExternalContent from './fixtures/external-content';
13
+ import fixtureFavorite from './fixtures/favorite';
14
+ import fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';
15
+ import fixtureFreerun from './fixtures/freerun';
16
+ import fixturePodcast from './fixtures/podcast';
17
+ import fixtureScorm from './fixtures/scorm';
18
+ import fixtureVideo from './fixtures/video';
19
+ test('Molecule › MoleculeCard > should have valid propTypes', t => {
20
+ t.pass();
21
+ forEach(MoleculeCard.propTypes, (value, key) => {
22
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCard.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
23
+ });
24
+ });
25
+ test('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptivAndDisabled);
26
+ test('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);
27
+ test('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);
28
+ test('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);
29
+ test('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);
30
+ test('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);
31
+ test('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);
32
+ test('Molecule › MoleculeCard › ExternalContent › should be rendered', renderComponentMacro, MoleculeCard, fixtureExternalContent);
33
+ test('Molecule › MoleculeCard › Favorite › should be rendered', renderComponentMacro, MoleculeCard, fixtureFavorite);
34
+ test('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerunAndDisabled);
35
+ test('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);
36
+ test('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);
37
+ test('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);
38
+ test('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);
39
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCard","fixtureAdaptivAndDisabled","fixtureAdaptiv","fixtureArabic","fixtureArticle","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureExternalContent","fixtureFavorite","fixtureFreerunAndDisabled","fixtureFreerun","fixturePodcast","fixtureScorm","fixtureVideo","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,YAAP,MAAyB,IAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAjB,IAAI,CAAC,uDAAD,EAA0DkB,CAAC,IAAI;AACjEA,EAAAA,CAAC,CAACC,IAAF;AACAlB,EAAAA,OAAO,CAACE,YAAY,CAACiB,SAAd,EAAyB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC9CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,iDAAgDF,GAAI,mEAA7E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAtB,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,YAA5F,EAA0GC,yBAA1G,CAAJ;AACAJ,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FE,cAA/F,CAAJ;AACAL,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,YAAhF,EAA8FG,aAA9F,CAAJ;AACAN,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FI,cAA/F,CAAJ;AACAP,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FK,cAA/F,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,YAAlF,EAAgGM,eAAhG,CAAJ;AACAT,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6FO,YAA7F,CAAJ;AACAV,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,YAAzF,EAAuGQ,sBAAvG,CAAJ;AACAX,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,YAAlF,EAAgGS,eAAhG,CAAJ;AACAZ,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,YAA5F,EAA0GU,yBAA1G,CAAJ;AACAb,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FW,cAA/F,CAAJ;AACAd,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FY,cAA/F,CAAJ;AACAf,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fa,YAA7F,CAAJ;AACAhB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fc,YAA7F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCard from '..';\nimport fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';\nimport fixtureAdaptiv from './fixtures/adaptiv';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureArticle from './fixtures/article';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalContent from './fixtures/external-content';\nimport fixtureFavorite from './fixtures/favorite';\nimport fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';\nimport fixtureFreerun from './fixtures/freerun';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureScorm from './fixtures/scorm';\nimport fixtureVideo from './fixtures/video';\n\ntest('Molecule › MoleculeCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptivAndDisabled);\ntest('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);\ntest('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);\ntest('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);\ntest('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);\ntest('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);\ntest('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);\ntest('Molecule › MoleculeCard › ExternalContent › should be rendered', renderComponentMacro, MoleculeCard, fixtureExternalContent);\ntest('Molecule › MoleculeCard › Favorite › should be rendered', renderComponentMacro, MoleculeCard, fixtureFavorite);\ntest('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerunAndDisabled);\ntest('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);\ntest('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);\ntest('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);\ntest('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);\n"],"file":"fixtures.js"}
@@ -5,6 +5,7 @@ import classnames from 'classnames';
5
5
  import { NovaCompositionCoorpacademyAdaptive as AdaptivIcon, NovaSolidStatusCheckCircle2 as CheckIcon, NovaCompositionCoorpacademyTimer as TimerIcon } from '@coorpacademy/nova-icons';
6
6
  import { isExternalContent, EXTERNAL_CONTENT_ICONS } from '../../util/external-content';
7
7
  import Provider from '../../atom/provider';
8
+ import ContentBadge from '../../atom/content-badge';
8
9
  import { innerHTML } from '../../atom/label/style.css';
9
10
  import style from './style.css';
10
11
  export const MODES = {
@@ -114,7 +115,9 @@ const ContentInfo = ({
114
115
  mode = MODES.CARD,
115
116
  progress,
116
117
  title,
117
- type
118
+ type,
119
+ badgeCategory,
120
+ badgeLabel
118
121
  }) => {
119
122
  const progressBarColor = '#3EC483';
120
123
  const inlineProgressValueStyle = {
@@ -145,7 +148,12 @@ const ContentInfo = ({
145
148
  externalContent: externalContent
146
149
  }), /*#__PURE__*/React.createElement("div", {
147
150
  className: classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)
148
- }, adaptiveIcon, /*#__PURE__*/React.createElement(CardTitle, {
151
+ }, /*#__PURE__*/React.createElement("div", {
152
+ className: style.iconWrapper
153
+ }, adaptiveIcon, !empty && badgeLabel && badgeCategory && courseContent ? /*#__PURE__*/React.createElement(ContentBadge, {
154
+ category: badgeCategory,
155
+ label: badgeLabel
156
+ }) : null), /*#__PURE__*/React.createElement(CardTitle, {
149
157
  title: title,
150
158
  empty: empty,
151
159
  courseContent: courseContent
@@ -169,7 +177,9 @@ ContentInfo.propTypes = process.env.NODE_ENV !== "production" ? {
169
177
  progress: PropTypes.number,
170
178
  title: PropTypes.string,
171
179
  type: PropTypes.string,
172
- mode: PropTypes.string
180
+ mode: PropTypes.string,
181
+ badgeCategory: ContentBadge.propTypes.category,
182
+ badgeLabel: ContentBadge.propTypes.label
173
183
  } : {};
174
184
  export default ContentInfo;
175
185
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","innerHTML","style","MODES","HERO","CARD","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","bool","string","CardTitle","title","empty","courseContent","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","number"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,mCAAmC,IAAIC,WADzC,EAEEC,2BAA2B,IAAIC,SAFjC,EAGEC,gCAAgC,IAAIC,SAHtC,QAIO,0BAJP;AAKA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,SAAQC,SAAR,QAAwB,4BAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,KAAK,GAAG;AACnBC,EAAAA,IAAI,EAAE,MADa;AAEnBC,EAAAA,IAAI,EAAE;AAFa,CAAd;;AAKP,MAAMC,eAAe,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,IAAP;AAAaC,EAAAA;AAAb,CAA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K,EAAEN,KAFT;AAGE,IAAA,aAAa,EAAEC,aAHjB;AAIE,IAAA,eAAe,EAAEM;AAJnB,IALF,CAVF,EAsBGc,WAtBH,CADF;AA0BD,CA7DD;;AA+DAT,WAAW,CAACpB,YAAZ,GAA2B;AACzBC,EAAAA,IAAI,EAAElB,QAAQ,CAACmB,iBAAT,CAA2BD;AADR,CAA3B;AAIAmB,WAAW,CAACjB,SAAZ,2CAAwB;AACtBkB,EAAAA,OAAO,EAAEhD,SAAS,CAAC+B,IADG;AAEtBU,EAAAA,MAAM,EAAEzC,SAAS,CAACgC,MAFI;AAGtBU,EAAAA,eAAe,EAAE1C,SAAS,CAAC+B,IAHL;AAItBkB,EAAAA,QAAQ,EAAEjD,SAAS,CAAC+B,IAJE;AAKtBI,EAAAA,KAAK,EAAEnC,SAAS,CAAC+B,IALK;AAMtBmB,EAAAA,QAAQ,EAAElD,SAAS,CAACkE,MANE;AAOtBhC,EAAAA,KAAK,EAAElC,SAAS,CAACgC,MAPK;AAQtBd,EAAAA,IAAI,EAAElB,SAAS,CAACgC,MARM;AAStBf,EAAAA,IAAI,EAAEjB,SAAS,CAACgC;AATM,CAAxB;AAYA,eAAee,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isNil} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport {innerHTML} from '../../atom/label/style.css';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon height={40} width={40} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div data-name=\"progress\" className={style.progress} style={inlineProgressValueStyle} />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n {adaptiveIcon}\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nexport default ContentInfo;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","ContentBadge","innerHTML","style","MODES","HERO","CARD","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","bool","string","CardTitle","title","empty","courseContent","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","number","category","label"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,mCAAmC,IAAIC,WADzC,EAEEC,2BAA2B,IAAIC,SAFjC,EAGEC,gCAAgC,IAAIC,SAHtC,QAIO,0BAJP;AAKA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,SAAQC,SAAR,QAAwB,4BAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,KAAK,GAAG;AACnBC,EAAAA,IAAI,EAAE,MADa;AAEnBC,EAAAA,IAAI,EAAE;AAFa,CAAd;;AAKP,MAAMC,eAAe,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,IAAP;AAAaC,EAAAA;AAAb,CAAD,EAAgCC,OAAhC,KAA4C;AAClE,QAAM;AAACC,IAAAA;AAAD,MAAcD,OAApB;;AACA,MAAIH,IAAI,KAAKJ,KAAK,CAACE,IAAnB,EAAyB;AACvB,WAAO,IAAP;AACD;;AAED,MAAIG,IAAI,KAAK,SAAb,EAAwB;AACtB,wBACE;AAAK,MAAA,SAAS,EAAEN,KAAK,CAACU;AAAtB,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K,MADV;AAEE,IAAA,KAAK,EAAEN,KAFT;AAGE,IAAA,aAAa,EAAEC,aAHjB;AAIE,IAAA,eAAe,EAAEM;AAJnB,IAVF,CAVF,EA2BGgB,WA3BH,CADF;AA+BD,CApED;;AAsEAX,WAAW,CAACpB,YAAZ,GAA2B;AACzBC,EAAAA,IAAI,EAAEnB,QAAQ,CAACoB,iBAAT,CAA2BD;AADR,CAA3B;AAIAmB,WAAW,CAACjB,SAAZ,2CAAwB;AACtBkB,EAAAA,OAAO,EAAEjD,SAAS,CAACgC,IADG;AAEtBU,EAAAA,MAAM,EAAE1C,SAAS,CAACiC,MAFI;AAGtBU,EAAAA,eAAe,EAAE3C,SAAS,CAACgC,IAHL;AAItBkB,EAAAA,QAAQ,EAAElD,SAAS,CAACgC,IAJE;AAKtBI,EAAAA,KAAK,EAAEpC,SAAS,CAACgC,IALK;AAMtBmB,EAAAA,QAAQ,EAAEnD,SAAS,CAACsE,MANE;AAOtBnC,EAAAA,KAAK,EAAEnC,SAAS,CAACiC,MAPK;AAQtBd,EAAAA,IAAI,EAAEnB,SAAS,CAACiC,MARM;AAStBf,EAAAA,IAAI,EAAElB,SAAS,CAACiC,MATM;AAUtBmB,EAAAA,aAAa,EAAEzC,YAAY,CAACoB,SAAb,CAAuBwC,QAVhB;AAWtBlB,EAAAA,UAAU,EAAE1C,YAAY,CAACoB,SAAb,CAAuByC;AAXb,CAAxB;AAcA,eAAexB,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isNil} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport {innerHTML} from '../../atom/label/style.css';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon height={40} width={40} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div data-name=\"progress\" className={style.progress} style={inlineProgressValueStyle} />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label\n};\n\nexport default ContentInfo;\n"],"file":"index.js"}