@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.
- package/es/atom/button-link-icon-only/test/fixtures.js +0 -2
- package/es/atom/button-link-icon-only/test/fixtures.js.map +1 -1
- package/es/atom/cta/index.js +2 -1
- package/es/atom/cta/index.js.map +1 -1
- package/es/atom/cta/test/cta.js +93 -0
- package/es/atom/cta/test/cta.js.map +1 -0
- package/es/atom/drag-and-drop/test/fixtures.js +0 -12
- package/es/atom/drag-and-drop/test/fixtures.js.map +1 -1
- package/es/atom/image-upload/test/fixtures.js +2 -6
- package/es/atom/image-upload/test/fixtures.js.map +1 -1
- package/es/atom/review-presentation/style.css +1 -1
- package/es/atom/review-presentation/test/fixtures/default.js +2 -2
- package/es/atom/review-presentation/test/fixtures/default.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures.js +0 -2
- package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
- package/es/molecule/checkbox-with-title/test/fixtures.js +15 -0
- package/es/molecule/checkbox-with-title/test/fixtures.js.map +1 -0
- package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
- package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
- package/es/molecule/course-section/test/fixtures.js +0 -6
- package/es/molecule/course-section/test/fixtures.js.map +1 -1
- package/es/molecule/course-sections/test/fixtures.js +0 -2
- package/es/molecule/course-sections/test/fixtures.js.map +1 -1
- package/es/molecule/news/index.js +1 -2
- package/es/molecule/news/index.js.map +1 -1
- package/es/molecule/popin/index.js +2 -2
- package/es/molecule/popin/index.js.map +1 -1
- package/es/molecule/questions/qcm/index.js +1 -2
- package/es/molecule/questions/qcm/index.js.map +1 -1
- package/es/molecule/questions/qcm/style.css +4 -0
- package/es/molecule/questions/qcm/test/qcm.js +2 -2
- package/es/molecule/questions/qcm/test/qcm.js.map +1 -1
- package/es/molecule/questions/qcm-drag/index.js +2 -3
- package/es/molecule/questions/qcm-drag/index.js.map +1 -1
- package/es/molecule/questions/qcm-drag/style.css +4 -0
- package/es/molecule/questions/qcm-graphic/index.js +1 -2
- package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/es/molecule/questions/qcm-graphic/style.css +5 -1
- package/es/molecule/questions/question-range/index.js +3 -4
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/question-range/style.css +4 -0
- package/es/molecule/review-card-congrats/index.js +1 -1
- package/es/molecule/review-card-congrats/index.js.map +1 -1
- package/es/molecule/search/test/fixtures.js +15 -0
- package/es/molecule/search/test/fixtures.js.map +1 -0
- package/es/molecule/setup-slide/test/fixtures.js +0 -2
- package/es/molecule/setup-slide/test/fixtures.js.map +1 -1
- package/es/molecule/share/index.js +1 -1
- package/es/molecule/share/index.js.map +1 -1
- package/es/molecule/skill-card/style.css +9 -1
- package/es/organism/brand-form/test/fixtures.js +0 -4
- package/es/organism/brand-form/test/fixtures.js.map +1 -1
- package/es/organism/course-selection/test/fixtures.js +0 -2
- package/es/organism/course-selection/test/fixtures.js.map +1 -1
- package/es/organism/playlist-translation/test/fixtures.js +15 -0
- package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/es/organism/review-skills/style.css +10 -1
- package/es/organism/search-and-chips-results/test/fixtures.js +0 -2
- package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/certification-rewards.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +0 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures.js +0 -4
- package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
- package/es/template/app-review/root-view/common.js +6 -0
- package/es/template/app-review/root-view/common.js.map +1 -0
- package/es/template/app-review/root-view/prop-types.js +11 -3
- package/es/template/app-review/root-view/prop-types.js.map +1 -1
- package/es/template/app-review/root-view/root-view.js +4 -38
- package/es/template/app-review/root-view/root-view.js.map +1 -1
- package/es/template/app-review/root-view/root-view.native.js +6 -5
- package/es/template/app-review/root-view/root-view.native.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures.js +0 -2
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/es/template/external-course/test/fixtures.js +0 -4
- package/es/template/external-course/test/fixtures.js.map +1 -1
- package/es/template/{app-review/review-dashboard-skills → review-dashboard-skills}/index.js +2 -2
- package/es/template/review-dashboard-skills/index.js.map +1 -0
- package/{lib/template/app-review → es/template}/review-dashboard-skills/style.css +2 -3
- package/es/template/review-dashboard-skills/test/fixtures/loading.js +10 -0
- package/es/template/review-dashboard-skills/test/fixtures/loading.js.map +1 -0
- package/es/template/review-dashboard-skills/test/fixtures/many-skills.js +10 -0
- package/es/template/review-dashboard-skills/test/fixtures/many-skills.js.map +1 -0
- package/es/template/review-dashboard-skills/test/fixtures/no-skills.js +10 -0
- package/es/template/review-dashboard-skills/test/fixtures/no-skills.js.map +1 -0
- package/lib/atom/button-link-icon-only/test/fixtures.js +0 -3
- package/lib/atom/button-link-icon-only/test/fixtures.js.map +1 -1
- package/lib/atom/cta/index.js +2 -1
- package/lib/atom/cta/index.js.map +1 -1
- package/lib/atom/cta/test/cta.js +115 -0
- package/lib/atom/cta/test/cta.js.map +1 -0
- package/lib/atom/drag-and-drop/test/fixtures.js +0 -18
- package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures.js +3 -9
- package/lib/atom/image-upload/test/fixtures.js.map +1 -1
- package/lib/atom/review-presentation/style.css +1 -1
- package/lib/atom/review-presentation/test/fixtures/default.js +2 -2
- package/lib/atom/review-presentation/test/fixtures/default.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures.js +0 -3
- package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
- package/lib/{atom → molecule}/checkbox-with-title/test/fixtures.js +4 -4
- package/lib/molecule/checkbox-with-title/test/fixtures.js.map +1 -0
- package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
- package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
- package/lib/molecule/course-section/test/fixtures.js +0 -9
- package/lib/molecule/course-section/test/fixtures.js.map +1 -1
- package/lib/molecule/course-sections/test/fixtures.js +0 -3
- package/lib/molecule/course-sections/test/fixtures.js.map +1 -1
- package/lib/molecule/news/index.js +1 -2
- package/lib/molecule/news/index.js.map +1 -1
- package/lib/molecule/popin/index.js +2 -2
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/questions/qcm/index.js +7 -9
- package/lib/molecule/questions/qcm/index.js.map +1 -1
- package/lib/molecule/questions/qcm/style.css +4 -0
- package/lib/molecule/questions/qcm/test/qcm.js +2 -2
- package/lib/molecule/questions/qcm/test/qcm.js.map +1 -1
- package/lib/molecule/questions/qcm-drag/index.js +12 -14
- package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
- package/lib/molecule/questions/qcm-drag/style.css +4 -0
- package/lib/molecule/questions/qcm-graphic/index.js +8 -10
- package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/lib/molecule/questions/qcm-graphic/style.css +5 -1
- package/lib/molecule/questions/question-range/index.js +6 -8
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/question-range/style.css +4 -0
- package/lib/molecule/review-card-congrats/index.js +1 -1
- package/lib/molecule/review-card-congrats/index.js.map +1 -1
- package/lib/molecule/search/test/fixtures.js +25 -0
- package/lib/molecule/search/test/fixtures.js.map +1 -0
- package/lib/molecule/setup-slide/test/fixtures.js +0 -3
- package/lib/molecule/setup-slide/test/fixtures.js.map +1 -1
- package/lib/molecule/share/index.js +1 -1
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/skill-card/style.css +9 -1
- package/lib/organism/brand-form/test/fixtures.js +0 -6
- package/lib/organism/brand-form/test/fixtures.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures.js +0 -3
- package/lib/organism/course-selection/test/fixtures.js.map +1 -1
- package/lib/organism/playlist-translation/test/fixtures.js +25 -0
- package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/lib/organism/review-skills/style.css +10 -1
- package/lib/organism/search-and-chips-results/test/fixtures.js +0 -3
- package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures.js +0 -6
- package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
- package/lib/template/app-review/root-view/common.js +11 -0
- package/lib/template/app-review/root-view/common.js.map +1 -0
- package/lib/template/app-review/root-view/prop-types.js +15 -3
- package/lib/template/app-review/root-view/prop-types.js.map +1 -1
- package/lib/template/app-review/root-view/root-view.js +4 -38
- package/lib/template/app-review/root-view/root-view.js.map +1 -1
- package/lib/template/app-review/root-view/root-view.native.js +6 -4
- package/lib/template/app-review/root-view/root-view.native.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/template/external-course/test/fixtures.js +0 -6
- package/lib/template/external-course/test/fixtures.js.map +1 -1
- package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/index.js +2 -2
- package/lib/template/review-dashboard-skills/index.js.map +1 -0
- package/{es/template/app-review → lib/template}/review-dashboard-skills/style.css +2 -3
- package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/test/fixtures/loading.js +2 -2
- package/lib/template/review-dashboard-skills/test/fixtures/loading.js.map +1 -0
- package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/test/fixtures/many-skills.js +2 -2
- package/lib/template/review-dashboard-skills/test/fixtures/many-skills.js.map +1 -0
- package/lib/template/{app-review/review-dashboard-skills → review-dashboard-skills}/test/fixtures/no-skills.js +2 -2
- package/lib/template/review-dashboard-skills/test/fixtures/no-skills.js.map +1 -0
- package/package.json +3 -3
- package/es/atom/checkbox-with-title/test/fixtures.js +0 -15
- package/es/atom/checkbox-with-title/test/fixtures.js.map +0 -1
- package/es/atom/cta/test/hover.js +0 -42
- package/es/atom/cta/test/hover.js.map +0 -1
- package/es/atom/input-text-with-title/test/fixtures.js +0 -15
- package/es/atom/input-text-with-title/test/fixtures.js.map +0 -1
- package/es/atom/lottie-wrapper/test/fixtures.js +0 -19
- package/es/atom/lottie-wrapper/test/fixtures.js.map +0 -1
- package/es/atom/review-background/test/fixtures.js +0 -13
- package/es/atom/review-background/test/fixtures.js.map +0 -1
- package/es/atom/review-presentation/test/fixtures.js +0 -13
- package/es/atom/review-presentation/test/fixtures.js.map +0 -1
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -17
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js +0 -15
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
- package/es/molecule/list-badges/test/fixtures.js +0 -19
- package/es/molecule/list-badges/test/fixtures.js.map +0 -1
- package/es/molecule/review-card-congrats/test/fixtures.js +0 -15
- package/es/molecule/review-card-congrats/test/fixtures.js.map +0 -1
- package/es/molecule/skill-card/test/fixtures.js +0 -19
- package/es/molecule/skill-card/test/fixtures.js.map +0 -1
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -19
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
- package/es/organism/review-congrats/test/fixtures.js +0 -13
- package/es/organism/review-congrats/test/fixtures.js.map +0 -1
- package/es/organism/review-header/test/fixtures.js +0 -25
- package/es/organism/review-header/test/fixtures.js.map +0 -1
- package/es/organism/review-skills/test/fixtures.js +0 -17
- package/es/organism/review-skills/test/fixtures.js.map +0 -1
- package/es/organism/rewards-form/test/fixtures.js +0 -19
- package/es/organism/rewards-form/test/fixtures.js.map +0 -1
- package/es/template/app-review/review-dashboard-skills/index.js.map +0 -1
- package/es/template/app-review/review-dashboard-skills/test/fixtures/loading.js +0 -10
- package/es/template/app-review/review-dashboard-skills/test/fixtures/loading.js.map +0 -1
- package/es/template/app-review/review-dashboard-skills/test/fixtures/many-skills.js +0 -10
- package/es/template/app-review/review-dashboard-skills/test/fixtures/many-skills.js.map +0 -1
- package/es/template/app-review/review-dashboard-skills/test/fixtures/no-skills.js +0 -10
- package/es/template/app-review/review-dashboard-skills/test/fixtures/no-skills.js.map +0 -1
- package/es/template/app-review/review-dashboard-skills/test/fixtures.js +0 -17
- package/es/template/app-review/review-dashboard-skills/test/fixtures.js.map +0 -1
- package/es/template/app-review/slides-review/test/fixtures.js +0 -19
- package/es/template/app-review/slides-review/test/fixtures.js.map +0 -1
- package/es/template/review-dashboard-skills/test/fixtures.js +0 -17
- package/es/template/review-dashboard-skills/test/fixtures.js.map +0 -1
- package/es/template/slides-review/test/fixtures.js +0 -19
- package/es/template/slides-review/test/fixtures.js.map +0 -1
- package/lib/atom/checkbox-with-title/test/fixtures.js.map +0 -1
- package/lib/atom/cta/test/hover.js +0 -54
- package/lib/atom/cta/test/hover.js.map +0 -1
- package/lib/atom/input-text-with-title/test/fixtures.js +0 -25
- package/lib/atom/input-text-with-title/test/fixtures.js.map +0 -1
- package/lib/atom/lottie-wrapper/test/fixtures.js +0 -31
- package/lib/atom/lottie-wrapper/test/fixtures.js.map +0 -1
- package/lib/atom/review-background/test/fixtures.js +0 -22
- package/lib/atom/review-background/test/fixtures.js.map +0 -1
- package/lib/atom/review-presentation/test/fixtures.js +0 -22
- package/lib/atom/review-presentation/test/fixtures.js.map +0 -1
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -28
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js +0 -25
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
- package/lib/molecule/list-badges/test/fixtures.js +0 -31
- package/lib/molecule/list-badges/test/fixtures.js.map +0 -1
- package/lib/molecule/review-card-congrats/test/fixtures.js +0 -25
- package/lib/molecule/review-card-congrats/test/fixtures.js.map +0 -1
- package/lib/molecule/skill-card/test/fixtures.js +0 -31
- package/lib/molecule/skill-card/test/fixtures.js.map +0 -1
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -31
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
- package/lib/organism/review-congrats/test/fixtures.js +0 -22
- package/lib/organism/review-congrats/test/fixtures.js.map +0 -1
- package/lib/organism/review-header/test/fixtures.js +0 -40
- package/lib/organism/review-header/test/fixtures.js.map +0 -1
- package/lib/organism/review-skills/test/fixtures.js +0 -28
- package/lib/organism/review-skills/test/fixtures.js.map +0 -1
- package/lib/organism/rewards-form/test/fixtures.js +0 -31
- package/lib/organism/rewards-form/test/fixtures.js.map +0 -1
- package/lib/template/app-review/review-dashboard-skills/index.js.map +0 -1
- package/lib/template/app-review/review-dashboard-skills/test/fixtures/loading.js.map +0 -1
- package/lib/template/app-review/review-dashboard-skills/test/fixtures/many-skills.js.map +0 -1
- package/lib/template/app-review/review-dashboard-skills/test/fixtures/no-skills.js.map +0 -1
- package/lib/template/app-review/review-dashboard-skills/test/fixtures.js +0 -28
- package/lib/template/app-review/review-dashboard-skills/test/fixtures.js.map +0 -1
- package/lib/template/app-review/slides-review/test/fixtures.js +0 -31
- package/lib/template/app-review/slides-review/test/fixtures.js.map +0 -1
- package/lib/template/review-dashboard-skills/test/fixtures.js +0 -28
- package/lib/template/review-dashboard-skills/test/fixtures.js.map +0 -1
- package/lib/template/slides-review/test/fixtures.js +0 -31
- 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","
|
|
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"}
|
package/es/atom/cta/index.js
CHANGED
|
@@ -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,
|
package/es/atom/cta/index.js.map
CHANGED
|
@@ -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,S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,MAAA,SAAS,EAAElC,UAAU,CACnBK,KAAK,CAACoC,MADa,EAEnBtB,QAAQ,GAAGd,KAAK,CAACc,QAAT,GAAoB,IAFT,EAGnBgB,KAAK,GAAG9B,KAAK,CAACqC,WAAT,GAAuB,IAHT,EAInBtB,KAAK,GAAGf,KAAK,CAACsC,WAAT,GAAuB,IAJT,EAKnBtB,SAAS,GAAGhB,KAAK,CAACuC,eAAT,GAA2B,IALjB,EAMnBtB,MAAM,GAAGjB,KAAK,CAACwC,YAAT,GAAwB,IANX,EAOnBP,WAAW,GAAGjC,KAAK,CAACyC,iBAAT,GAA6B,IAPrB,EAQnBP,SAAS,GAAGlC,KAAK,CAACkC,SAAT,GAAqB,IARX,EASnBC,mBAAmB,GAAGnC,KAAK,CAACmC,mBAAT,GAA+B,IAT/B,EAUnBH,SAVmB,CANvB;AAkBE,mBAAWL,OAAO,IAAI,KAlBxB;AAmBE,MAAA,KAAK,EAAE,KAAKhB,QAAL;AAnBT,OAqBGM,MAAM,gBACL;AAAK,MAAA,SAAS,EAAEjB,KAAK,CAAC0C;
|
|
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,QA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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","plan","onClick","pass","rerender","click","onClick2","fail"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,SAAR,QAAwB,wBAAxB;AACA,SAAQC,iBAAR,QAAgC,mCAAhC;AACA,OAAOC,GAAP,MAAgB,IAAhB;AACA,OAAOC,UAAP,MAAuB,oBAAvB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AAEAP,UAAU;AAEV,MAAMQ,OAAO,GAAG;AACdC,EAAAA,IAAI,EAAE;AACJC,IAAAA,MAAM,EAAE;AACNC,MAAAA,OAAO,EAAE;AADH;AADJ;AADQ,CAAhB;AAQAV,IAAI,CAAC,mDAAD,EAAsDW,CAAC,IAAI;AAC7D,QAAMC,qBAAqB,GAAG;AAC5B,wBAAoB,mBADQ;AAE5B,2BAAuB,SAFK;AAG5B,oBAAgB,SAHY;AAI5B,yBAAqB,SAJO;AAK5B,0BAAsB,SALM;AAM5B,wBAAoB;AANQ,GAA9B;AASA,QAAM;AAACC,IAAAA;AAAD,MAAcV,iBAAiB,eAAC,oBAAC,GAAD,EAASE,UAAU,CAACS,KAApB,CAAD,EAAgC;AAACP,IAAAA;AAAD,GAAhC,CAArC;AACA,QAAMQ,GAAG,GAAGF,SAAS,CAACG,aAAV,CAAwB,mBAAxB,CAAZ;AAEAL,EAAAA,CAAC,CAACM,MAAF,CAASF,GAAT;AACAJ,EAAAA,CAAC,CAACO,SAAF,CAAYH,GAAG,CAACI,KAAJ,CAAUC,OAAtB,EAA+BR,qBAA/B;AAEAV,EAAAA,SAAS,CAACmB,SAAV,CAAoBN,GAApB;AAEAJ,EAAAA,CAAC,CAACO,SAAF,CAAYH,GAAG,CAACI,KAAJ,CAAU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AYc,IAAAA;AAAZ,MAAwBxB,iBAAiB,eAAC,oBAAC,GAAD,eAASE,UAAU,CAACS,KAApB;AAA2B,IAAA,OAAO,EAAEW;AAApC,KAAD,EAAkD;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","
|
|
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","
|
|
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","p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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"}
|
|
@@ -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: '
|
|
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;
|
|
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","
|
|
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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uEE,oBAAvE,EAA6FC,sBAA7F,EAAqHK,gBAArH,CAAJ;AACAR,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHM,cAAnH,CAAJ;AACAT,IAAI,CAAC,sEAAD,EAAyEE,oBAAzE,EAA+FC,sBAA/F,EAAuHO,kBAAvH,CAAJ;AACAV,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,sBAA1F,EAAkHQ,aAAlH,CAAJ;AACAX,IAAI,CAAC,sEAAD,EAAyEE,oBAAzE,EAA+FC,sBAA/F,EAAuHS,kBAAvH,CAAJ;AACAZ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,sBAAzF,EAAiHU,YAAjH,CAAJ;AACAb,IAAI,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","
|
|
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","
|
|
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"
|
|
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,KAAK,CAACc;AAAtB,kBACE,oBAAC,IAAD;AACE,IAAA,IAAI,EAAEL,GAAG,CAACE,IADZ;AAEE,IAAA,KAAK,EAAEN,KAFT;AAGE,IAAA,SAAS,EAAER,UAAU,CAACG,KAAK,CAACK,KAAP,EAAcL,KAAK,CAACe,SAApB,CAHvB;AAIE,IAAA,MAAM,EAAEN,GAAG,CAACI,MAJd;AAKE,iBAAU,YALZ
|
|
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,IA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AS,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
|