@coorpacademy/components 10.4.6 → 10.5.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 (303) hide show
  1. package/es/atom/autocomplete/style.css +4 -4
  2. package/es/atom/button/style.css +1 -1
  3. package/es/atom/card-image-preview/test/fixtures.js +15 -0
  4. package/es/atom/card-image-preview/test/fixtures.js.map +1 -0
  5. package/es/atom/catalog-section/style.css +1 -1
  6. package/es/atom/clue/style.css +2 -2
  7. package/es/atom/cta/style.css +1 -1
  8. package/es/atom/difficulty-level/style.css +1 -1
  9. package/es/atom/drag-and-drop/style.css +6 -5
  10. package/es/atom/input-checkbox/style.css +1 -1
  11. package/es/atom/input-doublestep/style.css +5 -5
  12. package/es/atom/input-html/input-preview.css +2 -2
  13. package/es/atom/input-html/style.css +2 -2
  14. package/es/atom/input-readonly/style.css +3 -3
  15. package/es/atom/input-search/style.css +1 -1
  16. package/es/atom/input-switch/style.css +2 -2
  17. package/es/atom/input-text/style.css +5 -5
  18. package/es/atom/input-textarea/style.css +5 -5
  19. package/es/atom/life/style.css +1 -1
  20. package/es/atom/notification/style.css +1 -1
  21. package/es/atom/radio-group/item.css +1 -1
  22. package/es/atom/resource-miniature/style.css +1 -1
  23. package/es/atom/select/style.css +7 -7
  24. package/es/atom/slide/style.css +1 -1
  25. package/es/molecule/add-to-my-list/style.css +3 -3
  26. package/es/molecule/audio/style.css +1 -1
  27. package/es/molecule/battle-request/style.css +4 -4
  28. package/es/molecule/brand-card/description.css +1 -1
  29. package/es/molecule/brand-card/style.css +2 -2
  30. package/es/molecule/brand-card-create/style.css +1 -1
  31. package/es/molecule/brand-create-form/style.css +6 -6
  32. package/es/molecule/brand-download-box/style.css +2 -2
  33. package/es/molecule/brand-tabs/style.css +1 -1
  34. package/es/molecule/brand-upload-box/style.css +2 -2
  35. package/es/molecule/breadcrumbs/style.css +3 -3
  36. package/es/molecule/card/customer.css +1 -1
  37. package/es/molecule/card/favorite.css +1 -1
  38. package/es/molecule/card/notification.css +1 -1
  39. package/es/molecule/card/style.css +1 -1
  40. package/es/molecule/card/test/fixtures.js +2 -0
  41. package/es/molecule/card/test/fixtures.js.map +1 -1
  42. package/es/molecule/card-content/style.css +4 -4
  43. package/es/molecule/card-with-button/style.css +2 -2
  44. package/es/molecule/cookie-banner/style.css +2 -2
  45. package/es/molecule/course-section/index.js +60 -0
  46. package/es/molecule/course-section/index.js.map +1 -0
  47. package/es/molecule/course-section/style.css +65 -0
  48. package/es/molecule/course-section/test/fixtures/chapter.js +17 -0
  49. package/es/molecule/course-section/test/fixtures/chapter.js.map +1 -0
  50. package/es/molecule/course-section/test/fixtures/course.js +17 -0
  51. package/es/molecule/course-section/test/fixtures/course.js.map +1 -0
  52. package/es/molecule/dashboard/cards-list/style.css +2 -2
  53. package/es/molecule/dashboard/news-list/style.css +2 -2
  54. package/es/molecule/dashboard/start-battle/style.css +4 -4
  55. package/es/molecule/discipline-cta/style.css +2 -2
  56. package/es/molecule/discipline-header/style.css +4 -4
  57. package/es/molecule/discipline-partners/style.css +2 -2
  58. package/es/molecule/drag-and-drop/common.css +1 -1
  59. package/es/molecule/drag-and-drop/overlay.css +1 -1
  60. package/es/molecule/drag-and-drop/style.css +1 -1
  61. package/es/molecule/drag-and-drop/upload-report.css +4 -4
  62. package/es/molecule/draggable/index.js +56 -0
  63. package/es/molecule/draggable/index.js.map +1 -0
  64. package/es/molecule/draggable/style.css +77 -0
  65. package/es/molecule/draggable/test/fixtures/default.js +12 -0
  66. package/es/molecule/draggable/test/fixtures/default.js.map +1 -0
  67. package/es/molecule/draggable/test/fixtures.js +13 -0
  68. package/es/molecule/draggable/test/fixtures.js.map +1 -0
  69. package/es/molecule/external-content-button/style.css +2 -2
  70. package/es/molecule/feedback/style.css +3 -3
  71. package/es/molecule/filters/filters-wapper.css +2 -2
  72. package/es/molecule/filters/style.css +2 -2
  73. package/es/molecule/forum/forum-comment/style.css +1 -1
  74. package/es/molecule/forum/forum-post/style.css +5 -5
  75. package/es/molecule/menu-list/style.css +1 -1
  76. package/es/molecule/message-popin/style.css +2 -2
  77. package/es/molecule/modal/style.css +2 -2
  78. package/es/molecule/module-card/style.css +2 -2
  79. package/es/molecule/news/style.css +3 -3
  80. package/es/molecule/notification-banner/style.css +3 -3
  81. package/es/molecule/pagination/style.css +1 -1
  82. package/es/molecule/payment-form/index.js +2 -2
  83. package/es/molecule/payment-form/index.js.map +1 -1
  84. package/es/molecule/pdf/style.css +2 -2
  85. package/es/molecule/popin/style.css +2 -2
  86. package/es/molecule/progress-bar/style.css +1 -1
  87. package/es/molecule/questions/free-text/style.css +1 -1
  88. package/es/molecule/questions/qcm/style.css +1 -1
  89. package/es/molecule/questions/qcm-drag/style.css +2 -2
  90. package/es/molecule/questions/qcm-graphic/style.css +1 -1
  91. package/es/molecule/questions/question-range/style.css +2 -2
  92. package/es/molecule/questions/template/style.css +1 -1
  93. package/es/molecule/resource-player/style.css +1 -1
  94. package/es/molecule/scope-content/style.css +6 -6
  95. package/es/molecule/scope-tabs/style.css +1 -1
  96. package/es/molecule/select-multiple/style.css +2 -2
  97. package/es/molecule/setup-cohort-item/style.css +1 -1
  98. package/es/molecule/setup-section/index.js +2 -23
  99. package/es/molecule/setup-section/index.js.map +1 -1
  100. package/es/molecule/setup-section/style.css +3 -28
  101. package/es/molecule/setup-sections/index.js +3 -55
  102. package/es/molecule/setup-sections/index.js.map +1 -1
  103. package/es/molecule/setup-sections/style.css +0 -52
  104. package/es/molecule/setup-sections/test/on-drop.js +1 -1
  105. package/es/molecule/setup-sections/test/on-drop.js.map +1 -1
  106. package/es/molecule/share/style.css +3 -3
  107. package/es/molecule/ssmenu-list/style.css +1 -1
  108. package/es/molecule/table/style.css +5 -5
  109. package/es/molecule/teams-popin/style.css +2 -2
  110. package/es/molecule/titled-checkbox/style.css +1 -1
  111. package/es/molecule/video-player/jwplayer.css +1 -1
  112. package/es/molecule/wizard-summary/index.js +5 -5
  113. package/es/molecule/wizard-summary/index.js.map +1 -1
  114. package/es/organism/accordion/part/style.css +1 -1
  115. package/es/organism/brand-analytics/analytics-popin.css +1 -0
  116. package/es/organism/brand-analytics/style.css +1 -1
  117. package/es/organism/brand-table/style.css +2 -2
  118. package/es/organism/brand-upload/style.css +2 -2
  119. package/es/organism/discussion/style.css +1 -1
  120. package/es/organism/get-the-app/style.css +1 -1
  121. package/es/organism/hero/style.css +1 -1
  122. package/es/organism/mooc-footer/style.css +2 -2
  123. package/es/organism/mooc-header/style.css +8 -8
  124. package/es/organism/playlist-translation/test/fixtures.js +15 -0
  125. package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
  126. package/es/organism/popin/style.css +1 -0
  127. package/es/organism/sidebar/style.css +2 -2
  128. package/es/organism/user-preferences/style.css +1 -1
  129. package/es/template/activity/engine-stars.css +3 -3
  130. package/es/template/activity/progression-item.css +5 -4
  131. package/es/template/activity/stars-summary.css +2 -2
  132. package/es/template/activity/style.css +3 -3
  133. package/es/template/app-player/player/slides/footer/style.css +1 -1
  134. package/es/template/app-player/player/slides/header/learner.css +4 -4
  135. package/es/template/app-player/player/slides/header/microlearning.css +1 -1
  136. package/es/template/app-player/player/slides/style.css +9 -8
  137. package/es/template/app-player/popin-correction/style.css +3 -3
  138. package/es/template/app-player/popin-end/summary.css +4 -4
  139. package/es/template/app-player/popin-end/test/fixtures.js +2 -0
  140. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -1
  141. package/es/template/app-player/popin-header/style.css +5 -5
  142. package/es/template/back-office/dashboard-preview/dashboard-popin.css +1 -0
  143. package/es/template/back-office/dashboard-preview/style.css +1 -1
  144. package/es/template/cockpit/jw-uploader/style.css +1 -0
  145. package/es/template/common/authors/style.css +5 -4
  146. package/es/template/common/layout.css +1 -1
  147. package/es/template/common/search-page/style.css +2 -1
  148. package/es/template/external-course/style.css +1 -1
  149. package/es/variables/fonts.css +1 -1
  150. package/lib/atom/autocomplete/style.css +4 -4
  151. package/lib/atom/button/style.css +1 -1
  152. package/lib/atom/card-image-preview/test/fixtures.js +25 -0
  153. package/lib/atom/card-image-preview/test/fixtures.js.map +1 -0
  154. package/lib/atom/catalog-section/style.css +1 -1
  155. package/lib/atom/clue/style.css +2 -2
  156. package/lib/atom/cta/style.css +1 -1
  157. package/lib/atom/difficulty-level/style.css +1 -1
  158. package/lib/atom/drag-and-drop/style.css +6 -5
  159. package/lib/atom/input-checkbox/style.css +1 -1
  160. package/lib/atom/input-doublestep/style.css +5 -5
  161. package/lib/atom/input-html/input-preview.css +2 -2
  162. package/lib/atom/input-html/style.css +2 -2
  163. package/lib/atom/input-readonly/style.css +3 -3
  164. package/lib/atom/input-search/style.css +1 -1
  165. package/lib/atom/input-switch/style.css +2 -2
  166. package/lib/atom/input-text/style.css +5 -5
  167. package/lib/atom/input-textarea/style.css +5 -5
  168. package/lib/atom/life/style.css +1 -1
  169. package/lib/atom/notification/style.css +1 -1
  170. package/lib/atom/radio-group/item.css +1 -1
  171. package/lib/atom/resource-miniature/style.css +1 -1
  172. package/lib/atom/select/style.css +7 -7
  173. package/lib/atom/slide/style.css +1 -1
  174. package/lib/molecule/add-to-my-list/style.css +3 -3
  175. package/lib/molecule/audio/style.css +1 -1
  176. package/lib/molecule/battle-request/style.css +4 -4
  177. package/lib/molecule/brand-card/description.css +1 -1
  178. package/lib/molecule/brand-card/style.css +2 -2
  179. package/lib/molecule/brand-card-create/style.css +1 -1
  180. package/lib/molecule/brand-create-form/style.css +6 -6
  181. package/lib/molecule/brand-download-box/style.css +2 -2
  182. package/lib/molecule/brand-tabs/style.css +1 -1
  183. package/lib/molecule/brand-upload-box/style.css +2 -2
  184. package/lib/molecule/breadcrumbs/style.css +3 -3
  185. package/lib/molecule/card/customer.css +1 -1
  186. package/lib/molecule/card/favorite.css +1 -1
  187. package/lib/molecule/card/notification.css +1 -1
  188. package/lib/molecule/card/style.css +1 -1
  189. package/lib/molecule/card/test/fixtures.js +3 -0
  190. package/lib/molecule/card/test/fixtures.js.map +1 -1
  191. package/lib/molecule/card-content/style.css +4 -4
  192. package/lib/molecule/card-with-button/style.css +2 -2
  193. package/lib/molecule/cookie-banner/style.css +2 -2
  194. package/lib/molecule/course-section/index.js +72 -0
  195. package/lib/molecule/course-section/index.js.map +1 -0
  196. package/lib/molecule/course-section/style.css +65 -0
  197. package/lib/molecule/course-section/test/fixtures/chapter.js +22 -0
  198. package/lib/molecule/course-section/test/fixtures/chapter.js.map +1 -0
  199. package/lib/molecule/course-section/test/fixtures/course.js +22 -0
  200. package/lib/molecule/course-section/test/fixtures/course.js.map +1 -0
  201. package/lib/molecule/dashboard/cards-list/style.css +2 -2
  202. package/lib/molecule/dashboard/news-list/style.css +2 -2
  203. package/lib/molecule/dashboard/start-battle/style.css +4 -4
  204. package/lib/molecule/discipline-cta/style.css +2 -2
  205. package/lib/molecule/discipline-header/style.css +4 -4
  206. package/lib/molecule/discipline-partners/style.css +2 -2
  207. package/lib/molecule/drag-and-drop/common.css +1 -1
  208. package/lib/molecule/drag-and-drop/overlay.css +1 -1
  209. package/lib/molecule/drag-and-drop/style.css +1 -1
  210. package/lib/molecule/drag-and-drop/upload-report.css +4 -4
  211. package/lib/molecule/draggable/index.js +71 -0
  212. package/lib/molecule/draggable/index.js.map +1 -0
  213. package/lib/molecule/draggable/style.css +77 -0
  214. package/lib/molecule/draggable/test/fixtures/default.js +17 -0
  215. package/lib/molecule/draggable/test/fixtures/default.js.map +1 -0
  216. package/lib/molecule/draggable/test/fixtures.js +22 -0
  217. package/lib/molecule/draggable/test/fixtures.js.map +1 -0
  218. package/lib/molecule/external-content-button/style.css +2 -2
  219. package/lib/molecule/feedback/style.css +3 -3
  220. package/lib/molecule/filters/filters-wapper.css +2 -2
  221. package/lib/molecule/filters/style.css +2 -2
  222. package/lib/molecule/forum/forum-comment/style.css +1 -1
  223. package/lib/molecule/forum/forum-post/style.css +5 -5
  224. package/lib/molecule/menu-list/style.css +1 -1
  225. package/lib/molecule/message-popin/style.css +2 -2
  226. package/lib/molecule/modal/style.css +2 -2
  227. package/lib/molecule/module-card/style.css +2 -2
  228. package/lib/molecule/news/style.css +3 -3
  229. package/lib/molecule/notification-banner/style.css +3 -3
  230. package/lib/molecule/pagination/style.css +1 -1
  231. package/lib/molecule/payment-form/index.js +2 -2
  232. package/lib/molecule/payment-form/index.js.map +1 -1
  233. package/lib/molecule/pdf/style.css +2 -2
  234. package/lib/molecule/popin/style.css +2 -2
  235. package/lib/molecule/progress-bar/style.css +1 -1
  236. package/lib/molecule/questions/free-text/style.css +1 -1
  237. package/lib/molecule/questions/qcm/style.css +1 -1
  238. package/lib/molecule/questions/qcm-drag/style.css +2 -2
  239. package/lib/molecule/questions/qcm-graphic/style.css +1 -1
  240. package/lib/molecule/questions/question-range/style.css +2 -2
  241. package/lib/molecule/questions/template/style.css +1 -1
  242. package/lib/molecule/resource-player/style.css +1 -1
  243. package/lib/molecule/scope-content/style.css +6 -6
  244. package/lib/molecule/scope-tabs/style.css +1 -1
  245. package/lib/molecule/select-multiple/style.css +2 -2
  246. package/lib/molecule/setup-cohort-item/style.css +1 -1
  247. package/lib/molecule/setup-section/index.js +2 -21
  248. package/lib/molecule/setup-section/index.js.map +1 -1
  249. package/lib/molecule/setup-section/style.css +3 -28
  250. package/lib/molecule/setup-sections/index.js +3 -55
  251. package/lib/molecule/setup-sections/index.js.map +1 -1
  252. package/lib/molecule/setup-sections/style.css +0 -52
  253. package/lib/molecule/setup-sections/test/on-drop.js +1 -1
  254. package/lib/molecule/setup-sections/test/on-drop.js.map +1 -1
  255. package/lib/molecule/share/style.css +3 -3
  256. package/lib/molecule/ssmenu-list/style.css +1 -1
  257. package/lib/molecule/table/style.css +5 -5
  258. package/lib/molecule/teams-popin/style.css +2 -2
  259. package/lib/molecule/titled-checkbox/style.css +1 -1
  260. package/lib/molecule/video-player/jwplayer.css +1 -1
  261. package/lib/molecule/wizard-summary/index.js +5 -5
  262. package/lib/molecule/wizard-summary/index.js.map +1 -1
  263. package/lib/organism/accordion/part/style.css +1 -1
  264. package/lib/organism/brand-analytics/analytics-popin.css +1 -0
  265. package/lib/organism/brand-analytics/style.css +1 -1
  266. package/lib/organism/brand-table/style.css +2 -2
  267. package/lib/organism/brand-upload/style.css +2 -2
  268. package/lib/organism/discussion/style.css +1 -1
  269. package/lib/organism/get-the-app/style.css +1 -1
  270. package/lib/organism/hero/style.css +1 -1
  271. package/lib/organism/mooc-footer/style.css +2 -2
  272. package/lib/organism/mooc-header/style.css +8 -8
  273. package/lib/organism/playlist-translation/test/fixtures.js +25 -0
  274. package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
  275. package/lib/organism/popin/style.css +1 -0
  276. package/lib/organism/sidebar/style.css +2 -2
  277. package/lib/organism/user-preferences/style.css +1 -1
  278. package/lib/template/activity/engine-stars.css +3 -3
  279. package/lib/template/activity/progression-item.css +5 -4
  280. package/lib/template/activity/stars-summary.css +2 -2
  281. package/lib/template/activity/style.css +3 -3
  282. package/lib/template/app-player/player/slides/footer/style.css +1 -1
  283. package/lib/template/app-player/player/slides/header/learner.css +4 -4
  284. package/lib/template/app-player/player/slides/header/microlearning.css +1 -1
  285. package/lib/template/app-player/player/slides/style.css +9 -8
  286. package/lib/template/app-player/popin-correction/style.css +3 -3
  287. package/lib/template/app-player/popin-end/summary.css +4 -4
  288. package/lib/template/app-player/popin-end/test/fixtures.js +3 -0
  289. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -1
  290. package/lib/template/app-player/popin-header/style.css +5 -5
  291. package/lib/template/back-office/dashboard-preview/dashboard-popin.css +1 -0
  292. package/lib/template/back-office/dashboard-preview/style.css +1 -1
  293. package/lib/template/cockpit/jw-uploader/style.css +1 -0
  294. package/lib/template/common/authors/style.css +5 -4
  295. package/lib/template/common/layout.css +1 -1
  296. package/lib/template/common/search-page/style.css +2 -1
  297. package/lib/template/external-course/style.css +1 -1
  298. package/lib/variables/fonts.css +1 -1
  299. package/package.json +2 -2
  300. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  301. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  302. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  303. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
