@coorpacademy/components 10.19.7 → 10.19.10

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 (279) hide show
  1. package/es/atom/button-link-icon-only/test/fixtures.js +0 -2
  2. package/es/atom/button-link-icon-only/test/fixtures.js.map +1 -1
  3. package/es/atom/cta/index.js +2 -1
  4. package/es/atom/cta/index.js.map +1 -1
  5. package/es/atom/cta/test/cta.js +93 -0
  6. package/es/atom/cta/test/cta.js.map +1 -0
  7. package/es/atom/drag-and-drop/test/fixtures.js +0 -12
  8. package/es/atom/drag-and-drop/test/fixtures.js.map +1 -1
  9. package/es/atom/image-upload/test/fixtures.js +2 -6
  10. package/es/atom/image-upload/test/fixtures.js.map +1 -1
  11. package/es/atom/review-presentation/style.css +1 -1
  12. package/es/atom/review-presentation/test/fixtures/default.js +2 -2
  13. package/es/atom/review-presentation/test/fixtures/default.js.map +1 -1
  14. package/es/molecule/brand-form-group/test/fixtures.js +0 -2
  15. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
  16. package/es/molecule/checkbox-with-title/test/fixtures.js +15 -0
  17. package/es/molecule/checkbox-with-title/test/fixtures.js.map +1 -0
  18. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  19. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  20. package/es/molecule/course-section/test/fixtures.js +0 -6
  21. package/es/molecule/course-section/test/fixtures.js.map +1 -1
  22. package/es/molecule/course-sections/test/fixtures.js +0 -2
  23. package/es/molecule/course-sections/test/fixtures.js.map +1 -1
  24. package/es/molecule/news/index.js +1 -2
  25. package/es/molecule/news/index.js.map +1 -1
  26. package/es/molecule/popin/index.js +2 -2
  27. package/es/molecule/popin/index.js.map +1 -1
  28. package/es/molecule/questions/qcm/index.js +1 -2
  29. package/es/molecule/questions/qcm/index.js.map +1 -1
  30. package/es/molecule/questions/qcm/style.css +4 -0
  31. package/es/molecule/questions/qcm/test/qcm.js +2 -2
  32. package/es/molecule/questions/qcm/test/qcm.js.map +1 -1
  33. package/es/molecule/questions/qcm-drag/index.js +2 -3
  34. package/es/molecule/questions/qcm-drag/index.js.map +1 -1
  35. package/es/molecule/questions/qcm-drag/style.css +4 -0
  36. package/es/molecule/questions/qcm-graphic/index.js +1 -2
  37. package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
  38. package/es/molecule/questions/qcm-graphic/style.css +5 -1
  39. package/es/molecule/questions/question-range/index.js +3 -4
  40. package/es/molecule/questions/question-range/index.js.map +1 -1
  41. package/es/molecule/questions/question-range/style.css +4 -0
  42. package/es/molecule/review-card-congrats/index.js +1 -1
  43. package/es/molecule/review-card-congrats/index.js.map +1 -1
  44. package/es/molecule/search/test/fixtures.js +15 -0
  45. package/es/molecule/search/test/fixtures.js.map +1 -0
  46. package/es/molecule/setup-slide/test/fixtures.js +0 -2
  47. package/es/molecule/setup-slide/test/fixtures.js.map +1 -1
  48. package/es/molecule/share/index.js +1 -1
  49. package/es/molecule/share/index.js.map +1 -1
  50. package/es/molecule/skill-card/style.css +9 -1
  51. package/es/organism/brand-form/test/fixtures.js +0 -4
  52. package/es/organism/brand-form/test/fixtures.js.map +1 -1
  53. package/es/organism/course-selection/test/fixtures.js +0 -2
  54. package/es/organism/course-selection/test/fixtures.js.map +1 -1
  55. package/es/organism/playlist-translation/test/fixtures.js +15 -0
  56. package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
  57. package/es/organism/review-skills/style.css +10 -1
  58. package/es/organism/search-and-chips-results/test/fixtures.js +0 -2
  59. package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -1
  60. package/es/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js +0 -1
  61. package/es/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js.map +1 -1
  62. package/es/organism/wizard-contents/test/fixtures/certification-rewards.js +0 -1
  63. package/es/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -1
  64. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +0 -1
  65. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  66. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +0 -1
  67. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  68. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +0 -1
  69. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  70. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +0 -1
  71. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
  72. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +0 -1
  73. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  74. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +0 -1
  75. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  76. package/es/organism/wizard-contents/test/fixtures.js +0 -4
  77. package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
  78. package/es/template/app-review/root-view/common.js +6 -0
  79. package/es/template/app-review/root-view/common.js.map +1 -0
  80. package/es/template/app-review/root-view/prop-types.js +11 -3
  81. package/es/template/app-review/root-view/prop-types.js.map +1 -1
  82. package/es/template/app-review/root-view/root-view.js +4 -38
  83. package/es/template/app-review/root-view/root-view.js.map +1 -1
  84. package/es/template/app-review/root-view/root-view.native.js +6 -5
  85. package/es/template/app-review/root-view/root-view.native.js.map +1 -1
  86. package/es/template/back-office/brand-update/test/fixtures.js +0 -2
  87. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  88. package/es/template/external-course/test/fixtures.js +0 -4
  89. package/es/template/external-course/test/fixtures.js.map +1 -1
  90. package/es/template/{app-review/review-dashboard-skills → review-dashboard-skills}/index.js +2 -2
  91. package/es/template/review-dashboard-skills/index.js.map +1 -0
  92. package/{lib/template/app-review → es/template}/review-dashboard-skills/style.css +2 -3
  93. package/es/template/review-dashboard-skills/test/fixtures/loading.js +10 -0
  94. package/es/template/review-dashboard-skills/test/fixtures/loading.js.map +1 -0
  95. package/es/template/review-dashboard-skills/test/fixtures/many-skills.js +10 -0
  96. package/es/template/review-dashboard-skills/test/fixtures/many-skills.js.map +1 -0
  97. package/es/template/review-dashboard-skills/test/fixtures/no-skills.js +10 -0
  98. package/es/template/review-dashboard-skills/test/fixtures/no-skills.js.map +1 -0
  99. package/lib/atom/button-link-icon-only/test/fixtures.js +0 -3
  100. package/lib/atom/button-link-icon-only/test/fixtures.js.map +1 -1
  101. package/lib/atom/cta/index.js +2 -1
  102. package/lib/atom/cta/index.js.map +1 -1
  103. package/lib/atom/cta/test/cta.js +115 -0
  104. package/lib/atom/cta/test/cta.js.map +1 -0
  105. package/lib/atom/drag-and-drop/test/fixtures.js +0 -18
  106. package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -1
  107. package/lib/atom/image-upload/test/fixtures.js +3 -9
  108. package/lib/atom/image-upload/test/fixtures.js.map +1 -1
  109. package/lib/atom/review-presentation/style.css +1 -1
  110. package/lib/atom/review-presentation/test/fixtures/default.js +2 -2
  111. package/lib/atom/review-presentation/test/fixtures/default.js.map +1 -1
  112. package/lib/molecule/brand-form-group/test/fixtures.js +0 -3
  113. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
  114. package/lib/{atom → molecule}/checkbox-with-title/test/fixtures.js +4 -4
  115. package/lib/molecule/checkbox-with-title/test/fixtures.js.map +1 -0
  116. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  117. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  118. package/lib/molecule/course-section/test/fixtures.js +0 -9
  119. package/lib/molecule/course-section/test/fixtures.js.map +1 -1
  120. package/lib/molecule/course-sections/test/fixtures.js +0 -3
  121. package/lib/molecule/course-sections/test/fixtures.js.map +1 -1
  122. package/lib/molecule/news/index.js +1 -2
  123. package/lib/molecule/news/index.js.map +1 -1
  124. package/lib/molecule/popin/index.js +2 -2
  125. package/lib/molecule/popin/index.js.map +1 -1
  126. package/lib/molecule/questions/qcm/index.js +7 -9
  127. package/lib/molecule/questions/qcm/index.js.map +1 -1
  128. package/lib/molecule/questions/qcm/style.css +4 -0
  129. package/lib/molecule/questions/qcm/test/qcm.js +2 -2
  130. package/lib/molecule/questions/qcm/test/qcm.js.map +1 -1
  131. package/lib/molecule/questions/qcm-drag/index.js +12 -14
  132. package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
  133. package/lib/molecule/questions/qcm-drag/style.css +4 -0
  134. package/lib/molecule/questions/qcm-graphic/index.js +8 -10
  135. package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
  136. package/lib/molecule/questions/qcm-graphic/style.css +5 -1
  137. package/lib/molecule/questions/question-range/index.js +6 -8
  138. package/lib/molecule/questions/question-range/index.js.map +1 -1
  139. package/lib/molecule/questions/question-range/style.css +4 -0
  140. package/lib/molecule/review-card-congrats/index.js +1 -1
  141. package/lib/molecule/review-card-congrats/index.js.map +1 -1
  142. package/lib/molecule/search/test/fixtures.js +25 -0
  143. package/lib/molecule/search/test/fixtures.js.map +1 -0
  144. package/lib/molecule/setup-slide/test/fixtures.js +0 -3
  145. package/lib/molecule/setup-slide/test/fixtures.js.map +1 -1
  146. package/lib/molecule/share/index.js +1 -1
  147. package/lib/molecule/share/index.js.map +1 -1
  148. package/lib/molecule/skill-card/style.css +9 -1
  149. package/lib/organism/brand-form/test/fixtures.js +0 -6
  150. package/lib/organism/brand-form/test/fixtures.js.map +1 -1
  151. package/lib/organism/course-selection/test/fixtures.js +0 -3
  152. package/lib/organism/course-selection/test/fixtures.js.map +1 -1
  153. package/lib/organism/playlist-translation/test/fixtures.js +25 -0
  154. package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
  155. package/lib/organism/review-skills/style.css +10 -1
  156. package/lib/organism/search-and-chips-results/test/fixtures.js +0 -3
  157. package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -1
  158. package/lib/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js.map +1 -1
  159. package/lib/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -1
  160. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  161. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  162. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  163. package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
  164. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  165. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  166. package/lib/organism/wizard-contents/test/fixtures.js +0 -6
  167. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
  168. package/lib/template/app-review/root-view/common.js +11 -0
  169. package/lib/template/app-review/root-view/common.js.map +1 -0
  170. package/lib/template/app-review/root-view/prop-types.js +15 -3
  171. package/lib/template/app-review/root-view/prop-types.js.map +1 -1
  172. package/lib/template/app-review/root-view/root-view.js +4 -38
  173. package/lib/template/app-review/root-view/root-view.js.map +1 -1
  174. package/lib/template/app-review/root-view/root-view.native.js +6 -4
  175. package/lib/template/app-review/root-view/root-view.native.js.map +1 -1
  176. package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
  177. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  178. package/lib/template/external-course/test/fixtures.js +0 -6
  179. package/lib/template/external-course/test/fixtures.js.map +1 -1
  180. package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/index.js +2 -2
  181. package/lib/template/review-dashboard-skills/index.js.map +1 -0
  182. package/{es/template/app-review → lib/template}/review-dashboard-skills/style.css +2 -3
  183. package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/test/fixtures/loading.js +2 -2
  184. package/lib/template/review-dashboard-skills/test/fixtures/loading.js.map +1 -0
  185. package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/test/fixtures/many-skills.js +2 -2
  186. package/lib/template/review-dashboard-skills/test/fixtures/many-skills.js.map +1 -0
  187. package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/test/fixtures/no-skills.js +2 -2
  188. package/lib/template/review-dashboard-skills/test/fixtures/no-skills.js.map +1 -0
  189. package/package.json +3 -3
  190. package/es/atom/checkbox-with-title/test/fixtures.js +0 -15
  191. package/es/atom/checkbox-with-title/test/fixtures.js.map +0 -1
  192. package/es/atom/cta/test/hover.js +0 -42
  193. package/es/atom/cta/test/hover.js.map +0 -1
  194. package/es/atom/input-text-with-title/test/fixtures.js +0 -15
  195. package/es/atom/input-text-with-title/test/fixtures.js.map +0 -1
  196. package/es/atom/lottie-wrapper/test/fixtures.js +0 -19
  197. package/es/atom/lottie-wrapper/test/fixtures.js.map +0 -1
  198. package/es/atom/review-background/test/fixtures.js +0 -13
  199. package/es/atom/review-background/test/fixtures.js.map +0 -1
  200. package/es/atom/review-presentation/test/fixtures.js +0 -13
  201. package/es/atom/review-presentation/test/fixtures.js.map +0 -1
  202. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -17
  203. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
  204. package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js +0 -15
  205. package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
  206. package/es/molecule/list-badges/test/fixtures.js +0 -19
  207. package/es/molecule/list-badges/test/fixtures.js.map +0 -1
  208. package/es/molecule/review-card-congrats/test/fixtures.js +0 -15
  209. package/es/molecule/review-card-congrats/test/fixtures.js.map +0 -1
  210. package/es/molecule/skill-card/test/fixtures.js +0 -19
  211. package/es/molecule/skill-card/test/fixtures.js.map +0 -1
  212. package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -19
  213. package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
  214. package/es/organism/review-congrats/test/fixtures.js +0 -13
  215. package/es/organism/review-congrats/test/fixtures.js.map +0 -1
  216. package/es/organism/review-header/test/fixtures.js +0 -25
  217. package/es/organism/review-header/test/fixtures.js.map +0 -1
  218. package/es/organism/review-skills/test/fixtures.js +0 -17
  219. package/es/organism/review-skills/test/fixtures.js.map +0 -1
  220. package/es/organism/rewards-form/test/fixtures.js +0 -19
  221. package/es/organism/rewards-form/test/fixtures.js.map +0 -1
  222. package/es/template/app-review/review-dashboard-skills/index.js.map +0 -1
  223. package/es/template/app-review/review-dashboard-skills/test/fixtures/loading.js +0 -10
  224. package/es/template/app-review/review-dashboard-skills/test/fixtures/loading.js.map +0 -1
  225. package/es/template/app-review/review-dashboard-skills/test/fixtures/many-skills.js +0 -10
  226. package/es/template/app-review/review-dashboard-skills/test/fixtures/many-skills.js.map +0 -1
  227. package/es/template/app-review/review-dashboard-skills/test/fixtures/no-skills.js +0 -10
  228. package/es/template/app-review/review-dashboard-skills/test/fixtures/no-skills.js.map +0 -1
  229. package/es/template/app-review/review-dashboard-skills/test/fixtures.js +0 -17
  230. package/es/template/app-review/review-dashboard-skills/test/fixtures.js.map +0 -1
  231. package/es/template/app-review/slides-review/test/fixtures.js +0 -19
  232. package/es/template/app-review/slides-review/test/fixtures.js.map +0 -1
  233. package/es/template/review-dashboard-skills/test/fixtures.js +0 -17
  234. package/es/template/review-dashboard-skills/test/fixtures.js.map +0 -1
  235. package/es/template/slides-review/test/fixtures.js +0 -19
  236. package/es/template/slides-review/test/fixtures.js.map +0 -1
  237. package/lib/atom/checkbox-with-title/test/fixtures.js.map +0 -1
  238. package/lib/atom/cta/test/hover.js +0 -54
  239. package/lib/atom/cta/test/hover.js.map +0 -1
  240. package/lib/atom/input-text-with-title/test/fixtures.js +0 -25
  241. package/lib/atom/input-text-with-title/test/fixtures.js.map +0 -1
  242. package/lib/atom/lottie-wrapper/test/fixtures.js +0 -31
  243. package/lib/atom/lottie-wrapper/test/fixtures.js.map +0 -1
  244. package/lib/atom/review-background/test/fixtures.js +0 -22
  245. package/lib/atom/review-background/test/fixtures.js.map +0 -1
  246. package/lib/atom/review-presentation/test/fixtures.js +0 -22
  247. package/lib/atom/review-presentation/test/fixtures.js.map +0 -1
  248. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -28
  249. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
  250. package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js +0 -25
  251. package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
  252. package/lib/molecule/list-badges/test/fixtures.js +0 -31
  253. package/lib/molecule/list-badges/test/fixtures.js.map +0 -1
  254. package/lib/molecule/review-card-congrats/test/fixtures.js +0 -25
  255. package/lib/molecule/review-card-congrats/test/fixtures.js.map +0 -1
  256. package/lib/molecule/skill-card/test/fixtures.js +0 -31
  257. package/lib/molecule/skill-card/test/fixtures.js.map +0 -1
  258. package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -31
  259. package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
  260. package/lib/organism/review-congrats/test/fixtures.js +0 -22
  261. package/lib/organism/review-congrats/test/fixtures.js.map +0 -1
  262. package/lib/organism/review-header/test/fixtures.js +0 -40
  263. package/lib/organism/review-header/test/fixtures.js.map +0 -1
  264. package/lib/organism/review-skills/test/fixtures.js +0 -28
  265. package/lib/organism/review-skills/test/fixtures.js.map +0 -1
  266. package/lib/organism/rewards-form/test/fixtures.js +0 -31
  267. package/lib/organism/rewards-form/test/fixtures.js.map +0 -1
  268. package/lib/template/app-review/review-dashboard-skills/index.js.map +0 -1
  269. package/lib/template/app-review/review-dashboard-skills/test/fixtures/loading.js.map +0 -1
  270. package/lib/template/app-review/review-dashboard-skills/test/fixtures/many-skills.js.map +0 -1
  271. package/lib/template/app-review/review-dashboard-skills/test/fixtures/no-skills.js.map +0 -1
  272. package/lib/template/app-review/review-dashboard-skills/test/fixtures.js +0 -28
  273. package/lib/template/app-review/review-dashboard-skills/test/fixtures.js.map +0 -1
  274. package/lib/template/app-review/slides-review/test/fixtures.js +0 -31
  275. package/lib/template/app-review/slides-review/test/fixtures.js.map +0 -1
  276. package/lib/template/review-dashboard-skills/test/fixtures.js +0 -28
  277. package/lib/template/review-dashboard-skills/test/fixtures.js.map +0 -1
  278. package/lib/template/slides-review/test/fixtures.js +0 -31
  279. package/lib/template/slides-review/test/fixtures.js.map +0 -1
