@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,43 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _cmDefault = _interopRequireDefault(require("./fixtures/cm-default"));
12
+
13
+ var _default = _interopRequireDefault(require("./fixtures/default"));
14
+
15
+ var _disabled = _interopRequireDefault(require("./fixtures/disabled"));
16
+
17
+ var _empty = _interopRequireDefault(require("./fixtures/empty"));
18
+
19
+ var _error = _interopRequireDefault(require("./fixtures/error"));
20
+
21
+ var _modified = _interopRequireDefault(require("./fixtures/modified"));
22
+
23
+ var _notitle = _interopRequireDefault(require("./fixtures/notitle"));
24
+
25
+ var _required = _interopRequireDefault(require("./fixtures/required"));
26
+
27
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
+
29
+ (0, _ava.default)('Atom › AtomInputText > should have valid propTypes', t => {
30
+ t.pass();
31
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
32
+ t.not(value, undefined, `PropType for "Atom.AtomInputText.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
33
+ });
34
+ });
35
+ (0, _ava.default)('Atom › AtomInputText › CmDefault › should be rendered', _renderComponent.default, _.default, _cmDefault.default);
36
+ (0, _ava.default)('Atom › AtomInputText › Default › should be rendered', _renderComponent.default, _.default, _default.default);
37
+ (0, _ava.default)('Atom › AtomInputText › Disabled › should be rendered', _renderComponent.default, _.default, _disabled.default);
38
+ (0, _ava.default)('Atom › AtomInputText › Empty › should be rendered', _renderComponent.default, _.default, _empty.default);
39
+ (0, _ava.default)('Atom › AtomInputText › Error › should be rendered', _renderComponent.default, _.default, _error.default);
40
+ (0, _ava.default)('Atom › AtomInputText › Modified › should be rendered', _renderComponent.default, _.default, _modified.default);
41
+ (0, _ava.default)('Atom › AtomInputText › Notitle › should be rendered', _renderComponent.default, _.default, _notitle.default);
42
+ (0, _ava.default)('Atom › AtomInputText › Required › should be rendered', _renderComponent.default, _.default, _required.default);
43
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-text/test/fixtures.js"],"names":["t","pass","AtomInputText","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCmDefault","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureError","fixtureModified","fixtureNotitle","fixtureRequired"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,oDAAL,EAA2DA,CAAC,IAAI;AAC9DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAcC,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8CAA6CF,GAAI,mEAA1E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAmGO,kBAAnG;AACA,kBAAK,qDAAL,EAA4DD,wBAA5D,EAAkFN,SAAlF,EAAiGQ,gBAAjG;AACA,kBAAK,sDAAL,EAA6DF,wBAA7D,EAAmFN,SAAnF,EAAkGS,iBAAlG;AACA,kBAAK,mDAAL,EAA0DH,wBAA1D,EAAgFN,SAAhF,EAA+FU,cAA/F;AACA,kBAAK,mDAAL,EAA0DJ,wBAA1D,EAAgFN,SAAhF,EAA+FW,cAA/F;AACA,kBAAK,sDAAL,EAA6DL,wBAA7D,EAAmFN,SAAnF,EAAkGY,iBAAlG;AACA,kBAAK,qDAAL,EAA4DN,wBAA5D,EAAkFN,SAAlF,EAAiGa,gBAAjG;AACA,kBAAK,sDAAL,EAA6DP,wBAA7D,EAAmFN,SAAnF,EAAkGc,iBAAlG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputText from '..';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\nimport fixtureNotitle from './fixtures/notitle';\nimport fixtureRequired from './fixtures/required';\n\ntest('Atom › AtomInputText > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputText › CmDefault › should be rendered', renderComponentMacro, AtomInputText, fixtureCmDefault);\ntest('Atom › AtomInputText › Default › should be rendered', renderComponentMacro, AtomInputText, fixtureDefault);\ntest('Atom › AtomInputText › Disabled › should be rendered', renderComponentMacro, AtomInputText, fixtureDisabled);\ntest('Atom › AtomInputText › Empty › should be rendered', renderComponentMacro, AtomInputText, fixtureEmpty);\ntest('Atom › AtomInputText › Error › should be rendered', renderComponentMacro, AtomInputText, fixtureError);\ntest('Atom › AtomInputText › Modified › should be rendered', renderComponentMacro, AtomInputText, fixtureModified);\ntest('Atom › AtomInputText › Notitle › should be rendered', renderComponentMacro, AtomInputText, fixtureNotitle);\ntest('Atom › AtomInputText › Required › should be rendered', renderComponentMacro, AtomInputText, fixtureRequired);\n"],"file":"fixtures.js"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _default = _interopRequireDefault(require("./fixtures/default"));
12
+
13
+ var _error = _interopRequireDefault(require("./fixtures/error"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ (0, _ava.default)('Atom › AtomInputTextWithTitle > should have valid propTypes', t => {
18
+ t.pass();
19
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
+ t.not(value, undefined, `PropType for "Atom.AtomInputTextWithTitle.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
+ });
22
+ });
23
+ (0, _ava.default)('Atom › AtomInputTextWithTitle › Default › should be rendered', _renderComponent.default, _.default, _default.default);
24
+ (0, _ava.default)('Atom › AtomInputTextWithTitle › Error › should be rendered', _renderComponent.default, _.default, _error.default);
25
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-text-with-title/test/fixtures.js"],"names":["t","pass","AtomInputTextWithTitle","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureError"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,6DAAL,EAAoEA,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAuBC,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,8DAAL,EAAqEG,wBAArE,EAA2FN,SAA3F,EAAmHO,gBAAnH;AACA,kBAAK,4DAAL,EAAmED,wBAAnE,EAAyFN,SAAzF,EAAiHQ,cAAjH","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputTextWithTitle from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\n\ntest('Atom › AtomInputTextWithTitle > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputTextWithTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputTextWithTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputTextWithTitle › Default › should be rendered', renderComponentMacro, AtomInputTextWithTitle, fixtureDefault);\ntest('Atom › AtomInputTextWithTitle › Error › should be rendered', renderComponentMacro, AtomInputTextWithTitle, fixtureError);\n"],"file":"fixtures.js"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _cmDefault = _interopRequireDefault(require("./fixtures/cm-default"));
12
+
13
+ var _cmEmpty = _interopRequireDefault(require("./fixtures/cm-empty"));
14
+
15
+ var _default = _interopRequireDefault(require("./fixtures/default"));
16
+
17
+ var _empty = _interopRequireDefault(require("./fixtures/empty"));
18
+
19
+ var _error = _interopRequireDefault(require("./fixtures/error"));
20
+
21
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
+
23
+ (0, _ava.default)('Atom › AtomInputTextarea > should have valid propTypes', t => {
24
+ t.pass();
25
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
26
+ t.not(value, undefined, `PropType for "Atom.AtomInputTextarea.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
27
+ });
28
+ });
29
+ (0, _ava.default)('Atom › AtomInputTextarea › CmDefault › should be rendered', _renderComponent.default, _.default, _cmDefault.default);
30
+ (0, _ava.default)('Atom › AtomInputTextarea › CmEmpty › should be rendered', _renderComponent.default, _.default, _cmEmpty.default);
31
+ (0, _ava.default)('Atom › AtomInputTextarea › Default › should be rendered', _renderComponent.default, _.default, _default.default);
32
+ (0, _ava.default)('Atom › AtomInputTextarea › Empty › should be rendered', _renderComponent.default, _.default, _empty.default);
33
+ (0, _ava.default)('Atom › AtomInputTextarea › Error › should be rendered', _renderComponent.default, _.default, _error.default);
34
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/input-textarea/test/fixtures.js"],"names":["t","pass","AtomInputTextarea","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCmDefault","fixtureCmEmpty","fixtureDefault","fixtureEmpty","fixtureError"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,wDAAL,EAA+DA,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAkBC,SAA1B,EAAqC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,2DAAL,EAAkEG,wBAAlE,EAAwFN,SAAxF,EAA2GO,kBAA3G;AACA,kBAAK,yDAAL,EAAgED,wBAAhE,EAAsFN,SAAtF,EAAyGQ,gBAAzG;AACA,kBAAK,yDAAL,EAAgEF,wBAAhE,EAAsFN,SAAtF,EAAyGS,gBAAzG;AACA,kBAAK,uDAAL,EAA8DH,wBAA9D,EAAoFN,SAApF,EAAuGU,cAAvG;AACA,kBAAK,uDAAL,EAA8DJ,wBAA9D,EAAoFN,SAApF,EAAuGW,cAAvG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputTextarea from '..';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureCmEmpty from './fixtures/cm-empty';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\n\ntest('Atom › AtomInputTextarea > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputTextarea.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputTextarea.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputTextarea › CmDefault › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmDefault);\ntest('Atom › AtomInputTextarea › CmEmpty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmEmpty);\ntest('Atom › AtomInputTextarea › Default › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureDefault);\ntest('Atom › AtomInputTextarea › Empty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureEmpty);\ntest('Atom › AtomInputTextarea › Error › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureError);\n"],"file":"fixtures.js"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _oneChild = _interopRequireDefault(require("./fixtures/one-child"));
12
+
13
+ var _twoChildren = _interopRequireDefault(require("./fixtures/two-children"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ (0, _ava.default)('Atom › AtomLabel > should have valid propTypes', t => {
18
+ t.pass();
19
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
+ t.not(value, undefined, `PropType for "Atom.AtomLabel.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
+ });
22
+ });
23
+ (0, _ava.default)('Atom › AtomLabel › OneChild › should be rendered', _renderComponent.default, _.default, _oneChild.default);
24
+ (0, _ava.default)('Atom › AtomLabel › TwoChildren › should be rendered', _renderComponent.default, _.default, _twoChildren.default);
25
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/label/test/fixtures.js"],"names":["t","pass","AtomLabel","propTypes","value","key","not","undefined","renderComponentMacro","fixtureOneChild","fixtureTwoChildren"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,gDAAL,EAAuDA,CAAC,IAAI;AAC1DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAUC,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0CAAyCF,GAAI,mEAAtE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,kDAAL,EAAyDG,wBAAzD,EAA+EN,SAA/E,EAA0FO,iBAA1F;AACA,kBAAK,qDAAL,EAA4DD,wBAA5D,EAAkFN,SAAlF,EAA6FQ,oBAA7F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLabel from '..';\nimport fixtureOneChild from './fixtures/one-child';\nimport fixtureTwoChildren from './fixtures/two-children';\n\ntest('Atom › AtomLabel > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLabel.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLabel.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLabel › OneChild › should be rendered', renderComponentMacro, AtomLabel, fixtureOneChild);\ntest('Atom › AtomLabel › TwoChildren › should be rendered', renderComponentMacro, AtomLabel, fixtureTwoChildren);\n"],"file":"fixtures.js"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _animatedExtraLife = _interopRequireDefault(require("./fixtures/animated-extra-life"));
12
+
13
+ var _animatedFail = _interopRequireDefault(require("./fixtures/animated-fail"));
14
+
15
+ var _default = _interopRequireDefault(require("./fixtures/default"));
16
+
17
+ var _fail = _interopRequireDefault(require("./fixtures/fail"));
18
+
19
+ var _null = _interopRequireDefault(require("./fixtures/null"));
20
+
21
+ var _overlayedExtraLife = _interopRequireDefault(require("./fixtures/overlayed-extra-life"));
22
+
23
+ var _small = _interopRequireDefault(require("./fixtures/small"));
24
+
25
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
+
27
+ (0, _ava.default)('Atom › AtomLife > should have valid propTypes', t => {
28
+ t.pass();
29
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
30
+ t.not(value, undefined, `PropType for "Atom.AtomLife.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
31
+ });
32
+ });
33
+ (0, _ava.default)('Atom › AtomLife › AnimatedExtraLife › should be rendered', _renderComponent.default, _.default, _animatedExtraLife.default);
34
+ (0, _ava.default)('Atom › AtomLife › AnimatedFail › should be rendered', _renderComponent.default, _.default, _animatedFail.default);
35
+ (0, _ava.default)('Atom › AtomLife › Default › should be rendered', _renderComponent.default, _.default, _default.default);
36
+ (0, _ava.default)('Atom › AtomLife › Fail › should be rendered', _renderComponent.default, _.default, _fail.default);
37
+ (0, _ava.default)('Atom › AtomLife › Null › should be rendered', _renderComponent.default, _.default, _null.default);
38
+ (0, _ava.default)('Atom › AtomLife › OverlayedExtraLife › should be rendered', _renderComponent.default, _.default, _overlayedExtraLife.default);
39
+ (0, _ava.default)('Atom › AtomLife › Small › should be rendered', _renderComponent.default, _.default, _small.default);
40
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/life/test/fixtures.js"],"names":["t","pass","AtomLife","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnimatedExtraLife","fixtureAnimatedFail","fixtureDefault","fixtureFail","fixtureNull","fixtureOverlayedExtraLife","fixtureSmall"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+CAAL,EAAsDA,CAAC,IAAI;AACzDA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAASC,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC1CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yCAAwCF,GAAI,mEAArE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,0DAAL,EAAiEG,wBAAjE,EAAuFN,SAAvF,EAAiGO,0BAAjG;AACA,kBAAK,qDAAL,EAA4DD,wBAA5D,EAAkFN,SAAlF,EAA4FQ,qBAA5F;AACA,kBAAK,gDAAL,EAAuDF,wBAAvD,EAA6EN,SAA7E,EAAuFS,gBAAvF;AACA,kBAAK,6CAAL,EAAoDH,wBAApD,EAA0EN,SAA1E,EAAoFU,aAApF;AACA,kBAAK,6CAAL,EAAoDJ,wBAApD,EAA0EN,SAA1E,EAAoFW,aAApF;AACA,kBAAK,2DAAL,EAAkEL,wBAAlE,EAAwFN,SAAxF,EAAkGY,2BAAlG;AACA,kBAAK,8CAAL,EAAqDN,wBAArD,EAA2EN,SAA3E,EAAqFa,cAArF","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLife from '..';\nimport fixtureAnimatedExtraLife from './fixtures/animated-extra-life';\nimport fixtureAnimatedFail from './fixtures/animated-fail';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFail from './fixtures/fail';\nimport fixtureNull from './fixtures/null';\nimport fixtureOverlayedExtraLife from './fixtures/overlayed-extra-life';\nimport fixtureSmall from './fixtures/small';\n\ntest('Atom › AtomLife > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLife.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLife.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLife › AnimatedExtraLife › should be rendered', renderComponentMacro, AtomLife, fixtureAnimatedExtraLife);\ntest('Atom › AtomLife › AnimatedFail › should be rendered', renderComponentMacro, AtomLife, fixtureAnimatedFail);\ntest('Atom › AtomLife › Default › should be rendered', renderComponentMacro, AtomLife, fixtureDefault);\ntest('Atom › AtomLife › Fail › should be rendered', renderComponentMacro, AtomLife, fixtureFail);\ntest('Atom › AtomLife › Null › should be rendered', renderComponentMacro, AtomLife, fixtureNull);\ntest('Atom › AtomLife › OverlayedExtraLife › should be rendered', renderComponentMacro, AtomLife, fixtureOverlayedExtraLife);\ntest('Atom › AtomLife › Small › should be rendered', renderComponentMacro, AtomLife, fixtureSmall);\n"],"file":"fixtures.js"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _download = _interopRequireDefault(require("./fixtures/download"));
12
+
13
+ var _href = _interopRequireDefault(require("./fixtures/href"));
14
+
15
+ var _styledLink = _interopRequireDefault(require("./fixtures/styled-link"));
16
+
17
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+
19
+ (0, _ava.default)('Atom › AtomLink > should have valid propTypes', t => {
20
+ t.pass();
21
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
22
+ t.not(value, undefined, `PropType for "Atom.AtomLink.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
23
+ });
24
+ });
25
+ (0, _ava.default)('Atom › AtomLink › Download › should be rendered', _renderComponent.default, _.default, _download.default);
26
+ (0, _ava.default)('Atom › AtomLink › Href › should be rendered', _renderComponent.default, _.default, _href.default);
27
+ (0, _ava.default)('Atom › AtomLink › StyledLink › should be rendered', _renderComponent.default, _.default, _styledLink.default);
28
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/link/test/fixtures.js"],"names":["t","pass","AtomLink","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDownload","fixtureHref","fixtureStyledLink"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+CAAL,EAAsDA,CAAC,IAAI;AACzDA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAASC,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC1CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yCAAwCF,GAAI,mEAArE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,iDAAL,EAAwDG,wBAAxD,EAA8EN,SAA9E,EAAwFO,iBAAxF;AACA,kBAAK,6CAAL,EAAoDD,wBAApD,EAA0EN,SAA1E,EAAoFQ,aAApF;AACA,kBAAK,mDAAL,EAA0DF,wBAA1D,EAAgFN,SAAhF,EAA0FS,mBAA1F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLink from '..';\nimport fixtureDownload from './fixtures/download';\nimport fixtureHref from './fixtures/href';\nimport fixtureStyledLink from './fixtures/styled-link';\n\ntest('Atom › AtomLink > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLink.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLink.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLink › Download › should be rendered', renderComponentMacro, AtomLink, fixtureDownload);\ntest('Atom › AtomLink › Href › should be rendered', renderComponentMacro, AtomLink, fixtureHref);\ntest('Atom › AtomLink › StyledLink › should be rendered', renderComponentMacro, AtomLink, fixtureStyledLink);\n"],"file":"fixtures.js"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _coorpmanager = _interopRequireDefault(require("./fixtures/coorpmanager"));
12
+
13
+ var _default = _interopRequireDefault(require("./fixtures/default"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ (0, _ava.default)('Atom › AtomLoader > should have valid propTypes', t => {
18
+ t.pass();
19
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
+ t.not(value, undefined, `PropType for "Atom.AtomLoader.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
+ });
22
+ });
23
+ (0, _ava.default)('Atom › AtomLoader › Coorpmanager › should be rendered', _renderComponent.default, _.default, _coorpmanager.default);
24
+ (0, _ava.default)('Atom › AtomLoader › Default › should be rendered', _renderComponent.default, _.default, _default.default);
25
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/loader/test/fixtures.js"],"names":["t","pass","AtomLoader","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCoorpmanager","fixtureDefault"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,iDAAL,EAAwDA,CAAC,IAAI;AAC3DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAWC,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC5CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2CAA0CF,GAAI,mEAAvE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAgGO,qBAAhG;AACA,kBAAK,kDAAL,EAAyDD,wBAAzD,EAA+EN,SAA/E,EAA2FQ,gBAA3F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLoader from '..';\nimport fixtureCoorpmanager from './fixtures/coorpmanager';\nimport fixtureDefault from './fixtures/default';\n\ntest('Atom › AtomLoader > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLoader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLoader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLoader › Coorpmanager › should be rendered', renderComponentMacro, AtomLoader, fixtureCoorpmanager);\ntest('Atom › AtomLoader › Default › should be rendered', renderComponentMacro, AtomLoader, fixtureDefault);\n"],"file":"fixtures.js"}
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = exports.fetchAndLoadAnimation = exports.ANIMATION_CONTROL = void 0;
5
+
6
+ var _react = _interopRequireWildcard(require("react"));
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+
12
+ var _lottieWeb = _interopRequireDefault(require("lottie-web"));
13
+
14
+ var _get = _interopRequireDefault(require("lodash/fp/get"));
15
+
16
+ var _has = _interopRequireDefault(require("lodash/fp/has"));
17
+
18
+ var _includes = _interopRequireDefault(require("lodash/fp/includes"));
19
+
20
+ var _keys = _interopRequireDefault(require("lodash/fp/keys"));
21
+
22
+ var _omit = _interopRequireDefault(require("lodash/fp/omit"));
23
+
24
+ var _isomorphicUnfetch = _interopRequireDefault(require("isomorphic-unfetch"));
25
+
26
+ var _style = _interopRequireDefault(require("./style.css"));
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+
30
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
31
+
32
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
33
+
34
+ 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); }
35
+
36
+ const ANIMATION_CONTROL = {
37
+ play: 'play',
38
+ pause: 'pause',
39
+ stop: 'stop',
40
+ loading: 'loading'
41
+ };
42
+ exports.ANIMATION_CONTROL = ANIMATION_CONTROL;
43
+
44
+ const isIE11 = () => {
45
+ if (typeof window === 'undefined') return;
46
+ const userAgent = (0, _get.default)('navigator.userAgent', window);
47
+ const hasMsCrypto = (0, _has.default)('msCrypto', window);
48
+ const hasRevision = (0, _includes.default)('rv:', userAgent);
49
+ const hasTrident = (0, _includes.default)('Trident/', userAgent);
50
+ return hasMsCrypto || hasRevision && hasTrident;
51
+ };
52
+
53
+ const fetchAndLoadAnimation = async (_lottie, _fetch, animationSrc, containerRef, loop, animationClassnames, hideOnTransparent, autoplay) => {
54
+ const animationUrl = new URL(animationSrc).toString();
55
+ const fetchResult = await _fetch(animationUrl, {
56
+ headers: {
57
+ 'X-Requested-With': 'XMLHttpRequest',
58
+ 'Content-Type': 'application/json'
59
+ }
60
+ });
61
+ const animationData = await fetchResult.json();
62
+
63
+ const animation = _lottie.loadAnimation({
64
+ container: containerRef.current,
65
+ // the dom element that will contain the animation
66
+ renderer: 'svg',
67
+ autoplay,
68
+ loop,
69
+ animationData,
70
+ rendererSettings: {
71
+ className: animationClassnames,
72
+ hideOnTransparent,
73
+ preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop
74
+
75
+ }
76
+ });
77
+
78
+ return animation;
79
+ };
80
+
81
+ exports.fetchAndLoadAnimation = fetchAndLoadAnimation;
82
+
83
+ const LottieWrapper = props => {
84
+ const {
85
+ className,
86
+ 'data-name': dataName,
87
+ 'aria-label': ariaLabel,
88
+ animationSrc,
89
+ loop = false,
90
+ rendererSettings = {},
91
+ width,
92
+ height,
93
+ ie11ImageBackup,
94
+ backupImageClassName,
95
+ autoplay = true,
96
+ animationControl
97
+ } = props;
98
+ const {
99
+ className: animationClassName,
100
+ hideOnTransparent = true
101
+ } = rendererSettings;
102
+ const containerRef = (0, _react.useRef)(null); // lottie's animation instance
103
+
104
+ const [animationItem, setAnimationItem] = (0, _react.useState)(null);
105
+ const [isAnimationVisible, setIsAnimationVisible] = (0, _react.useState)(autoplay);
106
+
107
+ const _isIE11 = (0, _react.useMemo)(() => isIE11(), []);
108
+
109
+ const wrapperClassName = (0, _react.useMemo)(() => (0, _classnames.default)(className, _style.default.lottieContainer), [className]);
110
+ const lottieAnimationClassName = (0, _react.useMemo)(() => (0, _classnames.default)(animationClassName, _style.default.animation), [animationClassName]);
111
+ const ie11BackupImageClassName = (0, _react.useMemo)(() => (0, _classnames.default)(backupImageClassName, _style.default.backupImage), [backupImageClassName]);
112
+ (0, _react.useEffect)(() => {
113
+ // enzyme does not handle well the state update after an async useEffect in tests
114
+ // to remove when the migration towards @testing-library/react is done
115
+
116
+ /* istanbul ignore next */
117
+ if (animationItem && (0, _includes.default)(animationControl, (0, _keys.default)((0, _omit.default)('loading', ANIMATION_CONTROL))) && !autoplay) {
118
+ setIsAnimationVisible(true);
119
+ animationItem[animationControl]();
120
+ if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);
121
+ }
122
+ }, [animationControl, animationItem, autoplay]);
123
+ (0, _react.useEffect)(() => {
124
+ const loadAnimation = async () => {
125
+ if (!_isIE11 && !animationItem) {
126
+ /* istanbul ignore else */
127
+ if (typeof window !== 'undefined') {
128
+ window.lottie = _lottieWeb.default;
129
+ }
130
+
131
+ const animation = await fetchAndLoadAnimation(_lottieWeb.default, _isomorphicUnfetch.default, animationSrc, containerRef, loop, lottieAnimationClassName, hideOnTransparent, autoplay);
132
+ /* istanbul ignore next */
133
+
134
+ setAnimationItem(animation);
135
+ }
136
+ };
137
+
138
+ loadAnimation();
139
+ return () => animationItem &&
140
+ /* istanbul ignore next */
141
+ _lottieWeb.default.destroy(animationItem.name);
142
+ }, [lottieAnimationClassName, containerRef, hideOnTransparent, loop, animationSrc, _isIE11, animationItem, autoplay]);
143
+ return /*#__PURE__*/_react.default.createElement("div", {
144
+ ref: containerRef,
145
+ "aria-label": ariaLabel,
146
+ "data-name": dataName,
147
+ className: wrapperClassName,
148
+ style: _extends(_extends(_extends({}, width && {
149
+ width: `${width}px`,
150
+ maxWidth: `${width}px`
151
+ }), height && {
152
+ height: `${height}px`,
153
+ maxHeight: `${height}px`
154
+ }), {}, {
155
+ opacity: isAnimationVisible ? 1 : 0,
156
+ transition: 'opacity 0.25s ease-in'
157
+ })
158
+ }, _isIE11 ? /*#__PURE__*/_react.default.createElement("img", {
159
+ src: ie11ImageBackup,
160
+ className: ie11BackupImageClassName,
161
+ "data-name": "ie11-backup-image"
162
+ }) : null);
163
+ };
164
+
165
+ LottieWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
166
+ 'aria-label': _propTypes.default.string.isRequired,
167
+ 'data-name': _propTypes.default.string,
168
+ animationSrc: _propTypes.default.string.isRequired,
169
+ loop: _propTypes.default.bool,
170
+ rendererSettings: _propTypes.default.shape({
171
+ hideOnTransparent: _propTypes.default.bool,
172
+ className: _propTypes.default.string
173
+ }),
174
+ height: _propTypes.default.number,
175
+ width: _propTypes.default.number,
176
+ className: _propTypes.default.string,
177
+ ie11ImageBackup: _propTypes.default.string.isRequired,
178
+ backupImageClassName: _propTypes.default.string,
179
+ autoplay: _propTypes.default.bool,
180
+ animationControl: _propTypes.default.oneOf((0, _keys.default)(ANIMATION_CONTROL))
181
+ } : {};
182
+ var _default = LottieWrapper;
183
+ exports.default = _default;
184
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/atom/lottie-wrapper/index.js"],"names":["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","style","lottieContainer","lottieAnimationClassName","ie11BackupImageClassName","backupImage","lottie","unfetch","destroy","name","maxWidth","maxHeight","opacity","transition","propTypes","PropTypes","string","isRequired","bool","shape","number","oneOf"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,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,GAAG,kBAAI,qBAAJ,EAA2BD,MAA3B,CAAlB;AACA,QAAME,WAAW,GAAG,kBAAI,UAAJ,EAAgBF,MAAhB,CAApB;AACA,QAAMG,WAAW,GAAG,uBAAS,KAAT,EAAgBF,SAAhB,CAApB;AACA,QAAMG,UAAU,GAAG,uBAAS,UAAT,EAAqBH,SAArB,CAAnB;AAEA,SAAOC,WAAW,IAAKC,WAAW,IAAIC,UAAtC;AACD,CARD;;AAUO,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,GAAG,mBAAO,IAAP,CAArB,CAlB6B,CAoB7B;;AACA,QAAM,CAAC8B,aAAD,EAAgBC,gBAAhB,IAAoC,qBAAS,IAAT,CAA1C;AAEA,QAAM,CAACC,kBAAD,EAAqBC,qBAArB,IAA8C,qBAAS7B,QAAT,CAApD;;AAEA,QAAM8B,OAAO,GAAG,oBAAQ,MAAM5C,MAAM,EAApB,EAAwB,EAAxB,CAAhB;;AAEA,QAAM6C,gBAAgB,GAAG,oBAAQ,MAAM,yBAAWjB,SAAX,EAAsBkB,eAAMC,eAA5B,CAAd,EAA4D,CAACnB,SAAD,CAA5D,CAAzB;AAEA,QAAMoB,wBAAwB,GAAG,oBAAQ,MAAM,yBAAWT,kBAAX,EAA+BO,eAAMxB,SAArC,CAAd,EAA+D,CAC9FiB,kBAD8F,CAA/D,CAAjC;AAIA,QAAMU,wBAAwB,GAAG,oBAC/B,MAAM,yBAAWZ,oBAAX,EAAiCS,eAAMI,WAAvC,CADyB,EAE/B,CAACb,oBAAD,CAF+B,CAAjC;AAKA,wBAAU,MAAM;AACd;AACA;;AACA;AACA,QACEG,aAAa,IACb,uBAASF,gBAAT,EAA2B,mBAAK,mBAAK,SAAL,EAAgB3C,iBAAhB,CAAL,CAA3B,CADA,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,GAbD,EAaG,CAACL,gBAAD,EAAmBE,aAAnB,EAAkC1B,QAAlC,CAbH;AAeA,wBAAU,MAAM;AACd,UAAMS,aAAa,GAAG,YAAY;AAChC,UAAI,CAACqB,OAAD,IAAY,CAACJ,aAAjB,EAAgC;AAC9B;AACA,YAAI,OAAOvC,MAAP,KAAkB,WAAtB,EAAmC;AACjCA,UAAAA,MAAM,CAACkD,MAAP,GAAgBA,kBAAhB;AACD;;AACD,cAAM7B,SAAS,GAAG,MAAMhB,qBAAqB,CAC3C6C,kBAD2C,EAE3CC,0BAF2C,EAG3C3C,YAH2C,EAI3CC,YAJ2C,EAK3CC,IAL2C,EAM3CqC,wBAN2C,EAO3CnC,iBAP2C,EAQ3CC,QAR2C,CAA7C;AAWA;;AACA2B,QAAAA,gBAAgB,CAACnB,SAAD,CAAhB;AACD;AACF,KApBD;;AAsBAC,IAAAA,aAAa;AACb,WAAO,MAAMiB,aAAa;AAAI;AAA2BW,uBAAOE,OAAP,CAAeb,aAAa,CAACc,IAA7B,CAAzD;AACD,GAzBD,EAyBG,CACDN,wBADC,EAEDtC,YAFC,EAGDG,iBAHC,EAIDF,IAJC,EAKDF,YALC,EAMDmC,OANC,EAODJ,aAPC,EAQD1B,QARC,CAzBH;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;AAEXqB,MAAAA,QAAQ,EAAG,GAAErB,KAAM;AAFR,KADV,GAKCC,MAAM,IAAI;AACZA,MAAAA,MAAM,EAAG,GAAEA,MAAO,IADN;AAEZqB,MAAAA,SAAS,EAAG,GAAErB,MAAO;AAFT,KALX;AASHsB,MAAAA,OAAO,EAAEf,kBAAkB,GAAG,CAAH,GAAO,CAT/B;AAUHgB,MAAAA,UAAU,EAAE;AAVT;AALP,KAkBGd,OAAO,gBACN;AACE,IAAA,GAAG,EAAER,eADP;AAEE,IAAA,SAAS,EAAEa,wBAFb;AAGE,iBAAU;AAHZ,IADM,GAMJ,IAxBN,CADF;AA4BD,CArHD;;AAuHAnB,aAAa,CAAC6B,SAAd,2CAA0B;AACxB,gBAAcC,mBAAUC,MAAV,CAAiBC,UADP;AAExB,eAAaF,mBAAUC,MAFC;AAGxBpD,EAAAA,YAAY,EAAEmD,mBAAUC,MAAV,CAAiBC,UAHP;AAIxBnD,EAAAA,IAAI,EAAEiD,mBAAUG,IAJQ;AAKxBpC,EAAAA,gBAAgB,EAAEiC,mBAAUI,KAAV,CAAgB;AAChCnD,IAAAA,iBAAiB,EAAE+C,mBAAUG,IADG;AAEhCnC,IAAAA,SAAS,EAAEgC,mBAAUC;AAFW,GAAhB,CALM;AASxB1B,EAAAA,MAAM,EAAEyB,mBAAUK,MATM;AAUxB/B,EAAAA,KAAK,EAAE0B,mBAAUK,MAVO;AAWxBrC,EAAAA,SAAS,EAAEgC,mBAAUC,MAXG;AAYxBzB,EAAAA,eAAe,EAAEwB,mBAAUC,MAAV,CAAiBC,UAZV;AAaxBzB,EAAAA,oBAAoB,EAAEuB,mBAAUC,MAbR;AAcxB/C,EAAAA,QAAQ,EAAE8C,mBAAUG,IAdI;AAexBzB,EAAAA,gBAAgB,EAAEsB,mBAAUM,KAAV,CAAgB,mBAAKvE,iBAAL,CAAhB;AAfM,CAA1B;eAkBemC,a","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,24 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ 'aria-label': 'aria lottie',
8
+ 'data-name': 'default-lottie',
9
+ className: undefined,
10
+ animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
11
+ loop: undefined,
12
+ autoplay: true,
13
+ rendererSettings: {
14
+ hideOnTransparent: false,
15
+ animationClassName: ''
16
+ },
17
+ height: 600,
18
+ width: 1000,
19
+ ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',
20
+ animationControl: undefined
21
+ }
22
+ };
23
+ exports.default = _default;
24
+ //# 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":";;;;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,C","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,19 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _default2 = _interopRequireDefault(require("./default"));
7
+
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+
10
+ 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); }
11
+
12
+ var _default = {
13
+ props: _extends(_extends({}, _default2.default.props), {}, {
14
+ autoplay: false,
15
+ animationControl: 'loading'
16
+ })
17
+ };
18
+ exports.default = _default;
19
+ //# sourceMappingURL=controls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/controls.js"],"names":["props","defaultProps","autoplay","animationControl"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,kBAAaD,KADb;AAEHE,IAAAA,QAAQ,EAAE,KAFP;AAGHC,IAAAA,gBAAgB,EAAE;AAHf;AADQ,C","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,24 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ 'aria-label': 'aria lottie',
8
+ 'data-name': 'default-lottie',
9
+ className: undefined,
10
+ animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
11
+ loop: false,
12
+ autoplay: undefined,
13
+ rendererSettings: {
14
+ hideOnTransparent: false,
15
+ animationClassName: ''
16
+ },
17
+ height: 200,
18
+ width: 200,
19
+ ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg',
20
+ animationControl: undefined
21
+ }
22
+ };
23
+ exports.default = _default;
24
+ //# 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":";;;;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,C","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,20 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ 'aria-label': 'aria lottie',
8
+ 'data-name': 'default-lottie',
9
+ className: undefined,
10
+ animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
11
+ loop: true,
12
+ autoplay: true,
13
+ height: 200,
14
+ width: 200,
15
+ ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg',
16
+ animationControl: undefined
17
+ }
18
+ };
19
+ exports.default = _default;
20
+ //# 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":";;;;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,C","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"}