@coorpacademy/components 10.5.7-alpha.9 → 10.7.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/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/index.js +27 -27
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select/style.css +66 -0
- package/es/atom/select/test/fixtures/coorpmanager.js +11 -0
- package/es/atom/select/test/fixtures/coorpmanager.js.map +1 -0
- package/es/atom/select/test/fixtures.js +0 -0
- 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/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/index.js +3 -1
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
- package/es/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
- 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/customer.js +6 -3
- package/es/molecule/card/customer.js.map +1 -1
- package/es/molecule/card/favorite.js +13 -4
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/card/index.js +41 -12
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/selectable.js +11 -4
- package/es/molecule/card/selectable.js.map +1 -1
- package/es/molecule/card/test/fixtures/default.js +20 -1
- package/es/molecule/card/test/fixtures/default.js.map +1 -1
- package/es/molecule/card/test/fixtures.js +0 -0
- package/es/molecule/card-content/index.js +20 -7
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
- package/es/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
- 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/style.css +2 -2
- 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/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/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 +0 -0
- 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/index.js +2 -1
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/template/style.css +6 -0
- package/es/molecule/questions/template/test/fixtures.js +0 -0
- package/es/molecule/resource-player/test/fixtures.js +0 -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/style.css +4 -4
- package/es/molecule/wizard-summary/test/fixtures.js +0 -2
- 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/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/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/test/fixtures.js +0 -2
- 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/index.js +16 -3
- package/es/template/back-office/brand-list/index.js.map +1 -1
- package/es/template/back-office/brand-list/style.css +11 -5
- package/es/template/back-office/brand-list/test/fixtures/default.js +3 -3
- package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
- package/es/template/back-office/brand-list/test/fixtures/rh.js +23 -1
- package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/es/template/back-office/brand-list/test/fixtures.js +0 -0
- package/es/template/back-office/brand-update/test/fixtures.js +0 -2
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/es/template/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/variables/colors.css +2 -0
- 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/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/index.js +32 -31
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select/style.css +66 -0
- package/lib/atom/select/test/fixtures/coorpmanager.js +21 -0
- package/lib/atom/select/test/fixtures/coorpmanager.js.map +1 -0
- package/lib/atom/select/test/fixtures.js +0 -0
- 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/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/index.js +3 -1
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js +30 -26
- package/lib/molecule/brand-form-group/test/fixtures/lookandfeel.js.map +1 -1
- 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/customer.js +6 -3
- package/lib/molecule/card/customer.js.map +1 -1
- package/lib/molecule/card/favorite.js +13 -4
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/card/index.js +41 -12
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/selectable.js +11 -4
- package/lib/molecule/card/selectable.js.map +1 -1
- package/lib/molecule/card/test/fixtures/default.js +20 -1
- package/lib/molecule/card/test/fixtures/default.js.map +1 -1
- package/lib/molecule/card/test/fixtures.js +0 -0
- package/lib/molecule/card-content/index.js +21 -7
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js +6 -1
- package/lib/molecule/card-content/test/fixtures/card-no-progress-bar.js.map +1 -1
- 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/style.css +2 -2
- 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/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/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 +0 -0
- 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/index.js +2 -1
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/template/style.css +6 -0
- package/lib/molecule/questions/template/test/fixtures.js +0 -0
- package/lib/molecule/resource-player/test/fixtures.js +0 -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/style.css +4 -4
- package/lib/molecule/wizard-summary/test/fixtures.js +0 -3
- 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/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/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/test/fixtures.js +0 -3
- 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/index.js +17 -3
- package/lib/template/back-office/brand-list/index.js.map +1 -1
- package/lib/template/back-office/brand-list/style.css +11 -5
- package/lib/template/back-office/brand-list/test/fixtures/default.js +3 -3
- package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/rh.js +23 -1
- package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/lib/template/back-office/brand-list/test/fixtures.js +0 -0
- package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/template/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/variables/colors.css +2 -0
- package/package.json +2 -2
- package/es/atom/card-image-preview/test/fixtures.js +0 -15
- package/es/atom/card-image-preview/test/fixtures.js.map +0 -1
- package/es/molecule/course-section/test/fixtures.js +0 -15
- package/es/molecule/course-section/test/fixtures.js.map +0 -1
- package/es/molecule/course-sections/test/fixtures.js +0 -15
- package/es/molecule/course-sections/test/fixtures.js.map +0 -1
- package/es/molecule/draggable/test/fixtures.js +0 -13
- package/es/molecule/draggable/test/fixtures.js.map +0 -1
- package/es/molecule/draggable-list/test/fixtures.js +0 -15
- package/es/molecule/draggable-list/test/fixtures.js.map +0 -1
- package/es/organism/playlist-translation/test/fixtures.js +0 -15
- package/es/organism/playlist-translation/test/fixtures.js.map +0 -1
- package/lib/atom/card-image-preview/test/fixtures.js +0 -25
- package/lib/atom/card-image-preview/test/fixtures.js.map +0 -1
- package/lib/molecule/course-section/test/fixtures.js +0 -25
- package/lib/molecule/course-section/test/fixtures.js.map +0 -1
- package/lib/molecule/course-sections/test/fixtures.js +0 -25
- package/lib/molecule/course-sections/test/fixtures.js.map +0 -1
- package/lib/molecule/draggable/test/fixtures.js +0 -22
- package/lib/molecule/draggable/test/fixtures.js.map +0 -1
- package/lib/molecule/draggable-list/test/fixtures.js +0 -25
- package/lib/molecule/draggable-list/test/fixtures.js.map +0 -1
- package/lib/organism/playlist-translation/test/fixtures.js +0 -25
- package/lib/organism/playlist-translation/test/fixtures.js.map +0 -1
|
@@ -7,6 +7,8 @@ var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
|
|
|
7
7
|
|
|
8
8
|
var _isNil2 = _interopRequireDefault(require("lodash/fp/isNil"));
|
|
9
9
|
|
|
10
|
+
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
11
|
+
|
|
10
12
|
var _react = _interopRequireDefault(require("react"));
|
|
11
13
|
|
|
12
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -110,7 +112,8 @@ const AuthorName = ({
|
|
|
110
112
|
author,
|
|
111
113
|
empty,
|
|
112
114
|
courseContent,
|
|
113
|
-
certifiedAuthor
|
|
115
|
+
certifiedAuthor,
|
|
116
|
+
'aria-label': ariaLabel
|
|
114
117
|
}) => {
|
|
115
118
|
const checkIcon = certifiedAuthor ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidStatusCheckCircle2, {
|
|
116
119
|
className: (0, _classnames.default)(_style2.default.authorIcon, courseContent ? _style2.default.iconShadow : null),
|
|
@@ -119,6 +122,7 @@ const AuthorName = ({
|
|
|
119
122
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
120
123
|
"data-name": "author",
|
|
121
124
|
title: author,
|
|
125
|
+
"aria-label": ariaLabel,
|
|
122
126
|
className: (0, _classnames.default)(_style2.default.author, courseContent ? _style2.default.lightTitle : _style2.default.darkAuthorTitle, empty ? _style2.default.empty : null)
|
|
123
127
|
}, /*#__PURE__*/_react.default.createElement("span", null, author), checkIcon);
|
|
124
128
|
};
|
|
@@ -127,7 +131,8 @@ AuthorName.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
127
131
|
author: _propTypes.default.string,
|
|
128
132
|
empty: _propTypes.default.bool,
|
|
129
133
|
courseContent: _propTypes.default.bool,
|
|
130
|
-
certifiedAuthor: _propTypes.default.bool
|
|
134
|
+
certifiedAuthor: _propTypes.default.bool,
|
|
135
|
+
'aria-label': _propTypes.default.string
|
|
131
136
|
} : {};
|
|
132
137
|
|
|
133
138
|
const ContentInfo = ({
|
|
@@ -142,7 +147,8 @@ const ContentInfo = ({
|
|
|
142
147
|
type,
|
|
143
148
|
badgeCategory,
|
|
144
149
|
badgeLabel,
|
|
145
|
-
theme = 'default'
|
|
150
|
+
theme = 'default',
|
|
151
|
+
'aria-label': ariaLabel
|
|
146
152
|
}) => {
|
|
147
153
|
const progressBarColor = '#3EC483';
|
|
148
154
|
const inlineProgressValueStyle = {
|
|
@@ -157,10 +163,12 @@ const ContentInfo = ({
|
|
|
157
163
|
}, !disabled ? /*#__PURE__*/_react.default.createElement("div", {
|
|
158
164
|
"data-name": "progress",
|
|
159
165
|
className: _style2.default.progress,
|
|
160
|
-
style: inlineProgressValueStyle
|
|
166
|
+
style: inlineProgressValueStyle,
|
|
167
|
+
"aria-label": (0, _get2.default)('progression', ariaLabel)
|
|
161
168
|
}) : null) : null;
|
|
162
169
|
const adaptiveIcon = adaptiv ? /*#__PURE__*/_react.default.createElement("div", {
|
|
163
|
-
className: (0, _classnames.default)(_style2.default.adaptiveIcon, courseContent ? _style2.default.iconShadow : null)
|
|
170
|
+
className: (0, _classnames.default)(_style2.default.adaptiveIcon, courseContent ? _style2.default.iconShadow : null),
|
|
171
|
+
"aria-label": (0, _get2.default)('adaptive', ariaLabel)
|
|
164
172
|
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyAdaptive, {
|
|
165
173
|
height: 25
|
|
166
174
|
})) : null;
|
|
@@ -186,7 +194,8 @@ const ContentInfo = ({
|
|
|
186
194
|
author: author,
|
|
187
195
|
empty: empty,
|
|
188
196
|
courseContent: courseContent,
|
|
189
|
-
certifiedAuthor: certifiedAuthor
|
|
197
|
+
certifiedAuthor: certifiedAuthor,
|
|
198
|
+
"aria-label": (0, _get2.default)('author', ariaLabel)
|
|
190
199
|
})), progressBar);
|
|
191
200
|
};
|
|
192
201
|
|
|
@@ -205,7 +214,12 @@ ContentInfo.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
205
214
|
mode: _propTypes.default.string,
|
|
206
215
|
badgeCategory: _contentBadge.default.propTypes.category,
|
|
207
216
|
badgeLabel: _contentBadge.default.propTypes.label,
|
|
208
|
-
theme: _propTypes.default.oneOf((0, _keys2.default)(THEMES))
|
|
217
|
+
theme: _propTypes.default.oneOf((0, _keys2.default)(THEMES)),
|
|
218
|
+
'aria-label': _propTypes.default.shape({
|
|
219
|
+
author: _propTypes.default.string,
|
|
220
|
+
progression: _propTypes.default.string,
|
|
221
|
+
adaptive: _propTypes.default.string
|
|
222
|
+
})
|
|
209
223
|
} : {};
|
|
210
224
|
var _default = ContentInfo;
|
|
211
225
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["MODES","HERO","CARD","THEMES","default","coorpmanager","style","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","timerIcon","microLearninglabel","EXTERNAL_CONTENT_ICONS","textColor","color","contentTypeInfo","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","bool","string","CardTitle","title","empty","courseContent","innerHTML","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","theme","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","number","ContentBadge","category","label","o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BAAa3C,SAAb,CAAuB6C,KAXb;AAYtBpB,EAAAA,KAAK,EAAExB,mBAAU6C,KAAV,CAAgB,oBAAKnE,MAAL,CAAhB;AAZe,CAAxB;eAeewC,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport {innerHTML} from '../../atom/label/style.css';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon className={style.timerIcon} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default'\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div data-name=\"progress\" className={style.progress} style={inlineProgressValueStyle} />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES))\n};\n\nexport default ContentInfo;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["MODES","HERO","CARD","THEMES","default","coorpmanager","style","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","timerIcon","microLearninglabel","EXTERNAL_CONTENT_ICONS","textColor","color","contentTypeInfo","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","bool","string","CardTitle","title","empty","courseContent","innerHTML","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","ariaLabel","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","theme","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardIn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UC,IALK;AAMtBqB,EAAAA,QAAQ,EAAEtB,mBAAU0C,MANE;AAOtBtC,EAAAA,KAAK,EAAEJ,mBAAUE,MAPK;AAQtBlB,EAAAA,IAAI,EAAEgB,mBAAUE,MARM;AAStBnB,EAAAA,IAAI,EAAEiB,mBAAUE,MATM;AAUtBqB,EAAAA,aAAa,EAAEoB,sBAAa5C,SAAb,CAAuB6C,QAVhB;AAWtBpB,EAAAA,UAAU,EAAEmB,sBAAa5C,SAAb,CAAuB8C,KAXb;AAYtBpB,EAAAA,KAAK,EAAEzB,mBAAU8C,KAAV,CAAgB,oBAAKpE,MAAL,CAAhB,CAZe;AAatB,gBAAcsB,mBAAU+C,KAAV,CAAgB;AAC5BnC,IAAAA,MAAM,EAAEZ,mBAAUE,MADU;AAE5B8C,IAAAA,WAAW,EAAEhD,mBAAUE,MAFK;AAG5B+C,IAAAA,QAAQ,EAAEjD,mBAAUE;AAHQ,GAAhB;AAbQ,CAAxB;eAoBeiB,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport {innerHTML} from '../../atom/label/style.css';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon className={style.timerIcon} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor, 'aria-label': ariaLabel}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n aria-label={ariaLabel}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': ariaLabel\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n aria-label={get('progression', ariaLabel)}\n />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div\n className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}\n aria-label={get('adaptive', ariaLabel)}\n >\n <AdaptivIcon height={25} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n aria-label={get('author', ariaLabel)}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.shape({\n author: PropTypes.string,\n progression: PropTypes.string,\n adaptive: PropTypes.string\n })\n};\n\nexport default ContentInfo;\n"],"file":"index.js"}
|
|
@@ -9,7 +9,12 @@ var _default = {
|
|
|
9
9
|
props: {
|
|
10
10
|
mode: _.MODES.CARD,
|
|
11
11
|
author: 'Coorpcademy',
|
|
12
|
-
title: '<p align="right">From Mass Market to One to One targeting</p>'
|
|
12
|
+
title: '<p align="right">From Mass Market to One to One targeting</p>',
|
|
13
|
+
'aria-label': {
|
|
14
|
+
author: 'auther name',
|
|
15
|
+
progression: 'you have done 65% of the course',
|
|
16
|
+
adaptive: 'this is an adaptive course'
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
};
|
|
15
20
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/card-no-progress-bar.js"],"names":["props","mode","MODES","CARD","author","title"],"mappings":";;;;;AAAA;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAEC,QAAMC,IADP;AAELC,IAAAA,MAAM,EAAE,aAFH;AAGLC,IAAAA,KAAK,EAAE;
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/card-content/test/fixtures/card-no-progress-bar.js"],"names":["props","mode","MODES","CARD","author","title","progression","adaptive"],"mappings":";;;;;AAAA;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAEC,QAAMC,IADP;AAELC,IAAAA,MAAM,EAAE,aAFH;AAGLC,IAAAA,KAAK,EAAE,+DAHF;AAIL,kBAAc;AACZD,MAAAA,MAAM,EAAE,aADI;AAEZE,MAAAA,WAAW,EAAE,iCAFD;AAGZC,MAAAA,QAAQ,EAAE;AAHE;AAJT;AADM,C","sourcesContent":["import {MODES} from '../..';\n\nexport default {\n props: {\n mode: MODES.CARD,\n author: 'Coorpcademy',\n title: '<p align=\"right\">From Mass Market to One to One targeting</p>',\n 'aria-label': {\n author: 'auther name',\n progression: 'you have done 65% of the course',\n adaptive: 'this is an adaptive course'\n }\n }\n};\n"],"file":"card-no-progress-bar.js"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
border-radius: 7px;
|
|
11
11
|
display: flex;
|
|
12
12
|
font-size: 14px;
|
|
13
|
-
justify-content: start;
|
|
13
|
+
justify-content: flex-start;
|
|
14
14
|
margin-top: 8px;
|
|
15
15
|
padding: 8px 16px;
|
|
16
16
|
border-radius: 7px;
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
.containerImage {
|
|
64
64
|
min-height: 56px;
|
|
65
65
|
min-width: 56px;
|
|
66
|
-
}
|
|
66
|
+
}
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -38,7 +38,8 @@ const Template = ({
|
|
|
38
38
|
|
|
39
39
|
if (type === 'string') {
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
41
|
-
key: key
|
|
41
|
+
key: key,
|
|
42
|
+
className: _style.default.textPart // eslint-disable-next-line react/no-danger
|
|
42
43
|
,
|
|
43
44
|
dangerouslySetInnerHTML: {
|
|
44
45
|
__html: part.value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/questions/template/index.js"],"names":["Template","template","answers","totalTemplate","templateCompose","convert","cap","part","key","type","__html","value","field","name","fieldType","fieldProps","fieldView","
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/questions/template/index.js"],"names":["Template","template","answers","totalTemplate","templateCompose","convert","cap","part","key","type","style","textPart","__html","value","field","name","fieldType","fieldProps","fieldView","text","answerType","wrapper","TextPropTypes","DropDown","propTypes","PropTypes","string","arrayOf","oneOfType","shape"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,QAAQ,GAAG,CAAC;AAACC,EAAAA,QAAD;AAAWC,EAAAA;AAAX,CAAD,KAAyB;AACxC,QAAMC,aAAa,GAAG,kCAAoBF,QAApB,CAAtB;;AACA,QAAMG,eAAe,GAAG,cAAIC,OAAJ,CAAY;AAACC,IAAAA,GAAG,EAAE;AAAN,GAAZ,EAA0B,CAACC,IAAD,EAAOC,GAAP,KAAe;AAC/D,UAAMC,IAAI,GAAGF,IAAI,CAACE,IAAlB;;AACA,QAAIA,IAAI,KAAK,QAAb,EAAuB;AACrB,0BACE;AACE,QAAA,GAAG,EAAED,GADP;AAEE,QAAA,SAAS,EAAEE,eAAMC,QAFnB,CAGE;AAHF;AAIE,QAAA,uBAAuB,EAAE;AAACC,UAAAA,MAAM,EAAEL,IAAI,CAACM;AAAd;AAJ3B,QADF;AAQD;;AACD,QAAIJ,IAAI,KAAK,aAAb,EAA4B;AAC1B,YAAMK,KAAK,GAAG,oBAAK;AAACC,QAAAA,IAAI,EAAER,IAAI,CAACM;AAAZ,OAAL,EAAyBX,OAAzB,CAAd;AACA,UAAI,CAACY,KAAL,EAAY,OAAO,IAAP;;AACZ,YAAM;AAACL,QAAAA,IAAI,EAAEO;AAAP,UAAmCF,KAAzC;AAAA,YAA2BG,UAA3B,iCAAyCH,KAAzC;;AACA,YAAMI,SAAS,GACbF,SAAS,KAAK,MAAd,gBACE,6BAAC,iBAAD,eAAcC,UAAd;AAA0B,QAAA,SAAS,EAAEP,eAAMS;AAA3C,SADF,gBAGE,6BAAC,iBAAD,eAAcF,UAAd;AAA0B,QAAA,KAAK,EAAC;AAAhC,SAJJ;AAOA,0BACE;AAAK,QAAA,SAAS,EAAEP,eAAMU,UAAtB;AAAkC,QAAA,GAAG,EAAEb,IAAI,CAACM;AAA5C,SACGK,SADH,CADF;AAKD;AACF,GA7BuB,EA6BrBf,aA7BqB,CAAxB;;AA+BA,sBACE;AAAK,iBAAU,kBAAf;AAAkC,IAAA,SAAS,EAAEO,eAAMW;AAAnD,KACGjB,eADH,CADF;AAKD,CAtCD;;AAwCA,MAAMkB,aAAN,iEACKC,kBAASC,SADd;AAEEf,EAAAA,IAAI,EAAEgB,mBAAUC;AAFlB;AAKA1B,QAAQ,CAACwB,SAAT,2CAAqB;AACnBvB,EAAAA,QAAQ,EAAEwB,mBAAUC,MADD;AAEnBxB,EAAAA,OAAO,EAAEuB,mBAAUE,OAAV,CACPF,mBAAUG,SAAV,CAAoB,CAACH,mBAAUI,KAAV,CAAgBN,kBAASC,SAAzB,CAAD,EAAsCC,mBAAUI,KAAV,CAAgBP,aAAhB,CAAtC,CAApB,CADO;AAFU,CAArB;eAOetB,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, find} from 'lodash/fp';\nimport parseTemplateString from '../../../util/parse-template-string';\nimport DropDown from '../drop-down';\nimport FreeText from '../free-text';\nimport style from './style.css';\n\nconst Template = ({template, answers}) => {\n const totalTemplate = parseTemplateString(template);\n const templateCompose = map.convert({cap: false})((part, key) => {\n const type = part.type;\n if (type === 'string') {\n return (\n <span\n key={key}\n className={style.textPart}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: part.value}}\n />\n );\n }\n if (type === 'answerField') {\n const field = find({name: part.value}, answers);\n if (!field) return null;\n const {type: fieldType, ...fieldProps} = field;\n const fieldView =\n fieldType === 'text' ? (\n <FreeText {...fieldProps} className={style.text} />\n ) : (\n <DropDown {...fieldProps} theme=\"player\" />\n );\n\n return (\n <div className={style.answerType} key={part.value}>\n {fieldView}\n </div>\n );\n }\n }, totalTemplate);\n\n return (\n <div data-name=\"template-wrapper\" className={style.wrapper}>\n {templateCompose}\n </div>\n );\n};\n\nconst TextPropTypes = {\n ...DropDown.propTypes,\n type: PropTypes.string\n};\n\nTemplate.propTypes = {\n template: PropTypes.string,\n answers: PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.shape(DropDown.propTypes), PropTypes.shape(TextPropTypes)])\n )\n};\n\nexport default Template;\n"],"file":"index.js"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
2
|
@value mobile from breakpoints;
|
|
3
3
|
@value tablet from breakpoints;
|
|
4
|
+
@value colors: "../../../variables/colors.css";
|
|
5
|
+
@value cm_blue_900 from colors;
|
|
4
6
|
|
|
5
7
|
.wrapper {
|
|
6
8
|
display: block;
|
|
@@ -15,6 +17,10 @@
|
|
|
15
17
|
text-align: center;
|
|
16
18
|
}
|
|
17
19
|
|
|
20
|
+
.textPart {
|
|
21
|
+
color: cm_blue_900;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
.answerType {
|
|
19
25
|
display: inline-block;
|
|
20
26
|
margin: 4px 0 8px;
|
|
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
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
text-align: center;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
ul {
|
|
136
|
+
.container ul {
|
|
137
137
|
list-style: none;
|
|
138
138
|
padding: 0px;
|
|
139
139
|
margin: 0px;
|
|
@@ -215,7 +215,7 @@ ul {
|
|
|
215
215
|
margin: 0px;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
label {
|
|
218
|
+
.container label {
|
|
219
219
|
width: 100%;
|
|
220
220
|
right: 0px;
|
|
221
221
|
display: flex;
|
|
@@ -223,11 +223,11 @@ ul {
|
|
|
223
223
|
cursor: pointer;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
label .tabletSummaryTitle{
|
|
226
|
+
.container label .tabletSummaryTitle{
|
|
227
227
|
flex: 0 1 100%;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
label .tabletSummaryIcon{
|
|
230
|
+
.container label .tabletSummaryIcon{
|
|
231
231
|
width: 12px;
|
|
232
232
|
transition: all 0.5s ease;
|
|
233
233
|
}
|
|
@@ -12,8 +12,6 @@ var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
|
12
12
|
|
|
13
13
|
var _oneSection = _interopRequireDefault(require("./fixtures/one-section"));
|
|
14
14
|
|
|
15
|
-
var _organizeCourses = _interopRequireDefault(require("./fixtures/organize-courses"));
|
|
16
|
-
|
|
17
15
|
var _tabletClosed = _interopRequireDefault(require("./fixtures/tablet-closed"));
|
|
18
16
|
|
|
19
17
|
var _threeSections = _interopRequireDefault(require("./fixtures/three-sections"));
|
|
@@ -30,7 +28,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
30
28
|
});
|
|
31
29
|
(0, _ava.default)('Molecule › MoleculeWizardSummary › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
32
30
|
(0, _ava.default)('Molecule › MoleculeWizardSummary › OneSection › should be rendered', _renderComponent.default, _.default, _oneSection.default);
|
|
33
|
-
(0, _ava.default)('Molecule › MoleculeWizardSummary › OrganizeCourses › should be rendered', _renderComponent.default, _.default, _organizeCourses.default);
|
|
34
31
|
(0, _ava.default)('Molecule › MoleculeWizardSummary › TabletClosed › should be rendered', _renderComponent.default, _.default, _tabletClosed.default);
|
|
35
32
|
(0, _ava.default)('Molecule › MoleculeWizardSummary › ThreeSections › should be rendered', _renderComponent.default, _.default, _threeSections.default);
|
|
36
33
|
(0, _ava.default)('Molecule › MoleculeWizardSummary › TwoSections › should be rendered', _renderComponent.default, _.default, _twoSections.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/wizard-summary/test/fixtures.js"],"names":["t","pass","MoleculeWizardSummary","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureOneSection","
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/wizard-summary/test/fixtures.js"],"names":["t","pass","MoleculeWizardSummary","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureOneSection","fixtureTabletClosed","fixtureThreeSections","fixtureTwoSections"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,gEAAL,EAAuEA,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAsBC,SAA9B,EAAyC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,iEAAL,EAAwEG,wBAAxE,EAA8FN,SAA9F,EAAqHO,gBAArH;AACA,kBAAK,oEAAL,EAA2ED,wBAA3E,EAAiGN,SAAjG,EAAwHQ,mBAAxH;AACA,kBAAK,sEAAL,EAA6EF,wBAA7E,EAAmGN,SAAnG,EAA0HS,qBAA1H;AACA,kBAAK,uEAAL,EAA8EH,wBAA9E,EAAoGN,SAApG,EAA2HU,sBAA3H;AACA,kBAAK,qEAAL,EAA4EJ,wBAA5E,EAAkGN,SAAlG,EAAyHW,oBAAzH","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeWizardSummary from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureOneSection from './fixtures/one-section';\nimport fixtureTabletClosed from './fixtures/tablet-closed';\nimport fixtureThreeSections from './fixtures/three-sections';\nimport fixtureTwoSections from './fixtures/two-sections';\n\ntest('Molecule › MoleculeWizardSummary > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeWizardSummary.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeWizardSummary.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeWizardSummary › Default › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureDefault);\ntest('Molecule › MoleculeWizardSummary › OneSection › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureOneSection);\ntest('Molecule › MoleculeWizardSummary › TabletClosed › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureTabletClosed);\ntest('Molecule › MoleculeWizardSummary › ThreeSections › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureThreeSections);\ntest('Molecule › MoleculeWizardSummary › TwoSections › should be rendered', renderComponentMacro, MoleculeWizardSummary, fixtureTwoSections);\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
|
|
@@ -14,8 +14,6 @@ var _playlistGeneralSettingsCreate = _interopRequireDefault(require("./fixtures/
|
|
|
14
14
|
|
|
15
15
|
var _playlistGeneralSettingsEdit = _interopRequireDefault(require("./fixtures/playlist-general-settings-edit"));
|
|
16
16
|
|
|
17
|
-
var _playlistOrganizeCourses = _interopRequireDefault(require("./fixtures/playlist-organize-courses"));
|
|
18
|
-
|
|
19
17
|
var _playlistPopulationsCreate = _interopRequireDefault(require("./fixtures/playlist-populations-create"));
|
|
20
18
|
|
|
21
19
|
var _playlistTranslateEdit = _interopRequireDefault(require("./fixtures/playlist-translate-edit"));
|
|
@@ -31,7 +29,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
31
29
|
(0, _ava.default)('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', _renderComponent.default, _.default, _playlistAddCoursesCreate.default);
|
|
32
30
|
(0, _ava.default)('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', _renderComponent.default, _.default, _playlistGeneralSettingsCreate.default);
|
|
33
31
|
(0, _ava.default)('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', _renderComponent.default, _.default, _playlistGeneralSettingsEdit.default);
|
|
34
|
-
(0, _ava.default)('Organism › OrganismWizardContents › PlaylistOrganizeCourses › should be rendered', _renderComponent.default, _.default, _playlistOrganizeCourses.default);
|
|
35
32
|
(0, _ava.default)('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', _renderComponent.default, _.default, _playlistPopulationsCreate.default);
|
|
36
33
|
(0, _ava.default)('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', _renderComponent.default, _.default, _playlistTranslateEdit.default);
|
|
37
34
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["t","pass","OrganismWizardContents","propTypes","value","key","not","undefined","renderComponentMacro","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["t","pass","OrganismWizardContents","propTypes","value","key","not","undefined","renderComponentMacro","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,iEAAL,EAAwEA,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAuBC,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,mFAAL,EAA0FG,wBAA1F,EAAgHN,SAAhH,EAAwIO,iCAAxI;AACA,kBAAK,wFAAL,EAA+FD,wBAA/F,EAAqHN,SAArH,EAA6IQ,sCAA7I;AACA,kBAAK,sFAAL,EAA6FF,wBAA7F,EAAmHN,SAAnH,EAA2IS,oCAA3I;AACA,kBAAK,oFAAL,EAA2FH,wBAA3F,EAAiHN,SAAjH,EAAyIU,kCAAzI;AACA,kBAAK,gFAAL,EAAuFJ,wBAAvF,EAA6GN,SAA7G,EAAqIW,8BAArI","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\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
|