@coorpacademy/components 10.13.10-alpha.1 → 10.13.12
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/checkbox-with-title/style.css +2 -4
- package/es/atom/drag-and-drop/test/fixtures.js +0 -8
- package/es/atom/drag-and-drop/test/fixtures.js.map +1 -1
- package/es/atom/image-upload/test/fixtures.js +2 -4
- package/es/atom/image-upload/test/fixtures.js.map +1 -1
- package/es/atom/input-checkbox/test/fixtures.js +0 -2
- package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
- package/es/atom/input-switch/test/fixtures.js +0 -10
- package/es/atom/input-switch/test/fixtures.js.map +1 -1
- package/es/atom/input-text/test/fixtures.js +0 -2
- package/es/atom/input-text/test/fixtures.js.map +1 -1
- package/es/atom/input-textarea/test/fixtures.js +0 -4
- package/es/atom/input-textarea/test/fixtures.js.map +1 -1
- package/es/atom/loader/test/fixtures.js +0 -2
- package/es/atom/loader/test/fixtures.js.map +1 -1
- package/es/atom/select/test/fixtures.js +0 -4
- package/es/atom/select/test/fixtures.js.map +1 -1
- package/es/atom/title/test/fixtures.js +2 -6
- package/es/atom/title/test/fixtures.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/card/test/fixtures.js +0 -6
- package/es/molecule/card/test/fixtures.js.map +1 -1
- 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/index.js +19 -16
- package/es/molecule/course-section/index.js.map +1 -1
- package/es/molecule/course-section/style.css +12 -15
- package/es/molecule/course-section/test/fixtures/advanced-level.js +22 -0
- package/es/molecule/course-section/test/fixtures/advanced-level.js.map +1 -0
- package/es/molecule/course-section/test/fixtures/base-level.js +18 -0
- package/es/molecule/course-section/test/fixtures/base-level.js.map +1 -0
- package/es/molecule/course-section/test/fixtures/chapter.js +2 -2
- package/es/molecule/course-section/test/fixtures/chapter.js.map +1 -1
- package/es/molecule/course-section/test/fixtures/coach-level.js +24 -0
- package/es/molecule/course-section/test/fixtures/coach-level.js.map +1 -0
- package/es/molecule/course-section/test/fixtures/course.js +2 -2
- package/es/molecule/course-section/test/fixtures/course.js.map +1 -1
- package/es/molecule/course-sections/test/fixtures/default.js +20 -20
- package/es/molecule/course-sections/test/fixtures/default.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/style.css +5 -2
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/default.js +8 -2
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/default.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js +11 -3
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js.map +1 -1
- package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/index.js +0 -0
- package/es/molecule/input-text-with-titled-checkbox/index.js.map +1 -0
- package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/style.css +0 -0
- package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/checked.js +0 -0
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures/checked.js.map +1 -0
- package/es/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/unchecked.js +0 -0
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures/unchecked.js.map +1 -0
- package/es/molecule/list-badges/index.js +38 -0
- package/es/molecule/list-badges/index.js.map +1 -0
- package/es/molecule/list-badges/style.css +15 -0
- package/es/molecule/list-badges/test/fixtures/advanced.js +9 -0
- package/es/molecule/list-badges/test/fixtures/advanced.js.map +1 -0
- package/es/molecule/list-badges/test/fixtures/base.js +8 -0
- package/es/molecule/list-badges/test/fixtures/base.js.map +1 -0
- package/es/molecule/list-badges/test/fixtures/coach.js +10 -0
- package/es/molecule/list-badges/test/fixtures/coach.js.map +1 -0
- package/es/molecule/list-badges/test/fixtures/course.js +8 -0
- package/es/molecule/list-badges/test/fixtures/course.js.map +1 -0
- package/es/molecule/questions/free-text/test/fixtures.js +2 -4
- package/es/molecule/questions/free-text/test/fixtures.js.map +1 -1
- package/es/molecule/select-multiple/test/fixtures.js +0 -8
- package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
- package/es/molecule/setup-slide/test/fixtures.js +0 -2
- package/es/molecule/setup-slide/test/fixtures.js.map +1 -1
- package/es/organism/brand-dashboard/test/fixtures.js +10 -2
- package/es/organism/brand-dashboard/test/fixtures.js.map +1 -1
- package/es/organism/brand-form/test/fixtures.js +0 -2
- package/es/organism/brand-form/test/fixtures.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures.js +0 -6
- package/es/organism/mooc-header/test/fixtures.js.map +1 -1
- package/es/organism/rewards-form/index.js +41 -0
- package/es/organism/rewards-form/index.js.map +1 -0
- package/es/organism/rewards-form/style.css +12 -0
- package/es/organism/rewards-form/test/fixtures/default.js +17 -0
- package/es/organism/rewards-form/test/fixtures/default.js.map +1 -0
- package/es/organism/rewards-form/test/fixtures/no-rewards.js +6 -0
- package/es/organism/rewards-form/test/fixtures/no-rewards.js.map +1 -0
- package/es/organism/rewards-form/test/fixtures/one-reward.js +11 -0
- package/es/organism/rewards-form/test/fixtures/one-reward.js.map +1 -0
- package/es/organism/rewards-form/test/fixtures/two-rewards.js +14 -0
- package/es/organism/rewards-form/test/fixtures/two-rewards.js.map +1 -0
- package/es/organism/wizard-contents/index.js +6 -0
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/certification-rewards.js +45 -0
- package/es/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -0
- package/es/template/app-player/popin-correction/index.js +3 -3
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-correction/style.css +0 -4
- package/es/template/app-player/popin-end/test/fixtures.js +0 -2
- package/es/template/app-player/popin-end/test/fixtures.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js +22 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures.js +2 -24
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures.js +0 -2
- package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
- package/lib/atom/checkbox-with-title/style.css +2 -4
- package/lib/atom/drag-and-drop/test/fixtures.js +0 -12
- package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures.js +3 -6
- package/lib/atom/image-upload/test/fixtures.js.map +1 -1
- package/lib/atom/input-checkbox/test/fixtures.js +0 -3
- package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
- package/lib/atom/input-switch/test/fixtures.js +0 -15
- package/lib/atom/input-switch/test/fixtures.js.map +1 -1
- package/lib/atom/input-text/test/fixtures.js +0 -3
- package/lib/atom/input-text/test/fixtures.js.map +1 -1
- package/lib/atom/input-textarea/test/fixtures.js +0 -6
- package/lib/atom/input-textarea/test/fixtures.js.map +1 -1
- package/lib/atom/loader/test/fixtures.js +0 -3
- package/lib/atom/loader/test/fixtures.js.map +1 -1
- package/lib/atom/select/test/fixtures.js +0 -6
- package/lib/atom/select/test/fixtures.js.map +1 -1
- package/lib/atom/title/test/fixtures.js +2 -8
- package/lib/atom/title/test/fixtures.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/molecule/card/test/fixtures.js +0 -9
- package/lib/molecule/card/test/fixtures.js.map +1 -1
- 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/index.js +20 -16
- package/lib/molecule/course-section/index.js.map +1 -1
- package/lib/molecule/course-section/style.css +12 -15
- package/lib/molecule/course-section/test/fixtures/advanced-level.js +27 -0
- package/lib/molecule/course-section/test/fixtures/advanced-level.js.map +1 -0
- package/lib/molecule/course-section/test/fixtures/base-level.js +23 -0
- package/lib/molecule/course-section/test/fixtures/base-level.js.map +1 -0
- package/lib/molecule/course-section/test/fixtures/chapter.js +2 -2
- package/lib/molecule/course-section/test/fixtures/chapter.js.map +1 -1
- package/lib/molecule/course-section/test/fixtures/coach-level.js +29 -0
- package/lib/molecule/course-section/test/fixtures/coach-level.js.map +1 -0
- package/lib/molecule/course-section/test/fixtures/course.js +2 -2
- package/lib/molecule/course-section/test/fixtures/course.js.map +1 -1
- package/lib/molecule/course-sections/test/fixtures/default.js +20 -20
- package/lib/molecule/course-sections/test/fixtures/default.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/style.css +5 -2
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/default.js +8 -2
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/default.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js +11 -3
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js.map +1 -1
- package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/index.js +0 -0
- package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -0
- package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/style.css +0 -0
- package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/checked.js +0 -0
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures/checked.js.map +1 -0
- package/lib/molecule/{input-text-with-titeled-checkbox → input-text-with-titled-checkbox}/test/fixtures/unchecked.js +0 -0
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures/unchecked.js.map +1 -0
- package/lib/molecule/list-badges/index.js +50 -0
- package/lib/molecule/list-badges/index.js.map +1 -0
- package/lib/molecule/list-badges/style.css +15 -0
- package/lib/molecule/list-badges/test/fixtures/advanced.js +19 -0
- package/lib/molecule/list-badges/test/fixtures/advanced.js.map +1 -0
- package/lib/molecule/list-badges/test/fixtures/base.js +17 -0
- package/lib/molecule/list-badges/test/fixtures/base.js.map +1 -0
- package/lib/molecule/list-badges/test/fixtures/coach.js +21 -0
- package/lib/molecule/list-badges/test/fixtures/coach.js.map +1 -0
- package/lib/molecule/list-badges/test/fixtures/course.js +17 -0
- package/lib/molecule/list-badges/test/fixtures/course.js.map +1 -0
- package/lib/molecule/questions/free-text/test/fixtures.js +2 -5
- package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -1
- package/lib/molecule/select-multiple/test/fixtures.js +0 -12
- package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
- package/lib/molecule/setup-slide/test/fixtures.js +0 -3
- package/lib/molecule/setup-slide/test/fixtures.js.map +1 -1
- package/lib/organism/brand-dashboard/test/fixtures.js +14 -2
- package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -1
- package/lib/organism/brand-form/test/fixtures.js +0 -3
- package/lib/organism/brand-form/test/fixtures.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures.js +0 -9
- package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
- package/lib/organism/rewards-form/index.js +55 -0
- package/lib/organism/rewards-form/index.js.map +1 -0
- package/lib/organism/rewards-form/style.css +12 -0
- package/lib/organism/rewards-form/test/fixtures/default.js +28 -0
- package/lib/organism/rewards-form/test/fixtures/default.js.map +1 -0
- package/lib/organism/rewards-form/test/fixtures/no-rewards.js +11 -0
- package/lib/organism/rewards-form/test/fixtures/no-rewards.js.map +1 -0
- package/lib/organism/rewards-form/test/fixtures/one-reward.js +20 -0
- package/lib/organism/rewards-form/test/fixtures/one-reward.js.map +1 -0
- package/lib/organism/rewards-form/test/fixtures/two-rewards.js +24 -0
- package/lib/organism/rewards-form/test/fixtures/two-rewards.js.map +1 -0
- package/lib/organism/wizard-contents/index.js +7 -0
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/certification-rewards.js +54 -0
- package/lib/organism/wizard-contents/test/fixtures/certification-rewards.js.map +1 -0
- package/lib/template/app-player/popin-correction/index.js +3 -3
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/style.css +0 -4
- package/lib/template/app-player/popin-end/test/fixtures.js +0 -3
- package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js +32 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-rewards-certification.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures.js +2 -35
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures.js +0 -3
- package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
- package/package.json +2 -2
- package/es/atom/button-link/test/fixtures.js +0 -31
- package/es/atom/button-link/test/fixtures.js.map +0 -1
- package/es/atom/button-link-icon-only/test/fixtures.js +0 -21
- package/es/atom/button-link-icon-only/test/fixtures.js.map +0 -1
- package/es/atom/button-menu/test/fixtures.js +0 -15
- package/es/atom/button-menu/test/fixtures.js.map +0 -1
- package/es/atom/card-image-preview/test/fixtures.js +0 -15
- package/es/atom/card-image-preview/test/fixtures.js.map +0 -1
- 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/chips/test/fixtures.js +0 -17
- package/es/atom/chips/test/fixtures.js.map +0 -1
- package/es/atom/content-badge/test/fixtures.js +0 -29
- package/es/atom/content-badge/test/fixtures.js.map +0 -1
- package/es/atom/empty-search-result/test/fixtures.js +0 -13
- package/es/atom/empty-search-result/test/fixtures.js.map +0 -1
- package/es/atom/input-search/test/fixtures.js +0 -19
- package/es/atom/input-search/test/fixtures.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/review-header-step-item/test/fixtures.js +0 -19
- package/es/atom/review-header-step-item/test/fixtures.js.map +0 -1
- package/es/atom/tag/test/fixtures.js +0 -21
- package/es/atom/tag/test/fixtures.js.map +0 -1
- package/es/atom/wizard-steps/test/fixtures.js +0 -17
- package/es/atom/wizard-steps/test/fixtures.js.map +0 -1
- package/es/molecule/banner/test/fixtures.js +0 -23
- package/es/molecule/banner/test/fixtures.js.map +0 -1
- package/es/molecule/bullet-point-menu-button/test/fixtures.js +0 -15
- package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +0 -1
- package/es/molecule/cm-popin/test/fixtures.js +0 -17
- package/es/molecule/cm-popin/test/fixtures.js.map +0 -1
- package/es/molecule/coorp-manager-roles/test/fixtures.js +0 -13
- package/es/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
- package/es/molecule/course-section/test/fixtures.js +0 -15
- package/es/molecule/course-section/test/fixtures.js.map +0 -1
- package/es/molecule/course-sections/test/fixtures.js +0 -17
- package/es/molecule/course-sections/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/review-banner/test/fixtures.js +0 -13
- package/es/molecule/dashboard/review-banner/test/fixtures.js.map +0 -1
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -15
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
- package/es/molecule/draggable/test/fixtures.js +0 -13
- package/es/molecule/draggable/test/fixtures.js.map +0 -1
- package/es/molecule/draggable-list/test/fixtures.js +0 -15
- package/es/molecule/draggable-list/test/fixtures.js.map +0 -1
- package/es/molecule/input-text-with-titeled-checkbox/index.js.map +0 -1
- package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js.map +0 -1
- package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js.map +0 -1
- package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js +0 -15
- package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +0 -1
- package/es/molecule/popin/test/fixtures.js +0 -21
- package/es/molecule/popin/test/fixtures.js.map +0 -1
- package/es/molecule/quick-access-card/test/fixtures.js +0 -21
- package/es/molecule/quick-access-card/test/fixtures.js.map +0 -1
- package/es/molecule/quick-access-cards-group/test/fixtures.js +0 -21
- package/es/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
- package/es/molecule/review-correction-popin/test/fixtures.js +0 -15
- package/es/molecule/review-correction-popin/test/fixtures.js.map +0 -1
- package/es/molecule/review-header-steps/test/fixtures.js +0 -23
- package/es/molecule/review-header-steps/test/fixtures.js.map +0 -1
- package/es/molecule/vertical-tabs/test/fixtures.js +0 -17
- package/es/molecule/vertical-tabs/test/fixtures.js.map +0 -1
- package/es/molecule/wizard-summary/test/fixtures.js +0 -23
- package/es/molecule/wizard-summary/test/fixtures.js.map +0 -1
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js +0 -17
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
- package/es/organism/accordion/coorp-manager/test/fixtures.js +0 -13
- package/es/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
- package/es/organism/brand-analytics/test/fixtures.js +0 -23
- package/es/organism/brand-analytics/test/fixtures.js.map +0 -1
- package/es/organism/content-translation/test/fixtures.js +0 -15
- package/es/organism/content-translation/test/fixtures.js.map +0 -1
- package/es/organism/course-selection/test/fixtures.js +0 -25
- package/es/organism/course-selection/test/fixtures.js.map +0 -1
- package/es/organism/list-item/test/fixtures.js +0 -19
- package/es/organism/list-item/test/fixtures.js.map +0 -1
- package/es/organism/list-items/test/fixtures.js +0 -17
- package/es/organism/list-items/test/fixtures.js.map +0 -1
- package/es/organism/playlist-translation/test/fixtures.js +0 -15
- package/es/organism/playlist-translation/test/fixtures.js.map +0 -1
- package/es/organism/search-and-chips-results/test/fixtures.js +0 -23
- package/es/organism/search-and-chips-results/test/fixtures.js.map +0 -1
- package/es/organism/wizard-contents/test/fixtures.js +0 -23
- package/es/organism/wizard-contents/test/fixtures.js.map +0 -1
- package/lib/atom/button-link/test/fixtures.js +0 -49
- package/lib/atom/button-link/test/fixtures.js.map +0 -1
- package/lib/atom/button-link-icon-only/test/fixtures.js +0 -34
- package/lib/atom/button-link-icon-only/test/fixtures.js.map +0 -1
- package/lib/atom/button-menu/test/fixtures.js +0 -25
- package/lib/atom/button-menu/test/fixtures.js.map +0 -1
- package/lib/atom/card-image-preview/test/fixtures.js +0 -25
- package/lib/atom/card-image-preview/test/fixtures.js.map +0 -1
- package/lib/atom/checkbox-with-title/test/fixtures.js +0 -25
- package/lib/atom/checkbox-with-title/test/fixtures.js.map +0 -1
- package/lib/atom/chips/test/fixtures.js +0 -28
- package/lib/atom/chips/test/fixtures.js.map +0 -1
- package/lib/atom/content-badge/test/fixtures.js +0 -46
- package/lib/atom/content-badge/test/fixtures.js.map +0 -1
- package/lib/atom/empty-search-result/test/fixtures.js +0 -22
- package/lib/atom/empty-search-result/test/fixtures.js.map +0 -1
- package/lib/atom/input-search/test/fixtures.js +0 -31
- package/lib/atom/input-search/test/fixtures.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/review-header-step-item/test/fixtures.js +0 -31
- package/lib/atom/review-header-step-item/test/fixtures.js.map +0 -1
- package/lib/atom/tag/test/fixtures.js +0 -34
- package/lib/atom/tag/test/fixtures.js.map +0 -1
- package/lib/atom/wizard-steps/test/fixtures.js +0 -28
- package/lib/atom/wizard-steps/test/fixtures.js.map +0 -1
- package/lib/molecule/banner/test/fixtures.js +0 -37
- package/lib/molecule/banner/test/fixtures.js.map +0 -1
- package/lib/molecule/bullet-point-menu-button/test/fixtures.js +0 -25
- package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +0 -1
- package/lib/molecule/cm-popin/test/fixtures.js +0 -28
- package/lib/molecule/cm-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/coorp-manager-roles/test/fixtures.js +0 -22
- package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
- package/lib/molecule/course-section/test/fixtures.js +0 -25
- package/lib/molecule/course-section/test/fixtures.js.map +0 -1
- package/lib/molecule/course-sections/test/fixtures.js +0 -28
- package/lib/molecule/course-sections/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/review-banner/test/fixtures.js +0 -22
- package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +0 -1
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -25
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
- package/lib/molecule/draggable/test/fixtures.js +0 -22
- package/lib/molecule/draggable/test/fixtures.js.map +0 -1
- package/lib/molecule/draggable-list/test/fixtures.js +0 -25
- package/lib/molecule/draggable-list/test/fixtures.js.map +0 -1
- package/lib/molecule/input-text-with-titeled-checkbox/index.js.map +0 -1
- package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js.map +0 -1
- package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js.map +0 -1
- package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js +0 -25
- package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +0 -1
- package/lib/molecule/popin/test/fixtures.js +0 -34
- package/lib/molecule/popin/test/fixtures.js.map +0 -1
- package/lib/molecule/quick-access-card/test/fixtures.js +0 -34
- package/lib/molecule/quick-access-card/test/fixtures.js.map +0 -1
- package/lib/molecule/quick-access-cards-group/test/fixtures.js +0 -34
- package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
- package/lib/molecule/review-correction-popin/test/fixtures.js +0 -25
- package/lib/molecule/review-correction-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/review-header-steps/test/fixtures.js +0 -37
- package/lib/molecule/review-header-steps/test/fixtures.js.map +0 -1
- package/lib/molecule/vertical-tabs/test/fixtures.js +0 -28
- package/lib/molecule/vertical-tabs/test/fixtures.js.map +0 -1
- package/lib/molecule/wizard-summary/test/fixtures.js +0 -37
- package/lib/molecule/wizard-summary/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +0 -28
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/coorp-manager/test/fixtures.js +0 -22
- package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
- package/lib/organism/brand-analytics/test/fixtures.js +0 -37
- package/lib/organism/brand-analytics/test/fixtures.js.map +0 -1
- package/lib/organism/content-translation/test/fixtures.js +0 -25
- package/lib/organism/content-translation/test/fixtures.js.map +0 -1
- package/lib/organism/course-selection/test/fixtures.js +0 -40
- package/lib/organism/course-selection/test/fixtures.js.map +0 -1
- package/lib/organism/list-item/test/fixtures.js +0 -31
- package/lib/organism/list-item/test/fixtures.js.map +0 -1
- package/lib/organism/list-items/test/fixtures.js +0 -28
- package/lib/organism/list-items/test/fixtures.js.map +0 -1
- package/lib/organism/playlist-translation/test/fixtures.js +0 -25
- package/lib/organism/playlist-translation/test/fixtures.js.map +0 -1
- package/lib/organism/search-and-chips-results/test/fixtures.js +0 -37
- package/lib/organism/search-and-chips-results/test/fixtures.js.map +0 -1
- package/lib/organism/wizard-contents/test/fixtures.js +0 -37
- package/lib/organism/wizard-contents/test/fixtures.js.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import map from 'lodash/fp/map';
|
|
4
|
+
import ContentBadge from '../../atom/content-badge';
|
|
5
|
+
import style from './style.css';
|
|
6
|
+
|
|
7
|
+
const ListBadges = ({
|
|
8
|
+
items,
|
|
9
|
+
'aria-label': ariaLabel
|
|
10
|
+
}) => {
|
|
11
|
+
const itemsView = map(({
|
|
12
|
+
category,
|
|
13
|
+
label
|
|
14
|
+
}) => {
|
|
15
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
16
|
+
className: style.item,
|
|
17
|
+
key: `badge-${category}`,
|
|
18
|
+
"data-name": `badge-${category}`,
|
|
19
|
+
"aria-label": label
|
|
20
|
+
}, /*#__PURE__*/React.createElement(ContentBadge, {
|
|
21
|
+
className: style.contentBadge,
|
|
22
|
+
category: category,
|
|
23
|
+
label: label
|
|
24
|
+
}));
|
|
25
|
+
}, items);
|
|
26
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
27
|
+
className: style.list,
|
|
28
|
+
"aria-label": ariaLabel,
|
|
29
|
+
"data-name": "badges-list"
|
|
30
|
+
}, itemsView);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
ListBadges.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
34
|
+
'aria-label': PropTypes.string,
|
|
35
|
+
items: PropTypes.arrayOf(PropTypes.shape(ContentBadge.propTypes))
|
|
36
|
+
} : {};
|
|
37
|
+
export default ListBadges;
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/list-badges/index.js"],"names":["React","PropTypes","map","ContentBadge","style","ListBadges","items","ariaLabel","itemsView","category","label","item","contentBadge","list","propTypes","string","arrayOf","shape"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQ,gBAAcC;AAAtB,CAAD,KAAsC;AACvD,QAAMC,SAAS,GAAGN,GAAG,CAAC,CAAC;AAACO,IAAAA,QAAD;AAAWC,IAAAA;AAAX,GAAD,KAAuB;AAC3C,wBACE;AACE,MAAA,SAAS,EAAEN,KAAK,CAACO,IADnB;AAEE,MAAA,GAAG,EAAG,SAAQF,QAAS,EAFzB;AAGE,mBAAY,SAAQA,QAAS,EAH/B;AAIE,oBAAYC;AAJd,oBAME,oBAAC,YAAD;AAAc,MAAA,SAAS,EAAEN,KAAK,CAACQ,YAA/B;AAA6C,MAAA,QAAQ,EAAEH,QAAvD;AAAiE,MAAA,KAAK,EAAEC;AAAxE,MANF,CADF;AAUD,GAXoB,EAWlBJ,KAXkB,CAArB;AAaA,sBACE;AAAI,IAAA,SAAS,EAAEF,KAAK,CAACS,IAArB;AAA2B,kBAAYN,SAAvC;AAAkD,iBAAU;AAA5D,KACGC,SADH,CADF;AAKD,CAnBD;;AAqBAH,UAAU,CAACS,SAAX,2CAAuB;AACrB,gBAAcb,SAAS,CAACc,MADH;AAErBT,EAAAA,KAAK,EAAEL,SAAS,CAACe,OAAV,CAAkBf,SAAS,CAACgB,KAAV,CAAgBd,YAAY,CAACW,SAA7B,CAAlB;AAFc,CAAvB;AAKA,eAAeT,UAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nconst ListBadges = ({items, 'aria-label': ariaLabel}) => {\n const itemsView = map(({category, label}) => {\n return (\n <li\n className={style.item}\n key={`badge-${category}`}\n data-name={`badge-${category}`}\n aria-label={label}\n >\n <ContentBadge className={style.contentBadge} category={category} label={label} />\n </li>\n );\n }, items);\n\n return (\n <ul className={style.list} aria-label={ariaLabel} data-name=\"badges-list\">\n {itemsView}\n </ul>\n );\n};\n\nListBadges.propTypes = {\n 'aria-label': PropTypes.string,\n items: PropTypes.arrayOf(PropTypes.shape(ContentBadge.propTypes))\n};\n\nexport default ListBadges;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import advanced from '../../../../atom/content-badge/test/fixtures/advanced';
|
|
2
|
+
import base from '../../../../atom/content-badge/test/fixtures/default';
|
|
3
|
+
export default {
|
|
4
|
+
props: {
|
|
5
|
+
'aria-label': 'aria list',
|
|
6
|
+
items: [base.props, advanced.props]
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=advanced.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/list-badges/test/fixtures/advanced.js"],"names":["advanced","base","props","items"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,uDAArB;AACA,OAAOC,IAAP,MAAiB,sDAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACL,kBAAc,WADT;AAELC,IAAAA,KAAK,EAAE,CAACF,IAAI,CAACC,KAAN,EAAaF,QAAQ,CAACE,KAAtB;AAFF;AADM,CAAf","sourcesContent":["import advanced from '../../../../atom/content-badge/test/fixtures/advanced';\nimport base from '../../../../atom/content-badge/test/fixtures/default';\n\nexport default {\n props: {\n 'aria-label': 'aria list',\n items: [base.props, advanced.props]\n }\n};\n"],"file":"advanced.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/list-badges/test/fixtures/base.js"],"names":["base","props","items"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,sDAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACL,kBAAc,WADT;AAELC,IAAAA,KAAK,EAAE,CAACF,IAAI,CAACC,KAAN;AAFF;AADM,CAAf","sourcesContent":["import base from '../../../../atom/content-badge/test/fixtures/default';\n\nexport default {\n props: {\n 'aria-label': 'aria list',\n items: [base.props]\n }\n};\n"],"file":"base.js"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import advanced from '../../../../atom/content-badge/test/fixtures/advanced';
|
|
2
|
+
import coach from '../../../../atom/content-badge/test/fixtures/coach';
|
|
3
|
+
import base from '../../../../atom/content-badge/test/fixtures/default';
|
|
4
|
+
export default {
|
|
5
|
+
props: {
|
|
6
|
+
'aria-label': 'aria list',
|
|
7
|
+
items: [base.props, advanced.props, coach.props]
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=coach.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/list-badges/test/fixtures/coach.js"],"names":["advanced","coach","base","props","items"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,uDAArB;AACA,OAAOC,KAAP,MAAkB,oDAAlB;AACA,OAAOC,IAAP,MAAiB,sDAAjB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACL,kBAAc,WADT;AAELC,IAAAA,KAAK,EAAE,CAACF,IAAI,CAACC,KAAN,EAAaH,QAAQ,CAACG,KAAtB,EAA6BF,KAAK,CAACE,KAAnC;AAFF;AADM,CAAf","sourcesContent":["import advanced from '../../../../atom/content-badge/test/fixtures/advanced';\nimport coach from '../../../../atom/content-badge/test/fixtures/coach';\nimport base from '../../../../atom/content-badge/test/fixtures/default';\n\nexport default {\n props: {\n 'aria-label': 'aria list',\n items: [base.props, advanced.props, coach.props]\n }\n};\n"],"file":"coach.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/list-badges/test/fixtures/course.js"],"names":["course","props","items"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,qDAAnB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACL,kBAAc,WADT;AAELC,IAAAA,KAAK,EAAE,CAACF,MAAM,CAACC,KAAR;AAFF;AADM,CAAf","sourcesContent":["import course from '../../../../atom/content-badge/test/fixtures/course';\n\nexport default {\n props: {\n 'aria-label': 'aria list',\n items: [course.props]\n }\n};\n"],"file":"course.js"}
|
|
@@ -3,8 +3,7 @@ import forEach from 'lodash/forEach';
|
|
|
3
3
|
import renderComponentMacro from '../../../../test/helpers/render-component';
|
|
4
4
|
import MoleculeQuestionsFreeText from '..';
|
|
5
5
|
import fixtureDefault from './fixtures/default';
|
|
6
|
-
import
|
|
7
|
-
import fixtureWithValue from './fixtures/with-value';
|
|
6
|
+
import fixtureWithDefaultValue from './fixtures/with-default-value';
|
|
8
7
|
test('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTypes', t => {
|
|
9
8
|
t.pass();
|
|
10
9
|
forEach(MoleculeQuestionsFreeText.propTypes, (value, key) => {
|
|
@@ -12,6 +11,5 @@ test('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTy
|
|
|
12
11
|
});
|
|
13
12
|
});
|
|
14
13
|
test('MoleculeQuestions › MoleculeQuestionsFreeText › Default › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureDefault);
|
|
15
|
-
test('MoleculeQuestions › MoleculeQuestionsFreeText ›
|
|
16
|
-
test('MoleculeQuestions › MoleculeQuestionsFreeText › WithValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValue);
|
|
14
|
+
test('MoleculeQuestions › MoleculeQuestionsFreeText › WithDefaultValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithDefaultValue);
|
|
17
15
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/questions/free-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuestionsFreeText","fixtureDefault","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/questions/free-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuestionsFreeText","fixtureDefault","fixtureWithDefaultValue","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,yBAAP,MAAsC,IAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AAEAL,IAAI,CAAC,6EAAD,EAAgFM,CAAC,IAAI;AACvFA,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,uEAAsEF,GAAI,mEAAnG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,yBAAvG,EAAkIC,cAAlI,CAAJ;AACAJ,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,yBAAhH,EAA2IE,uBAA3I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeQuestionsFreeText from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithDefaultValue from './fixtures/with-default-value';\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuestionsFreeText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeQuestions.MoleculeQuestionsFreeText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › Default › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureDefault);\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › WithDefaultValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithDefaultValue);\n"],"file":"fixtures.js"}
|
|
@@ -2,10 +2,6 @@ import test from 'ava';
|
|
|
2
2
|
import forEach from 'lodash/forEach';
|
|
3
3
|
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
4
|
import MoleculeSelectMultiple from '..';
|
|
5
|
-
import fixtureCheckedCmThemeDisabled from './fixtures/checked-cm-theme-disabled';
|
|
6
|
-
import fixtureCheckedCmThemeError from './fixtures/checked-cm-theme-error';
|
|
7
|
-
import fixtureCheckedCmThemeMultiple from './fixtures/checked-cm-theme-multiple';
|
|
8
|
-
import fixtureCheckedCmTheme from './fixtures/checked-cm-theme';
|
|
9
5
|
import fixtureCheckedCockpitTheme from './fixtures/checked-cockpit-theme';
|
|
10
6
|
import fixtureCheckedSetupTheme from './fixtures/checked-setup-theme';
|
|
11
7
|
import fixtureChecked from './fixtures/checked';
|
|
@@ -18,10 +14,6 @@ test('Molecule › MoleculeSelectMultiple > should have valid propTypes', t => {
|
|
|
18
14
|
t.not(value, undefined, `PropType for "Molecule.MoleculeSelectMultiple.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
19
15
|
});
|
|
20
16
|
});
|
|
21
|
-
test('Molecule › MoleculeSelectMultiple › CheckedCmThemeDisabled › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedCmThemeDisabled);
|
|
22
|
-
test('Molecule › MoleculeSelectMultiple › CheckedCmThemeError › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedCmThemeError);
|
|
23
|
-
test('Molecule › MoleculeSelectMultiple › CheckedCmThemeMultiple › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedCmThemeMultiple);
|
|
24
|
-
test('Molecule › MoleculeSelectMultiple › CheckedCmTheme › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedCmTheme);
|
|
25
17
|
test('Molecule › MoleculeSelectMultiple › CheckedCockpitTheme › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedCockpitTheme);
|
|
26
18
|
test('Molecule › MoleculeSelectMultiple › CheckedSetupTheme › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedSetupTheme);
|
|
27
19
|
test('Molecule › MoleculeSelectMultiple › Checked › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureChecked);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/select-multiple/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeSelectMultiple","
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/select-multiple/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeSelectMultiple","fixtureCheckedCockpitTheme","fixtureCheckedSetupTheme","fixtureChecked","fixtureDefault","fixtureSetupThemeError","fixtureSetupTheme","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,0BAAP,MAAuC,kCAAvC;AACA,OAAOC,wBAAP,MAAqC,gCAArC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,sBAAP,MAAmC,8BAAnC;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AAEAT,IAAI,CAAC,iEAAD,EAAoEU,CAAC,IAAI;AAC3EA,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,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,sBAAvG,EAA+HC,0BAA/H,CAAJ;AACAJ,IAAI,CAAC,4EAAD,EAA+EE,oBAA/E,EAAqGC,sBAArG,EAA6HE,wBAA7H,CAAJ;AACAL,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHG,cAAnH,CAAJ;AACAN,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHI,cAAnH,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,sBAAnG,EAA2HK,sBAA3H,CAAJ;AACAR,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,sBAA9F,EAAsHM,iBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSelectMultiple from '..';\nimport fixtureCheckedCockpitTheme from './fixtures/checked-cockpit-theme';\nimport fixtureCheckedSetupTheme from './fixtures/checked-setup-theme';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureDefault from './fixtures/default';\nimport fixtureSetupThemeError from './fixtures/setup-theme-error';\nimport fixtureSetupTheme from './fixtures/setup-theme';\n\ntest('Molecule › MoleculeSelectMultiple > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSelectMultiple.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSelectMultiple.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSelectMultiple › CheckedCockpitTheme › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedCockpitTheme);\ntest('Molecule › MoleculeSelectMultiple › CheckedSetupTheme › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureCheckedSetupTheme);\ntest('Molecule › MoleculeSelectMultiple › Checked › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureChecked);\ntest('Molecule › MoleculeSelectMultiple › Default › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureDefault);\ntest('Molecule › MoleculeSelectMultiple › SetupThemeError › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureSetupThemeError);\ntest('Molecule › MoleculeSelectMultiple › SetupTheme › should be rendered', renderComponentMacro, MoleculeSelectMultiple, fixtureSetupTheme);\n"],"file":"fixtures.js"}
|
|
@@ -8,7 +8,6 @@ import fixtureCohort from './fixtures/cohort';
|
|
|
8
8
|
import fixtureCreateNewCohort from './fixtures/create-new-cohort';
|
|
9
9
|
import fixtureDefault from './fixtures/default';
|
|
10
10
|
import fixtureSplitForm from './fixtures/split-form';
|
|
11
|
-
import fixtureWithoutUploadImage from './fixtures/without-upload-image';
|
|
12
11
|
test('Molecule › MoleculeSetupSlide > should have valid propTypes', t => {
|
|
13
12
|
t.pass();
|
|
14
13
|
forEach(MoleculeSetupSlide.propTypes, (value, key) => {
|
|
@@ -21,5 +20,4 @@ test('Molecule › MoleculeSetupSlide › Cohort › should be rendered', render
|
|
|
21
20
|
test('Molecule › MoleculeSetupSlide › CreateNewCohort › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCreateNewCohort);
|
|
22
21
|
test('Molecule › MoleculeSetupSlide › Default › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureDefault);
|
|
23
22
|
test('Molecule › MoleculeSetupSlide › SplitForm › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureSplitForm);
|
|
24
|
-
test('Molecule › MoleculeSetupSlide › WithoutUploadImage › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureWithoutUploadImage);
|
|
25
23
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/setup-slide/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeSetupSlide","fixtureAlertMessage","fixtureCheckbox","fixtureCohort","fixtureCreateNewCohort","fixtureDefault","fixtureSplitForm","
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/setup-slide/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeSetupSlide","fixtureAlertMessage","fixtureCheckbox","fixtureCohort","fixtureCreateNewCohort","fixtureDefault","fixtureSplitForm","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,kBAAP,MAA+B,IAA/B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,sBAAP,MAAmC,8BAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAT,IAAI,CAAC,6DAAD,EAAgEU,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,kBAAkB,CAACS,SAApB,EAA+B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,kBAA5F,EAAgHC,mBAAhH,CAAJ;AACAJ,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,kBAAxF,EAA4GE,eAA5G,CAAJ;AACAL,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,kBAAtF,EAA0GG,aAA1G,CAAJ;AACAN,IAAI,CAAC,sEAAD,EAAyEE,oBAAzE,EAA+FC,kBAA/F,EAAmHI,sBAAnH,CAAJ;AACAP,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,kBAAvF,EAA2GK,cAA3G,CAAJ;AACAR,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,kBAAzF,EAA6GM,gBAA7G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSetupSlide from '..';\nimport fixtureAlertMessage from './fixtures/alert-message';\nimport fixtureCheckbox from './fixtures/checkbox';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureCreateNewCohort from './fixtures/create-new-cohort';\nimport fixtureDefault from './fixtures/default';\nimport fixtureSplitForm from './fixtures/split-form';\n\ntest('Molecule › MoleculeSetupSlide > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSetupSlide.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSetupSlide.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSetupSlide › AlertMessage › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureAlertMessage);\ntest('Molecule › MoleculeSetupSlide › Checkbox › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCheckbox);\ntest('Molecule › MoleculeSetupSlide › Cohort › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCohort);\ntest('Molecule › MoleculeSetupSlide › CreateNewCohort › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCreateNewCohort);\ntest('Molecule › MoleculeSetupSlide › Default › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureDefault);\ntest('Molecule › MoleculeSetupSlide › SplitForm › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureSplitForm);\n"],"file":"fixtures.js"}
|
|
@@ -3,7 +3,11 @@ import forEach from 'lodash/forEach';
|
|
|
3
3
|
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
4
|
import OrganismBrandDashboard from '..';
|
|
5
5
|
import fixtureDefault from './fixtures/default';
|
|
6
|
-
import
|
|
6
|
+
import fixtureError from './fixtures/error';
|
|
7
|
+
import fixtureLoading from './fixtures/loading';
|
|
8
|
+
import fixtureSelectedError from './fixtures/selected-error';
|
|
9
|
+
import fixtureSelectedLoading from './fixtures/selected-loading';
|
|
10
|
+
import fixtureSelected from './fixtures/selected';
|
|
7
11
|
test('Organism › OrganismBrandDashboard > should have valid propTypes', t => {
|
|
8
12
|
t.pass();
|
|
9
13
|
forEach(OrganismBrandDashboard.propTypes, (value, key) => {
|
|
@@ -11,5 +15,9 @@ test('Organism › OrganismBrandDashboard > should have valid propTypes', t => {
|
|
|
11
15
|
});
|
|
12
16
|
});
|
|
13
17
|
test('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);
|
|
14
|
-
test('Organism › OrganismBrandDashboard ›
|
|
18
|
+
test('Organism › OrganismBrandDashboard › Error › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureError);
|
|
19
|
+
test('Organism › OrganismBrandDashboard › Loading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureLoading);
|
|
20
|
+
test('Organism › OrganismBrandDashboard › SelectedError › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedError);
|
|
21
|
+
test('Organism › OrganismBrandDashboard › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedLoading);
|
|
22
|
+
test('Organism › OrganismBrandDashboard › Selected › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelected);
|
|
15
23
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organism/brand-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandDashboard","fixtureDefault","
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/brand-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandDashboard","fixtureDefault","fixtureError","fixtureLoading","fixtureSelectedError","fixtureSelectedLoading","fixtureSelected","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,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAT,IAAI,CAAC,iEAAD,EAAoEU,CAAC,IAAI;AAC3EA,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,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,sBAAzF,EAAiHE,YAAjH,CAAJ;AACAL,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHG,cAAnH,CAAJ;AACAN,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,sBAAjG,EAAyHI,oBAAzH,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,sBAAnG,EAA2HK,sBAA3H,CAAJ;AACAR,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,sBAA5F,EAAoHM,eAApH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandDashboard from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureSelectedError from './fixtures/selected-error';\nimport fixtureSelectedLoading from './fixtures/selected-loading';\nimport fixtureSelected from './fixtures/selected';\n\ntest('Organism › OrganismBrandDashboard > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandDashboard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandDashboard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);\ntest('Organism › OrganismBrandDashboard › Error › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureError);\ntest('Organism › OrganismBrandDashboard › Loading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureLoading);\ntest('Organism › OrganismBrandDashboard › SelectedError › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedError);\ntest('Organism › OrganismBrandDashboard › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedLoading);\ntest('Organism › OrganismBrandDashboard › Selected › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelected);\n"],"file":"fixtures.js"}
|
|
@@ -12,7 +12,6 @@ import fixtureLms from './fixtures/lms';
|
|
|
12
12
|
import fixtureLookandfeel from './fixtures/lookandfeel';
|
|
13
13
|
import fixtureManageusersEdit from './fixtures/manageusers-edit';
|
|
14
14
|
import fixtureSso from './fixtures/sso';
|
|
15
|
-
import fixtureWizardPlaylists from './fixtures/wizard-playlists';
|
|
16
15
|
test('Organism › OrganismBrandForm > should have valid propTypes', t => {
|
|
17
16
|
t.pass();
|
|
18
17
|
forEach(OrganismBrandForm.propTypes, (value, key) => {
|
|
@@ -29,5 +28,4 @@ test('Organism › OrganismBrandForm › Lms › should be rendered', renderComp
|
|
|
29
28
|
test('Organism › OrganismBrandForm › Lookandfeel › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLookandfeel);
|
|
30
29
|
test('Organism › OrganismBrandForm › ManageusersEdit › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureManageusersEdit);
|
|
31
30
|
test('Organism › OrganismBrandForm › Sso › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureSso);
|
|
32
|
-
test('Organism › OrganismBrandForm › WizardPlaylists › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardPlaylists);
|
|
33
31
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organism/brand-form/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandForm","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettings","fixtureLms","fixtureLookandfeel","fixtureManageusersEdit","fixtureSso","
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/brand-form/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandForm","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettings","fixtureLms","fixtureLookandfeel","fixtureManageusersEdit","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,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AAEAb,IAAI,CAAC,4DAAD,EAA+Dc,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAd,EAAAA,OAAO,CAACE,iBAAiB,CAACa,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAlB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,iBAAxF,EAA2GC,gBAA3G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,iBAAzF,EAA4GE,iBAA5G,CAAJ;AACAL,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,iBAArF,EAAwGG,aAAxG,CAAJ;AACAN,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,iBAAxF,EAA2GI,gBAA3G,CAAJ;AACAP,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGK,cAAzG,CAAJ;AACAR,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,iBAA9F,EAAiHM,sBAAjH,CAAJ;AACAT,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGO,UAArG,CAAJ;AACAV,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GQ,kBAA7G,CAAJ;AACAX,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,iBAA9F,EAAiHS,sBAAjH,CAAJ;AACAZ,IAAI,CAAC,yDAAD,EAA4DE,oBAA5D,EAAkFC,iBAAlF,EAAqGU,UAArG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandForm from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureSso from './fixtures/sso';\n\ntest('Organism › OrganismBrandForm > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandForm.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandForm.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandForm › Analytics › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnalytics);\ntest('Organism › OrganismBrandForm › Animations › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnimations);\ntest('Organism › OrganismBrandForm › Cohort › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureCohort);\ntest('Organism › OrganismBrandForm › Dashboard › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDashboard);\ntest('Organism › OrganismBrandForm › Default › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDefault);\ntest('Organism › OrganismBrandForm › GeneralSettings › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureGeneralSettings);\ntest('Organism › OrganismBrandForm › Lms › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLms);\ntest('Organism › OrganismBrandForm › Lookandfeel › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLookandfeel);\ntest('Organism › OrganismBrandForm › ManageusersEdit › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureManageusersEdit);\ntest('Organism › OrganismBrandForm › Sso › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureSso);\n"],"file":"fixtures.js"}
|
|
@@ -6,9 +6,6 @@ import fixtureDefault from './fixtures/default';
|
|
|
6
6
|
import fixtureLinkOnly from './fixtures/link-only';
|
|
7
7
|
import fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';
|
|
8
8
|
import fixtureLogged from './fixtures/logged';
|
|
9
|
-
import fixtureMobileSmallLogoFormat from './fixtures/mobile-small-logo-format';
|
|
10
|
-
import fixtureMobileWideLogoFormat from './fixtures/mobile-wide-logo-format';
|
|
11
|
-
import fixtureOnHeaderActionHandlers from './fixtures/on-header-action-handlers';
|
|
12
9
|
import fixtureTeamsFrench from './fixtures/teams-french';
|
|
13
10
|
import fixtureTeams from './fixtures/teams';
|
|
14
11
|
import fixtureUserChangePassword from './fixtures/user-change-password';
|
|
@@ -22,9 +19,6 @@ test('Organism › OrganismMoocHeader › Default › should be rendered', rende
|
|
|
22
19
|
test('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);
|
|
23
20
|
test('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);
|
|
24
21
|
test('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);
|
|
25
|
-
test('Organism › OrganismMoocHeader › MobileSmallLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileSmallLogoFormat);
|
|
26
|
-
test('Organism › OrganismMoocHeader › MobileWideLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileWideLogoFormat);
|
|
27
|
-
test('Organism › OrganismMoocHeader › OnHeaderActionHandlers › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureOnHeaderActionHandlers);
|
|
28
22
|
test('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);
|
|
29
23
|
test('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);
|
|
30
24
|
test('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","fixtureTeamsFrench","fixtureTeams","fixtureUserChangePassword","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,kBAAP,MAA+B,IAA/B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AAEAV,IAAI,CAAC,6DAAD,EAAgEW,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAX,EAAAA,OAAO,CAACE,kBAAkB,CAACU,SAApB,EAA+B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAf,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,kBAAvF,EAA2GC,cAA3G,CAAJ;AACAJ,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,kBAAxF,EAA4GE,eAA5G,CAAJ;AACAL,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,kBAA7G,EAAiIG,oCAAjI,CAAJ;AACAN,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,kBAAtF,EAA0GI,aAA1G,CAAJ;AACAP,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,kBAA3F,EAA+GK,kBAA/G,CAAJ;AACAR,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,kBAArF,EAAyGM,YAAzG,CAAJ;AACAT,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,kBAAlG,EAAsHO,yBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismMoocHeader from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLinkOnly from './fixtures/link-only';\nimport fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';\nimport fixtureLogged from './fixtures/logged';\nimport fixtureTeamsFrench from './fixtures/teams-french';\nimport fixtureTeams from './fixtures/teams';\nimport fixtureUserChangePassword from './fixtures/user-change-password';\n\ntest('Organism › OrganismMoocHeader > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismMoocHeader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismMoocHeader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismMoocHeader › Default › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureDefault);\ntest('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);\ntest('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);\ntest('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);\ntest('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);\ntest('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);\ntest('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
|
+
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
|
+
import classnames from 'classnames';
|
|
8
|
+
import InputTextWithTitledCheckbox from '../../molecule/input-text-with-titled-checkbox';
|
|
9
|
+
import DragAndDropWrapper from '../../molecule/drag-and-drop-wrapper';
|
|
10
|
+
import style from './style.css';
|
|
11
|
+
const ITEM = {
|
|
12
|
+
'input-text': InputTextWithTitledCheckbox,
|
|
13
|
+
'drag-and-drop': DragAndDropWrapper
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const RewardsForm = ({
|
|
17
|
+
items
|
|
18
|
+
}) => {
|
|
19
|
+
const itemsView = items.map((_ref, index) => {
|
|
20
|
+
let {
|
|
21
|
+
type
|
|
22
|
+
} = _ref,
|
|
23
|
+
item = _objectWithoutPropertiesLoose(_ref, ["type"]);
|
|
24
|
+
|
|
25
|
+
const Component = ITEM[type];
|
|
26
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
27
|
+
key: index,
|
|
28
|
+
className: classnames(style.item, type === 'input-text' && style.inputText),
|
|
29
|
+
"data-name": `reward-${index}`
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Component, item));
|
|
31
|
+
});
|
|
32
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
33
|
+
className: style.list
|
|
34
|
+
}, itemsView);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
RewardsForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
38
|
+
items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(_extends({}, InputTextWithTitledCheckbox.propTypes)), PropTypes.shape(_extends({}, DragAndDropWrapper.propTypes))]))
|
|
39
|
+
} : {};
|
|
40
|
+
export default RewardsForm;
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/organism/rewards-form/index.js"],"names":["React","PropTypes","classnames","InputTextWithTitledCheckbox","DragAndDropWrapper","style","ITEM","RewardsForm","items","itemsView","map","index","type","item","Component","inputText","list","propTypes","arrayOf","oneOfType","shape"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,2BAAP,MAAwC,gDAAxC;AACA,OAAOC,kBAAP,MAA+B,sCAA/B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,IAAI,GAAG;AACX,gBAAcH,2BADH;AAEX,mBAAiBC;AAFN,CAAb;;AAKA,MAAMG,WAAW,GAAG,CAAC;AAACC,EAAAA;AAAD,CAAD,KAAa;AAC/B,QAAMC,SAAS,GAAGD,KAAK,CAACE,GAAN,CAAU,OAAkBC,KAAlB,KAA4B;AAAA,QAA3B;AAACC,MAAAA;AAAD,KAA2B;AAAA,QAAjBC,IAAiB;;AACtD,UAAMC,SAAS,GAAGR,IAAI,CAACM,IAAD,CAAtB;AACA,wBACE;AACE,MAAA,GAAG,EAAED,KADP;AAEE,MAAA,SAAS,EAAET,UAAU,CAACG,KAAK,CAACQ,IAAP,EAAaD,IAAI,KAAK,YAAT,IAAyBP,KAAK,CAACU,SAA5C,CAFvB;AAGE,mBAAY,UAASJ,KAAM;AAH7B,oBAKE,oBAAC,SAAD,EAAeE,IAAf,CALF,CADF;AASD,GAXiB,CAAlB;AAYA,sBAAO;AAAI,IAAA,SAAS,EAAER,KAAK,CAACW;AAArB,KAA4BP,SAA5B,CAAP;AACD,CAdD;;AAgBAF,WAAW,CAACU,SAAZ,2CAAwB;AACtBT,EAAAA,KAAK,EAAEP,SAAS,CAACiB,OAAV,CACLjB,SAAS,CAACkB,SAAV,CAAoB,CAClBlB,SAAS,CAACmB,KAAV,cAAoBjB,2BAA2B,CAACc,SAAhD,EADkB,EAElBhB,SAAS,CAACmB,KAAV,cAAoBhB,kBAAkB,CAACa,SAAvC,EAFkB,CAApB,CADK;AADe,CAAxB;AASA,eAAeV,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport InputTextWithTitledCheckbox from '../../molecule/input-text-with-titled-checkbox';\nimport DragAndDropWrapper from '../../molecule/drag-and-drop-wrapper';\nimport style from './style.css';\n\nconst ITEM = {\n 'input-text': InputTextWithTitledCheckbox,\n 'drag-and-drop': DragAndDropWrapper\n};\n\nconst RewardsForm = ({items}) => {\n const itemsView = items.map(({type, ...item}, index) => {\n const Component = ITEM[type];\n return (\n <li\n key={index}\n className={classnames(style.item, type === 'input-text' && style.inputText)}\n data-name={`reward-${index}`}\n >\n <Component {...item} />\n </li>\n );\n });\n return <ul className={style.list}>{itemsView}</ul>;\n};\n\nRewardsForm.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({...InputTextWithTitledCheckbox.propTypes}),\n PropTypes.shape({...DragAndDropWrapper.propTypes})\n ])\n )\n};\n\nexport default RewardsForm;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 checkedInputText from '../../../../molecule/input-text-with-titled-checkbox/test/fixtures/checked';
|
|
4
|
+
import singleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/default';
|
|
5
|
+
import doubleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops';
|
|
6
|
+
export default {
|
|
7
|
+
props: {
|
|
8
|
+
items: [_extends(_extends({}, checkedInputText.props), {}, {
|
|
9
|
+
type: 'input-text'
|
|
10
|
+
}), _extends(_extends({}, singleDragAndDrop.props), {}, {
|
|
11
|
+
type: 'drag-and-drop'
|
|
12
|
+
}), _extends(_extends({}, doubleDragAndDrop.props), {}, {
|
|
13
|
+
type: 'drag-and-drop'
|
|
14
|
+
})]
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/rewards-form/test/fixtures/default.js"],"names":["checkedInputText","singleDragAndDrop","doubleDragAndDrop","props","items","type"],"mappings":";;AAAA,OAAOA,gBAAP,MAA6B,4EAA7B;AACA,OAAOC,iBAAP,MAA8B,kEAA9B;AACA,OAAOC,iBAAP,MAA8B,6EAA9B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBACDJ,gBAAgB,CAACG,KADhB;AACuBE,MAAAA,IAAI,EAAE;AAD7B,8BAEDJ,iBAAiB,CAACE,KAFjB;AAEwBE,MAAAA,IAAI,EAAE;AAF9B,8BAGDH,iBAAiB,CAACC,KAHjB;AAGwBE,MAAAA,IAAI,EAAE;AAH9B;AADF;AADM,CAAf","sourcesContent":["import checkedInputText from '../../../../molecule/input-text-with-titled-checkbox/test/fixtures/checked';\nimport singleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/default';\nimport doubleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops';\n\nexport default {\n props: {\n items: [\n {...checkedInputText.props, type: 'input-text'},\n {...singleDragAndDrop.props, type: 'drag-and-drop'},\n {...doubleDragAndDrop.props, type: 'drag-and-drop'}\n ]\n }\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/rewards-form/test/fixtures/no-rewards.js"],"names":["props","items"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE;AADF;AADM,CAAf","sourcesContent":["export default {\n props: {\n items: []\n }\n};\n"],"file":"no-rewards.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 singleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/default';
|
|
4
|
+
export default {
|
|
5
|
+
props: {
|
|
6
|
+
items: [_extends(_extends({}, singleDragAndDrop.props), {}, {
|
|
7
|
+
type: 'drag-and-drop'
|
|
8
|
+
})]
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=one-reward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/rewards-form/test/fixtures/one-reward.js"],"names":["singleDragAndDrop","props","items","type"],"mappings":";;AAAA,OAAOA,iBAAP,MAA8B,kEAA9B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBAAKF,iBAAiB,CAACC,KAAvB;AAA8BE,MAAAA,IAAI,EAAE;AAApC;AADF;AADM,CAAf","sourcesContent":["import singleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/default';\n\nexport default {\n props: {\n items: [{...singleDragAndDrop.props, type: 'drag-and-drop'}]\n }\n};\n"],"file":"one-reward.js"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 checkedInputText from '../../../../molecule/input-text-with-titled-checkbox/test/fixtures/checked';
|
|
4
|
+
import doubleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops';
|
|
5
|
+
export default {
|
|
6
|
+
props: {
|
|
7
|
+
items: [_extends(_extends({}, checkedInputText.props), {}, {
|
|
8
|
+
type: 'input-text'
|
|
9
|
+
}), _extends(_extends({}, doubleDragAndDrop.props), {}, {
|
|
10
|
+
type: 'drag-and-drop'
|
|
11
|
+
})]
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=two-rewards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/rewards-form/test/fixtures/two-rewards.js"],"names":["checkedInputText","doubleDragAndDrop","props","items","type"],"mappings":";;AAAA,OAAOA,gBAAP,MAA6B,4EAA7B;AACA,OAAOC,iBAAP,MAA8B,6EAA9B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBACDH,gBAAgB,CAACE,KADhB;AACuBE,MAAAA,IAAI,EAAE;AAD7B,8BAEDH,iBAAiB,CAACC,KAFjB;AAEwBE,MAAAA,IAAI,EAAE;AAF9B;AADF;AADM,CAAf","sourcesContent":["import checkedInputText from '../../../../molecule/input-text-with-titled-checkbox/test/fixtures/checked';\nimport doubleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops';\n\nexport default {\n props: {\n items: [\n {...checkedInputText.props, type: 'input-text'},\n {...doubleDragAndDrop.props, type: 'drag-and-drop'}\n ]\n }\n};\n"],"file":"two-rewards.js"}
|
|
@@ -12,6 +12,7 @@ import ContentTranslate from '../content-translation';
|
|
|
12
12
|
import OrganismSearchAndChipsResults from '../search-and-chips-results';
|
|
13
13
|
import CourseSelection from '../course-selection';
|
|
14
14
|
import CourseSections from '../../molecule/course-sections';
|
|
15
|
+
import RewardsForm from '../rewards-form';
|
|
15
16
|
import style from './style.css';
|
|
16
17
|
|
|
17
18
|
const buildHeader = (wizardHeader, steps) => {
|
|
@@ -56,6 +57,9 @@ const buildForm = content => {
|
|
|
56
57
|
|
|
57
58
|
case 'organize-courses':
|
|
58
59
|
return /*#__PURE__*/React.createElement(CourseSections, content);
|
|
60
|
+
|
|
61
|
+
case 'rewards':
|
|
62
|
+
return /*#__PURE__*/React.createElement(RewardsForm, content);
|
|
59
63
|
}
|
|
60
64
|
};
|
|
61
65
|
|
|
@@ -165,6 +169,8 @@ WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
165
169
|
type: PropTypes.oneOf(['courses'])
|
|
166
170
|
})), PropTypes.shape(_extends(_extends({}, CourseSections.propTypes), {}, {
|
|
167
171
|
type: PropTypes.oneOf(['organize-courses'])
|
|
172
|
+
})), PropTypes.shape(_extends(_extends({}, RewardsForm.propTypes), {}, {
|
|
173
|
+
type: PropTypes.oneOf(['rewards'])
|
|
168
174
|
}))]),
|
|
169
175
|
previousStep: PropTypes.shape({
|
|
170
176
|
label: PropTypes.string,
|