@coorpacademy/components 10.3.17 → 10.3.18

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 (771) hide show
  1. package/es/atom/autocomplete/test/fixtures.js +19 -0
  2. package/es/atom/autocomplete/test/fixtures.js.map +1 -0
  3. package/es/atom/avatar/test/fixtures.js +13 -0
  4. package/es/atom/avatar/test/fixtures.js.map +1 -0
  5. package/es/atom/button/test/fixtures.js +27 -0
  6. package/es/atom/button/test/fixtures.js.map +1 -0
  7. package/es/atom/button-link/test/fixtures.js +31 -0
  8. package/es/atom/button-link/test/fixtures.js.map +1 -0
  9. package/es/atom/button-link-icon-only/test/fixtures.js +21 -0
  10. package/es/atom/button-link-icon-only/test/fixtures.js.map +1 -0
  11. package/es/atom/button-menu/test/fixtures.js +15 -0
  12. package/es/atom/button-menu/test/fixtures.js.map +1 -0
  13. package/es/atom/catalog-section/test/fixtures.js +15 -0
  14. package/es/atom/catalog-section/test/fixtures.js.map +1 -0
  15. package/es/atom/centered-text/test/fixtures.js +13 -0
  16. package/es/atom/centered-text/test/fixtures.js.map +1 -0
  17. package/es/atom/checkbox/test/fixtures.js +19 -0
  18. package/es/atom/checkbox/test/fixtures.js.map +1 -0
  19. package/es/atom/chips/test/fixtures.js +17 -0
  20. package/es/atom/chips/test/fixtures.js.map +1 -0
  21. package/es/atom/clue/test/fixtures.js +17 -0
  22. package/es/atom/clue/test/fixtures.js.map +1 -0
  23. package/es/atom/content-badge/test/fixtures.js +27 -0
  24. package/es/atom/content-badge/test/fixtures.js.map +1 -0
  25. package/es/atom/cta/test/fixtures.js +37 -0
  26. package/es/atom/cta/test/fixtures.js.map +1 -0
  27. package/es/atom/difficulty-level/test/fixtures.js +19 -0
  28. package/es/atom/difficulty-level/test/fixtures.js.map +1 -0
  29. package/es/atom/drag-and-drop/test/fixtures.js +23 -0
  30. package/es/atom/drag-and-drop/test/fixtures.js.map +1 -0
  31. package/es/atom/empty-search-result/test/fixtures.js +13 -0
  32. package/es/atom/empty-search-result/test/fixtures.js.map +1 -0
  33. package/es/atom/image-upload/test/fixtures.js +29 -0
  34. package/es/atom/image-upload/test/fixtures.js.map +1 -0
  35. package/es/atom/input-checkbox/test/fixtures.js +25 -0
  36. package/es/atom/input-checkbox/test/fixtures.js.map +1 -0
  37. package/es/atom/input-color/test/fixtures.js +19 -0
  38. package/es/atom/input-color/test/fixtures.js.map +1 -0
  39. package/es/atom/input-doublestep/test/fixtures.js +21 -0
  40. package/es/atom/input-doublestep/test/fixtures.js.map +1 -0
  41. package/es/atom/input-html/test/fixtures.js +17 -0
  42. package/es/atom/input-html/test/fixtures.js.map +1 -0
  43. package/es/atom/input-readonly/test/fixtures.js +13 -0
  44. package/es/atom/input-readonly/test/fixtures.js.map +1 -0
  45. package/es/atom/input-search/test/fixtures.js +19 -0
  46. package/es/atom/input-search/test/fixtures.js.map +1 -0
  47. package/es/atom/input-switch/test/fixtures.js +23 -0
  48. package/es/atom/input-switch/test/fixtures.js.map +1 -0
  49. package/es/atom/input-text/test/fixtures.js +27 -0
  50. package/es/atom/input-text/test/fixtures.js.map +1 -0
  51. package/es/atom/input-textarea/test/fixtures.js +21 -0
  52. package/es/atom/input-textarea/test/fixtures.js.map +1 -0
  53. package/es/atom/label/test/fixtures.js +15 -0
  54. package/es/atom/label/test/fixtures.js.map +1 -0
  55. package/es/atom/life/test/fixtures.js +25 -0
  56. package/es/atom/life/test/fixtures.js.map +1 -0
  57. package/es/atom/link/test/fixtures.js +17 -0
  58. package/es/atom/link/test/fixtures.js.map +1 -0
  59. package/es/atom/loader/test/fixtures.js +13 -0
  60. package/es/atom/loader/test/fixtures.js.map +1 -0
  61. package/es/atom/notification/test/fixtures.js +17 -0
  62. package/es/atom/notification/test/fixtures.js.map +1 -0
  63. package/es/atom/picture/test/fixtures.js +19 -0
  64. package/es/atom/picture/test/fixtures.js.map +1 -0
  65. package/es/atom/picture-background/test/fixtures.js +19 -0
  66. package/es/atom/picture-background/test/fixtures.js.map +1 -0
  67. package/es/atom/promo-code/test/fixtures.js +17 -0
  68. package/es/atom/promo-code/test/fixtures.js.map +1 -0
  69. package/es/atom/provider/test/fixtures.js +13 -0
  70. package/es/atom/provider/test/fixtures.js.map +1 -0
  71. package/es/atom/radio-group/test/fixtures.js +17 -0
  72. package/es/atom/radio-group/test/fixtures.js.map +1 -0
  73. package/es/atom/range/test/fixtures.js +15 -0
  74. package/es/atom/range/test/fixtures.js.map +1 -0
  75. package/es/atom/resource-miniature/test/fixtures.js +21 -0
  76. package/es/atom/resource-miniature/test/fixtures.js.map +1 -0
  77. package/es/atom/select/test/fixtures.js +43 -0
  78. package/es/atom/select/test/fixtures.js.map +1 -0
  79. package/es/atom/slide/test/fixtures.js +21 -0
  80. package/es/atom/slide/test/fixtures.js.map +1 -0
  81. package/es/atom/social-link/test/fixtures.js +17 -0
  82. package/es/atom/social-link/test/fixtures.js.map +1 -0
  83. package/es/atom/spinner/test/fixtures.js +13 -0
  84. package/es/atom/spinner/test/fixtures.js.map +1 -0
  85. package/es/atom/tab/test/fixtures.js +13 -0
  86. package/es/atom/tab/test/fixtures.js.map +1 -0
  87. package/es/atom/tab-content/test/fixtures.js +15 -0
  88. package/es/atom/tab-content/test/fixtures.js.map +1 -0
  89. package/es/atom/tag/test/fixtures.js +21 -0
  90. package/es/atom/tag/test/fixtures.js.map +1 -0
  91. package/es/atom/title/test/fixtures.js +17 -0
  92. package/es/atom/title/test/fixtures.js.map +1 -0
  93. package/es/atom/video-upload/test/fixtures.js +21 -0
  94. package/es/atom/video-upload/test/fixtures.js.map +1 -0
  95. package/es/atom/wizard-steps/test/fixtures.js +17 -0
  96. package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
  97. package/es/hoc/animation/test/fixtures.js +15 -0
  98. package/es/hoc/animation/test/fixtures.js.map +1 -0
  99. package/es/hoc/animation-scheduler/test/fixtures.js +15 -0
  100. package/es/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  101. package/es/hoc/swapper/test/fixtures.js +13 -0
  102. package/es/hoc/swapper/test/fixtures.js.map +1 -0
  103. package/es/hoc/transition/test/fixtures.js +13 -0
  104. package/es/hoc/transition/test/fixtures.js.map +1 -0
  105. package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
  106. package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  107. package/es/molecule/answer/test/fixtures.js +35 -0
  108. package/es/molecule/answer/test/fixtures.js.map +1 -0
  109. package/es/molecule/audio/test/fixtures.js +15 -0
  110. package/es/molecule/audio/test/fixtures.js.map +1 -0
  111. package/es/molecule/banner/test/fixtures.js +15 -0
  112. package/es/molecule/banner/test/fixtures.js.map +1 -0
  113. package/es/molecule/battle-request/test/fixtures.js +15 -0
  114. package/es/molecule/battle-request/test/fixtures.js.map +1 -0
  115. package/es/molecule/brand-card/test/fixtures.js +15 -0
  116. package/es/molecule/brand-card/test/fixtures.js.map +1 -0
  117. package/es/molecule/brand-card-create/test/fixtures.js +13 -0
  118. package/es/molecule/brand-card-create/test/fixtures.js.map +1 -0
  119. package/es/molecule/brand-create-form/test/fixtures.js +19 -0
  120. package/es/molecule/brand-create-form/test/fixtures.js.map +1 -0
  121. package/es/molecule/brand-download-box/test/fixtures.js +17 -0
  122. package/es/molecule/brand-download-box/test/fixtures.js.map +1 -0
  123. package/es/molecule/brand-form-group/test/fixtures.js +35 -0
  124. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -0
  125. package/es/molecule/brand-tabs/test/fixtures.js +29 -0
  126. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -0
  127. package/es/molecule/brand-upload-box/test/fixtures.js +17 -0
  128. package/es/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  129. package/es/molecule/breadcrumbs/test/fixtures.js +13 -0
  130. package/es/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  131. package/es/molecule/bullet-point-menu-button/test/fixtures.js +15 -0
  132. package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  133. package/es/molecule/card/test/fixtures.js +43 -0
  134. package/es/molecule/card/test/fixtures.js.map +1 -0
  135. package/es/molecule/card-content/test/fixtures.js +27 -0
  136. package/es/molecule/card-content/test/fixtures.js.map +1 -0
  137. package/es/molecule/card-with-button/test/fixtures.js +17 -0
  138. package/es/molecule/card-with-button/test/fixtures.js.map +1 -0
  139. package/es/molecule/cm-popin/test/fixtures.js +17 -0
  140. package/es/molecule/cm-popin/test/fixtures.js.map +1 -0
  141. package/es/molecule/cookie-banner/test/fixtures.js +13 -0
  142. package/es/molecule/cookie-banner/test/fixtures.js.map +1 -0
  143. package/es/molecule/coorp-manager-roles/test/fixtures.js +13 -0
  144. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  145. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +15 -0
  146. package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  147. package/es/molecule/dashboard/cards-list/test/fixtures.js +23 -0
  148. package/es/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  149. package/es/molecule/dashboard/news-list/test/fixtures.js +17 -0
  150. package/es/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  151. package/es/molecule/dashboard/start-battle/test/fixtures.js +15 -0
  152. package/es/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  153. package/es/molecule/discipline-cta/test/fixtures.js +15 -0
  154. package/es/molecule/discipline-cta/test/fixtures.js.map +1 -0
  155. package/es/molecule/discipline-header/test/fixtures.js +27 -0
  156. package/es/molecule/discipline-header/test/fixtures.js.map +1 -0
  157. package/es/molecule/discipline-partners/test/fixtures.js +21 -0
  158. package/es/molecule/discipline-partners/test/fixtures.js.map +1 -0
  159. package/es/molecule/discipline-scope/test/fixtures.js +27 -0
  160. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -0
  161. package/es/molecule/drag-and-drop/test/fixtures.js +25 -0
  162. package/es/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  163. package/es/molecule/external-content-button/test/fixtures.js +19 -0
  164. package/es/molecule/external-content-button/test/fixtures.js.map +1 -0
  165. package/es/molecule/external-content-viewer/test/fixtures.js +27 -0
  166. package/es/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  167. package/es/molecule/feedback/test/fixtures.js +27 -0
  168. package/es/molecule/feedback/test/fixtures.js.map +1 -0
  169. package/es/molecule/filters/test/fixtures.js +33 -0
  170. package/es/molecule/filters/test/fixtures.js.map +1 -0
  171. package/es/molecule/forum/forum-comment/test/fixtures.js +17 -0
  172. package/es/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  173. package/es/molecule/forum/forum-post/test/fixtures.js +31 -0
  174. package/es/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  175. package/es/molecule/forum/forum-thread/test/fixtures.js +17 -0
  176. package/es/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  177. package/es/molecule/hero/test/fixtures.js +15 -0
  178. package/es/molecule/hero/test/fixtures.js.map +1 -0
  179. package/es/molecule/login-alert/test/fixtures.js +13 -0
  180. package/es/molecule/login-alert/test/fixtures.js.map +1 -0
  181. package/es/molecule/menu-list/test/fixtures.js +13 -0
  182. package/es/molecule/menu-list/test/fixtures.js.map +1 -0
  183. package/es/molecule/message-popin/test/fixtures.js +13 -0
  184. package/es/molecule/message-popin/test/fixtures.js.map +1 -0
  185. package/es/molecule/modal/test/fixtures.js +13 -0
  186. package/es/molecule/modal/test/fixtures.js.map +1 -0
  187. package/es/molecule/module-bubble/test/fixtures.js +17 -0
  188. package/es/molecule/module-bubble/test/fixtures.js.map +1 -0
  189. package/es/molecule/module-card/test/fixtures.js +17 -0
  190. package/es/molecule/module-card/test/fixtures.js.map +1 -0
  191. package/es/molecule/news/test/fixtures.js +23 -0
  192. package/es/molecule/news/test/fixtures.js.map +1 -0
  193. package/es/molecule/notification-banner/test/fixtures.js +17 -0
  194. package/es/molecule/notification-banner/test/fixtures.js.map +1 -0
  195. package/es/molecule/pagination/test/fixtures.js +15 -0
  196. package/es/molecule/pagination/test/fixtures.js.map +1 -0
  197. package/es/molecule/payment-form/test/fixtures.js +17 -0
  198. package/es/molecule/payment-form/test/fixtures.js.map +1 -0
  199. package/es/molecule/pdf/test/fixtures.js +13 -0
  200. package/es/molecule/pdf/test/fixtures.js.map +1 -0
  201. package/es/molecule/popin/test/fixtures.js +21 -0
  202. package/es/molecule/popin/test/fixtures.js.map +1 -0
  203. package/es/molecule/product-card/test/fixtures.js +13 -0
  204. package/es/molecule/product-card/test/fixtures.js.map +1 -0
  205. package/es/molecule/progress-bar/test/fixtures.js +15 -0
  206. package/es/molecule/progress-bar/test/fixtures.js.map +1 -0
  207. package/es/molecule/questions/drop-down/test/fixtures.js +15 -0
  208. package/es/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  209. package/es/molecule/questions/free-text/test/fixtures.js +15 -0
  210. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -0
  211. package/es/molecule/questions/qcm/test/fixtures.js +19 -0
  212. package/es/molecule/questions/qcm/test/fixtures.js.map +1 -0
  213. package/es/molecule/questions/qcm-drag/test/fixtures.js +15 -0
  214. package/es/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  215. package/es/molecule/questions/qcm-graphic/test/fixtures.js +15 -0
  216. package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  217. package/es/molecule/questions/question-range/test/fixtures.js +13 -0
  218. package/es/molecule/questions/question-range/test/fixtures.js.map +1 -0
  219. package/es/molecule/questions/template/test/fixtures.js +15 -0
  220. package/es/molecule/questions/template/test/fixtures.js.map +1 -0
  221. package/es/molecule/quick-access-card/test/fixtures.js +21 -0
  222. package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
  223. package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
  224. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  225. package/es/molecule/resource-player/test/fixtures.js +25 -0
  226. package/es/molecule/resource-player/test/fixtures.js.map +1 -0
  227. package/es/molecule/scope-content/test/fixtures.js +27 -0
  228. package/es/molecule/scope-content/test/fixtures.js.map +1 -0
  229. package/es/molecule/scope-tabs/test/fixtures.js +17 -0
  230. package/es/molecule/scope-tabs/test/fixtures.js.map +1 -0
  231. package/es/molecule/search/test/fixtures.js +15 -0
  232. package/es/molecule/search/test/fixtures.js.map +1 -0
  233. package/es/molecule/search-form/test/fixtures.js +13 -0
  234. package/es/molecule/search-form/test/fixtures.js.map +1 -0
  235. package/es/molecule/select-multiple/test/fixtures.js +23 -0
  236. package/es/molecule/select-multiple/test/fixtures.js.map +1 -0
  237. package/es/molecule/setup-cohort-item/test/fixtures.js +19 -0
  238. package/es/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  239. package/es/molecule/setup-section/test/fixtures.js +25 -0
  240. package/es/molecule/setup-section/test/fixtures.js.map +1 -0
  241. package/es/molecule/setup-sections/test/fixtures.js +19 -0
  242. package/es/molecule/setup-sections/test/fixtures.js.map +1 -0
  243. package/es/molecule/setup-slide/test/fixtures.js +23 -0
  244. package/es/molecule/setup-slide/test/fixtures.js.map +1 -0
  245. package/es/molecule/setup-slider/test/fixtures.js +15 -0
  246. package/es/molecule/setup-slider/test/fixtures.js.map +1 -0
  247. package/es/molecule/share/test/fixtures.js +13 -0
  248. package/es/molecule/share/test/fixtures.js.map +1 -0
  249. package/es/molecule/ssmenu-list/test/fixtures.js +19 -0
  250. package/es/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  251. package/es/molecule/subscription-freemium/test/fixtures.js +13 -0
  252. package/es/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  253. package/es/molecule/subscription-premium/test/fixtures.js +15 -0
  254. package/es/molecule/subscription-premium/test/fixtures.js.map +1 -0
  255. package/es/molecule/table/test/fixtures.js +19 -0
  256. package/es/molecule/table/test/fixtures.js.map +1 -0
  257. package/es/molecule/teams-popin/test/fixtures.js +29 -0
  258. package/es/molecule/teams-popin/test/fixtures.js.map +1 -0
  259. package/es/molecule/theme-image/test/fixtures.js +13 -0
  260. package/es/molecule/theme-image/test/fixtures.js.map +1 -0
  261. package/es/molecule/titled-checkbox/test/fixtures.js +17 -0
  262. package/es/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  263. package/es/molecule/unsubscribe/test/fixtures.js +15 -0
  264. package/es/molecule/unsubscribe/test/fixtures.js.map +1 -0
  265. package/es/molecule/vertical-tabs/test/fixtures.js +15 -0
  266. package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  267. package/es/molecule/video-iframe/test/fixtures.js +25 -0
  268. package/es/molecule/video-iframe/test/fixtures.js.map +1 -0
  269. package/es/molecule/video-player/test/fixtures.js +29 -0
  270. package/es/molecule/video-player/test/fixtures.js.map +1 -0
  271. package/es/molecule/wizard-summary/index.js +16 -8
  272. package/es/molecule/wizard-summary/index.js.map +1 -1
  273. package/es/molecule/wizard-summary/test/fixtures.js +21 -0
  274. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
  275. package/es/organism/accordion/container/test/fixtures.js +17 -0
  276. package/es/organism/accordion/container/test/fixtures.js.map +1 -0
  277. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +17 -0
  278. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  279. package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
  280. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  281. package/es/organism/accordion/part/test/fixtures.js +15 -0
  282. package/es/organism/accordion/part/test/fixtures.js.map +1 -0
  283. package/es/organism/accordion/toggler/test/fixtures.js +17 -0
  284. package/es/organism/accordion/toggler/test/fixtures.js.map +1 -0
  285. package/es/organism/brand-analytics/test/fixtures.js +23 -0
  286. package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
  287. package/es/organism/brand-dashboard/test/fixtures.js +15 -0
  288. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
  289. package/es/organism/brand-form/test/fixtures.js +33 -0
  290. package/es/organism/brand-form/test/fixtures.js.map +1 -0
  291. package/es/organism/brand-table/test/fixtures.js +19 -0
  292. package/es/organism/brand-table/test/fixtures.js.map +1 -0
  293. package/es/organism/brand-upload/test/fixtures.js +15 -0
  294. package/es/organism/brand-upload/test/fixtures.js.map +1 -0
  295. package/es/organism/cards-grid/test/fixtures.js +19 -0
  296. package/es/organism/cards-grid/test/fixtures.js.map +1 -0
  297. package/es/organism/cart/test/fixtures.js +13 -0
  298. package/es/organism/cart/test/fixtures.js.map +1 -0
  299. package/es/organism/course-selection/index.js +7 -0
  300. package/es/organism/course-selection/index.js.map +1 -1
  301. package/es/organism/course-selection/style.css +11 -1
  302. package/es/organism/course-selection/test/fixtures/default.js +26 -0
  303. package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
  304. package/es/organism/course-selection/test/fixtures.js +21 -0
  305. package/es/organism/course-selection/test/fixtures.js.map +1 -0
  306. package/es/organism/discussion/test/fixtures.js +19 -0
  307. package/es/organism/discussion/test/fixtures.js.map +1 -0
  308. package/es/organism/get-the-app/test/fixtures.js +13 -0
  309. package/es/organism/get-the-app/test/fixtures.js.map +1 -0
  310. package/es/organism/grid-list/test/fixtures.js +13 -0
  311. package/es/organism/grid-list/test/fixtures.js.map +1 -0
  312. package/es/organism/header/test/fixtures.js +13 -0
  313. package/es/organism/header/test/fixtures.js.map +1 -0
  314. package/es/organism/hero/test/fixtures.js +17 -0
  315. package/es/organism/hero/test/fixtures.js.map +1 -0
  316. package/es/organism/mooc/image-slider/test/fixtures.js +15 -0
  317. package/es/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  318. package/es/organism/mooc-footer/test/fixtures.js +23 -0
  319. package/es/organism/mooc-footer/test/fixtures.js.map +1 -0
  320. package/es/organism/mooc-header/test/fixtures.js +31 -0
  321. package/es/organism/mooc-header/test/fixtures.js.map +1 -0
  322. package/es/organism/playlist-translation/test/fixtures.js +15 -0
  323. package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
  324. package/es/organism/popin/test/fixtures.js +13 -0
  325. package/es/organism/popin/test/fixtures.js.map +1 -0
  326. package/es/organism/resource-browser/test/fixtures.js +37 -0
  327. package/es/organism/resource-browser/test/fixtures.js.map +1 -0
  328. package/es/organism/search-and-chips-results/test/fixtures.js +21 -0
  329. package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  330. package/es/organism/settings/test/fixtures.js +19 -0
  331. package/es/organism/settings/test/fixtures.js.map +1 -0
  332. package/es/organism/setup-header/test/fixtures.js +15 -0
  333. package/es/organism/setup-header/test/fixtures.js.map +1 -0
  334. package/es/organism/sidebar/test/fixtures.js +23 -0
  335. package/es/organism/sidebar/test/fixtures.js.map +1 -0
  336. package/es/organism/slider/test/fixtures.js +15 -0
  337. package/es/organism/slider/test/fixtures.js.map +1 -0
  338. package/es/organism/user-preferences/test/fixtures.js +13 -0
  339. package/es/organism/user-preferences/test/fixtures.js.map +1 -0
  340. package/es/organism/wizard-contents/index.js +22 -13
  341. package/es/organism/wizard-contents/index.js.map +1 -1
  342. package/es/template/activity/test/fixtures.js +21 -0
  343. package/es/template/activity/test/fixtures.js.map +1 -0
  344. package/es/template/app-player/loading/test/fixtures.js +13 -0
  345. package/es/template/app-player/loading/test/fixtures.js.map +1 -0
  346. package/es/template/app-player/player/slides/footer/test/fixtures.js +29 -0
  347. package/es/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  348. package/es/template/app-player/player/slides/header/test/fixtures.js +23 -0
  349. package/es/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  350. package/es/template/app-player/player/slides/test/fixtures.js +79 -0
  351. package/es/template/app-player/player/slides/test/fixtures.js.map +1 -0
  352. package/es/template/app-player/player/test/fixtures.js +55 -0
  353. package/es/template/app-player/player/test/fixtures.js.map +1 -0
  354. package/es/template/app-player/popin-correction/test/fixtures.js +47 -0
  355. package/es/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  356. package/es/template/app-player/popin-end/test/fixtures.js +49 -0
  357. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -0
  358. package/es/template/app-player/popin-header/test/fixtures.js +29 -0
  359. package/es/template/app-player/popin-header/test/fixtures.js.map +1 -0
  360. package/es/template/back-office/brand-create/test/fixtures.js +19 -0
  361. package/es/template/back-office/brand-create/test/fixtures.js.map +1 -0
  362. package/es/template/back-office/brand-list/test/fixtures.js +17 -0
  363. package/es/template/back-office/brand-list/test/fixtures.js.map +1 -0
  364. package/es/template/back-office/brand-update/test/fixtures.js +67 -0
  365. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -0
  366. package/es/template/back-office/dashboard-preview/test/fixtures.js +23 -0
  367. package/es/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  368. package/es/template/battle-requests/test/fixtures.js +13 -0
  369. package/es/template/battle-requests/test/fixtures.js.map +1 -0
  370. package/es/template/cockpit/jw-uploader/test/fixtures.js +13 -0
  371. package/es/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  372. package/es/template/common/authors/test/fixtures.js +15 -0
  373. package/es/template/common/authors/test/fixtures.js.map +1 -0
  374. package/es/template/common/coorp-header/test/fixtures.js +15 -0
  375. package/es/template/common/coorp-header/test/fixtures.js.map +1 -0
  376. package/es/template/common/dashboard/test/fixtures.js +17 -0
  377. package/es/template/common/dashboard/test/fixtures.js.map +1 -0
  378. package/es/template/common/discipline/test/fixtures.js +47 -0
  379. package/es/template/common/discipline/test/fixtures.js.map +1 -0
  380. package/es/template/common/search-page/test/fixtures.js +17 -0
  381. package/es/template/common/search-page/test/fixtures.js.map +1 -0
  382. package/es/template/external-course/test/fixtures.js +31 -0
  383. package/es/template/external-course/test/fixtures.js.map +1 -0
  384. package/es/template/teams-dashboard/test/fixtures.js +17 -0
  385. package/es/template/teams-dashboard/test/fixtures.js.map +1 -0
  386. package/lib/atom/autocomplete/test/fixtures.js +31 -0
  387. package/lib/atom/autocomplete/test/fixtures.js.map +1 -0
  388. package/lib/atom/avatar/test/fixtures.js +22 -0
  389. package/lib/atom/avatar/test/fixtures.js.map +1 -0
  390. package/lib/atom/button/test/fixtures.js +43 -0
  391. package/lib/atom/button/test/fixtures.js.map +1 -0
  392. package/lib/atom/button-link/test/fixtures.js +49 -0
  393. package/lib/atom/button-link/test/fixtures.js.map +1 -0
  394. package/lib/atom/button-link-icon-only/test/fixtures.js +34 -0
  395. package/lib/atom/button-link-icon-only/test/fixtures.js.map +1 -0
  396. package/lib/atom/button-menu/test/fixtures.js +25 -0
  397. package/lib/atom/button-menu/test/fixtures.js.map +1 -0
  398. package/lib/atom/catalog-section/test/fixtures.js +25 -0
  399. package/lib/atom/catalog-section/test/fixtures.js.map +1 -0
  400. package/lib/atom/centered-text/test/fixtures.js +22 -0
  401. package/lib/atom/centered-text/test/fixtures.js.map +1 -0
  402. package/lib/atom/checkbox/test/fixtures.js +31 -0
  403. package/lib/atom/checkbox/test/fixtures.js.map +1 -0
  404. package/lib/atom/chips/test/fixtures.js +28 -0
  405. package/lib/atom/chips/test/fixtures.js.map +1 -0
  406. package/lib/atom/clue/test/fixtures.js +28 -0
  407. package/lib/atom/clue/test/fixtures.js.map +1 -0
  408. package/lib/atom/content-badge/test/fixtures.js +43 -0
  409. package/lib/atom/content-badge/test/fixtures.js.map +1 -0
  410. package/lib/atom/cta/test/fixtures.js +58 -0
  411. package/lib/atom/cta/test/fixtures.js.map +1 -0
  412. package/lib/atom/difficulty-level/test/fixtures.js +31 -0
  413. package/lib/atom/difficulty-level/test/fixtures.js.map +1 -0
  414. package/lib/atom/drag-and-drop/test/fixtures.js +37 -0
  415. package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -0
  416. package/lib/atom/empty-search-result/test/fixtures.js +22 -0
  417. package/lib/atom/empty-search-result/test/fixtures.js.map +1 -0
  418. package/lib/atom/image-upload/test/fixtures.js +46 -0
  419. package/lib/atom/image-upload/test/fixtures.js.map +1 -0
  420. package/lib/atom/input-checkbox/test/fixtures.js +40 -0
  421. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -0
  422. package/lib/atom/input-color/test/fixtures.js +31 -0
  423. package/lib/atom/input-color/test/fixtures.js.map +1 -0
  424. package/lib/atom/input-doublestep/test/fixtures.js +34 -0
  425. package/lib/atom/input-doublestep/test/fixtures.js.map +1 -0
  426. package/lib/atom/input-html/test/fixtures.js +28 -0
  427. package/lib/atom/input-html/test/fixtures.js.map +1 -0
  428. package/lib/atom/input-readonly/test/fixtures.js +22 -0
  429. package/lib/atom/input-readonly/test/fixtures.js.map +1 -0
  430. package/lib/atom/input-search/test/fixtures.js +31 -0
  431. package/lib/atom/input-search/test/fixtures.js.map +1 -0
  432. package/lib/atom/input-switch/test/fixtures.js +37 -0
  433. package/lib/atom/input-switch/test/fixtures.js.map +1 -0
  434. package/lib/atom/input-text/test/fixtures.js +43 -0
  435. package/lib/atom/input-text/test/fixtures.js.map +1 -0
  436. package/lib/atom/input-textarea/test/fixtures.js +34 -0
  437. package/lib/atom/input-textarea/test/fixtures.js.map +1 -0
  438. package/lib/atom/label/test/fixtures.js +25 -0
  439. package/lib/atom/label/test/fixtures.js.map +1 -0
  440. package/lib/atom/life/test/fixtures.js +40 -0
  441. package/lib/atom/life/test/fixtures.js.map +1 -0
  442. package/lib/atom/link/test/fixtures.js +28 -0
  443. package/lib/atom/link/test/fixtures.js.map +1 -0
  444. package/lib/atom/loader/test/fixtures.js +22 -0
  445. package/lib/atom/loader/test/fixtures.js.map +1 -0
  446. package/lib/atom/notification/test/fixtures.js +28 -0
  447. package/lib/atom/notification/test/fixtures.js.map +1 -0
  448. package/lib/atom/picture/test/fixtures.js +31 -0
  449. package/lib/atom/picture/test/fixtures.js.map +1 -0
  450. package/lib/atom/picture-background/test/fixtures.js +31 -0
  451. package/lib/atom/picture-background/test/fixtures.js.map +1 -0
  452. package/lib/atom/promo-code/test/fixtures.js +28 -0
  453. package/lib/atom/promo-code/test/fixtures.js.map +1 -0
  454. package/lib/atom/provider/test/fixtures.js +22 -0
  455. package/lib/atom/provider/test/fixtures.js.map +1 -0
  456. package/lib/atom/radio-group/test/fixtures.js +28 -0
  457. package/lib/atom/radio-group/test/fixtures.js.map +1 -0
  458. package/lib/atom/range/test/fixtures.js +25 -0
  459. package/lib/atom/range/test/fixtures.js.map +1 -0
  460. package/lib/atom/resource-miniature/test/fixtures.js +34 -0
  461. package/lib/atom/resource-miniature/test/fixtures.js.map +1 -0
  462. package/lib/atom/select/test/fixtures.js +67 -0
  463. package/lib/atom/select/test/fixtures.js.map +1 -0
  464. package/lib/atom/slide/test/fixtures.js +34 -0
  465. package/lib/atom/slide/test/fixtures.js.map +1 -0
  466. package/lib/atom/social-link/test/fixtures.js +28 -0
  467. package/lib/atom/social-link/test/fixtures.js.map +1 -0
  468. package/lib/atom/spinner/test/fixtures.js +22 -0
  469. package/lib/atom/spinner/test/fixtures.js.map +1 -0
  470. package/lib/atom/tab/test/fixtures.js +22 -0
  471. package/lib/atom/tab/test/fixtures.js.map +1 -0
  472. package/lib/atom/tab-content/test/fixtures.js +25 -0
  473. package/lib/atom/tab-content/test/fixtures.js.map +1 -0
  474. package/lib/atom/tag/test/fixtures.js +34 -0
  475. package/lib/atom/tag/test/fixtures.js.map +1 -0
  476. package/lib/atom/title/test/fixtures.js +28 -0
  477. package/lib/atom/title/test/fixtures.js.map +1 -0
  478. package/lib/atom/video-upload/test/fixtures.js +34 -0
  479. package/lib/atom/video-upload/test/fixtures.js.map +1 -0
  480. package/lib/atom/wizard-steps/test/fixtures.js +28 -0
  481. package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
  482. package/lib/hoc/animation/test/fixtures.js +25 -0
  483. package/lib/hoc/animation/test/fixtures.js.map +1 -0
  484. package/lib/hoc/animation-scheduler/test/fixtures.js +25 -0
  485. package/lib/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  486. package/lib/hoc/swapper/test/fixtures.js +22 -0
  487. package/lib/hoc/swapper/test/fixtures.js.map +1 -0
  488. package/lib/hoc/transition/test/fixtures.js +22 -0
  489. package/lib/hoc/transition/test/fixtures.js.map +1 -0
  490. package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
  491. package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  492. package/lib/molecule/answer/test/fixtures.js +55 -0
  493. package/lib/molecule/answer/test/fixtures.js.map +1 -0
  494. package/lib/molecule/audio/test/fixtures.js +25 -0
  495. package/lib/molecule/audio/test/fixtures.js.map +1 -0
  496. package/lib/molecule/banner/test/fixtures.js +25 -0
  497. package/lib/molecule/banner/test/fixtures.js.map +1 -0
  498. package/lib/molecule/battle-request/test/fixtures.js +25 -0
  499. package/lib/molecule/battle-request/test/fixtures.js.map +1 -0
  500. package/lib/molecule/brand-card/test/fixtures.js +25 -0
  501. package/lib/molecule/brand-card/test/fixtures.js.map +1 -0
  502. package/lib/molecule/brand-card-create/test/fixtures.js +22 -0
  503. package/lib/molecule/brand-card-create/test/fixtures.js.map +1 -0
  504. package/lib/molecule/brand-create-form/test/fixtures.js +31 -0
  505. package/lib/molecule/brand-create-form/test/fixtures.js.map +1 -0
  506. package/lib/molecule/brand-download-box/test/fixtures.js +28 -0
  507. package/lib/molecule/brand-download-box/test/fixtures.js.map +1 -0
  508. package/lib/molecule/brand-form-group/test/fixtures.js +55 -0
  509. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -0
  510. package/lib/molecule/brand-tabs/test/fixtures.js +46 -0
  511. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -0
  512. package/lib/molecule/brand-upload-box/test/fixtures.js +28 -0
  513. package/lib/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  514. package/lib/molecule/breadcrumbs/test/fixtures.js +22 -0
  515. package/lib/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  516. package/lib/molecule/bullet-point-menu-button/test/fixtures.js +25 -0
  517. package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  518. package/lib/molecule/card/test/fixtures.js +67 -0
  519. package/lib/molecule/card/test/fixtures.js.map +1 -0
  520. package/lib/molecule/card-content/test/fixtures.js +43 -0
  521. package/lib/molecule/card-content/test/fixtures.js.map +1 -0
  522. package/lib/molecule/card-with-button/test/fixtures.js +28 -0
  523. package/lib/molecule/card-with-button/test/fixtures.js.map +1 -0
  524. package/lib/molecule/cm-popin/test/fixtures.js +28 -0
  525. package/lib/molecule/cm-popin/test/fixtures.js.map +1 -0
  526. package/lib/molecule/cookie-banner/test/fixtures.js +22 -0
  527. package/lib/molecule/cookie-banner/test/fixtures.js.map +1 -0
  528. package/lib/molecule/coorp-manager-roles/test/fixtures.js +22 -0
  529. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  530. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +25 -0
  531. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  532. package/lib/molecule/dashboard/cards-list/test/fixtures.js +37 -0
  533. package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  534. package/lib/molecule/dashboard/news-list/test/fixtures.js +28 -0
  535. package/lib/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  536. package/lib/molecule/dashboard/start-battle/test/fixtures.js +25 -0
  537. package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  538. package/lib/molecule/discipline-cta/test/fixtures.js +25 -0
  539. package/lib/molecule/discipline-cta/test/fixtures.js.map +1 -0
  540. package/lib/molecule/discipline-header/test/fixtures.js +43 -0
  541. package/lib/molecule/discipline-header/test/fixtures.js.map +1 -0
  542. package/lib/molecule/discipline-partners/test/fixtures.js +34 -0
  543. package/lib/molecule/discipline-partners/test/fixtures.js.map +1 -0
  544. package/lib/molecule/discipline-scope/test/fixtures.js +43 -0
  545. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -0
  546. package/lib/molecule/drag-and-drop/test/fixtures.js +40 -0
  547. package/lib/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  548. package/lib/molecule/external-content-button/test/fixtures.js +31 -0
  549. package/lib/molecule/external-content-button/test/fixtures.js.map +1 -0
  550. package/lib/molecule/external-content-viewer/test/fixtures.js +43 -0
  551. package/lib/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  552. package/lib/molecule/feedback/test/fixtures.js +43 -0
  553. package/lib/molecule/feedback/test/fixtures.js.map +1 -0
  554. package/lib/molecule/filters/test/fixtures.js +52 -0
  555. package/lib/molecule/filters/test/fixtures.js.map +1 -0
  556. package/lib/molecule/forum/forum-comment/test/fixtures.js +28 -0
  557. package/lib/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  558. package/lib/molecule/forum/forum-post/test/fixtures.js +49 -0
  559. package/lib/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  560. package/lib/molecule/forum/forum-thread/test/fixtures.js +28 -0
  561. package/lib/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  562. package/lib/molecule/hero/test/fixtures.js +25 -0
  563. package/lib/molecule/hero/test/fixtures.js.map +1 -0
  564. package/lib/molecule/login-alert/test/fixtures.js +22 -0
  565. package/lib/molecule/login-alert/test/fixtures.js.map +1 -0
  566. package/lib/molecule/menu-list/test/fixtures.js +22 -0
  567. package/lib/molecule/menu-list/test/fixtures.js.map +1 -0
  568. package/lib/molecule/message-popin/test/fixtures.js +22 -0
  569. package/lib/molecule/message-popin/test/fixtures.js.map +1 -0
  570. package/lib/molecule/modal/test/fixtures.js +22 -0
  571. package/lib/molecule/modal/test/fixtures.js.map +1 -0
  572. package/lib/molecule/module-bubble/test/fixtures.js +28 -0
  573. package/lib/molecule/module-bubble/test/fixtures.js.map +1 -0
  574. package/lib/molecule/module-card/test/fixtures.js +28 -0
  575. package/lib/molecule/module-card/test/fixtures.js.map +1 -0
  576. package/lib/molecule/news/test/fixtures.js +37 -0
  577. package/lib/molecule/news/test/fixtures.js.map +1 -0
  578. package/lib/molecule/notification-banner/test/fixtures.js +28 -0
  579. package/lib/molecule/notification-banner/test/fixtures.js.map +1 -0
  580. package/lib/molecule/pagination/test/fixtures.js +25 -0
  581. package/lib/molecule/pagination/test/fixtures.js.map +1 -0
  582. package/lib/molecule/payment-form/test/fixtures.js +28 -0
  583. package/lib/molecule/payment-form/test/fixtures.js.map +1 -0
  584. package/lib/molecule/pdf/test/fixtures.js +22 -0
  585. package/lib/molecule/pdf/test/fixtures.js.map +1 -0
  586. package/lib/molecule/popin/test/fixtures.js +34 -0
  587. package/lib/molecule/popin/test/fixtures.js.map +1 -0
  588. package/lib/molecule/product-card/test/fixtures.js +22 -0
  589. package/lib/molecule/product-card/test/fixtures.js.map +1 -0
  590. package/lib/molecule/progress-bar/test/fixtures.js +25 -0
  591. package/lib/molecule/progress-bar/test/fixtures.js.map +1 -0
  592. package/lib/molecule/questions/drop-down/test/fixtures.js +25 -0
  593. package/lib/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  594. package/lib/molecule/questions/free-text/test/fixtures.js +25 -0
  595. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -0
  596. package/lib/molecule/questions/qcm/test/fixtures.js +31 -0
  597. package/lib/molecule/questions/qcm/test/fixtures.js.map +1 -0
  598. package/lib/molecule/questions/qcm-drag/test/fixtures.js +25 -0
  599. package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  600. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +25 -0
  601. package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  602. package/lib/molecule/questions/question-range/test/fixtures.js +22 -0
  603. package/lib/molecule/questions/question-range/test/fixtures.js.map +1 -0
  604. package/lib/molecule/questions/template/test/fixtures.js +25 -0
  605. package/lib/molecule/questions/template/test/fixtures.js.map +1 -0
  606. package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
  607. package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
  608. package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
  609. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  610. package/lib/molecule/resource-player/test/fixtures.js +40 -0
  611. package/lib/molecule/resource-player/test/fixtures.js.map +1 -0
  612. package/lib/molecule/scope-content/test/fixtures.js +43 -0
  613. package/lib/molecule/scope-content/test/fixtures.js.map +1 -0
  614. package/lib/molecule/scope-tabs/test/fixtures.js +28 -0
  615. package/lib/molecule/scope-tabs/test/fixtures.js.map +1 -0
  616. package/lib/molecule/search/test/fixtures.js +25 -0
  617. package/lib/molecule/search/test/fixtures.js.map +1 -0
  618. package/lib/molecule/search-form/test/fixtures.js +22 -0
  619. package/lib/molecule/search-form/test/fixtures.js.map +1 -0
  620. package/lib/molecule/select-multiple/test/fixtures.js +37 -0
  621. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -0
  622. package/lib/molecule/setup-cohort-item/test/fixtures.js +31 -0
  623. package/lib/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  624. package/lib/molecule/setup-section/test/fixtures.js +40 -0
  625. package/lib/molecule/setup-section/test/fixtures.js.map +1 -0
  626. package/lib/molecule/setup-sections/test/fixtures.js +31 -0
  627. package/lib/molecule/setup-sections/test/fixtures.js.map +1 -0
  628. package/lib/molecule/setup-slide/test/fixtures.js +37 -0
  629. package/lib/molecule/setup-slide/test/fixtures.js.map +1 -0
  630. package/lib/molecule/setup-slider/test/fixtures.js +25 -0
  631. package/lib/molecule/setup-slider/test/fixtures.js.map +1 -0
  632. package/lib/molecule/share/test/fixtures.js +22 -0
  633. package/lib/molecule/share/test/fixtures.js.map +1 -0
  634. package/lib/molecule/ssmenu-list/test/fixtures.js +31 -0
  635. package/lib/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  636. package/lib/molecule/subscription-freemium/test/fixtures.js +22 -0
  637. package/lib/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  638. package/lib/molecule/subscription-premium/test/fixtures.js +25 -0
  639. package/lib/molecule/subscription-premium/test/fixtures.js.map +1 -0
  640. package/lib/molecule/table/test/fixtures.js +31 -0
  641. package/lib/molecule/table/test/fixtures.js.map +1 -0
  642. package/lib/molecule/teams-popin/test/fixtures.js +46 -0
  643. package/lib/molecule/teams-popin/test/fixtures.js.map +1 -0
  644. package/lib/molecule/theme-image/test/fixtures.js +22 -0
  645. package/lib/molecule/theme-image/test/fixtures.js.map +1 -0
  646. package/lib/molecule/titled-checkbox/test/fixtures.js +28 -0
  647. package/lib/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  648. package/lib/molecule/unsubscribe/test/fixtures.js +25 -0
  649. package/lib/molecule/unsubscribe/test/fixtures.js.map +1 -0
  650. package/lib/molecule/vertical-tabs/test/fixtures.js +25 -0
  651. package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  652. package/lib/molecule/video-iframe/test/fixtures.js +40 -0
  653. package/lib/molecule/video-iframe/test/fixtures.js.map +1 -0
  654. package/lib/molecule/video-player/test/fixtures.js +46 -0
  655. package/lib/molecule/video-player/test/fixtures.js.map +1 -0
  656. package/lib/molecule/wizard-summary/index.js +16 -8
  657. package/lib/molecule/wizard-summary/index.js.map +1 -1
  658. package/lib/molecule/wizard-summary/test/fixtures.js +34 -0
  659. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
  660. package/lib/organism/accordion/container/test/fixtures.js +28 -0
  661. package/lib/organism/accordion/container/test/fixtures.js.map +1 -0
  662. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +28 -0
  663. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  664. package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
  665. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  666. package/lib/organism/accordion/part/test/fixtures.js +25 -0
  667. package/lib/organism/accordion/part/test/fixtures.js.map +1 -0
  668. package/lib/organism/accordion/toggler/test/fixtures.js +28 -0
  669. package/lib/organism/accordion/toggler/test/fixtures.js.map +1 -0
  670. package/lib/organism/brand-analytics/test/fixtures.js +37 -0
  671. package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
  672. package/lib/organism/brand-dashboard/test/fixtures.js +25 -0
  673. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
  674. package/lib/organism/brand-form/test/fixtures.js +52 -0
  675. package/lib/organism/brand-form/test/fixtures.js.map +1 -0
  676. package/lib/organism/brand-table/test/fixtures.js +31 -0
  677. package/lib/organism/brand-table/test/fixtures.js.map +1 -0
  678. package/lib/organism/brand-upload/test/fixtures.js +25 -0
  679. package/lib/organism/brand-upload/test/fixtures.js.map +1 -0
  680. package/lib/organism/cards-grid/test/fixtures.js +31 -0
  681. package/lib/organism/cards-grid/test/fixtures.js.map +1 -0
  682. package/lib/organism/cart/test/fixtures.js +22 -0
  683. package/lib/organism/cart/test/fixtures.js.map +1 -0
  684. package/lib/organism/course-selection/index.js +8 -0
  685. package/lib/organism/course-selection/index.js.map +1 -1
  686. package/lib/organism/course-selection/style.css +11 -1
  687. package/lib/organism/course-selection/test/fixtures/default.js +26 -0
  688. package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
  689. package/lib/organism/course-selection/test/fixtures.js +34 -0
  690. package/lib/organism/course-selection/test/fixtures.js.map +1 -0
  691. package/lib/organism/discussion/test/fixtures.js +31 -0
  692. package/lib/organism/discussion/test/fixtures.js.map +1 -0
  693. package/lib/organism/get-the-app/test/fixtures.js +22 -0
  694. package/lib/organism/get-the-app/test/fixtures.js.map +1 -0
  695. package/lib/organism/grid-list/test/fixtures.js +22 -0
  696. package/lib/organism/grid-list/test/fixtures.js.map +1 -0
  697. package/lib/organism/header/test/fixtures.js +22 -0
  698. package/lib/organism/header/test/fixtures.js.map +1 -0
  699. package/lib/organism/hero/test/fixtures.js +28 -0
  700. package/lib/organism/hero/test/fixtures.js.map +1 -0
  701. package/lib/organism/mooc/image-slider/test/fixtures.js +25 -0
  702. package/lib/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  703. package/lib/organism/mooc-footer/test/fixtures.js +37 -0
  704. package/lib/organism/mooc-footer/test/fixtures.js.map +1 -0
  705. package/lib/organism/mooc-header/test/fixtures.js +49 -0
  706. package/lib/organism/mooc-header/test/fixtures.js.map +1 -0
  707. package/lib/organism/playlist-translation/test/fixtures.js +25 -0
  708. package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
  709. package/lib/organism/popin/test/fixtures.js +22 -0
  710. package/lib/organism/popin/test/fixtures.js.map +1 -0
  711. package/lib/organism/resource-browser/test/fixtures.js +58 -0
  712. package/lib/organism/resource-browser/test/fixtures.js.map +1 -0
  713. package/lib/organism/search-and-chips-results/test/fixtures.js +34 -0
  714. package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  715. package/lib/organism/settings/test/fixtures.js +31 -0
  716. package/lib/organism/settings/test/fixtures.js.map +1 -0
  717. package/lib/organism/setup-header/test/fixtures.js +25 -0
  718. package/lib/organism/setup-header/test/fixtures.js.map +1 -0
  719. package/lib/organism/sidebar/test/fixtures.js +37 -0
  720. package/lib/organism/sidebar/test/fixtures.js.map +1 -0
  721. package/lib/organism/slider/test/fixtures.js +25 -0
  722. package/lib/organism/slider/test/fixtures.js.map +1 -0
  723. package/lib/organism/user-preferences/test/fixtures.js +22 -0
  724. package/lib/organism/user-preferences/test/fixtures.js.map +1 -0
  725. package/lib/organism/wizard-contents/index.js +22 -13
  726. package/lib/organism/wizard-contents/index.js.map +1 -1
  727. package/lib/template/activity/test/fixtures.js +34 -0
  728. package/lib/template/activity/test/fixtures.js.map +1 -0
  729. package/lib/template/app-player/loading/test/fixtures.js +22 -0
  730. package/lib/template/app-player/loading/test/fixtures.js.map +1 -0
  731. package/lib/template/app-player/player/slides/footer/test/fixtures.js +46 -0
  732. package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  733. package/lib/template/app-player/player/slides/header/test/fixtures.js +37 -0
  734. package/lib/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  735. package/lib/template/app-player/player/slides/test/fixtures.js +121 -0
  736. package/lib/template/app-player/player/slides/test/fixtures.js.map +1 -0
  737. package/lib/template/app-player/player/test/fixtures.js +85 -0
  738. package/lib/template/app-player/player/test/fixtures.js.map +1 -0
  739. package/lib/template/app-player/popin-correction/test/fixtures.js +73 -0
  740. package/lib/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  741. package/lib/template/app-player/popin-end/test/fixtures.js +76 -0
  742. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -0
  743. package/lib/template/app-player/popin-header/test/fixtures.js +46 -0
  744. package/lib/template/app-player/popin-header/test/fixtures.js.map +1 -0
  745. package/lib/template/back-office/brand-create/test/fixtures.js +31 -0
  746. package/lib/template/back-office/brand-create/test/fixtures.js.map +1 -0
  747. package/lib/template/back-office/brand-list/test/fixtures.js +28 -0
  748. package/lib/template/back-office/brand-list/test/fixtures.js.map +1 -0
  749. package/lib/template/back-office/brand-update/test/fixtures.js +103 -0
  750. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -0
  751. package/lib/template/back-office/dashboard-preview/test/fixtures.js +37 -0
  752. package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  753. package/lib/template/battle-requests/test/fixtures.js +22 -0
  754. package/lib/template/battle-requests/test/fixtures.js.map +1 -0
  755. package/lib/template/cockpit/jw-uploader/test/fixtures.js +22 -0
  756. package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  757. package/lib/template/common/authors/test/fixtures.js +25 -0
  758. package/lib/template/common/authors/test/fixtures.js.map +1 -0
  759. package/lib/template/common/coorp-header/test/fixtures.js +25 -0
  760. package/lib/template/common/coorp-header/test/fixtures.js.map +1 -0
  761. package/lib/template/common/dashboard/test/fixtures.js +28 -0
  762. package/lib/template/common/dashboard/test/fixtures.js.map +1 -0
  763. package/lib/template/common/discipline/test/fixtures.js +73 -0
  764. package/lib/template/common/discipline/test/fixtures.js.map +1 -0
  765. package/lib/template/common/search-page/test/fixtures.js +28 -0
  766. package/lib/template/common/search-page/test/fixtures.js.map +1 -0
  767. package/lib/template/external-course/test/fixtures.js +49 -0
  768. package/lib/template/external-course/test/fixtures.js.map +1 -0
  769. package/lib/template/teams-dashboard/test/fixtures.js +28 -0
  770. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -0
  771. package/package.json +2 -2