@@ -31,7 +31,7 @@
31
31
  .warning,
32
32
  .title {
33
33
  margin-left: 10px;
34
- font-family: 'Open Sans';
34
+ font-family: 'Gilroy';
35
35
  font-weight: 600;
36
36
  font-size: 13px;
37
37
  }
@@ -42,7 +42,7 @@
42
42
 
43
43
  .description {
44
44
  font-style: italic;
45
- font-family: 'Open Sans';
45
+ font-family: 'Gilroy';
46
46
  font-weight: 400;
47
47
  font-size: 13px;
48
48
  }
@@ -48,7 +48,7 @@
48
48
  .tab a {
49
49
  display: block;
50
50
  line-height: 72px;
51
- font-family: 'Open Sans';
51
+ font-family: 'Gilroy';
52
52
  font-size: 17px;
53
53
  font-weight: 700;
54
54
  color: medium;
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  .desc {
58
- font-family: 'Open Sans';
58
+ font-family: 'Gilroy';
59
59
  font-weight: 600;
60
60
  font-size: 17px;
61
61
  color: dark;
@@ -63,7 +63,7 @@
63
63
 
64
64
  .browse {
65
65
  margin-top: 10px;
66
- font-family: 'Open Sans';
66
+ font-family: 'Gilroy';
67
67
  font-weight: 600;
68
68
  font-size: 17px;
69
69
  color: brand;
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .breadcrumb a {
30
- font-family: 'Open Sans';
30
+ font-family: 'Gilroy';
31
31
  font-weight: 700;
32
32
  font-size: 17px;
33
33
  color: medium;
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  .breadcrumb span {
38
- font-family: 'Open Sans';
38
+ font-family: 'Gilroy';
39
39
  font-weight: 700;
40
40
  font-size: 17px;
41
41
  color: dark;
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  .link > * {
64
- font-family: 'Open Sans';
64
+ font-family: 'Gilroy';
65
65
  font-size: 15px;
66
66
  line-height: 52px;
67
67
  color: white;
@@ -8,7 +8,7 @@
8
8
  flex-wrap: wrap;
9
9
  justify-content: center;
10
10
  width: 100%;
11
- font-family: 'Open Sans';
11
+ font-family: 'Gilroy';
12
12
  box-sizing: border-box;
13
13
  text-align: center;
14
14
  color: white;
@@ -80,7 +80,7 @@
80
80
  display: block;
81
81
  word-wrap: break-word;
82
82
  padding: 3px 10px 5px;
83
- font-family: "Open Sans";
83
+ font-family: "Gilroy";
84
84
  font-size: 12px;
85
85
  font-weight: bold;
86
86
  }
@@ -58,7 +58,7 @@
58
58
  user-select: none;
59
59
  line-height: 16px;
60
60
  font-size: 14px;
61
- font-family: 'Open Sans';
61
+ font-family: 'Gilroy';
62
62
  text-align: center;
63
63
  }
64
64
 
@@ -224,7 +224,7 @@
224
224
  padding: 3px 11px;
225
225
  top: 0;
226
226
  left: 0;
227
- font-family: 'Open Sans';
227
+ font-family: 'Gilroy';
228
228
  text-transform: uppercase;
229
229
  font-size: 8px;
230
230
  font-weight: bold;
@@ -6,6 +6,7 @@ import fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';
6
6
  import fixtureAdaptiv from './fixtures/adaptiv';
7
7
  import fixtureArabic from './fixtures/arabic';
8
8
  import fixtureArticle from './fixtures/article';
9
+ import fixtureCoorpmanager from './fixtures/coorpmanager';
9
10
  import fixtureDefault from './fixtures/default';
10
11
  import fixtureDisabled from './fixtures/disabled';
11
12
  import fixtureEmpty from './fixtures/empty';
@@ -28,6 +29,7 @@ test('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered',
28
29
  test('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);
29
30
  test('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);
30
31
  test('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);
32
+ test('Molecule › MoleculeCard › Coorpmanager › should be rendered', renderComponentMacro, MoleculeCard, fixtureCoorpmanager);
31
33
  test('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);
32
34
  test('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);
33
35
  test('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);
@@ -1 +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","fixtureSelectableFalse","fixtureSelectableTrue","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,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAnB,IAAI,CAAC,uDAAD,EAA0DoB,CAAC,IAAI;AACjEA,E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DAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fa,YAA7F,CAAJ;AACAhB,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,YAAzF,EAAuGc,sBAAvG,CAAJ;AACAjB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,YAAxF,EAAsGe,qBAAtG,CAAJ;AACAlB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6FgB,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 fixtureSelectableFalse from './fixtures/selectable-false';\nimport fixtureSelectableTrue from './fixtures/selectable-true';\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 › SelectableFalse › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableFalse);\ntest('Molecule › MoleculeCard › SelectableTrue › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableTrue);\ntest('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCard","fixtureAdaptivAndDisabled","fixtureAdaptiv","fixtureArabic","fixtureArticle","fixtureCoorpmanager","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureExternalContent","fixtureFavorite","fixtureFreerunAndDisabled","fixtureFreerun","fixturePodcast","fixtureScorm","fixtureSelectableFalse","fixtureSelectableTrue","fixtureVideo","t","pass","propTypes","value","key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ponentMacro 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 fixtureCoorpmanager from './fixtures/coorpmanager';\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 fixtureSelectableFalse from './fixtures/selectable-false';\nimport fixtureSelectableTrue from './fixtures/selectable-true';\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 › Coorpmanager › should be rendered', renderComponentMacro, MoleculeCard, fixtureCoorpmanager);\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 › SelectableFalse › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableFalse);\ntest('Molecule › MoleculeCard › SelectableTrue › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableTrue);\ntest('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);\n"],"file":"fixtures.js"}
@@ -48,7 +48,7 @@
48
48
  }
49
49
 
50
50
  .microLearninglabel {
51
- font-family: 'Open Sans';
51
+ font-family: 'Gilroy';
52
52
  font-size: 10px;
53
53
  font-weight: 800;
54
54
  color: lightBlack;
@@ -74,7 +74,7 @@
74
74
  margin-top: 5px;
75
75
  font-size: 17px;
76
76
  letter-spacing: 0;
77
- font-family: 'Open Sans';
77
+ font-family: 'Gilroy';
78
78
  overflow: hidden;
79
79
  user-select: none;
80
80
  }
@@ -103,7 +103,7 @@
103
103
  align-items: center;
104
104
  font-size: 12px;
105
105
  width: 100%;
106
- font-family: 'Open Sans';
106
+ font-family: 'Gilroy';
107
107
  white-space: nowrap;
108
108
  overflow: hidden;
109
109
  text-overflow: ellipsis;
@@ -231,7 +231,7 @@
231
231
  }
232
232
 
233
233
  .contentTypeInfo {
234
- font-family: 'Open Sans';
234
+ font-family: 'Gilroy';
235
235
  font-size: 10px;
236
236
  font-weight: 700;
237
237
  }
@@ -105,7 +105,7 @@
105
105
  .lightButton{
106
106
  display: inline-block;
107
107
  box-sizing: border-box;
108
- font-family: 'Open Sans';
108
+ font-family: 'Gilroy';
109
109
  font-size: 13px;
110
110
  font-weight: 600;
111
111
  text-decoration: none;
@@ -129,7 +129,7 @@
129
129
 
130
130
  .level {
131
131
  text-align: center;
132
- font-family: 'Open Sans';
132
+ font-family: 'Gilroy';
133
133
  border: solid 1px #ffffff;
134
134
  color: white;
135
135
  padding: 0px 15px;
@@ -25,7 +25,7 @@
25
25
  display: flex;
26
26
  align-items: center;
27
27
  position: fixed;
28
- font-family: 'Open Sans';
28
+ font-family: 'Gilroy';
29
29
  top: 0;
30
30
  left: 0;
31
31
  right: 0;
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  .link {
52
- font-family: 'Open Sans';
52
+ font-family: 'Gilroy';
53
53
  font-weight: 600;
54
54
  font-size: 15px;
55
55
  text-decoration: none;
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import CardImagePreview from '../../atom/card-image-preview';
4
+ import ContentBadge from '../../atom/content-badge';
5
+ import style from './style.css';
6
+
7
+ const CourseSection = props => {
8
+ const {
9
+ image,
10
+ contentBadge: {
11
+ category,
12
+ label
13
+ },
14
+ title,
15
+ author,
16
+ position,
17
+ 'aria-label': {
18
+ title: ariaLabelTitle,
19
+ author: ariaLabelAuthor
20
+ }
21
+ } = props;
22
+ return /*#__PURE__*/React.createElement("div", {
23
+ className: style.container,
24
+ "aria-label": ariaLabelTitle,
25
+ "data-name": `course-section-${position}`
26
+ }, /*#__PURE__*/React.createElement("span", {
27
+ className: style.position
28
+ }, position), /*#__PURE__*/React.createElement("div", {
29
+ className: style.containerImage
30
+ }, /*#__PURE__*/React.createElement(CardImagePreview, {
31
+ image: image
32
+ })), /*#__PURE__*/React.createElement("div", {
33
+ className: style.containerInfos
34
+ }, /*#__PURE__*/React.createElement("div", {
35
+ className: style.containerMainInfos
36
+ }, /*#__PURE__*/React.createElement(ContentBadge, {
37
+ className: style.contentBadge,
38
+ category: category,
39
+ label: label
40
+ }), /*#__PURE__*/React.createElement("div", {
41
+ className: style.title
42
+ }, title)), /*#__PURE__*/React.createElement("span", {
43
+ className: style.author,
44
+ "aria-label": ariaLabelAuthor
45
+ }, author)));
46
+ };
47
+
48
+ CourseSection.propTypes = process.env.NODE_ENV !== "production" ? {
49
+ 'aria-label': PropTypes.shape({
50
+ title: PropTypes.string,
51
+ author: PropTypes.string
52
+ }),
53
+ image: PropTypes.string,
54
+ contentBadge: PropTypes.shape(ContentBadge.propTypes),
55
+ title: PropTypes.string,
56
+ author: PropTypes.string,
57
+ position: PropTypes.number
58
+ } : {};
59
+ export default CourseSection;
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/course-section/index.js"],"names":["React","PropTypes","CardImagePreview","ContentBadge","style","CourseSection","props","image","contentBadge","category","label","title","author","position","ariaLabelTitle","ariaLabelAuthor","container","containerImage","containerInfos","containerMainInfos","propTypes","shape","string","number"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,gBAAP,MAA6B,+BAA7B;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,aAAa,GAAGC,KAAK,IAAI;AAC7B,QAAM;AACJC,IAAAA,KADI;AAEJC,IAAAA,YAAY,EAAE;AAACC,MAAAA,QAAD;AAAWC,MAAAA;AAAX,KAFV;AAGJC,IAAAA,KAHI;AAIJC,IAAAA,MAJI;AAKJC,IAAAA,QALI;AAMJ,kBAAc;AAACF,MAAAA,KAAK,EAAEG,cAAR;AAAwBF,MAAAA,MAAM,EAAEG;AAAhC;AANV,MAOFT,KAPJ;AAQA,sBACE;AACE,IAAA,SAAS,EAAEF,KAAK,CAACY,SADnB;AAEE,kBAAYF,cAFd;AAGE,iBAAY,kBAAiBD,QAAS;AAHxC,kBAKE;AAAM,IAAA,SAAS,EAAET,KAAK,CAACS;AAAvB,KAAkCA,QAAlC,CALF,eAME;AAAK,IAAA,SAAS,EAAET,KAAK,CAACa;AAAtB,kBACE,oBAAC,gBAAD;AAAkB,IAAA,KAAK,EAAEV;AAAzB,IADF,CANF,eASE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACc;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEd,KAAK,CAACe;AAAtB,kBACE,oBAAC,YAAD;AAAc,IAAA,SAAS,EAAEf,KAAK,CAACI,YAA/B;AAA6C,IAAA,QAAQ,EAAEC,QAAvD;AAAiE,IAAA,KAAK,EAAEC;AAAxE,IADF,eAEE;AAAK,IAAA,SAAS,EAAEN,KAAK,CAACO;AAAtB,KAA8BA,KAA9B,CAFF,CADF,eAKE;AAAM,IAAA,SAAS,EAAEP,KAAK,CAACQ,MAAvB;AAA+B,kBAAYG;AAA3C,KACGH,MADH,CALF,CATF,CADF;AAqBD,CA9BD;;AAgCAP,aAAa,CAACe,SAAd,2CAA0B;AACxB,gBAAcnB,SAAS,CAACoB,KAAV,CAAgB;AAC5BV,IAAAA,KAAK,EAAEV,SAAS,CAACqB,MADW;AAE5BV,IAAAA,MAAM,EAAEX,SAAS,CAACqB;AAFU,GAAhB,CADU;AAKxBf,EAAAA,KAAK,EAAEN,SAAS,CAACqB,MALO;AAMxBd,EAAAA,YAAY,EAAEP,SAAS,CAACoB,KAAV,CAAgBlB,YAAY,CAACiB,SAA7B,CANU;AAOxBT,EAAAA,KAAK,EAAEV,SAAS,CAACqB,MAPO;AAQxBV,EAAAA,MAAM,EAAEX,SAAS,CAACqB,MARM;AASxBT,EAAAA,QAAQ,EAAEZ,SAAS,CAACsB;AATI,CAA1B;AAYA,eAAelB,aAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport CardImagePreview from '../../atom/card-image-preview';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nconst CourseSection = props => {\n const {\n image,\n contentBadge: {category, label},\n title,\n author,\n position,\n 'aria-label': {title: ariaLabelTitle, author: ariaLabelAuthor}\n } = props;\n return (\n <div\n className={style.container}\n aria-label={ariaLabelTitle}\n data-name={`course-section-${position}`}\n >\n <span className={style.position}>{position}</span>\n <div className={style.containerImage}>\n <CardImagePreview image={image} />\n </div>\n <div className={style.containerInfos}>\n <div className={style.containerMainInfos}>\n <ContentBadge className={style.contentBadge} category={category} label={label} />\n <div className={style.title}>{title}</div>\n </div>\n <span className={style.author} aria-label={ariaLabelAuthor}>\n {author}\n </span>\n </div>\n </div>\n );\n};\n\nCourseSection.propTypes = {\n 'aria-label': PropTypes.shape({\n title: PropTypes.string,\n author: PropTypes.string\n }),\n image: PropTypes.string,\n contentBadge: PropTypes.shape(ContentBadge.propTypes),\n title: PropTypes.string,\n author: PropTypes.string,\n position: PropTypes.number\n};\n\nexport default CourseSection;\n"],"file":"index.js"}
@@ -0,0 +1,65 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_50 from colors;
3
+ @value cm_grey_900 from colors;
4
+ @value cm_grey_500 from colors;
5
+ @value cm_grey_400 from colors;
6
+
7
+ .container {
8
+ align-items: center;
9
+ background-color: cm_grey_50;
10
+ border-radius: 7px;
11
+ display: flex;
12
+ font-size: 14px;
13
+ justify-content: start;
14
+ margin-top: 8px;
15
+ padding: 8px 16px;
16
+ }
17
+
18
+ .containerInfos {
19
+ margin-left: 16px;
20
+ overflow: hidden;
21
+ }
22
+
23
+ .containerMainInfos {
24
+ display: flex;
25
+ align-items: center;
26
+ }
27
+
28
+ .title {
29
+ color: cm_grey_900;
30
+ line-height: 22px;
31
+ font-family: Gilroy;
32
+ font-size: 16px;
33
+ font-weight: bold;
34
+ margin-left: 4px;
35
+ overflow:hidden;
36
+ white-space:nowrap;
37
+ display:inline-block;
38
+ text-overflow:ellipsis;
39
+ }
40
+
41
+ .author {
42
+ color: cm_grey_500;
43
+ display: block;
44
+ font-family: Gilroy;
45
+ line-height: 20px;
46
+ }
47
+
48
+ .position {
49
+ color: cm_grey_400;
50
+ font-family: Gilroy;
51
+ font-weight: 600;
52
+ line-height: 20px;
53
+ margin: 0 12px 0 14px;
54
+ }
55
+
56
+ .contentBadge {
57
+ font-size: 8px;
58
+ font-weight: bold;
59
+ line-height: 10px;;
60
+ }
61
+
62
+ .containerImage {
63
+ min-height: 56px;
64
+ min-width: 56px;
65
+ }
@@ -0,0 +1,17 @@
1
+ export default {
2
+ props: {
3
+ 'aria-label': {
4
+ title: 'aria label title',
5
+ author: 'aria label author'
6
+ },
7
+ title: 'Social networks',
8
+ author: 'Author',
9
+ image: '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',
10
+ contentBadge: {
11
+ label: 'chapter',
12
+ category: 'chapter'
13
+ },
14
+ position: 2
15
+ }
16
+ };
17
+ //# sourceMappingURL=chapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/course-section/test/fixtures/chapter.js"],"names":["props","title","author","image","contentBadge","label","category","position"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc;AACZC,MAAAA,KAAK,EAAE,kBADK;AAEZC,MAAAA,MAAM,EAAE;AAFI,KADT;AAKLD,IAAAA,KAAK,EAAE,iBALF;AAMLC,IAAAA,MAAM,EAAE,QANH;AAOLC,IAAAA,KAAK,EACH,4LARG;AASLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,SADK;AAEZC,MAAAA,QAAQ,EAAE;AAFE,KATT;AAaLC,IAAAA,QAAQ,EAAE;AAbL;AADM,CAAf","sourcesContent":["export default {\n props: {\n 'aria-label': {\n title: 'aria label title',\n author: 'aria label author'\n },\n title: 'Social networks',\n author: 'Author',\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 contentBadge: {\n label: 'chapter',\n category: 'chapter'\n },\n position: 2\n }\n};\n"],"file":"chapter.js"}
@@ -0,0 +1,17 @@
1
+ export default {
2
+ props: {
3
+ 'aria-label': {
4
+ title: 'aria label title',
5
+ author: 'aria label author'
6
+ },
7
+ title: 'Marketing and online advertising Marketing and online advertising Marketing and online advertising Marketing and online advertising',
8
+ author: 'Author',
9
+ image: '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',
10
+ contentBadge: {
11
+ label: 'course',
12
+ category: 'course'
13
+ },
14
+ position: 1
15
+ }
16
+ };
17
+ //# sourceMappingURL=course.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/course-section/test/fixtures/course.js"],"names":["props","title","author","image","contentBadge","label","category","position"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc;AACZC,MAAAA,KAAK,EAAE,kBADK;AAEZC,MAAAA,MAAM,EAAE;AAFI,KADT;AAKLD,IAAAA,KAAK,EACH,qIANG;AAOLC,IAAAA,MAAM,EAAE,QAPH;AAQLC,IAAAA,KAAK,EACH,4LATG;AAULC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,QADK;AAEZC,MAAAA,QAAQ,EAAE;AAFE,KAVT;AAcLC,IAAAA,QAAQ,EAAE;AAdL;AADM,CAAf","sourcesContent":["export default {\n props: {\n 'aria-label': {\n title: 'aria label title',\n author: 'aria label author'\n },\n title:\n 'Marketing and online advertising Marketing and online advertising Marketing and online advertising Marketing and online advertising',\n author: 'Author',\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 contentBadge: {\n label: 'course',\n category: 'course'\n },\n position: 1\n }\n};\n"],"file":"course.js"}
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  .title {
41
- font-family: 'Open Sans';
41
+ font-family: 'Gilroy';
42
42
  font-size: 19px;
43
43
  line-height: 20px;
44
44
  font-weight: 600;
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  .showMore {
61
- font-family: 'Open Sans';
61
+ font-family: 'Gilroy';
62
62
  font-size: 14px;
63
63
  line-height: 20px;
64
64
  font-weight: bold;
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .title {
23
- font-family: 'Open Sans';
23
+ font-family: 'Gilroy';
24
24
  font-size: 19px;
25
25
  font-weight: 600;
26
26
  color: dark;
@@ -35,7 +35,7 @@
35
35
  .more {
36
36
  width: 100%;
37
37
  background-color: xtraLightGrey;
38
- font-family: 'Open Sans';
38
+ font-family: 'Gilroy';
39
39
  font-weight: 600;
40
40
  color: medium;
41
41
  font-size: 17px;
@@ -135,7 +135,7 @@
135
135
  }
136
136
 
137
137
  .becomeText {
138
- font-family: Open Sans;
138
+ font-family: Gilroy;
139
139
  font-size: 24px;
140
140
  font-weight: normal;
141
141
  font-stretch: normal;
@@ -146,7 +146,7 @@
146
146
  }
147
147
 
148
148
  .challengeText {
149
- font-family: Open Sans;
149
+ font-family: Gilroy;
150
150
  font-size: 32px;
151
151
  font-weight: bold;
152
152
  font-stretch: normal;
@@ -164,7 +164,7 @@
164
164
  margin: 10px;
165
165
  background-color: battle;
166
166
  flex-grow: 0;
167
- font-family: Open Sans;
167
+ font-family: Gilroy;
168
168
  font-size: 16px;
169
169
  font-weight: bold;
170
170
  font-stretch: normal;
@@ -278,7 +278,7 @@
278
278
  }
279
279
 
280
280
  .challengeText {
281
- font-family: Open Sans;
281
+ font-family: Gilroy;
282
282
  font-size: 28px;
283
283
  padding-bottom: 20px;
284
284
  }
@@ -15,7 +15,7 @@
15
15
  display: block;
16
16
  text-transform: uppercase;
17
17
  color: white;
18
- font-family: "Open Sans";
18
+ font-family: "Gilroy";
19
19
  font-weight: 600;
20
20
  font-size: 13px;
21
21
  text-decoration: none;
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .head a span span {
34
- font-family: "Open Sans";
34
+ font-family: "Gilroy";
35
35
  font-weight: 800;
36
36
  }
37
37
 
@@ -38,7 +38,7 @@
38
38
 
39
39
  .title {
40
40
  display: block;
41
- font-family: "Open Sans";
41
+ font-family: "Gilroy";
42
42
  font-weight: 700;
43
43
  font-size: 20px;
44
44
  margin-bottom: 16px;
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  .desc {
49
- font-family: "Open Sans";
49
+ font-family: "Gilroy";
50
50
  font-size: 15px;
51
51
  color: black;
52
52
  letter-spacing: 0;
@@ -54,7 +54,7 @@
54
54
  }
55
55
 
56
56
  .desc a {
57
- font-family: Open Sans;
57
+ font-family: Gilroy;
58
58
  font-weight: 600;
59
59
  color: brand;
60
60
  text-decoration: none;
@@ -75,7 +75,7 @@
75
75
  transition: all time ease-in-out;
76
76
  cursor: pointer;
77
77
  order: 1;
78
- font-family: Open Sans;
78
+ font-family: Gilroy;
79
79
  font-weight: bold;
80
80
  text-align: left;
81
81
  color: brand;
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .authorLink a {
17
- font-family: 'Open Sans';
17
+ font-family: 'Gilroy';
18
18
  font-weight: 600;
19
19
  text-decoration: none;
20
20
  font-size: 12px;
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  .authorName {
43
- font-family: 'Open Sans';
43
+ font-family: 'Gilroy';
44
44
  font-size: 14px;
45
45
  font-weight: 600;
46
46
  color: dark;
@@ -17,5 +17,5 @@
17
17
  .baseText {
18
18
  text-transform: none;
19
19
  color: dark;
20
- font-family: 'Open Sans';
20
+ font-family: 'Gilroy';
21
21
  }
@@ -18,7 +18,7 @@
18
18
  justify-content: center;
19
19
  text-transform: none;
20
20
  color: dark;
21
- font-family: 'Open Sans';
21
+ font-family: 'Gilroy';
22
22
  font-size: 16px;
23
23
  font-weight: bold;
24
24
  }
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .back {
20
- font-family: 'Open Sans';
20
+ font-family: 'Gilroy';
21
21
  font-size: 16px;
22
22
  color: dark;
23
23
  cursor: pointer;
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  .or {
54
- font-family: 'Open Sans';
54
+ font-family: 'Gilroy';
55
55
  color: #797979;
56
56
  }
57
57
 
@@ -75,7 +75,7 @@
75
75
 
76
76
  .fileName {
77
77
  margin-left: 15px;
78
- font-family: 'Open Sans';
78
+ font-family: 'Gilroy';
79
79
  font-size: 16px;
80
80
  font-weight: bold;
81
81
  color: dark;
@@ -160,7 +160,7 @@
160
160
  }
161
161
 
162
162
  .message {
163
- font-family: 'Open Sans';
163
+ font-family: 'Gilroy';
164
164
  font-size: 16px;
165
165
  font-weight: bold;
166
166
  color: dark;
@@ -205,7 +205,7 @@
205
205
  display: block;
206
206
  word-wrap: break-word;
207
207
  padding: 3px 10px 5px;
208
- font-family: "Open Sans";
208
+ font-family: "Gilroy";
209
209
  font-size: 12px;
210
210
  font-weight: bold;
211
211
  }