@coorpacademy/components 10.5.7-alpha.9 → 10.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/es/atom/autocomplete/test/fixtures.js +0 -0
  2. package/es/atom/avatar/test/fixtures.js +0 -0
  3. package/es/atom/button/test/fixtures.js +0 -0
  4. package/es/atom/catalog-section/test/fixtures.js +0 -0
  5. package/es/atom/centered-text/test/fixtures.js +0 -0
  6. package/es/atom/checkbox/test/fixtures.js +0 -0
  7. package/es/atom/clue/test/fixtures.js +0 -0
  8. package/es/atom/cta/test/fixtures.js +0 -0
  9. package/es/atom/difficulty-level/test/fixtures.js +0 -0
  10. package/es/atom/drag-and-drop/test/fixtures.js +0 -0
  11. package/es/atom/image-upload/test/fixtures.js +0 -0
  12. package/es/atom/input-checkbox/test/fixtures.js +0 -0
  13. package/es/atom/input-color/test/fixtures.js +0 -0
  14. package/es/atom/input-doublestep/test/fixtures.js +0 -0
  15. package/es/atom/input-html/test/fixtures.js +0 -0
  16. package/es/atom/input-readonly/test/fixtures.js +0 -0
  17. package/es/atom/input-switch/test/fixtures.js +0 -0
  18. package/es/atom/input-text/test/fixtures.js +0 -0
  19. package/es/atom/input-textarea/test/fixtures.js +0 -0
  20. package/es/atom/label/test/fixtures.js +0 -0
  21. package/es/atom/life/test/fixtures.js +0 -0
  22. package/es/atom/link/test/fixtures.js +0 -0
  23. package/es/atom/loader/test/fixtures.js +0 -0
  24. package/es/atom/notification/test/fixtures.js +0 -0
  25. package/es/atom/picture/test/fixtures.js +0 -0
  26. package/es/atom/picture-background/test/fixtures.js +0 -0
  27. package/es/atom/promo-code/test/fixtures.js +0 -0
  28. package/es/atom/provider/test/fixtures.js +0 -0
  29. package/es/atom/radio-group/test/fixtures.js +0 -0
  30. package/es/atom/range/test/fixtures.js +0 -0
  31. package/es/atom/resource-miniature/test/fixtures.js +0 -0
  32. package/es/atom/select/index.js +27 -27
  33. package/es/atom/select/index.js.map +1 -1
  34. package/es/atom/select/style.css +66 -0
  35. package/es/atom/select/test/fixtures/coorpmanager.js +11 -0
  36. package/es/atom/select/test/fixtures/coorpmanager.js.map +1 -0
  37. package/es/atom/select/test/fixtures.js +0 -0
  38. package/es/atom/slide/test/fixtures.js +0 -0
  39. package/es/atom/social-link/test/fixtures.js +0 -0
  40. package/es/atom/spinner/test/fixtures.js +0 -0
  41. package/es/atom/tab/test/fixtures.js +0 -0
  42. package/es/atom/tab-content/test/fixtures.js +0 -0
  43. package/es/atom/title/test/fixtures.js +0 -0
  44. package/es/atom/video-upload/test/fixtures.js +0 -0
  45. package/es/hoc/animation/test/fixtures.js +0 -0
  46. package/es/hoc/animation-scheduler/test/fixtures.js +0 -0
  47. package/es/hoc/swapper/test/fixtures.js +0 -0
  48. package/es/hoc/transition/test/fixtures.js +0 -0
  49. package/es/molecule/add-to-my-list/test/fixtures.js +0 -0
  50. package/es/molecule/answer/test/fixtures.js +0 -0
  51. package/es/molecule/audio/test/fixtures.js +0 -0
  52. package/es/molecule/battle-request/test/fixtures.js +0 -0
  53. package/es/molecule/brand-card/test/fixtures.js +0 -0
  54. package/es/molecule/brand-card-create/test/fixtures.js +0 -0
  55. package/es/molecule/brand-create-form/test/fixtures.js +0 -0
  56. package/es/molecule/brand-download-box/test/fixtures.js +0 -0
  57. package/es/molecule/brand-form-group/index.js +3 -1
  58. package/es/molecule/brand-form-group/index.js.map +1 -1
  59. package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
  60. package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
  61. package/es/molecule/brand-form-group/test/fixtures.js +0 -0
  62. package/es/molecule/brand-tabs/test/fixtures.js +0 -0
  63. package/es/molecule/brand-upload-box/test/fixtures.js +0 -0
  64. package/es/molecule/breadcrumbs/test/fixtures.js +0 -0
  65. package/es/molecule/card/customer.js +6 -3
  66. package/es/molecule/card/customer.js.map +1 -1
  67. package/es/molecule/card/favorite.js +13 -4
  68. package/es/molecule/card/favorite.js.map +1 -1
  69. package/es/molecule/card/index.js +41 -12
  70. package/es/molecule/card/index.js.map +1 -1
  71. package/es/molecule/card/selectable.js +11 -4
  72. package/es/molecule/card/selectable.js.map +1 -1
  73. package/es/molecule/card/test/fixtures/default.js +20 -1
  74. package/es/molecule/card/test/fixtures/default.js.map +1 -1
  75. package/es/molecule/card/test/fixtures.js +0 -0
  76. package/es/molecule/card-content/index.js +20 -7
  77. package/es/molecule/card-content/index.js.map +1 -1
  78. package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
  79. package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
  80. package/es/molecule/card-content/test/fixtures.js +0 -0
  81. package/es/molecule/card-with-button/test/fixtures.js +0 -0
  82. package/es/molecule/cockpit-popin/test/fixtures.js +0 -0
  83. package/es/molecule/cookie-banner/test/fixtures.js +0 -0
  84. package/es/molecule/course-section/style.css +2 -2
  85. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
  86. package/es/molecule/dashboard/cards-list/test/fixtures.js +0 -0
  87. package/es/molecule/dashboard/news-list/test/fixtures.js +0 -0
  88. package/es/molecule/dashboard/start-battle/test/fixtures.js +0 -0
  89. package/es/molecule/discipline-cta/test/fixtures.js +0 -0
  90. package/es/molecule/discipline-header/test/fixtures.js +0 -0
  91. package/es/molecule/discipline-partners/test/fixtures.js +0 -0
  92. package/es/molecule/discipline-scope/test/fixtures.js +0 -0
  93. package/es/molecule/drag-and-drop/test/fixtures.js +0 -0
  94. package/es/molecule/external-content-button/test/fixtures.js +0 -0
  95. package/es/molecule/external-content-viewer/test/fixtures.js +0 -0
  96. package/es/molecule/feedback/test/fixtures.js +0 -0
  97. package/es/molecule/filters/test/fixtures.js +0 -0
  98. package/es/molecule/forum/forum-comment/test/fixtures.js +0 -0
  99. package/es/molecule/forum/forum-post/test/fixtures.js +0 -0
  100. package/es/molecule/forum/forum-thread/test/fixtures.js +0 -0
  101. package/es/molecule/hero/test/fixtures.js +0 -0
  102. package/es/molecule/login-alert/test/fixtures.js +0 -0
  103. package/es/molecule/menu-list/test/fixtures.js +0 -0
  104. package/es/molecule/message-popin/test/fixtures.js +0 -0
  105. package/es/molecule/modal/test/fixtures.js +0 -0
  106. package/es/molecule/module-bubble/test/fixtures.js +0 -0
  107. package/es/molecule/module-card/test/fixtures.js +0 -0
  108. package/es/molecule/news/test/fixtures.js +0 -0
  109. package/es/molecule/notification-banner/test/fixtures.js +0 -0
  110. package/es/molecule/pagination/test/fixtures.js +0 -0
  111. package/es/molecule/payment-form/test/fixtures.js +0 -0
  112. package/es/molecule/pdf/test/fixtures.js +0 -0
  113. package/es/molecule/product-card/test/fixtures.js +0 -0
  114. package/es/molecule/progress-bar/test/fixtures.js +0 -0
  115. package/es/molecule/questions/drop-down/test/fixtures.js +0 -0
  116. package/es/molecule/questions/free-text/test/fixtures.js +0 -0
  117. package/es/molecule/questions/qcm/test/fixtures.js +0 -0
  118. package/es/molecule/questions/qcm-drag/test/fixtures.js +0 -0
  119. package/es/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
  120. package/es/molecule/questions/question-range/test/fixtures.js +0 -0
  121. package/es/molecule/questions/template/index.js +2 -1
  122. package/es/molecule/questions/template/index.js.map +1 -1
  123. package/es/molecule/questions/template/style.css +6 -0
  124. package/es/molecule/questions/template/test/fixtures.js +0 -0
  125. package/es/molecule/resource-player/test/fixtures.js +0 -0
  126. package/es/molecule/scope-content/test/fixtures.js +0 -0
  127. package/es/molecule/scope-tabs/test/fixtures.js +0 -0
  128. package/es/molecule/search/test/fixtures.js +0 -0
  129. package/es/molecule/search-form/test/fixtures.js +0 -0
  130. package/es/molecule/select-multiple/test/fixtures.js +0 -0
  131. package/es/molecule/setup-cohort-item/test/fixtures.js +0 -0
  132. package/es/molecule/setup-section/test/fixtures.js +0 -0
  133. package/es/molecule/setup-sections/test/fixtures.js +0 -0
  134. package/es/molecule/setup-slide/test/fixtures.js +0 -0
  135. package/es/molecule/setup-slider/test/fixtures.js +0 -0
  136. package/es/molecule/share/test/fixtures.js +0 -0
  137. package/es/molecule/ssmenu-list/test/fixtures.js +0 -0
  138. package/es/molecule/subscription-freemium/test/fixtures.js +0 -0
  139. package/es/molecule/subscription-premium/test/fixtures.js +0 -0
  140. package/es/molecule/table/test/fixtures.js +0 -0
  141. package/es/molecule/teams-popin/test/fixtures.js +0 -0
  142. package/es/molecule/theme-image/test/fixtures.js +0 -0
  143. package/es/molecule/titled-checkbox/test/fixtures.js +0 -0
  144. package/es/molecule/unsubscribe/test/fixtures.js +0 -0
  145. package/es/molecule/video-iframe/test/fixtures.js +0 -0
  146. package/es/molecule/video-player/test/fixtures.js +0 -0
  147. package/es/molecule/wizard-summary/style.css +4 -4
  148. package/es/molecule/wizard-summary/test/fixtures.js +0 -2
  149. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -1
  150. package/es/organism/accordion/container/test/fixtures.js +0 -0
  151. package/es/organism/accordion/part/test/fixtures.js +0 -0
  152. package/es/organism/accordion/toggler/test/fixtures.js +0 -0
  153. package/es/organism/brand-dashboard/test/fixtures.js +0 -0
  154. package/es/organism/brand-form/test/fixtures.js +0 -0
  155. package/es/organism/brand-table/test/fixtures.js +0 -0
  156. package/es/organism/brand-upload/test/fixtures.js +0 -0
  157. package/es/organism/cards-grid/test/fixtures.js +0 -0
  158. package/es/organism/cart/test/fixtures.js +0 -0
  159. package/es/organism/discussion/test/fixtures.js +0 -0
  160. package/es/organism/get-the-app/test/fixtures.js +0 -0
  161. package/es/organism/grid-list/test/fixtures.js +0 -0
  162. package/es/organism/header/test/fixtures.js +0 -0
  163. package/es/organism/hero/test/fixtures.js +0 -0
  164. package/es/organism/mooc/image-slider/test/fixtures.js +0 -0
  165. package/es/organism/mooc-footer/test/fixtures.js +0 -0
  166. package/es/organism/mooc-header/test/fixtures.js +0 -0
  167. package/es/organism/popin/test/fixtures.js +0 -0
  168. package/es/organism/resource-browser/test/fixtures.js +0 -0
  169. package/es/organism/settings/test/fixtures.js +0 -0
  170. package/es/organism/setup-header/test/fixtures.js +0 -0
  171. package/es/organism/sidebar/test/fixtures.js +0 -0
  172. package/es/organism/slider/test/fixtures.js +0 -0
  173. package/es/organism/user-preferences/test/fixtures.js +0 -0
  174. package/es/organism/wizard-contents/test/fixtures.js +0 -2
  175. package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
  176. package/es/template/activity/test/fixtures.js +0 -0
  177. package/es/template/app-player/loading/test/fixtures.js +0 -0
  178. package/es/template/app-player/player/slides/footer/test/fixtures.js +0 -0
  179. package/es/template/app-player/player/slides/header/test/fixtures.js +0 -0
  180. package/es/template/app-player/player/slides/test/fixtures.js +0 -0
  181. package/es/template/app-player/player/test/fixtures.js +0 -0
  182. package/es/template/app-player/popin-correction/test/fixtures.js +0 -0
  183. package/es/template/app-player/popin-end/test/fixtures.js +0 -0
  184. package/es/template/app-player/popin-header/test/fixtures.js +0 -0
  185. package/es/template/back-office/brand-create/test/fixtures.js +0 -0
  186. package/es/template/back-office/brand-list/index.js +16 -3
  187. package/es/template/back-office/brand-list/index.js.map +1 -1
  188. package/es/template/back-office/brand-list/style.css +11 -5
  189. package/es/template/back-office/brand-list/test/fixtures/default.js +3 -3
  190. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  191. package/es/template/back-office/brand-list/test/fixtures/rh.js +23 -1
  192. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  193. package/es/template/back-office/brand-list/test/fixtures.js +0 -0
  194. package/es/template/back-office/brand-update/test/fixtures.js +0 -2
  195. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  196. package/es/template/back-office/dashboard-preview/test/fixtures.js +0 -0
  197. package/es/template/battle-requests/test/fixtures.js +0 -0
  198. package/es/template/cockpit/jw-uploader/test/fixtures.js +0 -0
  199. package/es/template/common/authors/test/fixtures.js +0 -0
  200. package/es/template/common/coorp-header/test/fixtures.js +0 -0
  201. package/es/template/common/dashboard/test/fixtures.js +0 -0
  202. package/es/template/common/discipline/test/fixtures.js +0 -0
  203. package/es/template/common/search-page/test/fixtures.js +0 -0
  204. package/es/template/external-course/test/fixtures.js +0 -0
  205. package/es/template/teams-dashboard/test/fixtures.js +0 -0
  206. package/es/variables/colors.css +2 -0
  207. package/lib/atom/autocomplete/test/fixtures.js +0 -0
  208. package/lib/atom/avatar/test/fixtures.js +0 -0
  209. package/lib/atom/button/test/fixtures.js +0 -0
  210. package/lib/atom/catalog-section/test/fixtures.js +0 -0
  211. package/lib/atom/centered-text/test/fixtures.js +0 -0
  212. package/lib/atom/checkbox/test/fixtures.js +0 -0
  213. package/lib/atom/clue/test/fixtures.js +0 -0
  214. package/lib/atom/cta/test/fixtures.js +0 -0
  215. package/lib/atom/difficulty-level/test/fixtures.js +0 -0
  216. package/lib/atom/drag-and-drop/test/fixtures.js +0 -0
  217. package/lib/atom/image-upload/test/fixtures.js +0 -0
  218. package/lib/atom/input-checkbox/test/fixtures.js +0 -0
  219. package/lib/atom/input-color/test/fixtures.js +0 -0
  220. package/lib/atom/input-doublestep/test/fixtures.js +0 -0
  221. package/lib/atom/input-html/test/fixtures.js +0 -0
  222. package/lib/atom/input-readonly/test/fixtures.js +0 -0
  223. package/lib/atom/input-switch/test/fixtures.js +0 -0
  224. package/lib/atom/input-text/test/fixtures.js +0 -0
  225. package/lib/atom/input-textarea/test/fixtures.js +0 -0
  226. package/lib/atom/label/test/fixtures.js +0 -0
  227. package/lib/atom/life/test/fixtures.js +0 -0
  228. package/lib/atom/link/test/fixtures.js +0 -0
  229. package/lib/atom/loader/test/fixtures.js +0 -0
  230. package/lib/atom/notification/test/fixtures.js +0 -0
  231. package/lib/atom/picture/test/fixtures.js +0 -0
  232. package/lib/atom/picture-background/test/fixtures.js +0 -0
  233. package/lib/atom/promo-code/test/fixtures.js +0 -0
  234. package/lib/atom/provider/test/fixtures.js +0 -0
  235. package/lib/atom/radio-group/test/fixtures.js +0 -0
  236. package/lib/atom/range/test/fixtures.js +0 -0
  237. package/lib/atom/resource-miniature/test/fixtures.js +0 -0
  238. package/lib/atom/select/index.js +32 -31
  239. package/lib/atom/select/index.js.map +1 -1
  240. package/lib/atom/select/style.css +66 -0
  241. package/lib/atom/select/test/fixtures/coorpmanager.js +21 -0
  242. package/lib/atom/select/test/fixtures/coorpmanager.js.map +1 -0
  243. package/lib/atom/select/test/fixtures.js +0 -0
  244. package/lib/atom/slide/test/fixtures.js +0 -0
  245. package/lib/atom/social-link/test/fixtures.js +0 -0
  246. package/lib/atom/spinner/test/fixtures.js +0 -0
  247. package/lib/atom/tab/test/fixtures.js +0 -0
  248. package/lib/atom/tab-content/test/fixtures.js +0 -0
  249. package/lib/atom/title/test/fixtures.js +0 -0
  250. package/lib/atom/video-upload/test/fixtures.js +0 -0
  251. package/lib/hoc/animation/test/fixtures.js +0 -0
  252. package/lib/hoc/animation-scheduler/test/fixtures.js +0 -0
  253. package/lib/hoc/swapper/test/fixtures.js +0 -0
  254. package/lib/hoc/transition/test/fixtures.js +0 -0
  255. package/lib/molecule/add-to-my-list/test/fixtures.js +0 -0
  256. package/lib/molecule/answer/test/fixtures.js +0 -0
  257. package/lib/molecule/audio/test/fixtures.js +0 -0
  258. package/lib/molecule/battle-request/test/fixtures.js +0 -0
  259. package/lib/molecule/brand-card/test/fixtures.js +0 -0
  260. package/lib/molecule/brand-card-create/test/fixtures.js +0 -0
  261. package/lib/molecule/brand-create-form/test/fixtures.js +0 -0
  262. package/lib/molecule/brand-download-box/test/fixtures.js +0 -0
  263. package/lib/molecule/brand-form-group/index.js +3 -1
  264. package/lib/molecule/brand-form-group/index.js.map +1 -1
  265. package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
  266. package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
  267. package/lib/molecule/brand-form-group/test/fixtures.js +0 -0
  268. package/lib/molecule/brand-tabs/test/fixtures.js +0 -0
  269. package/lib/molecule/brand-upload-box/test/fixtures.js +0 -0
  270. package/lib/molecule/breadcrumbs/test/fixtures.js +0 -0
  271. package/lib/molecule/card/customer.js +6 -3
  272. package/lib/molecule/card/customer.js.map +1 -1
  273. package/lib/molecule/card/favorite.js +13 -4
  274. package/lib/molecule/card/favorite.js.map +1 -1
  275. package/lib/molecule/card/index.js +41 -12
  276. package/lib/molecule/card/index.js.map +1 -1
  277. package/lib/molecule/card/selectable.js +11 -4
  278. package/lib/molecule/card/selectable.js.map +1 -1
  279. package/lib/molecule/card/test/fixtures/default.js +20 -1
  280. package/lib/molecule/card/test/fixtures/default.js.map +1 -1
  281. package/lib/molecule/card/test/fixtures.js +0 -0
  282. package/lib/molecule/card-content/index.js +21 -7
  283. package/lib/molecule/card-content/index.js.map +1 -1
  284. package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
  285. package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
  286. package/lib/molecule/card-content/test/fixtures.js +0 -0
  287. package/lib/molecule/card-with-button/test/fixtures.js +0 -0
  288. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -0
  289. package/lib/molecule/cookie-banner/test/fixtures.js +0 -0
  290. package/lib/molecule/course-section/style.css +2 -2
  291. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
  292. package/lib/molecule/dashboard/cards-list/test/fixtures.js +0 -0
  293. package/lib/molecule/dashboard/news-list/test/fixtures.js +0 -0
  294. package/lib/molecule/dashboard/start-battle/test/fixtures.js +0 -0
  295. package/lib/molecule/discipline-cta/test/fixtures.js +0 -0
  296. package/lib/molecule/discipline-header/test/fixtures.js +0 -0
  297. package/lib/molecule/discipline-partners/test/fixtures.js +0 -0
  298. package/lib/molecule/discipline-scope/test/fixtures.js +0 -0
  299. package/lib/molecule/drag-and-drop/test/fixtures.js +0 -0
  300. package/lib/molecule/external-content-button/test/fixtures.js +0 -0
  301. package/lib/molecule/external-content-viewer/test/fixtures.js +0 -0
  302. package/lib/molecule/feedback/test/fixtures.js +0 -0
  303. package/lib/molecule/filters/test/fixtures.js +0 -0
  304. package/lib/molecule/forum/forum-comment/test/fixtures.js +0 -0
  305. package/lib/molecule/forum/forum-post/test/fixtures.js +0 -0
  306. package/lib/molecule/forum/forum-thread/test/fixtures.js +0 -0
  307. package/lib/molecule/hero/test/fixtures.js +0 -0
  308. package/lib/molecule/login-alert/test/fixtures.js +0 -0
  309. package/lib/molecule/menu-list/test/fixtures.js +0 -0
  310. package/lib/molecule/message-popin/test/fixtures.js +0 -0
  311. package/lib/molecule/modal/test/fixtures.js +0 -0
  312. package/lib/molecule/module-bubble/test/fixtures.js +0 -0
  313. package/lib/molecule/module-card/test/fixtures.js +0 -0
  314. package/lib/molecule/news/test/fixtures.js +0 -0
  315. package/lib/molecule/notification-banner/test/fixtures.js +0 -0
  316. package/lib/molecule/pagination/test/fixtures.js +0 -0
  317. package/lib/molecule/payment-form/test/fixtures.js +0 -0
  318. package/lib/molecule/pdf/test/fixtures.js +0 -0
  319. package/lib/molecule/product-card/test/fixtures.js +0 -0
  320. package/lib/molecule/progress-bar/test/fixtures.js +0 -0
  321. package/lib/molecule/questions/drop-down/test/fixtures.js +0 -0
  322. package/lib/molecule/questions/free-text/test/fixtures.js +0 -0
  323. package/lib/molecule/questions/qcm/test/fixtures.js +0 -0
  324. package/lib/molecule/questions/qcm-drag/test/fixtures.js +0 -0
  325. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
  326. package/lib/molecule/questions/question-range/test/fixtures.js +0 -0
  327. package/lib/molecule/questions/template/index.js +2 -1
  328. package/lib/molecule/questions/template/index.js.map +1 -1
  329. package/lib/molecule/questions/template/style.css +6 -0
  330. package/lib/molecule/questions/template/test/fixtures.js +0 -0
  331. package/lib/molecule/resource-player/test/fixtures.js +0 -0
  332. package/lib/molecule/scope-content/test/fixtures.js +0 -0
  333. package/lib/molecule/scope-tabs/test/fixtures.js +0 -0
  334. package/lib/molecule/search/test/fixtures.js +0 -0
  335. package/lib/molecule/search-form/test/fixtures.js +0 -0
  336. package/lib/molecule/select-multiple/test/fixtures.js +0 -0
  337. package/lib/molecule/setup-cohort-item/test/fixtures.js +0 -0
  338. package/lib/molecule/setup-section/test/fixtures.js +0 -0
  339. package/lib/molecule/setup-sections/test/fixtures.js +0 -0
  340. package/lib/molecule/setup-slide/test/fixtures.js +0 -0
  341. package/lib/molecule/setup-slider/test/fixtures.js +0 -0
  342. package/lib/molecule/share/test/fixtures.js +0 -0
  343. package/lib/molecule/ssmenu-list/test/fixtures.js +0 -0
  344. package/lib/molecule/subscription-freemium/test/fixtures.js +0 -0
  345. package/lib/molecule/subscription-premium/test/fixtures.js +0 -0
  346. package/lib/molecule/table/test/fixtures.js +0 -0
  347. package/lib/molecule/teams-popin/test/fixtures.js +0 -0
  348. package/lib/molecule/theme-image/test/fixtures.js +0 -0
  349. package/lib/molecule/titled-checkbox/test/fixtures.js +0 -0
  350. package/lib/molecule/unsubscribe/test/fixtures.js +0 -0
  351. package/lib/molecule/video-iframe/test/fixtures.js +0 -0
  352. package/lib/molecule/video-player/test/fixtures.js +0 -0
  353. package/lib/molecule/wizard-summary/style.css +4 -4
  354. package/lib/molecule/wizard-summary/test/fixtures.js +0 -3
  355. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -1
  356. package/lib/organism/accordion/container/test/fixtures.js +0 -0
  357. package/lib/organism/accordion/part/test/fixtures.js +0 -0
  358. package/lib/organism/accordion/toggler/test/fixtures.js +0 -0
  359. package/lib/organism/brand-dashboard/test/fixtures.js +0 -0
  360. package/lib/organism/brand-form/test/fixtures.js +0 -0
  361. package/lib/organism/brand-table/test/fixtures.js +0 -0
  362. package/lib/organism/brand-upload/test/fixtures.js +0 -0
  363. package/lib/organism/cards-grid/test/fixtures.js +0 -0
  364. package/lib/organism/cart/test/fixtures.js +0 -0
  365. package/lib/organism/discussion/test/fixtures.js +0 -0
  366. package/lib/organism/get-the-app/test/fixtures.js +0 -0
  367. package/lib/organism/grid-list/test/fixtures.js +0 -0
  368. package/lib/organism/header/test/fixtures.js +0 -0
  369. package/lib/organism/hero/test/fixtures.js +0 -0
  370. package/lib/organism/mooc/image-slider/test/fixtures.js +0 -0
  371. package/lib/organism/mooc-footer/test/fixtures.js +0 -0
  372. package/lib/organism/mooc-header/test/fixtures.js +0 -0
  373. package/lib/organism/popin/test/fixtures.js +0 -0
  374. package/lib/organism/resource-browser/test/fixtures.js +0 -0
  375. package/lib/organism/settings/test/fixtures.js +0 -0
  376. package/lib/organism/setup-header/test/fixtures.js +0 -0
  377. package/lib/organism/sidebar/test/fixtures.js +0 -0
  378. package/lib/organism/slider/test/fixtures.js +0 -0
  379. package/lib/organism/user-preferences/test/fixtures.js +0 -0
  380. package/lib/organism/wizard-contents/test/fixtures.js +0 -3
  381. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
  382. package/lib/template/activity/test/fixtures.js +0 -0
  383. package/lib/template/app-player/loading/test/fixtures.js +0 -0
  384. package/lib/template/app-player/player/slides/footer/test/fixtures.js +0 -0
  385. package/lib/template/app-player/player/slides/header/test/fixtures.js +0 -0
  386. package/lib/template/app-player/player/slides/test/fixtures.js +0 -0
  387. package/lib/template/app-player/player/test/fixtures.js +0 -0
  388. package/lib/template/app-player/popin-correction/test/fixtures.js +0 -0
  389. package/lib/template/app-player/popin-end/test/fixtures.js +0 -0
  390. package/lib/template/app-player/popin-header/test/fixtures.js +0 -0
  391. package/lib/template/back-office/brand-create/test/fixtures.js +0 -0
  392. package/lib/template/back-office/brand-list/index.js +17 -3
  393. package/lib/template/back-office/brand-list/index.js.map +1 -1
  394. package/lib/template/back-office/brand-list/style.css +11 -5
  395. package/lib/template/back-office/brand-list/test/fixtures/default.js +3 -3
  396. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  397. package/lib/template/back-office/brand-list/test/fixtures/rh.js +23 -1
  398. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  399. package/lib/template/back-office/brand-list/test/fixtures.js +0 -0
  400. package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
  401. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  402. package/lib/template/back-office/dashboard-preview/test/fixtures.js +0 -0
  403. package/lib/template/battle-requests/test/fixtures.js +0 -0
  404. package/lib/template/cockpit/jw-uploader/test/fixtures.js +0 -0
  405. package/lib/template/common/authors/test/fixtures.js +0 -0
  406. package/lib/template/common/coorp-header/test/fixtures.js +0 -0
  407. package/lib/template/common/dashboard/test/fixtures.js +0 -0
  408. package/lib/template/common/discipline/test/fixtures.js +0 -0
  409. package/lib/template/common/search-page/test/fixtures.js +0 -0
  410. package/lib/template/external-course/test/fixtures.js +0 -0
  411. package/lib/template/teams-dashboard/test/fixtures.js +0 -0
  412. package/lib/variables/colors.css +2 -0
  413. package/package.json +2 -2
  414. package/es/atom/card-image-preview/test/fixtures.js +0 -15
  415. package/es/atom/card-image-preview/test/fixtures.js.map +0 -1
  416. package/es/molecule/course-section/test/fixtures.js +0 -15
  417. package/es/molecule/course-section/test/fixtures.js.map +0 -1
  418. package/es/molecule/course-sections/test/fixtures.js +0 -15
  419. package/es/molecule/course-sections/test/fixtures.js.map +0 -1
  420. package/es/molecule/draggable/test/fixtures.js +0 -13
  421. package/es/molecule/draggable/test/fixtures.js.map +0 -1
  422. package/es/molecule/draggable-list/test/fixtures.js +0 -15
  423. package/es/molecule/draggable-list/test/fixtures.js.map +0 -1
  424. package/es/organism/playlist-translation/test/fixtures.js +0 -15
  425. package/es/organism/playlist-translation/test/fixtures.js.map +0 -1
  426. package/lib/atom/card-image-preview/test/fixtures.js +0 -25
  427. package/lib/atom/card-image-preview/test/fixtures.js.map +0 -1
  428. package/lib/molecule/course-section/test/fixtures.js +0 -25
  429. package/lib/molecule/course-section/test/fixtures.js.map +0 -1
  430. package/lib/molecule/course-sections/test/fixtures.js +0 -25
  431. package/lib/molecule/course-sections/test/fixtures.js.map +0 -1
  432. package/lib/molecule/draggable/test/fixtures.js +0 -22
  433. package/lib/molecule/draggable/test/fixtures.js.map +0 -1
  434. package/lib/molecule/draggable-list/test/fixtures.js +0 -25
  435. package/lib/molecule/draggable-list/test/fixtures.js.map +0 -1
  436. package/lib/organism/playlist-translation/test/fixtures.js +0 -25
  437. package/lib/organism/playlist-translation/test/fixtures.js.map +0 -1
