@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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _noop from "lodash/fp/noop";
|
|
1
2
|
import _keys from "lodash/fp/keys";
|
|
2
3
|
import _getOr from "lodash/fp/getOr";
|
|
3
4
|
|
|
@@ -46,14 +47,17 @@ const ButtonLink = props => {
|
|
|
46
47
|
'data-name': dataName,
|
|
47
48
|
'aria-label': ariaLabel,
|
|
48
49
|
link,
|
|
49
|
-
onClick
|
|
50
|
+
onClick = _noop,
|
|
51
|
+
className,
|
|
52
|
+
customStyle
|
|
50
53
|
} = props;
|
|
51
54
|
const contentView = getButtonContent(icon, label);
|
|
52
|
-
const styleButton = classnames(style.button, type === 'primary' && style.primary, type === 'secondary' && style.secondary, type === 'tertiary' && style.tertiary, type === 'text' && style.text, type === 'dangerous' && style.dangerous, link && style.link, disabled && style.disabled);
|
|
55
|
+
const styleButton = classnames(className, style.button, type === 'primary' && style.primary, type === 'secondary' && style.secondary, type === 'tertiary' && style.tertiary, type === 'text' && style.text, type === 'dangerous' && style.dangerous, link && style.link, disabled && style.disabled);
|
|
53
56
|
const handleOnClick = useCallback(() => onClick(), [onClick]);
|
|
54
57
|
|
|
55
58
|
if (link) {
|
|
56
59
|
return /*#__PURE__*/React.createElement(Link, _extends({}, link, {
|
|
60
|
+
style: customStyle,
|
|
57
61
|
className: styleButton,
|
|
58
62
|
"data-name": dataName,
|
|
59
63
|
"aria-label": ariaLabel || label,
|
|
@@ -66,6 +70,7 @@ const ButtonLink = props => {
|
|
|
66
70
|
"aria-label": ariaLabel || label,
|
|
67
71
|
title: ariaLabel || label,
|
|
68
72
|
"data-name": dataName,
|
|
73
|
+
style: customStyle,
|
|
69
74
|
className: styleButton,
|
|
70
75
|
onClick: handleOnClick
|
|
71
76
|
}, contentView);
|
|
@@ -86,7 +91,9 @@ ButtonLink.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
86
91
|
download: PropTypes.bool,
|
|
87
92
|
target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])
|
|
88
93
|
}),
|
|
89
|
-
disabled: PropTypes.bool
|
|
94
|
+
disabled: PropTypes.bool,
|
|
95
|
+
className: PropTypes.string,
|
|
96
|
+
customStyle: PropTypes.shape({})
|
|
90
97
|
} : {};
|
|
91
98
|
export default ButtonLink;
|
|
92
99
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/button-link/index.js"],"names":["React","useCallback","PropTypes","classnames","Link","ICONS","style","getButtonContent","icon","label","type","position","Icon","buttonContent","ButtonLink","props","disabled","dataName","ariaLabel","link","onClick","contentView","styleButton","button","primary","secondary","tertiary","text","dangerous","handleOnClick","propTypes","oneOf","string","shape","func","href","download","bool","target"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/button-link/index.js"],"names":["React","useCallback","PropTypes","classnames","Link","ICONS","style","getButtonContent","icon","label","type","position","Icon","buttonContent","ButtonLink","props","disabled","dataName","ariaLabel","link","onClick","className","customStyle","contentView","styleButton","button","primary","secondary","tertiary","text","dangerous","handleOnClick","propTypes","oneOf","string","shape","func","href","download","bool","target"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,IAAP,MAAiB,SAAjB;AACA,SAAQC,KAAR,QAAoB,yBAApB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,gBAAgB,GAAG,CAACC,IAAD,EAAOC,KAAP,KAAiB;AACxC,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA;AAAP,MAAmBH,IAAzB;;AACA,QAAMI,IAAI,GAAG,OAAM,IAAN,EAAYF,IAAZ,EAAkBL,KAAlB,CAAb;;AAEA,MAAI,CAACO,IAAL,EAAW;AACT,wBACE;AAAK,MAAA,SAAS,EAAEN,KAAK,CAACO;AAAtB,oBACE;AAAM,MAAA,SAAS,EAAEP,KAAK,CAACG;AAAvB,OAA+BA,KAA/B,CADF,CADF;AAKD;;AAED,sBACE;AAAK,IAAA,SAAS,EAAEH,KAAK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;AAGpBC,IAAAA,MAAM,EAAEtC,SAAS,CAAC+B,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB;AAHY,GAAhB,CAVe;AAerBjB,EAAAA,QAAQ,EAAEd,SAAS,CAACqC,IAfC;AAgBrBlB,EAAAA,SAAS,EAAEnB,SAAS,CAACgC,MAhBA;AAiBrBZ,EAAAA,WAAW,EAAEpB,SAAS,CAACiC,KAAV,CAAgB,EAAhB;AAjBQ,CAAvB;AAoBA,eAAerB,UAAf","sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, keys, noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport {ICONS} from '../../util/button-icons';\nimport style from './style.css';\n\nconst getButtonContent = (icon, label) => {\n const {type, position} = icon;\n const Icon = getOr(null, type, ICONS);\n\n if (!Icon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n );\n }\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? <Icon className={style.icon} /> : null}\n <span className={style.label}>{label}</span>\n {position === 'right' ? <Icon className={style.icon} /> : null}\n </div>\n );\n};\n\nconst ButtonLink = props => {\n const {\n type,\n label,\n disabled,\n icon = {},\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n link,\n onClick = noop,\n className,\n customStyle\n } = props;\n const contentView = getButtonContent(icon, label);\n const styleButton = classnames(\n className,\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n if (link) {\n return (\n <Link\n {...link}\n style={customStyle}\n className={styleButton}\n data-name={dataName}\n aria-label={ariaLabel || label}\n title={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n type=\"button\"\n aria-label={ariaLabel || label}\n title={ariaLabel || label}\n data-name={dataName}\n style={customStyle}\n className={styleButton}\n onClick={handleOnClick}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n }),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string,\n customStyle: PropTypes.shape({})\n};\n\nexport default ButtonLink;\n"],"file":"index.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 AtomCardImagePreview from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureEmpty from './fixtures/empty';
|
|
7
|
+
test('Atom › AtomCardImagePreview > should have valid propTypes', t => {
|
|
8
|
+
t.pass();
|
|
9
|
+
forEach(AtomCardImagePreview.propTypes, (value, key) => {
|
|
10
|
+
t.not(value, undefined, `PropType for "Atom.AtomCardImagePreview.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
test('Atom › AtomCardImagePreview › Default › should be rendered', renderComponentMacro, AtomCardImagePreview, fixtureDefault);
|
|
14
|
+
test('Atom › AtomCardImagePreview › Empty › should be rendered', renderComponentMacro, AtomCardImagePreview, fixtureEmpty);
|
|
15
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/card-image-preview/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomCardImagePreview","fixtureDefault","fixtureEmpty","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAL,IAAI,CAAC,2DAAD,EAA8DM,CAAC,IAAI;AACrEA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,oBAAoB,CAACK,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,qDAAoDF,GAAI,mEAAjF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,oBAArF,EAA2GC,cAA3G,CAAJ;AACAJ,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,oBAAnF,EAAyGE,YAAzG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomCardImagePreview from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\n\ntest('Atom › AtomCardImagePreview > should have valid propTypes', t => {\n t.pass();\n forEach(AtomCardImagePreview.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomCardImagePreview.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomCardImagePreview › Default › should be rendered', renderComponentMacro, AtomCardImagePreview, fixtureDefault);\ntest('Atom › AtomCardImagePreview › Empty › should be rendered', renderComponentMacro, AtomCardImagePreview, fixtureEmpty);\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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,7 @@ import test from 'ava';
|
|
|
2
2
|
import forEach from 'lodash/forEach';
|
|
3
3
|
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
4
|
import AtomSelect from '..';
|
|
5
|
+
import fixtureCoorpmanager from './fixtures/coorpmanager';
|
|
5
6
|
import fixtureDefault from './fixtures/default';
|
|
6
7
|
import fixtureDisabled from './fixtures/disabled';
|
|
7
8
|
import fixtureError from './fixtures/error';
|
|
@@ -11,6 +12,7 @@ import fixtureModified from './fixtures/modified';
|
|
|
11
12
|
import fixtureMooc from './fixtures/mooc';
|
|
12
13
|
import fixtureMultipleSelected from './fixtures/multiple-selected';
|
|
13
14
|
import fixtureMultiple from './fixtures/multiple';
|
|
15
|
+
import fixturePlayer from './fixtures/player';
|
|
14
16
|
import fixtureQuestion from './fixtures/question';
|
|
15
17
|
import fixtureRequiredWithTitle from './fixtures/required-with-title';
|
|
16
18
|
import fixtureRequired from './fixtures/required';
|
|
@@ -24,6 +26,7 @@ test('Atom › AtomSelect > should have valid propTypes', t => {
|
|
|
24
26
|
t.not(value, undefined, `PropType for "Atom.AtomSelect.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
25
27
|
});
|
|
26
28
|
});
|
|
29
|
+
test('Atom › AtomSelect › Coorpmanager › should be rendered', renderComponentMacro, AtomSelect, fixtureCoorpmanager);
|
|
27
30
|
test('Atom › AtomSelect › Default › should be rendered', renderComponentMacro, AtomSelect, fixtureDefault);
|
|
28
31
|
test('Atom › AtomSelect › Disabled › should be rendered', renderComponentMacro, AtomSelect, fixtureDisabled);
|
|
29
32
|
test('Atom › AtomSelect › Error › should be rendered', renderComponentMacro, AtomSelect, fixtureError);
|
|
@@ -33,6 +36,7 @@ test('Atom › AtomSelect › Modified › should be rendered', renderComponentM
|
|
|
33
36
|
test('Atom › AtomSelect › Mooc › should be rendered', renderComponentMacro, AtomSelect, fixtureMooc);
|
|
34
37
|
test('Atom › AtomSelect › MultipleSelected › should be rendered', renderComponentMacro, AtomSelect, fixtureMultipleSelected);
|
|
35
38
|
test('Atom › AtomSelect › Multiple › should be rendered', renderComponentMacro, AtomSelect, fixtureMultiple);
|
|
39
|
+
test('Atom › AtomSelect › Player › should be rendered', renderComponentMacro, AtomSelect, fixturePlayer);
|
|
36
40
|
test('Atom › AtomSelect › Question › should be rendered', renderComponentMacro, AtomSelect, fixtureQuestion);
|
|
37
41
|
test('Atom › AtomSelect › RequiredWithTitle › should be rendered', renderComponentMacro, AtomSelect, fixtureRequiredWithTitle);
|
|
38
42
|
test('Atom › AtomSelect › Required › should be rendered', renderComponentMacro, AtomSelect, fixtureRequired);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/atom/select/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomSelect","fixtureDefault","fixtureDisabled","fixtureError","fixtureFilter","fixtureInvalid","fixtureModified","fixtureMooc","fixtureMultipleSelected","fixtureMultiple","fixtureQuestion","fixtureRequiredWithTitle","fixtureRequired","fixtureSort","fixtureTemplate","fixtureThematiquesLong","fixtureThematiques","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,UAAP,MAAuB,IAAvB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,uBAAP,MAAoC,8BAApC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,wBAAP,MAAqC,gCAArC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/select/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","AtomSelect","fixtureCoorpmanager","fixtureDefault","fixtureDisabled","fixtureError","fixtureFilter","fixtureInvalid","fixtureModified","fixtureMooc","fixtureMultipleSelected","fixtureMultiple","fixturePlayer","fixtureQuestion","fixtureRequiredWithTitle","fixtureRequired","fixtureSort","fixtureTemplate","fixtureThematiquesLong","fixtureThematiques","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,UAAP,MAAuB,IAAvB;AACA,OAAOC,mBAAP,MAAgC,yBAAhC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,uBAAP,MAAoC,8BAApC;AACA,OAAOC,eAAP,MAA4B,qBAA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C,2DAAD,EAA8DE,oBAA9D,EAAoFC,UAApF,EAAgGS,uBAAhG,CAAJ;AACAZ,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,UAA5E,EAAwFU,eAAxF,CAAJ;AACAb,IAAI,CAAC,iDAAD,EAAoDE,oBAApD,EAA0EC,UAA1E,EAAsFW,aAAtF,CAAJ;AACAd,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,UAA5E,EAAwFY,eAAxF,CAAJ;AACAf,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,UAArF,EAAiGa,wBAAjG,CAAJ;AACAhB,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,UAA5E,EAAwFc,eAAxF,CAAJ;AACAjB,IAAI,CAAC,+CAAD,EAAkDE,oBAAlD,EAAwEC,UAAxE,EAAoFe,WAApF,CAAJ;AACAlB,IAAI,CAAC,mDAAD,EAAsDE,oBAAtD,EAA4EC,UAA5E,EAAwFgB,eAAxF,CAAJ;AACAnB,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,UAAnF,EAA+FiB,sBAA/F,CAAJ;AACApB,IAAI,CAAC,sDAAD,EAAyDE,oBAAzD,EAA+EC,UAA/E,EAA2FkB,kBAA3F,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomSelect from '..';\nimport fixtureCoorpmanager from './fixtures/coorpmanager';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureError from './fixtures/error';\nimport fixtureFilter from './fixtures/filter';\nimport fixtureInvalid from './fixtures/invalid';\nimport fixtureModified from './fixtures/modified';\nimport fixtureMooc from './fixtures/mooc';\nimport fixtureMultipleSelected from './fixtures/multiple-selected';\nimport fixtureMultiple from './fixtures/multiple';\nimport fixturePlayer from './fixtures/player';\nimport fixtureQuestion from './fixtures/question';\nimport fixtureRequiredWithTitle from './fixtures/required-with-title';\nimport fixtureRequired from './fixtures/required';\nimport fixtureSort from './fixtures/sort';\nimport fixtureTemplate from './fixtures/template';\nimport fixtureThematiquesLong from './fixtures/thematiques-long';\nimport fixtureThematiques from './fixtures/thematiques';\n\ntest('Atom › AtomSelect > should have valid propTypes', t => {\n t.pass();\n forEach(AtomSelect.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomSelect.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomSelect › Coorpmanager › should be rendered', renderComponentMacro, AtomSelect, fixtureCoorpmanager);\ntest('Atom › AtomSelect › Default › should be rendered', renderComponentMacro, AtomSelect, fixtureDefault);\ntest('Atom › AtomSelect › Disabled › should be rendered', renderComponentMacro, AtomSelect, fixtureDisabled);\ntest('Atom › AtomSelect › Error › should be rendered', renderComponentMacro, AtomSelect, fixtureError);\ntest('Atom › AtomSelect › Filter › should be rendered', renderComponentMacro, AtomSelect, fixtureFilter);\ntest('Atom › AtomSelect › Invalid › should be rendered', renderComponentMacro, AtomSelect, fixtureInvalid);\ntest('Atom › AtomSelect › Modified › should be rendered', renderComponentMacro, AtomSelect, fixtureModified);\ntest('Atom › AtomSelect › Mooc › should be rendered', renderComponentMacro, AtomSelect, fixtureMooc);\ntest('Atom › AtomSelect › MultipleSelected › should be rendered', renderComponentMacro, AtomSelect, fixtureMultipleSelected);\ntest('Atom › AtomSelect › Multiple › should be rendered', renderComponentMacro, AtomSelect, fixtureMultiple);\ntest('Atom › AtomSelect › Player › should be rendered', renderComponentMacro, AtomSelect, fixturePlayer);\ntest('Atom › AtomSelect › Question › should be rendered', renderComponentMacro, AtomSelect, fixtureQuestion);\ntest('Atom › AtomSelect › RequiredWithTitle › should be rendered', renderComponentMacro, AtomSelect, fixtureRequiredWithTitle);\ntest('Atom › AtomSelect › Required › should be rendered', renderComponentMacro, AtomSelect, fixtureRequired);\ntest('Atom › AtomSelect › Sort › should be rendered', renderComponentMacro, AtomSelect, fixtureSort);\ntest('Atom › AtomSelect › Template › should be rendered', renderComponentMacro, AtomSelect, fixtureTemplate);\ntest('Atom › AtomSelect › ThematiquesLong › should be rendered', renderComponentMacro, AtomSelect, fixtureThematiquesLong);\ntest('Atom › AtomSelect › Thematiques › should be rendered', renderComponentMacro, AtomSelect, fixtureThematiques);\n"],"file":"fixtures.js"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/atom/tag/index.js
CHANGED
package/es/atom/tag/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/tag/index.js"],"names":["React","PropTypes","style","TAG_STYLES","default","published","revised","archived","draft","Tag","props","label","type","propTypes","string","oneOf"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,OAAO,EAAEF,KAAK,CAACE,OADE;AAEjBC,EAAAA,SAAS,EAAEH,KAAK,CAACG,SAFA;AAGjBC,EAAAA,OAAO,EAAEJ,KAAK,CAACI,OAHE;AAIjBC,EAAAA,QAAQ,EAAEL,KAAK,CAACK,QAJC;AAKjBC,EAAAA,KAAK,EAAEN,KAAK,CAACM;AALI,CAAnB;;AAQA,MAAMC,GAAG,GAAGC,KAAK,IAAI;AACnB,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,IAAI,GAAG;AAAf,MAA4BF,KAAlC;AAEA,sBACE;AAAM,IAAA,SAAS,EAAEP,UAAU,CAACS,IAAD,CAA3B;AAAmC,iBAAY,
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/tag/index.js"],"names":["React","PropTypes","style","TAG_STYLES","default","published","revised","archived","draft","Tag","props","label","type","propTypes","string","oneOf"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,OAAO,EAAEF,KAAK,CAACE,OADE;AAEjBC,EAAAA,SAAS,EAAEH,KAAK,CAACG,SAFA;AAGjBC,EAAAA,OAAO,EAAEJ,KAAK,CAACI,OAHE;AAIjBC,EAAAA,QAAQ,EAAEL,KAAK,CAACK,QAJC;AAKjBC,EAAAA,KAAK,EAAEN,KAAK,CAACM;AALI,CAAnB;;AAQA,MAAMC,GAAG,GAAGC,KAAK,IAAI;AACnB,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,IAAI,GAAG;AAAf,MAA4BF,KAAlC;AAEA,sBACE;AAAM,IAAA,SAAS,EAAEP,UAAU,CAACS,IAAD,CAA3B;AAAmC,iBAAY,eAAcD,KAAM;AAAnE,KACGA,KADH,CADF;AAKD,CARD;;AAUAF,GAAG,CAACI,SAAJ,2CAAgB;AACdF,EAAAA,KAAK,EAAEV,SAAS,CAACa,MADH;AAEdF,EAAAA,IAAI,EAAEX,SAAS,CAACc,KAAV,CAAgB,MAAKZ,UAAL,CAAhB;AAFQ,CAAhB;AAKA,eAAeM,GAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport style from './style.css';\n\nconst TAG_STYLES = {\n default: style.default,\n published: style.published,\n revised: style.revised,\n archived: style.archived,\n draft: style.draft\n};\n\nconst Tag = props => {\n const {label, type = 'default'} = props;\n\n return (\n <span className={TAG_STYLES[type]} data-name={`content-tag-${label}`}>\n {label}\n </span>\n );\n};\n\nTag.propTypes = {\n label: PropTypes.string,\n type: PropTypes.oneOf(keys(TAG_STYLES))\n};\n\nexport default Tag;\n"],"file":"index.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
|
|
File without changes
|
|
@@ -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 MoleculeCourseSection from '..';
|
|
5
|
+
import fixtureChapter from './fixtures/chapter';
|
|
6
|
+
import fixtureCourse from './fixtures/course';
|
|
7
|
+
test('Molecule › MoleculeCourseSection > should have valid propTypes', t => {
|
|
8
|
+
t.pass();
|
|
9
|
+
forEach(MoleculeCourseSection.propTypes, (value, key) => {
|
|
10
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeCourseSection.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
test('Molecule › MoleculeCourseSection › Chapter › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureChapter);
|
|
14
|
+
test('Molecule › MoleculeCourseSection › Course › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCourse);
|
|
15
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/course-section/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSection","fixtureChapter","fixtureCourse","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,qBAAP,MAAkC,IAAlC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AAEAL,IAAI,CAAC,gEAAD,EAAmEM,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,qBAAqB,CAACK,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,qBAA1F,EAAiHC,cAAjH,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,qBAAzF,EAAgHE,aAAhH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSection from '..';\nimport fixtureChapter from './fixtures/chapter';\nimport fixtureCourse from './fixtures/course';\n\ntest('Molecule › MoleculeCourseSection > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSection.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSection.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSection › Chapter › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureChapter);\ntest('Molecule › MoleculeCourseSection › Course › should be rendered', renderComponentMacro, MoleculeCourseSection, fixtureCourse);\n"],"file":"fixtures.js"}
|
|
@@ -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 MoleculeCourseSections from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureLoading from './fixtures/loading';
|
|
7
|
+
test('Molecule › MoleculeCourseSections > should have valid propTypes', t => {
|
|
8
|
+
t.pass();
|
|
9
|
+
forEach(MoleculeCourseSections.propTypes, (value, key) => {
|
|
10
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeCourseSections.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
test('Molecule › MoleculeCourseSections › Default › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureDefault);
|
|
14
|
+
test('Molecule › MoleculeCourseSections › Loading › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureLoading);
|
|
15
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/course-sections/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCourseSections","fixtureDefault","fixtureLoading","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAL,IAAI,CAAC,iEAAD,EAAoEM,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,sBAAsB,CAACK,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHE,cAAnH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCourseSections from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\n\ntest('Molecule › MoleculeCourseSections > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCourseSections.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCourseSections.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCourseSections › Default › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureDefault);\ntest('Molecule › MoleculeCourseSections › Loading › should be rendered', renderComponentMacro, MoleculeCourseSections, fixtureLoading);\n"],"file":"fixtures.js"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,79 @@
|
|
|
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 PropTypes from 'prop-types';
|
|
5
|
+
import getOr from 'lodash/fp/getOr';
|
|
6
|
+
import Provider from '../../../atom/provider';
|
|
7
|
+
import ButtonLink from '../../../atom/button-link';
|
|
8
|
+
import style from './style.css';
|
|
9
|
+
|
|
10
|
+
const ReviewBanner = (props, context) => {
|
|
11
|
+
const {
|
|
12
|
+
title,
|
|
13
|
+
subtitle,
|
|
14
|
+
cta
|
|
15
|
+
} = props;
|
|
16
|
+
const {
|
|
17
|
+
skin
|
|
18
|
+
} = context;
|
|
19
|
+
const primary = getOr('#00B0FF', 'common.primary', skin);
|
|
20
|
+
|
|
21
|
+
const buttonProps = _extends(_extends({}, cta), {}, {
|
|
22
|
+
type: 'primary'
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const ctaStyle = {
|
|
26
|
+
background: primary
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: style.root,
|
|
30
|
+
"data-name": "start-review-banner"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: style.container
|
|
33
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
+
className: style.banner
|
|
35
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: style.left,
|
|
37
|
+
role: "img",
|
|
38
|
+
"aria-label": "Left image container"
|
|
39
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
40
|
+
className: style.image,
|
|
41
|
+
src: "https://static.coorpacademy.com/site/book.png",
|
|
42
|
+
alt: "Book image"
|
|
43
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: style.middle
|
|
45
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
46
|
+
className: style.title,
|
|
47
|
+
"data-name": "review-banner-title",
|
|
48
|
+
"aria-label": "{title}"
|
|
49
|
+
}, title), /*#__PURE__*/React.createElement("span", {
|
|
50
|
+
className: style.subtitle,
|
|
51
|
+
"data-name": "review-banner-subtitle",
|
|
52
|
+
"aria-label": "{subtitle}"
|
|
53
|
+
}, subtitle), /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buttonProps, {
|
|
54
|
+
className: style.cta,
|
|
55
|
+
customStyle: ctaStyle
|
|
56
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: style.right,
|
|
58
|
+
role: "img",
|
|
59
|
+
"aria-label": "Rigth image container"
|
|
60
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
61
|
+
className: style.image,
|
|
62
|
+
src: "https://static.coorpacademy.com/site/dumbell.png",
|
|
63
|
+
alt: "Dumbbell image"
|
|
64
|
+
})))));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
ReviewBanner.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
68
|
+
title: PropTypes.string,
|
|
69
|
+
subtitle: PropTypes.string,
|
|
70
|
+
cta: PropTypes.shape({
|
|
71
|
+
onClick: PropTypes.func,
|
|
72
|
+
label: PropTypes.string
|
|
73
|
+
})
|
|
74
|
+
} : {};
|
|
75
|
+
ReviewBanner.contextTypes = {
|
|
76
|
+
skin: Provider.childContextTypes.skin
|
|
77
|
+
};
|
|
78
|
+
export default React.memo(ReviewBanner);
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/dashboard/review-banner/index.js"],"names":["React","PropTypes","getOr","Provider","ButtonLink","style","ReviewBanner","props","context","title","subtitle","cta","skin","primary","buttonProps","type","ctaStyle","background","root","container","banner","left","image","middle","right","propTypes","string","shape","onClick","func","label","contextTypes","childContextTypes","memo"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,UAAP,MAAuB,2BAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,YAAY,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACvC,QAAM;AAACC,IAAAA,KAAD;AAAQC,IAAAA,QAAR;AAAkBC,IAAAA;AAAlB,MAAyBJ,KAA/B;AACA,QAAM;AAACK,IAAAA;AAAD,MAASJ,OAAf;AACA,QAAMK,OAAO,GAAGX,KAAK,CAAC,SAAD,EAAY,gBAAZ,EAA8BU,IAA9B,CAArB;;AAEA,QAAME,WAAW,yBACZH,GADY;AAEfI,IAAAA,IAAI,EAAE;AAFS,IAAjB;;AAIA,QAAMC,QAAQ,GAAG;AACfC,IAAAA,UAAU,EAAEJ;AADG,GAAjB;AAIA,sBACE;AAAK,IAAA,SAAS,EAAER,KAAK,CAACa,IAAtB;AAA4B,iBAAU;AAAtC,kBACE;AAAK,IAAA,SAAS,EAAEb,KAAK,CAACc;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEd,KAAK,CAACe;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEf,KAAK,CAACgB,IAAtB;AAA4B,IAAA,IAAI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,eAAeZ,KAAK,CAACiC,IAAN,CAAW3B,YAAX,CAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport Provider from '../../../atom/provider';\nimport ButtonLink from '../../../atom/button-link';\nimport style from './style.css';\n\nconst ReviewBanner = (props, context) => {\n const {title, subtitle, cta} = props;\n const {skin} = context;\n const primary = getOr('#00B0FF', 'common.primary', skin);\n\n const buttonProps = {\n ...cta,\n type: 'primary'\n };\n const ctaStyle = {\n background: primary\n };\n\n return (\n <div className={style.root} data-name=\"start-review-banner\">\n <div className={style.container}>\n <div className={style.banner}>\n <div className={style.left} role=\"img\" aria-label=\"Left image container\">\n <img\n className={style.image}\n src=\"https://static.coorpacademy.com/site/book.png\"\n alt=\"Book image\"\n />\n </div>\n <div className={style.middle}>\n <span className={style.title} data-name=\"review-banner-title\" aria-label=\"{title}\">\n {title}\n </span>\n <span\n className={style.subtitle}\n data-name=\"review-banner-subtitle\"\n aria-label=\"{subtitle}\"\n >\n {subtitle}\n </span>\n <ButtonLink {...buttonProps} className={style.cta} customStyle={ctaStyle} />\n </div>\n <div className={style.right} role=\"img\" aria-label=\"Rigth image container\">\n <img\n className={style.image}\n src=\"https://static.coorpacademy.com/site/dumbell.png\"\n alt=\"Dumbbell image\"\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nReviewBanner.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n cta: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string\n })\n};\n\nReviewBanner.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default React.memo(ReviewBanner);\n"],"file":"index.js"}
|