@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
@@ -6,145 +6,248 @@
6
6
  @value battle from colors;
7
7
  @value light from colors;
8
8
  @value xtraLightGrey from colors;
9
+ @value cm_grey_300 from colors;
10
+ @value cm_grey_700 from colors;
11
+ @value cm_grey_50 from colors;
12
+ @value cm_grey_200 from colors;
13
+ @value cm_grey_100 from colors;
14
+ @value cm_grey_400 from colors;
15
+ @value white from colors;
16
+ @value cm_negative_100 from colors;
17
+ @value cm_yellow_100 from colors;
9
18
 
10
19
  .wrapper {
11
- width: 360px;
20
+ font-family: "Gilroy";
21
+ max-height: 320px;
22
+ max-width: 360px;
23
+ height: 100%;
24
+ width: 100%;
12
25
  }
13
26
 
14
27
  .title {
15
- font-family: "Gilroy";
16
- font-size: 15px;
17
- text-transform: none;
18
- color: dark;
19
- margin-bottom: 20px;
28
+ font-size: 14px;
29
+ font-weight: 700;
30
+ color: cm_grey_700;
31
+ margin-bottom: 14px;
20
32
  }
21
33
 
22
34
  .description {
23
- font-family: 'Gilroy';
24
- font-size: 13px;
35
+ max-height: 85px;
36
+ font-size: 10px;
25
37
  font-weight: 400;
26
- font-style: italic;
27
- color: dark;
28
- margin: 10px 0;
29
- text-align: justify;
38
+ color: cm_grey_300;
39
+ margin-bottom: 8px;
40
+ text-align: center;
41
+ padding: 8px;
30
42
  }
31
43
 