@@ -36,7 +36,6 @@ import fixtureUploadusers from './fixtures/uploadusers';
36
36
  import fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';
37
37
  import fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';
38
38
  import fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';
39
- import fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';
40
39
  import fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';
41
40
  import fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';
42
41
  import fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';
@@ -80,7 +79,6 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › s
80
79
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);
81
80
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);
82
81
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);
83
- test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);
84
82
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);
85
83
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);
86
84
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardOrganizeCoursesPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,M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AC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I2B,kBAA/I,CAAJ;AACA9B,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,6BAAxG,EAAuI4B,UAAvI,CAAJ;AACA/B,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJ6B,yBAAtJ,CAAJ;AACAhC,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ8B,4BAAzJ,CAAJ;AACAjC,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I+B,kBAA/I,CAAJ;AACAlC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JgC,+BAA5J,CAAJ;AACAnC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JiC,+BAA5J,CAAJ;AACApC,IAAI,CAAC,kGAAD,EAAqGE,oBAArG,EAA2HC,6BAA3H,EAA0JkC,6BAA1J,CAAJ;AACArC,IAAI,CAAC,yGAAD,EAA4GE,oBAA5G,EAAkIC,6BAAlI,EAAiKmC,oCAAjK,CAAJ;AACAtC,IAAI,CAAC,8GAAD,EAAiHE,oBAAjH,EAAuIC,6BAAvI,EAAsKoC,yCAAtK,CAAJ;AACAvC,IAAI,CAAC,qGAAD,EAAwGE,oBAAxG,EAA8HC,6BAA9H,EAA6JqC,gCAA7J,CAAJ;AACAxC,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,6BAA5H,EAA2JsC,8BAA3J,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist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Macro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -39,6 +39,7 @@
39
39
  @value cm_grey_200: #d7d7da;
