@coorpacademy/components 10.13.1 → 10.13.3-alpha.14

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 (365) hide show
  1. package/es/atom/button-link/test/fixtures.js +31 -0
  2. package/es/atom/button-link/test/fixtures.js.map +1 -0
  3. package/es/atom/button-link-icon-only/test/fixtures.js +21 -0
  4. package/es/atom/button-link-icon-only/test/fixtures.js.map +1 -0
  5. package/es/atom/button-menu/test/fixtures.js +15 -0
  6. package/es/atom/button-menu/test/fixtures.js.map +1 -0
  7. package/es/atom/card-image-preview/test/fixtures.js +15 -0
  8. package/es/atom/card-image-preview/test/fixtures.js.map +1 -0
  9. package/es/atom/checkbox-with-title/test/fixtures.js +15 -0
  10. package/es/atom/checkbox-with-title/test/fixtures.js.map +1 -0
  11. package/es/atom/chips/test/fixtures.js +17 -0
  12. package/es/atom/chips/test/fixtures.js.map +1 -0
  13. package/es/atom/content-badge/test/fixtures.js +29 -0
  14. package/es/atom/content-badge/test/fixtures.js.map +1 -0
  15. package/es/atom/drag-and-drop/index.js +71 -43
  16. package/es/atom/drag-and-drop/index.js.map +1 -1
  17. package/es/atom/drag-and-drop/style.css +173 -70
  18. package/es/atom/drag-and-drop/test/fixtures/default.js +4 -3
  19. package/es/atom/drag-and-drop/test/fixtures/default.js.map +1 -1
  20. package/es/atom/drag-and-drop/test/fixtures/error.js +12 -0
  21. package/es/atom/drag-and-drop/test/fixtures/error.js.map +1 -0
  22. package/es/atom/drag-and-drop/test/fixtures/loading.js +2 -1
  23. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  24. package/es/atom/drag-and-drop/test/fixtures/modified.js +12 -0
  25. package/es/atom/drag-and-drop/test/fixtures/modified.js.map +1 -0
  26. package/es/atom/drag-and-drop/test/fixtures/with-children.js +1 -0
  27. package/es/atom/drag-and-drop/test/fixtures/with-children.js.map +1 -1
  28. package/es/atom/drag-and-drop/test/fixtures/with-image.js +2 -1
  29. package/es/atom/drag-and-drop/test/fixtures/with-image.js.map +1 -1
  30. package/es/atom/drag-and-drop/test/fixtures/with-video.js +3 -1
  31. package/es/atom/drag-and-drop/test/fixtures/with-video.js.map +1 -1
  32. package/es/atom/drag-and-drop/test/fixtures/withLongDescription.js +12 -0
  33. package/es/atom/drag-and-drop/test/fixtures/withLongDescription.js.map +1 -0
  34. package/es/atom/drag-and-drop/test/fixtures.js +6 -0
  35. package/es/atom/drag-and-drop/test/fixtures.js.map +1 -1
  36. package/es/atom/empty-search-result/test/fixtures.js +13 -0
  37. package/es/atom/empty-search-result/test/fixtures.js.map +1 -0
  38. package/es/atom/image-upload/index.js +6 -3
  39. package/es/atom/image-upload/index.js.map +1 -1
  40. package/es/atom/image-upload/test/fixtures/clean-modified.js +13 -0
  41. package/es/atom/image-upload/test/fixtures/clean-modified.js.map +1 -0
  42. package/es/atom/image-upload/test/fixtures/{without-image.js → default.js} +1 -1
  43. package/es/atom/image-upload/test/fixtures/default.js.map +1 -0
  44. package/es/atom/image-upload/test/fixtures/desktop.js +2 -1
  45. package/es/atom/image-upload/test/fixtures/desktop.js.map +1 -1
  46. package/es/atom/image-upload/test/fixtures/mobile.js +2 -1
  47. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  48. package/es/atom/image-upload/test/fixtures.js +4 -2
  49. package/es/atom/image-upload/test/fixtures.js.map +1 -1
  50. package/es/atom/input-checkbox/test/fixtures.js +2 -0
  51. package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
  52. package/es/atom/input-search/test/fixtures.js +19 -0
  53. package/es/atom/input-search/test/fixtures.js.map +1 -0
  54. package/es/atom/input-switch/test/fixtures.js +10 -0
  55. package/es/atom/input-switch/test/fixtures.js.map +1 -1
  56. package/es/atom/input-text/test/fixtures.js +2 -0
  57. package/es/atom/input-text/test/fixtures.js.map +1 -1
  58. package/es/atom/input-text-with-title/index.js +35 -0
  59. package/es/atom/input-text-with-title/index.js.map +1 -0
  60. package/es/atom/input-text-with-title/style.css +24 -0
  61. package/es/atom/input-text-with-title/test/fixtures/default.js +12 -0
  62. package/es/atom/input-text-with-title/test/fixtures/default.js.map +1 -0
  63. package/es/atom/input-text-with-title/test/fixtures/error.js +13 -0
  64. package/es/atom/input-text-with-title/test/fixtures/error.js.map +1 -0
  65. package/es/atom/input-text-with-title/test/fixtures.js +15 -0
  66. package/es/atom/input-text-with-title/test/fixtures.js.map +1 -0
  67. package/es/atom/input-textarea/test/fixtures.js +4 -0
  68. package/es/atom/input-textarea/test/fixtures.js.map +1 -1
  69. package/es/atom/loader/style.css +7 -3
  70. package/es/atom/loader/test/fixtures.js +2 -0
  71. package/es/atom/loader/test/fixtures.js.map +1 -1
  72. package/es/atom/review-header-step-item/test/fixtures.js +19 -0
  73. package/es/atom/review-header-step-item/test/fixtures.js.map +1 -0
  74. package/es/atom/select/test/fixtures.js +4 -0
  75. package/es/atom/select/test/fixtures.js.map +1 -1
  76. package/es/atom/tag/test/fixtures.js +21 -0
  77. package/es/atom/tag/test/fixtures.js.map +1 -0
  78. package/es/atom/title/test/fixtures.js +6 -2
  79. package/es/atom/title/test/fixtures.js.map +1 -1
  80. package/es/atom/wizard-steps/test/fixtures.js +17 -0
  81. package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
  82. package/es/molecule/banner/test/fixtures.js +23 -0
  83. package/es/molecule/banner/test/fixtures.js.map +1 -0
  84. package/es/molecule/brand-form-group/index.js +3 -1
  85. package/es/molecule/brand-form-group/index.js.map +1 -1
  86. package/es/molecule/brand-form-group/style.css +5 -0
  87. package/es/molecule/brand-form-group/test/fixtures/images.js +6 -2
  88. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  89. package/es/molecule/brand-form-group/test/fixtures.js +2 -0
  90. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
  91. package/es/molecule/bullet-point-menu-button/test/fixtures.js +15 -0
  92. package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  93. package/es/molecule/card/test/fixtures.js +6 -0
  94. package/es/molecule/card/test/fixtures.js.map +1 -1
  95. package/es/molecule/cm-popin/test/fixtures.js +17 -0
  96. package/es/molecule/cm-popin/test/fixtures.js.map +1 -0
  97. package/es/molecule/coorp-manager-roles/test/fixtures.js +13 -0
  98. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  99. package/es/molecule/course-section/test/fixtures.js +15 -0
  100. package/es/molecule/course-section/test/fixtures.js.map +1 -0
  101. package/es/molecule/course-sections/index.js +20 -4
  102. package/es/molecule/course-sections/index.js.map +1 -1
  103. package/es/molecule/course-sections/style.css +17 -0
  104. package/es/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js +11 -0
  105. package/es/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js.map +1 -0
  106. package/es/molecule/course-sections/test/fixtures.js +17 -0
  107. package/es/molecule/course-sections/test/fixtures.js.map +1 -0
  108. package/es/molecule/dashboard/review-banner/test/fixtures.js +13 -0
  109. package/es/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  110. package/es/molecule/draggable/test/fixtures.js +13 -0
  111. package/es/molecule/draggable/test/fixtures.js.map +1 -0
  112. package/es/molecule/draggable-list/test/fixtures.js +15 -0
  113. package/es/molecule/draggable-list/test/fixtures.js.map +1 -0
  114. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js +15 -0
  115. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
  116. package/es/molecule/popin/test/fixtures.js +21 -0
  117. package/es/molecule/popin/test/fixtures.js.map +1 -0
  118. package/es/molecule/questions/free-text/test/fixtures.js +4 -2
  119. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -1
  120. package/es/molecule/quick-access-card/test/fixtures.js +21 -0
  121. package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
  122. package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
  123. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  124. package/es/molecule/review-correction-popin/test/fixtures.js +15 -0
  125. package/es/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  126. package/es/molecule/review-header-steps/test/fixtures.js +23 -0
  127. package/es/molecule/review-header-steps/test/fixtures.js.map +1 -0
  128. package/es/molecule/select-multiple/test/fixtures.js +8 -0
  129. package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
  130. package/es/molecule/setup-slide/index.js +3 -1
  131. package/es/molecule/setup-slide/index.js.map +1 -1
  132. package/es/molecule/setup-slide/style.css +5 -0
  133. package/es/molecule/vertical-tabs/test/fixtures.js +17 -0
  134. package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  135. package/es/molecule/wizard-summary/test/fixtures.js +23 -0
  136. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
  137. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +4 -0
  138. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  139. package/es/organism/brand-analytics/test/fixtures.js +23 -0
  140. package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
  141. package/es/organism/brand-dashboard/test/fixtures.js +2 -10
  142. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -1
  143. package/es/organism/brand-form/test/fixtures.js +2 -0
  144. package/es/organism/brand-form/test/fixtures.js.map +1 -1
  145. package/es/organism/content-translation/test/fixtures.js +15 -0
  146. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  147. package/es/organism/course-selection/index.js +2 -1
  148. package/es/organism/course-selection/index.js.map +1 -1
  149. package/es/organism/course-selection/style.css +12 -3
  150. package/es/organism/course-selection/test/fixtures/loading.js +9 -0
  151. package/es/organism/course-selection/test/fixtures/loading.js.map +1 -0
  152. package/es/organism/course-selection/test/fixtures.js +25 -0
  153. package/es/organism/course-selection/test/fixtures.js.map +1 -0
  154. package/es/organism/list-item/test/fixtures.js +19 -0
  155. package/es/organism/list-item/test/fixtures.js.map +1 -0
  156. package/es/organism/list-items/test/fixtures.js +17 -0
  157. package/es/organism/list-items/test/fixtures.js.map +1 -0
  158. package/es/organism/playlist-translation/test/fixtures.js +15 -0
  159. package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
  160. package/es/organism/search-and-chips-results/index.js +2 -1
  161. package/es/organism/search-and-chips-results/index.js.map +1 -1
  162. package/es/organism/search-and-chips-results/style.css +10 -3
  163. package/es/organism/search-and-chips-results/test/fixtures/loading.js +9 -0
  164. package/es/organism/search-and-chips-results/test/fixtures/loading.js.map +1 -0
  165. package/es/organism/search-and-chips-results/test/fixtures.js +23 -0
  166. package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  167. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +1 -1
  168. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
  169. package/es/organism/wizard-contents/test/fixtures.js +23 -0
  170. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  171. package/es/template/app-player/popin-end/test/fixtures.js +2 -0
  172. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -1
  173. package/es/template/back-office/brand-update/index.js +5 -2
  174. package/es/template/back-office/brand-update/index.js.map +1 -1
  175. package/es/template/back-office/brand-update/style.css +10 -1
  176. package/es/template/back-office/brand-update/test/fixtures.js +26 -2
  177. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  178. package/es/util/button-icons.js +3 -2
  179. package/es/util/button-icons.js.map +1 -1
  180. package/lib/atom/button-link/test/fixtures.js +49 -0
  181. package/lib/atom/button-link/test/fixtures.js.map +1 -0
  182. package/lib/atom/button-link-icon-only/test/fixtures.js +34 -0
  183. package/lib/atom/button-link-icon-only/test/fixtures.js.map +1 -0
  184. package/lib/atom/button-menu/test/fixtures.js +25 -0
  185. package/lib/atom/button-menu/test/fixtures.js.map +1 -0
  186. package/lib/atom/card-image-preview/test/fixtures.js +25 -0
  187. package/lib/atom/card-image-preview/test/fixtures.js.map +1 -0
  188. package/lib/atom/checkbox-with-title/test/fixtures.js +25 -0
  189. package/lib/atom/checkbox-with-title/test/fixtures.js.map +1 -0
  190. package/lib/atom/chips/test/fixtures.js +28 -0
  191. package/lib/atom/chips/test/fixtures.js.map +1 -0
  192. package/lib/atom/content-badge/test/fixtures.js +46 -0
  193. package/lib/atom/content-badge/test/fixtures.js.map +1 -0
  194. package/lib/atom/drag-and-drop/index.js +73 -42
  195. package/lib/atom/drag-and-drop/index.js.map +1 -1
  196. package/lib/atom/drag-and-drop/style.css +173 -70
  197. package/lib/atom/drag-and-drop/test/fixtures/default.js +4 -3
  198. package/lib/atom/drag-and-drop/test/fixtures/default.js.map +1 -1
  199. package/lib/atom/drag-and-drop/test/fixtures/error.js +21 -0
  200. package/lib/atom/drag-and-drop/test/fixtures/error.js.map +1 -0
  201. package/lib/atom/drag-and-drop/test/fixtures/loading.js +2 -1
  202. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  203. package/lib/atom/drag-and-drop/test/fixtures/modified.js +21 -0
  204. package/lib/atom/drag-and-drop/test/fixtures/modified.js.map +1 -0
  205. package/lib/atom/drag-and-drop/test/fixtures/with-children.js +1 -0
  206. package/lib/atom/drag-and-drop/test/fixtures/with-children.js.map +1 -1
  207. package/lib/atom/drag-and-drop/test/fixtures/with-image.js +2 -1
  208. package/lib/atom/drag-and-drop/test/fixtures/with-image.js.map +1 -1
  209. package/lib/atom/drag-and-drop/test/fixtures/with-video.js +3 -1
  210. package/lib/atom/drag-and-drop/test/fixtures/with-video.js.map +1 -1
  211. package/lib/atom/drag-and-drop/test/fixtures/withLongDescription.js +21 -0
  212. package/lib/atom/drag-and-drop/test/fixtures/withLongDescription.js.map +1 -0
  213. package/lib/atom/drag-and-drop/test/fixtures.js +9 -0
  214. package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -1
  215. package/lib/atom/empty-search-result/test/fixtures.js +22 -0
  216. package/lib/atom/empty-search-result/test/fixtures.js.map +1 -0
  217. package/lib/atom/image-upload/index.js +6 -3
  218. package/lib/atom/image-upload/index.js.map +1 -1
  219. package/lib/atom/image-upload/test/fixtures/clean-modified.js +22 -0
  220. package/lib/atom/image-upload/test/fixtures/clean-modified.js.map +1 -0
  221. package/lib/atom/image-upload/test/fixtures/{without-image.js → default.js} +1 -1
  222. package/lib/atom/image-upload/test/fixtures/default.js.map +1 -0
  223. package/lib/atom/image-upload/test/fixtures/desktop.js +2 -1
  224. package/lib/atom/image-upload/test/fixtures/desktop.js.map +1 -1
  225. package/lib/atom/image-upload/test/fixtures/mobile.js +2 -1
  226. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  227. package/lib/atom/image-upload/test/fixtures.js +6 -3
  228. package/lib/atom/image-upload/test/fixtures.js.map +1 -1
  229. package/lib/atom/input-checkbox/test/fixtures.js +3 -0
  230. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
  231. package/lib/atom/input-search/test/fixtures.js +31 -0
  232. package/lib/atom/input-search/test/fixtures.js.map +1 -0
  233. package/lib/atom/input-switch/test/fixtures.js +15 -0
  234. package/lib/atom/input-switch/test/fixtures.js.map +1 -1
  235. package/lib/atom/input-text/test/fixtures.js +3 -0
  236. package/lib/atom/input-text/test/fixtures.js.map +1 -1
  237. package/lib/atom/input-text-with-title/index.js +46 -0
  238. package/lib/atom/input-text-with-title/index.js.map +1 -0
  239. package/lib/atom/input-text-with-title/style.css +24 -0
  240. package/lib/atom/input-text-with-title/test/fixtures/default.js +21 -0
  241. package/lib/atom/input-text-with-title/test/fixtures/default.js.map +1 -0
  242. package/lib/atom/input-text-with-title/test/fixtures/error.js +22 -0
  243. package/lib/atom/input-text-with-title/test/fixtures/error.js.map +1 -0
  244. package/lib/atom/input-text-with-title/test/fixtures.js +25 -0
  245. package/lib/atom/input-text-with-title/test/fixtures.js.map +1 -0
  246. package/lib/atom/input-textarea/test/fixtures.js +6 -0
  247. package/lib/atom/input-textarea/test/fixtures.js.map +1 -1
  248. package/lib/atom/loader/style.css +7 -3
  249. package/lib/atom/loader/test/fixtures.js +3 -0
  250. package/lib/atom/loader/test/fixtures.js.map +1 -1
  251. package/lib/atom/review-header-step-item/test/fixtures.js +31 -0
  252. package/lib/atom/review-header-step-item/test/fixtures.js.map +1 -0
  253. package/lib/atom/select/test/fixtures.js +6 -0
  254. package/lib/atom/select/test/fixtures.js.map +1 -1
  255. package/lib/atom/tag/test/fixtures.js +34 -0
  256. package/lib/atom/tag/test/fixtures.js.map +1 -0
  257. package/lib/atom/title/test/fixtures.js +8 -2
  258. package/lib/atom/title/test/fixtures.js.map +1 -1
  259. package/lib/atom/wizard-steps/test/fixtures.js +28 -0
  260. package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
  261. package/lib/molecule/banner/test/fixtures.js +37 -0
  262. package/lib/molecule/banner/test/fixtures.js.map +1 -0
  263. package/lib/molecule/brand-form-group/index.js +3 -1
  264. package/lib/molecule/brand-form-group/index.js.map +1 -1
  265. package/lib/molecule/brand-form-group/style.css +5 -0
  266. package/lib/molecule/brand-form-group/test/fixtures/images.js +6 -2
  267. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  268. package/lib/molecule/brand-form-group/test/fixtures.js +3 -0
  269. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
  270. package/lib/molecule/bullet-point-menu-button/test/fixtures.js +25 -0
  271. package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  272. package/lib/molecule/card/test/fixtures.js +9 -0
  273. package/lib/molecule/card/test/fixtures.js.map +1 -1
  274. package/lib/molecule/cm-popin/test/fixtures.js +28 -0
  275. package/lib/molecule/cm-popin/test/fixtures.js.map +1 -0
  276. package/lib/molecule/coorp-manager-roles/test/fixtures.js +22 -0
  277. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  278. package/lib/molecule/course-section/test/fixtures.js +25 -0
  279. package/lib/molecule/course-section/test/fixtures.js.map +1 -0
  280. package/lib/molecule/course-sections/index.js +21 -4
  281. package/lib/molecule/course-sections/index.js.map +1 -1
  282. package/lib/molecule/course-sections/style.css +17 -0
  283. package/lib/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js +21 -0
  284. package/lib/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js.map +1 -0
  285. package/lib/molecule/course-sections/test/fixtures.js +28 -0
  286. package/lib/molecule/course-sections/test/fixtures.js.map +1 -0
  287. package/lib/molecule/dashboard/review-banner/test/fixtures.js +22 -0
  288. package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  289. package/lib/molecule/draggable/test/fixtures.js +22 -0
  290. package/lib/molecule/draggable/test/fixtures.js.map +1 -0
  291. package/lib/molecule/draggable-list/test/fixtures.js +25 -0
  292. package/lib/molecule/draggable-list/test/fixtures.js.map +1 -0
  293. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js +25 -0
  294. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
  295. package/lib/molecule/popin/test/fixtures.js +34 -0
  296. package/lib/molecule/popin/test/fixtures.js.map +1 -0
  297. package/lib/molecule/questions/free-text/test/fixtures.js +5 -2
  298. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -1
  299. package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
  300. package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
  301. package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
  302. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  303. package/lib/molecule/review-correction-popin/test/fixtures.js +25 -0
  304. package/lib/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  305. package/lib/molecule/review-header-steps/test/fixtures.js +37 -0
  306. package/lib/molecule/review-header-steps/test/fixtures.js.map +1 -0
  307. package/lib/molecule/select-multiple/test/fixtures.js +12 -0
  308. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
  309. package/lib/molecule/setup-slide/index.js +3 -1
  310. package/lib/molecule/setup-slide/index.js.map +1 -1
  311. package/lib/molecule/setup-slide/style.css +5 -0
  312. package/lib/molecule/vertical-tabs/test/fixtures.js +28 -0
  313. package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  314. package/lib/molecule/wizard-summary/test/fixtures.js +37 -0
  315. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
  316. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +6 -0
  317. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -1
  318. package/lib/organism/brand-analytics/test/fixtures.js +37 -0
  319. package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
  320. package/lib/organism/brand-dashboard/test/fixtures.js +2 -14
  321. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -1
  322. package/lib/organism/brand-form/test/fixtures.js +3 -0
  323. package/lib/organism/brand-form/test/fixtures.js.map +1 -1
  324. package/lib/organism/content-translation/test/fixtures.js +25 -0
  325. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  326. package/lib/organism/course-selection/index.js +2 -1
  327. package/lib/organism/course-selection/index.js.map +1 -1
  328. package/lib/organism/course-selection/style.css +12 -3
  329. package/lib/organism/course-selection/test/fixtures/loading.js +19 -0
  330. package/lib/organism/course-selection/test/fixtures/loading.js.map +1 -0
  331. package/lib/organism/course-selection/test/fixtures.js +40 -0
  332. package/lib/organism/course-selection/test/fixtures.js.map +1 -0
  333. package/lib/organism/list-item/test/fixtures.js +31 -0
  334. package/lib/organism/list-item/test/fixtures.js.map +1 -0
  335. package/lib/organism/list-items/test/fixtures.js +28 -0
  336. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  337. package/lib/organism/playlist-translation/test/fixtures.js +25 -0
  338. package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
  339. package/lib/organism/search-and-chips-results/index.js +2 -1
  340. package/lib/organism/search-and-chips-results/index.js.map +1 -1
  341. package/lib/organism/search-and-chips-results/style.css +10 -3
  342. package/lib/organism/search-and-chips-results/test/fixtures/loading.js +19 -0
  343. package/lib/organism/search-and-chips-results/test/fixtures/loading.js.map +1 -0
  344. package/lib/organism/search-and-chips-results/test/fixtures.js +37 -0
  345. package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  346. package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +2 -2
  347. package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
  348. package/lib/organism/wizard-contents/test/fixtures.js +37 -0
  349. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  350. package/lib/template/app-player/popin-end/test/fixtures.js +3 -0
  351. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -1
  352. package/lib/template/back-office/brand-update/index.js +5 -2
  353. package/lib/template/back-office/brand-update/index.js.map +1 -1
  354. package/lib/template/back-office/brand-update/style.css +10 -1
  355. package/lib/template/back-office/brand-update/test/fixtures.js +38 -2
  356. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  357. package/lib/util/button-icons.js +2 -1
  358. package/lib/util/button-icons.js.map +1 -1
  359. package/package.json +2 -2
  360. package/es/atom/image-upload/test/fixtures/without-image.js.map +0 -1
  361. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  362. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  363. package/lib/atom/image-upload/test/fixtures/without-image.js.map +0 -1
  364. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  365. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/tag/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomTag","fixtureArchived","fixtureDefault","fixtureDraft","fixturePublished","fixtureRevised","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,OAAP,MAAoB,IAApB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAR,IAAI,CAAC,8CAAD,EAAiDS,CAAC,IAAI;AACxDA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,OAAO,CAACQ,SAAT,EAAoB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACzCJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,wCAAuCF,GAAI,mEAApE;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,gDAAD,EAAmDE,oBAAnD,EAAyEC,OAAzE,EAAkFC,eAAlF,CAAJ;AACAJ,IAAI,CAAC,+CAAD,EAAkDE,oBAAlD,EAAwEC,OAAxE,EAAiFE,cAAjF,CAAJ;AACAL,IAAI,CAAC,6CAAD,EAAgDE,oBAAhD,EAAsEC,OAAtE,EAA+EG,YAA/E,CAAJ;AACAN,IAAI,CAAC,iDAAD,EAAoDE,oBAApD,EAA0EC,OAA1E,EAAmFI,gBAAnF,CAAJ;AACAP,IAAI,CAAC,+CAAD,EAAkDE,oBAAlD,EAAwEC,OAAxE,EAAiFK,cAAjF,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomTag from '..';\nimport fixtureArchived from './fixtures/archived';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDraft from './fixtures/draft';\nimport fixturePublished from './fixtures/published';\nimport fixtureRevised from './fixtures/revised';\n\ntest('Atom › AtomTag > should have valid propTypes', t => {\n t.pass();\n forEach(AtomTag.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomTag.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomTag › Archived › should be rendered', renderComponentMacro, AtomTag, fixtureArchived);\ntest('Atom › AtomTag › Default › should be rendered', renderComponentMacro, AtomTag, fixtureDefault);\ntest('Atom › AtomTag › Draft › should be rendered', renderComponentMacro, AtomTag, fixtureDraft);\ntest('Atom › AtomTag › Published › should be rendered', renderComponentMacro, AtomTag, fixturePublished);\ntest('Atom › AtomTag › Revised › should be rendered', renderComponentMacro, AtomTag, fixtureRevised);\n"],"file":"fixtures.js"}
@@ -2,12 +2,16 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import AtomTitle from '..';
5
- import fixtureFixture from './fixtures/fixture';
5
+ import fixtureFormGroupTitleWithoutSubtitle from './fixtures/form-group-title-without-subtitle';
6
+ import fixtureFormGroupTitle from './fixtures/form-group-title';
7
+ import fixturePageTitle from './fixtures/page-title';
6
8
  test('Atom › AtomTitle > should have valid propTypes', t => {
7
9
  t.pass();
8
10
  forEach(AtomTitle.propTypes, (value, key) => {
9
11
  t.not(value, undefined, `PropType for "Atom.AtomTitle.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
12
  });
11
13
  });
12
- test('Atom › AtomTitle › Fixture › should be rendered', renderComponentMacro, AtomTitle, fixtureFixture);
14
+ test('Atom › AtomTitle › FormGroupTitleWithoutSubtitle › should be rendered', renderComponentMacro, AtomTitle, fixtureFormGroupTitleWithoutSubtitle);
15
+ test('Atom › AtomTitle › FormGroupTitle › should be rendered', renderComponentMacro, AtomTitle, fixtureFormGroupTitle);
16
+ test('Atom › AtomTitle › PageTitle › should be rendered', renderComponentMacro, AtomTitle, fixturePageTitle);
13
17
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/title/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomTitle","fixtureFixture","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,SAAP,MAAsB,IAAtB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,gDAAD,EAAmDK,CAAC,IAAI;AAC1DA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,SAAS,CAACI,SAAX,EAAsB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0CAAyCF,GAAI,mEAAtE;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,iDAAD,EAAoDE,oBAApD,EAA0EC,SAA1E,EAAqFC,cAArF,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomTitle from '..';\nimport fixtureFixture from './fixtures/fixture';\n\ntest('Atom › AtomTitle > should have valid propTypes', t => {\n t.pass();\n forEach(AtomTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomTitle › Fixture › should be rendered', renderComponentMacro, AtomTitle, fixtureFixture);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/title/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomTitle","fixtureFormGroupTitleWithoutSubtitle","fixtureFormGroupTitle","fixturePageTitle","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,SAAP,MAAsB,IAAtB;AACA,OAAOC,oCAAP,MAAiD,8CAAjD;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAN,IAAI,CAAC,gDAAD,EAAmDO,CAAC,IAAI;AAC1DA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,SAAS,CAACM,SAAX,EAAsB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0CAAyCF,GAAI,mEAAtE;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,SAAhG,EAA2GC,oCAA3G,CAAJ;AACAJ,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,SAAjF,EAA4FE,qBAA5F,CAAJ;AACAL,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,SAA5E,EAAuFG,gBAAvF,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomTitle from '..';\nimport fixtureFormGroupTitleWithoutSubtitle from './fixtures/form-group-title-without-subtitle';\nimport fixtureFormGroupTitle from './fixtures/form-group-title';\nimport fixturePageTitle from './fixtures/page-title';\n\ntest('Atom › AtomTitle > should have valid propTypes', t => {\n t.pass();\n forEach(AtomTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomTitle › FormGroupTitleWithoutSubtitle › should be rendered', renderComponentMacro, AtomTitle, fixtureFormGroupTitleWithoutSubtitle);\ntest('Atom › AtomTitle › FormGroupTitle › should be rendered', renderComponentMacro, AtomTitle, fixtureFormGroupTitle);\ntest('Atom › AtomTitle › PageTitle › should be rendered', renderComponentMacro, AtomTitle, fixturePageTitle);\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 AtomWizardSteps from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureFirstStep from './fixtures/first-step';
7
+ import fixtureLastStep from './fixtures/last-step';
8
+ test('Atom › AtomWizardSteps > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(AtomWizardSteps.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Atom.AtomWizardSteps.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Atom › AtomWizardSteps › Default › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureDefault);
15
+ test('Atom › AtomWizardSteps › FirstStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureFirstStep);
16
+ test('Atom › AtomWizardSteps › LastStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureLastStep);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/wizard-steps/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomWizardSteps","fixtureDefault","fixtureFirstStep","fixtureLastStep","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,eAAP,MAA4B,IAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AAEAN,IAAI,CAAC,sDAAD,EAAyDO,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,eAAe,CAACM,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGC,cAAjG,CAAJ;AACAJ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGE,gBAAnG,CAAJ;AACAL,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGG,eAAlG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomWizardSteps from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFirstStep from './fixtures/first-step';\nimport fixtureLastStep from './fixtures/last-step';\n\ntest('Atom › AtomWizardSteps > should have valid propTypes', t => {\n t.pass();\n forEach(AtomWizardSteps.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomWizardSteps.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomWizardSteps › Default › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureDefault);\ntest('Atom › AtomWizardSteps › FirstStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureFirstStep);\ntest('Atom › AtomWizardSteps › LastStep › should be rendered', renderComponentMacro, AtomWizardSteps, fixtureLastStep);\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 MoleculeBanner from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureErrorBanner from './fixtures/error-banner';
7
+ import fixtureErrorTemporaryBanner from './fixtures/error-temporary-banner';
8
+ import fixtureSuccessBanner from './fixtures/success-banner';
9
+ import fixtureSuccessTemporaryBanner from './fixtures/success-temporary-banner';
10
+ import fixtureWarningTemporaryBanner from './fixtures/warning-temporary-banner';
11
+ test('Molecule › MoleculeBanner > should have valid propTypes', t => {
12
+ t.pass();
13
+ forEach(MoleculeBanner.propTypes, (value, key) => {
14
+ t.not(value, undefined, `PropType for "Molecule.MoleculeBanner.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
15
+ });
16
+ });
17
+ test('Molecule › MoleculeBanner › Default › should be rendered', renderComponentMacro, MoleculeBanner, fixtureDefault);
18
+ test('Molecule › MoleculeBanner › ErrorBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureErrorBanner);
19
+ test('Molecule › MoleculeBanner › ErrorTemporaryBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureErrorTemporaryBanner);
20
+ test('Molecule › MoleculeBanner › SuccessBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureSuccessBanner);
21
+ test('Molecule › MoleculeBanner › SuccessTemporaryBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureSuccessTemporaryBanner);
22
+ test('Molecule › MoleculeBanner › WarningTemporaryBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureWarningTemporaryBanner);
23
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/banner/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBanner","fixtureDefault","fixtureErrorBanner","fixtureErrorTemporaryBanner","fixtureSuccessBanner","fixtureSuccessTemporaryBanner","fixtureWarningTemporaryBanner","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,cAAP,MAA2B,IAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,2BAAP,MAAwC,mCAAxC;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AAEAT,IAAI,CAAC,yDAAD,EAA4DU,CAAC,IAAI;AACnEA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,cAAc,CAACS,SAAhB,EAA2B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,mDAAkDF,GAAI,mEAA/E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,cAAnF,EAAmGC,cAAnG,CAAJ;AACAJ,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,cAAvF,EAAuGE,kBAAvG,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,cAAhG,EAAgHG,2BAAhH,CAAJ;AACAN,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,cAAzF,EAAyGI,oBAAzG,CAAJ;AACAP,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,cAAlG,EAAkHK,6BAAlH,CAAJ;AACAR,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,cAAlG,EAAkHM,6BAAlH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBanner from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureErrorBanner from './fixtures/error-banner';\nimport fixtureErrorTemporaryBanner from './fixtures/error-temporary-banner';\nimport fixtureSuccessBanner from './fixtures/success-banner';\nimport fixtureSuccessTemporaryBanner from './fixtures/success-temporary-banner';\nimport fixtureWarningTemporaryBanner from './fixtures/warning-temporary-banner';\n\ntest('Molecule › MoleculeBanner > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBanner.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBanner.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBanner › Default › should be rendered', renderComponentMacro, MoleculeBanner, fixtureDefault);\ntest('Molecule › MoleculeBanner › ErrorBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureErrorBanner);\ntest('Molecule › MoleculeBanner › ErrorTemporaryBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureErrorTemporaryBanner);\ntest('Molecule › MoleculeBanner › SuccessBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureSuccessBanner);\ntest('Molecule › MoleculeBanner › SuccessTemporaryBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureSuccessTemporaryBanner);\ntest('Molecule › MoleculeBanner › WarningTemporaryBanner › should be rendered', renderComponentMacro, MoleculeBanner, fixtureWarningTemporaryBanner);\n"],"file":"fixtures.js"}
@@ -72,7 +72,9 @@ const buildInput = field => {
72
72
  return /*#__PURE__*/React.createElement(InputCheckbox, field);
73
73
 
74
74
  case 'image':
75
- return /*#__PURE__*/React.createElement(ImageUpload, field);
75
+ return /*#__PURE__*/React.createElement("div", {
76
+ className: style.imageUploadContainer
77
+ }, /*#__PURE__*/React.createElement(ImageUpload, field));
76
78
 
77
79
  case 'slider':
78
80
  return /*#__PURE__*/React.createElement(SetupSlider, field);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/brand-form-group/index.js"],"names":["React","PropTypes","classNames","Autocomplete","Select","SelectMultiple","InputText","InputColor","InputCheckbox","InputReadonly","InputSwitch","BrandUploadBox","BrandDownloadBox","Button","InputTextarea","InputHTML","InputDoublestep","ImageUpload","SetupSlider","SetupSections","Title","Roles","style","inputContainerStyle","default","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","field","type","buildField","index","input","theme","size","styleInput","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","string","arrayOf","oneOfType","shape","oneOf"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAO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CAAhB;AAFR,KAzDkB,EA6DlBzD,SAAS,CAACwD,KAAV,uBACK9C,cAAc,CAAC0C,SADpB;AAEErB,IAAAA,IAAI,EAAE/B,SAAS,CAACyD,KAAV,CAAgB,CAAC,WAAD,CAAhB;AAFR,KA7DkB,EAiElBzD,SAAS,CAACwD,KAAV,uBACK5C,MAAM,CAACwC,SADZ;AAEErB,IAAAA,IAAI,EAAE/B,SAAS,CAACyD,KAAV,CAAgB,CAAC,QAAD,CAAhB;AAFR,KAjEkB,EAqElBzD,SAAS,CAACwD,KAAV,uBACKpD,cAAc,CAACgD,SADpB;AAEErB,IAAAA,IAAI,EAAE/B,SAAS,CAACyD,KAAV,CAAgB,CAAC,gBAAD,CAAhB;AAFR,KArEkB,EAyElBzD,SAAS,CAACwD,KAAV,uBACKpC,KAAK,CAACgC,SADX;AAEErB,IAAAA,IAAI,EAAE/B,SAAS,CAACyD,KAAV,CAAgB,CAAC,OAAD,CAAhB;AAFR,KAzEkB,EA6ElBzD,SAAS,CAACwD,KAAV,CAAgBnD,SAAS,CAAC+C,SAA1B,CA7EkB,CAApB,CADM;AALiB,CAA3B;AAuFA,eAAed,cAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys, map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport style from './style.css';\n\nconst inputContainerStyle = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return <ImageUpload {...field} />;\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'roles':\n return <Roles {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n const {theme, size = 'default'} = field;\n const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : style.field;\n\n return (\n <div className={styleInput} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {title, subtitle = '', fieldsLayout = '', groupLayout = '', fields = []} = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/brand-form-group/index.js"],"names":["React","PropTypes","classNames","Autocomplete","Select","SelectMultiple","InputText","InputColor","InputCheckbox","InputReadonly","InputSwitch","BrandUploadBox","BrandDownloadBox","Button","InputTextarea","InputHTML","InputDoublestep","ImageUpload","SetupSlider","SetupSections","Title","Roles","style","inputContainerStyle","default","defaultWidth","medium","mediumWidth","large","largeWidth","buildInput","field","type","imageUploadContainer","buildField","index","input","theme","size","styleInput","BrandFormGroup","props","title","subtitle","fieldsLayout","groupLayout","fields","fieldsList","convert","cap","wrapper","groupGrid","titleWrapper","grid","propTypes","string","arrayOf","oneOfType","shape","oneOf"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,YAAP,MAAyB,yBAAzB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,SAAP,MAAsB,uBAAtB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,SAAP,MAAsB,uBAAtB;AACA,OAAOC,eAAP,MAA4B,6BAA5B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,WAAP,MAAwB,iBAAxB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AAC,gBAAD,CAAhB;AAFR,KArEkB,EAyElB1D,SAAS,CAACyD,KAAV,uBACKrC,KAAK,CAACiC,SADX;AAEEtB,IAAAA,IAAI,EAAE/B,SAAS,CAAC0D,KAAV,CAAgB,CAAC,OAAD,CAAhB;AAFR,KAzEkB,EA6ElB1D,SAAS,CAACyD,KAAV,CAAgBpD,SAAS,CAACgD,SAA1B,CA7EkB,CAApB,CADM;AALiB,CAA3B;AAuFA,eAAed,cAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys, map, snakeCase} from 'lodash/fp';\nimport classNames from 'classnames';\nimport Autocomplete from '../../atom/autocomplete';\nimport Select from '../../atom/select';\nimport SelectMultiple from '../select-multiple';\nimport InputText from '../../atom/input-text';\nimport InputColor from '../../atom/input-color';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputSwitch from '../../atom/input-switch';\nimport BrandUploadBox from '../brand-upload-box';\nimport BrandDownloadBox from '../brand-download-box';\nimport Button from '../../atom/button';\nimport InputTextarea from '../../atom/input-textarea';\nimport InputHTML from '../../atom/input-html';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupSlider from '../setup-slider';\nimport SetupSections from '../setup-sections';\nimport Title from '../../atom/title';\nimport Roles from '../coorp-manager-roles';\nimport style from './style.css';\n\nconst inputContainerStyle = {\n default: style.defaultWidth,\n medium: style.mediumWidth,\n large: style.largeWidth\n};\n\nconst buildInput = field => {\n const {type} = field;\n\n switch (type) {\n case 'autoComplete':\n return <Autocomplete {...field} />;\n case 'color':\n return <InputColor {...field} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'switch':\n return <InputSwitch {...field} />;\n case 'textarea':\n return <InputTextarea {...field} />;\n case 'html':\n return <InputHTML {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'selectMultiple':\n return <SelectMultiple {...field} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return <div className={style.imageUploadContainer}>\n <ImageUpload {...field} />\n </div>\n case 'slider':\n return <SetupSlider {...field} />;\n case 'sections':\n return <SetupSections {...field} />;\n case 'text':\n return <InputText {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'uploadbox':\n return <BrandUploadBox {...field} />;\n case 'button':\n case 'link':\n return <Button {...field} />;\n case 'roles':\n return <Roles {...field} />;\n default:\n return <InputText {...field} />;\n }\n};\n\nconst buildField = (field, index) => {\n const input = buildInput(field);\n const {theme, size = 'default'} = field;\n const styleInput = theme === 'coorpmanager' ? inputContainerStyle[size] : style.field;\n\n return (\n <div className={styleInput} key={index}>\n {input}\n </div>\n );\n};\n\nconst BrandFormGroup = props => {\n const {title, subtitle = '', fieldsLayout = '', groupLayout = '', fields = []} = props;\n const fieldsList = map.convert({cap: false})(buildField, fields);\n\n return (\n <div\n data-name={`brand_form_group_${snakeCase(title)}`}\n className={classNames(style.wrapper, groupLayout === 'grid' && style.groupGrid)}\n >\n <div className={style.titleWrapper}>\n <Title title={title} subtitle={subtitle} type={'form-group'} />\n </div>\n <div className={fieldsLayout === 'grid' ? style.grid : null}>{fieldsList}</div>\n </div>\n );\n};\n\nBrandFormGroup.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n fieldsLayout: PropTypes.string,\n groupLayout: PropTypes.string,\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...Autocomplete.propTypes,\n type: PropTypes.oneOf(['autoComplete']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputColor.propTypes,\n type: PropTypes.oneOf(['color'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...InputTextarea.propTypes,\n type: PropTypes.oneOf(['textarea']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputHTML.propTypes,\n type: PropTypes.oneOf(['html'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...SetupSections.propTypes,\n type: PropTypes.oneOf(['sections'])\n }),\n PropTypes.shape({\n ...InputText.propTypes,\n type: PropTypes.oneOf(['text']),\n size: PropTypes.oneOf(keys(inputContainerStyle))\n }),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n }),\n PropTypes.shape({\n ...BrandUploadBox.propTypes,\n type: PropTypes.oneOf(['uploadbox'])\n }),\n PropTypes.shape({\n ...Button.propTypes,\n type: PropTypes.oneOf(['button'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n type: PropTypes.oneOf(['selectMultiple'])\n }),\n PropTypes.shape({\n ...Roles.propTypes,\n type: PropTypes.oneOf(['roles'])\n }),\n PropTypes.shape(InputText.propTypes)\n ])\n )\n};\nexport default BrandFormGroup;\n"],"file":"index.js"}
@@ -73,6 +73,11 @@
73
73
  width: 100%;
74
74
  }
75
75
 
76
+ .imageUploadContainer {
77
+ height: 320px;
78
+ width: 360px;
79
+ }
80
+
76
81
  @media desktop {
77
82
  .groupGrid {
78
83
  flex-direction: column;
@@ -11,9 +11,13 @@ export default {
11
11
  fields: [_extends(_extends({}, Desktop.props), {}, {
12
12
  type: 'image'
13
13
  }), _extends(_extends({}, Mobile.props), {}, {
14
- type: 'image'
14
+ type: 'image',
15
+ previewContent: {}
15
16
  }), _extends(_extends({}, Email.props), {}, {
16
- type: 'image'
17
+ type: 'image',
18
+ modified: false,
19
+ loading: true,
20
+ previewContent: {}
17
21
  })]
18
22
  }
19
23
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/images.js"],"names":["Desktop","Mobile","Email","props","title","subtitle","fieldsLayout","fields","type"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,qDAApB;AACA,OAAOC,MAAP,MAAmB,oDAAnB;AACA,OAAOC,KAAP,MAAkB,mDAAlB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,QAAQ,EACN,4GAHG;AAILC,IAAAA,YAAY,EAAE,MAJT;AAKLC,IAAAA,MAAM,EAAE,uBAEDP,OAAO,CAACG,KAFP;AAGJK,MAAAA,IAAI,EAAE;AAHF,8BAMDP,MAAM,CAACE,KANN;AAOJK,MAAAA,IAAI,EAAE;AAPF,8BAUDN,KAAK,CAACC,KAVL;AAWJK,MAAAA,IAAI,EAAE;AAXF;AALH;AADM,CAAf","sourcesContent":["import Desktop from '../../../../atom/image-upload/test/fixtures/desktop';\nimport Mobile from '../../../../atom/image-upload/test/fixtures/mobile';\nimport Email from '../../../../atom/image-upload/test/fixtures/email';\n\nexport default {\n props: {\n title: 'Platform logos',\n subtitle:\n '(SVG files are recommanded for retina display. For any other file types, max height recommanded is xxx px)',\n fieldsLayout: 'grid',\n fields: [\n {\n ...Desktop.props,\n type: 'image'\n },\n {\n ...Mobile.props,\n type: 'image'\n },\n {\n ...Email.props,\n type: 'image'\n }\n ]\n }\n};\n"],"file":"images.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/brand-form-group/test/fixtures/images.js"],"names":["Desktop","Mobile","Email","props","title","subtitle","fieldsLayout","fields","type","previewContent","modified","loading"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,qDAApB;AACA,OAAOC,MAAP,MAAmB,oDAAnB;AACA,OAAOC,KAAP,MAAkB,mDAAlB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,QAAQ,EACN,4GAHG;AAILC,IAAAA,YAAY,EAAE,MAJT;AAKLC,IAAAA,MAAM,EAAE,uBAEDP,OAAO,CAACG,KAFP;AAGJK,MAAAA,IAAI,EAAE;AAHF,8BAMDP,MAAM,CAACE,KANN;AAOJK,MAAAA,IAAI,EAAE,OAPF;AAQJC,MAAAA,cAAc,EAAE;AARZ,8BAWDP,KAAK,CAACC,KAXL;AAYJK,MAAAA,IAAI,EAAE,OAZF;AAaJE,MAAAA,QAAQ,EAAE,KAbN;AAcJC,MAAAA,OAAO,EAAE,IAdL;AAeJF,MAAAA,cAAc,EAAE;AAfZ;AALH;AADM,CAAf","sourcesContent":["import Desktop from '../../../../atom/image-upload/test/fixtures/desktop';\nimport Mobile from '../../../../atom/image-upload/test/fixtures/mobile';\nimport Email from '../../../../atom/image-upload/test/fixtures/email';\n\nexport default {\n props: {\n title: 'Platform logos',\n subtitle:\n '(SVG files are recommanded for retina display. For any other file types, max height recommanded is xxx px)',\n fieldsLayout: 'grid',\n fields: [\n {\n ...Desktop.props,\n type: 'image'\n },\n {\n ...Mobile.props,\n type: 'image',\n previewContent: {}\n },\n {\n ...Email.props,\n type: 'image',\n modified: false,\n loading: true,\n previewContent: {}\n }\n ]\n }\n};\n"],"file":"images.js"}
@@ -4,6 +4,7 @@ import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import MoleculeBrandFormGroup from '..';
5
5
  import fixtureAnalytics from './fixtures/analytics';
6
6
  import fixtureAnimations from './fixtures/animations';
7
+ import fixtureCmDefault from './fixtures/cm-default';
7
8
  import fixtureCohort from './fixtures/cohort';
8
9
  import fixtureDashboard from './fixtures/dashboard';
9
10
  import fixtureDefault from './fixtures/default';
@@ -21,6 +22,7 @@ test('Molecule › MoleculeBrandFormGroup > should have valid propTypes', t => {
21
22
  });
22
23
  test('Molecule › MoleculeBrandFormGroup › Analytics › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnalytics);
23
24
  test('Molecule › MoleculeBrandFormGroup › Animations › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnimations);
25
+ test('Molecule › MoleculeBrandFormGroup › CmDefault › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCmDefault);
24
26
  test('Molecule › MoleculeBrandFormGroup › Cohort › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCohort);
25
27
  test('Molecule › MoleculeBrandFormGroup › Dashboard › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDashboard);
26
28
  test('Molecule › MoleculeBrandFormGroup › Default › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDefault);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/brand-form-group/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandFormGroup","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureDoublefield","fixtureImages","fixtureLookandfeel","fixtureRoles","fixtureSlider","fixtureSso","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,wB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AI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,sBAAvF,EAA+GW,UAA/G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBrandFormGroup 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 fixtureDoublefield from './fixtures/doublefield';\nimport fixtureImages from './fixtures/images';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureRoles from './fixtures/roles';\nimport fixtureSlider from './fixtures/slider';\nimport fixtureSso from './fixtures/sso';\n\ntest('Molecule › MoleculeBrandFormGroup > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandFormGroup.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandFormGroup.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandFormGroup › Analytics › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnalytics);\ntest('Molecule › MoleculeBrandFormGroup › Animations › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnimations);\ntest('Molecule › MoleculeBrandFormGroup › Cohort › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCohort);\ntest('Molecule › MoleculeBrandFormGroup › Dashboard › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDashboard);\ntest('Molecule › MoleculeBrandFormGroup › Default › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDefault);\ntest('Molecule › MoleculeBrandFormGroup › Doublefield › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDoublefield);\ntest('Molecule › MoleculeBrandFormGroup › Images › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureImages);\ntest('Molecule › MoleculeBrandFormGroup › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureLookandfeel);\ntest('Molecule › MoleculeBrandFormGroup › Roles › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureRoles);\ntest('Molecule › MoleculeBrandFormGroup › Slider › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSlider);\ntest('Molecule › MoleculeBrandFormGroup › Sso › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSso);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/brand-form-group/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandFormGroup","fixtureAnalytics","fixtureAnimations","fixtureCmDefault","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureDoublefield","fixtureImages","fixtureLookandfeel","fixtureRoles","fixtureSlider","fixtureSso","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AAEAf,IAAI,CAAC,iEAAD,EAAoEgB,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAhB,EAAAA,OAAO,CAACE,sBAAs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pers/render-component';\nimport MoleculeBrandFormGroup from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDoublefield from './fixtures/doublefield';\nimport fixtureImages from './fixtures/images';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureRoles from './fixtures/roles';\nimport fixtureSlider from './fixtures/slider';\nimport fixtureSso from './fixtures/sso';\n\ntest('Molecule › MoleculeBrandFormGroup > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandFormGroup.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandFormGroup.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandFormGroup › Analytics › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnalytics);\ntest('Molecule › MoleculeBrandFormGroup › Animations › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnimations);\ntest('Molecule › MoleculeBrandFormGroup › CmDefault › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCmDefault);\ntest('Molecule › MoleculeBrandFormGroup › Cohort › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCohort);\ntest('Molecule › MoleculeBrandFormGroup › Dashboard › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDashboard);\ntest('Molecule › MoleculeBrandFormGroup › Default › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDefault);\ntest('Molecule › MoleculeBrandFormGroup › Doublefield › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDoublefield);\ntest('Molecule › MoleculeBrandFormGroup › Images › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureImages);\ntest('Molecule › MoleculeBrandFormGroup › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureLookandfeel);\ntest('Molecule › MoleculeBrandFormGroup › Roles › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureRoles);\ntest('Molecule › MoleculeBrandFormGroup › Slider › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSlider);\ntest('Molecule › MoleculeBrandFormGroup › Sso › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSso);\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 MoleculeBulletPointMenuButton from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureMultipleButtons from './fixtures/multiple-buttons';
7
+ test('Molecule › MoleculeBulletPointMenuButton > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(MoleculeBulletPointMenuButton.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Molecule.MoleculeBulletPointMenuButton.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Molecule › MoleculeBulletPointMenuButton › Default › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureDefault);
14
+ test('Molecule › MoleculeBulletPointMenuButton › MultipleButtons › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureMultipleButtons);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/bullet-point-menu-button/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBulletPointMenuButton","fixtureDefault","fixtureMultipleButtons","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,6BAAP,MAA0C,IAA1C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AAEAL,IAAI,CAAC,wEAAD,EAA2EM,CAAC,IAAI;AAClFA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,6BAA6B,CAACK,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kEAAiEF,GAAI,mEAA9F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIC,cAAjI,CAAJ;AACAJ,IAAI,CAAC,iFAAD,EAAoFE,oBAApF,EAA0GC,6BAA1G,EAAyIE,sBAAzI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBulletPointMenuButton from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureMultipleButtons from './fixtures/multiple-buttons';\n\ntest('Molecule › MoleculeBulletPointMenuButton > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBulletPointMenuButton.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBulletPointMenuButton.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBulletPointMenuButton › Default › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureDefault);\ntest('Molecule › MoleculeBulletPointMenuButton › MultipleButtons › should be rendered', renderComponentMacro, MoleculeBulletPointMenuButton, fixtureMultipleButtons);\n"],"file":"fixtures.js"}
@@ -6,6 +6,7 @@ import fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';
6
6
  import fixtureAdaptiv from './fixtures/adaptiv';
7
7
  import fixtureArabic from './fixtures/arabic';
8
8
  import fixtureArticle from './fixtures/article';
9
+ import fixtureCoorpmanager from './fixtures/coorpmanager';
9
10
  import fixtureDefault from './fixtures/default';
10
11
  import fixtureDisabled from './fixtures/disabled';
11
12
  import fixtureEmpty from './fixtures/empty';
@@ -15,6 +16,8 @@ import fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';
15
16
  import fixtureFreerun from './fixtures/freerun';
16
17
  import fixturePodcast from './fixtures/podcast';
17
18
  import fixtureScorm from './fixtures/scorm';
19
+ import fixtureSelectableFalse from './fixtures/selectable-false';
20
+ import fixtureSelectableTrue from './fixtures/selectable-true';
18
21
  import fixtureVideo from './fixtures/video';
19
22
  test('Molecule › MoleculeCard > should have valid propTypes', t => {
20
23
  t.pass();
@@ -26,6 +29,7 @@ test('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered',
26
29
  test('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);
27
30
  test('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);
28
31
  test('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);
32
+ test('Molecule › MoleculeCard › Coorpmanager › should be rendered', renderComponentMacro, MoleculeCard, fixtureCoorpmanager);
29
33
  test('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);
30
34
  test('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);
31
35
  test('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);
@@ -35,5 +39,7 @@ test('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered',
35
39
  test('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);
36
40
  test('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);
37
41
  test('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);
42
+ test('Molecule › MoleculeCard › SelectableFalse › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableFalse);
43
+ test('Molecule › MoleculeCard › SelectableTrue › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableTrue);
38
44
  test('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);
39
45
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCard","fixtureAdaptivAndDisabled","fixtureAdaptiv","fixtureArabic","fixtureArticle","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureExternalContent","fixtureFavorite","fixtureFreerunAndDisabled","fixtureFreerun","fixturePodcast","fixtureScorm","fixtureVideo","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,YAAP,MAAyB,IAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAjB,IAAI,CAAC,uDAAD,EAA0DkB,CAAC,IAAI;AACjEA,EAAAA,CAAC,CAACC,IAAF;AACAlB,EAAAA,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,EAA6Fa,YAA7F,CAAJ;AACAhB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fc,YAA7F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCard from '..';\nimport fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';\nimport fixtureAdaptiv from './fixtures/adaptiv';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureArticle from './fixtures/article';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalContent from './fixtures/external-content';\nimport fixtureFavorite from './fixtures/favorite';\nimport fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';\nimport fixtureFreerun from './fixtures/freerun';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureScorm from './fixtures/scorm';\nimport fixtureVideo from './fixtures/video';\n\ntest('Molecule › MoleculeCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptivAndDisabled);\ntest('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);\ntest('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);\ntest('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);\ntest('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);\ntest('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);\ntest('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);\ntest('Molecule › MoleculeCard › ExternalContent › should be rendered', renderComponentMacro, MoleculeCard, fixtureExternalContent);\ntest('Molecule › MoleculeCard › Favorite › should be rendered', renderComponentMacro, MoleculeCard, fixtureFavorite);\ntest('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerunAndDisabled);\ntest('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);\ntest('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);\ntest('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);\ntest('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCard","fixtureAdaptivAndDisabled","fixtureAdaptiv","fixtureArabic","fixtureArticle","fixtureCoorpmanager","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureExternalContent","fixtureFavorite","fixtureFreerunAndDisabled","fixtureFreerun","fixturePodcast","fixtureScorm","fixtureSelectableFalse","fixtureSelectableTrue","fixtureVideo","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,YAAP,MAAyB,IAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,yBAAhC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBA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EAA6FQ,YAA7F,CAAJ;AACAX,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,YAAzF,EAAuGS,sBAAvG,CAAJ;AACAZ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,YAAlF,EAAgGU,eAAhG,CAAJ;AACAb,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,YAA5F,EAA0GW,yBAA1G,CAAJ;AACAd,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+FY,cAA/F,CAAJ;AACAf,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,YAAjF,EAA+Fa,cAA/F,CAAJ;AACAhB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6Fc,YAA7F,CAAJ;AACAjB,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,YAAzF,EAAuGe,sBAAvG,CAAJ;AACAlB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,YAAxF,EAAsGgB,qBAAtG,CAAJ;AACAnB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,YAA/E,EAA6FiB,YAA7F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCard from '..';\nimport fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';\nimport fixtureAdaptiv from './fixtures/adaptiv';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureArticle from './fixtures/article';\nimport fixtureCoorpmanager from './fixtures/coorpmanager';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalContent from './fixtures/external-content';\nimport fixtureFavorite from './fixtures/favorite';\nimport fixtureFreerunAndDisabled from './fixtures/freerun-and-disabled';\nimport fixtureFreerun from './fixtures/freerun';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureScorm from './fixtures/scorm';\nimport fixtureSelectableFalse from './fixtures/selectable-false';\nimport fixtureSelectableTrue from './fixtures/selectable-true';\nimport fixtureVideo from './fixtures/video';\n\ntest('Molecule › MoleculeCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCard › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptivAndDisabled);\ntest('Molecule › MoleculeCard › Adaptiv › should be rendered', renderComponentMacro, MoleculeCard, fixtureAdaptiv);\ntest('Molecule › MoleculeCard › Arabic › should be rendered', renderComponentMacro, MoleculeCard, fixtureArabic);\ntest('Molecule › MoleculeCard › Article › should be rendered', renderComponentMacro, MoleculeCard, fixtureArticle);\ntest('Molecule › MoleculeCard › Coorpmanager › should be rendered', renderComponentMacro, MoleculeCard, fixtureCoorpmanager);\ntest('Molecule › MoleculeCard › Default › should be rendered', renderComponentMacro, MoleculeCard, fixtureDefault);\ntest('Molecule › MoleculeCard › Disabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureDisabled);\ntest('Molecule › MoleculeCard › Empty › should be rendered', renderComponentMacro, MoleculeCard, fixtureEmpty);\ntest('Molecule › MoleculeCard › ExternalContent › should be rendered', renderComponentMacro, MoleculeCard, fixtureExternalContent);\ntest('Molecule › MoleculeCard › Favorite › should be rendered', renderComponentMacro, MoleculeCard, fixtureFavorite);\ntest('Molecule › MoleculeCard › FreerunAndDisabled › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerunAndDisabled);\ntest('Molecule › MoleculeCard › Freerun › should be rendered', renderComponentMacro, MoleculeCard, fixtureFreerun);\ntest('Molecule › MoleculeCard › Podcast › should be rendered', renderComponentMacro, MoleculeCard, fixturePodcast);\ntest('Molecule › MoleculeCard › Scorm › should be rendered', renderComponentMacro, MoleculeCard, fixtureScorm);\ntest('Molecule › MoleculeCard › SelectableFalse › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableFalse);\ntest('Molecule › MoleculeCard › SelectableTrue › should be rendered', renderComponentMacro, MoleculeCard, fixtureSelectableTrue);\ntest('Molecule › MoleculeCard › Video › should be rendered', renderComponentMacro, MoleculeCard, fixtureVideo);\n"],"file":"fixtures.js"}
@@ -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 MoleculeCmPopin from '..';
5
+ import fixtureDangerous from './fixtures/dangerous';
6
+ import fixtureDefault from './fixtures/default';
7
+ import fixtureWarningWithClose from './fixtures/warning-with-close';
8
+ test('Molecule › MoleculeCmPopin > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(MoleculeCmPopin.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCmPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Molecule › MoleculeCmPopin › Dangerous › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDangerous);
15
+ test('Molecule › MoleculeCmPopin › Default › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDefault);
16
+ test('Molecule › MoleculeCmPopin › WarningWithClose › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureWarningWithClose);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/cm-popin/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCmPopin","fixtureDangerous","fixtureDefault","fixtureWarningWithClose","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,eAAP,MAA4B,IAA5B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AAEAN,IAAI,CAAC,0DAAD,EAA6DO,CAAC,IAAI;AACpEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,eAAe,CAACM,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,oDAAmDF,GAAI,mEAAhF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,eAAtF,EAAuGC,gBAAvG,CAAJ;AACAJ,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,eAApF,EAAqGE,cAArG,CAAJ;AACAL,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,eAA7F,EAA8GG,uBAA9G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCmPopin from '..';\nimport fixtureDangerous from './fixtures/dangerous';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWarningWithClose from './fixtures/warning-with-close';\n\ntest('Molecule › MoleculeCmPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCmPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCmPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCmPopin › Dangerous › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDangerous);\ntest('Molecule › MoleculeCmPopin › Default › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureDefault);\ntest('Molecule › MoleculeCmPopin › WarningWithClose › should be rendered', renderComponentMacro, MoleculeCmPopin, fixtureWarningWithClose);\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 MoleculeCoorpManagerRoles from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('Molecule › MoleculeCoorpManagerRoles > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(MoleculeCoorpManagerRoles.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCoorpManagerRoles.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('Molecule › MoleculeCoorpManagerRoles › Default › should be rendered', renderComponentMacro, MoleculeCoorpManagerRoles, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/coorp-manager-roles/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCoorpManagerRoles","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,yBAAP,MAAsC,IAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,oEAAD,EAAuEK,CAAC,IAAI;AAC9EA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,yBAAyB,CAACI,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8DAA6DF,GAAI,mEAA1F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,yBAA9F,EAAyHC,cAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCoorpManagerRoles from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Molecule › MoleculeCoorpManagerRoles > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCoorpManagerRoles.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCoorpManagerRoles.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCoorpManagerRoles › Default › should be rendered', renderComponentMacro, MoleculeCoorpManagerRoles, 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 MoleculeCourseSection from '..';
5
+ import fixtureChapter from './fixtures/chapter';
6
+ import fixtureCourse from './fixtures/course';
7
+ test('Molecule › MoleculeCourseSection > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(MoleculeCourseSection.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCourseSection.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Molecule › MoleculeCourseSection › Chapter › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureChapter);
14
+ test('Molecule › MoleculeCourseSection › Course › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCourse);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/course-section/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSection","fixtureChapter","fixtureCourse","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,aAAP,MAA0B,mBAA1B;AAEAL,IAAI,CAAC,gEAAD,EAAmEM,CAAC,IAAI;AAC1EA,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,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,qBAA1F,EAAiHC,cAAjH,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,qBAAzF,EAAgHE,aAAhH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSection from '..';\nimport fixtureChapter from './fixtures/chapter';\nimport fixtureCourse from './fixtures/course';\n\ntest('Molecule › MoleculeCourseSection > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSection.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSection.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSection › Chapter › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureChapter);\ntest('Molecule › MoleculeCourseSection › Course › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCourse);\n"],"file":"fixtures.js"}
@@ -1,12 +1,16 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import InputTextWithTitle from '../../atom/input-text-with-title';
3
4
  import CourseSection from '../course-section';
4
5
  import DraggableList from '../draggable-list';
5
6
  import Loader from '../../atom/loader';
6
7
  import Title from '../../atom/title';
7
8
  import style from './style.css';
8
9
 
9
- const Loading = () => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Loader, {
10
+ const Loading = () => /*#__PURE__*/React.createElement("div", {
11
+ className: style.loaderContainer
12
+ }, /*#__PURE__*/React.createElement(Loader, {
13
+ className: style.loader,
10
14
  theme: "coorpmanager"
11
15
  }));
12
16
 
@@ -14,10 +18,20 @@ const CourseSections = ({
14
18
  sections,
15
19
  onDrop,
16
20
  isLoading,
17
- title
21
+ title,
22
+ mandatoryCoursesInput,
23
+ inputTitle
18
24
  }) => {
19
25
  if (isLoading) return /*#__PURE__*/React.createElement(Loading, null);
20
- return /*#__PURE__*/React.createElement("div", null, title ? /*#__PURE__*/React.createElement("div", {
26
+ return /*#__PURE__*/React.createElement("div", null, inputTitle ? /*#__PURE__*/React.createElement("div", {
27
+ className: style.title
28
+ }, /*#__PURE__*/React.createElement(Title, {
29
+ title: inputTitle,
30
+ type: 'form-group',
31
+ "data-name": 'mandatory-courses-input-title'
32
+ })) : null, mandatoryCoursesInput ? /*#__PURE__*/React.createElement("div", {
33
+ className: style.mandatoryCoursesInput
34
+ }, /*#__PURE__*/React.createElement(InputTextWithTitle, mandatoryCoursesInput)) : null, title ? /*#__PURE__*/React.createElement("div", {
21
35
  className: style.title
22
36
  }, /*#__PURE__*/React.createElement(Title, {
23
37
  title: title,
@@ -31,10 +45,12 @@ const CourseSections = ({
31
45
  };
32
46
 
33
47
  CourseSections.propTypes = process.env.NODE_ENV !== "production" ? {
48
+ inputTitle: PropTypes.string,
34
49
  title: PropTypes.string,
35
50
  sections: PropTypes.arrayOf(PropTypes.shape(CourseSection.propTypes)),
36
51
  onDrop: PropTypes.func,
37
- isLoading: PropTypes.bool
52
+ isLoading: PropTypes.bool,
53
+ mandatoryCoursesInput: PropTypes.shape(InputTextWithTitle.propTypes)
38
54
  } : {};
39
55
  export default CourseSections;
40
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/course-sections/index.js"],"names":["React","PropTypes","CourseSection","DraggableList","Loader","Title","style","Loading","CourseSections","sections","onDrop","isLoading","title","propTypes","string","arrayOf","shape","func","bool"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,OAAO,GAAG,mBACd,8CACE,oBAAC,MAAD;AAAQ,EAAA,KAAK,EAAC;AAAd,EADF,CADF;;AAMA,MAAMC,cAAc,GAAG,CAAC;AAACC,EAAAA,QAAD;AAAWC,EAAAA,MAAX;AAAmBC,EAAAA,SAAnB;AAA8BC,EAAAA;AAA9B,CAAD,KAA0C;AAC/D,MAAID,SAAJ,EAAe,oBAAO,oBAAC,OAAD,OAAP;AAEf,sBACE,iCACGC,KAAK,gBACJ;AAAK,IAAA,SAAS,EAAEN,KAAK,CAACM;AAAtB,kBACE,oBAAC,KAAD;AAAO,IAAA,KAAK,EAAEA,KAAd;AAAqB,IAAA,IAAI,EAAE,YAA3B;AAAyC,iBAAW;AAApD,IADF,CADI,GAIF,IALN,eAME,oBAAC,aAAD;AAAe,IAAA,QAAQ,EAAC,gBAAxB;AAAyC,IAAA,KAAK,EAAEH,QAAhD;AAA0D,IAAA,MAAM,EAAEC;AAAlE,IANF,CADF;AAUD,CAbD;;AAeAF,cAAc,CAACK,SAAf,2CAA2B;AACzBD,EAAAA,KAAK,EAAEX,SAAS,CAACa,MADQ;AAEzBL,EAAAA,QAAQ,EAAER,SAAS,CAACc,OAAV,CAAkBd,SAAS,CAACe,KAAV,CAAgBd,aAAa,CAACW,SAA9B,CAAlB,CAFe;AAGzBH,EAAAA,MAAM,EAAET,SAAS,CAACgB,IAHO;AAIzBN,EAAAA,SAAS,EAAEV,SAAS,CAACiB;AAJI,CAA3B;AAOA,eAAeV,cAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport CourseSection from '../course-section';\nimport DraggableList from '../draggable-list';\nimport Loader from '../../atom/loader';\nimport Title from '../../atom/title';\nimport style from './style.css';\n\nconst Loading = () => (\n <div>\n <Loader theme=\"coorpmanager\" />\n </div>\n);\n\nconst CourseSections = ({sections, onDrop, isLoading, title}) => {\n if (isLoading) return <Loading />;\n\n return (\n <div>\n {title ? (\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'course-sections-title'} />\n </div>\n ) : null}\n <DraggableList itemType=\"course-section\" items={sections} onDrop={onDrop} />\n </div>\n );\n};\n\nCourseSections.propTypes = {\n title: PropTypes.string,\n sections: PropTypes.arrayOf(PropTypes.shape(CourseSection.propTypes)),\n onDrop: PropTypes.func,\n isLoading: PropTypes.bool\n};\n\nexport default CourseSections;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/course-sections/index.js"],"names":["React","PropTypes","InputTextWithTitle","CourseSection","DraggableList","Loader","Title","style","Loading","loaderContainer","loader","CourseSections","sections","onDrop","isLoading","title","mandatoryCoursesInput","inputTitle","propTypes","string","arrayOf","shape","func","bool"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,OAAO,GAAG,mBACd;AAAK,EAAA,SAAS,EAAED,KAAK,CAACE;AAAtB,gBACE,oBAAC,MAAD;AAAQ,EAAA,SAAS,EAAEF,KAAK,CAACG,MAAzB;AAAiC,EAAA,KAAK,EAAC;AAAvC,EADF,CADF;;AAMA,MAAMC,cAAc,GAAG,CAAC;AACtBC,EAAAA,QADsB;AAEtBC,EA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gBnB,kBAAkB,CAACgB,SAAnC;AANE,CAA3B;AASA,eAAeP,cAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport InputTextWithTitle from '../../atom/input-text-with-title';\nimport CourseSection from '../course-section';\nimport DraggableList from '../draggable-list';\nimport Loader from '../../atom/loader';\nimport Title from '../../atom/title';\nimport style from './style.css';\n\nconst Loading = () => (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n);\n\nconst CourseSections = ({\n sections,\n onDrop,\n isLoading,\n title,\n mandatoryCoursesInput,\n inputTitle\n}) => {\n if (isLoading) return <Loading />;\n\n return (\n <div>\n {inputTitle ? (\n <div className={style.title}>\n <Title\n title={inputTitle}\n type={'form-group'}\n data-name={'mandatory-courses-input-title'}\n />\n </div>\n ) : null}\n {mandatoryCoursesInput ? (\n <div className={style.mandatoryCoursesInput}>\n <InputTextWithTitle {...mandatoryCoursesInput} />\n </div>\n ) : null}\n {title ? (\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'course-sections-title'} />\n </div>\n ) : null}\n <DraggableList itemType=\"course-section\" items={sections} onDrop={onDrop} />\n </div>\n );\n};\n\nCourseSections.propTypes = {\n inputTitle: PropTypes.string,\n title: PropTypes.string,\n sections: PropTypes.arrayOf(PropTypes.shape(CourseSection.propTypes)),\n onDrop: PropTypes.func,\n isLoading: PropTypes.bool,\n mandatoryCoursesInput: PropTypes.shape(InputTextWithTitle.propTypes)\n};\n\nexport default CourseSections;\n"],"file":"index.js"}
@@ -1,3 +1,20 @@
1
1
  .title {
2
2
  margin-bottom: 16px;
3
3
  }
4
+
5
+ .mandatoryCoursesInput {
6
+ margin: 0 0 16px 16px;
7
+ }
8
+
9
+ .loader {
10
+ width: 60px;
11
+ height: 60px;
12
+ }
13
+
14
+ .loaderContainer {
15
+ display: flex;
16
+ justify-content: center;
17
+ align-items: center;
18
+ height: 50vh;
19
+ width: 100%;
20
+ }
@@ -0,0 +1,11 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import mandatoryCoursesInput from '../../../../atom/input-text-with-title/test/fixtures/error';
4
+ import props from './default';
5
+ export default {
6
+ props: _extends(_extends({}, props.props), {}, {
7
+ mandatoryCoursesInput: mandatoryCoursesInput.props,
8
+ inputTitle: 'Minimun courses completion'
9
+ })
10
+ };
11
+ //# sourceMappingURL=with-mandatory-courses-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js"],"names":["mandatoryCoursesInput","props","inputTitle"],"mappings":";;AAAA,OAAOA,qBAAP,MAAkC,4DAAlC;AACA,OAAOC,KAAP,MAAkB,WAAlB;AAEA,eAAe;AACbA,EAAAA,KAAK,wBACAA,KAAK,CAACA,KADN;AAEHD,IAAAA,qBAAqB,EAAEA,qBAAqB,CAACC,KAF1C;AAGHC,IAAAA,UAAU,EAAE;AAHT;AADQ,CAAf","sourcesContent":["import mandatoryCoursesInput from '../../../../atom/input-text-with-title/test/fixtures/error';\nimport props from './default';\n\nexport default {\n props: {\n ...props.props,\n mandatoryCoursesInput: mandatoryCoursesInput.props,\n inputTitle: 'Minimun courses completion'\n }\n};\n"],"file":"with-mandatory-courses-input.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 MoleculeCourseSections from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureLoading from './fixtures/loading';
7
+ import fixtureWithMandatoryCoursesInput from './fixtures/with-mandatory-courses-input';
8
+ test('Molecule › MoleculeCourseSections > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(MoleculeCourseSections.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCourseSections.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Molecule › MoleculeCourseSections › Default › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureDefault);
15
+ test('Molecule › MoleculeCourseSections › Loading › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureLoading);
16
+ test('Molecule › MoleculeCourseSections › WithMandatoryCoursesInput › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureWithMandatoryCoursesInput);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/course-sections/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSections","fixtureDefault","fixtureLoading","fixtureWithMandatoryCoursesInput","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gCAAP,MAA6C,yCAA7C;AAEAN,IAAI,CAAC,iEAAD,EAAoEO,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,sBAAsB,CAACM,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHE,cAAnH,CAAJ;AACAL,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,sBAA7G,EAAqIG,gCAArI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSections from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureWithMandatoryCoursesInput from './fixtures/with-mandatory-courses-input';\n\ntest('Molecule › MoleculeCourseSections > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSections.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSections.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSections › Default › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureDefault);\ntest('Molecule › MoleculeCourseSections › Loading › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureLoading);\ntest('Molecule › MoleculeCourseSections › WithMandatoryCoursesInput › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureWithMandatoryCoursesInput);\n"],"file":"fixtures.js"}