@coorpacademy/components 10.13.10 → 10.13.13
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/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/skill-card/index.js +87 -0
- package/es/molecule/skill-card/index.js.map +1 -0
- package/es/molecule/skill-card/style.css +60 -0
- package/es/molecule/skill-card/test/fixtures/custom-skill.js +10 -0
- package/es/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/default.js +15 -0
- package/es/molecule/skill-card/test/fixtures/default.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/no-aria-labels.js +12 -0
- package/es/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/short-skill-title.js +10 -0
- package/es/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
- package/es/molecule/skill-card/test/skill-card.js +90 -0
- package/es/molecule/skill-card/test/skill-card.js.map +1 -0
- 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/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/variables/colors.css +1 -0
- package/lib/atom/checkbox-with-title/style.css +2 -4
- 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/skill-card/index.js +105 -0
- package/lib/molecule/skill-card/index.js.map +1 -0
- package/lib/molecule/skill-card/style.css +60 -0
- package/lib/molecule/skill-card/test/fixtures/custom-skill.js +17 -0
- package/lib/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/default.js +21 -0
- package/lib/molecule/skill-card/test/fixtures/default.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js +18 -0
- package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/short-skill-title.js +17 -0
- package/lib/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
- package/lib/molecule/skill-card/test/skill-card.js +102 -0
- package/lib/molecule/skill-card/test/skill-card.js.map +1 -0
- 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/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/variables/colors.css +1 -0
- package/package.json +2 -2
- package/es/atom/autocomplete/test/fixtures.js +0 -19
- package/es/atom/autocomplete/test/fixtures.js.map +0 -1
- package/es/atom/avatar/test/fixtures.js +0 -13
- package/es/atom/avatar/test/fixtures.js.map +0 -1
- package/es/atom/button/test/fixtures.js +0 -27
- package/es/atom/button/test/fixtures.js.map +0 -1
- 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/catalog-section/test/fixtures.js +0 -15
- package/es/atom/catalog-section/test/fixtures.js.map +0 -1
- package/es/atom/centered-text/test/fixtures.js +0 -13
- package/es/atom/centered-text/test/fixtures.js.map +0 -1
- package/es/atom/checkbox/test/fixtures.js +0 -19
- package/es/atom/checkbox/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/clue/test/fixtures.js +0 -17
- package/es/atom/clue/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/cta/test/fixtures.js +0 -37
- package/es/atom/cta/test/fixtures.js.map +0 -1
- package/es/atom/difficulty-level/test/fixtures.js +0 -19
- package/es/atom/difficulty-level/test/fixtures.js.map +0 -1
- package/es/atom/drag-and-drop/test/fixtures.js +0 -31
- package/es/atom/drag-and-drop/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/image-upload/test/fixtures.js +0 -31
- package/es/atom/image-upload/test/fixtures.js.map +0 -1
- package/es/atom/input-checkbox/test/fixtures.js +0 -25
- package/es/atom/input-checkbox/test/fixtures.js.map +0 -1
- package/es/atom/input-color/test/fixtures.js +0 -19
- package/es/atom/input-color/test/fixtures.js.map +0 -1
- package/es/atom/input-doublestep/test/fixtures.js +0 -21
- package/es/atom/input-doublestep/test/fixtures.js.map +0 -1
- package/es/atom/input-html/test/fixtures.js +0 -17
- package/es/atom/input-html/test/fixtures.js.map +0 -1
- package/es/atom/input-readonly/test/fixtures.js +0 -13
- package/es/atom/input-readonly/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-switch/test/fixtures.js +0 -33
- package/es/atom/input-switch/test/fixtures.js.map +0 -1
- package/es/atom/input-text/test/fixtures.js +0 -27
- package/es/atom/input-text/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/input-textarea/test/fixtures.js +0 -21
- package/es/atom/input-textarea/test/fixtures.js.map +0 -1
- package/es/atom/label/test/fixtures.js +0 -15
- package/es/atom/label/test/fixtures.js.map +0 -1
- package/es/atom/life/test/fixtures.js +0 -25
- package/es/atom/life/test/fixtures.js.map +0 -1
- package/es/atom/link/test/fixtures.js +0 -17
- package/es/atom/link/test/fixtures.js.map +0 -1
- package/es/atom/loader/test/fixtures.js +0 -15
- package/es/atom/loader/test/fixtures.js.map +0 -1
- package/es/atom/notification/test/fixtures.js +0 -17
- package/es/atom/notification/test/fixtures.js.map +0 -1
- package/es/atom/picture/test/fixtures.js +0 -19
- package/es/atom/picture/test/fixtures.js.map +0 -1
- package/es/atom/picture-background/test/fixtures.js +0 -19
- package/es/atom/picture-background/test/fixtures.js.map +0 -1
- package/es/atom/promo-code/test/fixtures.js +0 -17
- package/es/atom/promo-code/test/fixtures.js.map +0 -1
- package/es/atom/provider/test/fixtures.js +0 -13
- package/es/atom/provider/test/fixtures.js.map +0 -1
- package/es/atom/radio-group/test/fixtures.js +0 -17
- package/es/atom/radio-group/test/fixtures.js.map +0 -1
- package/es/atom/range/test/fixtures.js +0 -15
- package/es/atom/range/test/fixtures.js.map +0 -1
- package/es/atom/resource-miniature/test/fixtures.js +0 -21
- package/es/atom/resource-miniature/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/select/test/fixtures.js +0 -47
- package/es/atom/select/test/fixtures.js.map +0 -1
- package/es/atom/slide/test/fixtures.js +0 -21
- package/es/atom/slide/test/fixtures.js.map +0 -1
- package/es/atom/social-link/test/fixtures.js +0 -17
- package/es/atom/social-link/test/fixtures.js.map +0 -1
- package/es/atom/spinner/test/fixtures.js +0 -13
- package/es/atom/spinner/test/fixtures.js.map +0 -1
- package/es/atom/tab/test/fixtures.js +0 -13
- package/es/atom/tab/test/fixtures.js.map +0 -1
- package/es/atom/tab-content/test/fixtures.js +0 -15
- package/es/atom/tab-content/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/title/test/fixtures.js +0 -17
- package/es/atom/title/test/fixtures.js.map +0 -1
- package/es/atom/video-upload/test/fixtures.js +0 -21
- package/es/atom/video-upload/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/hoc/animation/test/fixtures.js +0 -15
- package/es/hoc/animation/test/fixtures.js.map +0 -1
- package/es/hoc/animation-scheduler/test/fixtures.js +0 -15
- package/es/hoc/animation-scheduler/test/fixtures.js.map +0 -1
- package/es/hoc/swapper/test/fixtures.js +0 -13
- package/es/hoc/swapper/test/fixtures.js.map +0 -1
- package/es/hoc/transition/test/fixtures.js +0 -13
- package/es/hoc/transition/test/fixtures.js.map +0 -1
- package/es/molecule/add-to-my-list/test/fixtures.js +0 -15
- package/es/molecule/add-to-my-list/test/fixtures.js.map +0 -1
- package/es/molecule/answer/test/fixtures.js +0 -35
- package/es/molecule/answer/test/fixtures.js.map +0 -1
- package/es/molecule/audio/test/fixtures.js +0 -15
- package/es/molecule/audio/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/battle-request/test/fixtures.js +0 -15
- package/es/molecule/battle-request/test/fixtures.js.map +0 -1
- package/es/molecule/brand-card/test/fixtures.js +0 -15
- package/es/molecule/brand-card/test/fixtures.js.map +0 -1
- package/es/molecule/brand-card-create/test/fixtures.js +0 -13
- package/es/molecule/brand-card-create/test/fixtures.js.map +0 -1
- package/es/molecule/brand-create-form/test/fixtures.js +0 -19
- package/es/molecule/brand-create-form/test/fixtures.js.map +0 -1
- package/es/molecule/brand-download-box/test/fixtures.js +0 -17
- package/es/molecule/brand-download-box/test/fixtures.js.map +0 -1
- package/es/molecule/brand-form-group/test/fixtures.js +0 -35
- package/es/molecule/brand-form-group/test/fixtures.js.map +0 -1
- package/es/molecule/brand-tabs/test/fixtures.js +0 -29
- package/es/molecule/brand-tabs/test/fixtures.js.map +0 -1
- package/es/molecule/brand-upload-box/test/fixtures.js +0 -17
- package/es/molecule/brand-upload-box/test/fixtures.js.map +0 -1
- package/es/molecule/breadcrumbs/test/fixtures.js +0 -13
- package/es/molecule/breadcrumbs/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/card/test/fixtures.js +0 -45
- package/es/molecule/card/test/fixtures.js.map +0 -1
- package/es/molecule/card-content/test/fixtures.js +0 -27
- package/es/molecule/card-content/test/fixtures.js.map +0 -1
- package/es/molecule/card-with-button/test/fixtures.js +0 -17
- package/es/molecule/card-with-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/cookie-banner/test/fixtures.js +0 -13
- package/es/molecule/cookie-banner/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/battle-request-list/test/fixtures.js +0 -15
- package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/cards-list/test/fixtures.js +0 -23
- package/es/molecule/dashboard/cards-list/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/news-list/test/fixtures.js +0 -17
- package/es/molecule/dashboard/news-list/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/dashboard/start-battle/test/fixtures.js +0 -15
- package/es/molecule/dashboard/start-battle/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-cta/test/fixtures.js +0 -15
- package/es/molecule/discipline-cta/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-header/test/fixtures.js +0 -27
- package/es/molecule/discipline-header/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-partners/test/fixtures.js +0 -21
- package/es/molecule/discipline-partners/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-scope/test/fixtures.js +0 -27
- package/es/molecule/discipline-scope/test/fixtures.js.map +0 -1
- package/es/molecule/drag-and-drop/test/fixtures.js +0 -25
- package/es/molecule/drag-and-drop/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/external-content-button/test/fixtures.js +0 -19
- package/es/molecule/external-content-button/test/fixtures.js.map +0 -1
- package/es/molecule/external-content-viewer/test/fixtures.js +0 -27
- package/es/molecule/external-content-viewer/test/fixtures.js.map +0 -1
- package/es/molecule/feedback/test/fixtures.js +0 -27
- package/es/molecule/feedback/test/fixtures.js.map +0 -1
- package/es/molecule/filters/test/fixtures.js +0 -33
- package/es/molecule/filters/test/fixtures.js.map +0 -1
- package/es/molecule/forum/forum-comment/test/fixtures.js +0 -17
- package/es/molecule/forum/forum-comment/test/fixtures.js.map +0 -1
- package/es/molecule/forum/forum-post/test/fixtures.js +0 -31
- package/es/molecule/forum/forum-post/test/fixtures.js.map +0 -1
- package/es/molecule/forum/forum-thread/test/fixtures.js +0 -17
- package/es/molecule/forum/forum-thread/test/fixtures.js.map +0 -1
- package/es/molecule/hero/test/fixtures.js +0 -15
- package/es/molecule/hero/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/login-alert/test/fixtures.js +0 -13
- package/es/molecule/login-alert/test/fixtures.js.map +0 -1
- package/es/molecule/menu-list/test/fixtures.js +0 -13
- package/es/molecule/menu-list/test/fixtures.js.map +0 -1
- package/es/molecule/message-popin/test/fixtures.js +0 -13
- package/es/molecule/message-popin/test/fixtures.js.map +0 -1
- package/es/molecule/modal/test/fixtures.js +0 -13
- package/es/molecule/modal/test/fixtures.js.map +0 -1
- package/es/molecule/module-bubble/test/fixtures.js +0 -17
- package/es/molecule/module-bubble/test/fixtures.js.map +0 -1
- package/es/molecule/module-card/test/fixtures.js +0 -17
- package/es/molecule/module-card/test/fixtures.js.map +0 -1
- package/es/molecule/news/test/fixtures.js +0 -23
- package/es/molecule/news/test/fixtures.js.map +0 -1
- package/es/molecule/notification-banner/test/fixtures.js +0 -17
- package/es/molecule/notification-banner/test/fixtures.js.map +0 -1
- package/es/molecule/pagination/test/fixtures.js +0 -15
- package/es/molecule/pagination/test/fixtures.js.map +0 -1
- package/es/molecule/payment-form/test/fixtures.js +0 -17
- package/es/molecule/payment-form/test/fixtures.js.map +0 -1
- package/es/molecule/pdf/test/fixtures.js +0 -13
- package/es/molecule/pdf/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/product-card/test/fixtures.js +0 -13
- package/es/molecule/product-card/test/fixtures.js.map +0 -1
- package/es/molecule/progress-bar/test/fixtures.js +0 -15
- package/es/molecule/progress-bar/test/fixtures.js.map +0 -1
- package/es/molecule/questions/drop-down/test/fixtures.js +0 -15
- package/es/molecule/questions/drop-down/test/fixtures.js.map +0 -1
- package/es/molecule/questions/free-text/test/fixtures.js +0 -17
- package/es/molecule/questions/free-text/test/fixtures.js.map +0 -1
- package/es/molecule/questions/qcm/test/fixtures.js +0 -19
- package/es/molecule/questions/qcm/test/fixtures.js.map +0 -1
- package/es/molecule/questions/qcm-drag/test/fixtures.js +0 -15
- package/es/molecule/questions/qcm-drag/test/fixtures.js.map +0 -1
- package/es/molecule/questions/qcm-graphic/test/fixtures.js +0 -15
- package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +0 -1
- package/es/molecule/questions/question-range/test/fixtures.js +0 -13
- package/es/molecule/questions/question-range/test/fixtures.js.map +0 -1
- package/es/molecule/questions/template/test/fixtures.js +0 -15
- package/es/molecule/questions/template/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/resource-player/test/fixtures.js +0 -25
- package/es/molecule/resource-player/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/scope-content/test/fixtures.js +0 -27
- package/es/molecule/scope-content/test/fixtures.js.map +0 -1
- package/es/molecule/scope-tabs/test/fixtures.js +0 -17
- package/es/molecule/scope-tabs/test/fixtures.js.map +0 -1
- package/es/molecule/search/test/fixtures.js +0 -15
- package/es/molecule/search/test/fixtures.js.map +0 -1
- package/es/molecule/search-form/test/fixtures.js +0 -13
- package/es/molecule/search-form/test/fixtures.js.map +0 -1
- package/es/molecule/select-multiple/test/fixtures.js +0 -31
- package/es/molecule/select-multiple/test/fixtures.js.map +0 -1
- package/es/molecule/setup-cohort-item/test/fixtures.js +0 -19
- package/es/molecule/setup-cohort-item/test/fixtures.js.map +0 -1
- package/es/molecule/setup-section/test/fixtures.js +0 -25
- package/es/molecule/setup-section/test/fixtures.js.map +0 -1
- package/es/molecule/setup-sections/test/fixtures.js +0 -19
- package/es/molecule/setup-sections/test/fixtures.js.map +0 -1
- package/es/molecule/setup-slide/test/fixtures.js +0 -25
- package/es/molecule/setup-slide/test/fixtures.js.map +0 -1
- package/es/molecule/setup-slider/test/fixtures.js +0 -15
- package/es/molecule/setup-slider/test/fixtures.js.map +0 -1
- package/es/molecule/share/test/fixtures.js +0 -13
- package/es/molecule/share/test/fixtures.js.map +0 -1
- package/es/molecule/ssmenu-list/test/fixtures.js +0 -19
- package/es/molecule/ssmenu-list/test/fixtures.js.map +0 -1
- package/es/molecule/subscription-freemium/test/fixtures.js +0 -13
- package/es/molecule/subscription-freemium/test/fixtures.js.map +0 -1
- package/es/molecule/subscription-premium/test/fixtures.js +0 -15
- package/es/molecule/subscription-premium/test/fixtures.js.map +0 -1
- package/es/molecule/table/test/fixtures.js +0 -19
- package/es/molecule/table/test/fixtures.js.map +0 -1
- package/es/molecule/teams-popin/test/fixtures.js +0 -29
- package/es/molecule/teams-popin/test/fixtures.js.map +0 -1
- package/es/molecule/theme-image/test/fixtures.js +0 -13
- package/es/molecule/theme-image/test/fixtures.js.map +0 -1
- package/es/molecule/titled-checkbox/test/fixtures.js +0 -17
- package/es/molecule/titled-checkbox/test/fixtures.js.map +0 -1
- package/es/molecule/unsubscribe/test/fixtures.js +0 -15
- package/es/molecule/unsubscribe/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/video-iframe/test/fixtures.js +0 -25
- package/es/molecule/video-iframe/test/fixtures.js.map +0 -1
- package/es/molecule/video-player/test/fixtures.js +0 -29
- package/es/molecule/video-player/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/container/test/fixtures.js +0 -17
- package/es/organism/accordion/container/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/accordion/part/test/fixtures.js +0 -15
- package/es/organism/accordion/part/test/fixtures.js.map +0 -1
- package/es/organism/accordion/toggler/test/fixtures.js +0 -17
- package/es/organism/accordion/toggler/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/brand-dashboard/test/fixtures.js +0 -15
- package/es/organism/brand-dashboard/test/fixtures.js.map +0 -1
- package/es/organism/brand-form/test/fixtures.js +0 -33
- package/es/organism/brand-form/test/fixtures.js.map +0 -1
- package/es/organism/brand-table/test/fixtures.js +0 -19
- package/es/organism/brand-table/test/fixtures.js.map +0 -1
- package/es/organism/brand-upload/test/fixtures.js +0 -15
- package/es/organism/brand-upload/test/fixtures.js.map +0 -1
- package/es/organism/cards-grid/test/fixtures.js +0 -19
- package/es/organism/cards-grid/test/fixtures.js.map +0 -1
- package/es/organism/cart/test/fixtures.js +0 -13
- package/es/organism/cart/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/discussion/test/fixtures.js +0 -19
- package/es/organism/discussion/test/fixtures.js.map +0 -1
- package/es/organism/get-the-app/test/fixtures.js +0 -13
- package/es/organism/get-the-app/test/fixtures.js.map +0 -1
- package/es/organism/grid-list/test/fixtures.js +0 -13
- package/es/organism/grid-list/test/fixtures.js.map +0 -1
- package/es/organism/header/test/fixtures.js +0 -13
- package/es/organism/header/test/fixtures.js.map +0 -1
- package/es/organism/hero/test/fixtures.js +0 -17
- package/es/organism/hero/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/mooc/image-slider/test/fixtures.js +0 -15
- package/es/organism/mooc/image-slider/test/fixtures.js.map +0 -1
- package/es/organism/mooc-footer/test/fixtures.js +0 -23
- package/es/organism/mooc-footer/test/fixtures.js.map +0 -1
- package/es/organism/mooc-header/test/fixtures.js +0 -31
- package/es/organism/mooc-header/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/popin/test/fixtures.js +0 -13
- package/es/organism/popin/test/fixtures.js.map +0 -1
- package/es/organism/resource-browser/test/fixtures.js +0 -37
- package/es/organism/resource-browser/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/settings/test/fixtures.js +0 -19
- package/es/organism/settings/test/fixtures.js.map +0 -1
- package/es/organism/setup-header/test/fixtures.js +0 -15
- package/es/organism/setup-header/test/fixtures.js.map +0 -1
- package/es/organism/sidebar/test/fixtures.js +0 -23
- package/es/organism/sidebar/test/fixtures.js.map +0 -1
- package/es/organism/slider/test/fixtures.js +0 -15
- package/es/organism/slider/test/fixtures.js.map +0 -1
- package/es/organism/user-preferences/test/fixtures.js +0 -13
- package/es/organism/user-preferences/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/es/template/activity/test/fixtures.js +0 -21
- package/es/template/activity/test/fixtures.js.map +0 -1
- package/es/template/app-player/loading/test/fixtures.js +0 -13
- package/es/template/app-player/loading/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/slides/footer/test/fixtures.js +0 -29
- package/es/template/app-player/player/slides/footer/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/slides/header/test/fixtures.js +0 -23
- package/es/template/app-player/player/slides/header/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/slides/test/fixtures.js +0 -79
- package/es/template/app-player/player/slides/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/test/fixtures.js +0 -55
- package/es/template/app-player/player/test/fixtures.js.map +0 -1
- package/es/template/app-player/popin-correction/test/fixtures.js +0 -47
- package/es/template/app-player/popin-correction/test/fixtures.js.map +0 -1
- package/es/template/app-player/popin-end/test/fixtures.js +0 -51
- package/es/template/app-player/popin-end/test/fixtures.js.map +0 -1
- package/es/template/app-player/popin-header/test/fixtures.js +0 -29
- package/es/template/app-player/popin-header/test/fixtures.js.map +0 -1
- package/es/template/back-office/brand-create/test/fixtures.js +0 -19
- package/es/template/back-office/brand-create/test/fixtures.js.map +0 -1
- package/es/template/back-office/brand-list/test/fixtures.js +0 -17
- package/es/template/back-office/brand-list/test/fixtures.js.map +0 -1
- package/es/template/back-office/brand-update/test/fixtures.js +0 -87
- package/es/template/back-office/brand-update/test/fixtures.js.map +0 -1
- package/es/template/back-office/dashboard-preview/test/fixtures.js +0 -23
- package/es/template/back-office/dashboard-preview/test/fixtures.js.map +0 -1
- package/es/template/battle-requests/test/fixtures.js +0 -13
- package/es/template/battle-requests/test/fixtures.js.map +0 -1
- package/es/template/cockpit/jw-uploader/test/fixtures.js +0 -13
- package/es/template/cockpit/jw-uploader/test/fixtures.js.map +0 -1
- package/es/template/common/authors/test/fixtures.js +0 -15
- package/es/template/common/authors/test/fixtures.js.map +0 -1
- package/es/template/common/coorp-header/test/fixtures.js +0 -15
- package/es/template/common/coorp-header/test/fixtures.js.map +0 -1
- package/es/template/common/dashboard/test/fixtures.js +0 -17
- package/es/template/common/dashboard/test/fixtures.js.map +0 -1
- package/es/template/common/discipline/test/fixtures.js +0 -47
- package/es/template/common/discipline/test/fixtures.js.map +0 -1
- package/es/template/common/search-page/test/fixtures.js +0 -17
- package/es/template/common/search-page/test/fixtures.js.map +0 -1
- package/es/template/external-course/test/fixtures.js +0 -31
- package/es/template/external-course/test/fixtures.js.map +0 -1
- package/es/template/teams-dashboard/test/fixtures.js +0 -17
- package/es/template/teams-dashboard/test/fixtures.js.map +0 -1
- package/lib/atom/autocomplete/test/fixtures.js +0 -31
- package/lib/atom/autocomplete/test/fixtures.js.map +0 -1
- package/lib/atom/avatar/test/fixtures.js +0 -22
- package/lib/atom/avatar/test/fixtures.js.map +0 -1
- package/lib/atom/button/test/fixtures.js +0 -43
- package/lib/atom/button/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/catalog-section/test/fixtures.js +0 -25
- package/lib/atom/catalog-section/test/fixtures.js.map +0 -1
- package/lib/atom/centered-text/test/fixtures.js +0 -22
- package/lib/atom/centered-text/test/fixtures.js.map +0 -1
- package/lib/atom/checkbox/test/fixtures.js +0 -31
- package/lib/atom/checkbox/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/clue/test/fixtures.js +0 -28
- package/lib/atom/clue/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/cta/test/fixtures.js +0 -58
- package/lib/atom/cta/test/fixtures.js.map +0 -1
- package/lib/atom/difficulty-level/test/fixtures.js +0 -31
- package/lib/atom/difficulty-level/test/fixtures.js.map +0 -1
- package/lib/atom/drag-and-drop/test/fixtures.js +0 -49
- package/lib/atom/drag-and-drop/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/image-upload/test/fixtures.js +0 -49
- package/lib/atom/image-upload/test/fixtures.js.map +0 -1
- package/lib/atom/input-checkbox/test/fixtures.js +0 -40
- package/lib/atom/input-checkbox/test/fixtures.js.map +0 -1
- package/lib/atom/input-color/test/fixtures.js +0 -31
- package/lib/atom/input-color/test/fixtures.js.map +0 -1
- package/lib/atom/input-doublestep/test/fixtures.js +0 -34
- package/lib/atom/input-doublestep/test/fixtures.js.map +0 -1
- package/lib/atom/input-html/test/fixtures.js +0 -28
- package/lib/atom/input-html/test/fixtures.js.map +0 -1
- package/lib/atom/input-readonly/test/fixtures.js +0 -22
- package/lib/atom/input-readonly/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-switch/test/fixtures.js +0 -52
- package/lib/atom/input-switch/test/fixtures.js.map +0 -1
- package/lib/atom/input-text/test/fixtures.js +0 -43
- package/lib/atom/input-text/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/input-textarea/test/fixtures.js +0 -34
- package/lib/atom/input-textarea/test/fixtures.js.map +0 -1
- package/lib/atom/label/test/fixtures.js +0 -25
- package/lib/atom/label/test/fixtures.js.map +0 -1
- package/lib/atom/life/test/fixtures.js +0 -40
- package/lib/atom/life/test/fixtures.js.map +0 -1
- package/lib/atom/link/test/fixtures.js +0 -28
- package/lib/atom/link/test/fixtures.js.map +0 -1
- package/lib/atom/loader/test/fixtures.js +0 -25
- package/lib/atom/loader/test/fixtures.js.map +0 -1
- package/lib/atom/notification/test/fixtures.js +0 -28
- package/lib/atom/notification/test/fixtures.js.map +0 -1
- package/lib/atom/picture/test/fixtures.js +0 -31
- package/lib/atom/picture/test/fixtures.js.map +0 -1
- package/lib/atom/picture-background/test/fixtures.js +0 -31
- package/lib/atom/picture-background/test/fixtures.js.map +0 -1
- package/lib/atom/promo-code/test/fixtures.js +0 -28
- package/lib/atom/promo-code/test/fixtures.js.map +0 -1
- package/lib/atom/provider/test/fixtures.js +0 -22
- package/lib/atom/provider/test/fixtures.js.map +0 -1
- package/lib/atom/radio-group/test/fixtures.js +0 -28
- package/lib/atom/radio-group/test/fixtures.js.map +0 -1
- package/lib/atom/range/test/fixtures.js +0 -25
- package/lib/atom/range/test/fixtures.js.map +0 -1
- package/lib/atom/resource-miniature/test/fixtures.js +0 -34
- package/lib/atom/resource-miniature/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/select/test/fixtures.js +0 -73
- package/lib/atom/select/test/fixtures.js.map +0 -1
- package/lib/atom/slide/test/fixtures.js +0 -34
- package/lib/atom/slide/test/fixtures.js.map +0 -1
- package/lib/atom/social-link/test/fixtures.js +0 -28
- package/lib/atom/social-link/test/fixtures.js.map +0 -1
- package/lib/atom/spinner/test/fixtures.js +0 -22
- package/lib/atom/spinner/test/fixtures.js.map +0 -1
- package/lib/atom/tab/test/fixtures.js +0 -22
- package/lib/atom/tab/test/fixtures.js.map +0 -1
- package/lib/atom/tab-content/test/fixtures.js +0 -25
- package/lib/atom/tab-content/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/title/test/fixtures.js +0 -28
- package/lib/atom/title/test/fixtures.js.map +0 -1
- package/lib/atom/video-upload/test/fixtures.js +0 -34
- package/lib/atom/video-upload/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/hoc/animation/test/fixtures.js +0 -25
- package/lib/hoc/animation/test/fixtures.js.map +0 -1
- package/lib/hoc/animation-scheduler/test/fixtures.js +0 -25
- package/lib/hoc/animation-scheduler/test/fixtures.js.map +0 -1
- package/lib/hoc/swapper/test/fixtures.js +0 -22
- package/lib/hoc/swapper/test/fixtures.js.map +0 -1
- package/lib/hoc/transition/test/fixtures.js +0 -22
- package/lib/hoc/transition/test/fixtures.js.map +0 -1
- package/lib/molecule/add-to-my-list/test/fixtures.js +0 -25
- package/lib/molecule/add-to-my-list/test/fixtures.js.map +0 -1
- package/lib/molecule/answer/test/fixtures.js +0 -55
- package/lib/molecule/answer/test/fixtures.js.map +0 -1
- package/lib/molecule/audio/test/fixtures.js +0 -25
- package/lib/molecule/audio/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/battle-request/test/fixtures.js +0 -25
- package/lib/molecule/battle-request/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-card/test/fixtures.js +0 -25
- package/lib/molecule/brand-card/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-card-create/test/fixtures.js +0 -22
- package/lib/molecule/brand-card-create/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-create-form/test/fixtures.js +0 -31
- package/lib/molecule/brand-create-form/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-download-box/test/fixtures.js +0 -28
- package/lib/molecule/brand-download-box/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-form-group/test/fixtures.js +0 -55
- package/lib/molecule/brand-form-group/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-tabs/test/fixtures.js +0 -46
- package/lib/molecule/brand-tabs/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-upload-box/test/fixtures.js +0 -28
- package/lib/molecule/brand-upload-box/test/fixtures.js.map +0 -1
- package/lib/molecule/breadcrumbs/test/fixtures.js +0 -22
- package/lib/molecule/breadcrumbs/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/card/test/fixtures.js +0 -70
- package/lib/molecule/card/test/fixtures.js.map +0 -1
- package/lib/molecule/card-content/test/fixtures.js +0 -43
- package/lib/molecule/card-content/test/fixtures.js.map +0 -1
- package/lib/molecule/card-with-button/test/fixtures.js +0 -28
- package/lib/molecule/card-with-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/cookie-banner/test/fixtures.js +0 -22
- package/lib/molecule/cookie-banner/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/battle-request-list/test/fixtures.js +0 -25
- package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures.js +0 -37
- package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/news-list/test/fixtures.js +0 -28
- package/lib/molecule/dashboard/news-list/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/dashboard/start-battle/test/fixtures.js +0 -25
- package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-cta/test/fixtures.js +0 -25
- package/lib/molecule/discipline-cta/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-header/test/fixtures.js +0 -43
- package/lib/molecule/discipline-header/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-partners/test/fixtures.js +0 -34
- package/lib/molecule/discipline-partners/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-scope/test/fixtures.js +0 -43
- package/lib/molecule/discipline-scope/test/fixtures.js.map +0 -1
- package/lib/molecule/drag-and-drop/test/fixtures.js +0 -40
- package/lib/molecule/drag-and-drop/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/external-content-button/test/fixtures.js +0 -31
- package/lib/molecule/external-content-button/test/fixtures.js.map +0 -1
- package/lib/molecule/external-content-viewer/test/fixtures.js +0 -43
- package/lib/molecule/external-content-viewer/test/fixtures.js.map +0 -1
- package/lib/molecule/feedback/test/fixtures.js +0 -43
- package/lib/molecule/feedback/test/fixtures.js.map +0 -1
- package/lib/molecule/filters/test/fixtures.js +0 -52
- package/lib/molecule/filters/test/fixtures.js.map +0 -1
- package/lib/molecule/forum/forum-comment/test/fixtures.js +0 -28
- package/lib/molecule/forum/forum-comment/test/fixtures.js.map +0 -1
- package/lib/molecule/forum/forum-post/test/fixtures.js +0 -49
- package/lib/molecule/forum/forum-post/test/fixtures.js.map +0 -1
- package/lib/molecule/forum/forum-thread/test/fixtures.js +0 -28
- package/lib/molecule/forum/forum-thread/test/fixtures.js.map +0 -1
- package/lib/molecule/hero/test/fixtures.js +0 -25
- package/lib/molecule/hero/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/login-alert/test/fixtures.js +0 -22
- package/lib/molecule/login-alert/test/fixtures.js.map +0 -1
- package/lib/molecule/menu-list/test/fixtures.js +0 -22
- package/lib/molecule/menu-list/test/fixtures.js.map +0 -1
- package/lib/molecule/message-popin/test/fixtures.js +0 -22
- package/lib/molecule/message-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/modal/test/fixtures.js +0 -22
- package/lib/molecule/modal/test/fixtures.js.map +0 -1
- package/lib/molecule/module-bubble/test/fixtures.js +0 -28
- package/lib/molecule/module-bubble/test/fixtures.js.map +0 -1
- package/lib/molecule/module-card/test/fixtures.js +0 -28
- package/lib/molecule/module-card/test/fixtures.js.map +0 -1
- package/lib/molecule/news/test/fixtures.js +0 -37
- package/lib/molecule/news/test/fixtures.js.map +0 -1
- package/lib/molecule/notification-banner/test/fixtures.js +0 -28
- package/lib/molecule/notification-banner/test/fixtures.js.map +0 -1
- package/lib/molecule/pagination/test/fixtures.js +0 -25
- package/lib/molecule/pagination/test/fixtures.js.map +0 -1
- package/lib/molecule/payment-form/test/fixtures.js +0 -28
- package/lib/molecule/payment-form/test/fixtures.js.map +0 -1
- package/lib/molecule/pdf/test/fixtures.js +0 -22
- package/lib/molecule/pdf/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/product-card/test/fixtures.js +0 -22
- package/lib/molecule/product-card/test/fixtures.js.map +0 -1
- package/lib/molecule/progress-bar/test/fixtures.js +0 -25
- package/lib/molecule/progress-bar/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/drop-down/test/fixtures.js +0 -25
- package/lib/molecule/questions/drop-down/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/free-text/test/fixtures.js +0 -28
- package/lib/molecule/questions/free-text/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/qcm/test/fixtures.js +0 -31
- package/lib/molecule/questions/qcm/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/qcm-drag/test/fixtures.js +0 -25
- package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/qcm-graphic/test/fixtures.js +0 -25
- package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/question-range/test/fixtures.js +0 -22
- package/lib/molecule/questions/question-range/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/template/test/fixtures.js +0 -25
- package/lib/molecule/questions/template/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/resource-player/test/fixtures.js +0 -40
- package/lib/molecule/resource-player/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/scope-content/test/fixtures.js +0 -43
- package/lib/molecule/scope-content/test/fixtures.js.map +0 -1
- package/lib/molecule/scope-tabs/test/fixtures.js +0 -28
- package/lib/molecule/scope-tabs/test/fixtures.js.map +0 -1
- package/lib/molecule/search/test/fixtures.js +0 -25
- package/lib/molecule/search/test/fixtures.js.map +0 -1
- package/lib/molecule/search-form/test/fixtures.js +0 -22
- package/lib/molecule/search-form/test/fixtures.js.map +0 -1
- package/lib/molecule/select-multiple/test/fixtures.js +0 -49
- package/lib/molecule/select-multiple/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-cohort-item/test/fixtures.js +0 -31
- package/lib/molecule/setup-cohort-item/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-section/test/fixtures.js +0 -40
- package/lib/molecule/setup-section/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-sections/test/fixtures.js +0 -31
- package/lib/molecule/setup-sections/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-slide/test/fixtures.js +0 -40
- package/lib/molecule/setup-slide/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-slider/test/fixtures.js +0 -25
- package/lib/molecule/setup-slider/test/fixtures.js.map +0 -1
- package/lib/molecule/share/test/fixtures.js +0 -22
- package/lib/molecule/share/test/fixtures.js.map +0 -1
- package/lib/molecule/ssmenu-list/test/fixtures.js +0 -31
- package/lib/molecule/ssmenu-list/test/fixtures.js.map +0 -1
- package/lib/molecule/subscription-freemium/test/fixtures.js +0 -22
- package/lib/molecule/subscription-freemium/test/fixtures.js.map +0 -1
- package/lib/molecule/subscription-premium/test/fixtures.js +0 -25
- package/lib/molecule/subscription-premium/test/fixtures.js.map +0 -1
- package/lib/molecule/table/test/fixtures.js +0 -31
- package/lib/molecule/table/test/fixtures.js.map +0 -1
- package/lib/molecule/teams-popin/test/fixtures.js +0 -46
- package/lib/molecule/teams-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/theme-image/test/fixtures.js +0 -22
- package/lib/molecule/theme-image/test/fixtures.js.map +0 -1
- package/lib/molecule/titled-checkbox/test/fixtures.js +0 -28
- package/lib/molecule/titled-checkbox/test/fixtures.js.map +0 -1
- package/lib/molecule/unsubscribe/test/fixtures.js +0 -25
- package/lib/molecule/unsubscribe/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/video-iframe/test/fixtures.js +0 -40
- package/lib/molecule/video-iframe/test/fixtures.js.map +0 -1
- package/lib/molecule/video-player/test/fixtures.js +0 -46
- package/lib/molecule/video-player/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/container/test/fixtures.js +0 -28
- package/lib/organism/accordion/container/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/accordion/part/test/fixtures.js +0 -25
- package/lib/organism/accordion/part/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/toggler/test/fixtures.js +0 -28
- package/lib/organism/accordion/toggler/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/brand-dashboard/test/fixtures.js +0 -25
- package/lib/organism/brand-dashboard/test/fixtures.js.map +0 -1
- package/lib/organism/brand-form/test/fixtures.js +0 -52
- package/lib/organism/brand-form/test/fixtures.js.map +0 -1
- package/lib/organism/brand-table/test/fixtures.js +0 -31
- package/lib/organism/brand-table/test/fixtures.js.map +0 -1
- package/lib/organism/brand-upload/test/fixtures.js +0 -25
- package/lib/organism/brand-upload/test/fixtures.js.map +0 -1
- package/lib/organism/cards-grid/test/fixtures.js +0 -31
- package/lib/organism/cards-grid/test/fixtures.js.map +0 -1
- package/lib/organism/cart/test/fixtures.js +0 -22
- package/lib/organism/cart/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/discussion/test/fixtures.js +0 -31
- package/lib/organism/discussion/test/fixtures.js.map +0 -1
- package/lib/organism/get-the-app/test/fixtures.js +0 -22
- package/lib/organism/get-the-app/test/fixtures.js.map +0 -1
- package/lib/organism/grid-list/test/fixtures.js +0 -22
- package/lib/organism/grid-list/test/fixtures.js.map +0 -1
- package/lib/organism/header/test/fixtures.js +0 -22
- package/lib/organism/header/test/fixtures.js.map +0 -1
- package/lib/organism/hero/test/fixtures.js +0 -28
- package/lib/organism/hero/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/mooc/image-slider/test/fixtures.js +0 -25
- package/lib/organism/mooc/image-slider/test/fixtures.js.map +0 -1
- package/lib/organism/mooc-footer/test/fixtures.js +0 -37
- package/lib/organism/mooc-footer/test/fixtures.js.map +0 -1
- package/lib/organism/mooc-header/test/fixtures.js +0 -49
- package/lib/organism/mooc-header/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/popin/test/fixtures.js +0 -22
- package/lib/organism/popin/test/fixtures.js.map +0 -1
- package/lib/organism/resource-browser/test/fixtures.js +0 -58
- package/lib/organism/resource-browser/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/settings/test/fixtures.js +0 -31
- package/lib/organism/settings/test/fixtures.js.map +0 -1
- package/lib/organism/setup-header/test/fixtures.js +0 -25
- package/lib/organism/setup-header/test/fixtures.js.map +0 -1
- package/lib/organism/sidebar/test/fixtures.js +0 -37
- package/lib/organism/sidebar/test/fixtures.js.map +0 -1
- package/lib/organism/slider/test/fixtures.js +0 -25
- package/lib/organism/slider/test/fixtures.js.map +0 -1
- package/lib/organism/user-preferences/test/fixtures.js +0 -22
- package/lib/organism/user-preferences/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
- package/lib/template/activity/test/fixtures.js +0 -34
- package/lib/template/activity/test/fixtures.js.map +0 -1
- package/lib/template/app-player/loading/test/fixtures.js +0 -22
- package/lib/template/app-player/loading/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/slides/footer/test/fixtures.js +0 -46
- package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/slides/header/test/fixtures.js +0 -37
- package/lib/template/app-player/player/slides/header/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/slides/test/fixtures.js +0 -121
- package/lib/template/app-player/player/slides/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/test/fixtures.js +0 -85
- package/lib/template/app-player/player/test/fixtures.js.map +0 -1
- package/lib/template/app-player/popin-correction/test/fixtures.js +0 -73
- package/lib/template/app-player/popin-correction/test/fixtures.js.map +0 -1
- package/lib/template/app-player/popin-end/test/fixtures.js +0 -79
- package/lib/template/app-player/popin-end/test/fixtures.js.map +0 -1
- package/lib/template/app-player/popin-header/test/fixtures.js +0 -46
- package/lib/template/app-player/popin-header/test/fixtures.js.map +0 -1
- package/lib/template/back-office/brand-create/test/fixtures.js +0 -31
- package/lib/template/back-office/brand-create/test/fixtures.js.map +0 -1
- package/lib/template/back-office/brand-list/test/fixtures.js +0 -28
- package/lib/template/back-office/brand-list/test/fixtures.js.map +0 -1
- package/lib/template/back-office/brand-update/test/fixtures.js +0 -133
- package/lib/template/back-office/brand-update/test/fixtures.js.map +0 -1
- package/lib/template/back-office/dashboard-preview/test/fixtures.js +0 -37
- package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +0 -1
- package/lib/template/battle-requests/test/fixtures.js +0 -22
- package/lib/template/battle-requests/test/fixtures.js.map +0 -1
- package/lib/template/cockpit/jw-uploader/test/fixtures.js +0 -22
- package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +0 -1
- package/lib/template/common/authors/test/fixtures.js +0 -25
- package/lib/template/common/authors/test/fixtures.js.map +0 -1
- package/lib/template/common/coorp-header/test/fixtures.js +0 -25
- package/lib/template/common/coorp-header/test/fixtures.js.map +0 -1
- package/lib/template/common/dashboard/test/fixtures.js +0 -28
- package/lib/template/common/dashboard/test/fixtures.js.map +0 -1
- package/lib/template/common/discipline/test/fixtures.js +0 -73
- package/lib/template/common/discipline/test/fixtures.js.map +0 -1
- package/lib/template/common/search-page/test/fixtures.js +0 -28
- package/lib/template/common/search-page/test/fixtures.js.map +0 -1
- package/lib/template/external-course/test/fixtures.js +0 -49
- package/lib/template/external-course/test/fixtures.js.map +0 -1
- package/lib/template/teams-dashboard/test/fixtures.js +0 -28
- package/lib/template/teams-dashboard/test/fixtures.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_400 from colors;
|
|
3
|
+
@value white from colors;
|
|
4
|
+
@value box_shadow_light_dark from colors;
|
|
5
|
+
@value box_shadow_medium_dark from colors;
|
|
6
|
+
|
|
7
|
+
.textBase {
|
|
8
|
+
font-family: "Gilroy";
|
|
9
|
+
font-style: normal;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.skillCardWrapper {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
max-width: 353px;
|
|
16
|
+
min-width: 245px;
|
|
17
|
+
height: 242px;
|
|
18
|
+
box-shadow: 0px 4px 16px box_shadow_light_dark;
|
|
19
|
+
transition: box-shadow 0.15s ease-in-out;
|
|
20
|
+
border-radius: 8px 8px 12px 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.skillCardWrapper:hover {
|
|
24
|
+
box-shadow: 0px 4px 48px box_shadow_medium_dark;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.skillTitle {
|
|
28
|
+
composes: textBase;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
font-size: 20px;
|
|
31
|
+
line-height: 28px;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
height: 112px;
|
|
35
|
+
border-radius: 8px 8px 0px 0px;
|
|
36
|
+
color: white;
|
|
37
|
+
padding: 0px 24px;
|
|
38
|
+
user-select: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.questionReviseIcon {
|
|
42
|
+
padding-right : 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.questionReviseText {
|
|
46
|
+
composes: textBase;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items : center;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
line-height: 22px;
|
|
52
|
+
color: cm_grey_400;
|
|
53
|
+
padding: 16px 24px 24px;
|
|
54
|
+
user-select: none;
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.buttonWrapper {
|
|
59
|
+
padding: 0px 24px;
|
|
60
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _default2 = require("./default");
|
|
7
|
+
|
|
8
|
+
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); }
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
props: _extends(_extends({}, _default2.defaultProps), {}, {
|
|
12
|
+
skillTitle: 'This is a custom skill',
|
|
13
|
+
isCustom: true
|
|
14
|
+
})
|
|
15
|
+
};
|
|
16
|
+
exports.default = _default;
|
|
17
|
+
//# sourceMappingURL=custom-skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/custom-skill.js"],"names":["props","defaultProps","skillTitle","isCustom"],"mappings":";;;;;AAAA;;;;eAEe;AACbA,EAAAA,KAAK,wBAAMC,sBAAN;AAAoBC,IAAAA,UAAU,EAAE,wBAAhC;AAA0DC,IAAAA,QAAQ,EAAE;AAApE;AADQ,C","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'This is a custom skill', isCustom: true}\n};\n"],"file":"custom-skill.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.defaultProps = void 0;
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
'aria-label': 'Skill Card',
|
|
7
|
+
skillTitle: 'Critical thinking and analysis',
|
|
8
|
+
skillAriaLabel: 'Skill aria label',
|
|
9
|
+
buttonLabel: 'Revise this skill',
|
|
10
|
+
buttonAriaLabel: 'Button aria label',
|
|
11
|
+
reviseLabel: '75 questions to revise',
|
|
12
|
+
reviseAriaLabel: 'revise aria label',
|
|
13
|
+
isCustom: undefined,
|
|
14
|
+
onClick: () => console.log('revise')
|
|
15
|
+
};
|
|
16
|
+
exports.defaultProps = defaultProps;
|
|
17
|
+
var _default = {
|
|
18
|
+
props: defaultProps
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/default.js"],"names":["defaultProps","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","isCustom","undefined","onClick","console","log","props"],"mappings":";;;;AAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,cAAc,EAAE,kBAHU;AAI1BC,EAAAA,WAAW,EAAE,mBAJa;AAK1BC,EAAAA,eAAe,EAAE,mBALS;AAM1BC,EAAAA,WAAW,EAAE,wBANa;AAO1BC,EAAAA,eAAe,EAAE,mBAPS;AAQ1BC,EAAAA,QAAQ,EAAEC,SARgB;AAS1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AATW,CAArB;;eAYQ;AACbC,EAAAA,KAAK,EAAEZ;AADM,C","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n skillAriaLabel: 'Skill aria label',\n buttonLabel: 'Revise this skill',\n buttonAriaLabel: 'Button aria label',\n reviseLabel: '75 questions to revise',\n reviseAriaLabel: 'revise aria label',\n isCustom: undefined,\n onClick: () => console.log('revise')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.defaultProps = void 0;
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
'aria-label': 'Skill Card',
|
|
7
|
+
skillTitle: 'Critical thinking and analysis',
|
|
8
|
+
buttonLabel: 'Revise this skill',
|
|
9
|
+
reviseLabel: '75 questions to revise',
|
|
10
|
+
isCustom: undefined,
|
|
11
|
+
onClick: () => console.log('revise - no aria')
|
|
12
|
+
};
|
|
13
|
+
exports.defaultProps = defaultProps;
|
|
14
|
+
var _default = {
|
|
15
|
+
props: defaultProps
|
|
16
|
+
};
|
|
17
|
+
exports.default = _default;
|
|
18
|
+
//# sourceMappingURL=no-aria-labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/no-aria-labels.js"],"names":["defaultProps","skillTitle","buttonLabel","reviseLabel","isCustom","undefined","onClick","console","log","props"],"mappings":";;;;AAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,WAAW,EAAE,mBAHa;AAI1BC,EAAAA,WAAW,EAAE,wBAJa;AAK1BC,EAAAA,QAAQ,EAAEC,SALgB;AAM1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AANW,CAArB;;eASQ;AACbC,EAAAA,KAAK,EAAET;AADM,C","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n buttonLabel: 'Revise this skill',\n reviseLabel: '75 questions to revise',\n isCustom: undefined,\n onClick: () => console.log('revise - no aria')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"no-aria-labels.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _default2 = require("./default");
|
|
7
|
+
|
|
8
|
+
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); }
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
props: _extends(_extends({}, _default2.defaultProps), {}, {
|
|
12
|
+
skillTitle: 'Agility',
|
|
13
|
+
isCustom: false
|
|
14
|
+
})
|
|
15
|
+
};
|
|
16
|
+
exports.default = _default;
|
|
17
|
+
//# sourceMappingURL=short-skill-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/short-skill-title.js"],"names":["props","defaultProps","skillTitle","isCustom"],"mappings":";;;;;AAAA;;;;eAEe;AACbA,EAAAA,KAAK,wBAAMC,sBAAN;AAAoBC,IAAAA,UAAU,EAAE,SAAhC;AAA2CC,IAAAA,QAAQ,EAAE;AAArD;AADQ,C","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'Agility', isCustom: false}\n};\n"],"file":"short-skill-title.js"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _browserEnv = _interopRequireDefault(require("browser-env"));
|
|
4
|
+
|
|
5
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
6
|
+
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
|
|
9
|
+
var _enzyme = require("enzyme");
|
|
10
|
+
|
|
11
|
+
var _enzymeAdapterReact = _interopRequireDefault(require("enzyme-adapter-react-16"));
|
|
12
|
+
|
|
13
|
+
var _ = _interopRequireDefault(require(".."));
|
|
14
|
+
|
|
15
|
+
var _customSkill = _interopRequireDefault(require("./fixtures/custom-skill"));
|
|
16
|
+
|
|
17
|
+
var _noAriaLabels = _interopRequireDefault(require("./fixtures/no-aria-labels"));
|
|
18
|
+
|
|
19
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
+
|
|
21
|
+
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); }
|
|
22
|
+
|
|
23
|
+
(0, _browserEnv.default)();
|
|
24
|
+
(0, _enzyme.configure)({
|
|
25
|
+
adapter: new _enzymeAdapterReact.default()
|
|
26
|
+
});
|
|
27
|
+
(0, _ava.default)('onClick should be reachable, should match given aria-label', t => {
|
|
28
|
+
let buttonWasClicked = false;
|
|
29
|
+
_customSkill.default.props = _extends(_extends({}, _customSkill.default.props), {}, {
|
|
30
|
+
onClick: () => {
|
|
31
|
+
buttonWasClicked = true;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react.default.createElement(_.default, _customSkill.default.props));
|
|
35
|
+
const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
36
|
+
t.true(cardWrapper.at(0).exists());
|
|
37
|
+
t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');
|
|
38
|
+
const skillTitle = cardWrapper.find('[data-name="skill-title"]');
|
|
39
|
+
t.true(skillTitle.at(0).exists());
|
|
40
|
+
t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');
|
|
41
|
+
const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
|
|
42
|
+
t.true(questionsLabel.at(0).exists());
|
|
43
|
+
t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');
|
|
44
|
+
const buttonLink = cardWrapper.find('[data-name="skill-card-button"]');
|
|
45
|
+
t.true(buttonLink.at(0).exists());
|
|
46
|
+
t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');
|
|
47
|
+
buttonLink.at(0).simulate('click', {});
|
|
48
|
+
t.true(buttonWasClicked);
|
|
49
|
+
t.pass();
|
|
50
|
+
});
|
|
51
|
+
(0, _ava.default)('onHover should change button text color && backgroundColor', t => {
|
|
52
|
+
const wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react.default.createElement(_.default, _customSkill.default.props));
|
|
53
|
+
const expectedStyleNoHover = {
|
|
54
|
+
backgroundColor: 'rgba(0, 176, 255, 0.07)',
|
|
55
|
+
color: '#00B0FF',
|
|
56
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
57
|
+
};
|
|
58
|
+
const expectedStyleOnHover = {
|
|
59
|
+
backgroundColor: '#00B0FF',
|
|
60
|
+
color: '#FFFFFF',
|
|
61
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
62
|
+
};
|
|
63
|
+
let cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
64
|
+
t.true(cardWrapper.at(0).exists());
|
|
65
|
+
let buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
|
|
66
|
+
t.true(buttonWrapper.at(0).exists());
|
|
67
|
+
let buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
|
|
68
|
+
t.true(buttonLink.at(0).exists());
|
|
69
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover); // hover
|
|
70
|
+
|
|
71
|
+
buttonWrapper.simulate('mouseover');
|
|
72
|
+
wrapper.update();
|
|
73
|
+
cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
74
|
+
buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
|
|
75
|
+
t.true(buttonWrapper.at(0).exists());
|
|
76
|
+
buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
|
|
77
|
+
t.true(buttonLink.at(0).exists());
|
|
78
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover); // leave hover
|
|
79
|
+
|
|
80
|
+
buttonWrapper.simulate('mouseleave');
|
|
81
|
+
wrapper.update();
|
|
82
|
+
buttonLink = wrapper.find('[data-name="skill-card-button"] button');
|
|
83
|
+
t.true(buttonLink.at(0).exists());
|
|
84
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);
|
|
85
|
+
t.pass();
|
|
86
|
+
});
|
|
87
|
+
(0, _ava.default)('should use default aria-labels if aria-label props are not provided', t => {
|
|
88
|
+
const wrapper = (0, _enzyme.mount)( /*#__PURE__*/_react.default.createElement(_.default, _noAriaLabels.default.props));
|
|
89
|
+
const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
90
|
+
t.true(cardWrapper.at(0).exists());
|
|
91
|
+
const skillTitle = cardWrapper.find('[data-name="skill-title"]');
|
|
92
|
+
t.true(skillTitle.at(0).exists());
|
|
93
|
+
t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');
|
|
94
|
+
const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
|
|
95
|
+
t.true(questionsLabel.at(0).exists());
|
|
96
|
+
t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');
|
|
97
|
+
const buttonLink = cardWrapper.find('[data-name="skill-card-button"] button');
|
|
98
|
+
t.true(buttonLink.at(0).exists());
|
|
99
|
+
t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');
|
|
100
|
+
t.pass();
|
|
101
|
+
});
|
|
102
|
+
//# sourceMappingURL=skill-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/skill-card/test/skill-card.js"],"names":["adapter","Adapter","t","buttonWasClicked","customSkillFixture","props","onClick","wrapper","cardWrapper","find","true","at","exists","is","skillTitle","questionsLabel","buttonLink","simulate","pass","expectedStyleNoHover","backgroundColor","color","transition","expectedStyleOnHover","buttonWrapper","deepEqual","style","update","noAriaLabelsFixtures"],"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browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport SkillCard from '..';\nimport customSkillFixture from './fixtures/custom-skill';\nimport noAriaLabelsFixtures from './fixtures/no-aria-labels';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('onClick should be reachable, should match given aria-label', t => {\n let buttonWasClicked = false;\n customSkillFixture.props = {\n ...customSkillFixture.props,\n onClick: () => {\n buttonWasClicked = true;\n }\n };\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"]');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');\n buttonLink.at(0).simulate('click', {});\n t.true(buttonWasClicked);\n\n t.pass();\n});\n\ntest('onHover should change button text color && backgroundColor', t => {\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const expectedStyleNoHover = {\n backgroundColor: 'rgba(0, 176, 255, 0.07)',\n color: '#00B0FF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n const expectedStyleOnHover = {\n backgroundColor: '#00B0FF',\n color: '#FFFFFF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n let cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n let buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n let buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n // hover\n buttonWrapper.simulate('mouseover');\n\n wrapper.update();\n cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover);\n\n // leave hover\n buttonWrapper.simulate('mouseleave');\n\n wrapper.update();\n\n buttonLink = wrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n t.pass();\n});\n\ntest('should use default aria-labels if aria-label props are not provided', t => {\n const wrapper = mount(<SkillCard {...noAriaLabelsFixtures.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');\n\n t.pass();\n});\n"],"file":"skill-card.js"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _inputTextWithTitledCheckbox = _interopRequireDefault(require("../../molecule/input-text-with-titled-checkbox"));
|
|
13
|
+
|
|
14
|
+
var _dragAndDropWrapper = _interopRequireDefault(require("../../molecule/drag-and-drop-wrapper"));
|
|
15
|
+
|
|
16
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
const ITEM = {
|
|
25
|
+
'input-text': _inputTextWithTitledCheckbox.default,
|
|
26
|
+
'drag-and-drop': _dragAndDropWrapper.default
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const RewardsForm = ({
|
|
30
|
+
items
|
|
31
|
+
}) => {
|
|
32
|
+
const itemsView = items.map((_ref, index) => {
|
|
33
|
+
let {
|
|
34
|
+
type
|
|
35
|
+
} = _ref,
|
|
36
|
+
item = _objectWithoutPropertiesLoose(_ref, ["type"]);
|
|
37
|
+
|
|
38
|
+
const Component = ITEM[type];
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
40
|
+
key: index,
|
|
41
|
+
className: (0, _classnames.default)(_style.default.item, type === 'input-text' && _style.default.inputText),
|
|
42
|
+
"data-name": `reward-${index}`
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement(Component, item));
|
|
44
|
+
});
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
46
|
+
className: _style.default.list
|
|
47
|
+
}, itemsView);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
RewardsForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
51
|
+
items: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_extends({}, _inputTextWithTitledCheckbox.default.propTypes)), _propTypes.default.shape(_extends({}, _dragAndDropWrapper.default.propTypes))]))
|
|
52
|
+
} : {};
|
|
53
|
+
var _default = RewardsForm;
|
|
54
|
+
exports.default = _default;
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/organism/rewards-form/index.js"],"names":["ITEM","InputTextWithTitledCheckbox","DragAndDropWrapper","RewardsForm","items","itemsView","map","index","type","item","Component","style","inputText","list","propTypes","PropTypes","arrayOf","oneOfType","shape"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,IAAI,GAAG;AACX,gBAAcC,oCADH;AAEX,mBAAiBC;AAFN,CAAb;;AAKA,MAAMC,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,GAAGV,IAAI,CAACQ,IAAD,CAAtB;AACA,wBACE;AACE,MAAA,GAAG,EAAED,KADP;AAEE,MAAA,SAAS,EAAE,yBAAWI,eAAMF,IAAjB,EAAuBD,IAAI,KAAK,YAAT,IAAyBG,eAAMC,SAAtD,CAFb;AAGE,mBAAY,UAASL,KAAM;AAH7B,oBAKE,6BAAC,SAAD,EAAeE,IAAf,CALF,CADF;AASD,GAXiB,CAAlB;AAYA,sBAAO;AAAI,IAAA,SAAS,EAAEE,eAAME;AAArB,KAA4BR,SAA5B,CAAP;AACD,CAdD;;AAgBAF,WAAW,CAACW,SAAZ,2CAAwB;AACtBV,EAAAA,KAAK,EAAEW,mBAAUC,OAAV,CACLD,mBAAUE,SAAV,CAAoB,CAClBF,mBAAUG,KAAV,cAAoBjB,qCAA4Ba,SAAhD,EADkB,EAElBC,mBAAUG,KAAV,cAAoBhB,4BAAmBY,SAAvC,EAFkB,CAApB,CADK;AADe,CAAxB;eASeX,W","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,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _checked = _interopRequireDefault(require("../../../../molecule/input-text-with-titled-checkbox/test/fixtures/checked"));
|
|
7
|
+
|
|
8
|
+
var _default2 = _interopRequireDefault(require("../../../../molecule/drag-and-drop-wrapper/test/fixtures/default"));
|
|
9
|
+
|
|
10
|
+
var _twoDragAndDrops = _interopRequireDefault(require("../../../../molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
props: {
|
|
18
|
+
items: [_extends(_extends({}, _checked.default.props), {}, {
|
|
19
|
+
type: 'input-text'
|
|
20
|
+
}), _extends(_extends({}, _default2.default.props), {}, {
|
|
21
|
+
type: 'drag-and-drop'
|
|
22
|
+
}), _extends(_extends({}, _twoDragAndDrops.default.props), {}, {
|
|
23
|
+
type: 'drag-and-drop'
|
|
24
|
+
})]
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.default = _default;
|
|
28
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/rewards-form/test/fixtures/default.js"],"names":["props","items","checkedInputText","type","singleDragAndDrop","doubleDragAndDrop"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBACDC,iBAAiBF,KADhB;AACuBG,MAAAA,IAAI,EAAE;AAD7B,8BAEDC,kBAAkBJ,KAFjB;AAEwBG,MAAAA,IAAI,EAAE;AAF9B,8BAGDE,yBAAkBL,KAHjB;AAGwBG,MAAAA,IAAI,EAAE;AAH9B;AADF;AADM,C","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":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE;AADF;AADM,C","sourcesContent":["export default {\n props: {\n items: []\n }\n};\n"],"file":"no-rewards.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _default2 = _interopRequireDefault(require("../../../../molecule/drag-and-drop-wrapper/test/fixtures/default"));
|
|
7
|
+
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
|
|
10
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
|
+
|
|
12
|
+
var _default = {
|
|
13
|
+
props: {
|
|
14
|
+
items: [_extends(_extends({}, _default2.default.props), {}, {
|
|
15
|
+
type: 'drag-and-drop'
|
|
16
|
+
})]
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.default = _default;
|
|
20
|
+
//# sourceMappingURL=one-reward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/rewards-form/test/fixtures/one-reward.js"],"names":["props","items","singleDragAndDrop","type"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBAAKC,kBAAkBF,KAAvB;AAA8BG,MAAAA,IAAI,EAAE;AAApC;AADF;AADM,C","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,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _checked = _interopRequireDefault(require("../../../../molecule/input-text-with-titled-checkbox/test/fixtures/checked"));
|
|
7
|
+
|
|
8
|
+
var _twoDragAndDrops = _interopRequireDefault(require("../../../../molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
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); }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
props: {
|
|
16
|
+
items: [_extends(_extends({}, _checked.default.props), {}, {
|
|
17
|
+
type: 'input-text'
|
|
18
|
+
}), _extends(_extends({}, _twoDragAndDrops.default.props), {}, {
|
|
19
|
+
type: 'drag-and-drop'
|
|
20
|
+
})]
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.default = _default;
|
|
24
|
+
//# sourceMappingURL=two-rewards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/rewards-form/test/fixtures/two-rewards.js"],"names":["props","items","checkedInputText","type","doubleDragAndDrop"],"mappings":";;;;;AAAA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,uBACDC,iBAAiBF,KADhB;AACuBG,MAAAA,IAAI,EAAE;AAD7B,8BAEDC,yBAAkBJ,KAFjB;AAEwBG,MAAAA,IAAI,EAAE;AAF9B;AADF;AADM,C","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"}
|
|
@@ -27,6 +27,8 @@ var _courseSelection = _interopRequireDefault(require("../course-selection"));
|
|
|
27
27
|
|
|
28
28
|
var _courseSections = _interopRequireDefault(require("../../molecule/course-sections"));
|
|
29
29
|
|
|
30
|
+
var _rewardsForm = _interopRequireDefault(require("../rewards-form"));
|
|
31
|
+
|
|
30
32
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
31
33
|
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -75,6 +77,9 @@ const buildForm = content => {
|
|
|
75
77
|
|
|
76
78
|
case 'organize-courses':
|
|
77
79
|
return /*#__PURE__*/_react.default.createElement(_courseSections.default, content);
|
|
80
|
+
|
|
81
|
+
case 'rewards':
|
|
82
|
+
return /*#__PURE__*/_react.default.createElement(_rewardsForm.default, content);
|
|
78
83
|
}
|
|
79
84
|
};
|
|
80
85
|
|
|
@@ -184,6 +189,8 @@ WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
184
189
|
type: _propTypes.default.oneOf(['courses'])
|
|
185
190
|
})), _propTypes.default.shape(_extends(_extends({}, _courseSections.default.propTypes), {}, {
|
|
186
191
|
type: _propTypes.default.oneOf(['organize-courses'])
|
|
192
|
+
})), _propTypes.default.shape(_extends(_extends({}, _rewardsForm.default.propTypes), {}, {
|
|
193
|
+
type: _propTypes.default.oneOf(['rewards'])
|
|
187
194
|
}))]),
|
|
188
195
|
previousStep: _propTypes.default.shape({
|
|
189
196
|
label: _propTypes.default.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;AAC3C,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA;AAAR,MAAmBH,YAAzB;AAEA,QAAMI,eAAe,GAAG;AACtBC,IAAAA,IAAI,EAAE,OADgB;AAEtB,iBAAa,cAFS;AAGtB,kBAAc,cAHQ;AAItBC,IAAAA,IAAI,EAAE,OAJgB;AAKtBH,IAAAA;AALsB,GAAxB;AAQA,sBACE,uDACE;AAAK,IAAA,SAAS,EAAEI,eAAMC;AAAtB,kBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;AAAK,IAAA,SAAS,EAAEG,eAAME,WAAtB;AAAmC,iBAAW;AAA9C,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uBACKO,mBAAUV,SADf;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAFR,KAD2B,EAK3BV,mBAAUE,KAAV,uBACKS,4BAAiBZ,SADtB;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,WAAD,CAAhB;AAFR,KAL2B,EAS3BV,mBAAUE,KAAV,uBACKU,+BAA8Bb,SADnC;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,aAAD,CAAhB;AAFR,KAT2B,EAa3BV,mBAAUE,KAAV,uBACKW,yBAAgBd,SADrB;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,SAAD,CAAhB;AAFR,KAb2B,EAiB3BV,mBAAUE,KAAV,uBACKY,wBAAef,SADpB;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,kBAAD,CAAhB;AAFR,KAjB2B,CAApB,CAVgB;AAgCzBnC,EAAAA,YAAY,EAAEyB,mBAAUE,KAAV,CAAgB;AAC5B9B,IAAAA,KAAK,EAAE4B,mBAAUG,MADW;AAE5BjD,IAAAA,OAAO,EAAE8C,mBAAUI;AAFS,GAAhB,CAhCW;AAoCzB5B,EAAAA,QAAQ,EAAEwB,mBAAUE,KAAV,CAAgB;AACxBvC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;AAExBtC,IAAAA,KAAK,EAAE4B,mBAAUG,MAFO;AAGxBjD,IAAAA,OAAO,EAAE8C,mBAAUI;AAHK,GAAhB;AApCe,CAA3B;eA2CetB,c","sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n return (\n <div className={style.container} data-name=\"content-summary\">\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/organism/wizard-contents/index.js"],"names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","nextButton","actionZone","button","WizardContents","props","isLoading","summary","headerView","formView","rightActionView","footerActionView","container","leftSection","form","rightSection","stickySection","summaryZone","footer","summaryFooter","actionFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;AAC3C,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA;AAAR,MAAmBH,YAAzB;AAEA,QAAMI,eAAe,GAAG;AACtBC,IAAAA,IAAI,EAAE,OADgB;AAEtB,iBAAa,cAFS;AAGtB,kBAAc,cAHQ;AAItBC,IAAAA,IAAI,EAAE,OAJgB;AAKtBH,IAAAA;AALsB,GAAxB;AAQA,sBACE,uDACE;AAAK,IAAA,SAAS,EAAEI,eAAMC;AAAtB,kBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;AAAK,IAAA,SAAS,EAAEG,eAAME,WAAtB;AAAmC,iBAAW;AAA9C,KACGP,KADH,CAFF,CADF,eAOE,6BAAC,oBAAD;AAAa,IAAA,KAAK,EAAED;AAApB,IAPF,CADF;AAWD,CAtBD;;AAwBA,MAAMS,SAAS,GAAGC,OAAO,IAAI;AAC3B,QAAM;AAACC,IAAAA;AAAD,MAASD,OAAf;;AACA,UAAQC,IAAR;AACE,SAAK,MAAL;AACE,0BAAO,6BAAC,kBAAD,EAAeD,OAAf,CAAP;;AACF,SAAK,WAAL;AACE,0BAAO,6BAAC,2BAAD,EAAsBA,OAAtB,C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,uBACKU,+BAA8Bb,SADnC;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,aAAD,CAAhB;AAFR,KAT2B,EAa3BV,mBAAUE,KAAV,uBACKW,yBAAgBd,SADrB;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,SAAD,CAAhB;AAFR,KAb2B,EAiB3BV,mBAAUE,KAAV,uBACKY,wBAAef,SADpB;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,kBAAD,CAAhB;AAFR,KAjB2B,EAqB3BV,mBAAUE,KAAV,uBACKa,qBAAYhB,SADjB;AAEEpC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,SAAD,CAAhB;AAFR,KArB2B,CAApB,CAVgB;AAoCzBnC,EAAAA,YAAY,EAAEyB,mBAAUE,KAAV,CAAgB;AAC5B9B,IAAAA,KAAK,EAAE4B,mBAAUG,MADW;AAE5BjD,IAAAA,OAAO,EAAE8C,mBAAUI;AAFS,GAAhB,CApCW;AAwCzB5B,EAAAA,QAAQ,EAAEwB,mBAAUE,KAAV,CAAgB;AACxBvC,IAAAA,IAAI,EAAEqC,mBAAUU,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;AAExBtC,IAAAA,KAAK,EAAE4B,mBAAUG,MAFO;AAGxBjD,IAAAA,OAAO,EAAE8C,mBAAUI;AAHK,GAAhB;AAxCe,CAA3B;eA+CetB,c","sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport RewardsForm from '../rewards-form';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n\n return (\n <div className={style.container} data-name=\"content-summary\">\n <div className={style.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n <div className={style.footer} data-name=\"summary-footer-section\">\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n <div className={style.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _threeSections = _interopRequireDefault(require("../../../../molecule/wizard-summary/test/fixtures/three-sections"));
|
|
7
|
+
|
|
8
|
+
var _default2 = _interopRequireDefault(require("../../../rewards-form/test/fixtures/default"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
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); }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
props: {
|
|
16
|
+
isLoading: false,
|
|
17
|
+
wizardHeader: {
|
|
18
|
+
title: 'Create a new certification',
|
|
19
|
+
onClick: () => console.log('Close')
|
|
20
|
+
},
|
|
21
|
+
steps: [{
|
|
22
|
+
title: 'General Informations',
|
|
23
|
+
done: true
|
|
24
|
+
}, {
|
|
25
|
+
title: 'Translations',
|
|
26
|
+
done: true
|
|
27
|
+
}, {
|
|
28
|
+
title: 'Assign populations',
|
|
29
|
+
done: true
|
|
30
|
+
}, {
|
|
31
|
+
title: 'Courses settings',
|
|
32
|
+
done: true
|
|
33
|
+
}, {
|
|
34
|
+
title: 'Rewards',
|
|
35
|
+
done: false,
|
|
36
|
+
current: true
|
|
37
|
+
}],
|
|
38
|
+
summary: _threeSections.default.props,
|
|
39
|
+
content: _extends(_extends({}, _default2.default.props), {}, {
|
|
40
|
+
type: 'rewards'
|
|
41
|
+
}),
|
|
42
|
+
previousStep: {
|
|
43
|
+
label: 'Previous Step',
|
|
44
|
+
onClick: () => console.log('Previous Step')
|
|
45
|
+
},
|
|
46
|
+
nextStep: {
|
|
47
|
+
type: 'publish',
|
|
48
|
+
label: 'Publish',
|
|
49
|
+
onClick: () => console.log('Next Step')
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.default = _default;
|
|
54
|
+
//# sourceMappingURL=certification-rewards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/certification-rewards.js"],"names":["props","isLoading","wizardHeader","title","onClick","console","log","steps","done","current","summary","wizardSummary","content","rewardsForm","type","previousStep","label","nextStep"],"mappings":";;;;;AACA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAE,KADN;AAELC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,4BADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KAFT;AAMLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACEL,MAAAA,KAAK,EAAE,kBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAbK,EAiBL;AACEL,MAAAA,KAAK,EAAE,SADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAjBK,CANF;AA6BLC,IAAAA,OAAO,EAAEC,uBAAcX,KA7BlB;AA8BLY,IAAAA,OAAO,wBACFC,kBAAYb,KADV;AAELc,MAAAA,IAAI,EAAE;AAFD,MA9BF;AAkCLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZZ,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KAlCT;AAsCLW,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,SADE;AAERE,MAAAA,KAAK,EAAE,SAFC;AAGRZ,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAtCL;AADM,C","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport rewardsForm from '../../../rewards-form/test/fixtures/default';\n\nexport default {\n props: {\n isLoading: false,\n wizardHeader: {\n title: 'Create a new certification',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Courses settings',\n done: true\n },\n {\n title: 'Rewards',\n done: false,\n current: true\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...rewardsForm.props,\n type: 'rewards'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'publish',\n label: 'Publish',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"certification-rewards.js"}
|
|
@@ -258,9 +258,9 @@ class PopinCorrection extends _react.Component {
|
|
|
258
258
|
text: klf.value
|
|
259
259
|
}) : null, tips.value ? /*#__PURE__*/_react.default.createElement(SimpleText, {
|
|
260
260
|
text: tips.value
|
|
261
|
-
}) : null)), quitCta, /*#__PURE__*/_react.default.createElement(AssistanceLink, assistanceLink)), /*#__PURE__*/_react.default.createElement(_loader.default, {
|
|
262
|
-
className:
|
|
263
|
-
})));
|
|
261
|
+
}) : null)), quitCta, /*#__PURE__*/_react.default.createElement(AssistanceLink, assistanceLink)), isLoading ? /*#__PURE__*/_react.default.createElement(_loader.default, {
|
|
262
|
+
className: _style2.default.activeLoader
|
|
263
|
+
}) : null));
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
}
|