40
40
  @value cm_grey_300: #C5C5C9;
41
41
  @value cm_grey_400: #9999A8;
42
+ @value cm_grey_450: #8393ad;
42
43
  @value cm_grey_500: #515161;
43
44
  @value cm_grey_700: #1D1D2B;
44
45
  @value cm_grey_800: #3a3a4a;
@@ -62,3 +63,4 @@
62
63
  @value cm_violet_podcast: #432ba7;
63
64
  @value cm_warning_50: rgba(255, 192, 67, 0.13);
64
65
  @value box_shadow_light_dark: rgba(0, 0, 0, 0.12);
66
+ @value box_shadow_medium_dark: rgba(0, 0, 0, 0.2);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -3,27 +3,27 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = exports.SelectOptionPropTypes = void 0;
5
5
 
6
- var _size2 = _interopRequireDefault(require("lodash/fp/size"));
6
+ var _react = _interopRequireWildcard(require("react"));
7
7
 
8
- var _includes2 = _interopRequireDefault(require("lodash/fp/includes"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
- var _filter2 = _interopRequireDefault(require("lodash/fp/filter"));
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
- var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
12
+ var _filter = _interopRequireDefault(require("lodash/fp/filter"));
13
13
 
14
- var _get2 = _interopRequireDefault(require("lodash/fp/get"));
14
+ var _find = _interopRequireDefault(require("lodash/fp/find"));
15
15
 
16
- var _map2 = _interopRequireDefault(require("lodash/fp/map"));
16
+ var _get = _interopRequireDefault(require("lodash/fp/get"));
17
17
 
18
- var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
18
+ var _getOr = _interopRequireDefault(require("lodash/fp/getOr"));
19
19
 
20
- var _find2 = _interopRequireDefault(require("lodash/fp/find"));
20
+ var _includes = _interopRequireDefault(require("lodash/fp/includes"));
21
21
 
22
- var _react = _interopRequireWildcard(require("react"));
22
+ var _keys = _interopRequireDefault(require("lodash/fp/keys"));
23
23
 
24
- var _propTypes = _interopRequireDefault(require("prop-types"));
24
+ var _map = _interopRequireDefault(require("lodash/fp/map"));
25
25
 
26
- var _classnames = _interopRequireDefault(require("classnames"));
26
+ var _size = _interopRequireDefault(require("lodash/fp/size"));
27
27
 
28
28
  var _novaIcons = require("@coorpacademy/nova-icons");
29
29
 
@@ -33,12 +33,12 @@ var _getClassState = _interopRequireDefault(require("../../util/get-class-state"
33
33
 
34
34
  var _style = _interopRequireDefault(require("./style.css"));
35
35
 
36
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
+
36
38
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
37
39
 
38
40
  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; }
39
41
 
40
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
-
42
42
  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); }
43
43
 
44
44
  const themeStyle = {
@@ -50,8 +50,8 @@ const themeStyle = {
50
50
  sort: _style.default.sort,
51
51
  thematiques: _style.default.thematiques,
52
52
  player: _style.default.player,
53
- template: _style.default.template // we keep template in case it is used anywhere else?
54
-
53
+ template: _style.default.template,
54
+ coorpmanager: null
55
55
  };
56
56
 
57
57
  const Select = (props, context) => {
@@ -84,38 +84,39 @@ const Select = (props, context) => {
84
84
  const titleView = title ? /*#__PURE__*/_react.default.createElement("span", {
85
85
  className: _style.default.title
86
86
  }, title, " ") : null;
87
- const selected = (0, _react.useMemo)(() => multiple ? (0, _map2.default)((0, _get2.default)('value'), (0, _filter2.default)({
87
+ const selected = (0, _react.useMemo)(() => multiple ? (0, _map.default)((0, _get.default)('value'), (0, _filter.default)({
88
88
  selected: true
89
- }, options)) : (0, _get2.default)('value', (0, _find2.default)({
89
+ }, options)) : (0, _get.default)('value', (0, _find.default)({
90
90
  selected: true
91
91
  }, options)), [multiple, options]);
92
- const selectedLabel = (0, _react.useMemo)(() => multiple ? (0, _map2.default)((0, _get2.default)('name'), (0, _filter2.default)({
92
+ const selectedLabel = (0, _react.useMemo)(() => multiple ? (0, _map.default)((0, _get.default)('name'), (0, _filter.default)({
93
93
  selected: true
94
- }, options)) : (0, _get2.default)('name', (0, _find2.default)({
94
+ }, options)) : (0, _get.default)('name', (0, _find.default)({
95
95
  selected: true
96
96
  }, options)), [multiple, options]);
97
- const isSelectedInValidOption = (0, _react.useMemo)(() => theme === 'player' && (0, _getOr2.default)(false, 'name', (0, _find2.default)({
97
+ const isSelectedInValidOption = (0, _react.useMemo)(() => theme === 'player' && (0, _getOr.default)(false, 'name', (0, _find.default)({
98
98
  validOption: false,
99
99
  selected: true
100
100
  }, options)), [options, theme]);
101
101
  const handleChange = (0, _react.useMemo)(() => multiple ? e => {
102
- onChange((0, _map2.default)((0, _get2.default)('value'), e.target.selectedOptions));
102
+ onChange((0, _map.default)((0, _get.default)('value'), e.target.selectedOptions));
103
103
  } : e => {
104
104
  onChange(e.target.value);
105
105
  }, [onChange, multiple]);
106
- const black = (0, _react.useMemo)(() => (0, _getOr2.default)('#14171A', 'common.black', skin), [skin]);
107
- const color = (0, _react.useMemo)(() => (0, _getOr2.default)('#00B0FF', 'common.primary', skin), [skin]);
108
- const shouldUseSkinFontColor = (0, _react.useMemo)(() => !isSelectedInValidOption && selected && (0, _includes2.default)(theme, ['question', 'template', 'player']), [isSelectedInValidOption, selected, theme]);
106
+ const black = (0, _react.useMemo)(() => (0, _getOr.default)('#14171A', 'common.black', skin), [skin]);
107
+ const color = (0, _react.useMemo)(() => (0, _getOr.default)('#00B0FF', 'common.primary', skin), [skin]);
108
+ const shouldUseSkinFontColor = (0, _react.useMemo)(() => !isSelectedInValidOption && selected && (0, _includes.default)(theme, ['question', 'template', 'player']), [isSelectedInValidOption, selected, theme]);
109
+ const arrowColor = selected ? color : undefined;
109
110
  const arrowView = !multiple ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationArrowDown, {
110
- color: selected && (theme === 'question' || theme === 'template') ? color : black,
111
- className: _style.default.arrow
111
+ color: (0, _includes.default)(theme, ['question', 'template', 'player']) ? arrowColor : black,
112
+ className: shouldUseSkinFontColor ? _style.default.selectedArrow : _style.default.arrow
112
113
  }) : null;
113
114
  const behaviourClassName = (0, _react.useMemo)(() => (0, _getClassState.default)(_style.default.default, _style.default.modified, _style.default.error, modified, error), [error, modified]);
114
- const composedClassName = (0, _react.useMemo)(() => (0, _classnames.default)(theme ? themeStyle[theme] : behaviourClassName, selected ? _style.default.selected : _style.default.unselected, className), [behaviourClassName, className, selected, theme]);
115
- const labelSize = (0, _react.useMemo)(() => (0, _size2.default)(selectedLabel), [selectedLabel]);
115
+ const composedClassName = (0, _react.useMemo)(() => (0, _classnames.default)(theme && theme !== 'coorpmanager' ? themeStyle[theme] : behaviourClassName, selected ? _style.default.selected : _style.default.unselected, className), [behaviourClassName, className, selected, theme]);
116
+ const labelSize = (0, _react.useMemo)(() => (0, _size.default)(selectedLabel), [selectedLabel]);
116
117
  const isLongLabel = (0, _react.useMemo)(() => labelSize >= 65, [labelSize]);
117
118
  return /*#__PURE__*/_react.default.createElement("div", {
118
- className: composedClassName
119
+ className: (0, _classnames.default)(composedClassName, theme === 'coorpmanager' ? _style.default.coorpmanager : null)
119
120
  }, /*#__PURE__*/_react.default.createElement("label", {
120
121
  "data-name": "select-wrapper",
121
122
  style: _extends({}, shouldUseSkinFontColor && {
@@ -124,7 +125,7 @@ const Select = (props, context) => {
124
125
  className: _style.default.selectWrapper
125
126
  }, titleView, /*#__PURE__*/_react.default.createElement("span", {
126
127
  "data-name": "select-span",
127
- className: (0, _classnames.default)(_style.default.selectSpan, (0, _includes2.default)(theme, ['player', 'invalid', 'question', 'thematiques', 'template']) ? _style.default.noLabelCommon : null, borderClassName, isLongLabel ? _style.default.longLabel : null)
128
+ className: (0, _classnames.default)(_style.default.selectSpan, (0, _includes.default)(theme, ['player', 'invalid', 'question', 'thematiques', 'template']) ? _style.default.noLabelCommon : null, borderClassName, isLongLabel ? _style.default.longLabel : null)
128
129
  }, selectedLabel), arrowView, /*#__PURE__*/_react.default.createElement("select", {
129
130
  "data-name": "native-select",
130
131
  className: _style.default.selectBox,
@@ -159,7 +160,7 @@ Select.propTypes = process.env.NODE_ENV !== "production" ? {
159
160
  description: _propTypes.default.string,
160
161
  required: _propTypes.default.bool,
161
162
  onChange: _propTypes.default.func,
162
- theme: _propTypes.default.oneOf((0, _keys2.default)(themeStyle)),
163
+ theme: _propTypes.default.oneOf((0, _keys.default)(themeStyle)),
163
164
  options: _propTypes.default.arrayOf(_propTypes.default.shape(SelectOptionPropTypes)),
164
165
  modified: _propTypes.default.bool,
165
166
  error: _propTypes.default.bool
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/select/index.js"],"names":["themeStyle","filter","style","invalid","header","mooc","question","sort","thematiques","player","template","Select","props","context","name","options","className","borderClassName","onChange","multiple","disabled","required","description","theme","modified","error","title","propTitle","skin","optionList","map","option","index","value","selectOption","titleView","selected","selectedLabel","isSelectedInValidOption","validOption","handleChange","e","target","selectedOptions","black","color","shouldUseSkinFontColor","arrowView","arrow","behaviourClassName","default","composedClassName","unselected","labelSize","isLongLabel","selectWrapper","selectSpan","noLabelCommon","longLabel","selectBox","SelectOptionPropTypes","PropTypes","string","isRequired","oneOfType","number","bool","contextTypes","Provider","childContextTypes","propTypes","func","oneOf","arrayOf","shape"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,UAAU,GAAG;AACjBC,EAAAA,MAAM,EAAEC,eAAMD,MADG;AAEjBE,EAAAA,OAAO,EAAED,eAAMC,OAFE;AAGjBC,EAAAA,MAAM,EAAEF,eAAME,MAHG;AAIjBC,EAAAA,IAAI,EAAEH,eAAMG,IAJK;AAKjBC,EAAAA,QAAQ,EAAEJ,eAAMI,QALC;AAMjBC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,WAAW,EAAEsB,mBAAUK;AAJY,CAA9B;;AAOPvD,MAAM,CAACwD,YAAP,GAAsB;AACpBvC,EAAAA,IAAI,EAAEwC,kBAASC,iBAAT,CAA2BzC;AADb,CAAtB;AAIAjB,MAAM,CAAC2D,SAAP,2CAAmB;AACjB5C,EAAAA,KAAK,EAAEmC,mBAAUC,MADA;AAEjBhD,EAAAA,IAAI,EAAE+C,mBAAUC,MAFC;AAGjB9C,EAAAA,SAAS,EAAE6C,mBAAUC,MAHJ;AAIjB7C,EAAAA,eAAe,EAAE4C,mBAAUC,MAJV;AAKjB1C,EAAAA,QAAQ,EAAEyC,mBAAUK,IALH;AAMjB/C,EAAAA,QAAQ,EAAE0C,mBAAUK,IANH;AAOjB5C,EAAAA,WAAW,EAAEuC,mBAAUC,MAPN;AAQjBzC,EAAAA,QAAQ,EAAEwC,mBAAUK,IARH;AASjBhD,EAAAA,QAAQ,EAAE2C,mBAAUU,IATH;AAUjBhD,EAAAA,KAAK,EAAEsC,mBAAUW,KAAV,CAAgB,oBAAKxE,UAAL,CAAhB,CAVU;AAWjBe,EAAAA,OAAO,EAAE8C,mBAAUY,OAAV,CAAkBZ,mBAAUa,KAAV,CAAgBd,qBAAhB,CAAlB,CAXQ;AAYjBpC,EAAAA,QAAQ,EAAEqC,mBAAUK,IAZH;AAajBzC,EAAAA,KAAK,EAAEoC,mBAAUK;AAbA,CAAnB;eAgBevD,M","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {find, keys, map, get, getOr, filter, includes, size} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowDown as ArrowDown} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n filter: style.filter,\n invalid: style.invalid,\n header: style.header,\n mooc: style.mooc,\n question: style.question,\n sort: style.sort,\n thematiques: style.thematiques,\n player: style.player,\n template: style.template // we keep template in case it is used anywhere else?\n};\n\nconst Select = (props, context) => {\n const {\n name,\n options = [],\n className,\n borderClassName,\n onChange,\n multiple = false,\n disabled,\n required,\n description,\n theme,\n modified = false,\n error = false,\n title: propTitle\n } = props;\n\n const {skin} = context;\n\n const title = useMemo(() => (propTitle ? `${propTitle}${required ? '*' : ''}` : null), [\n propTitle,\n required\n ]);\n\n const optionList =\n options &&\n options.map((option, index) => {\n return (\n <option key={index} value={option.value} className={style.selectOption}>\n {option.name}\n </option>\n );\n });\n\n const titleView = title ? <span className={style.title}>{title} </span> : null;\n\n const selected = useMemo(\n () =>\n multiple\n ? map(get('value'), filter({selected: true}, options))\n : get('value', find({selected: true}, options)),\n [multiple, options]\n );\n const selectedLabel = useMemo(\n () =>\n multiple\n ? map(get('name'), filter({selected: true}, options))\n : get('name', find({selected: true}, options)),\n [multiple, options]\n );\n\n const isSelectedInValidOption = useMemo(\n () =>\n theme === 'player' &&\n getOr(false, 'name', find({validOption: false, selected: true}, options)),\n [options, theme]\n );\n\n const handleChange = useMemo(\n () =>\n multiple\n ? e => {\n onChange(map(get('value'), e.target.selectedOptions));\n }\n : e => {\n onChange(e.target.value);\n },\n [onChange, multiple]\n );\n\n const black = useMemo(() => getOr('#14171A', 'common.black', skin), [skin]);\n const color = useMemo(() => getOr('#00B0FF', 'common.primary', skin), [skin]);\n const shouldUseSkinFontColor = useMemo(\n () =>\n !isSelectedInValidOption && selected && includes(theme, ['question', 'template', 'player']),\n [isSelectedInValidOption, selected, theme]\n );\n\n const arrowView = !multiple ? (\n <ArrowDown\n color={selected && (theme === 'question' || theme === 'template') ? color : black}\n className={style.arrow}\n />\n ) : null;\n const behaviourClassName = useMemo(\n () => getClassState(style.default, style.modified, style.error, modified, error),\n [error, modified]\n );\n const composedClassName = useMemo(\n () =>\n classnames(\n theme ? themeStyle[theme] : behaviourClassName,\n selected ? style.selected : style.unselected,\n className\n ),\n [behaviourClassName, className, selected, theme]\n );\n\n const labelSize = useMemo(() => size(selectedLabel), [selectedLabel]);\n\n const isLongLabel = useMemo(() => labelSize >= 65, [labelSize]);\n\n return (\n <div className={composedClassName}>\n <label\n data-name=\"select-wrapper\"\n style={{\n ...(shouldUseSkinFontColor && {\n color\n })\n }}\n className={style.selectWrapper}\n >\n {titleView}\n <span\n data-name=\"select-span\"\n className={classnames(\n style.selectSpan,\n includes(theme, ['player', 'invalid', 'question', 'thematiques', 'template'])\n ? style.noLabelCommon\n : null,\n borderClassName,\n isLongLabel ? style.longLabel : null\n )}\n >\n {selectedLabel}\n </span>\n {arrowView}\n <select\n data-name=\"native-select\"\n className={style.selectBox}\n title={selectedLabel}\n name={name}\n onChange={handleChange}\n value={selected}\n multiple={multiple}\n disabled={disabled}\n >\n {optionList}\n </select>\n </label>\n <div className={style.description}>{description}</div>\n </div>\n );\n};\n\nexport const SelectOptionPropTypes = {\n name: PropTypes.string.isRequired,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n selected: PropTypes.bool,\n validOption: PropTypes.bool\n};\n\nSelect.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSelect.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n className: PropTypes.string,\n borderClassName: PropTypes.string,\n disabled: PropTypes.bool,\n multiple: PropTypes.bool,\n description: PropTypes.string,\n required: PropTypes.bool,\n onChange: PropTypes.func,\n theme: PropTypes.oneOf(keys(themeStyle)),\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n modified: PropTypes.bool,\n error: PropTypes.bool\n};\n\nexport default Select;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/select/index.js"],"names":["themeStyle","filter","style","invalid","header","mooc","question","sort","thematiques","player","template","coorpmanager","Select","props","context","name","options","className","borderClassName","onChange","multiple","disabled","required","description","theme","modified","error","title","propTitle","skin","optionList","map","option","index","value","selectOption","titleView","selected","selectedLabel","isSelectedInValidOption","validOption","handleChange","e","target","selectedOptions","black","color","shouldUseSkinFontColor","arrowColor","undefined","arrowView","selectedArrow","arrow","behaviourClassName","default","composedClassName","unselected","labelSize","isLongLabel","selectWrapper","selectSpan","noLabelCommon","longLabel","selectBox","SelectOptionPropTypes","PropTypes","string","isRequired","oneOfType","number","bool","contextTypes","Provider","childContextTypes","propTypes","func","oneOf","arrayOf","shape"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,UAAU,GAAG;AACjBC,EAAAA,MAAM,EAAEC,eAAMD,MADG;AAEjBE,EAAAA,OAAO,EAAED,eAAMC,OAFE;AAGjBC,EAAAA,MAAM,EAAEF,eAAME,MAHG;AAIjBC,EAAAA,IAAI,EAAEH,eAAMG,IAJK;AAKjBC,EAAAA,QAAQ,EAAEJ,eAAMI,QALC;AAMjBC,EAAAA,IAAI,EAAEL,eAAMK,IANK;AAOjBC,EAAAA,WAAW,EAAEN,eAAMM,WAPF;AAQjBC,EAAAA,MAAM,EAAEP,eAAMO,MARG;AASjBC,EAAAA,QAAQ,EAAER,eAAMQ,QATC;AAUjBC,EAAAA,YAAY,EAAE;AAVG,CAAnB;;AAaA,MAAMC,MAAM,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACjC,QAAM;AACJC,IAAAA,IADI;AAEJC,IAAAA,OAAO,GAAG,EAFN;AAGJC,IAAAA,SAHI;AAIJC,IAAAA,eAJI;AAKJC,IAAAA,QALI;AAMJC,IAAAA,QAAQ,GAAG,KANP;AAOJC,IAAAA,QAPI;AAQJC,IAAAA,QARI;AASJC,IAAAA,WATI;AAUJC,IAAAA,KAVI;AAWJC,IAAAA,QAAQ,GAAG,KAXP;AAYJC,IAAAA,KAAK,GAAG,KAZJ;AAaJC,IAAAA,KAAK,EAAEC;AAbH,MAcFf,KAdJ;AAgBA,QAAM;AAACgB,IAAAA;AAAD,MAASf,OAAf;AAEA,QAAMa,KAAK,GAAG,oBAAQ,MAAOC,SAAS,GAAI,GAAEA,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C,MAPN;AAQjB5C,EAAAA,QAAQ,EAAE2C,mBAAUK,IARH;AASjBnD,EAAAA,QAAQ,EAAE8C,mBAAUU,IATH;AAUjBnD,EAAAA,KAAK,EAAEyC,mBAAUW,KAAV,CAAgB,mBAAK5E,UAAL,CAAhB,CAVU;AAWjBgB,EAAAA,OAAO,EAAEiD,mBAAUY,OAAV,CAAkBZ,mBAAUa,KAAV,CAAgBd,qBAAhB,CAAlB,CAXQ;AAYjBvC,EAAAA,QAAQ,EAAEwC,mBAAUK,IAZH;AAajB5C,EAAAA,KAAK,EAAEuC,mBAAUK;AAbA,CAAnB;eAgBe1D,M","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport filter from 'lodash/fp/filter';\nimport find from 'lodash/fp/find';\nimport get from 'lodash/fp/get';\nimport getOr from 'lodash/fp/getOr';\nimport includes from 'lodash/fp/includes';\nimport keys from 'lodash/fp/keys';\nimport map from 'lodash/fp/map';\nimport size from 'lodash/fp/size';\nimport {NovaCompositionNavigationArrowDown as ArrowDown} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst themeStyle = {\n filter: style.filter,\n invalid: style.invalid,\n header: style.header,\n mooc: style.mooc,\n question: style.question,\n sort: style.sort,\n thematiques: style.thematiques,\n player: style.player,\n template: style.template,\n coorpmanager: null\n};\n\nconst Select = (props, context) => {\n const {\n name,\n options = [],\n className,\n borderClassName,\n onChange,\n multiple = false,\n disabled,\n required,\n description,\n theme,\n modified = false,\n error = false,\n title: propTitle\n } = props;\n\n const {skin} = context;\n\n const title = useMemo(() => (propTitle ? `${propTitle}${required ? '*' : ''}` : null), [\n propTitle,\n required\n ]);\n\n const optionList =\n options &&\n options.map((option, index) => {\n return (\n <option key={index} value={option.value} className={style.selectOption}>\n {option.name}\n </option>\n );\n });\n\n const titleView = title ? <span className={style.title}>{title} </span> : null;\n\n const selected = useMemo(\n () =>\n multiple\n ? map(get('value'), filter({selected: true}, options))\n : get('value', find({selected: true}, options)),\n [multiple, options]\n );\n const selectedLabel = useMemo(\n () =>\n multiple\n ? map(get('name'), filter({selected: true}, options))\n : get('name', find({selected: true}, options)),\n [multiple, options]\n );\n\n const isSelectedInValidOption = useMemo(\n () =>\n theme === 'player' &&\n getOr(false, 'name', find({validOption: false, selected: true}, options)),\n [options, theme]\n );\n\n const handleChange = useMemo(\n () =>\n multiple\n ? e => {\n onChange(map(get('value'), e.target.selectedOptions));\n }\n : e => {\n onChange(e.target.value);\n },\n [onChange, multiple]\n );\n\n const black = useMemo(() => getOr('#14171A', 'common.black', skin), [skin]);\n const color = useMemo(() => getOr('#00B0FF', 'common.primary', skin), [skin]);\n const shouldUseSkinFontColor = useMemo(\n () =>\n !isSelectedInValidOption && selected && includes(theme, ['question', 'template', 'player']),\n [isSelectedInValidOption, selected, theme]\n );\n const arrowColor = selected ? color : undefined;\n\n const arrowView = !multiple ? (\n <ArrowDown\n color={includes(theme, ['question', 'template', 'player']) ? arrowColor : black}\n className={shouldUseSkinFontColor ? style.selectedArrow : style.arrow}\n />\n ) : null;\n const behaviourClassName = useMemo(\n () => getClassState(style.default, style.modified, style.error, modified, error),\n [error, modified]\n );\n const composedClassName = useMemo(\n () =>\n classnames(\n theme && theme !== 'coorpmanager' ? themeStyle[theme] : behaviourClassName,\n selected ? style.selected : style.unselected,\n className\n ),\n [behaviourClassName, className, selected, theme]\n );\n\n const labelSize = useMemo(() => size(selectedLabel), [selectedLabel]);\n\n const isLongLabel = useMemo(() => labelSize >= 65, [labelSize]);\n\n return (\n <div\n className={classnames(\n composedClassName,\n theme === 'coorpmanager' ? style.coorpmanager : null\n )}\n >\n <label\n data-name=\"select-wrapper\"\n style={{\n ...(shouldUseSkinFontColor && {\n color\n })\n }}\n className={style.selectWrapper}\n >\n {titleView}\n <span\n data-name=\"select-span\"\n className={classnames(\n style.selectSpan,\n includes(theme, ['player', 'invalid', 'question', 'thematiques', 'template'])\n ? style.noLabelCommon\n : null,\n borderClassName,\n isLongLabel ? style.longLabel : null\n )}\n >\n {selectedLabel}\n </span>\n {arrowView}\n <select\n data-name=\"native-select\"\n className={style.selectBox}\n title={selectedLabel}\n name={name}\n onChange={handleChange}\n value={selected}\n multiple={multiple}\n disabled={disabled}\n >\n {optionList}\n </select>\n </label>\n <div className={style.description}>{description}</div>\n </div>\n );\n};\n\nexport const SelectOptionPropTypes = {\n name: PropTypes.string.isRequired,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n selected: PropTypes.bool,\n validOption: PropTypes.bool\n};\n\nSelect.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSelect.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n className: PropTypes.string,\n borderClassName: PropTypes.string,\n disabled: PropTypes.bool,\n multiple: PropTypes.bool,\n description: PropTypes.string,\n required: PropTypes.bool,\n onChange: PropTypes.func,\n theme: PropTypes.oneOf(keys(themeStyle)),\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n modified: PropTypes.bool,\n error: PropTypes.bool\n};\n\nexport default Select;\n"],"file":"index.js"}
@@ -1,5 +1,6 @@
1
1
  @value breakpoints: "../../variables/breakpoints.css";
2
2
  @value mobile from breakpoints;
3
+ @value tablet from breakpoints;
3
4
  @value colors: "../../variables/colors.css";
4
5
  @value orange from colors;
5
6
  @value negative from colors;
@@ -11,12 +12,43 @@
11
12
  @value xtraLightGrey from colors;
12
13
  @value transparent from colors;
13
14
  @value box_shadow_light_dark from colors;
15
+ @value box_shadow_medium_dark from colors;
14
16
  @value cm_blue_900 from colors;
17
+ @value cm_grey_450 from colors;
15
18
 
16
19
  .default {
17
20
  display: flex;
18
21
  }
19
22
 
23
+ .coorpmanager {
24
+ composes: default;
25
+ }
26
+
27
+ div.coorpmanager label.selectWrapper {
28
+ max-width: fit-content;
29
+ }
30
+
31
+ .coorpmanager label.selectWrapper select.selectBox {
32
+ padding-left: 10px;
33
+ position: relative;
34
+ border-radius: 2px;
35
+ border-width: 1px;
36
+ width: 260px;
37
+ min-width: 194px;
38
+ }
39
+
40
+ @media tablet {
41
+ .coorpmanager label.selectWrapper .description {
42
+ max-width: 120px;
43
+ }
44
+ }
45
+
46
+ @media mobile {
47
+ .coorpmanager label.selectWrapper select.selectBox {
48
+ width: 100%;
49
+ min-width: 180px;
50
+ }
51
+ }
20
52
  .error {
21
53
  composes: default;
22
54
  }
@@ -85,6 +117,7 @@
85
117
  .player .selectWrapper {
86
118
  min-width: min-content;
87
119
  height: min-content;
120
+ margin-right: 0;
88
121
  }
89
122
 
90
123
  .modified select {
@@ -132,6 +165,22 @@
132
165
  z-index: 11;
133
166
  }
134
167
 
168
+ .selectedArrow {
169
+ composes: arrow;
170
+ }
171
+
172
+ .player .selectWrapper .arrow {
173
+ color: cm_grey_450;
174
+ }
175
+
176
+ .player:hover .arrow {
177
+ color: cm_blue_900;
178
+ }
179
+
180
+ .player:hover .selectedArrow {
181
+ color: inherit;
182
+ }
183
+
135
184
  @media mobile {
136
185
  .arrow::after {
137
186
  right: 10px;
@@ -248,6 +297,12 @@ div.player .noLabelCommon.selectSpan {
248
297
  min-width: min-content;
249
298
  width: 100%;
250
299
  white-space: nowrap;
300
+ color: cm_blue_900;
301
+ border-width: 0;
302
+ }
303
+
304
+ div.player:hover span.selectSpan {
305
+ box-shadow: 0px 4px 16px box_shadow_medium_dark;
251
306
  }
252
307
 
253
308
  .no-label .selectBox {
@@ -467,6 +522,17 @@ div.player .noLabelCommon.selectSpan {
467
522
  composes: no-label;
468
523
  }
469
524
 
525
+ .player .selectBox {
526
+ border: 0;
527
+ }
528
+
529
+ /* mozilla specific styling */
530
+ @supports (-moz-appearance:none) {
531
+ .player label.selectWrapper select.selectBox {
532
+ width: 100%;
533
+ }
534
+ }
535
+
470
536
  /*
471
537
  Header
472
538
  */
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
7
+
8
+ var _default2 = _interopRequireDefault(require("./default"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ const {
13
+ props
14
+ } = _default2.default;
15
+ var _default = {
16
+ props: (0, _defaultsDeep2.default)(props, {
17
+ theme: 'coorpmanager'
18
+ })
19
+ };
20
+ exports.default = _default;
21
+ //# sourceMappingURL=coorpmanager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/select/test/fixtures/coorpmanager.js"],"names":["props","Default","theme"],"mappings":";;;;;;;AACA;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBE,IAAAA,KAAK,EAAE;AADkB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: defaultsDeep(props, {\n theme: 'coorpmanager'\n })\n};\n"],"file":"coorpmanager.js"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes