@coorpacademy/components 10.16.3 → 10.17.1

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 (894) hide show
  1. package/README.md +54 -0
  2. package/es/atom/autocomplete/test/fixtures.js +19 -0
  3. package/es/atom/autocomplete/test/fixtures.js.map +1 -0
  4. package/es/atom/avatar/test/fixtures.js +13 -0
  5. package/es/atom/avatar/test/fixtures.js.map +1 -0
  6. package/es/atom/button/test/fixtures.js +27 -0
  7. package/es/atom/button/test/fixtures.js.map +1 -0
  8. package/es/atom/button-link/test/fixtures.js +31 -0
  9. package/es/atom/button-link/test/fixtures.js.map +1 -0
  10. package/es/atom/button-link-icon-only/test/fixtures.js +23 -0
  11. package/es/atom/button-link-icon-only/test/fixtures.js.map +1 -0
  12. package/es/atom/button-menu/test/fixtures.js +15 -0
  13. package/es/atom/button-menu/test/fixtures.js.map +1 -0
  14. package/es/atom/card-image-preview/test/fixtures.js +15 -0
  15. package/es/atom/card-image-preview/test/fixtures.js.map +1 -0
  16. package/es/atom/catalog-section/test/fixtures.js +15 -0
  17. package/es/atom/catalog-section/test/fixtures.js.map +1 -0
  18. package/es/atom/centered-text/test/fixtures.js +13 -0
  19. package/es/atom/centered-text/test/fixtures.js.map +1 -0
  20. package/es/atom/checkbox/test/fixtures.js +19 -0
  21. package/es/atom/checkbox/test/fixtures.js.map +1 -0
  22. package/es/atom/checkbox-with-title/test/fixtures.js +15 -0
  23. package/es/atom/checkbox-with-title/test/fixtures.js.map +1 -0
  24. package/es/atom/chips/test/fixtures.js +17 -0
  25. package/es/atom/chips/test/fixtures.js.map +1 -0
  26. package/es/atom/clue/test/fixtures.js +17 -0
  27. package/es/atom/clue/test/fixtures.js.map +1 -0
  28. package/es/atom/content-badge/test/fixtures.js +29 -0
  29. package/es/atom/content-badge/test/fixtures.js.map +1 -0
  30. package/es/atom/cta/test/fixtures.js +37 -0
  31. package/es/atom/cta/test/fixtures.js.map +1 -0
  32. package/es/atom/difficulty-level/test/fixtures.js +19 -0
  33. package/es/atom/difficulty-level/test/fixtures.js.map +1 -0
  34. package/es/atom/drag-and-drop/test/fixtures.js +31 -0
  35. package/es/atom/drag-and-drop/test/fixtures.js.map +1 -0
  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/test/fixtures.js +31 -0
  39. package/es/atom/image-upload/test/fixtures.js.map +1 -0
  40. package/es/atom/input-checkbox/test/fixtures.js +25 -0
  41. package/es/atom/input-checkbox/test/fixtures.js.map +1 -0
  42. package/es/atom/input-color/test/fixtures.js +19 -0
  43. package/es/atom/input-color/test/fixtures.js.map +1 -0
  44. package/es/atom/input-doublestep/test/fixtures.js +21 -0
  45. package/es/atom/input-doublestep/test/fixtures.js.map +1 -0
  46. package/es/atom/input-html/test/fixtures.js +17 -0
  47. package/es/atom/input-html/test/fixtures.js.map +1 -0
  48. package/es/atom/input-readonly/test/fixtures.js +13 -0
  49. package/es/atom/input-readonly/test/fixtures.js.map +1 -0
  50. package/es/atom/input-search/test/fixtures.js +19 -0
  51. package/es/atom/input-search/test/fixtures.js.map +1 -0
  52. package/es/atom/input-switch/test/fixtures.js +33 -0
  53. package/es/atom/input-switch/test/fixtures.js.map +1 -0
  54. package/es/atom/input-text/test/fixtures.js +27 -0
  55. package/es/atom/input-text/test/fixtures.js.map +1 -0
  56. package/es/atom/input-text-with-title/test/fixtures.js +15 -0
  57. package/es/atom/input-text-with-title/test/fixtures.js.map +1 -0
  58. package/es/atom/input-textarea/test/fixtures.js +21 -0
  59. package/es/atom/input-textarea/test/fixtures.js.map +1 -0
  60. package/es/atom/label/test/fixtures.js +15 -0
  61. package/es/atom/label/test/fixtures.js.map +1 -0
  62. package/es/atom/life/test/fixtures.js +25 -0
  63. package/es/atom/life/test/fixtures.js.map +1 -0
  64. package/es/atom/link/test/fixtures.js +17 -0
  65. package/es/atom/link/test/fixtures.js.map +1 -0
  66. package/es/atom/loader/test/fixtures.js +15 -0
  67. package/es/atom/loader/test/fixtures.js.map +1 -0
  68. package/es/atom/lottie-wrapper/index.js +158 -0
  69. package/es/atom/lottie-wrapper/index.js.map +1 -0
  70. package/es/atom/lottie-wrapper/style.css +15 -0
  71. package/es/atom/lottie-wrapper/test/fixtures/confetti.js +19 -0
  72. package/es/atom/lottie-wrapper/test/fixtures/confetti.js.map +1 -0
  73. package/es/atom/lottie-wrapper/test/fixtures/controls.js +10 -0
  74. package/es/atom/lottie-wrapper/test/fixtures/controls.js.map +1 -0
  75. package/es/atom/lottie-wrapper/test/fixtures/default.js +19 -0
  76. package/es/atom/lottie-wrapper/test/fixtures/default.js.map +1 -0
  77. package/es/atom/lottie-wrapper/test/fixtures/rank.js +15 -0
  78. package/es/atom/lottie-wrapper/test/fixtures/rank.js.map +1 -0
  79. package/es/atom/lottie-wrapper/test/fixtures.js +19 -0
  80. package/es/atom/lottie-wrapper/test/fixtures.js.map +1 -0
  81. package/es/atom/lottie-wrapper/test/lottie.js +119 -0
  82. package/es/atom/lottie-wrapper/test/lottie.js.map +1 -0
  83. package/es/atom/notification/test/fixtures.js +17 -0
  84. package/es/atom/notification/test/fixtures.js.map +1 -0
  85. package/es/atom/picture/test/fixtures.js +19 -0
  86. package/es/atom/picture/test/fixtures.js.map +1 -0
  87. package/es/atom/picture-background/test/fixtures.js +19 -0
  88. package/es/atom/picture-background/test/fixtures.js.map +1 -0
  89. package/es/atom/promo-code/test/fixtures.js +17 -0
  90. package/es/atom/promo-code/test/fixtures.js.map +1 -0
  91. package/es/atom/provider/test/fixtures.js +13 -0
  92. package/es/atom/provider/test/fixtures.js.map +1 -0
  93. package/es/atom/radio-group/test/fixtures.js +17 -0
  94. package/es/atom/radio-group/test/fixtures.js.map +1 -0
  95. package/es/atom/range/test/fixtures.js +15 -0
  96. package/es/atom/range/test/fixtures.js.map +1 -0
  97. package/es/atom/resource-miniature/test/fixtures.js +21 -0
  98. package/es/atom/resource-miniature/test/fixtures.js.map +1 -0
  99. package/es/atom/review-background/test/fixtures.js +13 -0
  100. package/es/atom/review-background/test/fixtures.js.map +1 -0
  101. package/es/atom/review-header-step-item/test/fixtures.js +19 -0
  102. package/es/atom/review-header-step-item/test/fixtures.js.map +1 -0
  103. package/es/atom/review-presentation/test/fixtures.js +13 -0
  104. package/es/atom/review-presentation/test/fixtures.js.map +1 -0
  105. package/es/atom/select/test/fixtures.js +47 -0
  106. package/es/atom/select/test/fixtures.js.map +1 -0
  107. package/es/atom/slide/test/fixtures.js +21 -0
  108. package/es/atom/slide/test/fixtures.js.map +1 -0
  109. package/es/atom/social-link/test/fixtures.js +17 -0
  110. package/es/atom/social-link/test/fixtures.js.map +1 -0
  111. package/es/atom/spinner/test/fixtures.js +13 -0
  112. package/es/atom/spinner/test/fixtures.js.map +1 -0
  113. package/es/atom/tab/test/fixtures.js +13 -0
  114. package/es/atom/tab/test/fixtures.js.map +1 -0
  115. package/es/atom/tab-content/test/fixtures.js +15 -0
  116. package/es/atom/tab-content/test/fixtures.js.map +1 -0
  117. package/es/atom/tag/test/fixtures.js +21 -0
  118. package/es/atom/tag/test/fixtures.js.map +1 -0
  119. package/es/atom/title/test/fixtures.js +17 -0
  120. package/es/atom/title/test/fixtures.js.map +1 -0
  121. package/es/atom/video-upload/test/fixtures.js +21 -0
  122. package/es/atom/video-upload/test/fixtures.js.map +1 -0
  123. package/es/atom/wizard-steps/test/fixtures.js +17 -0
  124. package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
  125. package/es/hoc/animation/test/fixtures.js +15 -0
  126. package/es/hoc/animation/test/fixtures.js.map +1 -0
  127. package/es/hoc/animation-scheduler/test/fixtures.js +15 -0
  128. package/es/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  129. package/es/hoc/swapper/test/fixtures.js +13 -0
  130. package/es/hoc/swapper/test/fixtures.js.map +1 -0
  131. package/es/hoc/transition/test/fixtures.js +13 -0
  132. package/es/hoc/transition/test/fixtures.js.map +1 -0
  133. package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
  134. package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  135. package/es/molecule/answer/test/fixtures.js +35 -0
  136. package/es/molecule/answer/test/fixtures.js.map +1 -0
  137. package/es/molecule/audio/test/fixtures.js +15 -0
  138. package/es/molecule/audio/test/fixtures.js.map +1 -0
  139. package/es/molecule/banner/test/fixtures.js +23 -0
  140. package/es/molecule/banner/test/fixtures.js.map +1 -0
  141. package/es/molecule/battle-request/test/fixtures.js +15 -0
  142. package/es/molecule/battle-request/test/fixtures.js.map +1 -0
  143. package/es/molecule/brand-card/test/fixtures.js +15 -0
  144. package/es/molecule/brand-card/test/fixtures.js.map +1 -0
  145. package/es/molecule/brand-card-create/test/fixtures.js +13 -0
  146. package/es/molecule/brand-card-create/test/fixtures.js.map +1 -0
  147. package/es/molecule/brand-create-form/test/fixtures.js +19 -0
  148. package/es/molecule/brand-create-form/test/fixtures.js.map +1 -0
  149. package/es/molecule/brand-download-box/test/fixtures.js +17 -0
  150. package/es/molecule/brand-download-box/test/fixtures.js.map +1 -0
  151. package/es/molecule/brand-form-group/test/fixtures.js +37 -0
  152. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -0
  153. package/es/molecule/brand-tabs/test/fixtures.js +29 -0
  154. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -0
  155. package/es/molecule/brand-upload-box/test/fixtures.js +17 -0
  156. package/es/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  157. package/es/molecule/breadcrumbs/test/fixtures.js +13 -0
  158. package/es/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  159. package/es/molecule/bullet-point-menu-button/test/fixtures.js +15 -0
  160. package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  161. package/es/molecule/card/test/fixtures.js +45 -0
  162. package/es/molecule/card/test/fixtures.js.map +1 -0
  163. package/es/molecule/card-content/test/fixtures.js +27 -0
  164. package/es/molecule/card-content/test/fixtures.js.map +1 -0
  165. package/es/molecule/card-with-button/test/fixtures.js +17 -0
  166. package/es/molecule/card-with-button/test/fixtures.js.map +1 -0
  167. package/es/molecule/cm-popin/test/fixtures.js +17 -0
  168. package/es/molecule/cm-popin/test/fixtures.js.map +1 -0
  169. package/es/molecule/cookie-banner/test/fixtures.js +13 -0
  170. package/es/molecule/cookie-banner/test/fixtures.js.map +1 -0
  171. package/es/molecule/coorp-manager-roles/test/fixtures.js +13 -0
  172. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  173. package/es/molecule/course-section/test/fixtures.js +21 -0
  174. package/es/molecule/course-section/test/fixtures.js.map +1 -0
  175. package/es/molecule/course-sections/test/fixtures.js +17 -0
  176. package/es/molecule/course-sections/test/fixtures.js.map +1 -0
  177. package/es/molecule/dashboard/battle-request-list/test/fixtures.js +15 -0
  178. package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  179. package/es/molecule/dashboard/cards-list/index.js +7 -3
  180. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  181. package/es/molecule/dashboard/cards-list/test/fixtures.js +23 -0
  182. package/es/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  183. package/es/molecule/dashboard/news-list/test/fixtures.js +17 -0
  184. package/es/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  185. package/es/molecule/dashboard/review-banner/test/fixtures.js +13 -0
  186. package/es/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  187. package/es/molecule/dashboard/start-battle/test/fixtures.js +15 -0
  188. package/es/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  189. package/es/molecule/discipline-cta/test/fixtures.js +15 -0
  190. package/es/molecule/discipline-cta/test/fixtures.js.map +1 -0
  191. package/es/molecule/discipline-header/test/fixtures.js +27 -0
  192. package/es/molecule/discipline-header/test/fixtures.js.map +1 -0
  193. package/es/molecule/discipline-partners/test/fixtures.js +21 -0
  194. package/es/molecule/discipline-partners/test/fixtures.js.map +1 -0
  195. package/es/molecule/discipline-scope/test/fixtures.js +27 -0
  196. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -0
  197. package/es/molecule/drag-and-drop/test/fixtures.js +25 -0
  198. package/es/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  199. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +17 -0
  200. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -0
  201. package/es/molecule/draggable/test/fixtures.js +13 -0
  202. package/es/molecule/draggable/test/fixtures.js.map +1 -0
  203. package/es/molecule/draggable-list/test/fixtures.js +15 -0
  204. package/es/molecule/draggable-list/test/fixtures.js.map +1 -0
  205. package/es/molecule/external-content-button/test/fixtures.js +19 -0
  206. package/es/molecule/external-content-button/test/fixtures.js.map +1 -0
  207. package/es/molecule/external-content-viewer/test/fixtures.js +27 -0
  208. package/es/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  209. package/es/molecule/feedback/test/fixtures.js +27 -0
  210. package/es/molecule/feedback/test/fixtures.js.map +1 -0
  211. package/es/molecule/filters/test/fixtures.js +33 -0
  212. package/es/molecule/filters/test/fixtures.js.map +1 -0
  213. package/es/molecule/forum/forum-comment/test/fixtures.js +17 -0
  214. package/es/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  215. package/es/molecule/forum/forum-post/test/fixtures.js +31 -0
  216. package/es/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  217. package/es/molecule/forum/forum-thread/test/fixtures.js +17 -0
  218. package/es/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  219. package/es/molecule/hero/test/fixtures.js +15 -0
  220. package/es/molecule/hero/test/fixtures.js.map +1 -0
  221. package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js +15 -0
  222. package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +1 -0
  223. package/es/molecule/list-badges/test/fixtures.js +19 -0
  224. package/es/molecule/list-badges/test/fixtures.js.map +1 -0
  225. package/es/molecule/login-alert/test/fixtures.js +13 -0
  226. package/es/molecule/login-alert/test/fixtures.js.map +1 -0
  227. package/es/molecule/menu-list/test/fixtures.js +13 -0
  228. package/es/molecule/menu-list/test/fixtures.js.map +1 -0
  229. package/es/molecule/message-popin/test/fixtures.js +13 -0
  230. package/es/molecule/message-popin/test/fixtures.js.map +1 -0
  231. package/es/molecule/modal/test/fixtures.js +13 -0
  232. package/es/molecule/modal/test/fixtures.js.map +1 -0
  233. package/es/molecule/module-bubble/test/fixtures.js +17 -0
  234. package/es/molecule/module-bubble/test/fixtures.js.map +1 -0
  235. package/es/molecule/module-card/test/fixtures.js +17 -0
  236. package/es/molecule/module-card/test/fixtures.js.map +1 -0
  237. package/es/molecule/news/test/fixtures.js +23 -0
  238. package/es/molecule/news/test/fixtures.js.map +1 -0
  239. package/es/molecule/notification-banner/test/fixtures.js +17 -0
  240. package/es/molecule/notification-banner/test/fixtures.js.map +1 -0
  241. package/es/molecule/pagination/test/fixtures.js +15 -0
  242. package/es/molecule/pagination/test/fixtures.js.map +1 -0
  243. package/es/molecule/payment-form/test/fixtures.js +17 -0
  244. package/es/molecule/payment-form/test/fixtures.js.map +1 -0
  245. package/es/molecule/pdf/test/fixtures.js +13 -0
  246. package/es/molecule/pdf/test/fixtures.js.map +1 -0
  247. package/es/molecule/popin/test/fixtures.js +21 -0
  248. package/es/molecule/popin/test/fixtures.js.map +1 -0
  249. package/es/molecule/product-card/test/fixtures.js +13 -0
  250. package/es/molecule/product-card/test/fixtures.js.map +1 -0
  251. package/es/molecule/progress-bar/test/fixtures.js +15 -0
  252. package/es/molecule/progress-bar/test/fixtures.js.map +1 -0
  253. package/es/molecule/questions/drop-down/test/fixtures.js +15 -0
  254. package/es/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  255. package/es/molecule/questions/free-text/test/fixtures.js +17 -0
  256. package/es/molecule/questions/free-text/test/fixtures.js.map +1 -0
  257. package/es/molecule/questions/qcm/test/fixtures.js +19 -0
  258. package/es/molecule/questions/qcm/test/fixtures.js.map +1 -0
  259. package/es/molecule/questions/qcm-drag/test/fixtures.js +15 -0
  260. package/es/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  261. package/es/molecule/questions/qcm-graphic/test/fixtures.js +15 -0
  262. package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  263. package/es/molecule/questions/question-range/test/fixtures.js +13 -0
  264. package/es/molecule/questions/question-range/test/fixtures.js.map +1 -0
  265. package/es/molecule/questions/template/test/fixtures.js +15 -0
  266. package/es/molecule/questions/template/test/fixtures.js.map +1 -0
  267. package/es/molecule/quick-access-card/test/fixtures.js +21 -0
  268. package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
  269. package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
  270. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  271. package/es/molecule/resource-player/test/fixtures.js +25 -0
  272. package/es/molecule/resource-player/test/fixtures.js.map +1 -0
  273. package/es/molecule/review-correction-popin/test/fixtures.js +15 -0
  274. package/es/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  275. package/es/molecule/review-header-steps/test/fixtures.js +23 -0
  276. package/es/molecule/review-header-steps/test/fixtures.js.map +1 -0
  277. package/es/molecule/scope-content/test/fixtures.js +27 -0
  278. package/es/molecule/scope-content/test/fixtures.js.map +1 -0
  279. package/es/molecule/scope-tabs/test/fixtures.js +17 -0
  280. package/es/molecule/scope-tabs/test/fixtures.js.map +1 -0
  281. package/es/molecule/search-form/test/fixtures.js +13 -0
  282. package/es/molecule/search-form/test/fixtures.js.map +1 -0
  283. package/es/molecule/select-multiple/test/fixtures.js +31 -0
  284. package/es/molecule/select-multiple/test/fixtures.js.map +1 -0
  285. package/es/molecule/setup-cohort-item/test/fixtures.js +19 -0
  286. package/es/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  287. package/es/molecule/setup-section/test/fixtures.js +25 -0
  288. package/es/molecule/setup-section/test/fixtures.js.map +1 -0
  289. package/es/molecule/setup-sections/test/fixtures.js +19 -0
  290. package/es/molecule/setup-sections/test/fixtures.js.map +1 -0
  291. package/es/molecule/setup-slide/test/fixtures.js +25 -0
  292. package/es/molecule/setup-slide/test/fixtures.js.map +1 -0
  293. package/es/molecule/setup-slider/test/fixtures.js +15 -0
  294. package/es/molecule/setup-slider/test/fixtures.js.map +1 -0
  295. package/es/molecule/share/test/fixtures.js +13 -0
  296. package/es/molecule/share/test/fixtures.js.map +1 -0
  297. package/es/molecule/skill-card/test/fixtures.js +19 -0
  298. package/es/molecule/skill-card/test/fixtures.js.map +1 -0
  299. package/es/molecule/ssmenu-list/test/fixtures.js +19 -0
  300. package/es/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  301. package/es/molecule/subscription-freemium/test/fixtures.js +13 -0
  302. package/es/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  303. package/es/molecule/subscription-premium/test/fixtures.js +15 -0
  304. package/es/molecule/subscription-premium/test/fixtures.js.map +1 -0
  305. package/es/molecule/table/test/fixtures.js +19 -0
  306. package/es/molecule/table/test/fixtures.js.map +1 -0
  307. package/es/molecule/teams-popin/test/fixtures/loading-background.js +1 -1
  308. package/es/molecule/teams-popin/test/fixtures/loading-background.js.map +1 -1
  309. package/es/molecule/teams-popin/test/fixtures/login-background.js +1 -1
  310. package/es/molecule/teams-popin/test/fixtures/login-background.js.map +1 -1
  311. package/es/molecule/teams-popin/test/fixtures.js +29 -0
  312. package/es/molecule/teams-popin/test/fixtures.js.map +1 -0
  313. package/es/molecule/theme-image/test/fixtures.js +13 -0
  314. package/es/molecule/theme-image/test/fixtures.js.map +1 -0
  315. package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js +19 -0
  316. package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +1 -0
  317. package/es/molecule/titled-checkbox/test/fixtures.js +17 -0
  318. package/es/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  319. package/es/molecule/unsubscribe/test/fixtures.js +15 -0
  320. package/es/molecule/unsubscribe/test/fixtures.js.map +1 -0
  321. package/es/molecule/vertical-tabs/test/fixtures.js +17 -0
  322. package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  323. package/es/molecule/video-iframe/test/fixtures.js +25 -0
  324. package/es/molecule/video-iframe/test/fixtures.js.map +1 -0
  325. package/es/molecule/video-player/test/fixtures.js +29 -0
  326. package/es/molecule/video-player/test/fixtures.js.map +1 -0
  327. package/es/molecule/wizard-summary/style.css +2 -1
  328. package/es/molecule/wizard-summary/test/fixtures.js +23 -0
  329. package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
  330. package/es/organism/accordion/container/test/fixtures.js +17 -0
  331. package/es/organism/accordion/container/test/fixtures.js.map +1 -0
  332. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +17 -0
  333. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  334. package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
  335. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  336. package/es/organism/accordion/part/test/fixtures.js +15 -0
  337. package/es/organism/accordion/part/test/fixtures.js.map +1 -0
  338. package/es/organism/accordion/toggler/test/fixtures.js +17 -0
  339. package/es/organism/accordion/toggler/test/fixtures.js.map +1 -0
  340. package/es/organism/brand-analytics/test/fixtures.js +23 -0
  341. package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
  342. package/es/organism/brand-dashboard/test/fixtures.js +15 -0
  343. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
  344. package/es/organism/brand-form/test/fixtures.js +37 -0
  345. package/es/organism/brand-form/test/fixtures.js.map +1 -0
  346. package/es/organism/brand-table/test/fixtures.js +19 -0
  347. package/es/organism/brand-table/test/fixtures.js.map +1 -0
  348. package/es/organism/brand-upload/test/fixtures.js +15 -0
  349. package/es/organism/brand-upload/test/fixtures.js.map +1 -0
  350. package/es/organism/cards-grid/test/fixtures.js +19 -0
  351. package/es/organism/cards-grid/test/fixtures.js.map +1 -0
  352. package/es/organism/cart/test/fixtures.js +13 -0
  353. package/es/organism/cart/test/fixtures.js.map +1 -0
  354. package/es/organism/content-translation/test/fixtures.js +15 -0
  355. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  356. package/es/organism/course-selection/test/fixtures.js +25 -0
  357. package/es/organism/course-selection/test/fixtures.js.map +1 -0
  358. package/es/organism/discussion/test/fixtures.js +19 -0
  359. package/es/organism/discussion/test/fixtures.js.map +1 -0
  360. package/es/organism/get-the-app/test/fixtures.js +13 -0
  361. package/es/organism/get-the-app/test/fixtures.js.map +1 -0
  362. package/es/organism/grid-list/test/fixtures.js +13 -0
  363. package/es/organism/grid-list/test/fixtures.js.map +1 -0
  364. package/es/organism/header/test/fixtures.js +13 -0
  365. package/es/organism/header/test/fixtures.js.map +1 -0
  366. package/es/organism/hero/test/fixtures.js +17 -0
  367. package/es/organism/hero/test/fixtures.js.map +1 -0
  368. package/es/organism/list-item/test/fixtures.js +19 -0
  369. package/es/organism/list-item/test/fixtures.js.map +1 -0
  370. package/es/organism/list-items/test/fixtures.js +17 -0
  371. package/es/organism/list-items/test/fixtures.js.map +1 -0
  372. package/es/organism/mooc/image-slider/test/fixtures.js +15 -0
  373. package/es/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  374. package/es/organism/mooc-footer/test/fixtures.js +23 -0
  375. package/es/organism/mooc-footer/test/fixtures.js.map +1 -0
  376. package/es/organism/mooc-header/test/fixtures.js +31 -0
  377. package/es/organism/mooc-header/test/fixtures.js.map +1 -0
  378. package/es/organism/popin/test/fixtures.js +13 -0
  379. package/es/organism/popin/test/fixtures.js.map +1 -0
  380. package/es/organism/resource-browser/test/fixtures.js +37 -0
  381. package/es/organism/resource-browser/test/fixtures.js.map +1 -0
  382. package/es/organism/review-header/test/fixtures.js +23 -0
  383. package/es/organism/review-header/test/fixtures.js.map +1 -0
  384. package/es/organism/review-skills/test/fixtures.js +17 -0
  385. package/es/organism/review-skills/test/fixtures.js.map +1 -0
  386. package/es/organism/rewards-form/test/fixtures.js +19 -0
  387. package/es/organism/rewards-form/test/fixtures.js.map +1 -0
  388. package/es/organism/search-and-chips-results/test/fixtures.js +23 -0
  389. package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  390. package/es/organism/settings/test/fixtures.js +19 -0
  391. package/es/organism/settings/test/fixtures.js.map +1 -0
  392. package/es/organism/setup-header/test/fixtures.js +15 -0
  393. package/es/organism/setup-header/test/fixtures.js.map +1 -0
  394. package/es/organism/sidebar/test/fixtures.js +23 -0
  395. package/es/organism/sidebar/test/fixtures.js.map +1 -0
  396. package/es/organism/slider/test/fixtures.js +15 -0
  397. package/es/organism/slider/test/fixtures.js.map +1 -0
  398. package/es/organism/user-preferences/test/fixtures.js +13 -0
  399. package/es/organism/user-preferences/test/fixtures.js.map +1 -0
  400. package/es/organism/wizard-contents/test/fixtures.js +27 -0
  401. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  402. package/es/template/activity/test/fixtures.js +21 -0
  403. package/es/template/activity/test/fixtures.js.map +1 -0
  404. package/es/template/app-player/loading/test/fixtures.js +13 -0
  405. package/es/template/app-player/loading/test/fixtures.js.map +1 -0
  406. package/es/template/app-player/player/slides/footer/test/fixtures.js +29 -0
  407. package/es/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  408. package/es/template/app-player/player/slides/header/test/fixtures.js +23 -0
  409. package/es/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  410. package/es/template/app-player/player/slides/test/fixtures.js +79 -0
  411. package/es/template/app-player/player/slides/test/fixtures.js.map +1 -0
  412. package/es/template/app-player/player/test/fixtures.js +55 -0
  413. package/es/template/app-player/player/test/fixtures.js.map +1 -0
  414. package/es/template/app-player/popin-correction/test/fixtures.js +47 -0
  415. package/es/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  416. package/es/template/app-player/popin-end/test/fixtures.js +51 -0
  417. package/es/template/app-player/popin-end/test/fixtures.js.map +1 -0
  418. package/es/template/app-player/popin-header/test/fixtures.js +29 -0
  419. package/es/template/app-player/popin-header/test/fixtures.js.map +1 -0
  420. package/es/template/back-office/brand-create/test/fixtures.js +19 -0
  421. package/es/template/back-office/brand-create/test/fixtures.js.map +1 -0
  422. package/es/template/back-office/brand-list/test/fixtures.js +17 -0
  423. package/es/template/back-office/brand-list/test/fixtures.js.map +1 -0
  424. package/es/template/back-office/brand-update/test/fixtures.js +89 -0
  425. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -0
  426. package/es/template/back-office/dashboard-preview/test/fixtures.js +23 -0
  427. package/es/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  428. package/es/template/battle-requests/test/fixtures.js +13 -0
  429. package/es/template/battle-requests/test/fixtures.js.map +1 -0
  430. package/es/template/cockpit/jw-uploader/test/fixtures.js +13 -0
  431. package/es/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  432. package/es/template/common/authors/test/fixtures.js +15 -0
  433. package/es/template/common/authors/test/fixtures.js.map +1 -0
  434. package/es/template/common/coorp-header/test/fixtures.js +15 -0
  435. package/es/template/common/coorp-header/test/fixtures.js.map +1 -0
  436. package/es/template/common/dashboard/test/fixtures.js +17 -0
  437. package/es/template/common/dashboard/test/fixtures.js.map +1 -0
  438. package/es/template/common/discipline/test/fixtures.js +47 -0
  439. package/es/template/common/discipline/test/fixtures.js.map +1 -0
  440. package/es/template/common/search-page/test/fixtures.js +17 -0
  441. package/es/template/common/search-page/test/fixtures.js.map +1 -0
  442. package/es/template/external-course/test/fixtures.js +35 -0
  443. package/es/template/external-course/test/fixtures.js.map +1 -0
  444. package/es/template/review-dashboard-skills/test/fixtures.js +17 -0
  445. package/es/template/review-dashboard-skills/test/fixtures.js.map +1 -0
  446. package/es/template/teams-dashboard/test/fixtures.js +17 -0
  447. package/es/template/teams-dashboard/test/fixtures.js.map +1 -0
  448. package/lib/atom/autocomplete/test/fixtures.js +31 -0
  449. package/lib/atom/autocomplete/test/fixtures.js.map +1 -0
  450. package/lib/atom/avatar/test/fixtures.js +22 -0
  451. package/lib/atom/avatar/test/fixtures.js.map +1 -0
  452. package/lib/atom/button/test/fixtures.js +43 -0
  453. package/lib/atom/button/test/fixtures.js.map +1 -0
  454. package/lib/atom/button-link/test/fixtures.js +49 -0
  455. package/lib/atom/button-link/test/fixtures.js.map +1 -0
  456. package/lib/atom/button-link-icon-only/test/fixtures.js +37 -0
  457. package/lib/atom/button-link-icon-only/test/fixtures.js.map +1 -0
  458. package/lib/atom/button-menu/test/fixtures.js +25 -0
  459. package/lib/atom/button-menu/test/fixtures.js.map +1 -0
  460. package/lib/atom/card-image-preview/test/fixtures.js +25 -0
  461. package/lib/atom/card-image-preview/test/fixtures.js.map +1 -0
  462. package/lib/atom/catalog-section/test/fixtures.js +25 -0
  463. package/lib/atom/catalog-section/test/fixtures.js.map +1 -0
  464. package/lib/atom/centered-text/test/fixtures.js +22 -0
  465. package/lib/atom/centered-text/test/fixtures.js.map +1 -0
  466. package/lib/atom/checkbox/test/fixtures.js +31 -0
  467. package/lib/atom/checkbox/test/fixtures.js.map +1 -0
  468. package/lib/atom/checkbox-with-title/test/fixtures.js +25 -0
  469. package/lib/atom/checkbox-with-title/test/fixtures.js.map +1 -0
  470. package/lib/atom/chips/test/fixtures.js +28 -0
  471. package/lib/atom/chips/test/fixtures.js.map +1 -0
  472. package/lib/atom/clue/test/fixtures.js +28 -0
  473. package/lib/atom/clue/test/fixtures.js.map +1 -0
  474. package/lib/atom/content-badge/test/fixtures.js +46 -0
  475. package/lib/atom/content-badge/test/fixtures.js.map +1 -0
  476. package/lib/atom/cta/test/fixtures.js +58 -0
  477. package/lib/atom/cta/test/fixtures.js.map +1 -0
  478. package/lib/atom/difficulty-level/test/fixtures.js +31 -0
  479. package/lib/atom/difficulty-level/test/fixtures.js.map +1 -0
  480. package/lib/atom/drag-and-drop/test/fixtures.js +49 -0
  481. package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -0
  482. package/lib/atom/empty-search-result/test/fixtures.js +22 -0
  483. package/lib/atom/empty-search-result/test/fixtures.js.map +1 -0
  484. package/lib/atom/image-upload/test/fixtures.js +49 -0
  485. package/lib/atom/image-upload/test/fixtures.js.map +1 -0
  486. package/lib/atom/input-checkbox/test/fixtures.js +40 -0
  487. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -0
  488. package/lib/atom/input-color/test/fixtures.js +31 -0
  489. package/lib/atom/input-color/test/fixtures.js.map +1 -0
  490. package/lib/atom/input-doublestep/test/fixtures.js +34 -0
  491. package/lib/atom/input-doublestep/test/fixtures.js.map +1 -0
  492. package/lib/atom/input-html/test/fixtures.js +28 -0
  493. package/lib/atom/input-html/test/fixtures.js.map +1 -0
  494. package/lib/atom/input-readonly/test/fixtures.js +22 -0
  495. package/lib/atom/input-readonly/test/fixtures.js.map +1 -0
  496. package/lib/atom/input-search/test/fixtures.js +31 -0
  497. package/lib/atom/input-search/test/fixtures.js.map +1 -0
  498. package/lib/atom/input-switch/test/fixtures.js +52 -0
  499. package/lib/atom/input-switch/test/fixtures.js.map +1 -0
  500. package/lib/atom/input-text/test/fixtures.js +43 -0
  501. package/lib/atom/input-text/test/fixtures.js.map +1 -0
  502. package/lib/atom/input-text-with-title/test/fixtures.js +25 -0
  503. package/lib/atom/input-text-with-title/test/fixtures.js.map +1 -0
  504. package/lib/atom/input-textarea/test/fixtures.js +34 -0
  505. package/lib/atom/input-textarea/test/fixtures.js.map +1 -0
  506. package/lib/atom/label/test/fixtures.js +25 -0
  507. package/lib/atom/label/test/fixtures.js.map +1 -0
  508. package/lib/atom/life/test/fixtures.js +40 -0
  509. package/lib/atom/life/test/fixtures.js.map +1 -0
  510. package/lib/atom/link/test/fixtures.js +28 -0
  511. package/lib/atom/link/test/fixtures.js.map +1 -0
  512. package/lib/atom/loader/test/fixtures.js +25 -0
  513. package/lib/atom/loader/test/fixtures.js.map +1 -0
  514. package/lib/atom/lottie-wrapper/index.js +184 -0
  515. package/lib/atom/lottie-wrapper/index.js.map +1 -0
  516. package/lib/atom/lottie-wrapper/style.css +15 -0
  517. package/lib/atom/lottie-wrapper/test/fixtures/confetti.js +24 -0
  518. package/lib/atom/lottie-wrapper/test/fixtures/confetti.js.map +1 -0
  519. package/lib/atom/lottie-wrapper/test/fixtures/controls.js +19 -0
  520. package/lib/atom/lottie-wrapper/test/fixtures/controls.js.map +1 -0
  521. package/lib/atom/lottie-wrapper/test/fixtures/default.js +24 -0
  522. package/lib/atom/lottie-wrapper/test/fixtures/default.js.map +1 -0
  523. package/lib/atom/lottie-wrapper/test/fixtures/rank.js +20 -0
  524. package/lib/atom/lottie-wrapper/test/fixtures/rank.js.map +1 -0
  525. package/lib/atom/lottie-wrapper/test/fixtures.js +31 -0
  526. package/lib/atom/lottie-wrapper/test/fixtures.js.map +1 -0
  527. package/lib/atom/lottie-wrapper/test/lottie.js +136 -0
  528. package/lib/atom/lottie-wrapper/test/lottie.js.map +1 -0
  529. package/lib/atom/notification/test/fixtures.js +28 -0
  530. package/lib/atom/notification/test/fixtures.js.map +1 -0
  531. package/lib/atom/picture/test/fixtures.js +31 -0
  532. package/lib/atom/picture/test/fixtures.js.map +1 -0
  533. package/lib/atom/picture-background/test/fixtures.js +31 -0
  534. package/lib/atom/picture-background/test/fixtures.js.map +1 -0
  535. package/lib/atom/promo-code/test/fixtures.js +28 -0
  536. package/lib/atom/promo-code/test/fixtures.js.map +1 -0
  537. package/lib/atom/provider/test/fixtures.js +22 -0
  538. package/lib/atom/provider/test/fixtures.js.map +1 -0
  539. package/lib/atom/radio-group/test/fixtures.js +28 -0
  540. package/lib/atom/radio-group/test/fixtures.js.map +1 -0
  541. package/lib/atom/range/test/fixtures.js +25 -0
  542. package/lib/atom/range/test/fixtures.js.map +1 -0
  543. package/lib/atom/resource-miniature/test/fixtures.js +34 -0
  544. package/lib/atom/resource-miniature/test/fixtures.js.map +1 -0
  545. package/lib/atom/review-background/test/fixtures.js +22 -0
  546. package/lib/atom/review-background/test/fixtures.js.map +1 -0
  547. package/lib/atom/review-header-step-item/test/fixtures.js +31 -0
  548. package/lib/atom/review-header-step-item/test/fixtures.js.map +1 -0
  549. package/lib/atom/review-presentation/test/fixtures.js +22 -0
  550. package/lib/atom/review-presentation/test/fixtures.js.map +1 -0
  551. package/lib/atom/select/test/fixtures.js +73 -0
  552. package/lib/atom/select/test/fixtures.js.map +1 -0
  553. package/lib/atom/slide/test/fixtures.js +34 -0
  554. package/lib/atom/slide/test/fixtures.js.map +1 -0
  555. package/lib/atom/social-link/test/fixtures.js +28 -0
  556. package/lib/atom/social-link/test/fixtures.js.map +1 -0
  557. package/lib/atom/spinner/test/fixtures.js +22 -0
  558. package/lib/atom/spinner/test/fixtures.js.map +1 -0
  559. package/lib/atom/tab/test/fixtures.js +22 -0
  560. package/lib/atom/tab/test/fixtures.js.map +1 -0
  561. package/lib/atom/tab-content/test/fixtures.js +25 -0
  562. package/lib/atom/tab-content/test/fixtures.js.map +1 -0
  563. package/lib/atom/tag/test/fixtures.js +34 -0
  564. package/lib/atom/tag/test/fixtures.js.map +1 -0
  565. package/lib/atom/title/test/fixtures.js +28 -0
  566. package/lib/atom/title/test/fixtures.js.map +1 -0
  567. package/lib/atom/video-upload/test/fixtures.js +34 -0
  568. package/lib/atom/video-upload/test/fixtures.js.map +1 -0
  569. package/lib/atom/wizard-steps/test/fixtures.js +28 -0
  570. package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
  571. package/lib/hoc/animation/test/fixtures.js +25 -0
  572. package/lib/hoc/animation/test/fixtures.js.map +1 -0
  573. package/lib/hoc/animation-scheduler/test/fixtures.js +25 -0
  574. package/lib/hoc/animation-scheduler/test/fixtures.js.map +1 -0
  575. package/lib/hoc/swapper/test/fixtures.js +22 -0
  576. package/lib/hoc/swapper/test/fixtures.js.map +1 -0
  577. package/lib/hoc/transition/test/fixtures.js +22 -0
  578. package/lib/hoc/transition/test/fixtures.js.map +1 -0
  579. package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
  580. package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  581. package/lib/molecule/answer/test/fixtures.js +55 -0
  582. package/lib/molecule/answer/test/fixtures.js.map +1 -0
  583. package/lib/molecule/audio/test/fixtures.js +25 -0
  584. package/lib/molecule/audio/test/fixtures.js.map +1 -0
  585. package/lib/molecule/banner/test/fixtures.js +37 -0
  586. package/lib/molecule/banner/test/fixtures.js.map +1 -0
  587. package/lib/molecule/battle-request/test/fixtures.js +25 -0
  588. package/lib/molecule/battle-request/test/fixtures.js.map +1 -0
  589. package/lib/molecule/brand-card/test/fixtures.js +25 -0
  590. package/lib/molecule/brand-card/test/fixtures.js.map +1 -0
  591. package/lib/molecule/brand-card-create/test/fixtures.js +22 -0
  592. package/lib/molecule/brand-card-create/test/fixtures.js.map +1 -0
  593. package/lib/molecule/brand-create-form/test/fixtures.js +31 -0
  594. package/lib/molecule/brand-create-form/test/fixtures.js.map +1 -0
  595. package/lib/molecule/brand-download-box/test/fixtures.js +28 -0
  596. package/lib/molecule/brand-download-box/test/fixtures.js.map +1 -0
  597. package/lib/molecule/brand-form-group/test/fixtures.js +58 -0
  598. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -0
  599. package/lib/molecule/brand-tabs/test/fixtures.js +46 -0
  600. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -0
  601. package/lib/molecule/brand-upload-box/test/fixtures.js +28 -0
  602. package/lib/molecule/brand-upload-box/test/fixtures.js.map +1 -0
  603. package/lib/molecule/breadcrumbs/test/fixtures.js +22 -0
  604. package/lib/molecule/breadcrumbs/test/fixtures.js.map +1 -0
  605. package/lib/molecule/bullet-point-menu-button/test/fixtures.js +25 -0
  606. package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
  607. package/lib/molecule/card/test/fixtures.js +70 -0
  608. package/lib/molecule/card/test/fixtures.js.map +1 -0
  609. package/lib/molecule/card-content/test/fixtures.js +43 -0
  610. package/lib/molecule/card-content/test/fixtures.js.map +1 -0
  611. package/lib/molecule/card-with-button/test/fixtures.js +28 -0
  612. package/lib/molecule/card-with-button/test/fixtures.js.map +1 -0
  613. package/lib/molecule/cm-popin/test/fixtures.js +28 -0
  614. package/lib/molecule/cm-popin/test/fixtures.js.map +1 -0
  615. package/lib/molecule/cookie-banner/test/fixtures.js +22 -0
  616. package/lib/molecule/cookie-banner/test/fixtures.js.map +1 -0
  617. package/lib/molecule/coorp-manager-roles/test/fixtures.js +22 -0
  618. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  619. package/lib/molecule/course-section/test/fixtures.js +34 -0
  620. package/lib/molecule/course-section/test/fixtures.js.map +1 -0
  621. package/lib/molecule/course-sections/test/fixtures.js +28 -0
  622. package/lib/molecule/course-sections/test/fixtures.js.map +1 -0
  623. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +25 -0
  624. package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
  625. package/lib/molecule/dashboard/cards-list/index.js +7 -3
  626. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  627. package/lib/molecule/dashboard/cards-list/test/fixtures.js +37 -0
  628. package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
  629. package/lib/molecule/dashboard/news-list/test/fixtures.js +28 -0
  630. package/lib/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
  631. package/lib/molecule/dashboard/review-banner/test/fixtures.js +22 -0
  632. package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
  633. package/lib/molecule/dashboard/start-battle/test/fixtures.js +25 -0
  634. package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
  635. package/lib/molecule/discipline-cta/test/fixtures.js +25 -0
  636. package/lib/molecule/discipline-cta/test/fixtures.js.map +1 -0
  637. package/lib/molecule/discipline-header/test/fixtures.js +43 -0
  638. package/lib/molecule/discipline-header/test/fixtures.js.map +1 -0
  639. package/lib/molecule/discipline-partners/test/fixtures.js +34 -0
  640. package/lib/molecule/discipline-partners/test/fixtures.js.map +1 -0
  641. package/lib/molecule/discipline-scope/test/fixtures.js +43 -0
  642. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -0
  643. package/lib/molecule/drag-and-drop/test/fixtures.js +40 -0
  644. package/lib/molecule/drag-and-drop/test/fixtures.js.map +1 -0
  645. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +28 -0
  646. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -0
  647. package/lib/molecule/draggable/test/fixtures.js +22 -0
  648. package/lib/molecule/draggable/test/fixtures.js.map +1 -0
  649. package/lib/molecule/draggable-list/test/fixtures.js +25 -0
  650. package/lib/molecule/draggable-list/test/fixtures.js.map +1 -0
  651. package/lib/molecule/external-content-button/test/fixtures.js +31 -0
  652. package/lib/molecule/external-content-button/test/fixtures.js.map +1 -0
  653. package/lib/molecule/external-content-viewer/test/fixtures.js +43 -0
  654. package/lib/molecule/external-content-viewer/test/fixtures.js.map +1 -0
  655. package/lib/molecule/feedback/test/fixtures.js +43 -0
  656. package/lib/molecule/feedback/test/fixtures.js.map +1 -0
  657. package/lib/molecule/filters/test/fixtures.js +52 -0
  658. package/lib/molecule/filters/test/fixtures.js.map +1 -0
  659. package/lib/molecule/forum/forum-comment/test/fixtures.js +28 -0
  660. package/lib/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
  661. package/lib/molecule/forum/forum-post/test/fixtures.js +49 -0
  662. package/lib/molecule/forum/forum-post/test/fixtures.js.map +1 -0
  663. package/lib/molecule/forum/forum-thread/test/fixtures.js +28 -0
  664. package/lib/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
  665. package/lib/molecule/hero/test/fixtures.js +25 -0
  666. package/lib/molecule/hero/test/fixtures.js.map +1 -0
  667. package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js +25 -0
  668. package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +1 -0
  669. package/lib/molecule/list-badges/test/fixtures.js +31 -0
  670. package/lib/molecule/list-badges/test/fixtures.js.map +1 -0
  671. package/lib/molecule/login-alert/test/fixtures.js +22 -0
  672. package/lib/molecule/login-alert/test/fixtures.js.map +1 -0
  673. package/lib/molecule/menu-list/test/fixtures.js +22 -0
  674. package/lib/molecule/menu-list/test/fixtures.js.map +1 -0
  675. package/lib/molecule/message-popin/test/fixtures.js +22 -0
  676. package/lib/molecule/message-popin/test/fixtures.js.map +1 -0
  677. package/lib/molecule/modal/test/fixtures.js +22 -0
  678. package/lib/molecule/modal/test/fixtures.js.map +1 -0
  679. package/lib/molecule/module-bubble/test/fixtures.js +28 -0
  680. package/lib/molecule/module-bubble/test/fixtures.js.map +1 -0
  681. package/lib/molecule/module-card/test/fixtures.js +28 -0
  682. package/lib/molecule/module-card/test/fixtures.js.map +1 -0
  683. package/lib/molecule/news/test/fixtures.js +37 -0
  684. package/lib/molecule/news/test/fixtures.js.map +1 -0
  685. package/lib/molecule/notification-banner/test/fixtures.js +28 -0
  686. package/lib/molecule/notification-banner/test/fixtures.js.map +1 -0
  687. package/lib/molecule/pagination/test/fixtures.js +25 -0
  688. package/lib/molecule/pagination/test/fixtures.js.map +1 -0
  689. package/lib/molecule/payment-form/test/fixtures.js +28 -0
  690. package/lib/molecule/payment-form/test/fixtures.js.map +1 -0
  691. package/lib/molecule/pdf/test/fixtures.js +22 -0
  692. package/lib/molecule/pdf/test/fixtures.js.map +1 -0
  693. package/lib/molecule/popin/test/fixtures.js +34 -0
  694. package/lib/molecule/popin/test/fixtures.js.map +1 -0
  695. package/lib/molecule/product-card/test/fixtures.js +22 -0
  696. package/lib/molecule/product-card/test/fixtures.js.map +1 -0
  697. package/lib/molecule/progress-bar/test/fixtures.js +25 -0
  698. package/lib/molecule/progress-bar/test/fixtures.js.map +1 -0
  699. package/lib/molecule/questions/drop-down/test/fixtures.js +25 -0
  700. package/lib/molecule/questions/drop-down/test/fixtures.js.map +1 -0
  701. package/lib/molecule/questions/free-text/test/fixtures.js +28 -0
  702. package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -0
  703. package/lib/molecule/questions/qcm/test/fixtures.js +31 -0
  704. package/lib/molecule/questions/qcm/test/fixtures.js.map +1 -0
  705. package/lib/molecule/questions/qcm-drag/test/fixtures.js +25 -0
  706. package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
  707. package/lib/molecule/questions/qcm-graphic/test/fixtures.js +25 -0
  708. package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
  709. package/lib/molecule/questions/question-range/test/fixtures.js +22 -0
  710. package/lib/molecule/questions/question-range/test/fixtures.js.map +1 -0
  711. package/lib/molecule/questions/template/test/fixtures.js +25 -0
  712. package/lib/molecule/questions/template/test/fixtures.js.map +1 -0
  713. package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
  714. package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
  715. package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
  716. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  717. package/lib/molecule/resource-player/test/fixtures.js +40 -0
  718. package/lib/molecule/resource-player/test/fixtures.js.map +1 -0
  719. package/lib/molecule/review-correction-popin/test/fixtures.js +25 -0
  720. package/lib/molecule/review-correction-popin/test/fixtures.js.map +1 -0
  721. package/lib/molecule/review-header-steps/test/fixtures.js +37 -0
  722. package/lib/molecule/review-header-steps/test/fixtures.js.map +1 -0
  723. package/lib/molecule/scope-content/test/fixtures.js +43 -0
  724. package/lib/molecule/scope-content/test/fixtures.js.map +1 -0
  725. package/lib/molecule/scope-tabs/test/fixtures.js +28 -0
  726. package/lib/molecule/scope-tabs/test/fixtures.js.map +1 -0
  727. package/lib/molecule/search-form/test/fixtures.js +22 -0
  728. package/lib/molecule/search-form/test/fixtures.js.map +1 -0
  729. package/lib/molecule/select-multiple/test/fixtures.js +49 -0
  730. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -0
  731. package/lib/molecule/setup-cohort-item/test/fixtures.js +31 -0
  732. package/lib/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
  733. package/lib/molecule/setup-section/test/fixtures.js +40 -0
  734. package/lib/molecule/setup-section/test/fixtures.js.map +1 -0
  735. package/lib/molecule/setup-sections/test/fixtures.js +31 -0
  736. package/lib/molecule/setup-sections/test/fixtures.js.map +1 -0
  737. package/lib/molecule/setup-slide/test/fixtures.js +40 -0
  738. package/lib/molecule/setup-slide/test/fixtures.js.map +1 -0
  739. package/lib/molecule/setup-slider/test/fixtures.js +25 -0
  740. package/lib/molecule/setup-slider/test/fixtures.js.map +1 -0
  741. package/lib/molecule/share/test/fixtures.js +22 -0
  742. package/lib/molecule/share/test/fixtures.js.map +1 -0
  743. package/lib/molecule/skill-card/test/fixtures.js +31 -0
  744. package/lib/molecule/skill-card/test/fixtures.js.map +1 -0
  745. package/lib/molecule/ssmenu-list/test/fixtures.js +31 -0
  746. package/lib/molecule/ssmenu-list/test/fixtures.js.map +1 -0
  747. package/lib/molecule/subscription-freemium/test/fixtures.js +22 -0
  748. package/lib/molecule/subscription-freemium/test/fixtures.js.map +1 -0
  749. package/lib/molecule/subscription-premium/test/fixtures.js +25 -0
  750. package/lib/molecule/subscription-premium/test/fixtures.js.map +1 -0
  751. package/lib/molecule/table/test/fixtures.js +31 -0
  752. package/lib/molecule/table/test/fixtures.js.map +1 -0
  753. package/lib/molecule/teams-popin/test/fixtures/loading-background.js +1 -1
  754. package/lib/molecule/teams-popin/test/fixtures/loading-background.js.map +1 -1
  755. package/lib/molecule/teams-popin/test/fixtures/login-background.js +1 -1
  756. package/lib/molecule/teams-popin/test/fixtures/login-background.js.map +1 -1
  757. package/lib/molecule/teams-popin/test/fixtures.js +46 -0
  758. package/lib/molecule/teams-popin/test/fixtures.js.map +1 -0
  759. package/lib/molecule/theme-image/test/fixtures.js +22 -0
  760. package/lib/molecule/theme-image/test/fixtures.js.map +1 -0
  761. package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js +31 -0
  762. package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +1 -0
  763. package/lib/molecule/titled-checkbox/test/fixtures.js +28 -0
  764. package/lib/molecule/titled-checkbox/test/fixtures.js.map +1 -0
  765. package/lib/molecule/unsubscribe/test/fixtures.js +25 -0
  766. package/lib/molecule/unsubscribe/test/fixtures.js.map +1 -0
  767. package/lib/molecule/vertical-tabs/test/fixtures.js +28 -0
  768. package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
  769. package/lib/molecule/video-iframe/test/fixtures.js +40 -0
  770. package/lib/molecule/video-iframe/test/fixtures.js.map +1 -0
  771. package/lib/molecule/video-player/test/fixtures.js +46 -0
  772. package/lib/molecule/video-player/test/fixtures.js.map +1 -0
  773. package/lib/molecule/wizard-summary/style.css +2 -1
  774. package/lib/molecule/wizard-summary/test/fixtures.js +37 -0
  775. package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
  776. package/lib/organism/accordion/container/test/fixtures.js +28 -0
  777. package/lib/organism/accordion/container/test/fixtures.js.map +1 -0
  778. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +28 -0
  779. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  780. package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
  781. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  782. package/lib/organism/accordion/part/test/fixtures.js +25 -0
  783. package/lib/organism/accordion/part/test/fixtures.js.map +1 -0
  784. package/lib/organism/accordion/toggler/test/fixtures.js +28 -0
  785. package/lib/organism/accordion/toggler/test/fixtures.js.map +1 -0
  786. package/lib/organism/brand-analytics/test/fixtures.js +37 -0
  787. package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
  788. package/lib/organism/brand-dashboard/test/fixtures.js +25 -0
  789. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
  790. package/lib/organism/brand-form/test/fixtures.js +58 -0
  791. package/lib/organism/brand-form/test/fixtures.js.map +1 -0
  792. package/lib/organism/brand-table/test/fixtures.js +31 -0
  793. package/lib/organism/brand-table/test/fixtures.js.map +1 -0
  794. package/lib/organism/brand-upload/test/fixtures.js +25 -0
  795. package/lib/organism/brand-upload/test/fixtures.js.map +1 -0
  796. package/lib/organism/cards-grid/test/fixtures.js +31 -0
  797. package/lib/organism/cards-grid/test/fixtures.js.map +1 -0
  798. package/lib/organism/cart/test/fixtures.js +22 -0
  799. package/lib/organism/cart/test/fixtures.js.map +1 -0
  800. package/lib/organism/content-translation/test/fixtures.js +25 -0
  801. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  802. package/lib/organism/course-selection/test/fixtures.js +40 -0
  803. package/lib/organism/course-selection/test/fixtures.js.map +1 -0
  804. package/lib/organism/discussion/test/fixtures.js +31 -0
  805. package/lib/organism/discussion/test/fixtures.js.map +1 -0
  806. package/lib/organism/get-the-app/test/fixtures.js +22 -0
  807. package/lib/organism/get-the-app/test/fixtures.js.map +1 -0
  808. package/lib/organism/grid-list/test/fixtures.js +22 -0
  809. package/lib/organism/grid-list/test/fixtures.js.map +1 -0
  810. package/lib/organism/header/test/fixtures.js +22 -0
  811. package/lib/organism/header/test/fixtures.js.map +1 -0
  812. package/lib/organism/hero/test/fixtures.js +28 -0
  813. package/lib/organism/hero/test/fixtures.js.map +1 -0
  814. package/lib/organism/list-item/test/fixtures.js +31 -0
  815. package/lib/organism/list-item/test/fixtures.js.map +1 -0
  816. package/lib/organism/list-items/test/fixtures.js +28 -0
  817. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  818. package/lib/organism/mooc/image-slider/test/fixtures.js +25 -0
  819. package/lib/organism/mooc/image-slider/test/fixtures.js.map +1 -0
  820. package/lib/organism/mooc-footer/test/fixtures.js +37 -0
  821. package/lib/organism/mooc-footer/test/fixtures.js.map +1 -0
  822. package/lib/organism/mooc-header/test/fixtures.js +49 -0
  823. package/lib/organism/mooc-header/test/fixtures.js.map +1 -0
  824. package/lib/organism/popin/test/fixtures.js +22 -0
  825. package/lib/organism/popin/test/fixtures.js.map +1 -0
  826. package/lib/organism/resource-browser/test/fixtures.js +58 -0
  827. package/lib/organism/resource-browser/test/fixtures.js.map +1 -0
  828. package/lib/organism/review-header/test/fixtures.js +37 -0
  829. package/lib/organism/review-header/test/fixtures.js.map +1 -0
  830. package/lib/organism/review-skills/test/fixtures.js +28 -0
  831. package/lib/organism/review-skills/test/fixtures.js.map +1 -0
  832. package/lib/organism/rewards-form/test/fixtures.js +31 -0
  833. package/lib/organism/rewards-form/test/fixtures.js.map +1 -0
  834. package/lib/organism/search-and-chips-results/test/fixtures.js +37 -0
  835. package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -0
  836. package/lib/organism/settings/test/fixtures.js +31 -0
  837. package/lib/organism/settings/test/fixtures.js.map +1 -0
  838. package/lib/organism/setup-header/test/fixtures.js +25 -0
  839. package/lib/organism/setup-header/test/fixtures.js.map +1 -0
  840. package/lib/organism/sidebar/test/fixtures.js +37 -0
  841. package/lib/organism/sidebar/test/fixtures.js.map +1 -0
  842. package/lib/organism/slider/test/fixtures.js +25 -0
  843. package/lib/organism/slider/test/fixtures.js.map +1 -0
  844. package/lib/organism/user-preferences/test/fixtures.js +22 -0
  845. package/lib/organism/user-preferences/test/fixtures.js.map +1 -0
  846. package/lib/organism/wizard-contents/test/fixtures.js +43 -0
  847. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  848. package/lib/template/activity/test/fixtures.js +34 -0
  849. package/lib/template/activity/test/fixtures.js.map +1 -0
  850. package/lib/template/app-player/loading/test/fixtures.js +22 -0
  851. package/lib/template/app-player/loading/test/fixtures.js.map +1 -0
  852. package/lib/template/app-player/player/slides/footer/test/fixtures.js +46 -0
  853. package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
  854. package/lib/template/app-player/player/slides/header/test/fixtures.js +37 -0
  855. package/lib/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
  856. package/lib/template/app-player/player/slides/test/fixtures.js +121 -0
  857. package/lib/template/app-player/player/slides/test/fixtures.js.map +1 -0
  858. package/lib/template/app-player/player/test/fixtures.js +85 -0
  859. package/lib/template/app-player/player/test/fixtures.js.map +1 -0
  860. package/lib/template/app-player/popin-correction/test/fixtures.js +73 -0
  861. package/lib/template/app-player/popin-correction/test/fixtures.js.map +1 -0
  862. package/lib/template/app-player/popin-end/test/fixtures.js +79 -0
  863. package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -0
  864. package/lib/template/app-player/popin-header/test/fixtures.js +46 -0
  865. package/lib/template/app-player/popin-header/test/fixtures.js.map +1 -0
  866. package/lib/template/back-office/brand-create/test/fixtures.js +31 -0
  867. package/lib/template/back-office/brand-create/test/fixtures.js.map +1 -0
  868. package/lib/template/back-office/brand-list/test/fixtures.js +28 -0
  869. package/lib/template/back-office/brand-list/test/fixtures.js.map +1 -0
  870. package/lib/template/back-office/brand-update/test/fixtures.js +136 -0
  871. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -0
  872. package/lib/template/back-office/dashboard-preview/test/fixtures.js +37 -0
  873. package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
  874. package/lib/template/battle-requests/test/fixtures.js +22 -0
  875. package/lib/template/battle-requests/test/fixtures.js.map +1 -0
  876. package/lib/template/cockpit/jw-uploader/test/fixtures.js +22 -0
  877. package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
  878. package/lib/template/common/authors/test/fixtures.js +25 -0
  879. package/lib/template/common/authors/test/fixtures.js.map +1 -0
  880. package/lib/template/common/coorp-header/test/fixtures.js +25 -0
  881. package/lib/template/common/coorp-header/test/fixtures.js.map +1 -0
  882. package/lib/template/common/dashboard/test/fixtures.js +28 -0
  883. package/lib/template/common/dashboard/test/fixtures.js.map +1 -0
  884. package/lib/template/common/discipline/test/fixtures.js +73 -0
  885. package/lib/template/common/discipline/test/fixtures.js.map +1 -0
  886. package/lib/template/common/search-page/test/fixtures.js +28 -0
  887. package/lib/template/common/search-page/test/fixtures.js.map +1 -0
  888. package/lib/template/external-course/test/fixtures.js +55 -0
  889. package/lib/template/external-course/test/fixtures.js.map +1 -0
  890. package/lib/template/review-dashboard-skills/test/fixtures.js +28 -0
  891. package/lib/template/review-dashboard-skills/test/fixtures.js.map +1 -0
  892. package/lib/template/teams-dashboard/test/fixtures.js +28 -0
  893. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -0
  894. package/package.json +7 -4
@@ -0,0 +1,158 @@
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 React, { useMemo, useRef, useEffect, useState } from 'react';
4
+ import PropTypes from 'prop-types';
5
+ import classnames from 'classnames';
6
+ import lottie from 'lottie-web';
7
+ import get from 'lodash/fp/get';
8
+ import has from 'lodash/fp/has';
9
+ import includes from 'lodash/fp/includes';
10
+ import keys from 'lodash/fp/keys';
11
+ import omit from 'lodash/fp/omit';
12
+ import unfetch from 'isomorphic-unfetch';
13
+ import style from './style.css';
14
+ export const ANIMATION_CONTROL = {
15
+ play: 'play',
16
+ pause: 'pause',
17
+ stop: 'stop',
18
+ loading: 'loading'
19
+ };
20
+
21
+ const isIE11 = () => {
22
+ if (typeof window === 'undefined') return;
23
+ const userAgent = get('navigator.userAgent', window);
24
+ const hasMsCrypto = has('msCrypto', window);
25
+ const hasRevision = includes('rv:', userAgent);
26
+ const hasTrident = includes('Trident/', userAgent);
27
+ return hasMsCrypto || hasRevision && hasTrident;
28
+ };
29
+
30
+ export const fetchAndLoadAnimation = async (_lottie, _fetch, animationSrc, containerRef, loop, animationClassnames, hideOnTransparent, autoplay) => {
31
+ const animationUrl = new URL(animationSrc).toString();
32
+ const fetchResult = await _fetch(animationUrl, {
33
+ headers: {
34
+ 'X-Requested-With': 'XMLHttpRequest',
35
+ 'Content-Type': 'application/json'
36
+ }
37
+ });
38
+ const animationData = await fetchResult.json();
39
+
40
+ const animation = _lottie.loadAnimation({
41
+ container: containerRef.current,
42
+ // the dom element that will contain the animation
43
+ renderer: 'svg',
44
+ autoplay,
45
+ loop,
46
+ animationData,
47
+ rendererSettings: {
48
+ className: animationClassnames,
49
+ hideOnTransparent,
50
+ preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop
51
+
52
+ }
53
+ });
54
+
55
+ return animation;
56
+ };
57
+
58
+ const LottieWrapper = props => {
59
+ const {
60
+ className,
61
+ 'data-name': dataName,
62
+ 'aria-label': ariaLabel,
63
+ animationSrc,
64
+ loop = false,
65
+ rendererSettings = {},
66
+ width,
67
+ height,
68
+ ie11ImageBackup,
69
+ backupImageClassName,
70
+ autoplay = true,
71
+ animationControl
72
+ } = props;
73
+ const {
74
+ className: animationClassName,
75
+ hideOnTransparent = true
76
+ } = rendererSettings;
77
+ const containerRef = useRef(null); // lottie's animation instance
78
+
79
+ const [animationItem, setAnimationItem] = useState(null);
80
+ const [isAnimationVisible, setIsAnimationVisible] = useState(autoplay);
81
+
82
+ const _isIE11 = useMemo(() => isIE11(), []);
83
+
84
+ const wrapperClassName = useMemo(() => classnames(className, style.lottieContainer), [className]);
85
+ const lottieAnimationClassName = useMemo(() => classnames(animationClassName, style.animation), [animationClassName]);
86
+ const ie11BackupImageClassName = useMemo(() => classnames(backupImageClassName, style.backupImage), [backupImageClassName]);
87
+ useEffect(() => {
88
+ // enzyme does not handle well the state update after an async useEffect in tests
89
+ // to remove when the migration towards @testing-library/react is done
90
+
91
+ /* istanbul ignore next */
92
+ if (animationItem && includes(animationControl, keys(omit('loading', ANIMATION_CONTROL))) && !autoplay) {
93
+ setIsAnimationVisible(true);
94
+ animationItem[animationControl]();
95
+ if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);
96
+ }
97
+ }, [animationControl, animationItem, autoplay]);
98
+ useEffect(() => {
99
+ const loadAnimation = async () => {
100
+ if (!_isIE11 && !animationItem) {
101
+ /* istanbul ignore else */
102
+ if (typeof window !== 'undefined') {
103
+ window.lottie = lottie;
104
+ }
105
+
106
+ const animation = await fetchAndLoadAnimation(lottie, unfetch, animationSrc, containerRef, loop, lottieAnimationClassName, hideOnTransparent, autoplay);
107
+ /* istanbul ignore next */
108
+
109
+ setAnimationItem(animation);
110
+ }
111
+ };
112
+
113
+ loadAnimation();
114
+ return () => animationItem &&
115
+ /* istanbul ignore next */
116
+ lottie.destroy(animationItem.name);
117
+ }, [lottieAnimationClassName, containerRef, hideOnTransparent, loop, animationSrc, _isIE11, animationItem, autoplay]);
118
+ return /*#__PURE__*/React.createElement("div", {
119
+ ref: containerRef,
120
+ "aria-label": ariaLabel,
121
+ "data-name": dataName,
122
+ className: wrapperClassName,
123
+ style: _extends(_extends(_extends({}, width && {
124
+ width: `${width}px`,
125
+ maxWidth: `${width}px`
126
+ }), height && {
127
+ height: `${height}px`,
128
+ maxHeight: `${height}px`
129
+ }), {}, {
130
+ opacity: isAnimationVisible ? 1 : 0,
131
+ transition: 'opacity 0.25s ease-in'
132
+ })
133
+ }, _isIE11 ? /*#__PURE__*/React.createElement("img", {
134
+ src: ie11ImageBackup,
135
+ className: ie11BackupImageClassName,
136
+ "data-name": "ie11-backup-image"
137
+ }) : null);
138
+ };
139
+
140
+ LottieWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
141
+ 'aria-label': PropTypes.string.isRequired,
142
+ 'data-name': PropTypes.string,
143
+ animationSrc: PropTypes.string.isRequired,
144
+ loop: PropTypes.bool,
145
+ rendererSettings: PropTypes.shape({
146
+ hideOnTransparent: PropTypes.bool,
147
+ className: PropTypes.string
148
+ }),
149
+ height: PropTypes.number,
150
+ width: PropTypes.number,
151
+ className: PropTypes.string,
152
+ ie11ImageBackup: PropTypes.string.isRequired,
153
+ backupImageClassName: PropTypes.string,
154
+ autoplay: PropTypes.bool,
155
+ animationControl: PropTypes.oneOf(keys(ANIMATION_CONTROL))
156
+ } : {};
157
+ export default LottieWrapper;
158
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/lottie-wrapper/index.js"],"names":["React","useMemo","useRef","useEffect","useState","PropTypes","classnames","lottie","get","has","includes","keys","omit","unfetch","style","ANIMATION_CONTROL","play","pause","stop","loading","isIE11","window","userAgent","hasMsCrypto","hasRevision","hasTrident","fetchAndLoadAnimation","_lottie","_fetch","animationSrc","containerRef","loop","animationClassnames","hideOnTransparent","autoplay","animationUrl","URL","toString","fetchResult","headers","animationData","json","animation","loadAnimation","container","current","renderer","rendererSettings","className","preserveAspectRatio","LottieWrapper","props","dataName","ariaLabel","width","height","ie11ImageBackup","backupImageClassName","animationControl","animationClassName","animationItem","setAnimationItem","isAnimationVisible","setIsAnimationVisible","_isIE11","wrapperClassName","lottieContainer","lottieAnimationClassName","ie11BackupImageClassName","backupImage","destroy","name","maxWidth","maxHeight","opacity","transition","propTypes","string","isRequired","bool","shape","number","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,EAAwBC,MAAxB,EAAgCC,SAAhC,EAA2CC,QAA3C,QAA0D,OAA1D;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,MAAP,MAAmB,YAAnB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,QAAP,MAAqB,oBAArB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,OAAP,MAAoB,oBAApB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,iBAAiB,GAAG;AAC/BC,EAAAA,IAAI,EAAE,MADyB;AAE/BC,EAAAA,KAAK,EAAE,OAFwB;AAG/BC,EAAAA,IAAI,EAAE,MAHyB;AAI/BC,EAAAA,OAAO,EAAE;AAJsB,CAA1B;;AAOP,MAAMC,MAAM,GAAG,MAAM;AACnB,MAAI,OAAOC,MAAP,KAAkB,WAAtB,EAAmC;AACnC,QAAMC,SAAS,GAAGd,GAAG,CAAC,qBAAD,EAAwBa,MAAxB,CAArB;AACA,QAAME,WAAW,GAAGd,GAAG,CAAC,UAAD,EAAaY,MAAb,CAAvB;AACA,QAAMG,WAAW,GAAGd,QAAQ,CAAC,KAAD,EAAQY,SAAR,CAA5B;AACA,QAAMG,UAAU,GAAGf,QAAQ,CAAC,UAAD,EAAaY,SAAb,CAA3B;AAEA,SAAOC,WAAW,IAAKC,WAAW,IAAIC,UAAtC;AACD,CARD;;AAUA,OAAO,MAAMC,qBAAqB,GAAG,OACnCC,OADmC,EAEnCC,MAFmC,EAGnCC,YAHmC,EAInCC,YAJmC,EAKnCC,IALmC,EAMnCC,mBANmC,EAOnCC,iBAPmC,EAQnCC,QARmC,KAShC;AACH,QAAMC,YAAY,GAAG,IAAIC,GAAJ,CAAQP,YAAR,EAAsBQ,QAAtB,EAArB;AACA,QAAMC,WAAW,GAAG,MAAMV,MAAM,CAACO,YAAD,EAAe;AAC7CI,IAAAA,OAAO,EAAE;AACP,0BAAoB,gBADb;AAEP,sBAAgB;AAFT;AADoC,GAAf,CAAhC;AAOA,QAAMC,aAAa,GAAG,MAAMF,WAAW,CAACG,IAAZ,EAA5B;;AAEA,QAAMC,SAAS,GAAGf,OAAO,CAACgB,aAAR,CAAsB;AACtCC,IAAAA,SAAS,EAAEd,YAAY,CAACe,OADc;AACL;AACjCC,IAAAA,QAAQ,EAAE,KAF4B;AAGtCZ,IAAAA,QAHsC;AAItCH,IAAAA,IAJsC;AAKtCS,IAAAA,aALsC;AAMtCO,IAAAA,gBAAgB,EAAE;AAChBC,MAAAA,SAAS,EAAEhB,mBADK;AAEhBC,MAAAA,iBAFgB;AAGhBgB,MAAAA,mBAAmB,EAAE,eAHL,CAGqB;;AAHrB;AANoB,GAAtB,CAAlB;;AAYA,SAAOP,SAAP;AACD,CAjCM;;AAmCP,MAAMQ,aAAa,GAAGC,KAAK,IAAI;AAC7B,QAAM;AACJH,IAAAA,SADI;AAEJ,iBAAaI,QAFT;AAGJ,kBAAcC,SAHV;AAIJxB,IAAAA,YAJI;AAKJE,IAAAA,IAAI,GAAG,KALH;AAMJgB,IAAAA,gBAAgB,GAAG,EANf;AAOJO,IAAAA,KAPI;AAQJC,IAAAA,MARI;AASJC,IAAAA,eATI;AAUJC,IAAAA,oBAVI;AAWJvB,IAAAA,QAAQ,GAAG,IAXP;AAYJwB,IAAAA;AAZI,MAaFP,KAbJ;AAeA,QAAM;AAACH,IAAAA,SAAS,EAAEW,kBAAZ;AAAgC1B,IAAAA,iBAAiB,GAAG;AAApD,MAA4Dc,gBAAlE;AAEA,QAAMjB,YAAY,GAAG5B,MAAM,CAAC,IAAD,CAA3B,CAlB6B,CAoB7B;;AACA,QAAM,CAAC0D,aAAD,EAAgBC,gBAAhB,IAAoCzD,QAAQ,CAAC,IAAD,CAAlD;AAEA,QAAM,CAAC0D,kBAAD,EAAqBC,qBAArB,IAA8C3D,QAAQ,CAAC8B,QAAD,CAA5D;;AAEA,QAAM8B,OAAO,GAAG/D,OAAO,CAAC,MAAMmB,MAAM,EAAb,EAAiB,EAAjB,CAAvB;;AAEA,QAAM6C,gBAAgB,GAAGhE,OAAO,CAAC,MAAMK,UAAU,CAAC0C,SAAD,EAAYlC,KAAK,CAACoD,eAAlB,CAAjB,EAAqD,CAAClB,SAAD,CAArD,CAAhC;AAEA,QAAMmB,wBAAwB,GAAGlE,OAAO,CAAC,MAAMK,UAAU,CAACqD,kBAAD,EAAqB7C,KAAK,CAAC4B,SAA3B,CAAjB,EAAwD,CAC9FiB,kBAD8F,CAAxD,CAAxC;AAIA,QAAMS,wBAAwB,GAAGnE,OAAO,CACtC,MAAMK,UAAU,CAACmD,oBAAD,EAAuB3C,KAAK,CAACuD,WAA7B,CADsB,EAEtC,CAACZ,oBAAD,CAFsC,CAAxC;AAKAtD,EAAAA,SAAS,CAAC,MAAM;AACd;AACA;;AACA;AACA,QACEyD,aAAa,IACblD,QAAQ,CAACgD,gBAAD,EAAmB/C,IAAI,CAACC,IAAI,CAAC,SAAD,EAAYG,iBAAZ,CAAL,CAAvB,CADR,IAEA,CAACmB,QAHH,EAIE;AACA6B,MAAAA,qBAAqB,CAAC,IAAD,CAArB;AACAH,MAAAA,aAAa,CAACF,gBAAD,CAAb;AACA,UAAIA,gBAAgB,KAAK3C,iBAAiB,CAACG,IAA3C,EAAiD6C,qBAAqB,CAAC,KAAD,CAArB;AAClD;AACF,GAbQ,EAaN,CAACL,gBAAD,EAAmBE,aAAnB,EAAkC1B,QAAlC,CAbM,CAAT;AAeA/B,EAAAA,SAAS,CAAC,MAAM;AACd,UAAMwC,aAAa,GAAG,YAAY;AAChC,UAAI,CAACqB,OAAD,IAAY,CAACJ,aAAjB,EAAgC;AAC9B;AACA,YAAI,OAAOvC,MAAP,KAAkB,WAAtB,EAAmC;AACjCA,UAAAA,MAAM,CAACd,MAAP,GAAgBA,MAAhB;AACD;;AACD,cAAMmC,SAAS,GAAG,MAAMhB,qBAAqB,CAC3CnB,MAD2C,EAE3CM,OAF2C,EAG3CgB,YAH2C,EAI3CC,YAJ2C,EAK3CC,IAL2C,EAM3CoC,wBAN2C,EAO3ClC,iBAP2C,EAQ3CC,QAR2C,CAA7C;AAWA;;AACA2B,QAAAA,gBAAgB,CAACnB,SAAD,CAAhB;AACD;AACF,KApBD;;AAsBAC,IAAAA,aAAa;AACb,WAAO,MAAMiB,aAAa;AAAI;AAA2BrD,IAAAA,MAAM,CAAC+D,OAAP,CAAeV,aAAa,CAACW,IAA7B,CAAzD;AACD,GAzBQ,EAyBN,CACDJ,wBADC,EAEDrC,YAFC,EAGDG,iBAHC,EAIDF,IAJC,EAKDF,YALC,EAMDmC,OANC,EAODJ,aAPC,EAQD1B,QARC,CAzBM,CAAT;AAoCA,sBACE;AACE,IAAA,GAAG,EAAEJ,YADP;AAEE,kBAAYuB,SAFd;AAGE,iBAAWD,QAHb;AAIE,IAAA,SAAS,EAAEa,gBAJb;AAKE,IAAA,KAAK,iCACCX,KAAK,IAAI;AACXA,MAAAA,KAAK,EAAG,GAAEA,KAAM,IADL;AAEXkB,MAAAA,QAAQ,EAAG,GAAElB,KAAM;AAFR,KADV,GAKCC,MAAM,IAAI;AACZA,MAAAA,MAAM,EAAG,GAAEA,MAAO,IADN;AAEZkB,MAAAA,SAAS,EAAG,GAAElB,MAAO;AAFT,KALX;AASHmB,MAAAA,OAAO,EAAEZ,kBAAkB,GAAG,CAAH,GAAO,CAT/B;AAUHa,MAAAA,UAAU,EAAE;AAVT;AALP,KAkBGX,OAAO,gBACN;AACE,IAAA,GAAG,EAAER,eADP;AAEE,IAAA,SAAS,EAAEY,wBAFb;AAGE,iBAAU;AAHZ,IADM,GAMJ,IAxBN,CADF;AA4BD,CArHD;;AAuHAlB,aAAa,CAAC0B,SAAd,2CAA0B;AACxB,gBAAcvE,SAAS,CAACwE,MAAV,CAAiBC,UADP;AAExB,eAAazE,SAAS,CAACwE,MAFC;AAGxBhD,EAAAA,YAAY,EAAExB,SAAS,CAACwE,MAAV,CAAiBC,UAHP;AAIxB/C,EAAAA,IAAI,EAAE1B,SAAS,CAAC0E,IAJQ;AAKxBhC,EAAAA,gBAAgB,EAAE1C,SAAS,CAAC2E,KAAV,CAAgB;AAChC/C,IAAAA,iBAAiB,EAAE5B,SAAS,CAAC0E,IADG;AAEhC/B,IAAAA,SAAS,EAAE3C,SAAS,CAACwE;AAFW,GAAhB,CALM;AASxBtB,EAAAA,MAAM,EAAElD,SAAS,CAAC4E,MATM;AAUxB3B,EAAAA,KAAK,EAAEjD,SAAS,CAAC4E,MAVO;AAWxBjC,EAAAA,SAAS,EAAE3C,SAAS,CAACwE,MAXG;AAYxBrB,EAAAA,eAAe,EAAEnD,SAAS,CAACwE,MAAV,CAAiBC,UAZV;AAaxBrB,EAAAA,oBAAoB,EAAEpD,SAAS,CAACwE,MAbR;AAcxB3C,EAAAA,QAAQ,EAAE7B,SAAS,CAAC0E,IAdI;AAexBrB,EAAAA,gBAAgB,EAAErD,SAAS,CAAC6E,KAAV,CAAgBvE,IAAI,CAACI,iBAAD,CAApB;AAfM,CAA1B;AAkBA,eAAemC,aAAf","sourcesContent":["import React, {useMemo, useRef, useEffect, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport lottie from 'lottie-web';\nimport get from 'lodash/fp/get';\nimport has from 'lodash/fp/has';\nimport includes from 'lodash/fp/includes';\nimport keys from 'lodash/fp/keys';\nimport omit from 'lodash/fp/omit';\nimport unfetch from 'isomorphic-unfetch';\nimport style from './style.css';\n\nexport const ANIMATION_CONTROL = {\n play: 'play',\n pause: 'pause',\n stop: 'stop',\n loading: 'loading'\n};\n\nconst isIE11 = () => {\n if (typeof window === 'undefined') return;\n const userAgent = get('navigator.userAgent', window);\n const hasMsCrypto = has('msCrypto', window);\n const hasRevision = includes('rv:', userAgent);\n const hasTrident = includes('Trident/', userAgent);\n\n return hasMsCrypto || (hasRevision && hasTrident);\n};\n\nexport const fetchAndLoadAnimation = async (\n _lottie,\n _fetch,\n animationSrc,\n containerRef,\n loop,\n animationClassnames,\n hideOnTransparent,\n autoplay\n) => {\n const animationUrl = new URL(animationSrc).toString();\n const fetchResult = await _fetch(animationUrl, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json'\n }\n });\n\n const animationData = await fetchResult.json();\n\n const animation = _lottie.loadAnimation({\n container: containerRef.current, // the dom element that will contain the animation\n renderer: 'svg',\n autoplay,\n loop,\n animationData,\n rendererSettings: {\n className: animationClassnames,\n hideOnTransparent,\n preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop\n }\n });\n return animation;\n};\n\nconst LottieWrapper = props => {\n const {\n className,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n animationSrc,\n loop = false,\n rendererSettings = {},\n width,\n height,\n ie11ImageBackup,\n backupImageClassName,\n autoplay = true,\n animationControl\n } = props;\n\n const {className: animationClassName, hideOnTransparent = true} = rendererSettings;\n\n const containerRef = useRef(null);\n\n // lottie's animation instance\n const [animationItem, setAnimationItem] = useState(null);\n\n const [isAnimationVisible, setIsAnimationVisible] = useState(autoplay);\n\n const _isIE11 = useMemo(() => isIE11(), []);\n\n const wrapperClassName = useMemo(() => classnames(className, style.lottieContainer), [className]);\n\n const lottieAnimationClassName = useMemo(() => classnames(animationClassName, style.animation), [\n animationClassName\n ]);\n\n const ie11BackupImageClassName = useMemo(\n () => classnames(backupImageClassName, style.backupImage),\n [backupImageClassName]\n );\n\n useEffect(() => {\n // enzyme does not handle well the state update after an async useEffect in tests\n // to remove when the migration towards @testing-library/react is done\n /* istanbul ignore next */\n if (\n animationItem &&\n includes(animationControl, keys(omit('loading', ANIMATION_CONTROL))) &&\n !autoplay\n ) {\n setIsAnimationVisible(true);\n animationItem[animationControl]();\n if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);\n }\n }, [animationControl, animationItem, autoplay]);\n\n useEffect(() => {\n const loadAnimation = async () => {\n if (!_isIE11 && !animationItem) {\n /* istanbul ignore else */\n if (typeof window !== 'undefined') {\n window.lottie = lottie;\n }\n const animation = await fetchAndLoadAnimation(\n lottie,\n unfetch,\n animationSrc,\n containerRef,\n loop,\n lottieAnimationClassName,\n hideOnTransparent,\n autoplay\n );\n\n /* istanbul ignore next */\n setAnimationItem(animation);\n }\n };\n\n loadAnimation();\n return () => animationItem && /* istanbul ignore next */ lottie.destroy(animationItem.name);\n }, [\n lottieAnimationClassName,\n containerRef,\n hideOnTransparent,\n loop,\n animationSrc,\n _isIE11,\n animationItem,\n autoplay\n ]);\n\n return (\n <div\n ref={containerRef}\n aria-label={ariaLabel}\n data-name={dataName}\n className={wrapperClassName}\n style={{\n ...(width && {\n width: `${width}px`,\n maxWidth: `${width}px`\n }),\n ...(height && {\n height: `${height}px`,\n maxHeight: `${height}px`\n }),\n opacity: isAnimationVisible ? 1 : 0,\n transition: 'opacity 0.25s ease-in'\n }}\n >\n {_isIE11 ? (\n <img\n src={ie11ImageBackup}\n className={ie11BackupImageClassName}\n data-name=\"ie11-backup-image\"\n />\n ) : null}\n </div>\n );\n};\n\nLottieWrapper.propTypes = {\n 'aria-label': PropTypes.string.isRequired,\n 'data-name': PropTypes.string,\n animationSrc: PropTypes.string.isRequired,\n loop: PropTypes.bool,\n rendererSettings: PropTypes.shape({\n hideOnTransparent: PropTypes.bool,\n className: PropTypes.string\n }),\n height: PropTypes.number,\n width: PropTypes.number,\n className: PropTypes.string,\n ie11ImageBackup: PropTypes.string.isRequired,\n backupImageClassName: PropTypes.string,\n autoplay: PropTypes.bool,\n animationControl: PropTypes.oneOf(keys(ANIMATION_CONTROL))\n};\n\nexport default LottieWrapper;\n"],"file":"index.js"}
@@ -0,0 +1,15 @@
1
+ .lottieContainer {
2
+ position: relative;
3
+ display: flex;
4
+ }
5
+
6
+ .animation {
7
+ display: flex;
8
+ height: 100%;
9
+ width: 100%;
10
+ }
11
+
12
+ .backupImage {
13
+ height: 100%;
14
+ width: 100%;
15
+ }
@@ -0,0 +1,19 @@
1
+ export default {
2
+ props: {
3
+ 'aria-label': 'aria lottie',
4
+ 'data-name': 'default-lottie',
5
+ className: undefined,
6
+ animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
7
+ loop: undefined,
8
+ autoplay: true,
9
+ rendererSettings: {
10
+ hideOnTransparent: false,
11
+ animationClassName: ''
12
+ },
13
+ height: 600,
14
+ width: 1000,
15
+ ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',
16
+ animationControl: undefined
17
+ }
18
+ };
19
+ //# sourceMappingURL=confetti.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/confetti.js"],"names":["props","className","undefined","animationSrc","loop","autoplay","rendererSettings","hideOnTransparent","animationClassName","height","width","ie11ImageBackup","animationControl"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc,aADT;AAEL,iBAAa,gBAFR;AAGLC,IAAAA,SAAS,EAAEC,SAHN;AAILC,IAAAA,YAAY,EAAE,yEAJT;AAKLC,IAAAA,IAAI,EAAEF,SALD;AAMLG,IAAAA,QAAQ,EAAE,IANL;AAOLC,IAAAA,gBAAgB,EAAE;AAChBC,MAAAA,iBAAiB,EAAE,KADH;AAEhBC,MAAAA,kBAAkB,EAAE;AAFJ,KAPb;AAWLC,IAAAA,MAAM,EAAE,GAXH;AAYLC,IAAAA,KAAK,EAAE,IAZF;AAaLC,IAAAA,eAAe,EACb,iFAdG;AAeLC,IAAAA,gBAAgB,EAAEV;AAfb;AADM,CAAf","sourcesContent":["export default {\n props: {\n 'aria-label': 'aria lottie',\n 'data-name': 'default-lottie',\n className: undefined,\n animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',\n loop: undefined,\n autoplay: true,\n rendererSettings: {\n hideOnTransparent: false,\n animationClassName: ''\n },\n height: 600,\n width: 1000,\n ie11ImageBackup:\n 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',\n animationControl: undefined\n }\n};\n"],"file":"confetti.js"}
@@ -0,0 +1,10 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import defaultProps from './default';
4
+ export default {
5
+ props: _extends(_extends({}, defaultProps.props), {}, {
6
+ autoplay: false,
7
+ animationControl: 'loading'
8
+ })
9
+ };
10
+ //# sourceMappingURL=controls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/controls.js"],"names":["defaultProps","props","autoplay","animationControl"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,WAAzB;AAEA,eAAe;AACbC,EAAAA,KAAK,wBACAD,YAAY,CAACC,KADb;AAEHC,IAAAA,QAAQ,EAAE,KAFP;AAGHC,IAAAA,gBAAgB,EAAE;AAHf;AADQ,CAAf","sourcesContent":["import defaultProps from './default';\n\nexport default {\n props: {\n ...defaultProps.props,\n autoplay: false,\n animationControl: 'loading'\n }\n};\n"],"file":"controls.js"}
@@ -0,0 +1,19 @@
1
+ export default {
2
+ props: {
3
+ 'aria-label': 'aria lottie',
4
+ 'data-name': 'default-lottie',
5
+ className: undefined,
6
+ animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
7
+ loop: false,
8
+ autoplay: undefined,
9
+ rendererSettings: {
10
+ hideOnTransparent: false,
11
+ animationClassName: ''
12
+ },
13
+ height: 200,
14
+ width: 200,
15
+ ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg',
16
+ animationControl: undefined
17
+ }
18
+ };
19
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/default.js"],"names":["props","className","undefined","animationSrc","loop","autoplay","rendererSettings","hideOnTransparent","animationClassName","height","width","ie11ImageBackup","animationControl"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc,aADT;AAEL,iBAAa,gBAFR;AAGLC,IAAAA,SAAS,EAAEC,SAHN;AAILC,IAAAA,YAAY,EAAE,qEAJT;AAKLC,IAAAA,IAAI,EAAE,KALD;AAMLC,IAAAA,QAAQ,EAAEH,SANL;AAOLI,IAAAA,gBAAgB,EAAE;AAChBC,MAAAA,iBAAiB,EAAE,KADH;AAEhBC,MAAAA,kBAAkB,EAAE;AAFJ,KAPb;AAWLC,IAAAA,MAAM,EAAE,GAXH;AAYLC,IAAAA,KAAK,EAAE,GAZF;AAaLC,IAAAA,eAAe,EACb,mFAdG;AAeLC,IAAAA,gBAAgB,EAAEV;AAfb;AADM,CAAf","sourcesContent":["export default {\n props: {\n 'aria-label': 'aria lottie',\n 'data-name': 'default-lottie',\n className: undefined,\n animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',\n loop: false,\n autoplay: undefined,\n rendererSettings: {\n hideOnTransparent: false,\n animationClassName: ''\n },\n height: 200,\n width: 200,\n ie11ImageBackup:\n 'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg',\n animationControl: undefined\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,15 @@
1
+ export default {
2
+ props: {
3
+ 'aria-label': 'aria lottie',
4
+ 'data-name': 'default-lottie',
5
+ className: undefined,
6
+ animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
7
+ loop: true,
8
+ autoplay: true,
9
+ height: 200,
10
+ width: 200,
11
+ ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg',
12
+ animationControl: undefined
13
+ }
14
+ };
15
+ //# sourceMappingURL=rank.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/rank.js"],"names":["props","className","undefined","animationSrc","loop","autoplay","height","width","ie11ImageBackup","animationControl"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc,aADT;AAEL,iBAAa,gBAFR;AAGLC,IAAAA,SAAS,EAAEC,SAHN;AAILC,IAAAA,YAAY,EAAE,qEAJT;AAKLC,IAAAA,IAAI,EAAE,IALD;AAMLC,IAAAA,QAAQ,EAAE,IANL;AAOLC,IAAAA,MAAM,EAAE,GAPH;AAQLC,IAAAA,KAAK,EAAE,GARF;AASLC,IAAAA,eAAe,EACb,kFAVG;AAWLC,IAAAA,gBAAgB,EAAEP;AAXb;AADM,CAAf","sourcesContent":["export default {\n props: {\n 'aria-label': 'aria lottie',\n 'data-name': 'default-lottie',\n className: undefined,\n animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',\n loop: true,\n autoplay: true,\n height: 200,\n width: 200,\n ie11ImageBackup:\n 'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg',\n animationControl: undefined\n }\n};\n"],"file":"rank.js"}
@@ -0,0 +1,19 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomLottieWrapper from '..';
5
+ import fixtureConfetti from './fixtures/confetti';
6
+ import fixtureControls from './fixtures/controls';
7
+ import fixtureDefault from './fixtures/default';
8
+ import fixtureRank from './fixtures/rank';
9
+ test('Atom › AtomLottieWrapper > should have valid propTypes', t => {
10
+ t.pass();
11
+ forEach(AtomLottieWrapper.propTypes, (value, key) => {
12
+ t.not(value, undefined, `PropType for "Atom.AtomLottieWrapper.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
13
+ });
14
+ });
15
+ test('Atom › AtomLottieWrapper › Confetti › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureConfetti);
16
+ test('Atom › AtomLottieWrapper › Controls › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureControls);
17
+ test('Atom › AtomLottieWrapper › Default › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureDefault);
18
+ test('Atom › AtomLottieWrapper › Rank › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureRank);
19
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/lottie-wrapper/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomLottieWrapper","fixtureConfetti","fixtureControls","fixtureDefault","fixtureRank","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AAEAP,IAAI,CAAC,wDAAD,EAA2DQ,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,iBAAiB,CAACO,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGC,eAAtG,CAAJ;AACAJ,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,iBAAnF,EAAsGE,eAAtG,CAAJ;AACAL,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGG,cAArG,CAAJ;AACAN,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,iBAA/E,EAAkGI,WAAlG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLottieWrapper from '..';\nimport fixtureConfetti from './fixtures/confetti';\nimport fixtureControls from './fixtures/controls';\nimport fixtureDefault from './fixtures/default';\nimport fixtureRank from './fixtures/rank';\n\ntest('Atom › AtomLottieWrapper > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLottieWrapper.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLottieWrapper.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLottieWrapper › Confetti › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureConfetti);\ntest('Atom › AtomLottieWrapper › Controls › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureControls);\ntest('Atom › AtomLottieWrapper › Default › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureDefault);\ntest('Atom › AtomLottieWrapper › Rank › should be rendered', renderComponentMacro, AtomLottieWrapper, fixtureRank);\n"],"file":"fixtures.js"}
@@ -0,0 +1,119 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import browserEnv from 'browser-env';
4
+ import test from 'ava';
5
+ import React from 'react';
6
+ import { render, cleanup } from '@testing-library/react';
7
+ import LottieWrapper, { fetchAndLoadAnimation } from '..';
8
+ import starFixture from './fixtures/default';
9
+ import controlsFixture from './fixtures/controls';
10
+ browserEnv();
11
+ test.afterEach(cleanup);
12
+ test('should update && load the animation, should clean up after unmount', t => {
13
+ const {
14
+ container,
15
+ rerender,
16
+ unmount
17
+ } = render( /*#__PURE__*/React.createElement(LottieWrapper, starFixture.props));
18
+ rerender( /*#__PURE__*/React.createElement(LottieWrapper, starFixture.props));
19
+ const wrapper = container.querySelectorAll('[data-name="default-lottie"]');
20
+ t.truthy(wrapper);
21
+ const backupImage = wrapper[0].querySelector('[data-name="ie11-backup-image"]');
22
+ t.falsy(backupImage);
23
+ unmount();
24
+ t.pass();
25
+ });
26
+ test('lottie controls: should update && load the animation, should clean up after unmount', t => {
27
+ const props = _extends(_extends({}, controlsFixture.props), {}, {
28
+ animationControl: 'play'
29
+ });
30
+
31
+ const {
32
+ container,
33
+ rerender,
34
+ unmount
35
+ } = render( /*#__PURE__*/React.createElement(LottieWrapper, props));
36
+ rerender( /*#__PURE__*/React.createElement(LottieWrapper, props));
37
+ const wrapper = container.querySelectorAll('[data-name="default-lottie"]');
38
+ t.truthy(wrapper);
39
+ const backupImage = wrapper[0].querySelector('[data-name="ie11-backup-image"]');
40
+ t.falsy(backupImage);
41
+ unmount();
42
+ t.pass();
43
+ });
44
+ test('ie11: should load an image in place of the animation', t => {
45
+ window.msCrypto = () => {}; // eslint-disable-next-line lodash-fp/prefer-constant
46
+
47
+
48
+ window.navigator.__defineGetter__('userAgent', function () {
49
+ return 'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko';
50
+ });
51
+
52
+ const {
53
+ container,
54
+ rerender,
55
+ unmount
56
+ } = render( /*#__PURE__*/React.createElement(LottieWrapper, starFixture.props));
57
+ rerender( /*#__PURE__*/React.createElement(LottieWrapper, starFixture.props));
58
+ const wrapper = container.querySelectorAll('[data-name="default-lottie"]');
59
+ t.truthy(wrapper);
60
+ const backupImage = wrapper[0].querySelector('[data-name="ie11-backup-image"]');
61
+ t.truthy(backupImage);
62
+ delete window.msCrypto; // eslint-disable-next-line lodash-fp/prefer-constant
63
+
64
+ window.navigator.__defineGetter__('userAgent', function () {
65
+ return 'Mozilla/5.0 (darwin) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/13.2.0';
66
+ });
67
+
68
+ unmount();
69
+ t.pass();
70
+ });
71
+ test('other browser: should not load an image in place of the animation', t => {
72
+ // eslint-disable-next-line lodash-fp/prefer-constant
73
+ window.navigator.__defineGetter__('userAgent', function () {
74
+ return 'Mozilla/5.0 (other stuff; rv:77.0) like Gecko';
75
+ });
76
+
77
+ const {
78
+ container,
79
+ rerender,
80
+ unmount
81
+ } = render( /*#__PURE__*/React.createElement(LottieWrapper, starFixture.props));
82
+ rerender( /*#__PURE__*/React.createElement(LottieWrapper, starFixture.props));
83
+ const wrapper = container.querySelectorAll('[data-name="default-lottie"]');
84
+ t.truthy(wrapper);
85
+ const backupImage = wrapper[0].querySelector('[data-name="ie11-backup-image"]');
86
+ t.falsy(backupImage); // eslint-disable-next-line lodash-fp/prefer-constant
87
+
88
+ window.navigator.__defineGetter__('userAgent', function () {
89
+ return 'Mozilla/5.0 (darwin) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/13.2.0';
90
+ });
91
+
92
+ unmount();
93
+ t.pass();
94
+ });
95
+ test('fetchAndLoadAnimation', async t => {
96
+ t.plan(3);
97
+ const props = starFixture.props;
98
+ const _lottie = {
99
+ loadAnimation: () => {
100
+ t.pass();
101
+ return {
102
+ name: 'animation'
103
+ };
104
+ }
105
+ };
106
+
107
+ const _fetch = () => {
108
+ t.pass();
109
+ return {
110
+ json: () => ({
111
+ animationData: 'some value'
112
+ })
113
+ };
114
+ };
115
+
116
+ const animation = await fetchAndLoadAnimation(_lottie, _fetch, props.animationSrc, '123456', true, 'test', true);
117
+ t.is(animation.name, 'animation');
118
+ });
119
+ //# sourceMappingURL=lottie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/lottie-wrapper/test/lottie.js"],"names":["browserEnv","test","React","render","cleanup","LottieWrapper","fetchAndLoadAnimation","starFixture","controlsFixture","afterEach","t","container","rerender","unmount","props","wrapper","querySelectorAll","truthy","backupImage","querySelector","falsy","pass","animationControl","window","msCrypto","navigator","__defineGetter__","plan","_lottie","loadAnimation","name","_fetch","json","animationData","animation","animationSrc","is"],"mappings":"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","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {render, cleanup} from '@testing-library/react';\nimport LottieWrapper, {fetchAndLoadAnimation} from '..';\nimport starFixture from './fixtures/default';\nimport controlsFixture from './fixtures/controls';\n\nbrowserEnv();\n\ntest.afterEach(cleanup);\n\ntest('should update && load the animation, should clean up after unmount', t => {\n const {container, rerender, unmount} = render(<LottieWrapper {...starFixture.props} />);\n\n rerender(<LottieWrapper {...starFixture.props} />);\n\n const wrapper = container.querySelectorAll('[data-name=\"default-lottie\"]');\n t.truthy(wrapper);\n\n const backupImage = wrapper[0].querySelector('[data-name=\"ie11-backup-image\"]');\n t.falsy(backupImage);\n\n unmount();\n\n t.pass();\n});\n\ntest('lottie controls: should update && load the animation, should clean up after unmount', t => {\n const props = {\n ...controlsFixture.props,\n animationControl: 'play'\n };\n\n const {container, rerender, unmount} = render(<LottieWrapper {...props} />);\n\n rerender(<LottieWrapper {...props} />);\n const wrapper = container.querySelectorAll('[data-name=\"default-lottie\"]');\n t.truthy(wrapper);\n\n const backupImage = wrapper[0].querySelector('[data-name=\"ie11-backup-image\"]');\n t.falsy(backupImage);\n unmount();\n\n t.pass();\n});\n\ntest('ie11: should load an image in place of the animation', t => {\n window.msCrypto = () => {};\n // eslint-disable-next-line lodash-fp/prefer-constant\n window.navigator.__defineGetter__('userAgent', function () {\n return 'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko';\n });\n\n const {container, rerender, unmount} = render(<LottieWrapper {...starFixture.props} />);\n\n rerender(<LottieWrapper {...starFixture.props} />);\n const wrapper = container.querySelectorAll('[data-name=\"default-lottie\"]');\n t.truthy(wrapper);\n\n const backupImage = wrapper[0].querySelector('[data-name=\"ie11-backup-image\"]');\n t.truthy(backupImage);\n\n delete window.msCrypto;\n // eslint-disable-next-line lodash-fp/prefer-constant\n window.navigator.__defineGetter__('userAgent', function () {\n return 'Mozilla/5.0 (darwin) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/13.2.0';\n });\n unmount();\n\n t.pass();\n});\n\ntest('other browser: should not load an image in place of the animation', t => {\n // eslint-disable-next-line lodash-fp/prefer-constant\n window.navigator.__defineGetter__('userAgent', function () {\n return 'Mozilla/5.0 (other stuff; rv:77.0) like Gecko';\n });\n\n const {container, rerender, unmount} = render(<LottieWrapper {...starFixture.props} />);\n\n rerender(<LottieWrapper {...starFixture.props} />);\n const wrapper = container.querySelectorAll('[data-name=\"default-lottie\"]');\n t.truthy(wrapper);\n\n const backupImage = wrapper[0].querySelector('[data-name=\"ie11-backup-image\"]');\n t.falsy(backupImage);\n\n // eslint-disable-next-line lodash-fp/prefer-constant\n window.navigator.__defineGetter__('userAgent', function () {\n return 'Mozilla/5.0 (darwin) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/13.2.0';\n });\n unmount();\n\n t.pass();\n});\n\ntest('fetchAndLoadAnimation', async t => {\n t.plan(3);\n const props = starFixture.props;\n const _lottie = {\n loadAnimation: () => {\n t.pass();\n return {name: 'animation'};\n }\n };\n const _fetch = () => {\n t.pass();\n return {\n json: () => ({\n animationData: 'some value'\n })\n };\n };\n const animation = await fetchAndLoadAnimation(\n _lottie,\n _fetch,\n props.animationSrc,\n '123456',\n true,\n 'test',\n true\n );\n\n t.is(animation.name, 'animation');\n});\n"],"file":"lottie.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 AtomNotification from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureError from './fixtures/error';
7
+ import fixtureWarning from './fixtures/warning';
8
+ test('Atom › AtomNotification > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(AtomNotification.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Atom.AtomNotification.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Atom › AtomNotification › Default › should be rendered', renderComponentMacro, AtomNotification, fixtureDefault);
15
+ test('Atom › AtomNotification › Error › should be rendered', renderComponentMacro, AtomNotification, fixtureError);
16
+ test('Atom › AtomNotification › Warning › should be rendered', renderComponentMacro, AtomNotification, fixtureWarning);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/notification/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomNotification","fixtureDefault","fixtureError","fixtureWarning","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,gBAAP,MAA6B,IAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAN,IAAI,CAAC,uDAAD,EAA0DO,CAAC,IAAI;AACjEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,gBAAgB,CAACM,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAClDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,iDAAgDF,GAAI,mEAA7E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,gBAAjF,EAAmGC,cAAnG,CAAJ;AACAJ,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,gBAA/E,EAAiGE,YAAjG,CAAJ;AACAL,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,gBAAjF,EAAmGG,cAAnG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomNotification from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureWarning from './fixtures/warning';\n\ntest('Atom › AtomNotification > should have valid propTypes', t => {\n t.pass();\n forEach(AtomNotification.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomNotification.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomNotification › Default › should be rendered', renderComponentMacro, AtomNotification, fixtureDefault);\ntest('Atom › AtomNotification › Error › should be rendered', renderComponentMacro, AtomNotification, fixtureError);\ntest('Atom › AtomNotification › Warning › should be rendered', renderComponentMacro, AtomNotification, fixtureWarning);\n"],"file":"fixtures.js"}
@@ -0,0 +1,19 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomPicture from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureEmpty from './fixtures/empty';
7
+ import fixtureSimpleSrc from './fixtures/simple-src';
8
+ import fixtureSvg from './fixtures/svg';
9
+ test('Atom › AtomPicture > should have valid propTypes', t => {
10
+ t.pass();
11
+ forEach(AtomPicture.propTypes, (value, key) => {
12
+ t.not(value, undefined, `PropType for "Atom.AtomPicture.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
13
+ });
14
+ });
15
+ test('Atom › AtomPicture › Default › should be rendered', renderComponentMacro, AtomPicture, fixtureDefault);
16
+ test('Atom › AtomPicture › Empty › should be rendered', renderComponentMacro, AtomPicture, fixtureEmpty);
17
+ test('Atom › AtomPicture › SimpleSrc › should be rendered', renderComponentMacro, AtomPicture, fixtureSimpleSrc);
18
+ test('Atom › AtomPicture › Svg › should be rendered', renderComponentMacro, AtomPicture, fixtureSvg);
19
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/picture/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomPicture","fixtureDefault","fixtureEmpty","fixtureSimpleSrc","fixtureSvg","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,WAAP,MAAwB,IAAxB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AAEAP,IAAI,CAAC,kDAAD,EAAqDQ,CAAC,IAAI;AAC5DA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,WAAW,CAACO,SAAb,EAAwB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC7CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4CAA2CF,GAAI,mEAAxE;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,WAA5E,EAAyFC,cAAzF,CAAJ;AACAJ,IAAI,CAAC,iDAAD,EAAoDE,oBAApD,EAA0EC,WAA1E,EAAuFE,YAAvF,CAAJ;AACAL,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,WAA9E,EAA2FG,gBAA3F,CAAJ;AACAN,IAAI,CAAC,+CAAD,EAAkDE,oBAAlD,EAAwEC,WAAxE,EAAqFI,UAArF,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomPicture from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureSimpleSrc from './fixtures/simple-src';\nimport fixtureSvg from './fixtures/svg';\n\ntest('Atom › AtomPicture > should have valid propTypes', t => {\n t.pass();\n forEach(AtomPicture.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomPicture.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomPicture › Default › should be rendered', renderComponentMacro, AtomPicture, fixtureDefault);\ntest('Atom › AtomPicture › Empty › should be rendered', renderComponentMacro, AtomPicture, fixtureEmpty);\ntest('Atom › AtomPicture › SimpleSrc › should be rendered', renderComponentMacro, AtomPicture, fixtureSimpleSrc);\ntest('Atom › AtomPicture › Svg › should be rendered', renderComponentMacro, AtomPicture, fixtureSvg);\n"],"file":"fixtures.js"}
@@ -0,0 +1,19 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import AtomPictureBackground from '..';
5
+ import fixtureContain from './fixtures/contain';
6
+ import fixtureCover from './fixtures/cover';
7
+ import fixtureDefault from './fixtures/default';
8
+ import fixtureDesktop from './fixtures/desktop';
9
+ test('Atom › AtomPictureBackground > should have valid propTypes', t => {
10
+ t.pass();
11
+ forEach(AtomPictureBackground.propTypes, (value, key) => {
12
+ t.not(value, undefined, `PropType for "Atom.AtomPictureBackground.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
13
+ });
14
+ });
15
+ test('Atom › AtomPictureBackground › Contain › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureContain);
16
+ test('Atom › AtomPictureBackground › Cover › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureCover);
17
+ test('Atom › AtomPictureBackground › Default › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureDefault);
18
+ test('Atom › AtomPictureBackground › Desktop › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureDesktop);
19
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/picture-background/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomPictureBackground","fixtureContain","fixtureCover","fixtureDefault","fixtureDesktop","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,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAP,IAAI,CAAC,4DAAD,EAA+DQ,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,qBAAqB,CAACO,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;AAOAZ,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,qBAAtF,EAA6GC,cAA7G,CAAJ;AACAJ,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,qBAApF,EAA2GE,YAA3G,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,qBAAtF,EAA6GG,cAA7G,CAAJ;AACAN,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,qBAAtF,EAA6GI,cAA7G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomPictureBackground from '..';\nimport fixtureContain from './fixtures/contain';\nimport fixtureCover from './fixtures/cover';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDesktop from './fixtures/desktop';\n\ntest('Atom › AtomPictureBackground > should have valid propTypes', t => {\n t.pass();\n forEach(AtomPictureBackground.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomPictureBackground.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomPictureBackground › Contain › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureContain);\ntest('Atom › AtomPictureBackground › Cover › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureCover);\ntest('Atom › AtomPictureBackground › Default › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureDefault);\ntest('Atom › AtomPictureBackground › Desktop › should be rendered', renderComponentMacro, AtomPictureBackground, fixtureDesktop);\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 AtomPromoCode from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureError from './fixtures/error';
7
+ import fixtureSuccess from './fixtures/success';
8
+ test('Atom › AtomPromoCode > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(AtomPromoCode.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Atom.AtomPromoCode.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Atom › AtomPromoCode › Default › should be rendered', renderComponentMacro, AtomPromoCode, fixtureDefault);
15
+ test('Atom › AtomPromoCode › Error › should be rendered', renderComponentMacro, AtomPromoCode, fixtureError);
16
+ test('Atom › AtomPromoCode › Success › should be rendered', renderComponentMacro, AtomPromoCode, fixtureSuccess);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/promo-code/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomPromoCode","fixtureDefault","fixtureError","fixtureSuccess","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,aAAP,MAA0B,IAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAN,IAAI,CAAC,oDAAD,EAAuDO,CAAC,IAAI;AAC9DA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,aAAa,CAACM,SAAf,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8CAA6CF,GAAI,mEAA1E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,aAA9E,EAA6FC,cAA7F,CAAJ;AACAJ,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,aAA5E,EAA2FE,YAA3F,CAAJ;AACAL,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,aAA9E,EAA6FG,cAA7F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomPromoCode from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureSuccess from './fixtures/success';\n\ntest('Atom › AtomPromoCode > should have valid propTypes', t => {\n t.pass();\n forEach(AtomPromoCode.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomPromoCode.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomPromoCode › Default › should be rendered', renderComponentMacro, AtomPromoCode, fixtureDefault);\ntest('Atom › AtomPromoCode › Error › should be rendered', renderComponentMacro, AtomPromoCode, fixtureError);\ntest('Atom › AtomPromoCode › Success › should be rendered', renderComponentMacro, AtomPromoCode, fixtureSuccess);\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 AtomProvider from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ test('Atom › AtomProvider > should have valid propTypes', t => {
7
+ t.pass();
8
+ forEach(AtomProvider.propTypes, (value, key) => {
9
+ t.not(value, undefined, `PropType for "Atom.AtomProvider.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
+ });
11
+ });
12
+ test('Atom › AtomProvider › Default › should be rendered', renderComponentMacro, AtomProvider, fixtureDefault);
13
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/provider/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomProvider","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,YAAP,MAAyB,IAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,mDAAD,EAAsDK,CAAC,IAAI;AAC7DA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,YAAY,CAACI,SAAd,EAAyB,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC9CJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,6CAA4CF,GAAI,mEAAzE;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,oDAAD,EAAuDE,oBAAvD,EAA6EC,YAA7E,EAA2FC,cAA3F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomProvider from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Atom › AtomProvider > should have valid propTypes', t => {\n t.pass();\n forEach(AtomProvider.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomProvider.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomProvider › Default › should be rendered', renderComponentMacro, AtomProvider, fixtureDefault);\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 AtomRadioGroup from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureEmpty from './fixtures/empty';
7
+ import fixtureLastSelected from './fixtures/last-selected';
8
+ test('Atom › AtomRadioGroup > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(AtomRadioGroup.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Atom.AtomRadioGroup.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Atom › AtomRadioGroup › Default › should be rendered', renderComponentMacro, AtomRadioGroup, fixtureDefault);
15
+ test('Atom › AtomRadioGroup › Empty › should be rendered', renderComponentMacro, AtomRadioGroup, fixtureEmpty);
16
+ test('Atom › AtomRadioGroup › LastSelected › should be rendered', renderComponentMacro, AtomRadioGroup, fixtureLastSelected);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/radio-group/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomRadioGroup","fixtureDefault","fixtureEmpty","fixtureLastSelected","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,YAAP,MAAyB,kBAAzB;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AAEAN,IAAI,CAAC,qDAAD,EAAwDO,CAAC,IAAI;AAC/DA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,cAAc,CAACM,SAAhB,EAA2B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,+CAA8CF,GAAI,mEAA3E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,cAA/E,EAA+FC,cAA/F,CAAJ;AACAJ,IAAI,CAAC,oDAAD,EAAuDE,oBAAvD,EAA6EC,cAA7E,EAA6FE,YAA7F,CAAJ;AACAL,IAAI,CAAC,2DAAD,EAA8DE,oBAA9D,EAAoFC,cAApF,EAAoGG,mBAApG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomRadioGroup from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureLastSelected from './fixtures/last-selected';\n\ntest('Atom › AtomRadioGroup > should have valid propTypes', t => {\n t.pass();\n forEach(AtomRadioGroup.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomRadioGroup.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomRadioGroup › Default › should be rendered', renderComponentMacro, AtomRadioGroup, fixtureDefault);\ntest('Atom › AtomRadioGroup › Empty › should be rendered', renderComponentMacro, AtomRadioGroup, fixtureEmpty);\ntest('Atom › AtomRadioGroup › LastSelected › should be rendered', renderComponentMacro, AtomRadioGroup, fixtureLastSelected);\n"],"file":"fixtures.js"}