@coorpacademy/components 10.7.0 → 10.9.0
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/autocomplete/test/fixtures.js +0 -0
- package/es/atom/avatar/test/fixtures.js +0 -0
- package/es/atom/button/test/fixtures.js +0 -0
- package/es/atom/button-link/index.js +10 -3
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/card-image-preview/test/fixtures.js +15 -0
- package/es/atom/card-image-preview/test/fixtures.js.map +1 -0
- package/es/atom/catalog-section/test/fixtures.js +0 -0
- package/es/atom/centered-text/test/fixtures.js +0 -0
- package/es/atom/checkbox/test/fixtures.js +0 -0
- package/es/atom/clue/test/fixtures.js +0 -0
- package/es/atom/cta/test/fixtures.js +0 -0
- package/es/atom/difficulty-level/test/fixtures.js +0 -0
- package/es/atom/drag-and-drop/test/fixtures.js +0 -0
- package/es/atom/image-upload/test/fixtures.js +0 -0
- package/es/atom/input-checkbox/test/fixtures.js +0 -0
- package/es/atom/input-color/test/fixtures.js +0 -0
- package/es/atom/input-doublestep/test/fixtures.js +0 -0
- package/es/atom/input-html/test/fixtures.js +0 -0
- package/es/atom/input-readonly/test/fixtures.js +0 -0
- package/es/atom/input-switch/test/fixtures.js +0 -0
- package/es/atom/input-text/test/fixtures.js +0 -0
- package/es/atom/input-textarea/test/fixtures.js +0 -0
- package/es/atom/label/test/fixtures.js +0 -0
- package/es/atom/life/test/fixtures.js +0 -0
- package/es/atom/link/test/fixtures.js +0 -0
- package/es/atom/loader/test/fixtures.js +0 -0
- package/es/atom/notification/test/fixtures.js +0 -0
- package/es/atom/picture/test/fixtures.js +0 -0
- package/es/atom/picture-background/test/fixtures.js +0 -0
- package/es/atom/promo-code/test/fixtures.js +0 -0
- package/es/atom/provider/test/fixtures.js +0 -0
- package/es/atom/radio-group/test/fixtures.js +0 -0
- package/es/atom/range/test/fixtures.js +0 -0
- package/es/atom/resource-miniature/test/fixtures.js +0 -0
- package/es/atom/select/test/fixtures.js +4 -0
- package/es/atom/select/test/fixtures.js.map +1 -1
- package/es/atom/slide/test/fixtures.js +0 -0
- package/es/atom/social-link/test/fixtures.js +0 -0
- package/es/atom/spinner/test/fixtures.js +0 -0
- package/es/atom/tab/test/fixtures.js +0 -0
- package/es/atom/tab-content/test/fixtures.js +0 -0
- package/es/atom/tag/index.js +1 -1
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/title/test/fixtures.js +0 -0
- package/es/atom/video-upload/test/fixtures.js +0 -0
- package/es/hoc/animation/test/fixtures.js +0 -0
- package/es/hoc/animation-scheduler/test/fixtures.js +0 -0
- package/es/hoc/swapper/test/fixtures.js +0 -0
- package/es/hoc/transition/test/fixtures.js +0 -0
- package/es/molecule/add-to-my-list/test/fixtures.js +0 -0
- package/es/molecule/answer/test/fixtures.js +0 -0
- package/es/molecule/audio/test/fixtures.js +0 -0
- package/es/molecule/battle-request/test/fixtures.js +0 -0
- package/es/molecule/brand-card/test/fixtures.js +0 -0
- package/es/molecule/brand-card-create/test/fixtures.js +0 -0
- package/es/molecule/brand-create-form/test/fixtures.js +0 -0
- package/es/molecule/brand-download-box/test/fixtures.js +0 -0
- package/es/molecule/brand-form-group/test/fixtures.js +0 -0
- package/es/molecule/brand-tabs/test/fixtures.js +0 -0
- package/es/molecule/brand-upload-box/test/fixtures.js +0 -0
- package/es/molecule/breadcrumbs/test/fixtures.js +0 -0
- package/es/molecule/card/test/fixtures.js +0 -0
- package/es/molecule/card-content/test/fixtures.js +0 -0
- package/es/molecule/card-with-button/test/fixtures.js +0 -0
- package/es/molecule/cockpit-popin/test/fixtures.js +0 -0
- package/es/molecule/cookie-banner/test/fixtures.js +0 -0
- package/es/molecule/course-section/test/fixtures.js +15 -0
- package/es/molecule/course-section/test/fixtures.js.map +1 -0
- package/es/molecule/course-sections/test/fixtures.js +15 -0
- package/es/molecule/course-sections/test/fixtures.js.map +1 -0
- package/es/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
- package/es/molecule/dashboard/cards-list/test/fixtures.js +0 -0
- package/es/molecule/dashboard/news-list/test/fixtures.js +0 -0
- package/es/molecule/dashboard/review-banner/index.js +79 -0
- package/es/molecule/dashboard/review-banner/index.js.map +1 -0
- package/es/molecule/dashboard/review-banner/style.css +186 -0
- package/es/molecule/dashboard/review-banner/test/fixtures/default.js +11 -0
- package/es/molecule/dashboard/review-banner/test/fixtures/default.js.map +1 -0
- package/es/molecule/dashboard/review-banner/test/fixtures.js +13 -0
- package/es/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
- package/es/molecule/dashboard/start-battle/test/fixtures.js +0 -0
- package/es/molecule/discipline-cta/test/fixtures.js +0 -0
- package/es/molecule/discipline-header/test/fixtures.js +0 -0
- package/es/molecule/discipline-partners/test/fixtures.js +0 -0
- package/es/molecule/discipline-scope/test/fixtures.js +0 -0
- package/es/molecule/drag-and-drop/test/fixtures.js +0 -0
- package/es/molecule/draggable/test/fixtures.js +13 -0
- package/es/molecule/draggable/test/fixtures.js.map +1 -0
- package/es/molecule/draggable-list/test/fixtures.js +15 -0
- package/es/molecule/draggable-list/test/fixtures.js.map +1 -0
- package/es/molecule/external-content-button/test/fixtures.js +0 -0
- package/es/molecule/external-content-viewer/test/fixtures.js +0 -0
- package/es/molecule/feedback/test/fixtures.js +0 -0
- package/es/molecule/filters/test/fixtures.js +0 -0
- package/es/molecule/forum/forum-comment/test/fixtures.js +0 -0
- package/es/molecule/forum/forum-post/test/fixtures.js +0 -0
- package/es/molecule/forum/forum-thread/test/fixtures.js +0 -0
- package/es/molecule/hero/test/fixtures.js +0 -0
- package/es/molecule/login-alert/test/fixtures.js +0 -0
- package/es/molecule/menu-list/test/fixtures.js +0 -0
- package/es/molecule/message-popin/test/fixtures.js +0 -0
- package/es/molecule/modal/test/fixtures.js +0 -0
- package/es/molecule/module-bubble/test/fixtures.js +0 -0
- package/es/molecule/module-card/test/fixtures.js +0 -0
- package/es/molecule/news/test/fixtures.js +0 -0
- package/es/molecule/notification-banner/test/fixtures.js +0 -0
- package/es/molecule/pagination/test/fixtures.js +0 -0
- package/es/molecule/payment-form/test/fixtures.js +0 -0
- package/es/molecule/pdf/test/fixtures.js +0 -0
- package/es/molecule/product-card/test/fixtures.js +0 -0
- package/es/molecule/progress-bar/test/fixtures.js +0 -0
- package/es/molecule/questions/drop-down/test/fixtures.js +0 -0
- package/es/molecule/questions/free-text/test/fixtures.js +4 -2
- package/es/molecule/questions/free-text/test/fixtures.js.map +1 -1
- package/es/molecule/questions/qcm/test/fixtures.js +0 -0
- package/es/molecule/questions/qcm-drag/test/fixtures.js +0 -0
- package/es/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
- package/es/molecule/questions/question-range/test/fixtures.js +0 -0
- package/es/molecule/questions/template/test/fixtures.js +0 -0
- package/es/molecule/resource-player/test/fixtures.js +0 -0
- package/es/molecule/review-correction-popin/index.js +103 -0
- package/es/molecule/review-correction-popin/index.js.map +1 -0
- package/es/molecule/review-correction-popin/style.css +315 -0
- package/es/molecule/review-correction-popin/test/fixtures/right.js +17 -0
- package/es/molecule/review-correction-popin/test/fixtures/right.js.map +1 -0
- package/es/molecule/review-correction-popin/test/fixtures/wrong.js +19 -0
- package/es/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -0
- package/es/molecule/review-correction-popin/test/fixtures.js +15 -0
- package/es/molecule/review-correction-popin/test/fixtures.js.map +1 -0
- package/es/molecule/scope-content/test/fixtures.js +0 -0
- package/es/molecule/scope-tabs/test/fixtures.js +0 -0
- package/es/molecule/search/test/fixtures.js +0 -0
- package/es/molecule/search-form/test/fixtures.js +0 -0
- package/es/molecule/select-multiple/test/fixtures.js +0 -0
- package/es/molecule/setup-cohort-item/test/fixtures.js +0 -0
- package/es/molecule/setup-section/test/fixtures.js +0 -0
- package/es/molecule/setup-sections/test/fixtures.js +0 -0
- package/es/molecule/setup-slide/test/fixtures.js +0 -0
- package/es/molecule/setup-slider/test/fixtures.js +0 -0
- package/es/molecule/share/test/fixtures.js +0 -0
- package/es/molecule/ssmenu-list/test/fixtures.js +0 -0
- package/es/molecule/subscription-freemium/test/fixtures.js +0 -0
- package/es/molecule/subscription-premium/test/fixtures.js +0 -0
- package/es/molecule/table/test/fixtures.js +0 -0
- package/es/molecule/teams-popin/test/fixtures.js +0 -0
- package/es/molecule/theme-image/test/fixtures.js +0 -0
- package/es/molecule/titled-checkbox/test/fixtures.js +0 -0
- package/es/molecule/unsubscribe/test/fixtures.js +0 -0
- package/es/molecule/video-iframe/test/fixtures.js +0 -0
- package/es/molecule/video-player/test/fixtures.js +0 -0
- package/es/molecule/wizard-summary/test/fixtures.js +2 -0
- package/es/molecule/wizard-summary/test/fixtures.js.map +1 -1
- package/es/organism/accordion/container/test/fixtures.js +0 -0
- package/es/organism/accordion/part/test/fixtures.js +0 -0
- package/es/organism/accordion/toggler/test/fixtures.js +0 -0
- package/es/organism/brand-dashboard/test/fixtures.js +0 -0
- package/es/organism/brand-form/test/fixtures.js +0 -0
- package/es/organism/brand-table/test/fixtures.js +0 -0
- package/es/organism/brand-upload/test/fixtures.js +0 -0
- package/es/organism/cards-grid/test/fixtures.js +0 -0
- package/es/organism/cart/test/fixtures.js +0 -0
- package/es/organism/discussion/test/fixtures.js +0 -0
- package/es/organism/get-the-app/test/fixtures.js +0 -0
- package/es/organism/grid-list/test/fixtures.js +0 -0
- package/es/organism/header/test/fixtures.js +0 -0
- package/es/organism/hero/test/fixtures.js +0 -0
- package/es/organism/list-items/index.js +2 -2
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/mooc/image-slider/test/fixtures.js +0 -0
- package/es/organism/mooc-footer/test/fixtures.js +0 -0
- package/es/organism/mooc-header/test/fixtures.js +0 -0
- package/es/organism/playlist-translation/test/fixtures.js +15 -0
- package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/es/organism/popin/test/fixtures.js +0 -0
- package/es/organism/resource-browser/test/fixtures.js +0 -0
- package/es/organism/settings/test/fixtures.js +0 -0
- package/es/organism/setup-header/test/fixtures.js +0 -0
- package/es/organism/sidebar/test/fixtures.js +0 -0
- package/es/organism/slider/test/fixtures.js +0 -0
- package/es/organism/user-preferences/test/fixtures.js +0 -0
- package/es/organism/wizard-contents/index.js +2 -2
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures.js +2 -0
- package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
- package/es/template/activity/test/fixtures.js +0 -0
- package/es/template/app-player/loading/test/fixtures.js +0 -0
- package/es/template/app-player/player/slides/footer/test/fixtures.js +0 -0
- package/es/template/app-player/player/slides/header/test/fixtures.js +0 -0
- package/es/template/app-player/player/slides/test/fixtures.js +0 -0
- package/es/template/app-player/player/test/fixtures.js +0 -0
- package/es/template/app-player/popin-correction/test/fixtures.js +0 -0
- package/es/template/app-player/popin-end/test/fixtures.js +0 -0
- package/es/template/app-player/popin-header/test/fixtures.js +0 -0
- package/es/template/back-office/brand-create/test/fixtures.js +0 -0
- package/es/template/back-office/brand-list/test/fixtures.js +0 -0
- package/es/template/back-office/brand-update/test/fixtures.js +2 -0
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/es/template/back-office/dashboard-preview/test/fixtures.js +0 -0
- package/es/template/battle-requests/test/fixtures.js +0 -0
- package/es/template/cockpit/jw-uploader/test/fixtures.js +0 -0
- package/es/template/common/authors/test/fixtures.js +0 -0
- package/es/template/common/coorp-header/test/fixtures.js +0 -0
- package/es/template/common/dashboard/test/fixtures.js +0 -0
- package/es/template/common/discipline/test/fixtures.js +0 -0
- package/es/template/common/search-page/test/fixtures.js +0 -0
- package/es/template/external-course/test/fixtures.js +0 -0
- package/es/template/teams-dashboard/test/fixtures.js +0 -0
- package/es/util/button-icons.js +2 -1
- package/es/util/button-icons.js.map +1 -1
- package/lib/atom/autocomplete/test/fixtures.js +0 -0
- package/lib/atom/avatar/test/fixtures.js +0 -0
- package/lib/atom/button/test/fixtures.js +0 -0
- package/lib/atom/button-link/index.js +11 -3
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/card-image-preview/test/fixtures.js +25 -0
- package/lib/atom/card-image-preview/test/fixtures.js.map +1 -0
- package/lib/atom/catalog-section/test/fixtures.js +0 -0
- package/lib/atom/centered-text/test/fixtures.js +0 -0
- package/lib/atom/checkbox/test/fixtures.js +0 -0
- package/lib/atom/clue/test/fixtures.js +0 -0
- package/lib/atom/cta/test/fixtures.js +0 -0
- package/lib/atom/difficulty-level/test/fixtures.js +0 -0
- package/lib/atom/drag-and-drop/test/fixtures.js +0 -0
- package/lib/atom/image-upload/test/fixtures.js +0 -0
- package/lib/atom/input-checkbox/test/fixtures.js +0 -0
- package/lib/atom/input-color/test/fixtures.js +0 -0
- package/lib/atom/input-doublestep/test/fixtures.js +0 -0
- package/lib/atom/input-html/test/fixtures.js +0 -0
- package/lib/atom/input-readonly/test/fixtures.js +0 -0
- package/lib/atom/input-switch/test/fixtures.js +0 -0
- package/lib/atom/input-text/test/fixtures.js +0 -0
- package/lib/atom/input-textarea/test/fixtures.js +0 -0
- package/lib/atom/label/test/fixtures.js +0 -0
- package/lib/atom/life/test/fixtures.js +0 -0
- package/lib/atom/link/test/fixtures.js +0 -0
- package/lib/atom/loader/test/fixtures.js +0 -0
- package/lib/atom/notification/test/fixtures.js +0 -0
- package/lib/atom/picture/test/fixtures.js +0 -0
- package/lib/atom/picture-background/test/fixtures.js +0 -0
- package/lib/atom/promo-code/test/fixtures.js +0 -0
- package/lib/atom/provider/test/fixtures.js +0 -0
- package/lib/atom/radio-group/test/fixtures.js +0 -0
- package/lib/atom/range/test/fixtures.js +0 -0
- package/lib/atom/resource-miniature/test/fixtures.js +0 -0
- package/lib/atom/select/test/fixtures.js +6 -0
- package/lib/atom/select/test/fixtures.js.map +1 -1
- package/lib/atom/slide/test/fixtures.js +0 -0
- package/lib/atom/social-link/test/fixtures.js +0 -0
- package/lib/atom/spinner/test/fixtures.js +0 -0
- package/lib/atom/tab/test/fixtures.js +0 -0
- package/lib/atom/tab-content/test/fixtures.js +0 -0
- package/lib/atom/tag/index.js +1 -1
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/title/test/fixtures.js +0 -0
- package/lib/atom/video-upload/test/fixtures.js +0 -0
- package/lib/hoc/animation/test/fixtures.js +0 -0
- package/lib/hoc/animation-scheduler/test/fixtures.js +0 -0
- package/lib/hoc/swapper/test/fixtures.js +0 -0
- package/lib/hoc/transition/test/fixtures.js +0 -0
- package/lib/molecule/add-to-my-list/test/fixtures.js +0 -0
- package/lib/molecule/answer/test/fixtures.js +0 -0
- package/lib/molecule/audio/test/fixtures.js +0 -0
- package/lib/molecule/battle-request/test/fixtures.js +0 -0
- package/lib/molecule/brand-card/test/fixtures.js +0 -0
- package/lib/molecule/brand-card-create/test/fixtures.js +0 -0
- package/lib/molecule/brand-create-form/test/fixtures.js +0 -0
- package/lib/molecule/brand-download-box/test/fixtures.js +0 -0
- package/lib/molecule/brand-form-group/test/fixtures.js +0 -0
- package/lib/molecule/brand-tabs/test/fixtures.js +0 -0
- package/lib/molecule/brand-upload-box/test/fixtures.js +0 -0
- package/lib/molecule/breadcrumbs/test/fixtures.js +0 -0
- package/lib/molecule/card/test/fixtures.js +0 -0
- package/lib/molecule/card-content/test/fixtures.js +0 -0
- package/lib/molecule/card-with-button/test/fixtures.js +0 -0
- package/lib/molecule/cockpit-popin/test/fixtures.js +0 -0
- package/lib/molecule/cookie-banner/test/fixtures.js +0 -0
- package/lib/molecule/course-section/test/fixtures.js +25 -0
- package/lib/molecule/course-section/test/fixtures.js.map +1 -0
- package/lib/molecule/course-sections/test/fixtures.js +25 -0
- package/lib/molecule/course-sections/test/fixtures.js.map +1 -0
- package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +0 -0
- package/lib/molecule/dashboard/cards-list/test/fixtures.js +0 -0
- package/lib/molecule/dashboard/news-list/test/fixtures.js +0 -0
- package/lib/molecule/dashboard/review-banner/index.js +94 -0
- package/lib/molecule/dashboard/review-banner/index.js.map +1 -0
- package/lib/molecule/dashboard/review-banner/style.css +186 -0
- package/lib/molecule/dashboard/review-banner/test/fixtures/default.js +16 -0
- package/lib/molecule/dashboard/review-banner/test/fixtures/default.js.map +1 -0
- package/lib/molecule/dashboard/review-banner/test/fixtures.js +22 -0
- package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
- package/lib/molecule/dashboard/start-battle/test/fixtures.js +0 -0
- package/lib/molecule/discipline-cta/test/fixtures.js +0 -0
- package/lib/molecule/discipline-header/test/fixtures.js +0 -0
- package/lib/molecule/discipline-partners/test/fixtures.js +0 -0
- package/lib/molecule/discipline-scope/test/fixtures.js +0 -0
- package/lib/molecule/drag-and-drop/test/fixtures.js +0 -0
- package/lib/molecule/draggable/test/fixtures.js +22 -0
- package/lib/molecule/draggable/test/fixtures.js.map +1 -0
- package/lib/molecule/draggable-list/test/fixtures.js +25 -0
- package/lib/molecule/draggable-list/test/fixtures.js.map +1 -0
- package/lib/molecule/external-content-button/test/fixtures.js +0 -0
- package/lib/molecule/external-content-viewer/test/fixtures.js +0 -0
- package/lib/molecule/feedback/test/fixtures.js +0 -0
- package/lib/molecule/filters/test/fixtures.js +0 -0
- package/lib/molecule/forum/forum-comment/test/fixtures.js +0 -0
- package/lib/molecule/forum/forum-post/test/fixtures.js +0 -0
- package/lib/molecule/forum/forum-thread/test/fixtures.js +0 -0
- package/lib/molecule/hero/test/fixtures.js +0 -0
- package/lib/molecule/login-alert/test/fixtures.js +0 -0
- package/lib/molecule/menu-list/test/fixtures.js +0 -0
- package/lib/molecule/message-popin/test/fixtures.js +0 -0
- package/lib/molecule/modal/test/fixtures.js +0 -0
- package/lib/molecule/module-bubble/test/fixtures.js +0 -0
- package/lib/molecule/module-card/test/fixtures.js +0 -0
- package/lib/molecule/news/test/fixtures.js +0 -0
- package/lib/molecule/notification-banner/test/fixtures.js +0 -0
- package/lib/molecule/pagination/test/fixtures.js +0 -0
- package/lib/molecule/payment-form/test/fixtures.js +0 -0
- package/lib/molecule/pdf/test/fixtures.js +0 -0
- package/lib/molecule/product-card/test/fixtures.js +0 -0
- package/lib/molecule/progress-bar/test/fixtures.js +0 -0
- package/lib/molecule/questions/drop-down/test/fixtures.js +0 -0
- package/lib/molecule/questions/free-text/test/fixtures.js +5 -2
- package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -1
- package/lib/molecule/questions/qcm/test/fixtures.js +0 -0
- package/lib/molecule/questions/qcm-drag/test/fixtures.js +0 -0
- package/lib/molecule/questions/qcm-graphic/test/fixtures.js +0 -0
- package/lib/molecule/questions/question-range/test/fixtures.js +0 -0
- package/lib/molecule/questions/template/test/fixtures.js +0 -0
- package/lib/molecule/resource-player/test/fixtures.js +0 -0
- package/lib/molecule/review-correction-popin/index.js +116 -0
- package/lib/molecule/review-correction-popin/index.js.map +1 -0
- package/lib/molecule/review-correction-popin/style.css +315 -0
- package/lib/molecule/review-correction-popin/test/fixtures/right.js +22 -0
- package/lib/molecule/review-correction-popin/test/fixtures/right.js.map +1 -0
- package/lib/molecule/review-correction-popin/test/fixtures/wrong.js +24 -0
- package/lib/molecule/review-correction-popin/test/fixtures/wrong.js.map +1 -0
- package/lib/molecule/review-correction-popin/test/fixtures.js +25 -0
- package/lib/molecule/review-correction-popin/test/fixtures.js.map +1 -0
- package/lib/molecule/scope-content/test/fixtures.js +0 -0
- package/lib/molecule/scope-tabs/test/fixtures.js +0 -0
- package/lib/molecule/search/test/fixtures.js +0 -0
- package/lib/molecule/search-form/test/fixtures.js +0 -0
- package/lib/molecule/select-multiple/test/fixtures.js +0 -0
- package/lib/molecule/setup-cohort-item/test/fixtures.js +0 -0
- package/lib/molecule/setup-section/test/fixtures.js +0 -0
- package/lib/molecule/setup-sections/test/fixtures.js +0 -0
- package/lib/molecule/setup-slide/test/fixtures.js +0 -0
- package/lib/molecule/setup-slider/test/fixtures.js +0 -0
- package/lib/molecule/share/test/fixtures.js +0 -0
- package/lib/molecule/ssmenu-list/test/fixtures.js +0 -0
- package/lib/molecule/subscription-freemium/test/fixtures.js +0 -0
- package/lib/molecule/subscription-premium/test/fixtures.js +0 -0
- package/lib/molecule/table/test/fixtures.js +0 -0
- package/lib/molecule/teams-popin/test/fixtures.js +0 -0
- package/lib/molecule/theme-image/test/fixtures.js +0 -0
- package/lib/molecule/titled-checkbox/test/fixtures.js +0 -0
- package/lib/molecule/unsubscribe/test/fixtures.js +0 -0
- package/lib/molecule/video-iframe/test/fixtures.js +0 -0
- package/lib/molecule/video-player/test/fixtures.js +0 -0
- package/lib/molecule/wizard-summary/test/fixtures.js +3 -0
- package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -1
- package/lib/organism/accordion/container/test/fixtures.js +0 -0
- package/lib/organism/accordion/part/test/fixtures.js +0 -0
- package/lib/organism/accordion/toggler/test/fixtures.js +0 -0
- package/lib/organism/brand-dashboard/test/fixtures.js +0 -0
- package/lib/organism/brand-form/test/fixtures.js +0 -0
- package/lib/organism/brand-table/test/fixtures.js +0 -0
- package/lib/organism/brand-upload/test/fixtures.js +0 -0
- package/lib/organism/cards-grid/test/fixtures.js +0 -0
- package/lib/organism/cart/test/fixtures.js +0 -0
- package/lib/organism/discussion/test/fixtures.js +0 -0
- package/lib/organism/get-the-app/test/fixtures.js +0 -0
- package/lib/organism/grid-list/test/fixtures.js +0 -0
- package/lib/organism/header/test/fixtures.js +0 -0
- package/lib/organism/hero/test/fixtures.js +0 -0
- package/lib/organism/list-items/index.js +2 -2
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/mooc/image-slider/test/fixtures.js +0 -0
- package/lib/organism/mooc-footer/test/fixtures.js +0 -0
- package/lib/organism/mooc-header/test/fixtures.js +0 -0
- package/lib/organism/playlist-translation/test/fixtures.js +25 -0
- package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/lib/organism/popin/test/fixtures.js +0 -0
- package/lib/organism/resource-browser/test/fixtures.js +0 -0
- package/lib/organism/settings/test/fixtures.js +0 -0
- package/lib/organism/setup-header/test/fixtures.js +0 -0
- package/lib/organism/sidebar/test/fixtures.js +0 -0
- package/lib/organism/slider/test/fixtures.js +0 -0
- package/lib/organism/user-preferences/test/fixtures.js +0 -0
- package/lib/organism/wizard-contents/index.js +2 -2
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures.js +3 -0
- package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
- package/lib/template/activity/test/fixtures.js +0 -0
- package/lib/template/app-player/loading/test/fixtures.js +0 -0
- package/lib/template/app-player/player/slides/footer/test/fixtures.js +0 -0
- package/lib/template/app-player/player/slides/header/test/fixtures.js +0 -0
- package/lib/template/app-player/player/slides/test/fixtures.js +0 -0
- package/lib/template/app-player/player/test/fixtures.js +0 -0
- package/lib/template/app-player/popin-correction/test/fixtures.js +0 -0
- package/lib/template/app-player/popin-end/test/fixtures.js +0 -0
- package/lib/template/app-player/popin-header/test/fixtures.js +0 -0
- package/lib/template/back-office/brand-create/test/fixtures.js +0 -0
- package/lib/template/back-office/brand-list/test/fixtures.js +0 -0
- package/lib/template/back-office/brand-update/test/fixtures.js +3 -0
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/template/back-office/dashboard-preview/test/fixtures.js +0 -0
- package/lib/template/battle-requests/test/fixtures.js +0 -0
- package/lib/template/cockpit/jw-uploader/test/fixtures.js +0 -0
- package/lib/template/common/authors/test/fixtures.js +0 -0
- package/lib/template/common/coorp-header/test/fixtures.js +0 -0
- package/lib/template/common/dashboard/test/fixtures.js +0 -0
- package/lib/template/common/discipline/test/fixtures.js +0 -0
- package/lib/template/common/search-page/test/fixtures.js +0 -0
- package/lib/template/external-course/test/fixtures.js +0 -0
- package/lib/template/teams-dashboard/test/fixtures.js +0 -0
- package/lib/util/button-icons.js +1 -0
- package/lib/util/button-icons.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
|
+
@value colors: "../../../variables/colors.css";
|
|
3
|
+
@value tablet from breakpoints;
|
|
4
|
+
@value mobile from breakpoints;
|
|
5
|
+
@value white from colors;
|
|
6
|
+
@value battle_bg from colors;
|
|
7
|
+
|
|
8
|
+
.root {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding: 24px 30px;
|
|
12
|
+
font-family: Gilroy;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.container {
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 1080px;
|
|
18
|
+
height: 214px;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
position: relative;
|
|
22
|
+
top: 0px;
|
|
23
|
+
left: 0px;
|
|
24
|
+
background: battle_bg;
|
|
25
|
+
background-image: url(https://static.coorpacademy.com/site/startBattleBackground.png);
|
|
26
|
+
background-size: cover;
|
|
27
|
+
border-radius: 16px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.container:hover .right, .container:hover .left {
|
|
31
|
+
animation-play-state: running;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.banner {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.left {
|
|
44
|
+
width: 210px;
|
|
45
|
+
height: 123px;
|
|
46
|
+
position: relative;
|
|
47
|
+
top: -57px;
|
|
48
|
+
left: 2%;
|
|
49
|
+
animation-play-state: paused;
|
|
50
|
+
animation-name: leftAnimation;
|
|
51
|
+
animation-duration: 2s;
|
|
52
|
+
animation-delay: 0;
|
|
53
|
+
animation-iteration-count: infinite;
|
|
54
|
+
animation-direction: forward;
|
|
55
|
+
animation-timing-function: ease-in-out;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.right {
|
|
59
|
+
position: relative;
|
|
60
|
+
bottom: -32px;
|
|
61
|
+
width: 210px;
|
|
62
|
+
height: 180px;
|
|
63
|
+
right: 2%;
|
|
64
|
+
animation-play-state: paused;
|
|
65
|
+
animation-name: rightAnimation;
|
|
66
|
+
animation-duration: 2s;
|
|
67
|
+
animation-delay: 0;
|
|
68
|
+
animation-iteration-count: infinite;
|
|
69
|
+
animation-direction: forward;
|
|
70
|
+
animation-timing-function: ease-in-out;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.image {
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.middle {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
align-items: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.title {
|
|
85
|
+
padding-top: 30px;
|
|
86
|
+
font-weight: 800;
|
|
87
|
+
font-size: 48px;
|
|
88
|
+
line-height: 59px;
|
|
89
|
+
color: white;
|
|
90
|
+
display: block;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.subtitle {
|
|
94
|
+
font-style: normal;
|
|
95
|
+
font-weight: normal;
|
|
96
|
+
font-size: 20px;
|
|
97
|
+
line-height: 24px;
|
|
98
|
+
opacity: 0.9;
|
|
99
|
+
display: block;
|
|
100
|
+
color: white;
|
|
101
|
+
text-align: center;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.cta {
|
|
105
|
+
margin-top: 22px;
|
|
106
|
+
max-width: 200px;
|
|
107
|
+
border-radius: 36px;
|
|
108
|
+
font-style: normal;
|
|
109
|
+
font-weight: bold;
|
|
110
|
+
font-size: 16px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media tablet {
|
|
114
|
+
.left {
|
|
115
|
+
width: 170px;
|
|
116
|
+
height: 100px;
|
|
117
|
+
top: -67px
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.right {
|
|
121
|
+
width: 170px;
|
|
122
|
+
height: 146px;
|
|
123
|
+
bottom: -45px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.title {
|
|
127
|
+
padding-top: 5px;
|
|
128
|
+
font-size: 32px;
|
|
129
|
+
line-height: 39px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.subtitle {
|
|
133
|
+
font-size: 16px;
|
|
134
|
+
line-height: 19px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.cta {
|
|
138
|
+
max-width: 175px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media mobile {
|
|
143
|
+
.container {
|
|
144
|
+
height: 161px;
|
|
145
|
+
max-width: 327px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.banner {
|
|
149
|
+
justify-content: center;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.right {
|
|
153
|
+
display: none;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.left {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.title {
|
|
161
|
+
padding-top: 5px;
|
|
162
|
+
font-size: 32px;
|
|
163
|
+
line-height: 39px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.subtitle {
|
|
167
|
+
font-size: 16px;
|
|
168
|
+
line-height: 19px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.cta {
|
|
172
|
+
max-width: 150px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@keyframes rightAnimation {
|
|
177
|
+
0% {transform: translate3d(0, 10px, 0);}
|
|
178
|
+
50% {transform: translate3d(0, 0, 0);}
|
|
179
|
+
100% {transform: translate3d(0, 10px, 0);}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@keyframes leftAnimation {
|
|
183
|
+
0% {transform: translate3d(0, 0, 0);}
|
|
184
|
+
50% {transform: translate3d(0, 10px, 0);}
|
|
185
|
+
100% {transform: translate3d(0, 0, 0);}
|
|
186
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/molecule/dashboard/review-banner/test/fixtures/default.js"],"names":["props","title","subtitle","cta","label","onClick"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,eADF;AAELC,IAAAA,QAAQ,EAAE,sCAFL;AAGLC,IAAAA,GAAG,EAAE;AACHC,MAAAA,KAAK,EAAE,gBADJ;AAEHC,MAAAA,OAAO,EAAE,MAAM,CAAE;AAFd;AAHA;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Revision mode',\n subtitle: 'Lorem ipsum dolor sit amet consectur',\n cta: {\n label: 'Start revision',\n onClick: () => {}\n }\n }\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeDashboardReviewBanner from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
test('MoleculeDashboard › MoleculeDashboardReviewBanner > should have valid propTypes', t => {
|
|
7
|
+
t.pass();
|
|
8
|
+
forEach(MoleculeDashboardReviewBanner.propTypes, (value, key) => {
|
|
9
|
+
t.not(value, undefined, `PropType for "MoleculeDashboard.MoleculeDashboardReviewBanner.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
test('MoleculeDashboard › MoleculeDashboardReviewBanner › Default › should be rendered', renderComponentMacro, MoleculeDashboardReviewBanner, fixtureDefault);
|
|
13
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/dashboard/review-banner/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDashboardReviewBanner","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,iFAAD,EAAoFK,CAAC,IAAI;AAC3FA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,6BAA6B,CAACI,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2EAA0EF,GAAI,mEAAvG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,6BAA3G,EAA0IC,cAA1I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeDashboardReviewBanner from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('MoleculeDashboard › MoleculeDashboardReviewBanner > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDashboardReviewBanner.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeDashboard.MoleculeDashboardReviewBanner.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeDashboard › MoleculeDashboardReviewBanner › Default › should be rendered', renderComponentMacro, MoleculeDashboardReviewBanner, fixtureDefault);\n"],"file":"fixtures.js"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeDraggable from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
test('Molecule › MoleculeDraggable > should have valid propTypes', t => {
|
|
7
|
+
t.pass();
|
|
8
|
+
forEach(MoleculeDraggable.propTypes, (value, key) => {
|
|
9
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeDraggable.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
test('Molecule › MoleculeDraggable › Default › should be rendered', renderComponentMacro, MoleculeDraggable, fixtureDefault);
|
|
13
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/draggable/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDraggable","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,iBAAP,MAA8B,IAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,4DAAD,EAA+DK,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,iBAAiB,CAACI,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGC,cAAzG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDraggable from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Molecule › MoleculeDraggable > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDraggable.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDraggable.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDraggable › Default › should be rendered', renderComponentMacro, MoleculeDraggable, fixtureDefault);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeDraggableList from '..';
|
|
5
|
+
import fixtureCourseSections from './fixtures/course-sections';
|
|
6
|
+
import fixtureDashboardSections from './fixtures/dashboard-sections';
|
|
7
|
+
test('Molecule › MoleculeDraggableList > should have valid propTypes', t => {
|
|
8
|
+
t.pass();
|
|
9
|
+
forEach(MoleculeDraggableList.propTypes, (value, key) => {
|
|
10
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeDraggableList.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
test('Molecule › MoleculeDraggableList › CourseSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureCourseSections);
|
|
14
|
+
test('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureDashboardSections);
|
|
15
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/draggable-list/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDraggableList","fixtureCourseSections","fixtureDashboardSections","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,qBAAP,MAAkC,IAAlC;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,wBAAP,MAAqC,+BAArC;AAEAL,IAAI,CAAC,gEAAD,EAAmEM,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,qBAAqB,CAACK,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,qBAAjG,EAAwHC,qBAAxH,CAAJ;AACAJ,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,qBAApG,EAA2HE,wBAA3H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDraggableList from '..';\nimport fixtureCourseSections from './fixtures/course-sections';\nimport fixtureDashboardSections from './fixtures/dashboard-sections';\n\ntest('Molecule › MoleculeDraggableList > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDraggableList.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDraggableList.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDraggableList › CourseSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureCourseSections);\ntest('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureDashboardSections);\n"],"file":"fixtures.js"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,8 @@ import forEach from 'lodash/forEach';
|
|
|
3
3
|
import renderComponentMacro from '../../../../test/helpers/render-component';
|
|
4
4
|
import MoleculeQuestionsFreeText from '..';
|
|
5
5
|
import fixtureDefault from './fixtures/default';
|
|
6
|
-
import
|
|
6
|
+
import fixtureWithValueOnChange from './fixtures/with-value-on-change';
|
|
7
|
+
import fixtureWithValue from './fixtures/with-value';
|
|
7
8
|
test('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTypes', t => {
|
|
8
9
|
t.pass();
|
|
9
10
|
forEach(MoleculeQuestionsFreeText.propTypes, (value, key) => {
|
|
@@ -11,5 +12,6 @@ test('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTy
|
|
|
11
12
|
});
|
|
12
13
|
});
|
|
13
14
|
test('MoleculeQuestions › MoleculeQuestionsFreeText › Default › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureDefault);
|
|
14
|
-
test('MoleculeQuestions › MoleculeQuestionsFreeText ›
|
|
15
|
+
test('MoleculeQuestions › MoleculeQuestionsFreeText › WithValueOnChange › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValueOnChange);
|
|
16
|
+
test('MoleculeQuestions › MoleculeQuestionsFreeText › WithValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValue);
|
|
15
17
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/questions/free-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuestionsFreeText","fixtureDefault","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/questions/free-text/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuestionsFreeText","fixtureDefault","fixtureWithValueOnChange","fixtureWithValue","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,yBAAP,MAAsC,IAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,wBAAP,MAAqC,iCAArC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAN,IAAI,CAAC,6EAAD,EAAgFO,CAAC,IAAI;AACvFA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,yBAAyB,CAACM,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uEAAsEF,GAAI,mEAAnG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,yBAAvG,EAAkIC,cAAlI,CAAJ;AACAJ,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,yBAAjH,EAA4IE,wBAA5I,CAAJ;AACAL,IAAI,CAAC,gFAAD,EAAmFE,oBAAnF,EAAyGC,yBAAzG,EAAoIG,gBAApI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeQuestionsFreeText from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithValueOnChange from './fixtures/with-value-on-change';\nimport fixtureWithValue from './fixtures/with-value';\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuestionsFreeText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeQuestions.MoleculeQuestionsFreeText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › Default › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureDefault);\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › WithValueOnChange › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValueOnChange);\ntest('MoleculeQuestions › MoleculeQuestionsFreeText › WithValue › should be rendered', renderComponentMacro, MoleculeQuestionsFreeText, fixtureWithValue);\n"],"file":"fixtures.js"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import classnames from 'classnames';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { NovaCompositionCoorpacademyCheck as RightIcon, NovaSolidStatusClose as WrongIcon } from '@coorpacademy/nova-icons';
|
|
7
|
+
import ButtonLink from '../../atom/button-link';
|
|
8
|
+
import style from './style.css';
|
|
9
|
+
|
|
10
|
+
const buildKlfButton = klf => {
|
|
11
|
+
const klfButtonProps = _extends(_extends({}, klf), {}, {
|
|
12
|
+
icon: {
|
|
13
|
+
position: 'left',
|
|
14
|
+
type: 'key'
|
|
15
|
+
},
|
|
16
|
+
type: 'primary'
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: style.klfContainer
|
|
21
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: style.klfButtonContainer
|
|
23
|
+
}, /*#__PURE__*/React.createElement(ButtonLink, _extends({}, klfButtonProps, {
|
|
24
|
+
className: style.klfButton
|
|
25
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: style.toolTip
|
|
27
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
className: style.tooltipText
|
|
29
|
+
}, klf.tooltip)));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const ReviewCorrectionPopin = props => {
|
|
33
|
+
const {
|
|
34
|
+
information,
|
|
35
|
+
resultLabel,
|
|
36
|
+
type,
|
|
37
|
+
klf,
|
|
38
|
+
next
|
|
39
|
+
} = props;
|
|
40
|
+
|
|
41
|
+
const nextQuestionButtonProps = _extends(_extends({}, next), {}, {
|
|
42
|
+
type: 'primary'
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const cta = type === 'wrong' ? buildKlfButton(klf) : null;
|
|
46
|
+
const ICONS = {
|
|
47
|
+
right: RightIcon,
|
|
48
|
+
wrong: WrongIcon
|
|
49
|
+
};
|
|
50
|
+
const Icon = ICONS[type];
|
|
51
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
52
|
+
className: style.wrapper
|
|
53
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: classnames(style.popin, type === 'right' ? style.right : style.wrong)
|
|
55
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
className: style.correctionSection
|
|
57
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: style.iconCircle
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
60
|
+
className: type === 'right' ? style.iconRight : style.iconWrong
|
|
61
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
className: style.resultLabel,
|
|
63
|
+
"aria-label": "result"
|
|
64
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
65
|
+
"aria-label": resultLabel
|
|
66
|
+
}, resultLabel))), /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: style.feedbackSection
|
|
68
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: style.information,
|
|
70
|
+
"aria-label": "answer-information"
|
|
71
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
72
|
+
className: style.label,
|
|
73
|
+
"aria-label": information.label
|
|
74
|
+
}, information.label), /*#__PURE__*/React.createElement("span", {
|
|
75
|
+
className: style.message,
|
|
76
|
+
"aria-label": information.message
|
|
77
|
+
}, information.message))), /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: type === 'right' ? style.actions : style.actionsWrong
|
|
79
|
+
}, cta, /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
className: style.nextQuestionContainer
|
|
81
|
+
}, /*#__PURE__*/React.createElement(ButtonLink, _extends({}, nextQuestionButtonProps, {
|
|
82
|
+
className: style.nextQuestionButton
|
|
83
|
+
}))))));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
ReviewCorrectionPopin.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
87
|
+
type: PropTypes.oneOf(['right', 'wrong']),
|
|
88
|
+
resultLabel: PropTypes.string,
|
|
89
|
+
information: PropTypes.shape({
|
|
90
|
+
label: PropTypes.string,
|
|
91
|
+
message: PropTypes.string
|
|
92
|
+
}),
|
|
93
|
+
next: PropTypes.shape({
|
|
94
|
+
label: PropTypes.string,
|
|
95
|
+
onClick: PropTypes.func
|
|
96
|
+
}),
|
|
97
|
+
klf: PropTypes.shape({
|
|
98
|
+
label: PropTypes.string,
|
|
99
|
+
onClick: PropTypes.func
|
|
100
|
+
})
|
|
101
|
+
} : {};
|
|
102
|
+
export default ReviewCorrectionPopin;
|
|
103
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/review-correction-popin/index.js"],"names":["React","classnames","PropTypes","NovaCompositionCoorpacademyCheck","RightIcon","NovaSolidStatusClose","WrongIcon","ButtonLink","style","buildKlfButton","klf","klfButtonProps","icon","position","type","klfContainer","klfButtonContainer","klfButton","toolTip","tooltipText","tooltip","ReviewCorrectionPopin","props","information","resultLabel","next","nextQuestionButtonProps","cta","ICONS","right","wrong","Icon","wrapper","popin","correctionSection","iconCircle","iconRight","iconWrong","feedbackSection","label","message","actions","actionsWrong","nextQuestionContainer","nextQuestionButton","propTypes","oneOf","string","shape","onClick","func"],"mappings":"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","sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyCheck as RightIcon,\n NovaSolidStatusClose as WrongIcon\n} from '@coorpacademy/nova-icons';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst buildKlfButton = klf => {\n const klfButtonProps = {\n ...klf,\n icon: {\n position: 'left',\n type: 'key'\n },\n type: 'primary'\n };\n\n return (\n <div className={style.klfContainer}>\n <div className={style.klfButtonContainer}>\n <ButtonLink {...klfButtonProps} className={style.klfButton} />\n </div>\n <div className={style.toolTip}>\n <div className={style.tooltipText}>{klf.tooltip}</div>\n </div>\n </div>\n );\n};\n\nconst ReviewCorrectionPopin = props => {\n const {information, resultLabel, type, klf, next} = props;\n\n const nextQuestionButtonProps = {\n ...next,\n type: 'primary'\n };\n\n const cta = type === 'wrong' ? buildKlfButton(klf) : null;\n\n const ICONS = {\n right: RightIcon,\n wrong: WrongIcon\n };\n const Icon = ICONS[type];\n\n return (\n <div className={style.wrapper}>\n <div className={classnames(style.popin, type === 'right' ? style.right : style.wrong)}>\n <div className={style.correctionSection}>\n <div className={style.iconCircle}>\n <Icon className={type === 'right' ? style.iconRight : style.iconWrong} />\n </div>\n <div className={style.resultLabel} aria-label=\"result\">\n <span aria-label={resultLabel}>{resultLabel}</span>\n </div>\n </div>\n <div className={style.feedbackSection}>\n <div className={style.information} aria-label=\"answer-information\">\n <span className={style.label} aria-label={information.label}>\n {information.label}\n </span>\n <span className={style.message} aria-label={information.message}>\n {information.message}\n </span>\n </div>\n </div>\n <div className={type === 'right' ? style.actions : style.actionsWrong}>\n {cta}\n <div className={style.nextQuestionContainer}>\n <ButtonLink {...nextQuestionButtonProps} className={style.nextQuestionButton} />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nReviewCorrectionPopin.propTypes = {\n type: PropTypes.oneOf(['right', 'wrong']),\n resultLabel: PropTypes.string,\n information: PropTypes.shape({\n label: PropTypes.string,\n message: PropTypes.string\n }),\n next: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n klf: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default ReviewCorrectionPopin;\n"],"file":"index.js"}
|