@@ -5,7 +5,6 @@ import AtomButtonLinkIconOnly from '..';
5
5
  import fixtureButtonIconBullet from './fixtures/button-icon-bullet';
6
6
  import fixtureDefault from './fixtures/default';
7
7
  import fixtureNoIcon from './fixtures/no-icon';
8
- import fixtureReviewHeader from './fixtures/review-header';
9
8
  import fixtureSmallButtonDisabled from './fixtures/small-button-disabled';
10
9
  import fixtureSmallLinkDownload from './fixtures/small-link-download';
11
10
  test('Atom › AtomButtonLinkIconOnly > should have valid propTypes', t => {
@@ -17,7 +16,6 @@ test('Atom › AtomButtonLinkIconOnly > should have valid propTypes', t => {
17
16
  test('Atom › AtomButtonLinkIconOnly › ButtonIconBullet › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureButtonIconBullet);
18
17
  test('Atom › AtomButtonLinkIconOnly › Default › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureDefault);
19
18
  test('Atom › AtomButtonLinkIconOnly › NoIcon › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureNoIcon);
20
- test('Atom › AtomButtonLinkIconOnly › ReviewHeader › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureReviewHeader);
21
19
  test('Atom › AtomButtonLinkIconOnly › SmallButtonDisabled › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureSmallButtonDisabled);
22
20
  test('Atom › AtomButtonLinkIconOnly › SmallLinkDownload › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureSmallLinkDownload);
23
21
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/button-link-icon-only/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomButtonLinkIconOnly","fixtureButtonIconBullet","fixtureDefault","fixtureNoIcon","fixtureReviewHeader","fixtureSmallButtonDisabled","fixtureSmallLinkDownload","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,oBAA1B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,0BAAP,MAAuC,kCAAvC;AACA,OAAOC,wBAAP,MAAqC,gCAArC;AAEAT,IAAI,CAAC,6DAAD,EAAgEU,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,sBAAsB,CAACS,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,sBAAhG,EAAwHC,uBAAxH,CAAJ;AACAJ,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,sBAAvF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,sBAAtF,EAA8GG,aAA9G,CAAJ;AACAN,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,sBAA5F,EAAoHI,mBAApH,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,sBAAnG,EAA2HK,0BAA3H,CAAJ;AACAR,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,sBAAjG,EAAyHM,wBAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomButtonLinkIconOnly from '..';\nimport fixtureButtonIconBullet from './fixtures/button-icon-bullet';\nimport fixtureDefault from './fixtures/default';\nimport fixtureNoIcon from './fixtures/no-icon';\nimport fixtureReviewHeader from './fixtures/review-header';\nimport fixtureSmallButtonDisabled from './fixtures/small-button-disabled';\nimport fixtureSmallLinkDownload from './fixtures/small-link-download';\n\ntest('Atom › AtomButtonLinkIconOnly > should have valid propTypes', t => {\n t.pass();\n forEach(AtomButtonLinkIconOnly.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomButtonLinkIconOnly.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomButtonLinkIconOnly › ButtonIconBullet › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureButtonIconBullet);\ntest('Atom › AtomButtonLinkIconOnly › Default › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureDefault);\ntest('Atom › AtomButtonLinkIconOnly › NoIcon › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureNoIcon);\ntest('Atom › AtomButtonLinkIconOnly › ReviewHeader › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureReviewHeader);\ntest('Atom › AtomButtonLinkIconOnly › SmallButtonDisabled › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureSmallButtonDisabled);\ntest('Atom › AtomButtonLinkIconOnly › SmallLinkDownload › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureSmallLinkDownload);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/button-link-icon-only/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomButtonLinkIconOnly","fixtureButtonIconBullet","fixtureDefault","fixtureNoIcon","fixtureSmallButtonDisabled","fixtureSmallLinkDownload","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,oBAA1B;AACA,OAAOC,0BAAP,MAAuC,kCAAvC;AACA,OAAOC,wBAAP,MAAqC,gCAArC;AAEAR,IAAI,CAAC,6DAAD,EAAgES,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,sBAAsB,CAACQ,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,sBAAhG,EAAwHC,uBAAxH,CAAJ;AACAJ,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,sBAAvF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,sBAAtF,EAA8GG,aAA9G,CAAJ;AACAN,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,sBAAnG,EAA2HI,0BAA3H,CAAJ;AACAP,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,sBAAjG,EAAyHK,wBAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomButtonLinkIconOnly from '..';\nimport fixtureButtonIconBullet from './fixtures/button-icon-bullet';\nimport fixtureDefault from './fixtures/default';\nimport fixtureNoIcon from './fixtures/no-icon';\nimport fixtureSmallButtonDisabled from './fixtures/small-button-disabled';\nimport fixtureSmallLinkDownload from './fixtures/small-link-download';\n\ntest('Atom › AtomButtonLinkIconOnly > should have valid propTypes', t => {\n t.pass();\n forEach(AtomButtonLinkIconOnly.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomButtonLinkIconOnly.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomButtonLinkIconOnly › ButtonIconBullet › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureButtonIconBullet);\ntest('Atom › AtomButtonLinkIconOnly › Default › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureDefault);\ntest('Atom › AtomButtonLinkIconOnly › NoIcon › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureNoIcon);\ntest('Atom › AtomButtonLinkIconOnly › SmallButtonDisabled › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureSmallButtonDisabled);\ntest('Atom › AtomButtonLinkIconOnly › SmallLinkDownload › should be rendered', renderComponentMacro, AtomButtonLinkIconOnly, fixtureSmallLinkDownload);\n"],"file":"fixtures.js"}
@@ -110,7 +110,8 @@ class CTA extends React.Component {
110
110
  "data-name": ctaName || 'cta',
111
111
  style: this.getStyle()
112
112
  }, logout ? /*#__PURE__*/React.createElement("div", {
113
- className: style.logoutWrapper
113
+ className: style.logoutWrapper,
114
+ "data-name": "cta-logout-label"
114
115
  }, /*#__PURE__*/React.createElement(LogoutIcon, {
115
116
  height: 15,
116
117
  width: 15,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/cta/index.js"],"names":["React","convert","PropTypes","classnames","NovaCompositionCoorpacademyLogout","LogoutIcon","Provider","Link","style","CTA","Component","constructor","props","state","hovered","handleMouseEnter","bind","handleMouseLeave","setState","getStyle","skin","context","disabled","light","secondary","logout","color","grey","backgroundColor","borderColor","opacity","darkenColor","render","submitValue","name","ctaName","href","target","small","onClick","className","rectangular","fullWidth","certificationButton","button","smallButton","lightButton","secondaryButton","logoutButton","rectangularButton","logoutWrapper","logoutIcon","childContextTypes","propTypes","children","string","bool"],"mappings":";;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAQC,OAAR,QAAsB,oBAAtB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAAQC,iCAAiC,IAAIC,UAA7C,QAA8D,0BAA9D;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,IAAP,MAAiB,SAAjB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,GAAN,SAAkBT,KAAK,CAACU,SAAxB,CAAkC;AAsBhCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;AACA,SAAKC,KAAL,GAAa;AACXC,MAAAA,OAAO,EAAE;AADE,KAAb;AAGA,SAAKC,gBAAL,GAAwB,KAAKA,gBAAL,CAAsBC,IAAtB,CAA2B,IAA3B,CAAxB;AACA,SAAKC,gBAAL,GAAwB,KAAKA,gBAAL,CAAsBD,IAAtB,CAA2B,IAA3B,CAAxB;AACD;;AAEDD,EAAAA,gBAAgB,GAAG;AACjB,WAAO,KAAKG,QAAL,CAAc;AACnBJ,MAAAA,OAAO,EAAE;AADU,KAAd,CAAP;AAGD;;AAEDG,EAAAA,gBAAgB,GAAG;AACjB,WAAO,KAAKC,QAAL,CAAc;AACnBJ,MAAAA,OAAO,EAAE;AADU,KAAd,CAAP;AAGD;;AAEDK,EAAAA,QAAQ,GAAG;AACT,UAAM;AAACC,MAAAA;AAAD,QAAS,KAAKC,OAApB;AACA,UAAM;AAACP,MAAAA;AAAD,QAAY,KAAKD,KAAvB;AACA,UAAM;AAACS,MAAAA,QAAQ,GAAG,KAAZ;AAAmBC,MAAAA,KAAK,GAAG,KAA3B;AAAkCC,MAAAA,SAAS,GAAG,KAA9C;AAAqDC,MAAA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AI,CAAC8C,SAAL,CAAeC,QADX;AAEjBlB,EAAAA,IAAI,EAAE7B,IAAI,CAAC8C,SAAL,CAAejB,IAFJ;AAGjBG,EAAAA,OAAO,EAAEhC,IAAI,CAAC8C,SAAL,CAAed,OAHP;AAIjBF,EAAAA,MAAM,EAAE9B,IAAI,CAAC8C,SAAL,CAAehB,MAJN;AAKjBH,EAAAA,IAAI,EAAEhC,SAAS,CAACqD,MALC;AAMjBjC,EAAAA,QAAQ,EAAEpB,SAAS,CAACsD,IANH;AAOjBjC,EAAAA,KAAK,EAAErB,SAAS,CAACsD,IAPA;AAQjBhC,EAAAA,SAAS,EAAEtB,SAAS,CAACsD,IARJ;AASjBlB,EAAAA,KAAK,EAAEpC,SAAS,CAACsD,IATA;AAUjBhB,EAAAA,SAAS,EAAEtC,SAAS,CAACqD,MAVJ;AAWjB9B,EAAAA,MAAM,EAAEvB,SAAS,CAACsD,IAXD;AAYjBf,EAAAA,WAAW,EAAEvC,SAAS,CAACsD,IAZN;AAajBd,EAAAA,SAAS,EAAExC,SAAS,CAACsD,IAbJ;AAcjBb,EAAAA,mBAAmB,EAAEzC,SAAS,CAACsD;AAdd,C;AAyIrB,eAAe/C,GAAf","sourcesContent":["import React from 'react';\nimport {convert} from 'css-color-function';\nimport PropTypes from 'prop-types';\nimport {get, noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport {NovaCompositionCoorpacademyLogout as LogoutIcon} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport Link from '../link';\nimport style from './style.css';\n\nclass CTA extends React.Component {\n static propTypes = {\n submitValue: Link.propTypes.children,\n href: Link.propTypes.href,\n onClick: Link.propTypes.onClick,\n target: Link.propTypes.target,\n name: PropTypes.string,\n disabled: PropTypes.bool,\n light: PropTypes.bool,\n secondary: PropTypes.bool,\n small: PropTypes.bool,\n className: PropTypes.string,\n logout: PropTypes.bool,\n rectangular: PropTypes.bool,\n fullWidth: PropTypes.bool,\n certificationButton: PropTypes.bool\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n this.state = {\n hovered: false\n };\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n }\n\n handleMouseEnter() {\n return this.setState({\n hovered: true\n });\n }\n\n handleMouseLeave() {\n return this.setState({\n hovered: false\n });\n }\n\n getStyle() {\n const {skin} = this.context;\n const {hovered} = this.state;\n const {disabled = false, light = false, secondary = false, logout = false} = this.props;\n const color = get('common.primary', skin);\n const grey = get('common.grey', skin);\n\n if (logout) return;\n\n if (disabled) {\n return {\n backgroundColor: grey,\n borderColor: grey,\n opacity: '0.3'\n };\n }\n\n if (hovered) {\n const darkenColor = convert(`color(${color} blackness(+10%))`);\n return {\n backgroundColor: darkenColor,\n borderColor: darkenColor\n };\n }\n\n if (secondary)\n return {\n color,\n borderColor: color\n };\n\n if (light)\n return {\n color\n };\n\n return {\n borderColor: color,\n backgroundColor: color\n };\n }\n\n render() {\n const {\n submitValue = 'submit',\n name: ctaName,\n href,\n target,\n disabled = false,\n light = false,\n small = false,\n secondary = false,\n onClick,\n className,\n logout = false,\n rectangular = false,\n fullWidth = false,\n certificationButton = false\n } = this.props;\n\n return (\n <Link\n href={href}\n onClick={disabled ? noop : onClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n target={target}\n className={classnames(\n style.button,\n disabled ? style.disabled : null,\n small ? style.smallButton : null,\n light ? style.lightButton : null,\n secondary ? style.secondaryButton : null,\n logout ? style.logoutButton : null,\n rectangular ? style.rectangularButton : null,\n fullWidth ? style.fullWidth : null,\n certificationButton ? style.certificationButton : null,\n className\n )}\n data-name={ctaName || 'cta'}\n style={this.getStyle()}\n >\n {logout ? (\n <div className={style.logoutWrapper}>\n <LogoutIcon height={15} width={15} className={style.logoutIcon} />\n {submitValue}\n </div>\n ) : (\n submitValue\n )}\n </Link>\n );\n }\n}\n\nexport default CTA;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/cta/index.js"],"names":["React","convert","PropTypes","classnames","NovaCompositionCoorpacademyLogout","LogoutIcon","Provider","Link","style","CTA","Component","constructor","props","state","hovered","handleMouseEnter","bind","handleMouseLeave","setState","getStyle","skin","context","disabled","light","secondary","logout","color","grey","backgroundColor","borderColor","opacity","darkenColor","render","submitValue","name","ctaName","href","target","small","onClick","className","rectangular","fullWidth","certificationButton","button","smallButton","lightButton","secondaryButton","logoutButton","rectangularButton","logoutWrapper","logoutIcon","childContextTypes","propTypes","children","string","bool"],"mappings":";;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAQC,OAAR,QAAsB,oBAAtB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAAQC,iCAAiC,IAAIC,UAA7C,QAA8D,0BAA9D;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,IAAP,MAAiB,SAAjB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,GAAN,SAAkBT,KAAK,CAACU,SAAxB,CAAkC;AAsBhCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;AACA,SAAKC,KAAL,GAAa;AACXC,MAAAA,OAAO,EAAE;AADE,KAAb;AAGA,SAAKC,gBAAL,GAAwB,KAAKA,gBAAL,CAAsBC,IAAtB,CAA2B,IAA3B,CAAxB;AACA,SAAKC,gBAAL,GAAwB,KAAKA,gBAAL,CAAsBD,IAAtB,CAA2B,IAA3B,CAAxB;AACD;;AAEDD,EAAAA,gBAAgB,GAAG;AACjB,WAAO,KAAKG,QAAL,CAAc;AACnBJ,MAAAA,OAAO,EAAE;AADU,KAAd,CAAP;AAGD;;AAEDG,EAAAA,gBAAgB,GAAG;AACjB,WAAO,KAAKC,QAAL,CAAc;AACnBJ,MAAAA,OAAO,EAAE;AADU,KAAd,CAAP;AAGD;;AAEDK,EAAAA,QAAQ,GAAG;AAC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S,EAAE1C,KAAK,CAAC2C;AAApD,MADF,EAEGlB,WAFH,CADK,GAMLA,WA3BJ,CADF;AAgCD;;AAvI+B;;gBAA5BxB,G,kBAkBkB;AACpBW,EAAAA,IAAI,EAAEd,QAAQ,CAAC8C,iBAAT,CAA2BhC;AADb,C;;AAlBlBX,G,CACG4C,S,2CAAY;AACjBpB,EAAAA,WAAW,EAAE1B,IAAI,CAAC8C,SAAL,CAAeC,QADX;AAEjBlB,EAAAA,IAAI,EAAE7B,IAAI,CAAC8C,SAAL,CAAejB,IAFJ;AAGjBG,EAAAA,OAAO,EAAEhC,IAAI,CAAC8C,SAAL,CAAed,OAHP;AAIjBF,EAAAA,MAAM,EAAE9B,IAAI,CAAC8C,SAAL,CAAehB,MAJN;AAKjBH,EAAAA,IAAI,EAAEhC,SAAS,CAACqD,MALC;AAMjBjC,EAAAA,QAAQ,EAAEpB,SAAS,CAACsD,IANH;AAOjBjC,EAAAA,KAAK,EAAErB,SAAS,CAACsD,IAPA;AAQjBhC,EAAAA,SAAS,EAAEtB,SAAS,CAACsD,IARJ;AASjBlB,EAAAA,KAAK,EAAEpC,SAAS,CAACsD,IATA;AAUjBhB,EAAAA,SAAS,EAAEtC,SAAS,CAACqD,MAVJ;AAWjB9B,EAAAA,MAAM,EAAEvB,SAAS,CAACsD,IAXD;AAYjBf,EAAAA,WAAW,EAAEvC,SAAS,CAACsD,IAZN;AAajBd,EAAAA,SAAS,EAAExC,SAAS,CAACsD,IAbJ;AAcjBb,EAAAA,mBAAmB,EAAEzC,SAAS,CAACsD;AAdd,C;AAyIrB,eAAe/C,GAAf","sourcesContent":["import React from 'react';\nimport {convert} from 'css-color-function';\nimport PropTypes from 'prop-types';\nimport {get, noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport {NovaCompositionCoorpacademyLogout as LogoutIcon} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport Link from '../link';\nimport style from './style.css';\n\nclass CTA extends React.Component {\n static propTypes = {\n submitValue: Link.propTypes.children,\n href: Link.propTypes.href,\n onClick: Link.propTypes.onClick,\n target: Link.propTypes.target,\n name: PropTypes.string,\n disabled: PropTypes.bool,\n light: PropTypes.bool,\n secondary: PropTypes.bool,\n small: PropTypes.bool,\n className: PropTypes.string,\n logout: PropTypes.bool,\n rectangular: PropTypes.bool,\n fullWidth: PropTypes.bool,\n certificationButton: PropTypes.bool\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n this.state = {\n hovered: false\n };\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n }\n\n handleMouseEnter() {\n return this.setState({\n hovered: true\n });\n }\n\n handleMouseLeave() {\n return this.setState({\n hovered: false\n });\n }\n\n getStyle() {\n const {skin} = this.context;\n const {hovered} = this.state;\n const {disabled = false, light = false, secondary = false, logout = false} = this.props;\n const color = get('common.primary', skin);\n const grey = get('common.grey', skin);\n\n if (logout) return;\n\n if (disabled) {\n return {\n backgroundColor: grey,\n borderColor: grey,\n opacity: '0.3'\n };\n }\n\n if (hovered) {\n const darkenColor = convert(`color(${color} blackness(+10%))`);\n return {\n backgroundColor: darkenColor,\n borderColor: darkenColor\n };\n }\n\n if (secondary)\n return {\n color,\n borderColor: color\n };\n\n if (light)\n return {\n color\n };\n\n return {\n borderColor: color,\n backgroundColor: color\n };\n }\n\n render() {\n const {\n submitValue = 'submit',\n name: ctaName,\n href,\n target,\n disabled = false,\n light = false,\n small = false,\n secondary = false,\n onClick,\n className,\n logout = false,\n rectangular = false,\n fullWidth = false,\n certificationButton = false\n } = this.props;\n\n return (\n <Link\n href={href}\n onClick={disabled ? noop : onClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n target={target}\n className={classnames(\n style.button,\n disabled ? style.disabled : null,\n small ? style.smallButton : null,\n light ? style.lightButton : null,\n secondary ? style.secondaryButton : null,\n logout ? style.logoutButton : null,\n rectangular ? style.rectangularButton : null,\n fullWidth ? style.fullWidth : null,\n certificationButton ? style.certificationButton : null,\n className\n )}\n data-name={ctaName || 'cta'}\n style={this.getStyle()}\n >\n {logout ? (\n <div className={style.logoutWrapper} data-name=\"cta-logout-label\">\n <LogoutIcon height={15} width={15} className={style.logoutIcon} />\n {submitValue}\n </div>\n ) : (\n submitValue\n )}\n </Link>\n );\n }\n}\n\nexport default CTA;\n"],"file":"index.js"}
@@ -0,0 +1,93 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ import browserEnv from 'browser-env';
4
+ import test from 'ava';
5
+ import React from 'react';
6
+ import { fireEvent } from '@testing-library/react';
7
+ import { renderWithContext } from '../../../util/render-with-context';
8
+ import Cta from '..';
9
+ import ctaFixture from './fixtures/primary';
10
+ import logoutFixture from './fixtures/logout';
11
+ browserEnv();
12
+ const context = {
13
+ skin: {
14
+ common: {
15
+ primary: '#FF7043'
16
+ }
17
+ }
18
+ };
19
+ test('should be considered as hovered when mouse enters', t => {
20
+ const unhoveredCtaLinkStyle = {
21
+ 'background-color': 'rgb(255, 112, 67)',
22
+ 'border-bottom-color': '#ff7043',
23
+ 'border-color': '#ff7043',
24
+ 'border-left-color': '#ff7043',
25
+ 'border-right-color': '#ff7043',
26
+ 'border-top-color': '#ff7043'
27
+ };
28
+ const {
29
+ container
30
+ } = renderWithContext( /*#__PURE__*/React.createElement(Cta, ctaFixture.props), {
31
+ context
32
+ });
33
+ const cta = container.querySelector('[data-name="cta"]');
34
+ t.truthy(cta);
35
+ t.deepEqual(cta.style._values, unhoveredCtaLinkStyle);
36
+ fireEvent.mouseOver(cta);
37
+ t.deepEqual(cta.style._values, {
38
+ 'background-color': 'rgb(230, 104, 66)',
39
+ 'border-bottom-color': 'rgb(230, 104, 66)',
40
+ 'border-color': 'rgb(230, 104, 66)',
41
+ 'border-left-color': 'rgb(230, 104, 66)',
42
+ 'border-right-color': 'rgb(230, 104, 66)',
43
+ 'border-top-color': 'rgb(230, 104, 66)'
44
+ });
45
+ fireEvent.mouseLeave(cta);
46
+ t.deepEqual(cta.style._values, unhoveredCtaLinkStyle);
47
+ });
48
+ test("The hover action should not change the cta's (Link wrapper) style when the mouse enters the logout label", t => {
49
+ const {
50
+ container
51
+ } = renderWithContext( /*#__PURE__*/React.createElement(Cta, logoutFixture.props), {
52
+ context
53
+ });
54
+ const logout = container.querySelector('[data-name="cta-logout-label"]');
55
+ const cta = container.querySelector('[data-name="cta"]'); // no styles should be returned for logout either on hover/ unhovered
56
+
57
+ t.deepEqual(cta.style._values, {});
58
+ fireEvent.mouseOver(logout);
59
+ t.deepEqual(cta.style._values, {});
60
+ fireEvent.mouseLeave(logout);
61
+ t.deepEqual(cta.style._values, {});
62
+ });
63
+ test('Onclick test', t => {
64
+ t.plan(3);
65
+
66
+ const onClick = () => {
67
+ t.pass();
68
+ };
69
+
70
+ const {
71
+ container,
72
+ rerender
73
+ } = renderWithContext( /*#__PURE__*/React.createElement(Cta, _extends({}, ctaFixture.props, {
74
+ onClick: onClick
75
+ })), {
76
+ context
77
+ });
78
+ const cta = container.querySelector('[data-name="cta"]');
79
+ t.truthy(cta);
80
+ fireEvent.click(cta);
81
+
82
+ const onClick2 = () => {
83
+ t.fail();
84
+ };
85
+
86
+ rerender( /*#__PURE__*/React.createElement(Cta, _extends({}, ctaFixture.props, {
87
+ disabled: true,
88
+ onClick: onClick2
89
+ })));
90
+ t.truthy(cta);
91
+ fireEvent.click(cta);
92
+ });
93
+ //# sourceMappingURL=cta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/atom/cta/test/cta.js"],"names":["browserEnv","test","React","fireEvent","renderWithContext","Cta","ctaFixture","logoutFixture","context","skin","common","primary","t","unhoveredCtaLinkStyle","container","props","cta","querySelector","truthy","deepEqual","style","_values","mouseOver","mouseLeave","logout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kD;AAC/FlB,IAAAA;AAD+F,GAAlD,CAA/C;AAGA,QAAMQ,GAAG,GAAGF,SAAS,CAACG,aAAV,CAAwB,mBAAxB,CAAZ;AACAL,EAAAA,CAAC,CAACM,MAAF,CAASF,GAAT;AAEAb,EAAAA,SAAS,CAAC0B,KAAV,CAAgBb,GAAhB;;AAEA,QAAMc,QAAQ,GAAG,MAAM;AACrBlB,IAAAA,CAAC,CAACmB,IAAF;AACD,GAFD;;AAIAH,EAAAA,QAAQ,eAAC,oBAAC,GAAD,eAAStB,UAAU,CAACS,KAApB;AAA2B,IAAA,QAAQ,MAAnC;AAAoC,IAAA,OAAO,EAAEe;AAA7C,KAAD,CAAR;AAEAlB,EAAAA,CAAC,CAACM,MAAF,CAASF,GAAT;AAEAb,EAAAA,SAAS,CAAC0B,KAAV,CAAgBb,GAAhB;AACD,CAxBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {fireEvent} from '@testing-library/react';\nimport {renderWithContext} from '../../../util/render-with-context';\nimport Cta from '..';\nimport ctaFixture from './fixtures/primary';\nimport logoutFixture from './fixtures/logout';\n\nbrowserEnv();\n\nconst context = {\n skin: {\n common: {\n primary: '#FF7043'\n }\n }\n};\n\ntest('should be considered as hovered when mouse enters', t => {\n const unhoveredCtaLinkStyle = {\n 'background-color': 'rgb(255, 112, 67)',\n 'border-bottom-color': '#ff7043',\n 'border-color': '#ff7043',\n 'border-left-color': '#ff7043',\n 'border-right-color': '#ff7043',\n 'border-top-color': '#ff7043'\n };\n\n const {container} = renderWithContext(<Cta {...ctaFixture.props} />, {context});\n const cta = container.querySelector('[data-name=\"cta\"]');\n\n t.truthy(cta);\n t.deepEqual(cta.style._values, unhoveredCtaLinkStyle);\n\n fireEvent.mouseOver(cta);\n\n t.deepEqual(cta.style._values, {\n 'background-color': 'rgb(230, 104, 66)',\n 'border-bottom-color': 'rgb(230, 104, 66)',\n 'border-color': 'rgb(230, 104, 66)',\n 'border-left-color': 'rgb(230, 104, 66)',\n 'border-right-color': 'rgb(230, 104, 66)',\n 'border-top-color': 'rgb(230, 104, 66)'\n });\n\n fireEvent.mouseLeave(cta);\n\n t.deepEqual(cta.style._values, unhoveredCtaLinkStyle);\n});\n\ntest(\"The hover action should not change the cta's (Link wrapper) style when the mouse enters the logout label\", t => {\n const {container} = renderWithContext(<Cta {...logoutFixture.props} />, {context});\n const logout = container.querySelector('[data-name=\"cta-logout-label\"]');\n const cta = container.querySelector('[data-name=\"cta\"]');\n\n // no styles should be returned for logout either on hover/ unhovered\n t.deepEqual(cta.style._values, {});\n\n fireEvent.mouseOver(logout);\n t.deepEqual(cta.style._values, {});\n\n fireEvent.mouseLeave(logout);\n t.deepEqual(cta.style._values, {});\n});\n\ntest('Onclick test', t => {\n t.plan(3);\n\n const onClick = () => {\n t.pass();\n };\n\n const {container, rerender} = renderWithContext(<Cta {...ctaFixture.props} onClick={onClick} />, {\n context\n });\n const cta = container.querySelector('[data-name=\"cta\"]');\n t.truthy(cta);\n\n fireEvent.click(cta);\n\n const onClick2 = () => {\n t.fail();\n };\n\n rerender(<Cta {...ctaFixture.props} disabled onClick={onClick2} />);\n\n t.truthy(cta);\n\n fireEvent.click(cta);\n});\n"],"file":"cta.js"}
@@ -2,17 +2,11 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import AtomDragAndDrop from '..';
5
- import fixtureCleanAndModified from './fixtures/clean-and-modified';
6
5
  import fixtureDefault from './fixtures/default';
7
- import fixtureDisabledWithImageReset from './fixtures/disabled-with-image-reset';
8
- import fixtureDisabled from './fixtures/disabled';
9
- import fixtureError from './fixtures/error';
10
6
  import fixtureLoading from './fixtures/loading';
11
- import fixtureModified from './fixtures/modified';
12
7
  import fixtureWithChildren from './fixtures/with-children';
13
8
  import fixtureWithImageReset from './fixtures/with-image-reset';
14
9
  import fixtureWithImage from './fixtures/with-image';
15
- import fixtureWithLongDescription from './fixtures/with-long-description';
16
10
  import fixtureWithVideo from './fixtures/with-video';
17
11
  test('Atom › AtomDragAndDrop > should have valid propTypes', t => {
18
12
  t.pass();
@@ -20,16 +14,10 @@ test('Atom › AtomDragAndDrop > should have valid propTypes', t => {
20
14
  t.not(value, undefined, `PropType for "Atom.AtomDragAndDrop.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
15
  });
22
16
  });
23
- test('Atom › AtomDragAndDrop › CleanAndModified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureCleanAndModified);
24
17
  test('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);
25
- test('Atom › AtomDragAndDrop › DisabledWithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDisabledWithImageReset);
26
- test('Atom › AtomDragAndDrop › Disabled › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDisabled);
27
- test('Atom › AtomDragAndDrop › Error › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureError);
28
18
  test('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);
29
- test('Atom › AtomDragAndDrop › Modified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureModified);
30
19
  test('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);
31
20
  test('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);
32
21
  test('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);
33
- test('Atom › AtomDragAndDrop › WithLongDescription › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithLongDescription);
34
22
  test('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);
35
23
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/drag-and-drop/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomDragAndDrop","fixtureCleanAndModified","fixtureDefault","fixtureDisabledWithImageReset","fixtureDisabled","fixtureError","fixtureLoading","fixtureModified","fixtureWithChildren","fixtureWithImageReset","fixtureWithImage","fixtureWithLongDescription","fixtureWithVideo","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,eAAP,MAA4B,IAA5B;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,sCAA1C;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,0BAAP,MAAuC,kCAAvC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAf,IAAI,CAAC,sDAAD,EAAyDgB,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAhB,EAAAA,OAAO,CAACE,eAAe,CAACe,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOApB,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,eAAzF,EAA0GC,uBAA1G,CAAJ;AACAJ,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGE,cAAjG,CAAJ;AACAL,IAAI,CAAC,sEAAD,EAAyEE,oBAAzE,EAA+FC,eAA/F,EAAgHG,6BAAhH,CAAJ;AACAN,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGI,eAAlG,CAAJ;AACAP,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,eAA9E,EAA+FK,YAA/F,CAAJ;AACAR,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGM,cAAjG,CAAJ;AACAT,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGO,eAAlG,CAAJ;AACAV,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,eAArF,EAAsGQ,mBAAtG,CAAJ;AACAX,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,eAAvF,EAAwGS,qBAAxG,CAAJ;AACAZ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGU,gBAAnG,CAAJ;AACAb,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,eAA5F,EAA6GW,0BAA7G,CAAJ;AACAd,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGY,gBAAnG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomDragAndDrop from '..';\nimport fixtureCleanAndModified from './fixtures/clean-and-modified';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabledWithImageReset from './fixtures/disabled-with-image-reset';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureError from './fixtures/error';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureModified from './fixtures/modified';\nimport fixtureWithChildren from './fixtures/with-children';\nimport fixtureWithImageReset from './fixtures/with-image-reset';\nimport fixtureWithImage from './fixtures/with-image';\nimport fixtureWithLongDescription from './fixtures/with-long-description';\nimport fixtureWithVideo from './fixtures/with-video';\n\ntest('Atom › AtomDragAndDrop > should have valid propTypes', t => {\n t.pass();\n forEach(AtomDragAndDrop.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomDragAndDrop.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomDragAndDrop › CleanAndModified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureCleanAndModified);\ntest('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);\ntest('Atom › AtomDragAndDrop › DisabledWithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDisabledWithImageReset);\ntest('Atom › AtomDragAndDrop › Disabled › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDisabled);\ntest('Atom › AtomDragAndDrop › Error › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureError);\ntest('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);\ntest('Atom › AtomDragAndDrop › Modified › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureModified);\ntest('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);\ntest('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);\ntest('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);\ntest('Atom › AtomDragAndDrop › WithLongDescription › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithLongDescription);\ntest('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/drag-and-drop/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomDragAndDrop","fixtureDefault","fixtureLoading","fixtureWithChildren","fixtureWithImageReset","fixtureWithImage","fixtureWithVideo","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,eAAP,MAA4B,IAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAT,IAAI,CAAC,sDAAD,EAAyDU,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,eAAe,CAACS,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGC,cAAjG,CAAJ;AACAJ,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGE,cAAjG,CAAJ;AACAL,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,eAArF,EAAsGG,mBAAtG,CAAJ;AACAN,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,eAAvF,EAAwGI,qBAAxG,CAAJ;AACAP,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGK,gBAAnG,CAAJ;AACAR,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,eAAlF,EAAmGM,gBAAnG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomDragAndDrop from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureWithChildren from './fixtures/with-children';\nimport fixtureWithImageReset from './fixtures/with-image-reset';\nimport fixtureWithImage from './fixtures/with-image';\nimport fixtureWithVideo from './fixtures/with-video';\n\ntest('Atom › AtomDragAndDrop > should have valid propTypes', t => {\n t.pass();\n forEach(AtomDragAndDrop.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomDragAndDrop.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomDragAndDrop › Default › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureDefault);\ntest('Atom › AtomDragAndDrop › Loading › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureLoading);\ntest('Atom › AtomDragAndDrop › WithChildren › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithChildren);\ntest('Atom › AtomDragAndDrop › WithImageReset › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImageReset);\ntest('Atom › AtomDragAndDrop › WithImage › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithImage);\ntest('Atom › AtomDragAndDrop › WithVideo › should be rendered', renderComponentMacro, AtomDragAndDrop, fixtureWithVideo);\n"],"file":"fixtures.js"}
@@ -2,32 +2,28 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import AtomImageUpload from '..';
5
- import fixtureCleanModified from './fixtures/clean-modified';
6
- import fixtureDefault from './fixtures/default';
7
5
  import fixtureDesktopResetDescriptionMultiple from './fixtures/desktop-reset-description-multiple';
8
6
  import fixtureDesktopResetDescriptionOnlyPng from './fixtures/desktop-reset-description-only-png';
9
7
  import fixtureDesktopResetDescription from './fixtures/desktop-reset-description';
10
8
  import fixtureDesktopResetNoDescription from './fixtures/desktop-reset-no-description';
11
9
  import fixtureDesktop from './fixtures/desktop';
12
- import fixtureDisabled from './fixtures/disabled';
13
10
  import fixtureEmail from './fixtures/email';
14
11
  import fixtureMobile from './fixtures/mobile';
15
12
  import fixtureModified from './fixtures/modified';
13
+ import fixtureWithoutImage from './fixtures/without-image';
16
14
  test('Atom › AtomImageUpload > should have valid propTypes', t => {
17
15
  t.pass();
18
16
  forEach(AtomImageUpload.propTypes, (value, key) => {
19
17
  t.not(value, undefined, `PropType for "Atom.AtomImageUpload.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
20
18
  });
21
19
  });
22
- test('Atom › AtomImageUpload › CleanModified › should be rendered', renderComponentMacro, AtomImageUpload, fixtureCleanModified);
23
- test('Atom › AtomImageUpload › Default › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDefault);
24
20
  test('Atom › AtomImageUpload › DesktopResetDescriptionMultiple › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescriptionMultiple);
25
21
  test('Atom › AtomImageUpload › DesktopResetDescriptionOnlyPng › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescriptionOnlyPng);
26
22
  test('Atom › AtomImageUpload › DesktopResetDescription › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescription);
27
23
  test('Atom › AtomImageUpload › DesktopResetNoDescription › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetNoDescription);
28
24
  test('Atom › AtomImageUpload › Desktop › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktop);
29
- test('Atom › AtomImageUpload › Disabled › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDisabled);
30
25
  test('Atom › AtomImageUpload › Email › should be rendered', renderComponentMacro, AtomImageUpload, fixtureEmail);
31
26
  test('Atom › AtomImageUpload › Mobile › should be rendered', renderComponentMacro, AtomImageUpload, fixtureMobile);
32
27
  test('Atom › AtomImageUpload › Modified › should be rendered', renderComponentMacro, AtomImageUpload, fixtureModified);
28
+ test('Atom › AtomImageUpload › WithoutImage › should be rendered', renderComponentMacro, AtomImageUpload, fixtureWithoutImage);
33
29
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/atom/image-upload/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomImageUpload","fixtureCleanModified","fixtureDefault","fixtureDesktopResetDescriptionMultiple","fixtureDesktopResetDescriptionOnlyPng","fixtureDesktopResetDescription","fixtureDesktopResetNoDescription","fixtureDesktop","fixtureDisabled","fixtureEmail","fixtureMobile","fixtureModified","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,eAAP,MAA4B,IAA5B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,sCAAP,MAAmD,+CAAnD;AACA,OAAOC,qCAAP,MAAkD,+CAAlD;AACA,OAAOC,8BAAP,MAA2C,sCAA3C;AACA,OAAOC,gCAAP,MAA6C,yCAA7C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAd,IAAI,CAAC,sDAAD,EAAyDe,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAf,EAAAA,OAAO,CAACE,eAAe,CAACc,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAnB,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,eAAtF,EAAuGC,oBAAvG,CAAJ;AACAJ,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGE,cAAjG,CAAJ;AACAL,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,eAAxG,EAAyHG,sCAAzH,CAAJ;AACAN,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,eAAvG,EAAwHI,qCAAxH,CAAJ;AACAP,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,eAAhG,EAAiHK,8BAAjH,CAAJ;AACAR,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,eAAlG,EAAmHM,gCAAnH,CAAJ;AACAT,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGO,cAAjG,CAAJ;AACAV,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGQ,eAAlG,CAAJ;AACAX,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,eAA9E,EAA+FS,YAA/F,CAAJ;AACAZ,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,eAA/E,EAAgGU,aAAhG,CAAJ;AACAb,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGW,eAAlG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomImageUpload from '..';\nimport fixtureCleanModified from './fixtures/clean-modified';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDesktopResetDescriptionMultiple from './fixtures/desktop-reset-description-multiple';\nimport fixtureDesktopResetDescriptionOnlyPng from './fixtures/desktop-reset-description-only-png';\nimport fixtureDesktopResetDescription from './fixtures/desktop-reset-description';\nimport fixtureDesktopResetNoDescription from './fixtures/desktop-reset-no-description';\nimport fixtureDesktop from './fixtures/desktop';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmail from './fixtures/email';\nimport fixtureMobile from './fixtures/mobile';\nimport fixtureModified from './fixtures/modified';\n\ntest('Atom › AtomImageUpload > should have valid propTypes', t => {\n t.pass();\n forEach(AtomImageUpload.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomImageUpload.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomImageUpload › CleanModified › should be rendered', renderComponentMacro, AtomImageUpload, fixtureCleanModified);\ntest('Atom › AtomImageUpload › Default › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDefault);\ntest('Atom › AtomImageUpload › DesktopResetDescriptionMultiple › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescriptionMultiple);\ntest('Atom › AtomImageUpload › DesktopResetDescriptionOnlyPng › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescriptionOnlyPng);\ntest('Atom › AtomImageUpload › DesktopResetDescription › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescription);\ntest('Atom › AtomImageUpload › DesktopResetNoDescription › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetNoDescription);\ntest('Atom › AtomImageUpload › Desktop › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktop);\ntest('Atom › AtomImageUpload › Disabled › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDisabled);\ntest('Atom › AtomImageUpload › Email › should be rendered', renderComponentMacro, AtomImageUpload, fixtureEmail);\ntest('Atom › AtomImageUpload › Mobile › should be rendered', renderComponentMacro, AtomImageUpload, fixtureMobile);\ntest('Atom › AtomImageUpload › Modified › should be rendered', renderComponentMacro, AtomImageUpload, fixtureModified);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/atom/image-upload/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomImageUpload","fixtureDesktopResetDescriptionMultiple","fixtureDesktopResetDescriptionOnlyPng","fixtureDesktopResetDescription","fixtureDesktopResetNoDescription","fixtureDesktop","fixtureEmail","fixtureMobile","fixtureModified","fixtureWithoutImage","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,eAAP,MAA4B,IAA5B;AACA,OAAOC,sCAAP,MAAmD,+CAAnD;AACA,OAAOC,qCAAP,MAAkD,+CAAlD;AACA,OAAOC,8BAAP,MAA2C,sCAA3C;AACA,OAAOC,gCAAP,MAA6C,yCAA7C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AAEAZ,IAAI,CAAC,sDAAD,EAAyDa,CAAC,IAAI;AAChEA,EAAAA,CAAC,CAACC,IAAF;AACAb,EAAAA,OAAO,CAACE,eAAe,CAACY,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gDAA+CF,GAAI,mEAA5E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAjB,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,eAAxG,EAAyHC,sCAAzH,CAAJ;AACAJ,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,eAAvG,EAAwHE,qCAAxH,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,eAAhG,EAAiHG,8BAAjH,CAAJ;AACAN,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,eAAlG,EAAmHI,gCAAnH,CAAJ;AACAP,IAAI,CAAC,uDAAD,EAA0DE,oBAA1D,EAAgFC,eAAhF,EAAiGK,cAAjG,CAAJ;AACAR,IAAI,CAAC,qDAAD,EAAwDE,oBAAxD,EAA8EC,eAA9E,EAA+FM,YAA/F,CAAJ;AACAT,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,eAA/E,EAAgGO,aAAhG,CAAJ;AACAV,IAAI,CAAC,wDAAD,EAA2DE,oBAA3D,EAAiFC,eAAjF,EAAkGQ,eAAlG,CAAJ;AACAX,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,eAArF,EAAsGS,mBAAtG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomImageUpload from '..';\nimport fixtureDesktopResetDescriptionMultiple from './fixtures/desktop-reset-description-multiple';\nimport fixtureDesktopResetDescriptionOnlyPng from './fixtures/desktop-reset-description-only-png';\nimport fixtureDesktopResetDescription from './fixtures/desktop-reset-description';\nimport fixtureDesktopResetNoDescription from './fixtures/desktop-reset-no-description';\nimport fixtureDesktop from './fixtures/desktop';\nimport fixtureEmail from './fixtures/email';\nimport fixtureMobile from './fixtures/mobile';\nimport fixtureModified from './fixtures/modified';\nimport fixtureWithoutImage from './fixtures/without-image';\n\ntest('Atom › AtomImageUpload > should have valid propTypes', t => {\n t.pass();\n forEach(AtomImageUpload.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomImageUpload.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomImageUpload › DesktopResetDescriptionMultiple › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescriptionMultiple);\ntest('Atom › AtomImageUpload › DesktopResetDescriptionOnlyPng › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescriptionOnlyPng);\ntest('Atom › AtomImageUpload › DesktopResetDescription › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetDescription);\ntest('Atom › AtomImageUpload › DesktopResetNoDescription › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktopResetNoDescription);\ntest('Atom › AtomImageUpload › Desktop › should be rendered', renderComponentMacro, AtomImageUpload, fixtureDesktop);\ntest('Atom › AtomImageUpload › Email › should be rendered', renderComponentMacro, AtomImageUpload, fixtureEmail);\ntest('Atom › AtomImageUpload › Mobile › should be rendered', renderComponentMacro, AtomImageUpload, fixtureMobile);\ntest('Atom › AtomImageUpload › Modified › should be rendered', renderComponentMacro, AtomImageUpload, fixtureModified);\ntest('Atom › AtomImageUpload › WithoutImage › should be rendered', renderComponentMacro, AtomImageUpload, fixtureWithoutImage);\n"],"file":"fixtures.js"}
@@ -87,7 +87,7 @@
87
87
  transition: opacity 0.8s;
88
88
  position: absolute;
89
89
  width: 103px;
90
- height: 56px;
90
+ height: auto;
91
91
  border-radius: 7px;
92
92
  background-color: cm_grey_700;
93
93
  right: -42px;
@@ -13,11 +13,11 @@ export const defaultProps = {
13
13
  },
14
14
  lifes: {
15
15
  text: 'You have Infinite Lifes',
16
- tooltipText: 'This is the tooltip text'
16
+ tooltipText: 'This is the tooltip text, a tooltip text'
17
17
  },
18
18
  allright: {
19
19
  text: 'Get it all right',
20
- tooltipText: 'This is the tooltip text'
20
+ tooltipText: 'Egestas elementum duis bibendum'
21
21
  }
22
22
  }
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/review-presentation/test/fixtures/default.js"],"names":["defaultProps","reviewTitle","reviewText","labelsList","skills","text","tooltipText","questions","lifes","allright","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,+BADY;AAE1BC,EAAAA,WAAW,EAAE,6BAFa;AAG1BC,EAAAA,UAAU,EACR,uOAJwB;AAK1BC,EAAAA,UAAU,EAAE;AACVC,IAAAA,MAAM,EAAE;AAACC,MAAAA,IAAI,EAAE,gBAAP;AAAyBC,MAAAA,WAAW,EAAE;AAAtC,KADE;AAEVC,IAAAA,SAAS,EAAE;AAACF,MAAAA,IAAI,EAAE,oBAAP;AAA6BC,MAAAA,WAAW,EAAE;AAA1C,KAFD;AAGVE,IAAAA,KAAK,EAAE;AAACH,MAAAA,IAAI,EAAE,yBAAP;AAAkCC,MAAAA,WAAW,EAAE;AAA/C,KAHG;AAIVG,IAAAA,QAAQ,EAAE;AAACJ,MAAAA,IAAI,EAAE,kBAAP;AAA2BC,MAAAA,WAAW,EAAE;AAAxC;AAJA;AALc,CAArB;AAaP,eAAe;AAACI,EAAAA,KAAK,EAAEV;AAAR,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Review Presentation Container',\n reviewTitle: 'What is<br/>Revision mode ?',\n reviewText:\n 'Egestas elementum duis bibendum velit tempus nulla arcu eget volutpat.<br/><br/>Diam tincidunt lacus, cras ullamcorper diam, sit tincidunt fames. Maecenas eros, in mollis gravida ut neque, integer a. Vel et tellus dui in integer.',\n labelsList: {\n skills: {text: 'Choose 1 Skill', tooltipText: 'This is the tooltip text'},\n questions: {text: 'Answer 5 Questions', tooltipText: 'This is the tooltip text'},\n lifes: {text: 'You have Infinite Lifes', tooltipText: 'This is the tooltip text'},\n allright: {text: 'Get it all right', tooltipText: 'This is the tooltip text'}\n }\n};\n\nexport default {props: defaultProps};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/review-presentation/test/fixtures/default.js"],"names":["defaultProps","reviewTitle","reviewText","labelsList","skills","text","tooltipText","questions","lifes","allright","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,+BADY;AAE1BC,EAAAA,WAAW,EAAE,6BAFa;AAG1BC,EAAAA,UAAU,EACR,uOAJwB;AAK1BC,EAAAA,UAAU,EAAE;AACVC,IAAAA,MAAM,EAAE;AAACC,MAAAA,IAAI,EAAE,gBAAP;AAAyBC,MAAAA,WAAW,EAAE;AAAtC,KADE;AAEVC,IAAAA,SAAS,EAAE;AAACF,MAAAA,IAAI,EAAE,oBAAP;AAA6BC,MAAAA,WAAW,EAAE;AAA1C,KAFD;AAGVE,IAAAA,KAAK,EAAE;AACLH,MAAAA,IAAI,EAAE,yBADD;AAELC,MAAAA,WAAW,EAAE;AAFR,KAHG;AAOVG,IAAAA,QAAQ,EAAE;AAACJ,MAAAA,IAAI,EAAE,kBAAP;AAA2BC,MAAAA,WAAW,EAAE;AAAxC;AAPA;AALc,CAArB;AAgBP,eAAe;AAACI,EAAAA,KAAK,EAAEV;AAAR,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Review Presentation Container',\n reviewTitle: 'What is<br/>Revision mode ?',\n reviewText:\n 'Egestas elementum duis bibendum velit tempus nulla arcu eget volutpat.<br/><br/>Diam tincidunt lacus, cras ullamcorper diam, sit tincidunt fames. Maecenas eros, in mollis gravida ut neque, integer a. Vel et tellus dui in integer.',\n labelsList: {\n skills: {text: 'Choose 1 Skill', tooltipText: 'This is the tooltip text'},\n questions: {text: 'Answer 5 Questions', tooltipText: 'This is the tooltip text'},\n lifes: {\n text: 'You have Infinite Lifes',\n tooltipText: 'This is the tooltip text, a tooltip text'\n },\n allright: {text: 'Get it all right', tooltipText: 'Egestas elementum duis bibendum'}\n }\n};\n\nexport default {props: defaultProps};\n"],"file":"default.js"}
@@ -14,7 +14,6 @@ import fixtureLookandfeel from './fixtures/lookandfeel';
14
14
  import fixtureRoles from './fixtures/roles';
15
15
  import fixtureSlider from './fixtures/slider';
16
16
  import fixtureSso from './fixtures/sso';
17
- import fixtureTitleAndCheckboxWrapper from './fixtures/title-and-checkbox-wrapper';
18
17
  test('Molecule › MoleculeBrandFormGroup > should have valid propTypes', t => {
19
18
  t.pass();
20
19
  forEach(MoleculeBrandFormGroup.propTypes, (value, key) => {
@@ -33,5 +32,4 @@ test('Molecule › MoleculeBrandFormGroup › Lookandfeel › should be rendered
33
32
  test('Molecule › MoleculeBrandFormGroup › Roles › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureRoles);
34
33
  test('Molecule › MoleculeBrandFormGroup › Slider › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSlider);
35
34
  test('Molecule › MoleculeBrandFormGroup › Sso › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSso);
36
- test('Molecule › MoleculeBrandFormGroup › TitleAndCheckboxWrapper › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureTitleAndCheckboxWrapper);
37
35
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/brand-form-group/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandFormGroup","fixtureAnalytics","fixtureAnimations","fixtureCmDefault","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureDoublefield","fixtureImages","fixtureLookandfeel","fixtureRoles","fixtureSlider","fixtureSso","fixtureTitleAndCheckboxWrapper","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,8BAAP,MAA2C,uCAA3C;AAEAhB,IAAI,CAAC,iEAAD,EAAoEiB,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAjB,EAAAA,OAAO,CAACE,s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AAmIa,8BAAnI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBrandFormGroup from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDoublefield from './fixtures/doublefield';\nimport fixtureImages from './fixtures/images';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureRoles from './fixtures/roles';\nimport fixtureSlider from './fixtures/slider';\nimport fixtureSso from './fixtures/sso';\nimport fixtureTitleAndCheckboxWrapper from './fixtures/title-and-checkbox-wrapper';\n\ntest('Molecule › MoleculeBrandFormGroup > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandFormGroup.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandFormGroup.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandFormGroup › Analytics › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnalytics);\ntest('Molecule › MoleculeBrandFormGroup › Animations › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnimations);\ntest('Molecule › MoleculeBrandFormGroup › CmDefault › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCmDefault);\ntest('Molecule › MoleculeBrandFormGroup › Cohort › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCohort);\ntest('Molecule › MoleculeBrandFormGroup › Dashboard › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDashboard);\ntest('Molecule › MoleculeBrandFormGroup › Default › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDefault);\ntest('Molecule › MoleculeBrandFormGroup › Doublefield › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDoublefield);\ntest('Molecule › MoleculeBrandFormGroup › Images › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureImages);\ntest('Molecule › MoleculeBrandFormGroup › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureLookandfeel);\ntest('Molecule › MoleculeBrandFormGroup › Roles › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureRoles);\ntest('Molecule › MoleculeBrandFormGroup › Slider › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSlider);\ntest('Molecule › MoleculeBrandFormGroup › Sso › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSso);\ntest('Molecule › MoleculeBrandFormGroup › TitleAndCheckboxWrapper › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureTitleAndCheckboxWrapper);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/brand-form-group/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeBrandFormGroup","fixtureAnalytics","fixtureAnimations","fixtureCmDefault","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureDoublefield","fixtureImages","fixtureLookandfeel","fixtureRoles","fixtureSlider","fixtureSso","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,wBAA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AI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,sBAA1F,EAAkHW,aAAlH,CAAJ;AACAd,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,sBAAvF,EAA+GY,UAA/G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeBrandFormGroup from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDoublefield from './fixtures/doublefield';\nimport fixtureImages from './fixtures/images';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureRoles from './fixtures/roles';\nimport fixtureSlider from './fixtures/slider';\nimport fixtureSso from './fixtures/sso';\n\ntest('Molecule › MoleculeBrandFormGroup > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeBrandFormGroup.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeBrandFormGroup.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeBrandFormGroup › Analytics › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnalytics);\ntest('Molecule › MoleculeBrandFormGroup › Animations › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureAnimations);\ntest('Molecule › MoleculeBrandFormGroup › CmDefault › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCmDefault);\ntest('Molecule › MoleculeBrandFormGroup › Cohort › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureCohort);\ntest('Molecule › MoleculeBrandFormGroup › Dashboard › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDashboard);\ntest('Molecule › MoleculeBrandFormGroup › Default › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDefault);\ntest('Molecule › MoleculeBrandFormGroup › Doublefield › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureDoublefield);\ntest('Molecule › MoleculeBrandFormGroup › Images › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureImages);\ntest('Molecule › MoleculeBrandFormGroup › Lookandfeel › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureLookandfeel);\ntest('Molecule › MoleculeBrandFormGroup › Roles › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureRoles);\ntest('Molecule › MoleculeBrandFormGroup › Slider › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSlider);\ntest('Molecule › MoleculeBrandFormGroup › Sso › should be rendered', renderComponentMacro, MoleculeBrandFormGroup, fixtureSso);\n"],"file":"fixtures.js"}
@@ -0,0 +1,15 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeCheckboxWithTitle from '..';
5
+ import fixtureChecked from './fixtures/checked';
6
+ import fixtureUnchecked from './fixtures/unchecked';
7
+ test('Molecule › MoleculeCheckboxWithTitle > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(MoleculeCheckboxWithTitle.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCheckboxWithTitle.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Molecule › MoleculeCheckboxWithTitle › Checked › should be rendered', renderComponentMacro, MoleculeCheckboxWithTitle, fixtureChecked);
14
+ test('Molecule › MoleculeCheckboxWithTitle › Unchecked › should be rendered', renderComponentMacro, MoleculeCheckboxWithTitle, fixtureUnchecked);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/checkbox-with-title/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCheckboxWithTitle","fixtureChecked","fixtureUnchecked","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,yBAAP,MAAsC,IAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AAEAL,IAAI,CAAC,oEAAD,EAAuEM,CAAC,IAAI;AAC9EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,yBAAyB,CAACK,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8DAA6DF,GAAI,mEAA1F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,yBAA9F,EAAyHC,cAAzH,CAAJ;AACAJ,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,yBAAhG,EAA2HE,gBAA3H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCheckboxWithTitle from '..';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureUnchecked from './fixtures/unchecked';\n\ntest('Molecule › MoleculeCheckboxWithTitle > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCheckboxWithTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCheckboxWithTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCheckboxWithTitle › Checked › should be rendered', renderComponentMacro, MoleculeCheckboxWithTitle, fixtureChecked);\ntest('Molecule › MoleculeCheckboxWithTitle › Unchecked › should be rendered', renderComponentMacro, MoleculeCheckboxWithTitle, fixtureUnchecked);\n"],"file":"fixtures.js"}
@@ -0,0 +1,17 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import MoleculeCockpitPopin from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureLoading from './fixtures/loading';
7
+ import fixtureVideoTranslate from './fixtures/video-translate';
8
+ test('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {
9
+ t.pass();
10
+ forEach(MoleculeCockpitPopin.propTypes, (value, key) => {
11
+ t.not(value, undefined, `PropType for "Molecule.MoleculeCockpitPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
+ });
13
+ });
14
+ test('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);
15
+ test('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);
16
+ test('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);
17
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/cockpit-popin/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCockpitPopin","fixtureDefault","fixtureLoading","fixtureVideoTranslate","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AAEAN,IAAI,CAAC,+DAAD,EAAkEO,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,oBAAoB,CAACM,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GC,cAA/G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,oBAAhG,EAAsHG,qBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCockpitPopin from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureVideoTranslate from './fixtures/video-translate';\n\ntest('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCockpitPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCockpitPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);\ntest('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);\ntest('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);\n"],"file":"fixtures.js"}
@@ -2,10 +2,7 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import MoleculeCourseSection from '..';
5
- import fixtureAdvancedLevel from './fixtures/advanced-level';
6
- import fixtureBaseLevel from './fixtures/base-level';
7
5
  import fixtureChapter from './fixtures/chapter';
8
- import fixtureCoachLevel from './fixtures/coach-level';
9
6
  import fixtureCourse from './fixtures/course';
10
7
  test('Molecule › MoleculeCourseSection > should have valid propTypes', t => {
11
8
  t.pass();
@@ -13,9 +10,6 @@ test('Molecule › MoleculeCourseSection > should have valid propTypes', t => {
13
10
  t.not(value, undefined, `PropType for "Molecule.MoleculeCourseSection.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
14
11
  });
15
12
  });
16
- test('Molecule › MoleculeCourseSection › AdvancedLevel › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureAdvancedLevel);
17
- test('Molecule › MoleculeCourseSection › BaseLevel › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureBaseLevel);
18
13
  test('Molecule › MoleculeCourseSection › Chapter › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureChapter);
19
- test('Molecule › MoleculeCourseSection › CoachLevel › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCoachLevel);
20
14
  test('Molecule › MoleculeCourseSection › Course › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCourse);
21
15
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/course-section/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSection","fixtureAdvancedLevel","fixtureBaseLevel","fixtureChapter","fixtureCoachLevel","fixtureCourse","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,qBAAP,MAAkC,IAAlC;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AAEAR,IAAI,CAAC,gEAAD,EAAmES,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,qBAAqB,CAACQ,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,qBAAhG,EAAuHC,oBAAvH,CAAJ;AACAJ,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,qBAA5F,EAAmHE,gBAAnH,CAAJ;AACAL,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,qBAA1F,EAAiHG,cAAjH,CAAJ;AACAN,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,qBAA7F,EAAoHI,iBAApH,CAAJ;AACAP,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,qBAAzF,EAAgHK,aAAhH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSection from '..';\nimport fixtureAdvancedLevel from './fixtures/advanced-level';\nimport fixtureBaseLevel from './fixtures/base-level';\nimport fixtureChapter from './fixtures/chapter';\nimport fixtureCoachLevel from './fixtures/coach-level';\nimport fixtureCourse from './fixtures/course';\n\ntest('Molecule › MoleculeCourseSection > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSection.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSection.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSection › AdvancedLevel › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureAdvancedLevel);\ntest('Molecule › MoleculeCourseSection › BaseLevel › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureBaseLevel);\ntest('Molecule › MoleculeCourseSection › Chapter › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureChapter);\ntest('Molecule › MoleculeCourseSection › CoachLevel › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCoachLevel);\ntest('Molecule › MoleculeCourseSection › Course › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCourse);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/course-section/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSection","fixtureChapter","fixtureCourse","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,qBAAP,MAAkC,IAAlC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AAEAL,IAAI,CAAC,gEAAD,EAAmEM,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,qBAAqB,CAACK,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,qBAA1F,EAAiHC,cAAjH,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,qBAAzF,EAAgHE,aAAhH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSection from '..';\nimport fixtureChapter from './fixtures/chapter';\nimport fixtureCourse from './fixtures/course';\n\ntest('Molecule › MoleculeCourseSection > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSection.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSection.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSection › Chapter › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureChapter);\ntest('Molecule › MoleculeCourseSection › Course › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCourse);\n"],"file":"fixtures.js"}
@@ -4,7 +4,6 @@ import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import MoleculeCourseSections from '..';
5
5
  import fixtureDefault from './fixtures/default';
6
6
  import fixtureLoading from './fixtures/loading';
7
- import fixtureWithMandatoryCoursesInput from './fixtures/with-mandatory-courses-input';
8
7
  test('Molecule › MoleculeCourseSections > should have valid propTypes', t => {
9
8
  t.pass();
10
9
  forEach(MoleculeCourseSections.propTypes, (value, key) => {
@@ -13,5 +12,4 @@ test('Molecule › MoleculeCourseSections > should have valid propTypes', t => {
13
12
  });
14
13
  test('Molecule › MoleculeCourseSections › Default › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureDefault);
15
14
  test('Molecule › MoleculeCourseSections › Loading › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureLoading);
16
- test('Molecule › MoleculeCourseSections › WithMandatoryCoursesInput › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureWithMandatoryCoursesInput);
17
15
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/molecule/course-sections/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSections","fixtureDefault","fixtureLoading","fixtureWithMandatoryCoursesInput","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gCAAP,MAA6C,yCAA7C;AAEAN,IAAI,CAAC,iEAAD,EAAoEO,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,sBAAsB,CAACM,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHE,cAAnH,CAAJ;AACAL,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,sBAA7G,EAAqIG,gCAArI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSections from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureWithMandatoryCoursesInput from './fixtures/with-mandatory-courses-input';\n\ntest('Molecule › MoleculeCourseSections > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSections.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSections.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSections › Default › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureDefault);\ntest('Molecule › MoleculeCourseSections › Loading › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureLoading);\ntest('Molecule › MoleculeCourseSections › WithMandatoryCoursesInput › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureWithMandatoryCoursesInput);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/molecule/course-sections/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSections","fixtureDefault","fixtureLoading","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAL,IAAI,CAAC,iEAAD,EAAoEM,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,sBAAsB,CAACK,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHE,cAAnH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSections from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\n\ntest('Molecule › MoleculeCourseSections > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSections.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSections.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSections › Default › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureDefault);\ntest('Molecule › MoleculeCourseSections › Loading › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureLoading);\n"],"file":"fixtures.js"}
@@ -34,8 +34,7 @@ const News = (props, context) => {
34
34
  title: title,
35
35
  className: classnames(style.title, style.innerHTML),
36
36
  target: cta.target,
37
- "data-name": "news-title" // eslint-disable-next-line react/no-danger
38
- ,
37
+ "data-name": "news-title",
39
38
  dangerouslySetInnerHTML: {
40
39
  __html: title
41
40
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/news/index.js"],"names":["React","PropTypes","classnames","Cta","Link","style","News","props","context","image","title","date","description","authorLogo","cta","news","href","linkImage","target","infos","innerHTML","__html","bottom","author","link","propTypes","string","shape"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,IAAI,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AAC/B,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,KAAR;AAAeC,IAAAA,IAAf;AAAqBC,IAAAA,WAArB;AAAkCC,IAAAA,UAAlC;AAA8CC,IAAAA;AAA9C,MAAqDP,KAA3D;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACU;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEV,KAAK,CAACI;AAAtB,kBACE,oBAAC,IAAD;AACE,IAAA,IAAI,EAAEK,GAAG,CAACE,IADZ;AAEE,IAAA,SAAS,EAAEX,KAAK,CAACY,SAFnB;AAGE,IAAA,MAAM,EAAEH,GAAG,CAACI,MAHd;AAIE,iBAAU;AAJZ,kBAME;AAAK,IAAA,GAAG,EAAET;AAAV,IANF,CADF,CADF,eAWE;AAAK,IAAA,SAAS,EAAEJ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,UAAU,EAAEZ,SAAS,CAACyB,MALP;AAMfZ,EAAAA,GAAG,EAAEb,SAAS,CAAC0B,KAAV,CAAgBxB,GAAG,CAACsB,SAApB;AANU,CAAjB;AASA,eAAenB,IAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Cta from '../../atom/cta';\nimport Link from '../../atom/link';\nimport style from './style.css';\n\nconst News = (props, context) => {\n const {image, title, date, description, authorLogo, cta} = props;\n\n return (\n <div className={style.news}>\n <div className={style.image}>\n <Link\n href={cta.href}\n className={style.linkImage}\n target={cta.target}\n data-name=\"news-image\"\n >\n <img src={image} />\n </Link>\n </div>\n <div className={style.infos}>\n <Link\n href={cta.href}\n title={title}\n className={classnames(style.title, style.innerHTML)}\n target={cta.target}\n data-name=\"news-title\"\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <div className={style.date}>{date}</div>\n <div className={style.description}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: description}}\n />\n </div>\n <div className={style.bottom}>\n <div className={style.author}>\n <img src={authorLogo} />\n </div>\n <Cta {...cta} secondary name=\"news-cta\" />\n </div>\n </div>\n <Link className={style.link} href={cta.href} target={cta.target} />\n </div>\n );\n};\n\nNews.propTypes = {\n image: PropTypes.string,\n title: PropTypes.string,\n date: PropTypes.string,\n description: PropTypes.string,\n authorLogo: PropTypes.string,\n cta: PropTypes.shape(Cta.propTypes)\n};\n\nexport default News;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/news/index.js"],"names":["React","PropTypes","classnames","Cta","Link","style","News","props","context","image","title","date","description","authorLogo","cta","news","href","linkImage","target","infos","innerHTML","__html","bottom","author","link","propTypes","string","shape"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;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BACE;AAAK,IAAA,SAAS,EAAEjB,KAAK,CAACkB;AAAtB,kBACE;AAAK,IAAA,GAAG,EAAEV;AAAV,IADF,CADF,eAIE,oBAAC,GAAD,eAASC,GAAT;AAAc,IAAA,SAAS,MAAvB;AAAwB,IAAA,IAAI,EAAC;AAA7B,KAJF,CAhBF,CAXF,eAkCE,oBAAC,IAAD;AAAM,IAAA,SAAS,EAAET,KAAK,CAACmB,IAAvB;AAA6B,IAAA,IAAI,EAAEV,GAAG,CAACE,IAAvC;AAA6C,IAAA,MAAM,EAAEF,GAAG,CAACI;AAAzD,IAlCF,CADF;AAsCD,CAzCD;;AA2CAZ,IAAI,CAACmB,SAAL,2CAAiB;AACfhB,EAAAA,KAAK,EAAER,SAAS,CAACyB,MADF;AAEfhB,EAAAA,KAAK,EAAET,SAAS,CAACyB,MAFF;AAGff,EAAAA,IAAI,EAAEV,SAAS,CAACyB,MAHD;AAIfd,EAAAA,WAAW,EAAEX,SAAS,CAACyB,MAJR;AAKfb,EAAAA,UAAU,EAAEZ,SAAS,CAACyB,MALP;AAMfZ,EAAAA,GAAG,EAAEb,SAAS,CAAC0B,KAAV,CAAgBxB,GAAG,CAACsB,SAApB;AANU,CAAjB;AASA,eAAenB,IAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Cta from '../../atom/cta';\nimport Link from '../../atom/link';\nimport style from './style.css';\n\nconst News = (props, context) => {\n const {image, title, date, description, authorLogo, cta} = props;\n\n return (\n <div className={style.news}>\n <div className={style.image}>\n <Link\n href={cta.href}\n className={style.linkImage}\n target={cta.target}\n data-name=\"news-image\"\n >\n <img src={image} />\n </Link>\n </div>\n <div className={style.infos}>\n <Link\n href={cta.href}\n title={title}\n className={classnames(style.title, style.innerHTML)}\n target={cta.target}\n data-name=\"news-title\"\n dangerouslySetInnerHTML={{__html: title}}\n />\n <div className={style.date}>{date}</div>\n <div className={style.description}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: description}}\n />\n </div>\n <div className={style.bottom}>\n <div className={style.author}>\n <img src={authorLogo} />\n </div>\n <Cta {...cta} secondary name=\"news-cta\" />\n </div>\n </div>\n <Link className={style.link} href={cta.href} target={cta.target} />\n </div>\n );\n};\n\nNews.propTypes = {\n image: PropTypes.string,\n title: PropTypes.string,\n date: PropTypes.string,\n description: PropTypes.string,\n authorLogo: PropTypes.string,\n cta: PropTypes.shape(Cta.propTypes)\n};\n\nexport default News;\n"],"file":"index.js"}
@@ -46,11 +46,11 @@ const Popin = (props, context) => {
46
46
  setValue(_extends(_extends({}, value), {}, {
47
47
  [event.target.name]: event.target.value
48
48
  }));
49
- });
49
+ }, [value]);
50
50
  const isAssistancePopin = type === 'assistance';
51
51
  const handleClickOnSecondButton = useMemo(() => {
52
52
  return type === 'assistance' ? onSecondeButtonClick(value) : onSecondeButtonClick;
53
- }, [value]);
53
+ }, [value, type, onSecondeButtonClick]);
54
54
  return /*#__PURE__*/React.createElement("div", {
55
55
  className: style.background,
56
56
  style: backgroundImageStyle