32
- .previewWrapper {
44
+ .previewContainer {
33
45
  width: 100%;
34
- box-sizing: border-box;
35
- border: 1px dashed medium;
36
- margin-bottom: 10px;
37
- display: flex;
38
- align-items: center;
39
- justify-content: center;
40
- }
41
-
42
- .modified {
43
- composes: previewWrapper;
44
- border: 2px solid battle;
46
+ height: 80%;
47
+ border: none;
48
+ border-radius: 7px;
49
+ background: cm_grey_50;
45
50
  }
46
51
 
47
- .previewWrapper span {
48
- font-family: 'Gilroy';
49
- color: dark;
50
- font-size: 15px;
51
- font-weight: 700;
52
- line-height: 100px;
52
+ .modifiedPreviewContainer {
53
+ composes: previewContainer;
54
+ border: 3px solid cm_yellow_100;
53
55
  }
54
56
 
55
- .previewView {
56
- padding: 10px;
57
+ .preview {
58
+ padding: 16px;
57
59
  width: 100%;
58
- height: 100px;
60
+ height: 100%;
59
61
  box-sizing: border-box;
60
62
  display: flex;
63
+ justify-content: center;
64
+ align-items: center;
65
+ background-clip: content-box;
66
+ border-radius: 19px;
67
+ background-color: white;
61
68
  }
62
69
 
63
- .previewView img {
70
+ .preview img, video {
64
71
  max-width: 100%;
65
72
  max-height: 100%;
66
73
  margin: auto;
67
74
  }
68
75
 
76
+ .infosContainer {
77
+ width: 100%;
78
+ height: 100%;
79
+ display: flex;
80
+ flex-direction: column;
81
+ align-items: center;
82
+ justify-content: space-evenly;
83
+ overflow: hidden;
84
+ }
85
+
69
86
  .inputWrapper {
87
+ background: cm_grey_50;
70
88
  width: 100%;
71
- height: 70px;
89
+ height: 80%;
72
90
  box-sizing: border-box;
73
- border: 1px dashed medium;
74
- border-radius: 3px;
91
+ border-radius: 7px;
75
92
  position: relative;
76
93
  display: flex;
94
+ flex-direction: column;
77
95
  align-items: center;
78
- justify-content: center;
96
+ justify-content: space-between;
97
+ padding: 14px 8px 8px 8px;
98
+ overflow: hidden;
99
+ }
100
+
101
+ .inputWrapper:before {
102
+ content: "";
103
+ position: absolute;
104
+ border: 10px dashed cm_grey_200;
105
+ top: -8px;
106
+ bottom: -8px;
107
+ left: -8px;
108
+ right: -8px;
109
+ }
110
+
111
+ .modifiedInputWrapper {
112
+ composes: inputWrapper;
113
+ }
114
+
115
+ .modifiedInputWrapper::before {
116
+ content: "";
117
+ position: absolute;
118
+ border: 10px dashed cm_yellow_100;
119
+ top: -8px;
120
+ bottom: -8px;
121
+ left: -8px;
122
+ right: -8px;
123
+ }
124
+
125
+ .errorInputWrapper {
126
+ composes: inputWrapper;
127
+ }
128
+
129
+ .errorInputWrapper .icon {
130
+ color: cm_negative_100;
79
131
  }
80
132
 
81
133
  .resetUploadWrapper {
82
134
  width: 100%;
83
- height: 30px;
135
+ height: 24px;
84
136
  box-sizing: border-box;
85
- background-color: xtraLightGrey;
86
- border: solid 1px light;
137
+ background-color: cm_grey_50;
87
138
  border-radius: 3px;
88
- position: relative;
89
139
  display: flex;
90
140
  align-items: center;
91
141
  justify-content: space-between;
92
- /* fonts */
93
- font-family: Gilroy;
94
- font-size: 13px;
142
+ margin-top: 16px;
143
+ padding: 4px 8px;
144
+ font-size: 10px;
95
145
  font-weight: 400;
96
- margin-top: 15px;
97
146
  }
98
147
 
99
148
  .resetSrcLabel {
100
- font-family: Gilroy;
101
- color: dark;
102
- max-width: 220px;
149
+ color: cm_grey_700;
103
150
  display: inline-block;
104
151
  white-space: nowrap;
105
152
  overflow: hidden;
106
153
  text-overflow: ellipsis;
107
154
  direction: rtl;
108
155
  text-align: left;
109
- margin-left: 9px;
110
156
  }
111
157
 
112
158
  .closeIcon {
113
- margin-right: 9px;
114
159
  cursor: pointer;
115
- color: dark;
116
- }
117
-
118
- .closeIcon:hover {
119
- color: black;
160
+ color: cm_grey_400;
161
+ padding: 6px;
120
162
  }
121
163
 
122
164
  .dragging {
123
165
  composes: inputWrapper;
124
- border: 3px dashed brand;
166
+ border: 1px solid cm_grey_200;
167
+ background: cm_grey_100;
168
+ }
169
+
170
+ .dragging .description .icon .title {
171
+ font-size: 8px;
172
+ }
173
+
174
+ .dragging .title {
175
+ font-size: 10px;
176
+ }
177
+
178
+ .dragging .icon {
179
+ transform: scale(0.85);
125
180
  }
126
181
 
127
- .arrow {
128
- width: 34px;
129
- height: 34px;
130
- margin-right: 10px;
182
+ .icon {
183
+ min-width: 14px;
184
+ min-height: 14px;
185
+ height: 20%;
186
+ width: 20%;;
131
187
  transition: all 0.2s cubic-bezier(0.47, 1.04, 0.46, 2.16);
188
+ margin-bottom: 4px;
132
189
  }
133
190
 
134
- .dragging .arrow {
135
- transform: scale(1.2);
191
+ .iconError {
192
+ composes: icon;
193
+ color: cm_negative_100;
136
194
  }
137
195
 
138
196
  .uploadLabel {
139
- font-family: 'Gilroy';
140
- font-size: 18px;
141
- text-transform: uppercase;
197
+ font-size: 14px;
142
198
  font-weight: 700;
143
- color: dark;
199
+ color: cm_grey_700;
144
200
  }
145
201
 
146
- .loading {
147
- min-height: 100px;
148
- border: none;
202
+ .loaderWrapper {
149
203
  position: relative;
204
+ height: 100%;
205
+ width: 100%;
206
+ display: flex;
207
+ flex-direction: column;
208
+ justify-content: center;
209
+ align-items: center;
210
+ border-radius: 7px;
211
+ }
212
+
213
+ .loader {
214
+ margin-bottom: 8px;
215
+ height: 14px;
216
+ width: 14px;
217
+ }
218
+
219
+ .loaderText {
220
+ font-size: 10px;
221
+ font-weight: 400;
222
+ }
223
+
224
+ .loadingCancel {
225
+ display: none;
226
+ position: absolute;
227
+ top: 0;
228
+ right: 0;
229
+ }
230
+
231
+ .button {
232
+ display: flex;
233
+ justify-content: center;
234
+ align-items: center;
235
+ }
236
+
237
+ .folderIcon {
238
+ margin-right: 8px;
239
+ }
240
+
241
+ .loaderWrapper:hover .loadingCancel {
242
+ display: block;
243
+ }
244
+
245
+ .loaderWrapper:hover {
246
+ background-color: #EAEAEB;
247
+ }
248
+
249
+ .errorMessage {
250
+ color: cm_negative_100;
251
+ font-size: 12px;
252
+ margin-top: 8px;
150
253
  }
@@ -1,8 +1,9 @@
1
1
  export default {
2
2
  props: {
3
- title: 'Drag & Drop',
4
- description: 'Drag and drop component',
5
- uploadLabel: 'Upload',
3
+ modified: false,
4
+ title: 'Drag & drop here',
5
+ description: 'JPG or PNG, smaller than 5mb',
6
+ uploadLabel: 'Browse',
6
7
  previewLabel: 'File Preview'
7
8
  }
8
9
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/default.js"],"names":["props","title","description","uploadLabel","previewLabel"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,aADF;AAELC,IAAAA,WAAW,EAAE,yBAFR;AAGLC,IAAAA,WAAW,EAAE,QAHR;AAILC,IAAAA,YAAY,EAAE;AAJT;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Drag & Drop',\n description: 'Drag and drop component',\n uploadLabel: 'Upload',\n previewLabel: 'File Preview'\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/default.js"],"names":["props","modified","title","description","uploadLabel","previewLabel"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE,KADL;AAELC,IAAAA,KAAK,EAAE,kBAFF;AAGLC,IAAAA,WAAW,EAAE,8BAHR;AAILC,IAAAA,WAAW,EAAE,QAJR;AAKLC,IAAAA,YAAY,EAAE;AALT;AADM,CAAf","sourcesContent":["export default {\n props: {\n modified: false,\n title: 'Drag & drop here',\n description: 'JPG or PNG, smaller than 5mb',\n uploadLabel: 'Browse',\n previewLabel: 'File Preview'\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,12 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import defaultProps from './default';
4
+ const {
5
+ props
6
+ } = defaultProps;
7
+ export default {
8
+ props: _extends(_extends({}, props), {}, {
9
+ error: 'The file is invalid'
10
+ })
11
+ };
12
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/error.js"],"names":["defaultProps","props","error"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,WAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AAEA,eAAe;AACXC,EAAAA,KAAK,wBACEA,KADF;AAEDC,IAAAA,KAAK,EAAE;AAFN;AADM,CAAf","sourcesContent":["import defaultProps from './default';\n\nconst {props} = defaultProps;\n\nexport default {\n props: {\n ...props,\n error: 'The file is invalid'\n }\n}\n"],"file":"error.js"}
@@ -3,7 +3,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import Default from './default';
4
4
  export default {
5
5
  props: _extends(_extends({}, Default.props), {}, {
6
- loading: true
6
+ loading: true,
7
+ modified: false
7
8
  })
8
9
  };
9
10
  //# sourceMappingURL=loading.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/loading.js"],"names":["Default","props","loading"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,OAAO,EAAE;AAFN;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n loading: true\n }\n};\n"],"file":"loading.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/loading.js"],"names":["Default","props","loading","modified"],"mappings":";;AAAA,OAAOA,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,OAAO,CAACC,KADR;AAEHC,IAAAA,OAAO,EAAE,IAFN;AAGHC,IAAAA,QAAQ,EAAE;AAHP;AADQ,CAAf","sourcesContent":["import Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n loading: true,\n modified: false\n }\n};\n"],"file":"loading.js"}
@@ -0,0 +1,12 @@
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 withImageReset from './with-image-reset';
4
+ const {
5
+ props
6
+ } = withImageReset;
7
+ export default {
8
+ props: _extends(_extends({}, props), {}, {
9
+ modified: true
10
+ })
11
+ };
12
+ //# sourceMappingURL=modified.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/modified.js"],"names":["withImageReset","props","modified"],"mappings":";;AAAA,OAAOA,cAAP,MAA2B,oBAA3B;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,cAAhB;AAEA,eAAe;AACXC,EAAAA,KAAK,wBACEA,KADF;AAEDC,IAAAA,QAAQ,EAAE;AAFT;AADM,CAAf","sourcesContent":["import withImageReset from './with-image-reset';\n\nconst {props} = withImageReset;\n\nexport default {\n props: {\n ...props,\n modified: true\n }\n}\n"],"file":"modified.js"}
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import style from '../../../image-upload/style.css';
3
3
  export default {
4
4
  props: {
5
+ modified: false,
5
6
  previewContent: {
6
7
  type: 'image',
7
8
  src: 'https://static.coorpacademy.com/content/up/raw/logo_coorp-1491560495763.svg'
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-children.js"],"names":["React","style","props","previewContent","type","src","title","displayName","uploadLabel","children","onDragStart","onDragStop","input"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iCAAlB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS,KADX;AAKLC,IAAAA,KAAK,EAAE,aALF;AAMLC,IAAAA,WAAW,EAAE,cANR;AAOLC,IAAAA,WAAW,EAAE;AAPR,GADM;AAUb;AACAC,EAAAA,QAAQ,EAAE,CAACC,WAAD,EAAcC,UAAd,kBACR;AACE,IAAA,SAAS,EAAEV,KAAK,CAACW,KADnB;AAEE,IAAA,GAAG,EAAC,GAFN;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,MAAM,EAAC,SAJT;AAKE,IAAA,QAAQ,EAAE,MAAM,IALlB;AAME,IAAA,WAAW,EAAEF,WANf;AAOE,IAAA,MAAM,EAAEC,UAPV;AAQE,IAAA,WAAW,EAAEA;AARf;AAZW,CAAf","sourcesContent":["import React from 'react';\nimport style from '../../../image-upload/style.css';\n\nexport default {\n props: {\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_coorp-1491560495763.svg'\n },\n title: 'Desktop (*)',\n displayName: 'Upload image',\n uploadLabel: 'Upload'\n },\n // eslint-disable-next-line react/display-name\n children: (onDragStart, onDragStop) => (\n <input\n className={style.input}\n key=\"1\"\n type=\"file\"\n accept=\"image*/\"\n onChange={() => true}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )\n};\n"],"file":"with-children.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-children.js"],"names":["React","style","props","modified","previewContent","type","src","title","displayName","uploadLabel","children","onDragStart","onDragStop","input"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iCAAlB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE,KADL;AAELC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS,KAFX;AAMLC,IAAAA,KAAK,EAAE,aANF;AAOLC,IAAAA,WAAW,EAAE,cAPR;AAQLC,IAAAA,WAAW,EAAE;AARR,GADM;AAWb;AACAC,EAAAA,QAAQ,EAAE,CAACC,WAAD,EAAcC,UAAd,kBACR;AACE,IAAA,SAAS,EAAEX,KAAK,CAACY,KADnB;AAEE,IAAA,GAAG,EAAC,GAFN;AAGE,IAAA,IAAI,EAAC,MAHP;AAIE,IAAA,MAAM,EAAC,SAJT;AAKE,IAAA,QAAQ,EAAE,MAAM,IALlB;AAME,IAAA,WAAW,EAAEF,WANf;AAOE,IAAA,MAAM,EAAEC,UAPV;AAQE,IAAA,WAAW,EAAEA;AARf;AAbW,CAAf","sourcesContent":["import React from 'react';\nimport style from '../../../image-upload/style.css';\n\nexport default {\n props: {\n modified: false,\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_coorp-1491560495763.svg'\n },\n title: 'Desktop (*)',\n displayName: 'Upload image',\n uploadLabel: 'Upload'\n },\n // eslint-disable-next-line react/display-name\n children: (onDragStart, onDragStop) => (\n <input\n className={style.input}\n key=\"1\"\n type=\"file\"\n accept=\"image*/\"\n onChange={() => true}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )\n};\n"],"file":"with-children.js"}
@@ -1,12 +1,13 @@
1
1
  export default {
2
2
  props: {
3
+ modified: false,
3
4
  title: 'Drag & Drop With Image',
4
5
  description: 'Drag and drop component with an image',
5
6
  uploadLabel: 'Upload Image(s)',
6
7
  previewLabel: 'File Preview',
7
8
  previewContent: {
8
9
  type: 'image',
9
- src: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg'
10
+ src: 'https://static.coorpacademy.com/content/up/raw/logo_coorp-1491560495763.svg'
10
11
  }
11
12
  }
12
13
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-image.js"],"names":["props","title","description","uploadLabel","previewLabel","previewContent","type","src"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,wBADF;AAELC,IAAAA,WAAW,EAAE,uCAFR;AAGLC,IAAAA,WAAW,EAAE,iBAHR;AAILC,IAAAA,YAAY,EAAE,cAJT;AAKLC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS;AALX;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Drag & Drop With Image',\n description: 'Drag and drop component with an image',\n uploadLabel: 'Upload Image(s)',\n previewLabel: 'File Preview',\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_mobile-1491560713685.svg'\n }\n }\n};\n"],"file":"with-image.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-image.js"],"names":["props","modified","title","description","uploadLabel","previewLabel","previewContent","type","src"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE,KADL;AAELC,IAAAA,KAAK,EAAE,wBAFF;AAGLC,IAAAA,WAAW,EAAE,uCAHR;AAILC,IAAAA,WAAW,EAAE,iBAJR;AAKLC,IAAAA,YAAY,EAAE,cALT;AAMLC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS;AANX;AADM,CAAf","sourcesContent":["export default {\n props: {\n modified: false,\n title: 'Drag & Drop With Image',\n description: 'Drag and drop component with an image',\n uploadLabel: 'Upload Image(s)',\n previewLabel: 'File Preview',\n previewContent: {\n type: 'image',\n src: 'https://static.coorpacademy.com/content/up/raw/logo_coorp-1491560495763.svg'\n }\n }\n};\n"],"file":"with-image.js"}
@@ -1,5 +1,6 @@
1
1
  export default {
2
2
  props: {
3
+ modified: false,
3
4
  title: 'Drag & Drop',
4
5
  description: 'Drag and drop component with a video',
5
6
  uploadLabel: 'Upload',
@@ -7,7 +8,8 @@ export default {
7
8
  previewContent: {
8
9
  type: 'video',
9
10
  src: 'https://www.w3schools.com/tags/movie.mp4'
10
- }
11
+ },
12
+ onReset: () => console.log('reset')
11
13
  }
12
14
  };
13
15
  //# sourceMappingURL=with-video.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-video.js"],"names":["props","title","description","uploadLabel","previewLabel","previewContent","type","src"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,aADF;AAELC,IAAAA,WAAW,EAAE,sCAFR;AAGLC,IAAAA,WAAW,EAAE,QAHR;AAILC,IAAAA,YAAY,EAAE,cAJT;AAKLC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS;AALX;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Drag & Drop',\n description: 'Drag and drop component with a video',\n uploadLabel: 'Upload',\n previewLabel: 'File Preview',\n previewContent: {\n type: 'video',\n src: 'https://www.w3schools.com/tags/movie.mp4'\n }\n }\n};\n"],"file":"with-video.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/with-video.js"],"names":["props","modified","title","description","uploadLabel","previewLabel","previewContent","type","src","onReset","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAE,KADL;AAELC,IAAAA,KAAK,EAAE,aAFF;AAGLC,IAAAA,WAAW,EAAE,sCAHR;AAILC,IAAAA,WAAW,EAAE,QAJR;AAKLC,IAAAA,YAAY,EAAE,cALT;AAMLC,IAAAA,cAAc,EAAE;AACdC,MAAAA,IAAI,EAAE,OADQ;AAEdC,MAAAA,GAAG,EAAE;AAFS,KANX;AAULC,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAVV;AADM,CAAf","sourcesContent":["export default {\n props: {\n modified: false,\n title: 'Drag & Drop',\n description: 'Drag and drop component with a video',\n uploadLabel: 'Upload',\n previewLabel: 'File Preview',\n previewContent: {\n type: 'video',\n src: 'https://www.w3schools.com/tags/movie.mp4'\n },\n onReset: () => console.log('reset')\n }\n};\n"],"file":"with-video.js"}
@@ -0,0 +1,12 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import defaultProps from './default';
4
+ const {
5
+ props
6
+ } = defaultProps;
7
+ export default {
8
+ props: _extends(_extends({}, props), {}, {
9
+ description: 'Max file size: 5MO. Recommended format: SVG (if your client uses a majority of IE, use PNG format instead). Recommended aspect ratio : horizontal 2:1 (e.g. 500px x 250px). Maximum recommended aspect ratio 1:1 (e.g. 500x500, which means that it should not be taller than its width).'
10
+ })
11
+ };
12
+ //# sourceMappingURL=withLongDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/withLongDescription.js"],"names":["defaultProps","props","description"],"mappings":";;AACA,OAAOA,YAAP,MAAyB,WAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AACA,eAAe;AACXC,EAAAA,KAAK,wBACEA,KADF;AAEDC,IAAAA,WAAW,EAAE;AAFZ;AADM,CAAf","sourcesContent":["\nimport defaultProps from './default';\n\nconst {props} = defaultProps;\nexport default {\n props: {\n ...props,\n description: 'Max file size: 5MO. Recommended format: SVG (if your client uses a majority of IE, use PNG format instead). Recommended aspect ratio : horizontal 2:1 (e.g. 500px x 250px). Maximum recommended aspect ratio 1:1 (e.g. 500x500, which means that it should not be taller than its width).'\n }\n}\n"],"file":"withLongDescription.js"}
@@ -3,11 +3,14 @@ import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import AtomDragAndDrop from '..';
5
5
  import fixtureDefault from './fixtures/default';
6
+ import fixtureError from './fixtures/error';
6
7
  import fixtureLoading from './fixtures/loading';
8
+ import fixtureModified from './fixtures/modified';
7
9
  import fixtureWithChildren from './fixtures/with-children';
8
10
  import fixtureWithImageReset from './fixtures/with-image-reset';
9
11
  import fixtureWithImage from './fixtures/with-image';
10
12
  import fixtureWithVideo from './fixtures/with-video';
13
+ import fixtureWithLongDescription from './fixtures/withLongDescription';
11
14
  test('Atom › AtomDragAndDrop > should have valid propTypes', t => {
12
15
  t.pass();
13
16
  forEach(AtomDragAndDrop.propTypes, (value, key) => {
@@ -15,9 +18,12 @@ test('Atom › AtomDragAndDrop > should have valid propTypes', t => {
15
18
  });
16
19
  });
17
20
  test('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);
21
+ test('Atom › AtomDragAndDrop › Error › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureError);
18
22
  test('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);
23
+ test('Atom › AtomDragAndDrop › Modified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureModified);
19
24
  test('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);
20
25
  test('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);
21
26
  test('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);
22
27
  test('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);
28
+ test('Atom › AtomDragAndDrop › WithLongDescription › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithLongDescription);
23
29
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/drag-and-drop/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomDragAndDrop","fixtureDefault","fixtureLoading","fixtureWithChildren","fixtureWithImageReset","fixtureWithImage","fixtureWithVideo","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,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAT,IAAI,CAAC,sDAAD,EAAyDU,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,eAAe,CAACS,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;AAOAd,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGC,cAAjG,CAAJ;AACAJ,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGE,cAAjG,CAAJ;AACAL,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,eAArF,EAAsGG,mBAAtG,CAAJ;AACAN,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,eAAvF,EAAwGI,qBAAxG,CAAJ;AACAP,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGK,gBAAnG,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGM,gBAAnG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomDragAndDrop from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureWithChildren from './fixtures/with-children';\nimport fixtureWithImageReset from './fixtures/with-image-reset';\nimport fixtureWithImage from './fixtures/with-image';\nimport fixtureWithVideo from './fixtures/with-video';\n\ntest('Atom › AtomDragAndDrop > should have valid propTypes', t => {\n t.pass();\n forEach(AtomDragAndDrop.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomDragAndDrop.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);\ntest('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);\ntest('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);\ntest('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);\ntest('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);\ntest('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/drag-and-drop/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomDragAndDrop","fixtureDefault","fixtureError","fixtureLoading","fixtureModified","fixtureWithChildren","fixtureWithImageReset","fixtureWithImage","fixtureWithVideo","fixtureWithLongDescription","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,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,0BAAP,MAAuC,gCAAvC;AAEAZ,IAAI,CAAC,sDAAD,EAAyDa,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAb,EAAAA,OAAO,CAACE,eAAe,CAACY,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;AAOAjB,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGC,cAAjG,CAAJ;AACAJ,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,eAA9E,EAA+FE,YAA/F,CAAJ;AACAL,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGG,cAAjG,CAAJ;AACAN,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGI,eAAlG,CAAJ;AACAP,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,eAArF,EAAsGK,mBAAtG,CAAJ;AACAR,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,eAAvF,EAAwGM,qBAAxG,CAAJ;AACAT,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGO,gBAAnG,CAAJ;AACAV,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGQ,gBAAnG,CAAJ;AACAX,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,eAA5F,EAA6GS,0BAA7G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomDragAndDrop from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureModified from './fixtures/modified';\nimport fixtureWithChildren from './fixtures/with-children';\nimport fixtureWithImageReset from './fixtures/with-image-reset';\nimport fixtureWithImage from './fixtures/with-image';\nimport fixtureWithVideo from './fixtures/with-video';\nimport fixtureWithLongDescription from './fixtures/withLongDescription';\n\ntest('Atom › AtomDragAndDrop > should have valid propTypes', t => {\n t.pass();\n forEach(AtomDragAndDrop.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomDragAndDrop.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);\ntest('Atom › AtomDragAndDrop › Error › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureError);\ntest('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);\ntest('Atom › AtomDragAndDrop › Modified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureModified);\ntest('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);\ntest('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);\ntest('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);\ntest('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);\ntest('Atom › AtomDragAndDrop › WithLongDescription › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithLongDescription);\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 AtomEmptySearchResult from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('Atom › AtomEmptySearchResult > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(AtomEmptySearchResult.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "Atom.AtomEmptySearchResult.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('Atom › AtomEmptySearchResult › Default › should be rendered', renderComponentMacro, AtomEmptySearchResult, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/empty-search-result/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomEmptySearchResult","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,qBAAP,MAAkC,IAAlC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,4DAAD,EAA+DK,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,qBAAqB,CAACI,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,qBAAtF,EAA6GC,cAA7G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomEmptySearchResult from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Atom › AtomEmptySearchResult > should have valid propTypes', t => {\n t.pass();\n forEach(AtomEmptySearchResult.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomEmptySearchResult.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomEmptySearchResult › Default › should be rendered', renderComponentMacro, AtomEmptySearchResult, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -23,7 +23,8 @@ const ImageUpload = ({
23
23
  onReset = null,
24
24
  name,
25
25
  // See ImagePropType for accepted values
26
- imageTypes = ['*']
26
+ imageTypes = ['*'],
27
+ error = ''
27
28
  }) => {
28
29
  const handleReset = useCallback(e => {
29
30
  if (_isNil(onReset)) return;
@@ -41,7 +42,8 @@ const ImageUpload = ({
41
42
  uploadLabel: uploadLabel,
42
43
  loading: loading,
43
44
  modified: modified,
44
- onReset: handleReset
45
+ onReset: handleReset,
46
+ error: error
45
47
  }, (onDragStart, onDragStop) => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", {
46
48
  type: "file",
47
49
  name: name,
@@ -59,7 +61,8 @@ ImageUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends(_extend
59
61
  name: PropTypes.string,
60
62
  onChange: PropTypes.func,
61
63
  onReset: PropTypes.func,
62
- imageTypes: PropTypes.arrayOf(ImagePropType)
64
+ imageTypes: PropTypes.arrayOf(ImagePropType),
65
+ error: PropTypes.string
63
66
  }) : {};
64
67
  export default ImageUpload;
65
68
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/image-upload/index.js"],"names":["React","useCallback","PropTypes","DragAndDrop","ImagePropType","style","ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","onChange","onReset","name","imageTypes","handleReset","e","preventDefault","acceptedImages","t","onDragStart","onDragStop","input","propTypes","string","func","arrayOf"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,WAAP,MAAwB,kBAAxB;AACA,SAAQC,aAAR,QAA4B,sBAA5B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAAC;AACnBC,EAAAA,KADmB;AAEnBC,EAAAA,WAFmB;AAGnBC,EAAAA,YAHmB;AAInBC,EAAAA,cAJmB;AAKnBC,EAAAA,WALmB;AAMnBC,EAAAA,OANmB;AAOnBC,EAAAA,QAPmB;AAQnBC,EAAAA,QARmB;AASnBC,EAAAA,OAAO,GAAG,IATS;AAUnBC,EAAAA,IAVmB;AAWnB;AACAC,EAAAA,UAAU,GAAG,CAAC,GAAD;AAZM,CAAD,KAad;AACJ,QAAMC,WAAW,GAAGjB,WAAW,CAC7BkB,CAAC,IAAI;AACH,QAAI,OAAMJ,OAAN,CAAJ,EAAoB;AACpBI,IAAAA,CAAC,CAACC,cAAF;AACA,WAAOL,OAAO,CAACI,CAAD,CAAd;AACD,GAL4B,EAM7B,CAACJ,OAAD,CAN6B,CAA/B;;AASA,QAAMM,cAAc,GAAG,MACrB,KAAIC,CAAC,IAAK,SAAQA,CAAE,EAApB,CADqB,EAErB,MAAK,GAAL,CAFqB,EAGrBL,UAHqB,CAAvB;;AAKA,sBACE,oBAAC,WAAD;AACE,IAAA,KAAK,EAAEV,KADT;AAEE,IAAA,WAAW,EAAEC,WAFf;AAGE,IAAA,YAAY,EAAEC,YAHhB;AAIE,IAAA,cAAc,EAAEC,cAJlB;AAKE,IAAA,WAAW,EAAEC,WALf;AAME,IAAA,OAAO,EAAEC,OANX;AAOE,IAAA,QAAQ,EAAEC,QAPZ;AAQE,IAAA,OAAO,EAAEK;AARX,KAUG,CAACK,WAAD,EAAcC,UAAd,kBACC,8CACE;AACE,IAAA,IAAI,EAAC,MADP;AAEE,IAAA,IAAI,EAAER,IAFR;AAGE,IAAA,MAAM,EAAEK,cAHV;AAIE,IAAA,QAAQ,EAAET,OAJZ;AAKE,IAAA,SAAS,EAAEP,KAAK,CAACoB,KALnB;AAME,IAAA,QAAQ,EAAEX,QANZ;AAOE,IAAA,WAAW,EAAES,WAPf;AAQE,IAAA,MAAM,EAAEC,UARV;AASE,IAAA,WAAW,EAAEA;AATf,IADF,CAXJ,CADF;AA4BD,CAxDD;;AA0DAlB,WAAW,CAACoB,SAAZ,iEACKvB,WAAW,CAACuB,SADjB;AAEEV,EAAAA,IAAI,EAAEd,SAAS,CAACyB,MAFlB;AAGEb,EAAAA,QAAQ,EAAEZ,SAAS,CAAC0B,IAHtB;AAIEb,EAAAA,OAAO,EAAEb,SAAS,CAAC0B,IAJrB;AAKEX,EAAAA,UAAU,EAAEf,SAAS,CAAC2B,OAAV,CAAkBzB,aAAlB;AALd;AAQA,eAAeE,WAAf","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {join, map, pipe, isNil} from 'lodash/fp';\nimport DragAndDrop from '../drag-and-drop';\nimport {ImagePropType} from '../../util/proptypes';\nimport style from './style.css';\n\nconst ImageUpload = ({\n title,\n description,\n previewLabel,\n previewContent,\n uploadLabel,\n loading,\n modified,\n onChange,\n onReset = null,\n name,\n // See ImagePropType for accepted values\n imageTypes = ['*']\n}) => {\n const handleReset = useCallback(\n e => {\n if (isNil(onReset)) return;\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n const acceptedImages = pipe(\n map(t => `image/${t}`),\n join(',')\n )(imageTypes);\n\n return (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n previewContent={previewContent}\n uploadLabel={uploadLabel}\n loading={loading}\n modified={modified}\n onReset={handleReset}\n >\n {(onDragStart, onDragStop) => (\n <div>\n <input\n type=\"file\"\n name={name}\n accept={acceptedImages}\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n </div>\n )}\n </DragAndDrop>\n );\n};\n\nImageUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onReset: PropTypes.func,\n imageTypes: PropTypes.arrayOf(ImagePropType)\n};\n\nexport default ImageUpload;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/image-upload/index.js"],"names":["React","useCallback","PropTypes","DragAndDrop","ImagePropType","style","ImageUpload","title","description","previewLabel","previewContent","uploadLabel","loading","modified","onChange","onReset","name","imageTypes","error","handleReset","e","preventDefault","acceptedImages","t","onDragStart","onDragStop","input","propTypes","string","func","arrayOf"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,WAAP,MAAwB,kBAAxB;AACA,SAAQC,aAAR,QAA4B,sBAA5B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAAC;AACnBC,EAAAA,KADmB;AAEnBC,EAAAA,WAFmB;AAGnBC,EAAAA,YAHmB;AAInBC,EAAAA,cAJmB;AAKnBC,EAAAA,WALmB;AAMnBC,EAAAA,OANmB;AAOnBC,EAAAA,QAPmB;AAQnBC,EAAAA,QARmB;AASnBC,EAAAA,OAAO,GAAG,IATS;AAUnBC,EAAAA,IAVmB;AAWnB;AACAC,EAAAA,UAAU,GAAG,CAAC,GAAD,CAZM;AAanBC,EAAAA,KAAK,GAAG;AAbW,CAAD,KAcd;AACJ,QAAMC,WAAW,GAAGlB,WAAW,CAC7BmB,CAAC,IAAI;AACH,QAAI,OAAML,OAAN,CAAJ,EAAoB;AACpBK,IAAAA,CAAC,CAACC,cAAF;AACA,WAAON,OAAO,CAACK,CAAD,CAAd;AACD,GAL4B,EAM7B,CAACL,OAAD,CAN6B,CAA/B;;AASA,QAAMO,cAAc,GAAG,MACrB,KAAIC,CAAC,IAAK,SAAQA,CAAE,EAApB,CADqB,EAErB,MAAK,GAAL,CAFqB,EAGrBN,UAHqB,CAAvB;;AAKA,sBACE,oBAAC,WAAD;AACE,IAAA,KAAK,EAAEV,KADT;AAEE,IAAA,WAAW,EAAEC,WAFf;AAGE,IAAA,YAAY,EAAEC,YAHhB;AAIE,IAAA,cAAc,EAAEC,cAJlB;AAKE,IAAA,WAAW,EAAEC,WALf;AAME,IAAA,OAAO,EAAEC,OANX;AAOE,IAAA,QAAQ,EAAEC,QAPZ;AAQE,IAAA,OAAO,EAAEM,WARX;AASE,IAAA,KAAK,EAAED;AATT,KAWG,CAACM,WAAD,EAAcC,UAAd,kBACC,8CACE;AACE,IAAA,IAAI,EAAC,MADP;AAEE,IAAA,IAAI,EAAET,IAFR;AAGE,IAAA,MAAM,EAAEM,cAHV;AAIE,IAAA,QAAQ,EAAEV,OAJZ;AAKE,IAAA,SAAS,EAAEP,KAAK,CAACqB,KALnB;AAME,IAAA,QAAQ,EAAEZ,QANZ;AAOE,IAAA,WAAW,EAAEU,WAPf;AAQE,IAAA,MAAM,EAAEC,UARV;AASE,IAAA,WAAW,EAAEA;AATf,IADF,CAZJ,CADF;AA6BD,CA1DD;;AA4DAnB,WAAW,CAACqB,SAAZ,iEACKxB,WAAW,CAACwB,SADjB;AAEEX,EAAAA,IAAI,EAAEd,SAAS,CAAC0B,MAFlB;AAGEd,EAAAA,QAAQ,EAAEZ,SAAS,CAAC2B,IAHtB;AAIEd,EAAAA,OAAO,EAAEb,SAAS,CAAC2B,IAJrB;AAKEZ,EAAAA,UAAU,EAAEf,SAAS,CAAC4B,OAAV,CAAkB1B,aAAlB,CALd;AAMEc,EAAAA,KAAK,EAAEhB,SAAS,CAAC0B;AANnB;AASA,eAAetB,WAAf","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {join, map, pipe, isNil} from 'lodash/fp';\nimport DragAndDrop from '../drag-and-drop';\nimport {ImagePropType} from '../../util/proptypes';\nimport style from './style.css';\n\nconst ImageUpload = ({\n title,\n description,\n previewLabel,\n previewContent,\n uploadLabel,\n loading,\n modified,\n onChange,\n onReset = null,\n name,\n // See ImagePropType for accepted values\n imageTypes = ['*'],\n error = ''\n}) => {\n const handleReset = useCallback(\n e => {\n if (isNil(onReset)) return;\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n const acceptedImages = pipe(\n map(t => `image/${t}`),\n join(',')\n )(imageTypes);\n\n return (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n previewContent={previewContent}\n uploadLabel={uploadLabel}\n loading={loading}\n modified={modified}\n onReset={handleReset}\n error={error}\n >\n {(onDragStart, onDragStop) => (\n <div>\n <input\n type=\"file\"\n name={name}\n accept={acceptedImages}\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n </div>\n )}\n </DragAndDrop>\n );\n};\n\nImageUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func,\n onReset: PropTypes.func,\n imageTypes: PropTypes.arrayOf(ImagePropType),\n error: PropTypes.string\n};\n\nexport default ImageUpload;\n"],"file":"index.js"}
@@ -0,0 +1,13 @@
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 Desktop from './desktop';
4
+ const {
5
+ props
6
+ } = Desktop;
7
+ export default {
8
+ props: _extends(_extends({}, props), {}, {
9
+ previewContent: {},
10
+ modified: true
11
+ })
12
+ };
13
+ //# sourceMappingURL=clean-modified.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/clean-modified.js"],"names":["Desktop","props","previewContent","modified"],"mappings":";;AACA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACEA,KADF;AAEDC,IAAAA,cAAc,EAAE,EAFf;AAGDC,IAAAA,QAAQ,EAAE;AAHT;AADQ,CAAf","sourcesContent":["import {omit} from 'lodash/fp';\nimport Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n previewContent: {},\n modified: true\n }\n};\n"],"file":"clean-modified.js"}
@@ -6,4 +6,4 @@ const {
6
6
  export default {
7
7
  props: _omit('previewContent', props)
8
8
  };
9
- //# sourceMappingURL=without-image.js.map
9
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/image-upload/test/fixtures/default.js"],"names":["Desktop","props"],"mappings":";AACA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE,MAAK,gBAAL,EAAuBA,KAAvB;AADM,CAAf","sourcesContent":["import {omit} from 'lodash/fp';\nimport Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: omit('previewContent', props)\n};\n"],"file":"default.js"}