@coorpacademy/components 10.13.12 → 10.13.13

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 (689) hide show
  1. package/es/molecule/skill-card/index.js +87 -0
  2. package/es/molecule/skill-card/index.js.map +1 -0
  3. package/es/molecule/skill-card/style.css +60 -0
  4. package/es/molecule/skill-card/test/fixtures/custom-skill.js +10 -0
  5. package/es/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
  6. package/es/molecule/skill-card/test/fixtures/default.js +15 -0
  7. package/es/molecule/skill-card/test/fixtures/default.js.map +1 -0
  8. package/es/molecule/skill-card/test/fixtures/no-aria-labels.js +12 -0
  9. package/es/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
  10. package/es/molecule/skill-card/test/fixtures/short-skill-title.js +10 -0
  11. package/es/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
  12. package/es/molecule/skill-card/test/skill-card.js +90 -0
  13. package/es/molecule/skill-card/test/skill-card.js.map +1 -0
  14. package/es/variables/colors.css +1 -0
  15. package/lib/molecule/skill-card/index.js +105 -0
  16. package/lib/molecule/skill-card/index.js.map +1 -0
  17. package/lib/molecule/skill-card/style.css +60 -0
  18. package/lib/molecule/skill-card/test/fixtures/custom-skill.js +17 -0
  19. package/lib/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
  20. package/lib/molecule/skill-card/test/fixtures/default.js +21 -0
  21. package/lib/molecule/skill-card/test/fixtures/default.js.map +1 -0
  22. package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js +18 -0
  23. package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
  24. package/lib/molecule/skill-card/test/fixtures/short-skill-title.js +17 -0
  25. package/lib/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
  26. package/lib/molecule/skill-card/test/skill-card.js +102 -0
  27. package/lib/molecule/skill-card/test/skill-card.js.map +1 -0
  28. package/lib/variables/colors.css +1 -0
  29. package/package.json +2 -2
  30. package/es/atom/autocomplete/test/fixtures.js +0 -19
  31. package/es/atom/autocomplete/test/fixtures.js.map +0 -1
  32. package/es/atom/avatar/test/fixtures.js +0 -13
  33. package/es/atom/avatar/test/fixtures.js.map +0 -1
  34. package/es/atom/button/test/fixtures.js +0 -27
  35. package/es/atom/button/test/fixtures.js.map +0 -1
  36. package/es/atom/catalog-section/test/fixtures.js +0 -15
  37. package/es/atom/catalog-section/test/fixtures.js.map +0 -1
  38. package/es/atom/centered-text/test/fixtures.js +0 -13
  39. package/es/atom/centered-text/test/fixtures.js.map +0 -1
  40. package/es/atom/checkbox/test/fixtures.js +0 -19
  41. package/es/atom/checkbox/test/fixtures.js.map +0 -1
  42. package/es/atom/clue/test/fixtures.js +0 -17
  43. package/es/atom/clue/test/fixtures.js.map +0 -1
  44. package/es/atom/cta/test/fixtures.js +0 -37
  45. package/es/atom/cta/test/fixtures.js.map +0 -1
  46. package/es/atom/difficulty-level/test/fixtures.js +0 -19
  47. package/es/atom/difficulty-level/test/fixtures.js.map +0 -1
  48. package/es/atom/drag-and-drop/test/fixtures.js +0 -23
  49. package/es/atom/drag-and-drop/test/fixtures.js.map +0 -1
  50. package/es/atom/image-upload/test/fixtures.js +0 -29
  51. package/es/atom/image-upload/test/fixtures.js.map +0 -1
  52. package/es/atom/input-checkbox/test/fixtures.js +0 -23
  53. package/es/atom/input-checkbox/test/fixtures.js.map +0 -1
  54. package/es/atom/input-color/test/fixtures.js +0 -19
  55. package/es/atom/input-color/test/fixtures.js.map +0 -1
  56. package/es/atom/input-doublestep/test/fixtures.js +0 -21
  57. package/es/atom/input-doublestep/test/fixtures.js.map +0 -1
  58. package/es/atom/input-html/test/fixtures.js +0 -17
  59. package/es/atom/input-html/test/fixtures.js.map +0 -1
  60. package/es/atom/input-readonly/test/fixtures.js +0 -13
  61. package/es/atom/input-readonly/test/fixtures.js.map +0 -1
  62. package/es/atom/input-switch/test/fixtures.js +0 -23
  63. package/es/atom/input-switch/test/fixtures.js.map +0 -1
  64. package/es/atom/input-text/test/fixtures.js +0 -25
  65. package/es/atom/input-text/test/fixtures.js.map +0 -1
  66. package/es/atom/input-textarea/test/fixtures.js +0 -17
  67. package/es/atom/input-textarea/test/fixtures.js.map +0 -1
  68. package/es/atom/label/test/fixtures.js +0 -15
  69. package/es/atom/label/test/fixtures.js.map +0 -1
  70. package/es/atom/life/test/fixtures.js +0 -25
  71. package/es/atom/life/test/fixtures.js.map +0 -1
  72. package/es/atom/link/test/fixtures.js +0 -17
  73. package/es/atom/link/test/fixtures.js.map +0 -1
  74. package/es/atom/loader/test/fixtures.js +0 -13
  75. package/es/atom/loader/test/fixtures.js.map +0 -1
  76. package/es/atom/notification/test/fixtures.js +0 -17
  77. package/es/atom/notification/test/fixtures.js.map +0 -1
  78. package/es/atom/picture/test/fixtures.js +0 -19
  79. package/es/atom/picture/test/fixtures.js.map +0 -1
  80. package/es/atom/picture-background/test/fixtures.js +0 -19
  81. package/es/atom/picture-background/test/fixtures.js.map +0 -1
  82. package/es/atom/promo-code/test/fixtures.js +0 -17
  83. package/es/atom/promo-code/test/fixtures.js.map +0 -1
  84. package/es/atom/provider/test/fixtures.js +0 -13
  85. package/es/atom/provider/test/fixtures.js.map +0 -1
  86. package/es/atom/radio-group/test/fixtures.js +0 -17
  87. package/es/atom/radio-group/test/fixtures.js.map +0 -1
  88. package/es/atom/range/test/fixtures.js +0 -15
  89. package/es/atom/range/test/fixtures.js.map +0 -1
  90. package/es/atom/resource-miniature/test/fixtures.js +0 -21
  91. package/es/atom/resource-miniature/test/fixtures.js.map +0 -1
  92. package/es/atom/select/test/fixtures.js +0 -43
  93. package/es/atom/select/test/fixtures.js.map +0 -1
  94. package/es/atom/slide/test/fixtures.js +0 -21
  95. package/es/atom/slide/test/fixtures.js.map +0 -1
  96. package/es/atom/social-link/test/fixtures.js +0 -17
  97. package/es/atom/social-link/test/fixtures.js.map +0 -1
  98. package/es/atom/spinner/test/fixtures.js +0 -13
  99. package/es/atom/spinner/test/fixtures.js.map +0 -1
  100. package/es/atom/tab/test/fixtures.js +0 -13
  101. package/es/atom/tab/test/fixtures.js.map +0 -1
  102. package/es/atom/tab-content/test/fixtures.js +0 -15
  103. package/es/atom/tab-content/test/fixtures.js.map +0 -1
  104. package/es/atom/title/test/fixtures.js +0 -13
  105. package/es/atom/title/test/fixtures.js.map +0 -1
  106. package/es/atom/video-upload/test/fixtures.js +0 -21
  107. package/es/atom/video-upload/test/fixtures.js.map +0 -1
  108. package/es/hoc/animation/test/fixtures.js +0 -15
  109. package/es/hoc/animation/test/fixtures.js.map +0 -1
  110. package/es/hoc/animation-scheduler/test/fixtures.js +0 -15
  111. package/es/hoc/animation-scheduler/test/fixtures.js.map +0 -1
  112. package/es/hoc/swapper/test/fixtures.js +0 -13
  113. package/es/hoc/swapper/test/fixtures.js.map +0 -1
  114. package/es/hoc/transition/test/fixtures.js +0 -13
  115. package/es/hoc/transition/test/fixtures.js.map +0 -1
  116. package/es/molecule/add-to-my-list/test/fixtures.js +0 -15
  117. package/es/molecule/add-to-my-list/test/fixtures.js.map +0 -1
  118. package/es/molecule/answer/test/fixtures.js +0 -35
  119. package/es/molecule/answer/test/fixtures.js.map +0 -1
  120. package/es/molecule/audio/test/fixtures.js +0 -15
  121. package/es/molecule/audio/test/fixtures.js.map +0 -1
  122. package/es/molecule/battle-request/test/fixtures.js +0 -15
  123. package/es/molecule/battle-request/test/fixtures.js.map +0 -1
  124. package/es/molecule/brand-card/test/fixtures.js +0 -15
  125. package/es/molecule/brand-card/test/fixtures.js.map +0 -1
  126. package/es/molecule/brand-card-create/test/fixtures.js +0 -13
  127. package/es/molecule/brand-card-create/test/fixtures.js.map +0 -1
  128. package/es/molecule/brand-create-form/test/fixtures.js +0 -19
  129. package/es/molecule/brand-create-form/test/fixtures.js.map +0 -1
  130. package/es/molecule/brand-download-box/test/fixtures.js +0 -17
  131. package/es/molecule/brand-download-box/test/fixtures.js.map +0 -1
  132. package/es/molecule/brand-form-group/test/fixtures.js +0 -33
  133. package/es/molecule/brand-form-group/test/fixtures.js.map +0 -1
  134. package/es/molecule/brand-tabs/test/fixtures.js +0 -29
  135. package/es/molecule/brand-tabs/test/fixtures.js.map +0 -1
  136. package/es/molecule/brand-upload-box/test/fixtures.js +0 -17
  137. package/es/molecule/brand-upload-box/test/fixtures.js.map +0 -1
  138. package/es/molecule/breadcrumbs/test/fixtures.js +0 -13
  139. package/es/molecule/breadcrumbs/test/fixtures.js.map +0 -1
  140. package/es/molecule/card/test/fixtures.js +0 -39
  141. package/es/molecule/card/test/fixtures.js.map +0 -1
  142. package/es/molecule/card-content/test/fixtures.js +0 -27
  143. package/es/molecule/card-content/test/fixtures.js.map +0 -1
  144. package/es/molecule/card-with-button/test/fixtures.js +0 -17
  145. package/es/molecule/card-with-button/test/fixtures.js.map +0 -1
  146. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  147. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  148. package/es/molecule/cookie-banner/test/fixtures.js +0 -13
  149. package/es/molecule/cookie-banner/test/fixtures.js.map +0 -1
  150. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +0 -15
  151. package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +0 -1
  152. package/es/molecule/dashboard/cards-list/test/fixtures.js +0 -23
  153. package/es/molecule/dashboard/cards-list/test/fixtures.js.map +0 -1
  154. package/es/molecule/dashboard/news-list/test/fixtures.js +0 -17
  155. package/es/molecule/dashboard/news-list/test/fixtures.js.map +0 -1
  156. package/es/molecule/dashboard/start-battle/test/fixtures.js +0 -15
  157. package/es/molecule/dashboard/start-battle/test/fixtures.js.map +0 -1
  158. package/es/molecule/discipline-cta/test/fixtures.js +0 -15
  159. package/es/molecule/discipline-cta/test/fixtures.js.map +0 -1
  160. package/es/molecule/discipline-header/test/fixtures.js +0 -27
  161. package/es/molecule/discipline-header/test/fixtures.js.map +0 -1
  162. package/es/molecule/discipline-partners/test/fixtures.js +0 -21
  163. package/es/molecule/discipline-partners/test/fixtures.js.map +0 -1
  164. package/es/molecule/discipline-scope/test/fixtures.js +0 -27
  165. package/es/molecule/discipline-scope/test/fixtures.js.map +0 -1
  166. package/es/molecule/drag-and-drop/test/fixtures.js +0 -25
  167. package/es/molecule/drag-and-drop/test/fixtures.js.map +0 -1
  168. package/es/molecule/external-content-button/test/fixtures.js +0 -19
  169. package/es/molecule/external-content-button/test/fixtures.js.map +0 -1
  170. package/es/molecule/external-content-viewer/test/fixtures.js +0 -27
  171. package/es/molecule/external-content-viewer/test/fixtures.js.map +0 -1
  172. package/es/molecule/feedback/test/fixtures.js +0 -27
  173. package/es/molecule/feedback/test/fixtures.js.map +0 -1
  174. package/es/molecule/filters/test/fixtures.js +0 -33
  175. package/es/molecule/filters/test/fixtures.js.map +0 -1
  176. package/es/molecule/forum/forum-comment/test/fixtures.js +0 -17
  177. package/es/molecule/forum/forum-comment/test/fixtures.js.map +0 -1
  178. package/es/molecule/forum/forum-post/test/fixtures.js +0 -31
  179. package/es/molecule/forum/forum-post/test/fixtures.js.map +0 -1
  180. package/es/molecule/forum/forum-thread/test/fixtures.js +0 -17
  181. package/es/molecule/forum/forum-thread/test/fixtures.js.map +0 -1
  182. package/es/molecule/hero/test/fixtures.js +0 -15
  183. package/es/molecule/hero/test/fixtures.js.map +0 -1
  184. package/es/molecule/login-alert/test/fixtures.js +0 -13
  185. package/es/molecule/login-alert/test/fixtures.js.map +0 -1
  186. package/es/molecule/menu-list/test/fixtures.js +0 -13
  187. package/es/molecule/menu-list/test/fixtures.js.map +0 -1
  188. package/es/molecule/message-popin/test/fixtures.js +0 -13
  189. package/es/molecule/message-popin/test/fixtures.js.map +0 -1
  190. package/es/molecule/modal/test/fixtures.js +0 -13
  191. package/es/molecule/modal/test/fixtures.js.map +0 -1
  192. package/es/molecule/module-bubble/test/fixtures.js +0 -17
  193. package/es/molecule/module-bubble/test/fixtures.js.map +0 -1
  194. package/es/molecule/module-card/test/fixtures.js +0 -17
  195. package/es/molecule/module-card/test/fixtures.js.map +0 -1
  196. package/es/molecule/news/test/fixtures.js +0 -23
  197. package/es/molecule/news/test/fixtures.js.map +0 -1
  198. package/es/molecule/notification-banner/test/fixtures.js +0 -17
  199. package/es/molecule/notification-banner/test/fixtures.js.map +0 -1
  200. package/es/molecule/pagination/test/fixtures.js +0 -15
  201. package/es/molecule/pagination/test/fixtures.js.map +0 -1
  202. package/es/molecule/payment-form/test/fixtures.js +0 -17
  203. package/es/molecule/payment-form/test/fixtures.js.map +0 -1
  204. package/es/molecule/pdf/test/fixtures.js +0 -13
  205. package/es/molecule/pdf/test/fixtures.js.map +0 -1
  206. package/es/molecule/product-card/test/fixtures.js +0 -13
  207. package/es/molecule/product-card/test/fixtures.js.map +0 -1
  208. package/es/molecule/progress-bar/test/fixtures.js +0 -15
  209. package/es/molecule/progress-bar/test/fixtures.js.map +0 -1
  210. package/es/molecule/questions/drop-down/test/fixtures.js +0 -15
  211. package/es/molecule/questions/drop-down/test/fixtures.js.map +0 -1
  212. package/es/molecule/questions/free-text/test/fixtures.js +0 -15
  213. package/es/molecule/questions/free-text/test/fixtures.js.map +0 -1
  214. package/es/molecule/questions/qcm/test/fixtures.js +0 -19
  215. package/es/molecule/questions/qcm/test/fixtures.js.map +0 -1
  216. package/es/molecule/questions/qcm-drag/test/fixtures.js +0 -15
  217. package/es/molecule/questions/qcm-drag/test/fixtures.js.map +0 -1
  218. package/es/molecule/questions/qcm-graphic/test/fixtures.js +0 -15
  219. package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +0 -1
  220. package/es/molecule/questions/question-range/test/fixtures.js +0 -13
  221. package/es/molecule/questions/question-range/test/fixtures.js.map +0 -1
  222. package/es/molecule/questions/template/test/fixtures.js +0 -15
  223. package/es/molecule/questions/template/test/fixtures.js.map +0 -1
  224. package/es/molecule/resource-player/test/fixtures.js +0 -25
  225. package/es/molecule/resource-player/test/fixtures.js.map +0 -1
  226. package/es/molecule/scope-content/test/fixtures.js +0 -27
  227. package/es/molecule/scope-content/test/fixtures.js.map +0 -1
  228. package/es/molecule/scope-tabs/test/fixtures.js +0 -17
  229. package/es/molecule/scope-tabs/test/fixtures.js.map +0 -1
  230. package/es/molecule/search/test/fixtures.js +0 -15
  231. package/es/molecule/search/test/fixtures.js.map +0 -1
  232. package/es/molecule/search-form/test/fixtures.js +0 -13
  233. package/es/molecule/search-form/test/fixtures.js.map +0 -1
  234. package/es/molecule/select-multiple/test/fixtures.js +0 -23
  235. package/es/molecule/select-multiple/test/fixtures.js.map +0 -1
  236. package/es/molecule/setup-cohort-item/test/fixtures.js +0 -19
  237. package/es/molecule/setup-cohort-item/test/fixtures.js.map +0 -1
  238. package/es/molecule/setup-section/test/fixtures.js +0 -25
  239. package/es/molecule/setup-section/test/fixtures.js.map +0 -1
  240. package/es/molecule/setup-sections/test/fixtures.js +0 -19
  241. package/es/molecule/setup-sections/test/fixtures.js.map +0 -1
  242. package/es/molecule/setup-slide/test/fixtures.js +0 -23
  243. package/es/molecule/setup-slide/test/fixtures.js.map +0 -1
  244. package/es/molecule/setup-slider/test/fixtures.js +0 -15
  245. package/es/molecule/setup-slider/test/fixtures.js.map +0 -1
  246. package/es/molecule/share/test/fixtures.js +0 -13
  247. package/es/molecule/share/test/fixtures.js.map +0 -1
  248. package/es/molecule/ssmenu-list/test/fixtures.js +0 -19
  249. package/es/molecule/ssmenu-list/test/fixtures.js.map +0 -1
  250. package/es/molecule/subscription-freemium/test/fixtures.js +0 -13
  251. package/es/molecule/subscription-freemium/test/fixtures.js.map +0 -1
  252. package/es/molecule/subscription-premium/test/fixtures.js +0 -15
  253. package/es/molecule/subscription-premium/test/fixtures.js.map +0 -1
  254. package/es/molecule/table/test/fixtures.js +0 -19
  255. package/es/molecule/table/test/fixtures.js.map +0 -1
  256. package/es/molecule/teams-popin/test/fixtures.js +0 -29
  257. package/es/molecule/teams-popin/test/fixtures.js.map +0 -1
  258. package/es/molecule/theme-image/test/fixtures.js +0 -13
  259. package/es/molecule/theme-image/test/fixtures.js.map +0 -1
  260. package/es/molecule/titled-checkbox/test/fixtures.js +0 -17
  261. package/es/molecule/titled-checkbox/test/fixtures.js.map +0 -1
  262. package/es/molecule/unsubscribe/test/fixtures.js +0 -15
  263. package/es/molecule/unsubscribe/test/fixtures.js.map +0 -1
  264. package/es/molecule/video-iframe/test/fixtures.js +0 -25
  265. package/es/molecule/video-iframe/test/fixtures.js.map +0 -1
  266. package/es/molecule/video-player/test/fixtures.js +0 -29
  267. package/es/molecule/video-player/test/fixtures.js.map +0 -1
  268. package/es/organism/accordion/container/test/fixtures.js +0 -17
  269. package/es/organism/accordion/container/test/fixtures.js.map +0 -1
  270. package/es/organism/accordion/part/test/fixtures.js +0 -15
  271. package/es/organism/accordion/part/test/fixtures.js.map +0 -1
  272. package/es/organism/accordion/toggler/test/fixtures.js +0 -17
  273. package/es/organism/accordion/toggler/test/fixtures.js.map +0 -1
  274. package/es/organism/brand-dashboard/test/fixtures.js +0 -23
  275. package/es/organism/brand-dashboard/test/fixtures.js.map +0 -1
  276. package/es/organism/brand-form/test/fixtures.js +0 -31
  277. package/es/organism/brand-form/test/fixtures.js.map +0 -1
  278. package/es/organism/brand-table/test/fixtures.js +0 -19
  279. package/es/organism/brand-table/test/fixtures.js.map +0 -1
  280. package/es/organism/brand-upload/test/fixtures.js +0 -15
  281. package/es/organism/brand-upload/test/fixtures.js.map +0 -1
  282. package/es/organism/cards-grid/test/fixtures.js +0 -19
  283. package/es/organism/cards-grid/test/fixtures.js.map +0 -1
  284. package/es/organism/cart/test/fixtures.js +0 -13
  285. package/es/organism/cart/test/fixtures.js.map +0 -1
  286. package/es/organism/discussion/test/fixtures.js +0 -19
  287. package/es/organism/discussion/test/fixtures.js.map +0 -1
  288. package/es/organism/get-the-app/test/fixtures.js +0 -13
  289. package/es/organism/get-the-app/test/fixtures.js.map +0 -1
  290. package/es/organism/grid-list/test/fixtures.js +0 -13
  291. package/es/organism/grid-list/test/fixtures.js.map +0 -1
  292. package/es/organism/header/test/fixtures.js +0 -13
  293. package/es/organism/header/test/fixtures.js.map +0 -1
  294. package/es/organism/hero/test/fixtures.js +0 -17
  295. package/es/organism/hero/test/fixtures.js.map +0 -1
  296. package/es/organism/mooc/image-slider/test/fixtures.js +0 -15
  297. package/es/organism/mooc/image-slider/test/fixtures.js.map +0 -1
  298. package/es/organism/mooc-footer/test/fixtures.js +0 -23
  299. package/es/organism/mooc-footer/test/fixtures.js.map +0 -1
  300. package/es/organism/mooc-header/test/fixtures.js +0 -25
  301. package/es/organism/mooc-header/test/fixtures.js.map +0 -1
  302. package/es/organism/popin/test/fixtures.js +0 -13
  303. package/es/organism/popin/test/fixtures.js.map +0 -1
  304. package/es/organism/resource-browser/test/fixtures.js +0 -37
  305. package/es/organism/resource-browser/test/fixtures.js.map +0 -1
  306. package/es/organism/settings/test/fixtures.js +0 -19
  307. package/es/organism/settings/test/fixtures.js.map +0 -1
  308. package/es/organism/setup-header/test/fixtures.js +0 -15
  309. package/es/organism/setup-header/test/fixtures.js.map +0 -1
  310. package/es/organism/sidebar/test/fixtures.js +0 -23
  311. package/es/organism/sidebar/test/fixtures.js.map +0 -1
  312. package/es/organism/slider/test/fixtures.js +0 -15
  313. package/es/organism/slider/test/fixtures.js.map +0 -1
  314. package/es/organism/user-preferences/test/fixtures.js +0 -13
  315. package/es/organism/user-preferences/test/fixtures.js.map +0 -1
  316. package/es/template/activity/test/fixtures.js +0 -21
  317. package/es/template/activity/test/fixtures.js.map +0 -1
  318. package/es/template/app-player/loading/test/fixtures.js +0 -13
  319. package/es/template/app-player/loading/test/fixtures.js.map +0 -1
  320. package/es/template/app-player/player/slides/footer/test/fixtures.js +0 -29
  321. package/es/template/app-player/player/slides/footer/test/fixtures.js.map +0 -1
  322. package/es/template/app-player/player/slides/header/test/fixtures.js +0 -23
  323. package/es/template/app-player/player/slides/header/test/fixtures.js.map +0 -1
  324. package/es/template/app-player/player/slides/test/fixtures.js +0 -79
  325. package/es/template/app-player/player/slides/test/fixtures.js.map +0 -1
  326. package/es/template/app-player/player/test/fixtures.js +0 -55
  327. package/es/template/app-player/player/test/fixtures.js.map +0 -1
  328. package/es/template/app-player/popin-correction/test/fixtures.js +0 -47
  329. package/es/template/app-player/popin-correction/test/fixtures.js.map +0 -1
  330. package/es/template/app-player/popin-end/test/fixtures.js +0 -49
  331. package/es/template/app-player/popin-end/test/fixtures.js.map +0 -1
  332. package/es/template/app-player/popin-header/test/fixtures.js +0 -29
  333. package/es/template/app-player/popin-header/test/fixtures.js.map +0 -1
  334. package/es/template/back-office/brand-create/test/fixtures.js +0 -19
  335. package/es/template/back-office/brand-create/test/fixtures.js.map +0 -1
  336. package/es/template/back-office/brand-list/test/fixtures.js +0 -17
  337. package/es/template/back-office/brand-list/test/fixtures.js.map +0 -1
  338. package/es/template/back-office/brand-update/test/fixtures.js +0 -65
  339. package/es/template/back-office/brand-update/test/fixtures.js.map +0 -1
  340. package/es/template/back-office/dashboard-preview/test/fixtures.js +0 -23
  341. package/es/template/back-office/dashboard-preview/test/fixtures.js.map +0 -1
  342. package/es/template/battle-requests/test/fixtures.js +0 -13
  343. package/es/template/battle-requests/test/fixtures.js.map +0 -1
  344. package/es/template/cockpit/jw-uploader/test/fixtures.js +0 -13
  345. package/es/template/cockpit/jw-uploader/test/fixtures.js.map +0 -1
  346. package/es/template/common/authors/test/fixtures.js +0 -15
  347. package/es/template/common/authors/test/fixtures.js.map +0 -1
  348. package/es/template/common/coorp-header/test/fixtures.js +0 -15
  349. package/es/template/common/coorp-header/test/fixtures.js.map +0 -1
  350. package/es/template/common/dashboard/test/fixtures.js +0 -17
  351. package/es/template/common/dashboard/test/fixtures.js.map +0 -1
  352. package/es/template/common/discipline/test/fixtures.js +0 -47
  353. package/es/template/common/discipline/test/fixtures.js.map +0 -1
  354. package/es/template/common/search-page/test/fixtures.js +0 -17
  355. package/es/template/common/search-page/test/fixtures.js.map +0 -1
  356. package/es/template/external-course/test/fixtures.js +0 -31
  357. package/es/template/external-course/test/fixtures.js.map +0 -1
  358. package/es/template/teams-dashboard/test/fixtures.js +0 -15
  359. package/es/template/teams-dashboard/test/fixtures.js.map +0 -1
  360. package/lib/atom/autocomplete/test/fixtures.js +0 -31
  361. package/lib/atom/autocomplete/test/fixtures.js.map +0 -1
  362. package/lib/atom/avatar/test/fixtures.js +0 -22
  363. package/lib/atom/avatar/test/fixtures.js.map +0 -1
  364. package/lib/atom/button/test/fixtures.js +0 -43
  365. package/lib/atom/button/test/fixtures.js.map +0 -1
  366. package/lib/atom/catalog-section/test/fixtures.js +0 -25
  367. package/lib/atom/catalog-section/test/fixtures.js.map +0 -1
  368. package/lib/atom/centered-text/test/fixtures.js +0 -22
  369. package/lib/atom/centered-text/test/fixtures.js.map +0 -1
  370. package/lib/atom/checkbox/test/fixtures.js +0 -31
  371. package/lib/atom/checkbox/test/fixtures.js.map +0 -1
  372. package/lib/atom/clue/test/fixtures.js +0 -28
  373. package/lib/atom/clue/test/fixtures.js.map +0 -1
  374. package/lib/atom/cta/test/fixtures.js +0 -58
  375. package/lib/atom/cta/test/fixtures.js.map +0 -1
  376. package/lib/atom/difficulty-level/test/fixtures.js +0 -31
  377. package/lib/atom/difficulty-level/test/fixtures.js.map +0 -1
  378. package/lib/atom/drag-and-drop/test/fixtures.js +0 -37
  379. package/lib/atom/drag-and-drop/test/fixtures.js.map +0 -1
  380. package/lib/atom/image-upload/test/fixtures.js +0 -46
  381. package/lib/atom/image-upload/test/fixtures.js.map +0 -1
  382. package/lib/atom/input-checkbox/test/fixtures.js +0 -37
  383. package/lib/atom/input-checkbox/test/fixtures.js.map +0 -1
  384. package/lib/atom/input-color/test/fixtures.js +0 -31
  385. package/lib/atom/input-color/test/fixtures.js.map +0 -1
  386. package/lib/atom/input-doublestep/test/fixtures.js +0 -34
  387. package/lib/atom/input-doublestep/test/fixtures.js.map +0 -1
  388. package/lib/atom/input-html/test/fixtures.js +0 -28
  389. package/lib/atom/input-html/test/fixtures.js.map +0 -1
  390. package/lib/atom/input-readonly/test/fixtures.js +0 -22
  391. package/lib/atom/input-readonly/test/fixtures.js.map +0 -1
  392. package/lib/atom/input-switch/test/fixtures.js +0 -37
  393. package/lib/atom/input-switch/test/fixtures.js.map +0 -1
  394. package/lib/atom/input-text/test/fixtures.js +0 -40
  395. package/lib/atom/input-text/test/fixtures.js.map +0 -1
  396. package/lib/atom/input-textarea/test/fixtures.js +0 -28
  397. package/lib/atom/input-textarea/test/fixtures.js.map +0 -1
  398. package/lib/atom/label/test/fixtures.js +0 -25
  399. package/lib/atom/label/test/fixtures.js.map +0 -1
  400. package/lib/atom/life/test/fixtures.js +0 -40
  401. package/lib/atom/life/test/fixtures.js.map +0 -1
  402. package/lib/atom/link/test/fixtures.js +0 -28
  403. package/lib/atom/link/test/fixtures.js.map +0 -1
  404. package/lib/atom/loader/test/fixtures.js +0 -22
  405. package/lib/atom/loader/test/fixtures.js.map +0 -1
  406. package/lib/atom/notification/test/fixtures.js +0 -28
  407. package/lib/atom/notification/test/fixtures.js.map +0 -1
  408. package/lib/atom/picture/test/fixtures.js +0 -31
  409. package/lib/atom/picture/test/fixtures.js.map +0 -1
  410. package/lib/atom/picture-background/test/fixtures.js +0 -31
  411. package/lib/atom/picture-background/test/fixtures.js.map +0 -1
  412. package/lib/atom/promo-code/test/fixtures.js +0 -28
  413. package/lib/atom/promo-code/test/fixtures.js.map +0 -1
  414. package/lib/atom/provider/test/fixtures.js +0 -22
  415. package/lib/atom/provider/test/fixtures.js.map +0 -1
  416. package/lib/atom/radio-group/test/fixtures.js +0 -28
  417. package/lib/atom/radio-group/test/fixtures.js.map +0 -1
  418. package/lib/atom/range/test/fixtures.js +0 -25
  419. package/lib/atom/range/test/fixtures.js.map +0 -1
  420. package/lib/atom/resource-miniature/test/fixtures.js +0 -34
  421. package/lib/atom/resource-miniature/test/fixtures.js.map +0 -1
  422. package/lib/atom/select/test/fixtures.js +0 -67
  423. package/lib/atom/select/test/fixtures.js.map +0 -1
  424. package/lib/atom/slide/test/fixtures.js +0 -34
  425. package/lib/atom/slide/test/fixtures.js.map +0 -1
  426. package/lib/atom/social-link/test/fixtures.js +0 -28
  427. package/lib/atom/social-link/test/fixtures.js.map +0 -1
  428. package/lib/atom/spinner/test/fixtures.js +0 -22
  429. package/lib/atom/spinner/test/fixtures.js.map +0 -1
  430. package/lib/atom/tab/test/fixtures.js +0 -22
  431. package/lib/atom/tab/test/fixtures.js.map +0 -1
  432. package/lib/atom/tab-content/test/fixtures.js +0 -25
  433. package/lib/atom/tab-content/test/fixtures.js.map +0 -1
  434. package/lib/atom/title/test/fixtures.js +0 -22
  435. package/lib/atom/title/test/fixtures.js.map +0 -1
  436. package/lib/atom/video-upload/test/fixtures.js +0 -34
  437. package/lib/atom/video-upload/test/fixtures.js.map +0 -1
  438. package/lib/hoc/animation/test/fixtures.js +0 -25
  439. package/lib/hoc/animation/test/fixtures.js.map +0 -1
  440. package/lib/hoc/animation-scheduler/test/fixtures.js +0 -25
  441. package/lib/hoc/animation-scheduler/test/fixtures.js.map +0 -1
  442. package/lib/hoc/swapper/test/fixtures.js +0 -22
  443. package/lib/hoc/swapper/test/fixtures.js.map +0 -1
  444. package/lib/hoc/transition/test/fixtures.js +0 -22
  445. package/lib/hoc/transition/test/fixtures.js.map +0 -1
  446. package/lib/molecule/add-to-my-list/test/fixtures.js +0 -25
  447. package/lib/molecule/add-to-my-list/test/fixtures.js.map +0 -1
  448. package/lib/molecule/answer/test/fixtures.js +0 -55
  449. package/lib/molecule/answer/test/fixtures.js.map +0 -1
  450. package/lib/molecule/audio/test/fixtures.js +0 -25
  451. package/lib/molecule/audio/test/fixtures.js.map +0 -1
  452. package/lib/molecule/battle-request/test/fixtures.js +0 -25
  453. package/lib/molecule/battle-request/test/fixtures.js.map +0 -1
  454. package/lib/molecule/brand-card/test/fixtures.js +0 -25
  455. package/lib/molecule/brand-card/test/fixtures.js.map +0 -1
  456. package/lib/molecule/brand-card-create/test/fixtures.js +0 -22
  457. package/lib/molecule/brand-card-create/test/fixtures.js.map +0 -1
  458. package/lib/molecule/brand-create-form/test/fixtures.js +0 -31
  459. package/lib/molecule/brand-create-form/test/fixtures.js.map +0 -1
  460. package/lib/molecule/brand-download-box/test/fixtures.js +0 -28
  461. package/lib/molecule/brand-download-box/test/fixtures.js.map +0 -1
  462. package/lib/molecule/brand-form-group/test/fixtures.js +0 -52
  463. package/lib/molecule/brand-form-group/test/fixtures.js.map +0 -1
  464. package/lib/molecule/brand-tabs/test/fixtures.js +0 -46
  465. package/lib/molecule/brand-tabs/test/fixtures.js.map +0 -1
  466. package/lib/molecule/brand-upload-box/test/fixtures.js +0 -28
  467. package/lib/molecule/brand-upload-box/test/fixtures.js.map +0 -1
  468. package/lib/molecule/breadcrumbs/test/fixtures.js +0 -22
  469. package/lib/molecule/breadcrumbs/test/fixtures.js.map +0 -1
  470. package/lib/molecule/card/test/fixtures.js +0 -61
  471. package/lib/molecule/card/test/fixtures.js.map +0 -1
  472. package/lib/molecule/card-content/test/fixtures.js +0 -43
  473. package/lib/molecule/card-content/test/fixtures.js.map +0 -1
  474. package/lib/molecule/card-with-button/test/fixtures.js +0 -28
  475. package/lib/molecule/card-with-button/test/fixtures.js.map +0 -1
  476. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  477. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  478. package/lib/molecule/cookie-banner/test/fixtures.js +0 -22
  479. package/lib/molecule/cookie-banner/test/fixtures.js.map +0 -1
  480. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +0 -25
  481. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +0 -1
  482. package/lib/molecule/dashboard/cards-list/test/fixtures.js +0 -37
  483. package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +0 -1
  484. package/lib/molecule/dashboard/news-list/test/fixtures.js +0 -28
  485. package/lib/molecule/dashboard/news-list/test/fixtures.js.map +0 -1
  486. package/lib/molecule/dashboard/start-battle/test/fixtures.js +0 -25
  487. package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +0 -1
  488. package/lib/molecule/discipline-cta/test/fixtures.js +0 -25
  489. package/lib/molecule/discipline-cta/test/fixtures.js.map +0 -1
  490. package/lib/molecule/discipline-header/test/fixtures.js +0 -43
  491. package/lib/molecule/discipline-header/test/fixtures.js.map +0 -1
  492. package/lib/molecule/discipline-partners/test/fixtures.js +0 -34
  493. package/lib/molecule/discipline-partners/test/fixtures.js.map +0 -1
  494. package/lib/molecule/discipline-scope/test/fixtures.js +0 -43
  495. package/lib/molecule/discipline-scope/test/fixtures.js.map +0 -1
  496. package/lib/molecule/drag-and-drop/test/fixtures.js +0 -40
  497. package/lib/molecule/drag-and-drop/test/fixtures.js.map +0 -1
  498. package/lib/molecule/external-content-button/test/fixtures.js +0 -31
  499. package/lib/molecule/external-content-button/test/fixtures.js.map +0 -1
  500. package/lib/molecule/external-content-viewer/test/fixtures.js +0 -43
  501. package/lib/molecule/external-content-viewer/test/fixtures.js.map +0 -1
  502. package/lib/molecule/feedback/test/fixtures.js +0 -43
  503. package/lib/molecule/feedback/test/fixtures.js.map +0 -1
  504. package/lib/molecule/filters/test/fixtures.js +0 -52
  505. package/lib/molecule/filters/test/fixtures.js.map +0 -1
  506. package/lib/molecule/forum/forum-comment/test/fixtures.js +0 -28
  507. package/lib/molecule/forum/forum-comment/test/fixtures.js.map +0 -1
  508. package/lib/molecule/forum/forum-post/test/fixtures.js +0 -49
  509. package/lib/molecule/forum/forum-post/test/fixtures.js.map +0 -1
  510. package/lib/molecule/forum/forum-thread/test/fixtures.js +0 -28
  511. package/lib/molecule/forum/forum-thread/test/fixtures.js.map +0 -1
  512. package/lib/molecule/hero/test/fixtures.js +0 -25
  513. package/lib/molecule/hero/test/fixtures.js.map +0 -1
  514. package/lib/molecule/login-alert/test/fixtures.js +0 -22
  515. package/lib/molecule/login-alert/test/fixtures.js.map +0 -1
  516. package/lib/molecule/menu-list/test/fixtures.js +0 -22
  517. package/lib/molecule/menu-list/test/fixtures.js.map +0 -1
  518. package/lib/molecule/message-popin/test/fixtures.js +0 -22
  519. package/lib/molecule/message-popin/test/fixtures.js.map +0 -1
  520. package/lib/molecule/modal/test/fixtures.js +0 -22
  521. package/lib/molecule/modal/test/fixtures.js.map +0 -1
  522. package/lib/molecule/module-bubble/test/fixtures.js +0 -28
  523. package/lib/molecule/module-bubble/test/fixtures.js.map +0 -1
  524. package/lib/molecule/module-card/test/fixtures.js +0 -28
  525. package/lib/molecule/module-card/test/fixtures.js.map +0 -1
  526. package/lib/molecule/news/test/fixtures.js +0 -37
  527. package/lib/molecule/news/test/fixtures.js.map +0 -1
  528. package/lib/molecule/notification-banner/test/fixtures.js +0 -28
  529. package/lib/molecule/notification-banner/test/fixtures.js.map +0 -1
  530. package/lib/molecule/pagination/test/fixtures.js +0 -25
  531. package/lib/molecule/pagination/test/fixtures.js.map +0 -1
  532. package/lib/molecule/payment-form/test/fixtures.js +0 -28
  533. package/lib/molecule/payment-form/test/fixtures.js.map +0 -1
  534. package/lib/molecule/pdf/test/fixtures.js +0 -22
  535. package/lib/molecule/pdf/test/fixtures.js.map +0 -1
  536. package/lib/molecule/product-card/test/fixtures.js +0 -22
  537. package/lib/molecule/product-card/test/fixtures.js.map +0 -1
  538. package/lib/molecule/progress-bar/test/fixtures.js +0 -25
  539. package/lib/molecule/progress-bar/test/fixtures.js.map +0 -1
  540. package/lib/molecule/questions/drop-down/test/fixtures.js +0 -25
  541. package/lib/molecule/questions/drop-down/test/fixtures.js.map +0 -1
  542. package/lib/molecule/questions/free-text/test/fixtures.js +0 -25
  543. package/lib/molecule/questions/free-text/test/fixtures.js.map +0 -1
  544. package/lib/molecule/questions/qcm/test/fixtures.js +0 -31
  545. package/lib/molecule/questions/qcm/test/fixtures.js.map +0 -1
  546. package/lib/molecule/questions/qcm-drag/test/fixtures.js +0 -25
  547. package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +0 -1
  548. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +0 -25
  549. package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +0 -1
  550. package/lib/molecule/questions/question-range/test/fixtures.js +0 -22
  551. package/lib/molecule/questions/question-range/test/fixtures.js.map +0 -1
  552. package/lib/molecule/questions/template/test/fixtures.js +0 -25
  553. package/lib/molecule/questions/template/test/fixtures.js.map +0 -1
  554. package/lib/molecule/resource-player/test/fixtures.js +0 -40
  555. package/lib/molecule/resource-player/test/fixtures.js.map +0 -1
  556. package/lib/molecule/scope-content/test/fixtures.js +0 -43
  557. package/lib/molecule/scope-content/test/fixtures.js.map +0 -1
  558. package/lib/molecule/scope-tabs/test/fixtures.js +0 -28
  559. package/lib/molecule/scope-tabs/test/fixtures.js.map +0 -1
  560. package/lib/molecule/search/test/fixtures.js +0 -25
  561. package/lib/molecule/search/test/fixtures.js.map +0 -1
  562. package/lib/molecule/search-form/test/fixtures.js +0 -22
  563. package/lib/molecule/search-form/test/fixtures.js.map +0 -1
  564. package/lib/molecule/select-multiple/test/fixtures.js +0 -37
  565. package/lib/molecule/select-multiple/test/fixtures.js.map +0 -1
  566. package/lib/molecule/setup-cohort-item/test/fixtures.js +0 -31
  567. package/lib/molecule/setup-cohort-item/test/fixtures.js.map +0 -1
  568. package/lib/molecule/setup-section/test/fixtures.js +0 -40
  569. package/lib/molecule/setup-section/test/fixtures.js.map +0 -1
  570. package/lib/molecule/setup-sections/test/fixtures.js +0 -31
  571. package/lib/molecule/setup-sections/test/fixtures.js.map +0 -1
  572. package/lib/molecule/setup-slide/test/fixtures.js +0 -37
  573. package/lib/molecule/setup-slide/test/fixtures.js.map +0 -1
  574. package/lib/molecule/setup-slider/test/fixtures.js +0 -25
  575. package/lib/molecule/setup-slider/test/fixtures.js.map +0 -1
  576. package/lib/molecule/share/test/fixtures.js +0 -22
  577. package/lib/molecule/share/test/fixtures.js.map +0 -1
  578. package/lib/molecule/ssmenu-list/test/fixtures.js +0 -31
  579. package/lib/molecule/ssmenu-list/test/fixtures.js.map +0 -1
  580. package/lib/molecule/subscription-freemium/test/fixtures.js +0 -22
  581. package/lib/molecule/subscription-freemium/test/fixtures.js.map +0 -1
  582. package/lib/molecule/subscription-premium/test/fixtures.js +0 -25
  583. package/lib/molecule/subscription-premium/test/fixtures.js.map +0 -1
  584. package/lib/molecule/table/test/fixtures.js +0 -31
  585. package/lib/molecule/table/test/fixtures.js.map +0 -1
  586. package/lib/molecule/teams-popin/test/fixtures.js +0 -46
  587. package/lib/molecule/teams-popin/test/fixtures.js.map +0 -1
  588. package/lib/molecule/theme-image/test/fixtures.js +0 -22
  589. package/lib/molecule/theme-image/test/fixtures.js.map +0 -1
  590. package/lib/molecule/titled-checkbox/test/fixtures.js +0 -28
  591. package/lib/molecule/titled-checkbox/test/fixtures.js.map +0 -1
  592. package/lib/molecule/unsubscribe/test/fixtures.js +0 -25
  593. package/lib/molecule/unsubscribe/test/fixtures.js.map +0 -1
  594. package/lib/molecule/video-iframe/test/fixtures.js +0 -40
  595. package/lib/molecule/video-iframe/test/fixtures.js.map +0 -1
  596. package/lib/molecule/video-player/test/fixtures.js +0 -46
  597. package/lib/molecule/video-player/test/fixtures.js.map +0 -1
  598. package/lib/organism/accordion/container/test/fixtures.js +0 -28
  599. package/lib/organism/accordion/container/test/fixtures.js.map +0 -1
  600. package/lib/organism/accordion/part/test/fixtures.js +0 -25
  601. package/lib/organism/accordion/part/test/fixtures.js.map +0 -1
  602. package/lib/organism/accordion/toggler/test/fixtures.js +0 -28
  603. package/lib/organism/accordion/toggler/test/fixtures.js.map +0 -1
  604. package/lib/organism/brand-dashboard/test/fixtures.js +0 -37
  605. package/lib/organism/brand-dashboard/test/fixtures.js.map +0 -1
  606. package/lib/organism/brand-form/test/fixtures.js +0 -49
  607. package/lib/organism/brand-form/test/fixtures.js.map +0 -1
  608. package/lib/organism/brand-table/test/fixtures.js +0 -31
  609. package/lib/organism/brand-table/test/fixtures.js.map +0 -1
  610. package/lib/organism/brand-upload/test/fixtures.js +0 -25
  611. package/lib/organism/brand-upload/test/fixtures.js.map +0 -1
  612. package/lib/organism/cards-grid/test/fixtures.js +0 -31
  613. package/lib/organism/cards-grid/test/fixtures.js.map +0 -1
  614. package/lib/organism/cart/test/fixtures.js +0 -22
  615. package/lib/organism/cart/test/fixtures.js.map +0 -1
  616. package/lib/organism/discussion/test/fixtures.js +0 -31
  617. package/lib/organism/discussion/test/fixtures.js.map +0 -1
  618. package/lib/organism/get-the-app/test/fixtures.js +0 -22
  619. package/lib/organism/get-the-app/test/fixtures.js.map +0 -1
  620. package/lib/organism/grid-list/test/fixtures.js +0 -22
  621. package/lib/organism/grid-list/test/fixtures.js.map +0 -1
  622. package/lib/organism/header/test/fixtures.js +0 -22
  623. package/lib/organism/header/test/fixtures.js.map +0 -1
  624. package/lib/organism/hero/test/fixtures.js +0 -28
  625. package/lib/organism/hero/test/fixtures.js.map +0 -1
  626. package/lib/organism/mooc/image-slider/test/fixtures.js +0 -25
  627. package/lib/organism/mooc/image-slider/test/fixtures.js.map +0 -1
  628. package/lib/organism/mooc-footer/test/fixtures.js +0 -37
  629. package/lib/organism/mooc-footer/test/fixtures.js.map +0 -1
  630. package/lib/organism/mooc-header/test/fixtures.js +0 -40
  631. package/lib/organism/mooc-header/test/fixtures.js.map +0 -1
  632. package/lib/organism/popin/test/fixtures.js +0 -22
  633. package/lib/organism/popin/test/fixtures.js.map +0 -1
  634. package/lib/organism/resource-browser/test/fixtures.js +0 -58
  635. package/lib/organism/resource-browser/test/fixtures.js.map +0 -1
  636. package/lib/organism/settings/test/fixtures.js +0 -31
  637. package/lib/organism/settings/test/fixtures.js.map +0 -1
  638. package/lib/organism/setup-header/test/fixtures.js +0 -25
  639. package/lib/organism/setup-header/test/fixtures.js.map +0 -1
  640. package/lib/organism/sidebar/test/fixtures.js +0 -37
  641. package/lib/organism/sidebar/test/fixtures.js.map +0 -1
  642. package/lib/organism/slider/test/fixtures.js +0 -25
  643. package/lib/organism/slider/test/fixtures.js.map +0 -1
  644. package/lib/organism/user-preferences/test/fixtures.js +0 -22
  645. package/lib/organism/user-preferences/test/fixtures.js.map +0 -1
  646. package/lib/template/activity/test/fixtures.js +0 -34
  647. package/lib/template/activity/test/fixtures.js.map +0 -1
  648. package/lib/template/app-player/loading/test/fixtures.js +0 -22
  649. package/lib/template/app-player/loading/test/fixtures.js.map +0 -1
  650. package/lib/template/app-player/player/slides/footer/test/fixtures.js +0 -46
  651. package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +0 -1
  652. package/lib/template/app-player/player/slides/header/test/fixtures.js +0 -37
  653. package/lib/template/app-player/player/slides/header/test/fixtures.js.map +0 -1
  654. package/lib/template/app-player/player/slides/test/fixtures.js +0 -121
  655. package/lib/template/app-player/player/slides/test/fixtures.js.map +0 -1
  656. package/lib/template/app-player/player/test/fixtures.js +0 -85
  657. package/lib/template/app-player/player/test/fixtures.js.map +0 -1
  658. package/lib/template/app-player/popin-correction/test/fixtures.js +0 -73
  659. package/lib/template/app-player/popin-correction/test/fixtures.js.map +0 -1
  660. package/lib/template/app-player/popin-end/test/fixtures.js +0 -76
  661. package/lib/template/app-player/popin-end/test/fixtures.js.map +0 -1
  662. package/lib/template/app-player/popin-header/test/fixtures.js +0 -46
  663. package/lib/template/app-player/popin-header/test/fixtures.js.map +0 -1
  664. package/lib/template/back-office/brand-create/test/fixtures.js +0 -31
  665. package/lib/template/back-office/brand-create/test/fixtures.js.map +0 -1
  666. package/lib/template/back-office/brand-list/test/fixtures.js +0 -28
  667. package/lib/template/back-office/brand-list/test/fixtures.js.map +0 -1
  668. package/lib/template/back-office/brand-update/test/fixtures.js +0 -100
  669. package/lib/template/back-office/brand-update/test/fixtures.js.map +0 -1
  670. package/lib/template/back-office/dashboard-preview/test/fixtures.js +0 -37
  671. package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +0 -1
  672. package/lib/template/battle-requests/test/fixtures.js +0 -22
  673. package/lib/template/battle-requests/test/fixtures.js.map +0 -1
  674. package/lib/template/cockpit/jw-uploader/test/fixtures.js +0 -22
  675. package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +0 -1
  676. package/lib/template/common/authors/test/fixtures.js +0 -25
  677. package/lib/template/common/authors/test/fixtures.js.map +0 -1
  678. package/lib/template/common/coorp-header/test/fixtures.js +0 -25
  679. package/lib/template/common/coorp-header/test/fixtures.js.map +0 -1
  680. package/lib/template/common/dashboard/test/fixtures.js +0 -28
  681. package/lib/template/common/dashboard/test/fixtures.js.map +0 -1
  682. package/lib/template/common/discipline/test/fixtures.js +0 -73
  683. package/lib/template/common/discipline/test/fixtures.js.map +0 -1
  684. package/lib/template/common/search-page/test/fixtures.js +0 -28
  685. package/lib/template/common/search-page/test/fixtures.js.map +0 -1
  686. package/lib/template/external-course/test/fixtures.js +0 -49
  687. package/lib/template/external-course/test/fixtures.js.map +0 -1
  688. package/lib/template/teams-dashboard/test/fixtures.js +0 -25
  689. package/lib/template/teams-dashboard/test/fixtures.js.map +0 -1