@@ -115,7 +115,8 @@ const BuildAction = ({
115
115
  text,
116
116
  disabled = false,
117
117
  icon,
118
- 'aria-label': ariaLabel
118
+ 'aria-label': ariaLabel,
119
+ side
119
120
  } = action;
120
121
  const handleClick = useMemo(() => () => onClick(), [onClick]);
121
122
  if (!action) return null;
@@ -124,7 +125,7 @@ const BuildAction = ({
124
125
  label: text,
125
126
  disabled,
126
127
  'aria-label': ariaLabel,
127
- 'data-name': `${icon}-button`,
128
+ 'data-name': `${icon}-button-${side}`,
128
129
  onClick: handleClick,
129
130
  icon: {
130
131
  position: 'left',
@@ -140,7 +141,8 @@ const WizardSummary = props => {
140
141
  const {
141
142
  title,
142
143
  sections,
143
- action
144
+ action,
145
+ side
144
146
  } = props;
145
147
  const sectionsView = buildSections(sections);
146
148
 
@@ -149,14 +151,15 @@ const WizardSummary = props => {
149
151
  return /*#__PURE__*/React.createElement("div", {
150
152
  className: style.container
151
153
  }, /*#__PURE__*/React.createElement("span", {
152
- className: style.desktopSummaryTitle
154
+ className: style.desktopSummaryTitle,
155
+ "data-name": `summary-title-${side}`
153
156
  }, title), /*#__PURE__*/React.createElement("input", {
154
157
  type: "checkbox",
155
158
  id: idSwitch,
156
159
  name: "toogle",
157
160
  title: idSwitch,
158
161
  className: style.checkbox,
159
- "data-name": 'summary-checkbox'
162
+ "data-name": `summary-checkbox-${side}`
160
163
  }), /*#__PURE__*/React.createElement("div", {
161
164
  className: style.summary
162
165
  }, /*#__PURE__*/React.createElement("div", {
@@ -168,11 +171,14 @@ const WizardSummary = props => {
168
171
  }, title), /*#__PURE__*/React.createElement(ArrowDownIcon, {
169
172
  className: style.tabletSummaryIcon
170
173
  }))), /*#__PURE__*/React.createElement("div", {
171
- className: style.summarySections
174
+ className: style.summarySections,
175
+ "data-name": `summary-section-${side}`
172
176
  }, sectionsView)), /*#__PURE__*/React.createElement("div", {
173
- className: style.actionZone
177
+ className: style.actionZone,
178
+ "data-name": `summary-actions-${side}`
174
179
  }, /*#__PURE__*/React.createElement(BuildAction, {
175
- action: action
180
+ action: action,
181
+ side: side
176
182
  })));
177
183
  };
178
184
 
@@ -181,12 +187,14 @@ BuildAction.propTypes = process.env.NODE_ENV !== "production" ? {
181
187
  icon: PropTypes.string,
182
188
  disabled: PropTypes.bool,
183
189
  text: PropTypes.string,
190
+ side: PropTypes.string,
184
191
  onClick: PropTypes.func,
185
192
  'aria-label': PropTypes.string
186
193
  })
187
194
  } : {};
188
195
  WizardSummary.propTypes = process.env.NODE_ENV !== "production" ? {
189
196
  title: PropTypes.string,
197
+ side: PropTypes.string,
190
198
  sections: PropTypes.arrayOf(PropTypes.shape({
191
199
  title: PropTypes.string,
192
200
  items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/wizard-summary/index.js"],"names":["React","useMemo","PropTypes","classnames","NovaCompositionNavigationArrowDown","ArrowDownIcon","ContentBadge","ButtonLink","style","buildItemsOfSection","items","map","item","index","type","title","value","category","label","author","unsaved","contentWrapper","contentCounter","contentItem","content","contentTitle","__html","text","valueSimpleText","buildSectionHeader","section","counterText","sectionHeader","buildSections","sections","itemsView","sectionWrapper","BuildAction","action","onClick","disabled","icon","ariaLabel","handleClick","buttonProps","position","button","WizardSummary","props","sectionsView","idSwitch","container","desktopSummaryTitle","checkbox","summary","tabletSummaryHeader","tabletSummaryTitle","tabletSummaryIcon","summarySections","actionZone","propTypes","shape","string","bool","func","arrayOf","oneOfType","oneOf"],"mappings":";AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SAAQC,kCAAkC,IAAIC,aAA9C,QAAkE,0BAAlE;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,mBAAmB,GAAGC,KAAK,IAAI;AACnC,SAAOA,KAAK,CAACC,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;AAChC,UAAM;AAACC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{useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {uniqueId} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowDown as ArrowDownIcon} from '@coorpacademy/nova-icons';\nimport ContentBadge from '../../atom/content-badge';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst buildItemsOfSection = items => {\n return items.map((item, index) => {\n const {type} = item;\n switch (type) {\n case 'mainElement':\n return (\n <li key={`${item.title}-${index}`} data-name={item.title}>\n <span className={style.title}>{item.title}</span>\n <span className={style.value}>{item.value}</span>\n </li>\n );\n case 'content': {\n const {category, label, title, author, unsaved = false} = item;\n return (\n <li className={style.contentWrapper} key={`${title}-${index}`} data-name={item.title}>\n <span className={style.contentCounter}>{index + 1}</span>\n <div className={style.contentItem}>\n <div className={style.content}>\n <ContentBadge category={category} label={label} />\n <span\n className={classnames(style.contentTitle, unsaved && style.unsaved)}\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n </div>\n {author ? <span className={style.author}>{author}</span> : null}\n </div>\n </li>\n );\n }\n case 'text':\n default: {\n const {text, unsaved = false} = item;\n return (\n <li key={`${item.text}-${index}`} data-name={item.title}>\n <span className={classnames(style.valueSimpleText, unsaved && style.unsaved)}>\n {text}\n </span>\n </li>\n );\n }\n }\n });\n};\n\nconst buildSectionHeader = section => {\n const {title, counterText} = section;\n if (!title) {\n return null;\n }\n return (\n <div className={style.sectionHeader}>\n <span className={style.title}>{title}</span>\n {counterText ? <span className={style.counterText}>{counterText}</span> : null}\n </div>\n );\n};\n\nconst buildSections = sections => {\n return sections.map((section, index) => {\n const sectionHeader = buildSectionHeader(section);\n const itemsView = buildItemsOfSection(section.items);\n return (\n <div key={`summary-section-${index}`} data-step={index} className={style.sectionWrapper}>\n {sectionHeader}\n <ul>{itemsView}</ul>\n </div>\n );\n });\n};\n\nconst BuildAction = ({action}) => {\n const {onClick, text, disabled = false, icon, 'aria-label': ariaLabel} = action;\n const handleClick = useMemo(() => () => onClick(), [onClick]);\n\n if (!action) return null;\n\n const buttonProps = {\n type: 'text',\n label: text,\n disabled,\n 'aria-label': ariaLabel,\n 'data-name': `${icon}-button`,\n onClick: handleClick,\n icon: {\n position: 'left',\n type: icon\n }\n };\n\n return (\n <div className={style.button}>\n <ButtonLink {...buttonProps} />\n </div>\n );\n};\n\nconst WizardSummary = props => {\n const {title, sections, action} = props;\n const sectionsView = buildSections(sections);\n const idSwitch = uniqueId('open-summary-wizard');\n\n return (\n <div className={style.container}>\n <span className={style.desktopSummaryTitle}>{title}</span>\n <input\n type=\"checkbox\"\n id={idSwitch}\n name=\"toogle\"\n title={idSwitch}\n className={style.checkbox}\n data-name={'summary-checkbox'}\n />\n <div className={style.summary}>\n <div className={style.tabletSummaryHeader}>\n <label htmlFor={idSwitch}>\n <span className={style.tabletSummaryTitle}>{title}</span>\n <ArrowDownIcon className={style.tabletSummaryIcon} />\n </label>\n </div>\n <div className={style.summarySections}>{sectionsView}</div>\n </div>\n <div className={style.actionZone}>\n <BuildAction action={action} />\n </div>\n </div>\n );\n};\n\nBuildAction.propTypes = {\n action: PropTypes.shape({\n icon: PropTypes.string,\n disabled: PropTypes.bool,\n text: PropTypes.string,\n onClick: PropTypes.func,\n 'aria-label': PropTypes.string\n })\n};\n\nWizardSummary.propTypes = {\n title: PropTypes.string,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.string,\n title: PropTypes.string,\n value: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n text: PropTypes.string,\n unsaved: PropTypes.bool\n }),\n PropTypes.shape({\n type: PropTypes.string,\n category: PropTypes.oneOf([\n 'base',\n 'advanced',\n 'coach',\n 'chapter',\n 'scorm',\n 'video',\n 'article',\n 'podcast',\n 'course'\n ]),\n title: PropTypes.string,\n label: PropTypes.string,\n author: PropTypes.string,\n unsaved: PropTypes.bool\n })\n ])\n ),\n counterText: PropTypes.string\n })\n ),\n action: BuildAction.propTypes.action\n};\n\nexport default WizardSummary;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/wizard-summary/index.js"],"names":["React","useMemo","PropTypes","classnames","NovaCompositionNavigationArrowDown","ArrowDownIcon","ContentBadge","ButtonLink","style","buildItemsOfSection","items","map","item","index","type","title","value","category","label","author","unsaved","contentWrapper","contentCounter","contentItem","content","contentTitle","__html","text","valueSimpleText","buildSectionHeader","section","counterText","sectionHeader","buildSections","sections","itemsView","sectionWrapper","BuildAction","action","onClick","disabled","icon","ariaLabel","side","handleClick","buttonProps","position","button","WizardSummary","props","sectionsView","idSwitch","container","desktopSummaryTitle","checkbox","summary","tabletSummaryHeader","tabletSummaryTitle","tabletSummaryIcon","summarySections","actionZone","propTypes","shape","string","bool","func","arrayOf","oneOfType","oneOf"],"mappings":";AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SAAQC,kCAAkC,IAAIC,aAA9C,QAAkE,0BAAlE;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,mBAAmB,GAAGC,KAAK,IAAI;AACnC,SAAOA,KAAK,CAACC,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;AAChC,UAAM;AAACC,MAAAA;AAAD,QAASF,IAAf;;AACA,YAAQE,IAAR;AACE,WAAK,aAAL;AACE,4BACE;AAAI,UAAA,GAAG,EAAG,GAAEF,IAAI,CAACG,KAAM,IAAGF,KAAM,EAAhC;AAAmC,uBAAWD,IAAI,CAACG;AAAnD,wBACE;AAAM,UAAA,SAAS,EAAEP,KAAK,CAACO;AAAvB,WAA+BH,IAAI,CAACG,KAApC,CADF,eAEE;AAAM,UAAA,SA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A4CA,eAAeU,aAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {uniqueId} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowDown as ArrowDownIcon} from '@coorpacademy/nova-icons';\nimport ContentBadge from '../../atom/content-badge';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst buildItemsOfSection = items => {\n return items.map((item, index) => {\n const {type} = item;\n switch (type) {\n case 'mainElement':\n return (\n <li key={`${item.title}-${index}`} data-name={item.title}>\n <span className={style.title}>{item.title}</span>\n <span className={style.value}>{item.value}</span>\n </li>\n );\n case 'content': {\n const {category, label, title, author, unsaved = false} = item;\n return (\n <li className={style.contentWrapper} key={`${title}-${index}`} data-name={item.title}>\n <span className={style.contentCounter}>{index + 1}</span>\n <div className={style.contentItem}>\n <div className={style.content}>\n <ContentBadge category={category} label={label} />\n <span\n className={classnames(style.contentTitle, unsaved && style.unsaved)}\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n </div>\n {author ? <span className={style.author}>{author}</span> : null}\n </div>\n </li>\n );\n }\n case 'text':\n default: {\n const {text, unsaved = false} = item;\n return (\n <li key={`${item.text}-${index}`} data-name={item.title}>\n <span className={classnames(style.valueSimpleText, unsaved && style.unsaved)}>\n {text}\n </span>\n </li>\n );\n }\n }\n });\n};\n\nconst buildSectionHeader = section => {\n const {title, counterText} = section;\n if (!title) {\n return null;\n }\n return (\n <div className={style.sectionHeader}>\n <span className={style.title}>{title}</span>\n {counterText ? <span className={style.counterText}>{counterText}</span> : null}\n </div>\n );\n};\n\nconst buildSections = sections => {\n return sections.map((section, index) => {\n const sectionHeader = buildSectionHeader(section);\n const itemsView = buildItemsOfSection(section.items);\n return (\n <div key={`summary-section-${index}`} data-step={index} className={style.sectionWrapper}>\n {sectionHeader}\n <ul>{itemsView}</ul>\n </div>\n );\n });\n};\n\nconst BuildAction = ({action}) => {\n const {onClick, text, disabled = false, icon, 'aria-label': ariaLabel, side} = action;\n const handleClick = useMemo(() => () => onClick(), [onClick]);\n\n if (!action) return null;\n\n const buttonProps = {\n type: 'text',\n label: text,\n disabled,\n 'aria-label': ariaLabel,\n 'data-name': `${icon}-button-${side}`,\n onClick: handleClick,\n icon: {\n position: 'left',\n type: icon\n }\n };\n\n return (\n <div className={style.button}>\n <ButtonLink {...buttonProps} />\n </div>\n );\n};\n\nconst WizardSummary = props => {\n const {title, sections, action, side} = props;\n const sectionsView = buildSections(sections);\n const idSwitch = uniqueId('open-summary-wizard');\n\n return (\n <div className={style.container}>\n <span className={style.desktopSummaryTitle} data-name={`summary-title-${side}`}>\n {title}\n </span>\n <input\n type=\"checkbox\"\n id={idSwitch}\n name=\"toogle\"\n title={idSwitch}\n className={style.checkbox}\n data-name={`summary-checkbox-${side}`}\n />\n <div className={style.summary}>\n <div className={style.tabletSummaryHeader}>\n <label htmlFor={idSwitch}>\n <span className={style.tabletSummaryTitle}>{title}</span>\n <ArrowDownIcon className={style.tabletSummaryIcon} />\n </label>\n </div>\n <div className={style.summarySections} data-name={`summary-section-${side}`}>\n {sectionsView}\n </div>\n </div>\n <div className={style.actionZone} data-name={`summary-actions-${side}`}>\n <BuildAction action={action} side={side} />\n </div>\n </div>\n );\n};\n\nBuildAction.propTypes = {\n action: PropTypes.shape({\n icon: PropTypes.string,\n disabled: PropTypes.bool,\n text: PropTypes.string,\n side: PropTypes.string,\n onClick: PropTypes.func,\n 'aria-label': PropTypes.string\n })\n};\n\nWizardSummary.propTypes = {\n title: PropTypes.string,\n side: PropTypes.string,\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.string,\n title: PropTypes.string,\n value: PropTypes.string\n }),\n PropTypes.shape({\n type: PropTypes.string,\n text: PropTypes.string,\n unsaved: PropTypes.bool\n }),\n PropTypes.shape({\n type: PropTypes.string,\n category: PropTypes.oneOf([\n 'base',\n 'advanced',\n 'coach',\n 'chapter',\n 'scorm',\n 'video',\n 'article',\n 'podcast',\n 'course'\n ]),\n title: PropTypes.string,\n label: PropTypes.string,\n author: PropTypes.string,\n unsaved: PropTypes.bool\n })\n ])\n ),\n counterText: PropTypes.string\n })\n ),\n action: BuildAction.propTypes.action\n};\n\nexport default WizardSummary;\n"],"file":"index.js"}
@@ -0,0 +1,21 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeWizardSummary from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureOneSection from './fixtures/one-section';
7
+ import fixtureTabletClosed from './fixtures/tablet-closed';
8
+ import fixtureThreeSections from './fixtures/three-sections';
9
+ import fixtureTwoSections from './fixtures/two-sections';
10
+ test('Molecule › MoleculeWizardSummary > should have valid propTypes', t => {
11
+ t.pass();
12
+ forEach(MoleculeWizardSummary.propTypes, (value, key) => {
13
+ t.not(value, undefined, `PropType for "Molecule.MoleculeWizardSummary.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
14
+ });
15
+ });
16
+ test('Molecule › MoleculeWizardSummary › Default › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureDefault);
17
+ test('Molecule › MoleculeWizardSummary › OneSection › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureOneSection);
18
+ test('Molecule › MoleculeWizardSummary › TabletClosed › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureTabletClosed);
19
+ test('Molecule › MoleculeWizardSummary › ThreeSections › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureThreeSections);
20
+ test('Molecule › MoleculeWizardSummary › TwoSections › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureTwoSections);
21
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/wizard-summary/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeWizardSummary","fixtureDefault","fixtureOneSection","fixtureTabletClosed","fixtureThreeSections","fixtureTwoSections","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,qBAAP,MAAkC,IAAlC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAR,IAAI,CAAC,gEAAD,EAAmES,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,qBAAqB,CAACQ,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,qBAA1F,EAAiHC,cAAjH,CAAJ;AACAJ,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,qBAA7F,EAAoHE,iBAApH,CAAJ;AACAL,IAAI,CAAC,sEAAD,EAAyEE,oBAAzE,EAA+FC,qBAA/F,EAAsHG,mBAAtH,CAAJ;AACAN,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,qBAAhG,EAAuHI,oBAAvH,CAAJ;AACAP,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,qBAA9F,EAAqHK,kBAArH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeWizardSummary from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureOneSection from './fixtures/one-section';\nimport fixtureTabletClosed from './fixtures/tablet-closed';\nimport fixtureThreeSections from './fixtures/three-sections';\nimport fixtureTwoSections from './fixtures/two-sections';\n\ntest('Molecule › MoleculeWizardSummary > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeWizardSummary.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeWizardSummary.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeWizardSummary › Default › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureDefault);\ntest('Molecule › MoleculeWizardSummary › OneSection › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureOneSection);\ntest('Molecule › MoleculeWizardSummary › TabletClosed › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureTabletClosed);\ntest('Molecule › MoleculeWizardSummary › ThreeSections › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureThreeSections);\ntest('Molecule › MoleculeWizardSummary › TwoSections › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureTwoSections);\n"],"file":"fixtures.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../test/helpers/render-component';
4
+ import OrganismAccordionContainer from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureNoChildren from './fixtures/no-children';
7
+ import fixtureOneChildren from './fixtures/one-children';
8
+ test('OrganismAccordion › OrganismAccordionContainer > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(OrganismAccordionContainer.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "OrganismAccordion.OrganismAccordionContainer.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('OrganismAccordion › OrganismAccordionContainer › Default › should be rendered', renderComponentMacro, OrganismAccordionContainer, fixtureDefault);
15
+ test('OrganismAccordion › OrganismAccordionContainer › NoChildren › should be rendered', renderComponentMacro, OrganismAccordionContainer, fixtureNoChildren);
16
+ test('OrganismAccordion › OrganismAccordionContainer › OneChildren › should be rendered', renderComponentMacro, OrganismAccordionContainer, fixtureOneChildren);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/accordion/container/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionContainer","fixtureDefault","fixtureNoChildren","fixtureOneChildren","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,0BAAP,MAAuC,IAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAN,IAAI,CAAC,8EAAD,EAAiFO,CAAC,IAAI;AACxFA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,0BAA0B,CAACM,SAA5B,EAAuC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC5DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,wEAAuEF,GAAI,mEAApG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,0BAAxG,EAAoIC,cAApI,CAAJ;AACAJ,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,0BAA3G,EAAuIE,iBAAvI,CAAJ;AACAL,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,0BAA5G,EAAwIG,kBAAxI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport OrganismAccordionContainer from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureNoChildren from './fixtures/no-children';\nimport fixtureOneChildren from './fixtures/one-children';\n\ntest('OrganismAccordion › OrganismAccordionContainer > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionContainer.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordion.OrganismAccordionContainer.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordion › OrganismAccordionContainer › Default › should be rendered', renderComponentMacro, OrganismAccordionContainer, fixtureDefault);\ntest('OrganismAccordion › OrganismAccordionContainer › NoChildren › should be rendered', renderComponentMacro, OrganismAccordionContainer, fixtureNoChildren);\ntest('OrganismAccordion › OrganismAccordionContainer › OneChildren › should be rendered', renderComponentMacro, OrganismAccordionContainer, fixtureOneChildren);\n"],"file":"fixtures.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../../test/helpers/render-component';
4
+ import OrganismAccordionCoorpManagerPart from '..';
5
+ import fixtureDefaut from './fixtures/defaut';
6
+ import fixtureIconLink from './fixtures/icon-link';
7
+ import fixtureSimpletab from './fixtures/simpletab';
8
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(OrganismAccordionCoorpManagerPart.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "OrganismAccordionCoorpManager.OrganismAccordionCoorpManagerPart.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Defaut › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureDefaut);
15
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › IconLink › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureIconLink);
16
+ test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Simpletab › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureSimpletab);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionCoorpManagerPart","fixtureDefaut","fixtureIconLink","fixtureSimpletab","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,8CAAjC;AACA,OAAOC,iCAAP,MAA8C,IAA9C;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AAEAN,IAAI,CAAC,iGAAD,EAAoGO,CAAC,IAAI;AAC3GA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,iCAAiC,CAACM,SAAnC,EAA8C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnEJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2FAA0FF,GAAI,mEAAvH;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,iCAA1H,EAA6JC,aAA7J,CAAJ;AACAJ,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,iCAA5H,EAA+JE,eAA/J,CAAJ;AACAL,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,iCAA7H,EAAgKG,gBAAhK,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../../test/helpers/render-component';\nimport OrganismAccordionCoorpManagerPart from '..';\nimport fixtureDefaut from './fixtures/defaut';\nimport fixtureIconLink from './fixtures/icon-link';\nimport fixtureSimpletab from './fixtures/simpletab';\n\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionCoorpManagerPart.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordionCoorpManager.OrganismAccordionCoorpManagerPart.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Defaut › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureDefaut);\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › IconLink › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureIconLink);\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Simpletab › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureSimpletab);\n"],"file":"fixtures.js"}
@@ -0,0 +1,13 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../test/helpers/render-component';
4
+ import OrganismAccordionCoorpManager from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('OrganismAccordion › OrganismAccordionCoorpManager > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(OrganismAccordionCoorpManager.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "OrganismAccordion.OrganismAccordionCoorpManager.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('OrganismAccordion › OrganismAccordionCoorpManager › Default › should be rendered', renderComponentMacro, OrganismAccordionCoorpManager, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/accordion/coorp-manager/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionCoorpManager","fixtureDefault","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,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,iFAAD,EAAoFK,CAAC,IAAI;AAC3FA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,6BAA6B,CAACI,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2EAA0EF,GAAI,mEAAvG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,6BAA3G,EAA0IC,cAA1I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport OrganismAccordionCoorpManager from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('OrganismAccordion › OrganismAccordionCoorpManager > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionCoorpManager.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordion.OrganismAccordionCoorpManager.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordion › OrganismAccordionCoorpManager › Default › should be rendered', renderComponentMacro, OrganismAccordionCoorpManager, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -0,0 +1,15 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../test/helpers/render-component';
4
+ import OrganismAccordionPart from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureOpen from './fixtures/open';
7
+ test('OrganismAccordion › OrganismAccordionPart > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(OrganismAccordionPart.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "OrganismAccordion.OrganismAccordionPart.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('OrganismAccordion › OrganismAccordionPart › Default › should be rendered', renderComponentMacro, OrganismAccordionPart, fixtureDefault);
14
+ test('OrganismAccordion › OrganismAccordionPart › Open › should be rendered', renderComponentMacro, OrganismAccordionPart, fixtureOpen);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/accordion/part/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionPart","fixtureDefault","fixtureOpen","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,qBAAP,MAAkC,IAAlC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AAEAL,IAAI,CAAC,yEAAD,EAA4EM,CAAC,IAAI;AACnFA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,qBAAqB,CAACK,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,mEAAkEF,GAAI,mEAA/F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,qBAAnG,EAA0HC,cAA1H,CAAJ;AACAJ,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,qBAAhG,EAAuHE,WAAvH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport OrganismAccordionPart from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureOpen from './fixtures/open';\n\ntest('OrganismAccordion › OrganismAccordionPart > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionPart.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordion.OrganismAccordionPart.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordion › OrganismAccordionPart › Default › should be rendered', renderComponentMacro, OrganismAccordionPart, fixtureDefault);\ntest('OrganismAccordion › OrganismAccordionPart › Open › should be rendered', renderComponentMacro, OrganismAccordionPart, fixtureOpen);\n"],"file":"fixtures.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../../test/helpers/render-component';
4
+ import OrganismAccordionToggler from '..';
5
+ import fixtureAllAreOpenable from './fixtures/all-are-openable';
6
+ import fixtureNoChildrens from './fixtures/no-childrens';
7
+ import fixtureOnlyOne from './fixtures/only-one';
8
+ test('OrganismAccordion › OrganismAccordionToggler > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(OrganismAccordionToggler.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "OrganismAccordion.OrganismAccordionToggler.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('OrganismAccordion › OrganismAccordionToggler › AllAreOpenable › should be rendered', renderComponentMacro, OrganismAccordionToggler, fixtureAllAreOpenable);
15
+ test('OrganismAccordion › OrganismAccordionToggler › NoChildrens › should be rendered', renderComponentMacro, OrganismAccordionToggler, fixtureNoChildrens);
16
+ test('OrganismAccordion › OrganismAccordionToggler › OnlyOne › should be rendered', renderComponentMacro, OrganismAccordionToggler, fixtureOnlyOne);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/accordion/toggler/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionToggler","fixtureAllAreOpenable","fixtureNoChildrens","fixtureOnlyOne","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,wBAAP,MAAqC,IAArC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AAEAN,IAAI,CAAC,4EAAD,EAA+EO,CAAC,IAAI;AACtFA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,wBAAwB,CAACM,SAA1B,EAAqC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC1DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sEAAqEF,GAAI,mEAAlG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,wBAA7G,EAAuIC,qBAAvI,CAAJ;AACAJ,IAAI,CAAC,iFAAD,EAAoFE,oBAApF,EAA0GC,wBAA1G,EAAoIE,kBAApI,CAAJ;AACAL,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,wBAAtG,EAAgIG,cAAhI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport OrganismAccordionToggler from '..';\nimport fixtureAllAreOpenable from './fixtures/all-are-openable';\nimport fixtureNoChildrens from './fixtures/no-childrens';\nimport fixtureOnlyOne from './fixtures/only-one';\n\ntest('OrganismAccordion › OrganismAccordionToggler > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionToggler.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordion.OrganismAccordionToggler.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordion › OrganismAccordionToggler › AllAreOpenable › should be rendered', renderComponentMacro, OrganismAccordionToggler, fixtureAllAreOpenable);\ntest('OrganismAccordion › OrganismAccordionToggler › NoChildrens › should be rendered', renderComponentMacro, OrganismAccordionToggler, fixtureNoChildrens);\ntest('OrganismAccordion › OrganismAccordionToggler › OnlyOne › should be rendered', renderComponentMacro, OrganismAccordionToggler, fixtureOnlyOne);\n"],"file":"fixtures.js"}
@@ -0,0 +1,23 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismBrandAnalytics from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureError from './fixtures/error';
7
+ import fixtureLoading from './fixtures/loading';
8
+ import fixtureSelectedError from './fixtures/selected-error';
9
+ import fixtureSelectedLoading from './fixtures/selected-loading';
10
+ import fixtureSelected from './fixtures/selected';
11
+ test('Organism › OrganismBrandAnalytics > should have valid propTypes', t => {
12
+ t.pass();
13
+ forEach(OrganismBrandAnalytics.propTypes, (value, key) => {
14
+ t.not(value, undefined, `PropType for "Organism.OrganismBrandAnalytics.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
15
+ });
16
+ });
17
+ test('Organism › OrganismBrandAnalytics › Default › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureDefault);
18
+ test('Organism › OrganismBrandAnalytics › Error › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureError);
19
+ test('Organism › OrganismBrandAnalytics › Loading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureLoading);
20
+ test('Organism › OrganismBrandAnalytics › SelectedError › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedError);
21
+ test('Organism › OrganismBrandAnalytics › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedLoading);
22
+ test('Organism › OrganismBrandAnalytics › Selected › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelected);
23
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/brand-analytics/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandAnalytics","fixtureDefault","fixtureError","fixtureLoading","fixtureSelectedError","fixtureSelectedLoading","fixtureSelected","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAT,IAAI,CAAC,iEAAD,EAAoEU,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,sBAAsB,CAACS,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,sBAAzF,EAAiHE,YAAjH,CAAJ;AACAL,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHG,cAAnH,CAAJ;AACAN,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,sBAAjG,EAAyHI,oBAAzH,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,sBAAnG,EAA2HK,sBAA3H,CAAJ;AACAR,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,sBAA5F,EAAoHM,eAApH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandAnalytics from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureSelectedError from './fixtures/selected-error';\nimport fixtureSelectedLoading from './fixtures/selected-loading';\nimport fixtureSelected from './fixtures/selected';\n\ntest('Organism › OrganismBrandAnalytics > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandAnalytics.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandAnalytics.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandAnalytics › Default › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureDefault);\ntest('Organism › OrganismBrandAnalytics › Error › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureError);\ntest('Organism › OrganismBrandAnalytics › Loading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureLoading);\ntest('Organism › OrganismBrandAnalytics › SelectedError › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedError);\ntest('Organism › OrganismBrandAnalytics › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedLoading);\ntest('Organism › OrganismBrandAnalytics › Selected › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelected);\n"],"file":"fixtures.js"}
@@ -0,0 +1,15 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismBrandDashboard from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureThreeCards from './fixtures/three-cards';
7
+ test('Organism › OrganismBrandDashboard > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(OrganismBrandDashboard.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Organism.OrganismBrandDashboard.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);
14
+ test('Organism › OrganismBrandDashboard › ThreeCards › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureThreeCards);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/brand-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandDashboard","fixtureDefault","fixtureThreeCards","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AAEAL,IAAI,CAAC,iEAAD,EAAoEM,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,sBAAsB,CAACK,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,sBAA9F,EAAsHE,iBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandDashboard from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureThreeCards from './fixtures/three-cards';\n\ntest('Organism › OrganismBrandDashboard > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandDashboard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandDashboard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);\ntest('Organism › OrganismBrandDashboard › ThreeCards › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureThreeCards);\n"],"file":"fixtures.js"}
@@ -0,0 +1,33 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismBrandForm from '..';
5
+ import fixtureAnalytics from './fixtures/analytics';
6
+ import fixtureAnimations from './fixtures/animations';
7
+ import fixtureCohort from './fixtures/cohort';
8
+ import fixtureDashboard from './fixtures/dashboard';
9
+ import fixtureDefault from './fixtures/default';
10
+ import fixtureGeneralSettings from './fixtures/general-settings';
11
+ import fixtureLms from './fixtures/lms';
12
+ import fixtureLookandfeel from './fixtures/lookandfeel';
13
+ import fixtureManageusersEdit from './fixtures/manageusers-edit';
14
+ import fixtureSso from './fixtures/sso';
15
+ import fixtureWizardPlaylists from './fixtures/wizard-playlists';
16
+ test('Organism › OrganismBrandForm > should have valid propTypes', t => {
17
+ t.pass();
18
+ forEach(OrganismBrandForm.propTypes, (value, key) => {
19
+ t.not(value, undefined, `PropType for "Organism.OrganismBrandForm.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
20
+ });
21
+ });
22
+ test('Organism › OrganismBrandForm › Analytics › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnalytics);
23
+ test('Organism › OrganismBrandForm › Animations › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnimations);
24
+ test('Organism › OrganismBrandForm › Cohort › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureCohort);
25
+ test('Organism › OrganismBrandForm › Dashboard › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDashboard);
26
+ test('Organism › OrganismBrandForm › Default › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDefault);
27
+ test('Organism › OrganismBrandForm › GeneralSettings › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureGeneralSettings);
28
+ test('Organism › OrganismBrandForm › Lms › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLms);
29
+ test('Organism › OrganismBrandForm › Lookandfeel › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLookandfeel);
30
+ test('Organism › OrganismBrandForm › ManageusersEdit › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureManageusersEdit);
31
+ test('Organism › OrganismBrandForm › Sso › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureSso);
32
+ test('Organism › OrganismBrandForm › WizardPlaylists › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardPlaylists);
33
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/brand-form/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandForm","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettings","fixtureLms","fixtureLookandfeel","fixtureManageusersEdit","fixtureSso","fixtureWizardPlaylists","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAA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FC,iBAA9F,EAAiHS,sBAAjH,CAAJ;AACAZ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGU,UAArG,CAAJ;AACAb,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,iBAA9F,EAAiHW,sBAAjH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandForm from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureSso from './fixtures/sso';\nimport fixtureWizardPlaylists from './fixtures/wizard-playlists';\n\ntest('Organism › OrganismBrandForm > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandForm.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandForm.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandForm › Analytics › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnalytics);\ntest('Organism › OrganismBrandForm › Animations › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnimations);\ntest('Organism › OrganismBrandForm › Cohort › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureCohort);\ntest('Organism › OrganismBrandForm › Dashboard › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDashboard);\ntest('Organism › OrganismBrandForm › Default › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDefault);\ntest('Organism › OrganismBrandForm › GeneralSettings › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureGeneralSettings);\ntest('Organism › OrganismBrandForm › Lms › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLms);\ntest('Organism › OrganismBrandForm › Lookandfeel › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLookandfeel);\ntest('Organism › OrganismBrandForm › ManageusersEdit › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureManageusersEdit);\ntest('Organism › OrganismBrandForm › Sso › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureSso);\ntest('Organism › OrganismBrandForm › WizardPlaylists › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardPlaylists);\n"],"file":"fixtures.js"}
@@ -0,0 +1,19 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismBrandTable from '..';
5
+ import fixtureAnimations from './fixtures/animations';
6
+ import fixtureDefault from './fixtures/default';
7
+ import fixtureEmpty from './fixtures/empty';
8
+ import fixtureLoading from './fixtures/loading';
9
+ test('Organism › OrganismBrandTable > should have valid propTypes', t => {
10
+ t.pass();
11
+ forEach(OrganismBrandTable.propTypes, (value, key) => {
12
+ t.not(value, undefined, `PropType for "Organism.OrganismBrandTable.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
13
+ });
14
+ });
15
+ test('Organism › OrganismBrandTable › Animations › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureAnimations);
16
+ test('Organism › OrganismBrandTable › Default › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureDefault);
17
+ test('Organism › OrganismBrandTable › Empty › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureEmpty);
18
+ test('Organism › OrganismBrandTable › Loading › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureLoading);
19
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/brand-table/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandTable","fixtureAnimations","fixtureDefault","fixtureEmpty","fixtureLoading","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,kBAAP,MAA+B,IAA/B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAP,IAAI,CAAC,6DAAD,EAAgEQ,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,kBAAkB,CAACO,SAApB,EAA+B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,kBAA1F,EAA8GC,iBAA9G,CAAJ;AACAJ,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,kBAAvF,EAA2GE,cAA3G,CAAJ;AACAL,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,kBAArF,EAAyGG,YAAzG,CAAJ;AACAN,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,kBAAvF,EAA2GI,cAA3G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandTable from '..';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureLoading from './fixtures/loading';\n\ntest('Organism › OrganismBrandTable > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandTable.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandTable.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandTable › Animations › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureAnimations);\ntest('Organism › OrganismBrandTable › Default › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureDefault);\ntest('Organism › OrganismBrandTable › Empty › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureEmpty);\ntest('Organism › OrganismBrandTable › Loading › should be rendered', renderComponentMacro, OrganismBrandTable, fixtureLoading);\n"],"file":"fixtures.js"}
@@ -0,0 +1,15 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismBrandUpload from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureLoading from './fixtures/loading';
7
+ test('Organism › OrganismBrandUpload > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(OrganismBrandUpload.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Organism.OrganismBrandUpload.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Organism › OrganismBrandUpload › Default › should be rendered', renderComponentMacro, OrganismBrandUpload, fixtureDefault);
14
+ test('Organism › OrganismBrandUpload › Loading › should be rendered', renderComponentMacro, OrganismBrandUpload, fixtureLoading);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/brand-upload/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandUpload","fixtureDefault","fixtureLoading","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,mBAAP,MAAgC,IAAhC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAL,IAAI,CAAC,8DAAD,EAAiEM,CAAC,IAAI;AACxEA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,mBAAmB,CAACK,SAArB,EAAgC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACrDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,wDAAuDF,GAAI,mEAApF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,mBAAxF,EAA6GC,cAA7G,CAAJ;AACAJ,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,mBAAxF,EAA6GE,cAA7G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandUpload from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\n\ntest('Organism › OrganismBrandUpload > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandUpload.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandUpload.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandUpload › Default › should be rendered', renderComponentMacro, OrganismBrandUpload, fixtureDefault);\ntest('Organism › OrganismBrandUpload › Loading › should be rendered', renderComponentMacro, OrganismBrandUpload, fixtureLoading);\n"],"file":"fixtures.js"}
@@ -0,0 +1,19 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismCardsGrid from '..';
5
+ import fixtureCatalog from './fixtures/catalog';
6
+ import fixtureEmpty from './fixtures/empty';
7
+ import fixtureLoading from './fixtures/loading';
8
+ import fixtureMany from './fixtures/many';
9
+ test('Organism › OrganismCardsGrid > should have valid propTypes', t => {
10
+ t.pass();
11
+ forEach(OrganismCardsGrid.propTypes, (value, key) => {
12
+ t.not(value, undefined, `PropType for "Organism.OrganismCardsGrid.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
13
+ });
14
+ });
15
+ test('Organism › OrganismCardsGrid › Catalog › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureCatalog);
16
+ test('Organism › OrganismCardsGrid › Empty › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureEmpty);
17
+ test('Organism › OrganismCardsGrid › Loading › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureLoading);
18
+ test('Organism › OrganismCardsGrid › Many › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureMany);
19
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/cards-grid/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismCardsGrid","fixtureCatalog","fixtureEmpty","fixtureLoading","fixtureMany","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AAEAP,IAAI,CAAC,4DAAD,EAA+DQ,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,iBAAiB,CAACO,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGC,cAAzG,CAAJ;AACAJ,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,iBAApF,EAAuGE,YAAvG,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGG,cAAzG,CAAJ;AACAN,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGI,WAAtG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismCardsGrid from '..';\nimport fixtureCatalog from './fixtures/catalog';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureMany from './fixtures/many';\n\ntest('Organism › OrganismCardsGrid > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismCardsGrid.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismCardsGrid.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismCardsGrid › Catalog › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureCatalog);\ntest('Organism › OrganismCardsGrid › Empty › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureEmpty);\ntest('Organism › OrganismCardsGrid › Loading › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureLoading);\ntest('Organism › OrganismCardsGrid › Many › should be rendered', renderComponentMacro, OrganismCardsGrid, fixtureMany);\n"],"file":"fixtures.js"}
@@ -0,0 +1,13 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismCart from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('Organism › OrganismCart > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(OrganismCart.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "Organism.OrganismCart.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('Organism › OrganismCart › Default › should be rendered', renderComponentMacro, OrganismCart, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/cart/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismCart","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,YAAP,MAAyB,IAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,uDAAD,EAA0DK,CAAC,IAAI;AACjEA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,YAAY,CAACI,SAAd,EAAyB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC9CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,iDAAgDF,GAAI,mEAA7E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FC,cAA/F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismCart from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Organism › OrganismCart > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismCart.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismCart.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismCart › Default › should be rendered', renderComponentMacro, OrganismCart, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -6,6 +6,7 @@ import React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import EmptySearchResult from '../../atom/empty-search-result';
8
8
  import Search from '../../atom/input-search';
9
+ import SelectMultiple from '../../molecule/select-multiple';
9
10
  import Card from '../../molecule/card';
10
11
  import style from './style.css';
11
12
 
@@ -29,6 +30,7 @@ const buildResultView = (courses, coursesSelectionAriaLabel, emptyMessages) => {
29
30
  const CourseSelection = props => {
30
31
  const {
31
32
  search,
33
+ contentTypeFilter,
32
34
  courses,
33
35
  emptyMessages,
34
36
  'courses-selection-aria-label': coursesSelectionAriaLabel
@@ -36,17 +38,22 @@ const CourseSelection = props => {
36
38
  const resultView = buildResultView(courses, coursesSelectionAriaLabel, emptyMessages);
37
39
  return /*#__PURE__*/React.createElement("div", {
38
40
  className: style.container
41
+ }, /*#__PURE__*/React.createElement("div", {
42
+ className: style.filters
39
43
  }, /*#__PURE__*/React.createElement("div", {
40
44
  className: style.search
41
45
  }, /*#__PURE__*/React.createElement(Search, _extends({}, search, {
42
46
  theme: "coorpmanager"
43
47
  }))), /*#__PURE__*/React.createElement("div", {
48
+ className: style.contentFilter
49
+ }, /*#__PURE__*/React.createElement(SelectMultiple, contentTypeFilter))), /*#__PURE__*/React.createElement("div", {
44
50
  className: style.cardsContainer
45
51
  }, resultView));
46
52
  };
47
53
 
48
54
  CourseSelection.propTypes = process.env.NODE_ENV !== "production" ? {
49
55
  search: PropTypes.shape(Search.PropTypes),
56
+ contentTypeFilter: PropTypes.shape(SelectMultiple.PropTypes),
50
57
  courses: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),
51
58
  'courses-selection-aria-label': PropTypes.string,
52
59
  emptyMessages: PropTypes.shape({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/organism/course-selection/index.js"],"names":["React","PropTypes","EmptySearchResult","Search","Card","style","buildResultView","courses","coursesSelectionAriaLabel","emptyMessages","items","map","card","index","cards","CourseSelection","props","search","resultView","container","cardsContainer","propTypes","shape","arrayOf","string","firstMessage","secondMessage"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAs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EhB,SAAS,CAACqB,KAAV,CAAgBnB,MAAM,CAACF,SAAvB,CADkB;AAE1BM,EAAAA,OAAO,EAAEN,SAAS,CAACsB,OAAV,CAAkBtB,SAAS,CAACqB,KAAV,CAAgBlB,IAAI,CAACiB,SAArB,CAAlB,CAFiB;AAG1B,kCAAgCpB,SAAS,CAACuB,MAHhB;AAI1Bf,EAAAA,aAAa,EAAER,SAAS,CAACqB,KAAV,CAAgB;AAC7BG,IAAAA,YAAY,EAAExB,SAAS,CAACuB,MADK;AAE7BE,IAAAA,aAAa,EAAEzB,SAAS,CAACuB;AAFI,GAAhB;AAJW,CAA5B;AAUA,eAAeT,eAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty} from 'lodash/fp';\nimport EmptySearchResult from '../../atom/empty-search-result';\nimport Search from '../../atom/input-search';\nimport Card from '../../molecule/card';\nimport style from './style.css';\n\nconst buildResultView = (courses, coursesSelectionAriaLabel, emptyMessages) => {\n if (isEmpty(courses)) {\n return <EmptySearchResult {...emptyMessages} />;\n }\n\n const items = courses.map((card, index) => {\n return (\n <li className={style.cards} key={`card-${index}`} data-name={`course-${index}`}>\n <Card {...card} />\n </li>\n );\n });\n\n return <ul aria-label={coursesSelectionAriaLabel}>{items}</ul>;\n};\n\nconst CourseSelection = props => {\n const {\n search,\n courses,\n emptyMessages,\n 'courses-selection-aria-label': coursesSelectionAriaLabel\n } = props;\n\n const resultView = buildResultView(courses, coursesSelectionAriaLabel, emptyMessages);\n\n return (\n <div className={style.container}>\n <div className={style.search}>\n <Search {...search} theme=\"coorpmanager\" />\n </div>\n <div className={style.cardsContainer}>{resultView}</div>\n </div>\n );\n};\n\nCourseSelection.propTypes = {\n search: PropTypes.shape(Search.PropTypes),\n courses: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n 'courses-selection-aria-label': PropTypes.string,\n emptyMessages: PropTypes.shape({\n firstMessage: PropTypes.string,\n secondMessage: PropTypes.string\n })\n};\n\nexport default CourseSelection;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/organism/course-selection/index.js"],"names":["React","PropTypes","EmptySearchResult","Search","SelectMultiple","Card","style","buildResultView","courses","coursesSelectionAriaLabel","emptyMessages","items","map","card","index","cards","CourseSelection","props","search","contentTypeFilter","resultView","container","filters","contentFilter","cardsContainer","propTypes","shape","arrayOf","string","firstMessage","secondMessage"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,iBAAP,MAA8B,gCAA9B;AACA,OAAOC,MAAP,MAAmB,yBAAnB;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,IAAP,MAAiB,qBAAjB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,eAAe,GAAG,CAACC,OAAD,EAAUC,yBAAV,EAAqCC,aAArC,KAAuD;AAC7E,MAAI,SAAQF,OAAR,CAAJ,EAAsB;AACpB,wBAAO,oBAAC,iBAAD,EAAuBE,aAAvB,CAAP;AACD;;AAED,QAAMC,KAAK,GAAGH,OAAO,CAACI,GAAR,CAAY,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACzC,wBACE;AAAI,MAAA,SAAS,EAAER,KAAK,CAACS,KAArB;AAA4B,MAAA,GAAG,EAAG,QAAOD,KAAM,EAA/C;AAAkD,mBAAY,UAASA,KAAM;AAA7E,oBACE,oBAAC,IAAD,EAAUD,IAAV,CADF,CADF;AAKD,GANa,CAAd;AAQA,sBAAO;AAAI,kBAAYJ;AAAhB,KAA4CE,KAA5C,CAAP;AACD,CAdD;;AAgBA,MAAMK,eAAe,GAAGC,KAAK,IAAI;AAC/B,QAAM;AACJC,IAAAA,MADI;AAEJC,IAAAA,iBAFI;AAGJX,IAAAA,OAHI;AAIJE,IAAAA,aAJI;AAKJ,oCAAgCD;AAL5B,MAMFQ,KANJ;AAQA,QAAMG,UAAU,GAAGb,eAAe,CAACC,OAAD,EAAUC,yBAAV,EAAqCC,aAArC,CAAlC;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEJ,KAAK,CAACe;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEf,KAAK,CAACgB;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEhB,KAAK,CAACY;AAAtB,kBACE,oBAAC,MAAD,eAAYA,MAAZ;AAAoB,IAAA,KAAK,EAAC;AAA1B,KADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEZ,KAAK,CAACiB;AAAtB,kBACE,oBAAC,cAAD,EAAoBJ,iBAApB,CADF,CAJF,CADF,eASE;AAAK,IAAA,SAAS,EAAEb,KAAK,CAACkB;AAAtB,KAAuCJ,UAAvC,CATF,CADF;AAaD,CAxBD;;AA0BAJ,eAAe,CAACS,SAAhB,2CAA4B;AAC1BP,EAAAA,MAAM,EAAEjB,SAAS,CAACyB,KAAV,CAAgBvB,MAAM,CAACF,SAAvB,CADkB;AAE1BkB,EAAAA,iBAAiB,EAAElB,SAAS,CAACyB,KAAV,CAAgBtB,cAAc,CAACH,SAA/B,CAFO;AAG1BO,EAAAA,OAAO,EAAEP,SAAS,CAAC0B,OAAV,CAAkB1B,SAAS,CAACyB,KAAV,CAAgBrB,IAAI,CAACoB,SAArB,CAAlB,CAHiB;AAI1B,kCAAgCxB,SAAS,CAAC2B,MAJhB;AAK1BlB,EAAAA,aAAa,EAAET,SAAS,CAACyB,KAAV,CAAgB;AAC7BG,IAAAA,YAAY,EAAE5B,SAAS,CAAC2B,MADK;AAE7BE,IAAAA,aAAa,EAAE7B,SAAS,CAAC2B;AAFI,GAAhB;AALW,CAA5B;AAWA,eAAeZ,eAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty} from 'lodash/fp';\nimport EmptySearchResult from '../../atom/empty-search-result';\nimport Search from '../../atom/input-search';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport Card from '../../molecule/card';\nimport style from './style.css';\n\nconst buildResultView = (courses, coursesSelectionAriaLabel, emptyMessages) => {\n if (isEmpty(courses)) {\n return <EmptySearchResult {...emptyMessages} />;\n }\n\n const items = courses.map((card, index) => {\n return (\n <li className={style.cards} key={`card-${index}`} data-name={`course-${index}`}>\n <Card {...card} />\n </li>\n );\n });\n\n return <ul aria-label={coursesSelectionAriaLabel}>{items}</ul>;\n};\n\nconst CourseSelection = props => {\n const {\n search,\n contentTypeFilter,\n courses,\n emptyMessages,\n 'courses-selection-aria-label': coursesSelectionAriaLabel\n } = props;\n\n const resultView = buildResultView(courses, coursesSelectionAriaLabel, emptyMessages);\n\n return (\n <div className={style.container}>\n <div className={style.filters}>\n <div className={style.search}>\n <Search {...search} theme=\"coorpmanager\" />\n </div>\n <div className={style.contentFilter}>\n <SelectMultiple {...contentTypeFilter} />\n </div>\n </div>\n <div className={style.cardsContainer}>{resultView}</div>\n </div>\n );\n};\n\nCourseSelection.propTypes = {\n search: PropTypes.shape(Search.PropTypes),\n contentTypeFilter: PropTypes.shape(SelectMultiple.PropTypes),\n courses: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n 'courses-selection-aria-label': PropTypes.string,\n emptyMessages: PropTypes.shape({\n firstMessage: PropTypes.string,\n secondMessage: PropTypes.string\n })\n};\n\nexport default CourseSelection;\n"],"file":"index.js"}