@coorpacademy/components 10.3.24 → 10.3.27-alpha.25
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/error.js +1 -1
- package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
- package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
- package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
- package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
- package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/clue/test/see-clue.js +33 -0
- package/es/atom/clue/test/see-clue.js.map +1 -1
- package/es/atom/content-badge/test/fixtures.js +2 -0
- package/es/atom/content-badge/test/fixtures.js.map +1 -1
- package/es/atom/cta/test/fixtures/certification.js +1 -1
- package/es/atom/cta/test/fixtures/certification.js.map +1 -1
- package/es/atom/cta/test/fixtures/disabled.js +1 -1
- package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
- package/es/atom/cta/test/fixtures/light-small.js +1 -1
- package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/light.js +1 -1
- package/es/atom/cta/test/fixtures/light.js.map +1 -1
- package/es/atom/cta/test/fixtures/logout.js +1 -1
- package/es/atom/cta/test/fixtures/logout.js.map +1 -1
- package/es/atom/cta/test/fixtures/primary-small.js +1 -1
- package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
- package/es/atom/cta/test/fixtures/rectangular.js +1 -1
- package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
- package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
- package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
- package/es/atom/cta/test/fixtures/secondary.js +1 -1
- package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
- package/es/atom/drag-and-drop/index.js +1 -1
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
- package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
- package/es/atom/image-upload/index.js +1 -1
- package/es/atom/image-upload/index.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
- package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/email.js +1 -1
- package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
- package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/modified.js +1 -1
- package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
- package/es/atom/input-html/index.js.map +1 -1
- package/es/atom/input-switch/index.js +13 -6
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-switch/style.css +46 -0
- package/es/atom/input-switch/test/fixtures/cm-left.js +11 -0
- package/es/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
- package/es/atom/input-switch/test/fixtures/cm-right-checked.js +11 -0
- package/es/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
- package/es/atom/input-switch/test/fixtures/cm-right-disabled.js +11 -0
- package/es/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
- package/es/atom/input-switch/test/fixtures/cm-right-modified.js +12 -0
- package/es/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
- package/es/atom/input-switch/test/fixtures/cm-right.js +11 -0
- package/es/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
- package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
- package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
- package/es/atom/input-switch/test/fixtures.js +10 -0
- package/es/atom/input-switch/test/fixtures.js.map +1 -1
- package/es/atom/link/index.js +3 -2
- package/es/atom/link/index.js.map +1 -1
- package/es/atom/promo-code/index.js.map +1 -1
- package/es/atom/provider/index.js +1 -1
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/provider/test/index.js +1 -1
- package/es/atom/provider/test/index.js.map +1 -1
- package/es/atom/range/index.js +1 -1
- package/es/atom/range/index.js.map +1 -1
- package/es/atom/range/test/fixtures/multi.js +1 -1
- package/es/atom/range/test/fixtures/multi.js.map +1 -1
- package/es/atom/range/test/index.js +9 -9
- package/es/atom/range/test/index.js.map +1 -1
- package/es/atom/video-upload/index.js +1 -1
- package/es/atom/video-upload/index.js.map +1 -1
- package/es/atom/video-upload/test/fixtures/loading.js +1 -1
- package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
- package/es/atom/video-upload/test/fixtures/modified.js +1 -1
- package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
- package/es/hoc/animation-scheduler/index.js +3 -3
- package/es/hoc/animation-scheduler/index.js.map +1 -1
- package/es/hoc/swapper/index.js +4 -2
- package/es/hoc/swapper/index.js.map +1 -1
- package/es/hoc/transition/index.js +1 -1
- package/es/hoc/transition/index.js.map +1 -1
- package/es/molecule/add-to-my-list/index.js +1 -1
- package/es/molecule/add-to-my-list/index.js.map +1 -1
- package/es/molecule/answer/index.js +3 -2
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/answer/test/fixtures/audio.js +1 -1
- package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
- package/es/molecule/answer/test/fixtures/default.js +1 -1
- package/es/molecule/answer/test/fixtures/default.js.map +1 -1
- package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
- package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm.js +1 -1
- package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
- package/es/molecule/answer/test/fixtures/range.js +1 -1
- package/es/molecule/answer/test/fixtures/range.js.map +1 -1
- package/es/molecule/answer/test/fixtures/template.js +1 -1
- package/es/molecule/answer/test/fixtures/template.js.map +1 -1
- package/es/molecule/banner/style.css +1 -0
- package/es/molecule/banner/test/fixtures/default.js +1 -1
- package/es/molecule/banner/test/fixtures/default.js.map +1 -1
- package/es/molecule/banner/test/fixtures.js +8 -0
- package/es/molecule/banner/test/fixtures.js.map +1 -1
- package/es/molecule/brand-form-group/index.js +18 -18
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
- package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
- package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
- package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
- package/es/molecule/card/customer.css +61 -3
- package/es/molecule/card/customer.js +17 -5
- package/es/molecule/card/customer.js.map +1 -1
- package/es/molecule/card/index.js +16 -6
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/style.css +86 -24
- package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
- package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
- package/es/molecule/card/test/fixtures/coorpmanager.js +18 -0
- package/es/molecule/card/test/fixtures/coorpmanager.js.map +1 -0
- package/es/molecule/card/test/fixtures/disabled.js +1 -1
- package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
- package/es/molecule/card-content/index.js +11 -5
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-content/style.css +52 -0
- package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
- package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
- package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
- package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
- package/es/molecule/card-with-button/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +1 -0
- package/es/molecule/coorp-manager-roles/index.js +1 -1
- package/es/molecule/coorp-manager-roles/index.js.map +1 -1
- package/es/molecule/dashboard/battle-request-list/index.js +1 -1
- package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/index.js +1 -1
- package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
- package/es/molecule/dashboard/news-list/index.js +1 -1
- package/es/molecule/dashboard/news-list/index.js.map +1 -1
- package/es/molecule/dashboard/start-battle/index.js +1 -1
- package/es/molecule/dashboard/start-battle/index.js.map +1 -1
- package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
- package/es/molecule/drag-and-drop/index.js +1 -1
- package/es/molecule/drag-and-drop/index.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
- package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
- package/es/molecule/drag-and-drop/test/on-click.js +2 -2
- package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
- package/es/molecule/drag-and-drop/upload-report.js +1 -1
- package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/es/molecule/feedback/index.js +1 -1
- package/es/molecule/feedback/index.js.map +1 -1
- package/es/molecule/filters/test/fixtures/default.js +4 -4
- package/es/molecule/filters/test/fixtures/default.js.map +1 -1
- package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
- package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
- package/es/molecule/filters/test/fixtures/one.js +2 -2
- package/es/molecule/filters/test/fixtures/one.js.map +1 -1
- package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
- package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
- package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
- package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
- package/es/molecule/filters/test/fixtures/three.js +3 -3
- package/es/molecule/filters/test/fixtures/three.js.map +1 -1
- package/es/molecule/filters/test/fixtures/two.js +3 -3
- package/es/molecule/filters/test/fixtures/two.js.map +1 -1
- package/es/molecule/filters/test/fixtures/zero.js +1 -1
- package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
- package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
- package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
- package/es/molecule/hero/test/fixtures/arabic.js +1 -1
- package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
- package/es/molecule/hero/test/fixtures/hero.js +1 -1
- package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
- package/es/molecule/news/test/fixtures/long-description.js +1 -1
- package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
- package/es/molecule/news/test/fixtures/long-title.js +1 -1
- package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
- package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
- package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
- package/es/molecule/news/test/fixtures/small-title.js +1 -1
- package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
- package/es/molecule/popin/index.js +1 -1
- package/es/molecule/popin/index.js.map +1 -1
- package/es/molecule/progress-bar/index.js +1 -1
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/questions/drop-down/index.js +1 -1
- package/es/molecule/questions/drop-down/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.js +3 -2
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.js +2 -2
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/template/test/index.js +1 -1
- package/es/molecule/questions/template/test/index.js.map +1 -1
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/resource-player/index.js +2 -1
- package/es/molecule/resource-player/index.js.map +1 -1
- package/es/molecule/select-multiple/index.js +3 -3
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/select-multiple/style.css +2 -1
- package/es/molecule/select-multiple/test/fixtures.js +8 -0
- package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
- package/es/molecule/select-multiple/test/index.js +2 -2
- package/es/molecule/select-multiple/test/index.js.map +1 -1
- package/es/molecule/setup-section/index.js +1 -1
- package/es/molecule/setup-section/index.js.map +1 -1
- package/es/molecule/setup-section/test/fixtures/first.js +1 -1
- package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
- package/es/molecule/setup-slide/index.js +8 -8
- package/es/molecule/setup-slide/index.js.map +1 -1
- package/es/molecule/share/index.js +1 -1
- package/es/molecule/share/index.js.map +1 -1
- package/es/molecule/video-iframe/index.js +1 -1
- package/es/molecule/video-iframe/index.js.map +1 -1
- package/es/molecule/video-player/index.js +3 -1
- package/es/molecule/video-player/index.js.map +1 -1
- package/es/molecule/video-player/jwplayer.js +2 -2
- package/es/molecule/video-player/jwplayer.js.map +1 -1
- package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
- package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
- package/es/molecule/video-player/vimeo.js +1 -1
- package/es/molecule/video-player/vimeo.js.map +1 -1
- package/es/molecule/wizard-summary/index.js +30 -3
- package/es/molecule/wizard-summary/index.js.map +1 -1
- package/es/molecule/wizard-summary/style.css +1 -1
- package/es/organism/accordion/coorp-manager/index.js +1 -1
- package/es/organism/accordion/coorp-manager/index.js.map +1 -1
- package/es/organism/accordion/toggler/index.js +1 -1
- package/es/organism/accordion/toggler/index.js.map +1 -1
- package/es/organism/accordion/toggler/test/render.js +2 -2
- package/es/organism/accordion/toggler/test/render.js.map +1 -1
- package/es/organism/brand-form/test/fixtures/sso.js +3 -3
- package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
- package/es/organism/content-translation/index.js +2 -2
- package/es/organism/content-translation/index.js.map +1 -1
- package/es/organism/content-translation/style.css +1 -0
- package/es/organism/content-translation/test/fixtures/default.js +2 -2
- package/es/organism/content-translation/test/fixtures/default.js.map +1 -1
- package/es/organism/content-translation/test/fixtures.js +15 -0
- package/es/organism/content-translation/test/fixtures.js.map +1 -0
- package/es/organism/course-selection/index.js +26 -9
- package/es/organism/course-selection/index.js.map +1 -1
- package/es/organism/course-selection/style.css +11 -3
- package/es/organism/course-selection/test/fixtures/default.js +44 -13
- package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/empty.js +9 -0
- package/es/organism/course-selection/test/fixtures/empty.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/filtered.js +11 -3
- package/es/organism/course-selection/test/fixtures/filtered.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
- package/es/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/switch-activated.js +23 -0
- package/es/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
- package/es/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
- package/es/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
- package/es/organism/course-selection/test/fixtures.js +2 -0
- package/es/organism/course-selection/test/fixtures.js.map +1 -1
- package/es/organism/discussion/test/fixtures/default.js +1 -1
- package/es/organism/discussion/test/fixtures/default.js.map +1 -1
- package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
- package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
- package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
- package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
- package/es/organism/get-the-app/index.js +2 -2
- package/es/organism/get-the-app/index.js.map +1 -1
- package/es/organism/list-item/test/fixtures.js +19 -0
- package/es/organism/list-item/test/fixtures.js.map +1 -0
- package/es/organism/list-items/test/fixtures/archived.js +1 -1
- package/es/organism/list-items/test/fixtures/archived.js.map +1 -1
- package/es/organism/list-items/test/fixtures/draft.js +1 -1
- package/es/organism/list-items/test/fixtures/draft.js.map +1 -1
- package/es/organism/list-items/test/fixtures/published.js +2 -2
- package/es/organism/list-items/test/fixtures/published.js.map +1 -1
- package/es/organism/list-items/test/fixtures.js +17 -0
- package/es/organism/list-items/test/fixtures.js.map +1 -0
- package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
- package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
- package/es/organism/mooc-footer/style.css +1 -0
- package/es/organism/mooc-header/test/fixtures/default.js +1 -1
- package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- package/es/organism/popin/test/fixtures/default.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
- package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
- package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
- package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
- package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
- package/es/organism/search-and-chips-results/index.js +11 -4
- package/es/organism/search-and-chips-results/index.js.map +1 -1
- package/es/organism/search-and-chips-results/style.css +7 -1
- package/es/organism/search-and-chips-results/test/fixtures/default.js +1 -0
- package/es/organism/search-and-chips-results/test/fixtures/default.js.map +1 -1
- package/es/organism/settings/index.js +3 -2
- package/es/organism/settings/index.js.map +1 -1
- package/es/organism/sidebar/index.js +11 -10
- package/es/organism/sidebar/index.js.map +1 -1
- package/es/organism/user-preferences/index.js +3 -2
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/wizard-contents/index.js +8 -9
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/style.css +11 -15
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures.js +21 -0
- package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
- package/es/template/activity/index.js +1 -1
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/test/progression-item-test.js +1 -1
- package/es/template/activity/test/progression-item-test.js.map +1 -1
- package/es/template/app-player/player/slides/footer/index.js +1 -1
- package/es/template/app-player/player/slides/footer/index.js.map +1 -1
- package/es/template/app-player/player/slides/index.js +14 -11
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
- package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
- package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
- package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
- package/es/template/app-player/player/test/fixtures/background.js +1 -1
- package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +3 -2
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
- package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
- package/es/template/app-player/popin-end/summary.js +11 -7
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
- package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
- package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
- package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
- package/es/template/app-player/popin-header/index.js +4 -3
- package/es/template/app-player/popin-header/index.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
- package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
- package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
- package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
- 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 +1 -1
- package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +13 -11
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +4 -0
- package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/loader.js +6 -2
- package/es/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +2 -2
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +50 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures.js +20 -2
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/es/template/cockpit/jw-uploader/index.js +1 -1
- package/es/template/cockpit/jw-uploader/index.js.map +1 -1
- package/es/template/common/dashboard/index.js +1 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
- package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
- package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
- package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
- package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
- package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/default.js +2 -2
- package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
- package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
- package/es/template/common/discipline/test/fixtures/share.js +1 -1
- package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
- package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
- package/es/util/shallow-compare.js.map +1 -1
- package/es/util/test/navigation.js +4 -3
- package/es/util/test/navigation.js.map +1 -1
- package/lib/atom/autocomplete/index.js +2 -2
- package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
- package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
- package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
- package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
- package/lib/atom/button-link/index.js +2 -2
- package/lib/atom/button-link-icon-only/index.js +2 -2
- package/lib/atom/button-menu/index.js +2 -2
- package/lib/atom/button-menu/test/fixtures/default.js +1 -1
- package/lib/atom/button-menu/test/fixtures/multiple-buttons.js +1 -1
- package/lib/atom/chips/index.js +2 -2
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/clue/test/see-clue.js +34 -0
- package/lib/atom/clue/test/see-clue.js.map +1 -1
- package/lib/atom/content-badge/test/fixtures.js +3 -0
- package/lib/atom/content-badge/test/fixtures.js.map +1 -1
- package/lib/atom/cta/test/fixtures/certification.js +1 -1
- package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
- package/lib/atom/cta/test/fixtures/disabled.js +1 -1
- package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
- package/lib/atom/cta/test/fixtures/light-small.js +1 -1
- package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/light.js +1 -1
- package/lib/atom/cta/test/fixtures/light.js.map +1 -1
- package/lib/atom/cta/test/fixtures/logout.js +1 -1
- package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
- package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
- package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
- package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
- package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
- package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
- package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
- package/lib/atom/cta/test/fixtures/secondary.js +1 -1
- package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
- package/lib/atom/drag-and-drop/index.js +1 -1
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
- package/lib/atom/image-upload/index.js +3 -3
- package/lib/atom/image-upload/index.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/email.js +1 -1
- package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
- package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
- package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
- package/lib/atom/input-checkbox/index.js +2 -2
- package/lib/atom/input-color/index.js +2 -2
- package/lib/atom/input-doublestep/index.js +2 -2
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-search/index.js +2 -2
- package/lib/atom/input-switch/index.js +15 -8
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-switch/style.css +46 -0
- package/lib/atom/input-switch/test/fixtures/cm-left.js +16 -0
- package/lib/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
- package/lib/atom/input-switch/test/fixtures/cm-right-checked.js +16 -0
- package/lib/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
- package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js +20 -0
- package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
- package/lib/atom/input-switch/test/fixtures/cm-right-modified.js +17 -0
- package/lib/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
- package/lib/atom/input-switch/test/fixtures/cm-right.js +16 -0
- package/lib/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
- package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
- package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
- package/lib/atom/input-switch/test/fixtures.js +15 -0
- package/lib/atom/input-switch/test/fixtures.js.map +1 -1
- package/lib/atom/input-text/index.js +2 -2
- package/lib/atom/input-textarea/index.js +2 -2
- package/lib/atom/link/index.js +4 -2
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/promo-code/index.js.map +1 -1
- package/lib/atom/provider/index.js +1 -1
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/provider/test/index.js +1 -1
- package/lib/atom/provider/test/index.js.map +1 -1
- package/lib/atom/range/index.js +1 -1
- package/lib/atom/range/index.js.map +1 -1
- package/lib/atom/range/test/fixtures/multi.js +1 -1
- package/lib/atom/range/test/fixtures/multi.js.map +1 -1
- package/lib/atom/range/test/index.js +9 -9
- package/lib/atom/range/test/index.js.map +1 -1
- package/lib/atom/select/index.js +2 -2
- package/lib/atom/tab/index.js +2 -2
- package/lib/atom/video-upload/index.js +1 -1
- package/lib/atom/video-upload/index.js.map +1 -1
- package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
- package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
- package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
- package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
- package/lib/hoc/animation/index.js +1 -1
- package/lib/hoc/animation/test/on-mount.js +2 -2
- package/lib/hoc/animation-scheduler/index.js +4 -4
- package/lib/hoc/animation-scheduler/index.js.map +1 -1
- package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
- package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
- package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
- package/lib/hoc/swapper/index.js +5 -3
- package/lib/hoc/swapper/index.js.map +1 -1
- package/lib/hoc/swapper/test/on-mount.js +2 -2
- package/lib/hoc/transition/index.js +3 -3
- package/lib/hoc/transition/index.js.map +1 -1
- package/lib/molecule/add-to-my-list/index.js +4 -4
- package/lib/molecule/add-to-my-list/index.js.map +1 -1
- package/lib/molecule/answer/index.js +5 -3
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/audio.js +1 -1
- package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/default.js +1 -1
- package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
- package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
- package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/range.js +1 -1
- package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/template.js +1 -1
- package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
- package/lib/molecule/banner/style.css +1 -0
- package/lib/molecule/banner/test/fixtures/default.js +1 -1
- package/lib/molecule/banner/test/fixtures/default.js.map +1 -1
- package/lib/molecule/banner/test/fixtures.js +12 -0
- package/lib/molecule/banner/test/fixtures.js.map +1 -1
- package/lib/molecule/brand-create-form/index.js +2 -2
- package/lib/molecule/brand-form-group/index.js +18 -18
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
- package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
- package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +2 -2
- package/lib/molecule/card/customer.css +61 -3
- package/lib/molecule/card/customer.js +22 -6
- package/lib/molecule/card/customer.js.map +1 -1
- package/lib/molecule/card/index.js +22 -9
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/style.css +86 -24
- package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
- package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
- package/lib/molecule/card/test/fixtures/coorpmanager.js +28 -0
- package/lib/molecule/card/test/fixtures/coorpmanager.js.map +1 -0
- package/lib/molecule/card/test/fixtures/disabled.js +1 -1
- package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
- package/lib/molecule/card-content/index.js +14 -6
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-content/style.css +52 -0
- package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
- package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
- package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
- package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
- package/lib/molecule/card-with-button/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +1 -0
- package/lib/molecule/coorp-manager-roles/index.js +1 -1
- package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
- package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
- package/lib/molecule/dashboard/news-list/index.js +1 -1
- package/lib/molecule/dashboard/news-list/index.js.map +1 -1
- package/lib/molecule/dashboard/start-battle/index.js +1 -1
- package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
- package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
- package/lib/molecule/drag-and-drop/index.js +3 -3
- package/lib/molecule/drag-and-drop/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
- package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
- package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
- package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
- package/lib/molecule/drag-and-drop/upload-report.js +3 -3
- package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/lib/molecule/feedback/index.js +3 -3
- package/lib/molecule/feedback/index.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/default.js +4 -4
- package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
- package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/one.js +2 -2
- package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
- package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
- package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/three.js +3 -3
- package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/two.js +3 -3
- package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
- package/lib/molecule/filters/test/fixtures/zero.js +1 -1
- package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
- package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
- package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
- package/lib/molecule/hero/index.js +2 -2
- package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
- package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
- package/lib/molecule/hero/test/fixtures/hero.js +1 -1
- package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
- package/lib/molecule/news/test/fixtures/long-description.js +1 -1
- package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
- package/lib/molecule/news/test/fixtures/long-title.js +1 -1
- package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
- package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
- package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
- package/lib/molecule/news/test/fixtures/small-title.js +1 -1
- package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
- package/lib/molecule/popin/index.js +3 -3
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/progress-bar/index.js +1 -1
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/questions/drop-down/index.js +3 -3
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.js +2 -2
- package/lib/molecule/questions/question-range/index.js +4 -2
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.js +2 -2
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/template/test/index.js +1 -1
- package/lib/molecule/questions/template/test/index.js.map +1 -1
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/resource-player/index.js +4 -2
- package/lib/molecule/resource-player/index.js.map +1 -1
- package/lib/molecule/scope-tabs/index.js +2 -2
- package/lib/molecule/search-form/index.js +2 -2
- package/lib/molecule/select-multiple/index.js +6 -6
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/select-multiple/style.css +2 -1
- package/lib/molecule/select-multiple/test/fixtures.js +12 -0
- package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
- package/lib/molecule/select-multiple/test/index.js +4 -4
- package/lib/molecule/select-multiple/test/index.js.map +1 -1
- package/lib/molecule/setup-section/index.js +1 -1
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
- package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
- package/lib/molecule/setup-sections/index.js +2 -2
- package/lib/molecule/setup-slide/index.js +8 -8
- package/lib/molecule/setup-slide/index.js.map +1 -1
- package/lib/molecule/share/index.js +4 -4
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/titled-checkbox/index.js +2 -2
- package/lib/molecule/vertical-tabs/test/fixtures/default.js +1 -1
- package/lib/molecule/video-iframe/index.js +1 -1
- package/lib/molecule/video-iframe/index.js.map +1 -1
- package/lib/molecule/video-player/index.js +3 -1
- package/lib/molecule/video-player/index.js.map +1 -1
- package/lib/molecule/video-player/jwplayer.js +2 -2
- package/lib/molecule/video-player/jwplayer.js.map +1 -1
- package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
- package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
- package/lib/molecule/video-player/vimeo.js +1 -1
- package/lib/molecule/video-player/vimeo.js.map +1 -1
- package/lib/molecule/wizard-summary/index.js +31 -4
- package/lib/molecule/wizard-summary/index.js.map +1 -1
- package/lib/molecule/wizard-summary/style.css +1 -1
- package/lib/organism/accordion/container/index.js +2 -2
- package/lib/organism/accordion/coorp-manager/index.js +3 -3
- package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
- package/lib/organism/accordion/toggler/index.js +1 -1
- package/lib/organism/accordion/toggler/index.js.map +1 -1
- package/lib/organism/accordion/toggler/test/render.js +2 -2
- package/lib/organism/accordion/toggler/test/render.js.map +1 -1
- package/lib/organism/brand-form/index.js +2 -2
- package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
- package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
- package/lib/organism/content-translation/index.js +2 -2
- package/lib/organism/content-translation/index.js.map +1 -1
- package/lib/organism/content-translation/style.css +1 -0
- package/lib/organism/content-translation/test/fixtures/default.js +2 -2
- package/lib/organism/content-translation/test/fixtures/default.js.map +1 -1
- package/lib/organism/content-translation/test/fixtures.js +25 -0
- package/lib/organism/content-translation/test/fixtures.js.map +1 -0
- package/lib/organism/course-selection/index.js +28 -9
- package/lib/organism/course-selection/index.js.map +1 -1
- package/lib/organism/course-selection/style.css +11 -3
- package/lib/organism/course-selection/test/fixtures/default.js +45 -13
- package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/empty.js +9 -0
- package/lib/organism/course-selection/test/fixtures/empty.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/filtered.js +11 -3
- package/lib/organism/course-selection/test/fixtures/filtered.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
- package/lib/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/switch-activated.js +32 -0
- package/lib/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
- package/lib/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
- package/lib/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures.js +3 -0
- package/lib/organism/course-selection/test/fixtures.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/default.js +1 -1
- package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
- package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
- package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
- package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
- package/lib/organism/get-the-app/index.js +2 -2
- package/lib/organism/get-the-app/index.js.map +1 -1
- package/lib/organism/list-item/test/fixtures.js +31 -0
- package/lib/organism/list-item/test/fixtures.js.map +1 -0
- package/lib/organism/list-items/test/fixtures/archived.js +1 -1
- package/lib/organism/list-items/test/fixtures/archived.js.map +1 -1
- package/lib/organism/list-items/test/fixtures/draft.js +1 -1
- package/lib/organism/list-items/test/fixtures/draft.js.map +1 -1
- package/lib/organism/list-items/test/fixtures/published.js +2 -2
- package/lib/organism/list-items/test/fixtures/published.js.map +1 -1
- package/lib/organism/list-items/test/fixtures.js +28 -0
- package/lib/organism/list-items/test/fixtures.js.map +1 -0
- package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
- package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
- package/lib/organism/mooc-footer/style.css +1 -0
- package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- package/lib/organism/popin/test/fixtures/default.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
- package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
- package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
- package/lib/organism/search-and-chips-results/index.js +12 -4
- package/lib/organism/search-and-chips-results/index.js.map +1 -1
- package/lib/organism/search-and-chips-results/style.css +7 -1
- package/lib/organism/search-and-chips-results/test/fixtures/default.js +1 -0
- package/lib/organism/search-and-chips-results/test/fixtures/default.js.map +1 -1
- package/lib/organism/settings/index.js +4 -2
- package/lib/organism/settings/index.js.map +1 -1
- package/lib/organism/sidebar/index.js +15 -13
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/organism/user-preferences/index.js +4 -2
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/wizard-contents/index.js +8 -10
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/style.css +11 -15
- package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +1 -1
- package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures.js +34 -0
- package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
- package/lib/template/activity/index.js +1 -1
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.js +2 -2
- package/lib/template/activity/test/progression-item-test.js +1 -1
- package/lib/template/activity/test/progression-item-test.js.map +1 -1
- package/lib/template/app-player/player/slides/footer/index.js +1 -1
- package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
- package/lib/template/app-player/player/slides/index.js +15 -11
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
- package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
- package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
- package/lib/template/app-player/player/test/fixtures/background.js +1 -1
- package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +6 -4
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
- package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
- package/lib/template/app-player/popin-end/summary.js +12 -7
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
- package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
- package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
- package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
- package/lib/template/app-player/popin-header/index.js +7 -5
- package/lib/template/app-player/popin-header/index.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
- package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
- 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 +1 -1
- package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +13 -11
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +4 -0
- package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/loader.js +7 -3
- package/lib/template/back-office/brand-update/test/fixtures/loader.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +237 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-list.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +3 -3
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +50 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures.js +30 -3
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/template/cockpit/jw-uploader/index.js +1 -1
- package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
- package/lib/template/common/dashboard/index.js +1 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
- package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
- package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
- package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
- package/lib/template/common/discipline/index.js +2 -2
- package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
- package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
- package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/default.js +2 -2
- package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
- package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures/share.js +1 -1
- package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
- package/lib/template/teams-dashboard/index.js +2 -2
- package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
- package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
- package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
- package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
- package/lib/test/helpers/render-component.js +1 -1
- package/lib/util/external-content.js +1 -1
- package/lib/util/proptypes.js +1 -1
- package/lib/util/shallow-compare.js.map +1 -1
- package/lib/util/test/navigation.js +5 -3
- package/lib/util/test/navigation.js.map +1 -1
- package/locales/hy/global.json +80 -0
- package/package.json +2 -2
|
@@ -1,15 +1,25 @@
|
|
|
1
|
+
import _keys from "lodash/fp/keys";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import classnames from 'classnames';
|
|
3
5
|
import style from './customer.css';
|
|
6
|
+
export const THEMES = {
|
|
7
|
+
default: null,
|
|
8
|
+
coorpmanager: style.coorpmanager
|
|
9
|
+
};
|
|
4
10
|
|
|
5
11
|
const Customer = props => {
|
|
6
12
|
const {
|
|
7
13
|
name,
|
|
8
|
-
|
|
9
|
-
coorpOriginal
|
|
14
|
+
type,
|
|
15
|
+
coorpOriginal,
|
|
16
|
+
theme,
|
|
17
|
+
disabled = false
|
|
10
18
|
} = props;
|
|
19
|
+
const className = classnames(THEMES[theme], style.customer, type === 'chapter' ? style.chapterCustomer : null);
|
|
11
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className: className
|
|
21
|
+
className: className,
|
|
22
|
+
disabled: disabled
|
|
13
23
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14
24
|
className: style.content
|
|
15
25
|
}, coorpOriginal ? /*#__PURE__*/React.createElement("span", {
|
|
@@ -20,9 +30,11 @@ const Customer = props => {
|
|
|
20
30
|
};
|
|
21
31
|
|
|
22
32
|
Customer.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
23
|
-
|
|
33
|
+
theme: PropTypes.oneOf(_keys(THEMES)),
|
|
34
|
+
type: PropTypes.string,
|
|
24
35
|
name: PropTypes.string,
|
|
25
|
-
coorpOriginal: PropTypes.bool.isRequired
|
|
36
|
+
coorpOriginal: PropTypes.bool.isRequired,
|
|
37
|
+
disabled: PropTypes.bool
|
|
26
38
|
} : {};
|
|
27
39
|
export default Customer;
|
|
28
40
|
//# sourceMappingURL=customer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/card/customer.js"],"names":["React","PropTypes","style","Customer","props","name","
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/card/customer.js"],"names":["React","PropTypes","classnames","style","THEMES","default","coorpmanager","Customer","props","name","type","coorpOriginal","theme","disabled","className","customer","chapterCustomer","content","coorp","original","propTypes","oneOf","string","bool","isRequired"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,KAAP,MAAkB,gBAAlB;AAEA,OAAO,MAAMC,MAAM,GAAG;AACpBC,EAAAA,OAAO,EAAE,IADW;AAEpBC,EAAAA,YAAY,EAAEH,KAAK,CAACG;AAFA,CAAf;;AAKP,MAAMC,QAAQ,GAAGC,KAAK,IAAI;AACxB,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA,IAAP;AAAaC,IAAAA,aAAb;AAA4BC,IAAAA,KAA5B;AAAmCC,IAAAA,QAAQ,GAAG;AAA9C,MAAuDL,KAA7D;AACA,QAAMM,SAAS,GAAGZ,UAAU,CAC1BE,MAAM,CAACQ,KAAD,CADoB,EAE1BT,KAAK,CAACY,QAFoB,EAG1BL,IAAI,KAAK,SAAT,GAAqBP,KAAK,CAACa,eAA3B,GAA6C,IAHnB,CAA5B;AAMA,sBACE;AAAK,IAAA,SAAS,EAAEF,SAAhB;AAA2B,IAAA,QAAQ,EAAED;AAArC,kBACE;AAAK,IAAA,SAAS,EAAEV,KAAK,CAACc;AAAtB,KACGN,aAAa,gBAAG;AAAM,IAAA,SAAS,EAAER,KAAK,CAACe;AAAvB,cAAH,GAAiD,IADjE,EAEGP,aAAa,gBAAG;AAAM,IAAA,SAAS,EAAER,KAAK,CAACgB;AAAvB,iBAAH,GAAuD,IAFvE,EAGG,CAACR,aAAD,IAAkBF,IAHrB,CADF,CADF;AASD,CAjBD;;AAmBAF,QAAQ,CAACa,SAAT,2CAAqB;AACnBR,EAAAA,KAAK,EAAEX,SAAS,CAACoB,KAAV,CAAgB,MAAKjB,MAAL,CAAhB,CADY;AAEnBM,EAAAA,IAAI,EAAET,SAAS,CAACqB,MAFG;AAGnBb,EAAAA,IAAI,EAAER,SAAS,CAACqB,MAHG;AAInBX,EAAAA,aAAa,EAAEV,SAAS,CAACsB,IAAV,CAAeC,UAJX;AAKnBX,EAAAA,QAAQ,EAAEZ,SAAS,CAACsB;AALD,CAArB;AAQA,eAAehB,QAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {keys} from 'lodash/fp';\nimport style from './customer.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst Customer = props => {\n const {name, type, coorpOriginal, theme, disabled = false} = props;\n const className = classnames(\n THEMES[theme],\n style.customer,\n type === 'chapter' ? style.chapterCustomer : null\n );\n\n return (\n <div className={className} disabled={disabled}>\n <div className={style.content}>\n {coorpOriginal ? <span className={style.coorp}>Coorp </span> : null}\n {coorpOriginal ? <span className={style.original}>Original </span> : null}\n {!coorpOriginal && name}\n </div>\n </div>\n );\n};\n\nCustomer.propTypes = {\n theme: PropTypes.oneOf(keys(THEMES)),\n type: PropTypes.string,\n name: PropTypes.string,\n coorpOriginal: PropTypes.bool.isRequired,\n disabled: PropTypes.bool\n};\n\nexport default Customer;\n"],"file":"customer.js"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _keys from "lodash/fp/keys";
|
|
1
2
|
import _pick from "lodash/fp/pick";
|
|
2
3
|
import _isUndefined from "lodash/fp/isUndefined";
|
|
3
4
|
import _isEmpty from "lodash/fp/isEmpty";
|
|
@@ -17,6 +18,10 @@ import Favorite from './favorite';
|
|
|
17
18
|
import Selectable from './selectable';
|
|
18
19
|
import Notification from './notification';
|
|
19
20
|
import style from './style.css';
|
|
21
|
+
export const THEMES = {
|
|
22
|
+
default: null,
|
|
23
|
+
coorpmanager: style.coorpmanager
|
|
24
|
+
};
|
|
20
25
|
|
|
21
26
|
const CardBackground = ({
|
|
22
27
|
type,
|
|
@@ -97,7 +102,7 @@ CardBackground.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
97
102
|
image: PropTypes.string,
|
|
98
103
|
empty: PropTypes.bool
|
|
99
104
|
} : {};
|
|
100
|
-
const Card = memo(function Card(props, context) {
|
|
105
|
+
const Card = /*#__PURE__*/memo(function Card(props, context) {
|
|
101
106
|
const {
|
|
102
107
|
skin
|
|
103
108
|
} = context;
|
|
@@ -120,7 +125,8 @@ const Card = memo(function Card(props, context) {
|
|
|
120
125
|
isSelected,
|
|
121
126
|
notification,
|
|
122
127
|
badgeCategory,
|
|
123
|
-
badgeLabel
|
|
128
|
+
badgeLabel,
|
|
129
|
+
theme = 'default'
|
|
124
130
|
} = props;
|
|
125
131
|
|
|
126
132
|
const empty = _isEmpty(_pick(['title', 'type', 'author', 'image'], props));
|
|
@@ -129,7 +135,7 @@ const Card = memo(function Card(props, context) {
|
|
|
129
135
|
|
|
130
136
|
const whiteColor = _get('common.white', skin);
|
|
131
137
|
|
|
132
|
-
const cardStyle = classnames(type === 'chapter' ? style.chapter : style.course, title ? null : style.lazy, style.grid, empty ? style.empty : null);
|
|
138
|
+
const cardStyle = classnames(THEMES[theme], type === 'chapter' ? style.chapter : style.course, title ? null : style.lazy, style.grid, empty ? style.empty : null);
|
|
133
139
|
const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);
|
|
134
140
|
const lock = disabled ? /*#__PURE__*/React.createElement(LockIcon, {
|
|
135
141
|
className: style.lockIcon,
|
|
@@ -174,7 +180,9 @@ const Card = memo(function Card(props, context) {
|
|
|
174
180
|
}) : null, /*#__PURE__*/React.createElement(Selectable, {
|
|
175
181
|
isSelected: isSelected
|
|
176
182
|
}), notification ? /*#__PURE__*/React.createElement(Notification, notification) : null, customer ? /*#__PURE__*/React.createElement(Customer, _extends({}, customer, {
|
|
177
|
-
|
|
183
|
+
theme: theme,
|
|
184
|
+
type: type,
|
|
185
|
+
disabled: disabled
|
|
178
186
|
})) : null, /*#__PURE__*/React.createElement(CardContentInfo, {
|
|
179
187
|
mode: MODES.CARD,
|
|
180
188
|
adaptiv: adaptiv,
|
|
@@ -186,7 +194,8 @@ const Card = memo(function Card(props, context) {
|
|
|
186
194
|
title: title,
|
|
187
195
|
type: type,
|
|
188
196
|
badgeCategory: badgeCategory,
|
|
189
|
-
badgeLabel: badgeLabel
|
|
197
|
+
badgeLabel: badgeLabel,
|
|
198
|
+
theme: theme
|
|
190
199
|
}), badge ? /*#__PURE__*/React.createElement("div", {
|
|
191
200
|
className: style.badge,
|
|
192
201
|
style: inlineBadgeStyle
|
|
@@ -216,7 +225,8 @@ Card.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
216
225
|
isSelected: PropTypes.bool,
|
|
217
226
|
notification: PropTypes.shape(Notification.propTypes),
|
|
218
227
|
badgeCategory: CardContentInfo.propTypes.badgeCategory,
|
|
219
|
-
badgeLabel: CardContentInfo.propTypes.badgeLabel
|
|
228
|
+
badgeLabel: CardContentInfo.propTypes.badgeLabel,
|
|
229
|
+
theme: PropTypes.oneOf(_keys(THEMES))
|
|
220
230
|
} : {};
|
|
221
231
|
export default Card;
|
|
222
232
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["React","useMemo","memo","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaCompositionCoorpacademyPictures","PicturesIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","CardContentInfo","MODES","Customer","Favorite","Selectable","Notification","style","CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","childContextTypes","propTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","chapterCustomer","CARD","lockWrapper","shape","number","func"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,EAAwBC,IAAxB,QAAmC,OAAnC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,oBAAoB,IAAIC,QAD1B,EAEEC,mCAAmC,IAAIC,YAFzC,QAGO,0BAHP;AAIA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,cAAc,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,KAAP;AAAcC,EAAAA;AAAd,CAAD,EAAuB;AAACC,EAAAA;AAAD,CAAvB,KAAkC;AACvD,QAAMC,eAAe,GAAGf,iBAAiB,CAACW,IAAD,C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6C,IAXL;AAYfa,EAAAA,kBAAkB,EAAE1D,SAAS,CAAC4C,MAZf;AAafe,EAAAA,qBAAqB,EAAE3D,SAAS,CAAC4C,MAblB;AAcfgB,EAAAA,OAAO,EAAE5D,SAAS,CAACmF,IAdJ;AAeftB,EAAAA,eAAe,EAAE7D,SAAS,CAACmF,IAfZ;AAgBfrB,EAAAA,UAAU,EAAE9D,SAAS,CAAC6C,IAhBP;AAiBfkB,EAAAA,YAAY,EAAE/D,SAAS,CAACiF,KAAV,CAAgBnE,YAAY,CAAC6B,SAA7B,CAjBC;AAkBfqB,EAAAA,aAAa,EAAEvD,eAAe,CAACkC,SAAhB,CAA0BqB,aAlB1B;AAmBfC,EAAAA,UAAU,EAAExD,eAAe,CAACkC,SAAhB,CAA0BsB;AAnBvB,CAAjB;AAqBA,eAAenB,IAAf","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n <Selectable isSelected={isSelected} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n className={classnames(style.customer, type === 'chapter' ? style.chapterCustomer : null)}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel\n};\nexport default Card;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["React","useMemo","memo","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaCompositionCoorpacademyPictures","PicturesIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","CardContentInfo","MODES","Customer","Favorite","Selectable","Notification","style","THEMES","default","coorpmanager","CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","childContextTypes","propTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","CARD","lockWrapper","shape","number","func","oneOf"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,EAAwBC,IAAxB,QAAmC,OAAnC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,oBAAoB,IAAIC,QAD1B,EAEEC,mCAAmC,IAAIC,YAFzC,QAGO,0BAHP;AAIA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,KA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OAAO,EAAErD,SAAS,CAACgD,IAJJ;AAKf5B,EAAAA,IAAI,EAAEpB,SAAS,CAAC+C,MALD;AAMfQ,EAAAA,KAAK,EAAEvD,SAAS,CAAC+C,MANF;AAOfS,EAAAA,MAAM,EAAExD,SAAS,CAAC+C,MAPH;AAQfW,EAAAA,eAAe,EAAE1D,SAAS,CAACgD,IARZ;AASfS,EAAAA,QAAQ,EAAEzD,SAAS,CAACoF,KAAV,CAAgBzE,QAAQ,CAACmC,SAAzB,CATK;AAUfa,EAAAA,QAAQ,EAAE3D,SAAS,CAACqF,MAVL;AAWfzB,EAAAA,QAAQ,EAAE5D,SAAS,CAACgD,IAXL;AAYfa,EAAAA,kBAAkB,EAAE7D,SAAS,CAAC+C,MAZf;AAafe,EAAAA,qBAAqB,EAAE9D,SAAS,CAAC+C,MAblB;AAcfgB,EAAAA,OAAO,EAAE/D,SAAS,CAACsF,IAdJ;AAeftB,EAAAA,eAAe,EAAEhE,SAAS,CAACsF,IAfZ;AAgBfrB,EAAAA,UAAU,EAAEjE,SAAS,CAACgD,IAhBP;AAiBfkB,EAAAA,YAAY,EAAElE,SAAS,CAACoF,KAAV,CAAgBtE,YAAY,CAACgC,SAA7B,CAjBC;AAkBfqB,EAAAA,aAAa,EAAE1D,eAAe,CAACqC,SAAhB,CAA0BqB,aAlB1B;AAmBfC,EAAAA,UAAU,EAAE3D,eAAe,CAACqC,SAAhB,CAA0BsB,UAnBvB;AAoBfC,EAAAA,KAAK,EAAErE,SAAS,CAACuF,KAAV,CAAgB,MAAKvE,MAAL,CAAhB;AApBQ,CAAjB;AAsBA,eAAeiC,IAAf","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default'\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n <Selectable isSelected={isSelected} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? <Customer {...customer} theme={theme} type={type} disabled={disabled} /> : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES))\n};\nexport default Card;\n"],"file":"index.js"}
|
|
@@ -36,25 +36,6 @@
|
|
|
36
36
|
z-index: 0;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.customer {
|
|
40
|
-
position: absolute;
|
|
41
|
-
top: 0;
|
|
42
|
-
left: 0;
|
|
43
|
-
width: 100%;
|
|
44
|
-
height: 100%;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.customer {
|
|
48
|
-
background: linear-gradient(
|
|
49
|
-
to bottom,
|
|
50
|
-
rgba(0, 0, 0, 0.2) 0%,
|
|
51
|
-
rgba(0, 0, 0, 0) 20%
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
.chapterCustomer {
|
|
55
|
-
padding-top: 10px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
39
|
.grid.empty {
|
|
59
40
|
padding-bottom: 25px;
|
|
60
41
|
opacity: 0.6;
|
|
@@ -66,6 +47,7 @@
|
|
|
66
47
|
width: 256px;
|
|
67
48
|
height: 297px;
|
|
68
49
|
}
|
|
50
|
+
|
|
69
51
|
.chapter {
|
|
70
52
|
composes: default;
|
|
71
53
|
border-radius: 8px;
|
|
@@ -73,6 +55,18 @@
|
|
|
73
55
|
height: 297px;
|
|
74
56
|
}
|
|
75
57
|
|
|
58
|
+
.coorpmanager.course {
|
|
59
|
+
border-radius: 5px;
|
|
60
|
+
width: 172px;
|
|
61
|
+
height: 201px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.coorpmanager.chapter {
|
|
65
|
+
border-radius: 5px;
|
|
66
|
+
width: 138px;
|
|
67
|
+
height: 201px;
|
|
68
|
+
}
|
|
69
|
+
|
|
76
70
|
.course .imageWrapper {
|
|
77
71
|
width: 100%;
|
|
78
72
|
height: 100%;
|
|
@@ -89,6 +83,10 @@
|
|
|
89
83
|
left: 0;
|
|
90
84
|
}
|
|
91
85
|
|
|
86
|
+
.coorpmanager.chapter .chapterImageWrapper {
|
|
87
|
+
max-height: 52px;
|
|
88
|
+
}
|
|
89
|
+
|
|
92
90
|
.default .image {
|
|
93
91
|
overflow: hidden;
|
|
94
92
|
background-position: 50%;
|
|
@@ -218,10 +216,6 @@
|
|
|
218
216
|
left: 0;
|
|
219
217
|
}
|
|
220
218
|
|
|
221
|
-
.default[disabled] .customer {
|
|
222
|
-
background: none;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
219
|
.badge {
|
|
226
220
|
position: absolute;
|
|
227
221
|
width: auto;
|
|
@@ -239,6 +233,11 @@
|
|
|
239
233
|
user-select: none;
|
|
240
234
|
}
|
|
241
235
|
|
|
236
|
+
.coorpmanager .badge {
|
|
237
|
+
padding: 2px 5px;
|
|
238
|
+
font-size: 7px;
|
|
239
|
+
}
|
|
240
|
+
|
|
242
241
|
.emptyIcon {
|
|
243
242
|
vertical-align: middle;
|
|
244
243
|
width: 80px;
|
|
@@ -295,11 +294,24 @@
|
|
|
295
294
|
}
|
|
296
295
|
|
|
297
296
|
.externalIconCircleWrapper {
|
|
297
|
+
border-radius: 50%;
|
|
298
|
+
padding: 17px;
|
|
299
|
+
box-sizing: border-box;
|
|
300
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
301
|
+
justify-content: center;
|
|
302
|
+
transform: scale(1);
|
|
303
|
+
transition: transform 0.25s ease-in-out;
|
|
298
304
|
width: 80px;
|
|
299
305
|
height: 80px;
|
|
300
306
|
margin-top: 20px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.coorpmanager .externalIconCircleWrapper {
|
|
310
|
+
width: 50px;
|
|
311
|
+
height: 50px;
|
|
312
|
+
margin-top: 12px;
|
|
313
|
+
padding: 13px;
|
|
301
314
|
border-radius: 50%;
|
|
302
|
-
padding: 17px;
|
|
303
315
|
box-sizing: border-box;
|
|
304
316
|
background-color: rgba(255, 255, 255, 0.3);
|
|
305
317
|
justify-content: center;
|
|
@@ -313,6 +325,12 @@
|
|
|
313
325
|
height: 45px;
|
|
314
326
|
}
|
|
315
327
|
|
|
328
|
+
.coorpmanager .externalIcon {
|
|
329
|
+
color: white;
|
|
330
|
+
width: 23px;
|
|
331
|
+
height: 23px;
|
|
332
|
+
}
|
|
333
|
+
|
|
316
334
|
.externalIconCircleWrapper::after {
|
|
317
335
|
animation: pulse 3s linear 0s infinite;
|
|
318
336
|
animation-play-state: paused;
|
|
@@ -343,6 +361,18 @@
|
|
|
343
361
|
transition: box-shadow 0.25s linear;
|
|
344
362
|
}
|
|
345
363
|
|
|
364
|
+
.coorpmanager .externalIconCircleWrapper::after,
|
|
365
|
+
.coorpmanager .externalIconCircleWrapper::before {
|
|
366
|
+
width: 50px;
|
|
367
|
+
height: 50px;
|
|
368
|
+
top: 0;
|
|
369
|
+
left: 0;
|
|
370
|
+
transform: scale(1);
|
|
371
|
+
opacity: 0;
|
|
372
|
+
box-shadow: inset 0 0 7px 0 rgba(255, 255, 255, 0);
|
|
373
|
+
transition: box-shadow 0.25s linear;
|
|
374
|
+
}
|
|
375
|
+
|
|
346
376
|
.externalIconCircleWithImageWrapper {
|
|
347
377
|
width: 60px;
|
|
348
378
|
height: 60px;
|
|
@@ -350,6 +380,22 @@
|
|
|
350
380
|
z-index: 1;
|
|
351
381
|
}
|
|
352
382
|
|
|
383
|
+
.coorpmanager .externalIconCircleWithImageWrapper {
|
|
384
|
+
width: 50px;
|
|
385
|
+
height: 50px;
|
|
386
|
+
border-radius: 50%;
|
|
387
|
+
padding: 12px;
|
|
388
|
+
z-index: 1;
|
|
389
|
+
margin-top: 20px;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.coorpmanager .externalIconWithImage {
|
|
393
|
+
color: white;
|
|
394
|
+
width: 25px;
|
|
395
|
+
height: 25px;
|
|
396
|
+
padding: 0 0 0 1px;
|
|
397
|
+
}
|
|
398
|
+
|
|
353
399
|
.externalIconWithImage {
|
|
354
400
|
color: white;
|
|
355
401
|
width: 28px;
|
|
@@ -372,6 +418,22 @@
|
|
|
372
418
|
transition: box-shadow 0.25s linear;
|
|
373
419
|
}
|
|
374
420
|
|
|
421
|
+
.coorpmanager .externalIconCircleWithImageWrapper::after,
|
|
422
|
+
.coorpmanager .externalIconCircleWithImageWrapper::before {
|
|
423
|
+
content: '';
|
|
424
|
+
width: 50px;
|
|
425
|
+
height: 50px;
|
|
426
|
+
top: 0;
|
|
427
|
+
left: 0;
|
|
428
|
+
position: absolute;
|
|
429
|
+
transform: scale(1);
|
|
430
|
+
opacity: 0;
|
|
431
|
+
box-shadow: inset 0 0 7px 0 rgba(255, 255, 255, 0);
|
|
432
|
+
transition: box-shadow 0.25s linear;
|
|
433
|
+
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
|
|
375
437
|
@keyframes pulse {
|
|
376
438
|
0% {
|
|
377
439
|
transform: scale(1);
|
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
import cardContent from '../../../card-content/test/fixtures/adaptiv-and-disabled';
|
|
4
4
|
import Default from './default';
|
|
5
5
|
export default {
|
|
6
|
-
props: _extends(
|
|
6
|
+
props: _extends({}, Default.props, cardContent.props, {
|
|
7
7
|
certifiedAuthor: false,
|
|
8
8
|
progress: 0
|
|
9
9
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv-and-disabled.js"],"names":["cardContent","Default","props","certifiedAuthor","progress"],"mappings":";;AAAA,OAAOA,WAAP,MAAwB,0DAAxB;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv-and-disabled.js"],"names":["cardContent","Default","props","certifiedAuthor","progress"],"mappings":";;AAAA,OAAOA,WAAP,MAAwB,0DAAxB;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR,EAEAF,WAAW,CAACE,KAFZ;AAGHC,IAAAA,eAAe,EAAE,KAHd;AAIHC,IAAAA,QAAQ,EAAE;AAJP;AADQ,CAAf","sourcesContent":["import cardContent from '../../../card-content/test/fixtures/adaptiv-and-disabled';\nimport Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n ...cardContent.props,\n certifiedAuthor: false,\n progress: 0\n }\n};\n"],"file":"adaptiv-and-disabled.js"}
|
|
@@ -3,6 +3,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
import cardContentAdaptiv from '../../../card-content/test/fixtures/adaptiv';
|
|
4
4
|
import Default from './default';
|
|
5
5
|
export default {
|
|
6
|
-
props: _extends(
|
|
6
|
+
props: _extends({}, Default.props, cardContentAdaptiv.props)
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=adaptiv.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv.js"],"names":["cardContentAdaptiv","Default","props"],"mappings":";;AAAA,OAAOA,kBAAP,MAA+B,6CAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/adaptiv.js"],"names":["cardContentAdaptiv","Default","props"],"mappings":";;AAAA,OAAOA,kBAAP,MAA+B,6CAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR,EAEAF,kBAAkB,CAACE,KAFnB;AADQ,CAAf","sourcesContent":["import cardContentAdaptiv from '../../../card-content/test/fixtures/adaptiv';\nimport Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n ...cardContentAdaptiv.props\n }\n};\n"],"file":"adaptiv.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _defaultsDeep from "lodash/fp/defaultsDeep";
|
|
2
|
+
import Default from './default';
|
|
3
|
+
const {
|
|
4
|
+
props
|
|
5
|
+
} = Default;
|
|
6
|
+
export default {
|
|
7
|
+
props: _defaultsDeep(props, {
|
|
8
|
+
disabled: false,
|
|
9
|
+
type: 'course',
|
|
10
|
+
image: 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-marmiton/cockpit-marmiton/cover/shutterstock_520965634-1491986518210.jpg&h=500&w=500&q=90',
|
|
11
|
+
progress: 0.1,
|
|
12
|
+
isSelected: false,
|
|
13
|
+
badgeCategory: 'base',
|
|
14
|
+
badgeLabel: 'basic',
|
|
15
|
+
theme: 'coorpmanager'
|
|
16
|
+
})
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=coorpmanager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/coorpmanager.js"],"names":["Default","props","disabled","type","image","progress","isSelected","badgeCategory","badgeLabel","theme"],"mappings":";AACA,OAAOA,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBC,IAAAA,QAAQ,EAAE,KADe;AAEzBC,IAAAA,IAAI,EAAE,QAFmB;AAGzBC,IAAAA,KAAK,EACH,4MAJuB;AAKzBC,IAAAA,QAAQ,EAAE,GALe;AAMzBC,IAAAA,UAAU,EAAE,KANa;AAOzBC,IAAAA,aAAa,EAAE,MAPU;AAQzBC,IAAAA,UAAU,EAAE,OARa;AASzBC,IAAAA,KAAK,EAAE;AATkB,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: defaultsDeep(props, {\n disabled: false,\n type: 'course',\n image:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-marmiton/cockpit-marmiton/cover/shutterstock_520965634-1491986518210.jpg&h=500&w=500&q=90',\n progress: 0.1,\n isSelected: false,\n badgeCategory: 'base',\n badgeLabel: 'basic',\n theme: 'coorpmanager'\n })\n};\n"],"file":"coorpmanager.js"}
|
|
@@ -3,6 +3,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
import cardContentDisabled from '../../../card-content/test/fixtures/disabled';
|
|
4
4
|
import Default from './default';
|
|
5
5
|
export default {
|
|
6
|
-
props: _extends(
|
|
6
|
+
props: _extends({}, Default.props, cardContentDisabled.props)
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=disabled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/disabled.js"],"names":["cardContentDisabled","Default","props"],"mappings":";;AAAA,OAAOA,mBAAP,MAAgC,8CAAhC;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/card/test/fixtures/disabled.js"],"names":["cardContentDisabled","Default","props"],"mappings":";;AAAA,OAAOA,mBAAP,MAAgC,8CAAhC;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,eACAD,OAAO,CAACC,KADR,EAEAF,mBAAmB,CAACE,KAFpB;AADQ,CAAf","sourcesContent":["import cardContentDisabled from '../../../card-content/test/fixtures/disabled';\nimport Default from './default';\n\nexport default {\n props: {\n ...Default.props,\n ...cardContentDisabled.props\n }\n};\n"],"file":"disabled.js"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _keys from "lodash/fp/keys";
|
|
1
2
|
import _isNil from "lodash/fp/isNil";
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
@@ -12,6 +13,10 @@ export const MODES = {
|
|
|
12
13
|
HERO: 'hero',
|
|
13
14
|
CARD: 'card'
|
|
14
15
|
};
|
|
16
|
+
export const THEMES = {
|
|
17
|
+
default: null,
|
|
18
|
+
coorpmanager: style.coorpmanager
|
|
19
|
+
};
|
|
15
20
|
|
|
16
21
|
const ContentTypeInfo = ({
|
|
17
22
|
mode,
|
|
@@ -30,8 +35,7 @@ const ContentTypeInfo = ({
|
|
|
30
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
31
36
|
className: style.microLearningIcon
|
|
32
37
|
}, /*#__PURE__*/React.createElement(TimerIcon, {
|
|
33
|
-
|
|
34
|
-
width: 40
|
|
38
|
+
className: style.timerIcon
|
|
35
39
|
}), /*#__PURE__*/React.createElement("span", {
|
|
36
40
|
className: style.microLearninglabel
|
|
37
41
|
}, "5' learning"));
|
|
@@ -117,7 +121,8 @@ const ContentInfo = ({
|
|
|
117
121
|
title,
|
|
118
122
|
type,
|
|
119
123
|
badgeCategory,
|
|
120
|
-
badgeLabel
|
|
124
|
+
badgeLabel,
|
|
125
|
+
theme = 'default'
|
|
121
126
|
}) => {
|
|
122
127
|
const progressBarColor = '#3EC483';
|
|
123
128
|
const inlineProgressValueStyle = {
|
|
@@ -141,7 +146,7 @@ const ContentInfo = ({
|
|
|
141
146
|
})) : null;
|
|
142
147
|
return /*#__PURE__*/React.createElement("div", {
|
|
143
148
|
"data-name": "info",
|
|
144
|
-
className: classnames(style.infoWrapper, mode === MODES.HERO ? style.hero : style.card, disabled ? style.progressBarDisabled : null, externalContent ? style.externalContent : null)
|
|
149
|
+
className: classnames(THEMES[theme], style.infoWrapper, mode === MODES.HERO ? style.hero : style.card, disabled ? style.progressBarDisabled : null, externalContent ? style.externalContent : null)
|
|
145
150
|
}, /*#__PURE__*/React.createElement(ContentTypeInfo, {
|
|
146
151
|
mode: mode,
|
|
147
152
|
type: type,
|
|
@@ -179,7 +184,8 @@ ContentInfo.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
179
184
|
type: PropTypes.string,
|
|
180
185
|
mode: PropTypes.string,
|
|
181
186
|
badgeCategory: ContentBadge.propTypes.category,
|
|
182
|
-
badgeLabel: ContentBadge.propTypes.label
|
|
187
|
+
badgeLabel: ContentBadge.propTypes.label,
|
|
188
|
+
theme: PropTypes.oneOf(_keys(THEMES))
|
|
183
189
|
} : {};
|
|
184
190
|
export default ContentInfo;
|
|
185
191
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","ContentBadge","innerHTML","style","MODES","HERO","CARD","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","bool","string","CardTitle","title","empty","courseContent","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","number","category","label"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,mCAAmC,IAAIC,WADzC,EAEEC,2BAA2B,IAAIC,SAFjC,EAGEC,gCAAgC,IAAIC,SAHtC,QAIO,0BAJP;AAKA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,SAAQC,SAAR,QAAwB,4BAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,KAAK,GAAG;AACnBC,EAAAA,IAAI,EAAE,MADa;AAEnBC,EAAAA,IAAI,EAAE;AAFa,CAAd;;AAKP,MAAMC,eAAe,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,IAAP;AAAaC,EAAAA;AAAb,CAAD,EAAgCC,OAAhC,KAA4C;AAClE,QAAM;AAACC,IAAAA;AAAD,MAAcD,OAApB;;AACA,MAAIH,IAAI,KAAKJ,KAAK,CAACE,IAAnB,EAAyB;AACvB,WAAO,IAAP;AACD;;AAED,MAAIG,IAAI,KAAK,SAAb,EAAwB;AACtB,wBACE;AAAK,MAAA,SAAS,EAAEN,KAAK,CAACU;AAAtB,oBACE,oBAAC,SAAD;AAAW,MAAA,MAAM,EAAE,EAAnB;AAAuB,MAAA,KAAK,EAAE;AAA9B,MADF,eAEE;AAAM,MAAA,SAAS,EAAEV,KAAK,CAACW;AAAvB,OAA4C,aAA5C,CAFF,CADF;AAMD;;AACD,MAAIJ,eAAe,IAAIX,sBAAsB,CAACU,IAAD,CAA7C,EAAqD;AACnD,UAAMM,SAAS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CAA3B;AAIAmB,WAAW,CAACjB,SAAZ,2CAAwB;AACtBkB,EAAAA,OAAO,EAAEjD,SAAS,CAACgC,IADG;AAEtBU,EAAAA,MAAM,EAAE1C,SAAS,CAACiC,MAFI;AAGtBU,EAAAA,eAAe,EAAE3C,SAAS,CAACgC,IAHL;AAItBkB,EAAAA,QAAQ,EAAElD,SAAS,CAACgC,IAJE;AAKtBI,EAAAA,KAAK,EAAEpC,SAAS,CAACgC,IALK;AAMtBmB,EAAAA,QAAQ,EAAEnD,SAAS,CAACsE,MANE;AAOtBnC,EAAAA,KAAK,EAAEnC,SAAS,CAACiC,MAPK;AAQtBd,EAAAA,IAAI,EAAEnB,SAAS,CAACiC,MARM;AAStBf,EAAAA,IAAI,EAAElB,SAAS,CAACiC,MATM;AAUtBmB,EAAAA,aAAa,EAAEzC,YAAY,CAACoB,SAAb,CAAuBwC,QAVhB;AAWtBlB,EAAAA,UAAU,EAAE1C,YAAY,CAACoB,SAAb,CAAuByC;AAXb,CAAxB;AAcA,eAAexB,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isNil} 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\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 height={40} width={40} />\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}) => {\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 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};\n\nexport default ContentInfo;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","ContentBadge","innerHTML","style","MODES","HERO","CARD","THEMES","default","coorpmanager","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","timerIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","bool","string","CardTitle","title","empty","courseContent","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","category","label","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,mCAAmC,IAAIC,WADzC,EAEEC,2BAA2B,IAAIC,SAFjC,EAGEC,gCAAgC,IAAIC,SAHtC,QAIO,0BAJP;AAKA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,SAAQC,SAAR,QAAwB,4BAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,KAAK,GAAG;AACnBC,EAAAA,IAAI,EAAE,MADa;AAEnBC,EAAAA,IAAI,EAAE;AAFa,CAAd;AAKP,OAAO,MAAMC,MAAM,GAAG;AACpBC,EAAAA,OAAO,EAAE,IADW;AAEpBC,EAAAA,YAAY,EAAEN,KAAK,CAACM;AAFA,CAAf;;AAKP,MAAMC,eAAe,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,IAAP;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AAC8E,KAAV,CAAgB,MAAK7D,MAAL,CAAhB;AAZe,CAAxB;AAeA,eAAemC,WAAf","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"}
|