@@ -0,0 +1,87 @@
1
+ import React, { useCallback, useState, useMemo } from 'react';
2
+ import { convert } from 'css-color-function';
3
+ import PropTypes from 'prop-types';
4
+ import { NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon } from '@coorpacademy/nova-icons';
5
+ import getOr from 'lodash/fp/getOr';
6
+ import ButtonLink from '../../atom/button-link';
7
+ import style from './style.css';
8
+
9
+ const getGradientBackground = baseColor => {
10
+ const gradients = [convert(`color(${baseColor} lightness(30%))`), convert(`color(${baseColor} lightness(47%))`), convert(`color(${baseColor} lightness(55%))`)];
11
+ return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${convert(`color(${gradients[0]} a(0))`)} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${convert(`color(${gradients[1]} a(0))`)} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${convert(`color(${gradients[2]} a(0))`)} 100%), ${baseColor}`;
12
+ };
13
+
14
+ const SkillCard = (props, context) => {
15
+ const {
16
+ 'aria-label': ariaLabel,
17
+ skillTitle,
18
+ skillAriaLabel,
19
+ buttonLabel,
20
+ buttonAriaLabel,
21
+ reviseLabel,
22
+ reviseAriaLabel,
23
+ onClick,
24
+ isCustom = false
25
+ } = props;
26
+ const {
27
+ skin
28
+ } = context;
29
+ const [hovered, setHovered] = useState(false);
30
+ const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);
31
+ const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);
32
+ const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);
33
+ const buttonProps = {
34
+ customStyle: {
35
+ backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),
36
+ color: hovered ? '#FFFFFF' : primarySkinColor,
37
+ transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
38
+ },
39
+ onClick,
40
+ 'aria-label': buttonAriaLabel,
41
+ label: buttonLabel,
42
+ 'data-name': 'skill-card-button'
43
+ };
44
+ const titleBackgroundColor = useMemo(() => isCustom ? '#128C72' : primarySkinColor, [isCustom, primarySkinColor]);
45
+ const titleBackground = useMemo(() => getGradientBackground(titleBackgroundColor), [titleBackgroundColor]);
46
+ return /*#__PURE__*/React.createElement("div", {
47
+ className: style.skillCardWrapper,
48
+ "data-name": "skill-card-wrapper",
49
+ "aria-label": ariaLabel
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ "data-name": "skill-title",
52
+ className: style.skillTitle,
53
+ "aria-label": skillAriaLabel || skillTitle,
54
+ style: {
55
+ background: titleBackground
56
+ }
57
+ }, skillTitle), /*#__PURE__*/React.createElement("div", {
58
+ "data-name": "card-content-wrapper"
59
+ }, /*#__PURE__*/React.createElement("div", {
60
+ className: style.questionReviseText,
61
+ "data-name": "questions-to-revise-label",
62
+ "aria-label": reviseAriaLabel || reviseLabel
63
+ }, /*#__PURE__*/React.createElement(QuestionIcon, {
64
+ className: style.questionReviseIcon,
65
+ width: 16,
66
+ height: 16
67
+ }), reviseLabel), /*#__PURE__*/React.createElement("div", {
68
+ className: style.buttonWrapper,
69
+ onMouseOver: handleMouseOver,
70
+ onMouseLeave: handleMouseLeave,
71
+ "data-name": "button-wrapper"
72
+ }, /*#__PURE__*/React.createElement(ButtonLink, buttonProps))));
73
+ };
74
+
75
+ SkillCard.propTypes = process.env.NODE_ENV !== "production" ? {
76
+ 'aria-label': PropTypes.string.isRequired,
77
+ skillTitle: PropTypes.string,
78
+ skillAriaLabel: PropTypes.string,
79
+ buttonLabel: PropTypes.string,
80
+ buttonAriaLabel: PropTypes.string,
81
+ reviseLabel: PropTypes.string,
82
+ reviseAriaLabel: PropTypes.string,
83
+ isCustom: PropTypes.bool,
84
+ onClick: PropTypes.func
85
+ } : {};
86
+ export default SkillCard;
87
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/skill-card/index.js"],"names":["React","useCallback","useState","useMemo","convert","PropTypes","NovaSolidInterfaceFeedbackInterfaceQuestionMark","QuestionIcon","getOr","ButtonLink","style","getGradientBackground","baseColor","gradients","SkillCard","props","context","ariaLabel","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","onClick","isCustom","skin","hovered","setHovered","primarySkinColor","handleMouseOver","handleMouseLeave","buttonProps","customStyle","backgroundColor","color","transition","label","titleBackgroundColor","titleBackground","skillCardWrapper","background","questionReviseText","questionReviseIcon","buttonWrapper","propTypes","string","isRequired","bool","func"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,WAAf,EAA4BC,QAA5B,EAAsCC,OAAtC,QAAoD,OAApD;AACA,SAAQC,OAAR,QAAsB,oBAAtB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,+CAA+C,IAAIC,YAA3D,QAA8E,0BAA9E;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,qBAAqB,GAAGC,SAAS,IAAI;AACzC,QAAMC,SAAS,GAAG,CAChBT,OAAO,CAAE,SAAQQ,SAAU,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Z,kBAME,oBAAC,UAAD,EAAgBC,WAAhB,CANF,CATF,CAXF,CADF;AAgCD,CAzED;;AA2EAlB,SAAS,CAAC+B,SAAV,2CAAsB;AACpB,gBAAcxC,SAAS,CAACyC,MAAV,CAAiBC,UADX;AAEpB7B,EAAAA,UAAU,EAAEb,SAAS,CAACyC,MAFF;AAGpB3B,EAAAA,cAAc,EAAEd,SAAS,CAACyC,MAHN;AAIpB1B,EAAAA,WAAW,EAAEf,SAAS,CAACyC,MAJH;AAKpBzB,EAAAA,eAAe,EAAEhB,SAAS,CAACyC,MALP;AAMpBxB,EAAAA,WAAW,EAAEjB,SAAS,CAACyC,MANH;AAOpBvB,EAAAA,eAAe,EAAElB,SAAS,CAACyC,MAPP;AAQpBrB,EAAAA,QAAQ,EAAEpB,SAAS,CAAC2C,IARA;AASpBxB,EAAAA,OAAO,EAAEnB,SAAS,CAAC4C;AATC,CAAtB;AAYA,eAAenC,SAAf","sourcesContent":["import React, {useCallback, useState, useMemo} from 'react';\nimport {convert} from 'css-color-function';\nimport PropTypes from 'prop-types';\nimport {NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon} from '@coorpacademy/nova-icons';\nimport getOr from 'lodash/fp/getOr';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst getGradientBackground = baseColor => {\n const gradients = [\n convert(`color(${baseColor} lightness(30%))`),\n convert(`color(${baseColor} lightness(47%))`),\n convert(`color(${baseColor} lightness(55%))`)\n ];\n\n return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${convert(\n `color(${gradients[0]} a(0))`\n )} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${convert(\n `color(${gradients[1]} a(0))`\n )} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${convert(\n `color(${gradients[2]} a(0))`\n )} 100%), ${baseColor}`;\n};\n\nconst SkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n buttonLabel,\n buttonAriaLabel,\n reviseLabel,\n reviseAriaLabel,\n onClick,\n isCustom = false\n } = props;\n const {skin} = context;\n const [hovered, setHovered] = useState(false);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const buttonProps = {\n customStyle: {\n backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),\n color: hovered ? '#FFFFFF' : primarySkinColor,\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n onClick,\n 'aria-label': buttonAriaLabel,\n label: buttonLabel,\n 'data-name': 'skill-card-button'\n };\n\n const titleBackgroundColor = useMemo(() => (isCustom ? '#128C72' : primarySkinColor), [\n isCustom,\n primarySkinColor\n ]);\n\n const titleBackground = useMemo(() => getGradientBackground(titleBackgroundColor), [\n titleBackgroundColor\n ]);\n\n return (\n <div className={style.skillCardWrapper} data-name=\"skill-card-wrapper\" aria-label={ariaLabel}>\n <div\n data-name=\"skill-title\"\n className={style.skillTitle}\n aria-label={skillAriaLabel || skillTitle}\n style={{\n background: titleBackground\n }}\n >\n {skillTitle}\n </div>\n <div data-name=\"card-content-wrapper\">\n <div\n className={style.questionReviseText}\n data-name=\"questions-to-revise-label\"\n aria-label={reviseAriaLabel || reviseLabel}\n >\n <QuestionIcon className={style.questionReviseIcon} width={16} height={16} />\n {reviseLabel}\n </div>\n <div\n className={style.buttonWrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n data-name=\"button-wrapper\"\n >\n <ButtonLink {...buttonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nSkillCard.propTypes = {\n 'aria-label': PropTypes.string.isRequired,\n skillTitle: PropTypes.string,\n skillAriaLabel: PropTypes.string,\n buttonLabel: PropTypes.string,\n buttonAriaLabel: PropTypes.string,\n reviseLabel: PropTypes.string,\n reviseAriaLabel: PropTypes.string,\n isCustom: PropTypes.bool,\n onClick: PropTypes.func\n};\n\nexport default SkillCard;\n"],"file":"index.js"}
@@ -0,0 +1,60 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_400 from colors;
3
+ @value white from colors;
4
+ @value box_shadow_light_dark from colors;
5
+ @value box_shadow_medium_dark from colors;
6
+
7
+ .textBase {
8
+ font-family: "Gilroy";
9
+ font-style: normal;
10
+ }
11
+
12
+ .skillCardWrapper {
13
+ display: flex;
14
+ flex-direction: column;
15
+ max-width: 353px;
16
+ min-width: 245px;
17
+ height: 242px;
18
+ box-shadow: 0px 4px 16px box_shadow_light_dark;
19
+ transition: box-shadow 0.15s ease-in-out;
20
+ border-radius: 8px 8px 12px 12px;
21
+ }
22
+
23
+ .skillCardWrapper:hover {
24
+ box-shadow: 0px 4px 48px box_shadow_medium_dark;
25
+ }
26
+
27
+ .skillTitle {
28
+ composes: textBase;
29
+ font-weight: 600;
30
+ font-size: 20px;
31
+ line-height: 28px;
32
+ display: flex;
33
+ align-items: center;
34
+ height: 112px;
35
+ border-radius: 8px 8px 0px 0px;
36
+ color: white;
37
+ padding: 0px 24px;
38
+ user-select: none;
39
+ }
40
+
41
+ .questionReviseIcon {
42
+ padding-right : 8px;
43
+ }
44
+
45
+ .questionReviseText {
46
+ composes: textBase;
47
+ display: flex;
48
+ align-items : center;
49
+ font-weight: 400;
50
+ font-size: 16px;
51
+ line-height: 22px;
52
+ color: cm_grey_400;
53
+ padding: 16px 24px 24px;
54
+ user-select: none;
55
+
56
+ }
57
+
58
+ .buttonWrapper {
59
+ padding: 0px 24px;
60
+ }
@@ -0,0 +1,10 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import { defaultProps } from './default';
4
+ export default {
5
+ props: _extends(_extends({}, defaultProps), {}, {
6
+ skillTitle: 'This is a custom skill',
7
+ isCustom: true
8
+ })
9
+ };
10
+ //# sourceMappingURL=custom-skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/custom-skill.js"],"names":["defaultProps","props","skillTitle","isCustom"],"mappings":";;AAAA,SAAQA,YAAR,QAA2B,WAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,wBAAMD,YAAN;AAAoBE,IAAAA,UAAU,EAAE,wBAAhC;AAA0DC,IAAAA,QAAQ,EAAE;AAApE;AADQ,CAAf","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'This is a custom skill', isCustom: true}\n};\n"],"file":"custom-skill.js"}
@@ -0,0 +1,15 @@
1
+ export const defaultProps = {
2
+ 'aria-label': 'Skill Card',
3
+ skillTitle: 'Critical thinking and analysis',
4
+ skillAriaLabel: 'Skill aria label',
5
+ buttonLabel: 'Revise this skill',
6
+ buttonAriaLabel: 'Button aria label',
7
+ reviseLabel: '75 questions to revise',
8
+ reviseAriaLabel: 'revise aria label',
9
+ isCustom: undefined,
10
+ onClick: () => console.log('revise')
11
+ };
12
+ export default {
13
+ props: defaultProps
14
+ };
15
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/default.js"],"names":["defaultProps","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","isCustom","undefined","onClick","console","log","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,cAAc,EAAE,kBAHU;AAI1BC,EAAAA,WAAW,EAAE,mBAJa;AAK1BC,EAAAA,eAAe,EAAE,mBALS;AAM1BC,EAAAA,WAAW,EAAE,wBANa;AAO1BC,EAAAA,eAAe,EAAE,mBAPS;AAQ1BC,EAAAA,QAAQ,EAAEC,SARgB;AAS1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AATW,CAArB;AAYP,eAAe;AACbC,EAAAA,KAAK,EAAEZ;AADM,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n skillAriaLabel: 'Skill aria label',\n buttonLabel: 'Revise this skill',\n buttonAriaLabel: 'Button aria label',\n reviseLabel: '75 questions to revise',\n reviseAriaLabel: 'revise aria label',\n isCustom: undefined,\n onClick: () => console.log('revise')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"default.js"}
@@ -0,0 +1,12 @@
1
+ export const defaultProps = {
2
+ 'aria-label': 'Skill Card',
3
+ skillTitle: 'Critical thinking and analysis',
4
+ buttonLabel: 'Revise this skill',
5
+ reviseLabel: '75 questions to revise',
6
+ isCustom: undefined,
7
+ onClick: () => console.log('revise - no aria')
8
+ };
9
+ export default {
10
+ props: defaultProps
11
+ };
12
+ //# sourceMappingURL=no-aria-labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/no-aria-labels.js"],"names":["defaultProps","skillTitle","buttonLabel","reviseLabel","isCustom","undefined","onClick","console","log","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,WAAW,EAAE,mBAHa;AAI1BC,EAAAA,WAAW,EAAE,wBAJa;AAK1BC,EAAAA,QAAQ,EAAEC,SALgB;AAM1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AANW,CAArB;AASP,eAAe;AACbC,EAAAA,KAAK,EAAET;AADM,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n buttonLabel: 'Revise this skill',\n reviseLabel: '75 questions to revise',\n isCustom: undefined,\n onClick: () => console.log('revise - no aria')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"no-aria-labels.js"}
@@ -0,0 +1,10 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import { defaultProps } from './default';
4
+ export default {
5
+ props: _extends(_extends({}, defaultProps), {}, {
6
+ skillTitle: 'Agility',
7
+ isCustom: false
8
+ })
9
+ };
10
+ //# sourceMappingURL=short-skill-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/short-skill-title.js"],"names":["defaultProps","props","skillTitle","isCustom"],"mappings":";;AAAA,SAAQA,YAAR,QAA2B,WAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,wBAAMD,YAAN;AAAoBE,IAAAA,UAAU,EAAE,SAAhC;AAA2CC,IAAAA,QAAQ,EAAE;AAArD;AADQ,CAAf","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'Agility', isCustom: false}\n};\n"],"file":"short-skill-title.js"}
@@ -0,0 +1,90 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import browserEnv from 'browser-env';
4
+ import test from 'ava';
5
+ import React from 'react';
6
+ import { mount, configure } from 'enzyme';
7
+ import Adapter from 'enzyme-adapter-react-16';
8
+ import SkillCard from '..';
9
+ import customSkillFixture from './fixtures/custom-skill';
10
+ import noAriaLabelsFixtures from './fixtures/no-aria-labels';
11
+ browserEnv();
12
+ configure({
13
+ adapter: new Adapter()
14
+ });
15
+ test('onClick should be reachable, should match given aria-label', t => {
16
+ let buttonWasClicked = false;
17
+ customSkillFixture.props = _extends(_extends({}, customSkillFixture.props), {}, {
18
+ onClick: () => {
19
+ buttonWasClicked = true;
20
+ }
21
+ });
22
+ const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, customSkillFixture.props));
23
+ const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
24
+ t.true(cardWrapper.at(0).exists());
25
+ t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');
26
+ const skillTitle = cardWrapper.find('[data-name="skill-title"]');
27
+ t.true(skillTitle.at(0).exists());
28
+ t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');
29
+ const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
30
+ t.true(questionsLabel.at(0).exists());
31
+ t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');
32
+ const buttonLink = cardWrapper.find('[data-name="skill-card-button"]');
33
+ t.true(buttonLink.at(0).exists());
34
+ t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');
35
+ buttonLink.at(0).simulate('click', {});
36
+ t.true(buttonWasClicked);
37
+ t.pass();
38
+ });
39
+ test('onHover should change button text color && backgroundColor', t => {
40
+ const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, customSkillFixture.props));
41
+ const expectedStyleNoHover = {
42
+ backgroundColor: 'rgba(0, 176, 255, 0.07)',
43
+ color: '#00B0FF',
44
+ transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
45
+ };
46
+ const expectedStyleOnHover = {
47
+ backgroundColor: '#00B0FF',
48
+ color: '#FFFFFF',
49
+ transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
50
+ };
51
+ let cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
52
+ t.true(cardWrapper.at(0).exists());
53
+ let buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
54
+ t.true(buttonWrapper.at(0).exists());
55
+ let buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
56
+ t.true(buttonLink.at(0).exists());
57
+ t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover); // hover
58
+
59
+ buttonWrapper.simulate('mouseover');
60
+ wrapper.update();
61
+ cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
62
+ buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
63
+ t.true(buttonWrapper.at(0).exists());
64
+ buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
65
+ t.true(buttonLink.at(0).exists());
66
+ t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover); // leave hover
67
+
68
+ buttonWrapper.simulate('mouseleave');
69
+ wrapper.update();
70
+ buttonLink = wrapper.find('[data-name="skill-card-button"] button');
71
+ t.true(buttonLink.at(0).exists());
72
+ t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);
73
+ t.pass();
74
+ });
75
+ test('should use default aria-labels if aria-label props are not provided', t => {
76
+ const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, noAriaLabelsFixtures.props));
77
+ const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
78
+ t.true(cardWrapper.at(0).exists());
79
+ const skillTitle = cardWrapper.find('[data-name="skill-title"]');
80
+ t.true(skillTitle.at(0).exists());
81
+ t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');
82
+ const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
83
+ t.true(questionsLabel.at(0).exists());
84
+ t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');
85
+ const buttonLink = cardWrapper.find('[data-name="skill-card-button"] button');
86
+ t.true(buttonLink.at(0).exists());
87
+ t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');
88
+ t.pass();
89
+ });
90
+ //# sourceMappingURL=skill-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/skill-card/test/skill-card.js"],"names":["browserEnv","test","React","mount","configure","Adapter","SkillCard","customSkillFixture","noAriaLabelsFixtures","adapter","t","buttonWasClicked","props","onClick","wrapper","cardWrapper","find","true","at","exists","is","skillTitle","questionsLabel","buttonLink","simulate","pass","expectedStyleNoHover","backgroundColor","color","transition","expectedStyleOnHover","buttonWrapper","deepEqual","style","update"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,KAAR,EAAeC,SAAf,QAA+B,QAA/B;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,SAAP,MAAsB,IAAtB;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AAEAR,UAAU;AACVI,SAAS,CAAC;AAACK,EAAAA,OAAO,EAAE,IAAIJ,OAAJ;AAAV,CAAD,CAAT;AAEAJ,IAAI,CAAC,4DAAD,EAA+DS,CAAC,IAAI;AACtE,MAAIC,gBAAgB,GAAG,KAAvB;AACAJ,EAAAA,kBAAkB,CAACK,KAAnB,yBACKL,kBAAkB,CAACK,KADxB;AAEEC,IAAAA,OAAO,EAAE,MAAM;AACbF,MAAAA,gBAAgB,GAAG,IAAnB;AACD;AAJH;AAMA,QAAMG,OAAO,GAAGX,KAAK,eAAC,oBAAC,SAAD,EAAeI,kBAAkB,CAACK,KAAlC,CAAD,CAArB;AAEA,QAAMG,WAAW,GAAGD,OAAO,CAACE,IAAR,CAAa,kCAAb,CAApB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOF,WAAW,CAACG,EAAZ,CAAe,CAAf,EAAkBC,MAAlB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAKL,WAAW,CAACG,EAAZ,CAAe,CAAf,EAAkBN,KAAlB,GAA0B,YAA1B,CAAL,EAA8C,YAA9C;AAEA,QAAMS,UAAU,GAAGN,WAAW,CAACC,IAAZ,CAAiB,2BAAjB,CAAnB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOI,UA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AC,CAACU,EAAF,CAAKE,cAAc,CAACJ,EAAf,CAAkB,CAAlB,EAAqBN,KAArB,GAA6B,YAA7B,CAAL,EAAiD,wBAAjD;AAEA,QAAMW,UAAU,GAAGR,WAAW,CAACC,IAAZ,CAAiB,wCAAjB,CAAnB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOM,UAAU,CAACL,EAAX,CAAc,CAAd,EAAiBC,MAAjB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAKG,UAAU,CAACL,EAAX,CAAc,CAAd,EAAiBN,KAAjB,GAAyB,YAAzB,CAAL,EAA6C,mBAA7C;AAEAF,EAAAA,CAAC,CAACe,IAAF;AACD,CAnBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport SkillCard from '..';\nimport customSkillFixture from './fixtures/custom-skill';\nimport noAriaLabelsFixtures from './fixtures/no-aria-labels';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('onClick should be reachable, should match given aria-label', t => {\n let buttonWasClicked = false;\n customSkillFixture.props = {\n ...customSkillFixture.props,\n onClick: () => {\n buttonWasClicked = true;\n }\n };\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"]');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');\n buttonLink.at(0).simulate('click', {});\n t.true(buttonWasClicked);\n\n t.pass();\n});\n\ntest('onHover should change button text color && backgroundColor', t => {\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const expectedStyleNoHover = {\n backgroundColor: 'rgba(0, 176, 255, 0.07)',\n color: '#00B0FF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n const expectedStyleOnHover = {\n backgroundColor: '#00B0FF',\n color: '#FFFFFF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n let cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n let buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n let buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n // hover\n buttonWrapper.simulate('mouseover');\n\n wrapper.update();\n cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover);\n\n // leave hover\n buttonWrapper.simulate('mouseleave');\n\n wrapper.update();\n\n buttonLink = wrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n t.pass();\n});\n\ntest('should use default aria-labels if aria-label props are not provided', t => {\n const wrapper = mount(<SkillCard {...noAriaLabelsFixtures.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');\n\n t.pass();\n});\n"],"file":"skill-card.js"}
@@ -62,6 +62,7 @@
62
62
  @value cm_red_video: #E8335E;
63
63
  @value cm_violet_podcast: #432ba7;
64
64
  @value cm_warning_50: rgba(255, 192, 67, 0.13);
65
+ @value box_shadow_medium_dark: rgba(0, 0, 0, 0.15);
65
66
  @value box_shadow_light_dark: rgba(0, 0, 0, 0.12);
66
67
  @value box_shadow_medium_dark: rgba(0, 0, 0, 0.2);
67
68
  @value box_shadow_orange_700: rgba(255, 84, 31, 0.15);
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _react = _interopRequireWildcard(require("react"));
7
+
8
+ var _cssColorFunction = require("css-color-function");
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _novaIcons = require("@coorpacademy/nova-icons");
13
+
14
+ var _getOr = _interopRequireDefault(require("lodash/fp/getOr"));
15
+
16
+ var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
17
+
18
+ var _style = _interopRequireDefault(require("./style.css"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
22
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
23
+
24
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+
26
+ const getGradientBackground = baseColor => {
27
+ const gradients = [(0, _cssColorFunction.convert)(`color(${baseColor} lightness(30%))`), (0, _cssColorFunction.convert)(`color(${baseColor} lightness(47%))`), (0, _cssColorFunction.convert)(`color(${baseColor} lightness(55%))`)];
28
+ return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${(0, _cssColorFunction.convert)(`color(${gradients[0]} a(0))`)} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${(0, _cssColorFunction.convert)(`color(${gradients[1]} a(0))`)} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${(0, _cssColorFunction.convert)(`color(${gradients[2]} a(0))`)} 100%), ${baseColor}`;
29
+ };
30
+
31
+ const SkillCard = (props, context) => {
32
+ const {
33
+ 'aria-label': ariaLabel,
34
+ skillTitle,
35
+ skillAriaLabel,
36
+ buttonLabel,
37
+ buttonAriaLabel,
38
+ reviseLabel,
39
+ reviseAriaLabel,
40
+ onClick,
41
+ isCustom = false
42
+ } = props;
43
+ const {
44
+ skin
45
+ } = context;
46
+ const [hovered, setHovered] = (0, _react.useState)(false);
47
+ const primarySkinColor = (0, _getOr.default)('#00B0FF', 'common.primary', skin);
48
+ const handleMouseOver = (0, _react.useCallback)(() => setHovered(true), [setHovered]);
49
+ const handleMouseLeave = (0, _react.useCallback)(() => setHovered(false), [setHovered]);
50
+ const buttonProps = {
51
+ customStyle: {
52
+ backgroundColor: hovered ? primarySkinColor : (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
53
+ color: hovered ? '#FFFFFF' : primarySkinColor,
54
+ transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
55
+ },
56
+ onClick,
57
+ 'aria-label': buttonAriaLabel,
58
+ label: buttonLabel,
59
+ 'data-name': 'skill-card-button'
60
+ };
61
+ const titleBackgroundColor = (0, _react.useMemo)(() => isCustom ? '#128C72' : primarySkinColor, [isCustom, primarySkinColor]);
62
+ const titleBackground = (0, _react.useMemo)(() => getGradientBackground(titleBackgroundColor), [titleBackgroundColor]);
63
+ return /*#__PURE__*/_react.default.createElement("div", {
64
+ className: _style.default.skillCardWrapper,
65
+ "data-name": "skill-card-wrapper",
66
+ "aria-label": ariaLabel
67
+ }, /*#__PURE__*/_react.default.createElement("div", {
68
+ "data-name": "skill-title",
69
+ className: _style.default.skillTitle,
70
+ "aria-label": skillAriaLabel || skillTitle,
71
+ style: {
72
+ background: titleBackground
73
+ }
74
+ }, skillTitle), /*#__PURE__*/_react.default.createElement("div", {
75
+ "data-name": "card-content-wrapper"
76
+ }, /*#__PURE__*/_react.default.createElement("div", {
77
+ className: _style.default.questionReviseText,
78
+ "data-name": "questions-to-revise-label",
79
+ "aria-label": reviseAriaLabel || reviseLabel
80
+ }, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidInterfaceFeedbackInterfaceQuestionMark, {
81
+ className: _style.default.questionReviseIcon,
82
+ width: 16,
83
+ height: 16
84
+ }), reviseLabel), /*#__PURE__*/_react.default.createElement("div", {
85
+ className: _style.default.buttonWrapper,
86
+ onMouseOver: handleMouseOver,
87
+ onMouseLeave: handleMouseLeave,
88
+ "data-name": "button-wrapper"
89
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonProps))));
90
+ };
91
+
92
+ SkillCard.propTypes = process.env.NODE_ENV !== "production" ? {
93
+ 'aria-label': _propTypes.default.string.isRequired,
94
+ skillTitle: _propTypes.default.string,
95
+ skillAriaLabel: _propTypes.default.string,
96
+ buttonLabel: _propTypes.default.string,
97
+ buttonAriaLabel: _propTypes.default.string,
98
+ reviseLabel: _propTypes.default.string,
99
+ reviseAriaLabel: _propTypes.default.string,
100
+ isCustom: _propTypes.default.bool,
101
+ onClick: _propTypes.default.func
102
+ } : {};
103
+ var _default = SkillCard;
104
+ exports.default = _default;
105
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/skill-card/index.js"],"names":["getGradientBackground","baseColor","gradients","SkillCard","props","context","ariaLabel","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","onClick","isCustom","skin","hovered","setHovered","primarySkinColor","handleMouseOver","handleMouseLeave","buttonProps","customStyle","backgroundColor","color","transition","label","titleBackgroundColor","titleBackground","style","skillCardWrapper","background","questionReviseText","questionReviseIcon","buttonWrapper","propTypes","PropTypes","string","isRequired","bool","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,qBAAqB,GAAGC,SAAS,IAAI;AACzC,QAAMC,SAAS,GAAG,CAChB,+BAAS,SAAQD,SAAU,kBAA3B,CADgB,EAEhB,+BAAS,SAAQA,SAAU,kBAA3B,CAFgB,EAGhB,+BAAS,SAAQA,SAAU,kBAA3B,CAHgB,CAAlB;AAMA,SAAQ,+CAA8CC,SAAS,CAAC,CAAD,CAAI,QAAO,+BACvE,SAAQA,SAAS,CAAC,CAAD,CAAI,QADkD,CAExE,4DAA2DA,SAAS,CAAC,CAAD,CAAI,QAAO,+BAC9E,SAAQA,SAAS,CAAC,CAAD,CAAI,QADyD,CAE/E,2DAA0DA,SAAS,CAAC,CAAD,CAAI,QAAO,+BAC7E,SAAQA,SAAS,CAAC,CAAD,CAAI,QADwD,CAE9E,WAAUD,SAAU,EANtB;AAOD,CAdD;;AAgBA,MAAME,SAAS,GAAG,CAACC,KAAD,EAAQC,OAA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-function';\nimport PropTypes from 'prop-types';\nimport {NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon} from '@coorpacademy/nova-icons';\nimport getOr from 'lodash/fp/getOr';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst getGradientBackground = baseColor => {\n const gradients = [\n convert(`color(${baseColor} lightness(30%))`),\n convert(`color(${baseColor} lightness(47%))`),\n convert(`color(${baseColor} lightness(55%))`)\n ];\n\n return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${convert(\n `color(${gradients[0]} a(0))`\n )} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${convert(\n `color(${gradients[1]} a(0))`\n )} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${convert(\n `color(${gradients[2]} a(0))`\n )} 100%), ${baseColor}`;\n};\n\nconst SkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n buttonLabel,\n buttonAriaLabel,\n reviseLabel,\n reviseAriaLabel,\n onClick,\n isCustom = false\n } = props;\n const {skin} = context;\n const [hovered, setHovered] = useState(false);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const buttonProps = {\n customStyle: {\n backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),\n color: hovered ? '#FFFFFF' : primarySkinColor,\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n onClick,\n 'aria-label': buttonAriaLabel,\n label: buttonLabel,\n 'data-name': 'skill-card-button'\n };\n\n const titleBackgroundColor = useMemo(() => (isCustom ? '#128C72' : primarySkinColor), [\n isCustom,\n primarySkinColor\n ]);\n\n const titleBackground = useMemo(() => getGradientBackground(titleBackgroundColor), [\n titleBackgroundColor\n ]);\n\n return (\n <div className={style.skillCardWrapper} data-name=\"skill-card-wrapper\" aria-label={ariaLabel}>\n <div\n data-name=\"skill-title\"\n className={style.skillTitle}\n aria-label={skillAriaLabel || skillTitle}\n style={{\n background: titleBackground\n }}\n >\n {skillTitle}\n </div>\n <div data-name=\"card-content-wrapper\">\n <div\n className={style.questionReviseText}\n data-name=\"questions-to-revise-label\"\n aria-label={reviseAriaLabel || reviseLabel}\n >\n <QuestionIcon className={style.questionReviseIcon} width={16} height={16} />\n {reviseLabel}\n </div>\n <div\n className={style.buttonWrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n data-name=\"button-wrapper\"\n >\n <ButtonLink {...buttonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nSkillCard.propTypes = {\n 'aria-label': PropTypes.string.isRequired,\n skillTitle: PropTypes.string,\n skillAriaLabel: PropTypes.string,\n buttonLabel: PropTypes.string,\n buttonAriaLabel: PropTypes.string,\n reviseLabel: PropTypes.string,\n reviseAriaLabel: PropTypes.string,\n isCustom: PropTypes.bool,\n onClick: PropTypes.func\n};\n\nexport default SkillCard;\n"],"file":"index.js"}
@@ -0,0 +1,60 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_400 from colors;
3
+ @value white from colors;
4
+ @value box_shadow_light_dark from colors;
5
+ @value box_shadow_medium_dark from colors;
6
+
7
+ .textBase {
8
+ font-family: "Gilroy";
9
+ font-style: normal;
10
+ }
11
+
12
+ .skillCardWrapper {
13
+ display: flex;
14
+ flex-direction: column;
15
+ max-width: 353px;
16
+ min-width: 245px;
17
+ height: 242px;
18
+ box-shadow: 0px 4px 16px box_shadow_light_dark;
19
+ transition: box-shadow 0.15s ease-in-out;
20
+ border-radius: 8px 8px 12px 12px;
21
+ }
22
+
23
+ .skillCardWrapper:hover {
24
+ box-shadow: 0px 4px 48px box_shadow_medium_dark;
25
+ }
26
+
27
+ .skillTitle {
28
+ composes: textBase;
29
+ font-weight: 600;
30
+ font-size: 20px;
31
+ line-height: 28px;
32
+ display: flex;
33
+ align-items: center;
34
+ height: 112px;
35
+ border-radius: 8px 8px 0px 0px;
36
+ color: white;
37
+ padding: 0px 24px;
38
+ user-select: none;
39
+ }
40
+
41
+ .questionReviseIcon {
42
+ padding-right : 8px;
43
+ }
44
+
45
+ .questionReviseText {
46
+ composes: textBase;
47
+ display: flex;
48
+ align-items : center;
49
+ font-weight: 400;
50
+ font-size: 16px;
51
+ line-height: 22px;
52
+ color: cm_grey_400;
53
+ padding: 16px 24px 24px;
54
+ user-select: none;
55
+
56
+ }
57
+
58
+ .buttonWrapper {
59
+ padding: 0px 24px;
60
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _default2 = require("./default");
7
+
8
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
+
10
+ var _default = {
11
+ props: _extends(_extends({}, _default2.defaultProps), {}, {
12
+ skillTitle: 'This is a custom skill',
13
+ isCustom: true
14
+ })
15
+ };
16
+ exports.default = _default;
17
+ //# sourceMappingURL=custom-skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/custom-skill.js"],"names":["props","defaultProps","skillTitle","isCustom"],"mappings":";;;;;AAAA;;;;eAEe;AACbA,EAAAA,KAAK,wBAAMC,sBAAN;AAAoBC,IAAAA,UAAU,EAAE,wBAAhC;AAA0DC,IAAAA,QAAQ,EAAE;AAApE;AADQ,C","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'This is a custom skill', isCustom: true}\n};\n"],"file":"custom-skill.js"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = exports.defaultProps = void 0;
5
+ const defaultProps = {
6
+ 'aria-label': 'Skill Card',
7
+ skillTitle: 'Critical thinking and analysis',
8
+ skillAriaLabel: 'Skill aria label',
9
+ buttonLabel: 'Revise this skill',
10
+ buttonAriaLabel: 'Button aria label',
11
+ reviseLabel: '75 questions to revise',
12
+ reviseAriaLabel: 'revise aria label',
13
+ isCustom: undefined,
14
+ onClick: () => console.log('revise')
15
+ };
16
+ exports.defaultProps = defaultProps;
17
+ var _default = {
18
+ props: defaultProps
19
+ };
20
+ exports.default = _default;
21
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/default.js"],"names":["defaultProps","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","isCustom","undefined","onClick","console","log","props"],"mappings":";;;;AAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,cAAc,EAAE,kBAHU;AAI1BC,EAAAA,WAAW,EAAE,mBAJa;AAK1BC,EAAAA,eAAe,EAAE,mBALS;AAM1BC,EAAAA,WAAW,EAAE,wBANa;AAO1BC,EAAAA,eAAe,EAAE,mBAPS;AAQ1BC,EAAAA,QAAQ,EAAEC,SARgB;AAS1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AATW,CAArB;;eAYQ;AACbC,EAAAA,KAAK,EAAEZ;AADM,C","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n skillAriaLabel: 'Skill aria label',\n buttonLabel: 'Revise this skill',\n buttonAriaLabel: 'Button aria label',\n reviseLabel: '75 questions to revise',\n reviseAriaLabel: 'revise aria label',\n isCustom: undefined,\n onClick: () => console.log('revise')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"default.js"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = exports.defaultProps = void 0;
5
+ const defaultProps = {
6
+ 'aria-label': 'Skill Card',
7
+ skillTitle: 'Critical thinking and analysis',
8
+ buttonLabel: 'Revise this skill',
9
+ reviseLabel: '75 questions to revise',
10
+ isCustom: undefined,
11
+ onClick: () => console.log('revise - no aria')
12
+ };
13
+ exports.defaultProps = defaultProps;
14
+ var _default = {
15
+ props: defaultProps
16
+ };
17
+ exports.default = _default;
18
+ //# sourceMappingURL=no-aria-labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/no-aria-labels.js"],"names":["defaultProps","skillTitle","buttonLabel","reviseLabel","isCustom","undefined","onClick","console","log","props"],"mappings":";;;;AAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,WAAW,EAAE,mBAHa;AAI1BC,EAAAA,WAAW,EAAE,wBAJa;AAK1BC,EAAAA,QAAQ,EAAEC,SALgB;AAM1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AANW,CAArB;;eASQ;AACbC,EAAAA,KAAK,EAAET;AADM,C","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n buttonLabel: 'Revise this skill',\n reviseLabel: '75 questions to revise',\n isCustom: undefined,\n onClick: () => console.log('revise - no aria')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"no-aria-labels.js"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _default2 = require("./default");
7
+
8
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
+
10
+ var _default = {
11
+ props: _extends(_extends({}, _default2.defaultProps), {}, {
12
+ skillTitle: 'Agility',
13
+ isCustom: false
14
+ })
15
+ };
16
+ exports.default = _default;
17
+ //# sourceMappingURL=short-skill-title.js.map