@coorpacademy/components 10.0.49-alpha.9 → 10.1.1
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/chips/index.js +36 -0
- package/es/atom/chips/index.js.map +1 -0
- package/es/atom/chips/style.css +66 -0
- package/es/atom/chips/test/fixtures/default.js +9 -0
- package/es/atom/chips/test/fixtures/default.js.map +1 -0
- package/es/atom/chips/test/fixtures/non-selected.js +9 -0
- package/es/atom/chips/test/fixtures/non-selected.js.map +1 -0
- package/es/atom/chips/test/fixtures.js +15 -0
- package/es/atom/chips/test/fixtures.js.map +1 -0
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/content-badge/index.js +21 -0
- package/es/atom/content-badge/index.js.map +1 -0
- package/es/atom/content-badge/style.css +59 -0
- package/es/atom/content-badge/test/fixtures/advanced.js +7 -0
- package/es/atom/content-badge/test/fixtures/advanced.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/article.js +7 -0
- package/es/atom/content-badge/test/fixtures/article.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/chapter.js +7 -0
- package/es/atom/content-badge/test/fixtures/chapter.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/coach.js +7 -0
- package/es/atom/content-badge/test/fixtures/coach.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/default.js +7 -0
- package/es/atom/content-badge/test/fixtures/default.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/podcast.js +7 -0
- package/es/atom/content-badge/test/fixtures/podcast.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/scorm.js +7 -0
- package/es/atom/content-badge/test/fixtures/scorm.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/video.js +7 -0
- package/es/atom/content-badge/test/fixtures/video.js.map +1 -0
- package/es/atom/content-badge/test/fixtures.js +27 -0
- package/es/atom/content-badge/test/fixtures.js.map +1 -0
- 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-checkbox/index.js.map +1 -1
- package/es/atom/input-checkbox/style.css +0 -4
- package/es/atom/input-html/index.js.map +1 -1
- 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-text/index.js +34 -6
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text/style.css +224 -1
- package/es/atom/input-text/test/fixtures/cm-default.js +17 -0
- package/es/atom/input-text/test/fixtures/cm-default.js.map +1 -0
- package/es/atom/link/index.js +2 -3
- 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.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/atom/wizard-steps/index.js +38 -0
- package/es/atom/wizard-steps/index.js.map +1 -0
- package/es/atom/wizard-steps/style.css +150 -0
- package/es/atom/wizard-steps/test/fixtures/default.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/default.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures/first-step.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures/last-step.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures.js +17 -0
- package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
- 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 +2 -4
- 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 +2 -3
- 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/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/index.js +1 -1
- package/es/molecule/card/index.js.map +1 -1
- 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/disabled.js +1 -1
- package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
- 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/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/discipline-partners/index.js +5 -2
- package/es/molecule/discipline-partners/index.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 +2 -3
- 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 +1 -2
- package/es/molecule/resource-player/index.js.map +1 -1
- package/es/molecule/select-multiple/index.js +1 -1
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/select-multiple/test/index.js +3 -3
- 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/vertical-tabs/index.js +51 -0
- package/es/molecule/vertical-tabs/index.js.map +1 -0
- package/es/molecule/vertical-tabs/style.css +69 -0
- package/es/molecule/vertical-tabs/test/fixtures/default.js +41 -0
- package/es/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
- package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js +81 -0
- package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
- package/es/molecule/vertical-tabs/test/fixtures.js +15 -0
- package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
- 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 +1 -3
- 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 +160 -0
- package/es/molecule/wizard-summary/index.js.map +1 -0
- package/es/molecule/wizard-summary/style.css +150 -0
- package/es/molecule/wizard-summary/test/fixtures/default.js +117 -0
- package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/one-section.js +22 -0
- package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js +41 -0
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/two-sections.js +34 -0
- package/es/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures.js +19 -0
- package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
- 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/manageusers-edit.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/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/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-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/settings/index.js +2 -3
- package/es/organism/settings/index.js.map +1 -1
- package/es/organism/sidebar/index.js +10 -11
- package/es/organism/sidebar/index.js.map +1 -1
- package/es/organism/user-preferences/index.js +2 -3
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/user-preferences/style.css +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 +11 -14
- 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 +2 -3
- 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 +7 -11
- 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 +3 -4
- 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 +7 -7
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
- package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.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 +1 -1
- package/es/template/back-office/brand-update/test/fixtures/uploadusers.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 +3 -4
- package/es/util/test/navigation.js.map +1 -1
- package/es/variables/colors.css +12 -0
- 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/chips/index.js +52 -0
- package/lib/atom/chips/index.js.map +1 -0
- package/lib/atom/chips/style.css +66 -0
- package/lib/atom/chips/test/fixtures/default.js +14 -0
- package/lib/atom/chips/test/fixtures/default.js.map +1 -0
- package/lib/atom/chips/test/fixtures/non-selected.js +14 -0
- package/lib/atom/chips/test/fixtures/non-selected.js.map +1 -0
- package/lib/atom/chips/test/fixtures.js +25 -0
- package/lib/atom/chips/test/fixtures.js.map +1 -0
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/content-badge/index.js +32 -0
- package/lib/atom/content-badge/index.js.map +1 -0
- package/lib/atom/content-badge/style.css +59 -0
- package/lib/atom/content-badge/test/fixtures/advanced.js +12 -0
- package/lib/atom/content-badge/test/fixtures/advanced.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/article.js +12 -0
- package/lib/atom/content-badge/test/fixtures/article.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/chapter.js +12 -0
- package/lib/atom/content-badge/test/fixtures/chapter.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/coach.js +12 -0
- package/lib/atom/content-badge/test/fixtures/coach.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/default.js +12 -0
- package/lib/atom/content-badge/test/fixtures/default.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/podcast.js +12 -0
- package/lib/atom/content-badge/test/fixtures/podcast.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/scorm.js +12 -0
- package/lib/atom/content-badge/test/fixtures/scorm.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/video.js +12 -0
- package/lib/atom/content-badge/test/fixtures/video.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures.js +43 -0
- package/lib/atom/content-badge/test/fixtures.js.map +1 -0
- 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-checkbox/index.js.map +1 -1
- package/lib/atom/input-checkbox/style.css +0 -4
- 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-switch/index.js +2 -2
- 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-text/index.js +38 -8
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text/style.css +224 -1
- package/lib/atom/input-text/test/fixtures/cm-default.js +22 -0
- package/lib/atom/input-text/test/fixtures/cm-default.js.map +1 -0
- package/lib/atom/input-textarea/index.js +2 -2
- package/lib/atom/link/index.js +2 -4
- 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.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/atom/wizard-steps/index.js +49 -0
- package/lib/atom/wizard-steps/index.js.map +1 -0
- package/lib/atom/wizard-steps/style.css +150 -0
- package/lib/atom/wizard-steps/test/fixtures/default.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/default.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures/first-step.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures/last-step.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/last-step.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures.js +28 -0
- package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
- 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 +3 -5
- 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 +3 -5
- 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/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/card/index.js +3 -3
- package/lib/molecule/card/index.js.map +1 -1
- 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/disabled.js +1 -1
- package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
- 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/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/discipline-partners/index.js +5 -2
- package/lib/molecule/discipline-partners/index.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 +2 -4
- 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 +2 -4
- package/lib/molecule/resource-player/index.js.map +1 -1
- package/lib/molecule/scope-tabs/index.js +2 -2
- package/lib/molecule/search/index.js +2 -2
- package/lib/molecule/search-form/index.js +2 -2
- package/lib/molecule/select-multiple/index.js +1 -1
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/select-multiple/test/index.js +3 -3
- 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/index.js +66 -0
- package/lib/molecule/vertical-tabs/index.js.map +1 -0
- package/lib/molecule/vertical-tabs/style.css +69 -0
- package/lib/molecule/vertical-tabs/test/fixtures/default.js +46 -0
- package/lib/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
- package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js +86 -0
- package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js.map +1 -0
- package/lib/molecule/vertical-tabs/test/fixtures.js +25 -0
- package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
- 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 +1 -3
- 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 +177 -0
- package/lib/molecule/wizard-summary/index.js.map +1 -0
- package/lib/molecule/wizard-summary/style.css +150 -0
- package/lib/molecule/wizard-summary/test/fixtures/default.js +122 -0
- package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/one-section.js +27 -0
- package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +46 -0
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +39 -0
- package/lib/molecule/wizard-summary/test/fixtures/two-sections.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures.js +31 -0
- package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
- 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/manageusers-edit.js.map +1 -1
- 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/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/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-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/settings/index.js +2 -4
- package/lib/organism/settings/index.js.map +1 -1
- package/lib/organism/sidebar/index.js +13 -15
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/organism/user-preferences/index.js +2 -4
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/user-preferences/style.css +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 +11 -15
- 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 +4 -6
- 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 +7 -12
- 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 +5 -7
- 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 +7 -7
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- 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/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/lookandfeel.js +2 -2
- package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
- 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.js +2 -2
- 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 +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/uploadusers.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 +3 -5
- package/lib/util/test/navigation.js.map +1 -1
- package/lib/variables/colors.css +12 -0
- package/package.json +3 -3
- package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
- package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
- package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
|
@@ -5,6 +5,15 @@
|
|
|
5
5
|
@value dark from colors;
|
|
6
6
|
@value grey from colors;
|
|
7
7
|
@value medium from colors;
|
|
8
|
+
@value xtraLightGrey from colors;
|
|
9
|
+
@value cm_positive_100 from colors;
|
|
10
|
+
@value cm_negative_100 from colors;
|
|
11
|
+
@value cm_grey_100 from colors;
|
|
12
|
+
@value cm_grey_150 from colors;
|
|
13
|
+
@value cm_grey_200 from colors;
|
|
14
|
+
@value cm_grey_400 from colors;
|
|
15
|
+
@value cm_grey_500 from colors;
|
|
16
|
+
@value cm_grey_700 from colors;
|
|
8
17
|
|
|
9
18
|
.default {
|
|
10
19
|
display: flex;
|
|
@@ -64,7 +73,7 @@
|
|
|
64
73
|
bottom: 65px;
|
|
65
74
|
left: 20px;
|
|
66
75
|
max-width: 380px;
|
|
67
|
-
transition: opacity 0.
|
|
76
|
+
transition: opacity 0.25s ease-in;
|
|
68
77
|
}
|
|
69
78
|
.cockpit .description:after {
|
|
70
79
|
content: "";
|
|
@@ -168,3 +177,217 @@
|
|
|
168
177
|
color: medium;
|
|
169
178
|
font-style: italic;
|
|
170
179
|
}
|
|
180
|
+
/******************************* coorpmanager theme ***************************************/
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
.coorpmanager {
|
|
184
|
+
width: 300px;
|
|
185
|
+
position: relative;
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
align-items: flex-start;
|
|
189
|
+
flex-wrap: nowrap;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.coorpmanager label {
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
195
|
+
align-items: flex-start;
|
|
196
|
+
height: 0px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.coorpmanager .title {
|
|
200
|
+
flex-grow: 0;
|
|
201
|
+
font-family: Gilroy;
|
|
202
|
+
font-size: 10px;
|
|
203
|
+
font-weight: bold;
|
|
204
|
+
font-stretch: normal;
|
|
205
|
+
font-style: normal;
|
|
206
|
+
line-height: 1.2;
|
|
207
|
+
letter-spacing: normal;
|
|
208
|
+
text-align: left;
|
|
209
|
+
margin: 7px 0px -19px 16px;
|
|
210
|
+
z-index: 1;
|
|
211
|
+
color: cm_grey_400;
|
|
212
|
+
width: auto;
|
|
213
|
+
transition: all 0.25s linear;
|
|
214
|
+
pointer-events: none;
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: row;
|
|
217
|
+
flex-wrap: nowrap;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.coorpmanager .title.noValue .infoIcon {
|
|
221
|
+
height: 10px;
|
|
222
|
+
width: 10px;
|
|
223
|
+
line-height: 12px;
|
|
224
|
+
color: cm_grey_500;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.coorpmanager input {
|
|
228
|
+
width: 300px;
|
|
229
|
+
height: 44px;
|
|
230
|
+
margin: 0px;
|
|
231
|
+
flex-grow: 0;
|
|
232
|
+
display: flex;
|
|
233
|
+
box-sizing: border-box;
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
justify-content: center;
|
|
236
|
+
align-items: flex-start;
|
|
237
|
+
padding: 19px 30px 5px 16px;
|
|
238
|
+
border-radius: 7px;
|
|
239
|
+
background-color: cm_grey_100;
|
|
240
|
+
font-family: Gilroy;
|
|
241
|
+
font-size: 14px;
|
|
242
|
+
font-weight: 500;
|
|
243
|
+
font-stretch: normal;
|
|
244
|
+
font-style: normal;
|
|
245
|
+
line-height: 44px;
|
|
246
|
+
letter-spacing: normal;
|
|
247
|
+
text-align: left;
|
|
248
|
+
color: cm_grey_700;
|
|
249
|
+
border: none;
|
|
250
|
+
transition: all 0.25s linear;
|
|
251
|
+
outline: none;
|
|
252
|
+
display: flex;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.coorpmanager .title.noValue{
|
|
256
|
+
font-size: 14px;
|
|
257
|
+
font-weight: 500;
|
|
258
|
+
color: cm_grey_700;
|
|
259
|
+
margin: 14px 0px -30px 16px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.coorpmanager:focus-within .title.noValue {
|
|
263
|
+
font-size: 10px;
|
|
264
|
+
font-weight: bold;
|
|
265
|
+
color: cm_grey_400;
|
|
266
|
+
margin: 7px 0px -19px 16px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.coorpmanager:focus-within input::placeholder {
|
|
270
|
+
color: cm_grey_400;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.coorpmanager:focus-within .title.noValue .infoIcon {
|
|
274
|
+
width: 8px;
|
|
275
|
+
height: 8px;
|
|
276
|
+
line-height: 12px;
|
|
277
|
+
color: cm_grey_400;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.coorpmanager input:hover {
|
|
281
|
+
background-color: cm_grey_150;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.coorpmanager input::placeholder {
|
|
285
|
+
color: transparent;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.coorpmanager .hint {
|
|
289
|
+
flex-grow: 0;
|
|
290
|
+
opacity: 0.5;
|
|
291
|
+
font-family: Gilroy;
|
|
292
|
+
font-size: 10px;
|
|
293
|
+
font-weight: 500;
|
|
294
|
+
font-stretch: normal;
|
|
295
|
+
font-style: normal;
|
|
296
|
+
line-height: 1.2;
|
|
297
|
+
letter-spacing: normal;
|
|
298
|
+
text-align: left;
|
|
299
|
+
padding-top: 8px;
|
|
300
|
+
color: cm_grey_700;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.coorpmanager.error .hint {
|
|
304
|
+
color: cm_negative_100;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.coorpmanager.error .leftIcon {
|
|
308
|
+
background-color: cm_negative_100;
|
|
309
|
+
color: white;
|
|
310
|
+
border-radius: 50%;
|
|
311
|
+
padding: 2px;
|
|
312
|
+
width: 8px;
|
|
313
|
+
height: 8px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.coorpmanager .leftIcon {
|
|
317
|
+
color: cm_positive_100;
|
|
318
|
+
width: 14px;
|
|
319
|
+
height: 14px;
|
|
320
|
+
position: absolute;
|
|
321
|
+
right: 15px;
|
|
322
|
+
top: 16px;
|
|
323
|
+
line-height: 16px;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.coorpmanager.disabled {
|
|
327
|
+
opacity: 0.5;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.coorpmanager .infoIconWrapper {
|
|
331
|
+
overflow: visible;
|
|
332
|
+
height: 12px;
|
|
333
|
+
margin: 0px 4px;
|
|
334
|
+
cursor: pointer;
|
|
335
|
+
pointer-events: fill;
|
|
336
|
+
position: relative;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.coorpmanager .infoIcon {
|
|
340
|
+
cursor: pointer;
|
|
341
|
+
width: 8px;
|
|
342
|
+
height: 8px;
|
|
343
|
+
line-height: 16px;
|
|
344
|
+
color: cm_grey_400;
|
|
345
|
+
transition: all 0.25s linear;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.coorpmanager .infoIconWrapper:hover .descriptionLabel {
|
|
349
|
+
visibility: visible;
|
|
350
|
+
opacity: 1;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.coorpmanager .descriptionLabel {
|
|
354
|
+
margin: 0 1px 18px 0;
|
|
355
|
+
padding: 8px 16px;
|
|
356
|
+
border-radius: 7px;
|
|
357
|
+
background-color: cm_grey_700;
|
|
358
|
+
flex-grow: 0;
|
|
359
|
+
font-family: Gilroy;
|
|
360
|
+
font-size: 14px;
|
|
361
|
+
font-weight: 500;
|
|
362
|
+
font-stretch: normal;
|
|
363
|
+
font-style: normal;
|
|
364
|
+
line-height: 1.43;
|
|
365
|
+
letter-spacing: normal;
|
|
366
|
+
text-align: center;
|
|
367
|
+
color: white;
|
|
368
|
+
padding: 8px 16px;
|
|
369
|
+
max-width: 200px;
|
|
370
|
+
position: absolute;
|
|
371
|
+
left: -24px;
|
|
372
|
+
z-index: 3;
|
|
373
|
+
bottom: 5px;
|
|
374
|
+
width: max-content;
|
|
375
|
+
visibility: hidden;
|
|
376
|
+
opacity: 0s
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.coorpmanager .descriptionLabel::after{
|
|
380
|
+
content:'';
|
|
381
|
+
border-left: 6px solid transparent;
|
|
382
|
+
border-right: 6px solid transparent;
|
|
383
|
+
border-top: 6px solid cm_grey_700;
|
|
384
|
+
position: absolute;
|
|
385
|
+
bottom: -6px;
|
|
386
|
+
left: 21px;
|
|
387
|
+
}
|
|
388
|
+
.coorpmanager .title.noValue .descriptionLabel::after{
|
|
389
|
+
left: 22px;
|
|
390
|
+
}
|
|
391
|
+
.coorpmanager:focus-within .title.noValue .descriptionLabel::after{
|
|
392
|
+
left: 21px;
|
|
393
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
props: {
|
|
7
|
+
type: 'text',
|
|
8
|
+
title: 'Input name',
|
|
9
|
+
hint: 'Hint <span style="color:red;">10<span>/40',
|
|
10
|
+
placeholder: 'This is an input',
|
|
11
|
+
theme: 'coorpmanager',
|
|
12
|
+
description: 'This is the tooltip text',
|
|
13
|
+
value: 'This is an input',
|
|
14
|
+
disabled: false,
|
|
15
|
+
valid: false,
|
|
16
|
+
error: '',
|
|
17
|
+
required: true,
|
|
18
|
+
onChange: value => console.log(value)
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.default = _default;
|
|
22
|
+
//# sourceMappingURL=cm-default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/atom/input-text/test/fixtures/cm-default.js"],"names":["props","type","title","hint","placeholder","theme","description","value","disabled","valid","error","required","onChange","console","log"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,MADD;AAELC,IAAAA,KAAK,EAAE,YAFF;AAGLC,IAAAA,IAAI,EAAE,2CAHD;AAILC,IAAAA,WAAW,EAAE,kBAJR;AAKLC,IAAAA,KAAK,EAAE,cALF;AAMLC,IAAAA,WAAW,EAAE,0BANR;AAOLC,IAAAA,KAAK,EAAE,kBAPF;AAQLC,IAAAA,QAAQ,EAAE,KARL;AASLC,IAAAA,KAAK,EAAE,KATF;AAULC,IAAAA,KAAK,EAAE,EAVF;AAWLC,IAAAA,QAAQ,EAAE,IAXL;AAYLC,IAAAA,QAAQ,EAAEL,KAAK,IAAIM,OAAO,CAACC,GAAR,CAAYP,KAAZ;AAZd;AADM,C","sourcesContent":["export default {\n props: {\n type: 'text',\n title: 'Input name',\n hint: 'Hint <span style=\"color:red;\">10<span>/40',\n placeholder: 'This is an input',\n theme: 'coorpmanager',\n description: 'This is the tooltip text',\n value: 'This is an input',\n disabled: false,\n valid: false,\n error: '',\n required: true,\n onChange: value => console.log(value)\n }\n};\n"],"file":"cm-default.js"}
|
|
@@ -17,9 +17,9 @@ var _getClassState = _interopRequireDefault(require("../../util/get-class-state"
|
|
|
17
17
|
|
|
18
18
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
19
19
|
|
|
20
|
-
function _getRequireWildcardCache(
|
|
20
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
21
21
|
|
|
22
|
-
function _interopRequireWildcard(obj
|
|
22
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
package/lib/atom/link/index.js
CHANGED
|
@@ -17,8 +17,6 @@ var _provider = _interopRequireDefault(require("../provider"));
|
|
|
17
17
|
|
|
18
18
|
var _navigation = _interopRequireDefault(require("../../util/navigation"));
|
|
19
19
|
|
|
20
|
-
const _excluded = ["skinHover", "hoverColor", "data-name"];
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
21
|
|
|
24
22
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -83,7 +81,7 @@ class Link extends _react.default.Component {
|
|
|
83
81
|
hoverColor = (0, _getOr2.default)('#00B0FF', 'common.primary', skin),
|
|
84
82
|
'data-name': dataName = 'link'
|
|
85
83
|
} = _this$props,
|
|
86
|
-
aProps = _objectWithoutPropertiesLoose(_this$props,
|
|
84
|
+
aProps = _objectWithoutPropertiesLoose(_this$props, ["skinHover", "hoverColor", "data-name"]);
|
|
87
85
|
|
|
88
86
|
const {
|
|
89
87
|
href,
|
|
@@ -111,7 +109,7 @@ class Link extends _react.default.Component {
|
|
|
111
109
|
onMouseEnter: this.handleMouseEnter,
|
|
112
110
|
onMouseLeave: this.handleMouseLeave,
|
|
113
111
|
className: className,
|
|
114
|
-
style: _extends({}, propsStyle, _style, _hoverStyle)
|
|
112
|
+
style: _extends(_extends(_extends({}, propsStyle), _style), _hoverStyle)
|
|
115
113
|
}), children);
|
|
116
114
|
}
|
|
117
115
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/link/index.js"],"names":["Link","React","Component","constructor","props","onMouseEnter","setState","hovered","onMouseLeave","e","onClick","download","navigate","context","state","render","skin","history","createHref","skinHover","hoverColor","dataName","aProps","href","className","style","propsStyle","children","_style","pointerEvents","_hoverStyle","color","undefined","handleOnClick","handleMouseEnter","handleMouseLeave","Provider","childContextTypes","propTypes","PropTypes","node","string","target","oneOf","bool","func","shape"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/link/index.js"],"names":["Link","React","Component","constructor","props","onMouseEnter","setState","hovered","onMouseLeave","e","onClick","download","navigate","context","state","render","skin","history","createHref","skinHover","hoverColor","dataName","aProps","href","className","style","propsStyle","children","_style","pointerEvents","_hoverStyle","color","undefined","handleOnClick","handleMouseEnter","handleMouseLeave","Provider","childContextTypes","propTypes","PropTypes","node","string","target","oneOf","bool","func","shape"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,MAAMA,IAAN,SAAmBC,eAAMC,SAAzB,CAAmC;AAqBjCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;;AADiB,8CAOA,MAAM;AACvB,YAAM;AAACC,QAAAA,YAAY;AAAb,UAAwB,KAAKD,KAAnC;AAEA,WAAKE,QAAL,CAAc;AACZC,QAAAA,OAAO,EAAE;AADG,OAAd;AAIAF,MAAAA,YAAY;AACb,KAfkB;;AAAA,8CAiBA,MAAM;AACvB,YAAM;AAACG,QAAAA,YAAY;AAAb,UAAwB,KAAKJ,KAAnC;AAEA,WAAKE,QAAL,CAAc;AACZC,QAAAA,OAAO,EAAE;AADG,OAAd;AAIAC,MAAAA,YAAY;AACb,KAzBkB;;AAAA,2CA2BHC,CAAC,IAAI;AACnB,YAAM;AAACC,QAAAA,OAAO,iBAAR;AAAiBC,QAAAA;AAAjB,UAA6B,KAAKP,KAAxC;AAEAM,MAAAA,OAAO,CAACD,CAAD,CAAP;;AAEA,UAAI,CAACE,QAAL,EAAe;AACb,cAAMC,QAAQ,GAAG,yBAAc,KAAKC,OAAnB,EAA4B,KAAKT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H,CADF;AAkBD;;AApGgC;;gBAA7B3B,I,kBAgBkB;AACpBgB,EAAAA,IAAI,EAAEoB,kBAASC,iBAAT,CAA2BrB,IADb;AAEpBC,EAAAA,OAAO,EAAEmB,kBAASC,iBAAT,CAA2BpB;AAFhB,C;;AAhBlBjB,I,CACGsC,S,2CAAY;AACjBX,EAAAA,QAAQ,EAAEY,mBAAUC,IADH;AAEjBhB,EAAAA,SAAS,EAAEe,mBAAUE,MAFJ;AAGjBlB,EAAAA,IAAI,EAAEgB,mBAAUE,MAHC;AAIjB,eAAaF,mBAAUE,MAJN;AAKjBC,EAAAA,MAAM,EAAEH,mBAAUI,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB,CALS;AAMjBxB,EAAAA,SAAS,EAAEoB,mBAAUK,IANJ;AAOjBxB,EAAAA,UAAU,EAAEmB,mBAAUE,MAPL;AAQjB9B,EAAAA,QAAQ,EAAE4B,mBAAUK,IARH;AASjBlC,EAAAA,OAAO,EAAE6B,mBAAUM,IATF;AAUjBxC,EAAAA,YAAY,EAAEkC,mBAAUM,IAVP;AAWjBrC,EAAAA,YAAY,EAAE+B,mBAAUM,IAXP;AAYjBpB,EAAAA,KAAK,EAAEc,mBAAUO,KAAV,CAAgB,EAAhB;AAZU,C;eAsGN9C,I","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, getOr, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nclass Link extends React.Component {\n static propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n skinHover: PropTypes.bool,\n hoverColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n style: PropTypes.shape({})\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n };\n\n constructor(props) {\n super(props);\n this.state = {\n hovered: false\n };\n }\n\n handleMouseEnter = () => {\n const {onMouseEnter = noop} = this.props;\n\n this.setState({\n hovered: true\n });\n\n onMouseEnter();\n };\n\n handleMouseLeave = () => {\n const {onMouseLeave = noop} = this.props;\n\n this.setState({\n hovered: false\n });\n\n onMouseLeave();\n };\n\n handleOnClick = e => {\n const {onClick = noop, download} = this.props;\n\n onClick(e);\n\n if (!download) {\n const navigate = pushToHistory(this.context)(this.props);\n navigate(e);\n }\n };\n\n render() {\n const {skin, history: {createHref = identity} = {}} = this.context;\n const {\n skinHover,\n hoverColor = getOr('#00B0FF', 'common.primary', skin),\n 'data-name': dataName = 'link',\n ...aProps\n } = this.props;\n const {href, onClick, className, style: propsStyle, children} = this.props;\n const {hovered} = this.state;\n const _style =\n href || onClick\n ? null\n : {\n pointerEvents: 'none'\n };\n const _hoverStyle =\n skinHover && hovered\n ? {\n color: hoverColor\n }\n : null;\n\n return (\n <a\n {...aProps}\n data-name={dataName}\n href={href ? createHref(href) : undefined}\n onClick={this.handleOnClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n className={className}\n style={{\n ...propsStyle,\n ..._style,\n ..._hoverStyle\n }}\n >\n {children}\n </a>\n );\n }\n}\n\nexport default Link;\n"],"file":"index.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/promo-code/index.js"],"names":["PromoCode","props","context","promoCodeDescription","promoCodeError","onValidate","handlePromoCodeChange","translate","style","promoCode","promoCodeInputAndButton","promoCodeInput","promoCodeButtonOnError","promoCodeButtonOnSuccess","promoCodeButton","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","func","isRequired"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACpC,QAAM;AAACC,IAAAA,oBAAD;AAAuBC,IAAAA,cAAvB;AAAuCC,IAAAA,UAAvC;AAAmDC,IAAAA;AAAnD,MAA4EL,KAAlF;AAEA,QAAM;AAACM,IAAAA;AAAD,MAAcL,OAApB;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEM,eAAMC;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAED,eAAME;AAAtB,kBACE;AACE,IAAA,IAAI,EAAC,MADP;AAEE,IAAA,WAAW,EAAEH,SAAS,CAAC,qBAAD,CAFxB;AAGE,IAAA,SAAS,EAAG;
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/promo-code/index.js"],"names":["PromoCode","props","context","promoCodeDescription","promoCodeError","onValidate","handlePromoCodeChange","translate","style","promoCode","promoCodeInputAndButton","promoCodeInput","promoCodeButtonOnError","promoCodeButtonOnSuccess","promoCodeButton","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","func","isRequired"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;AACpC,QAAM;AAACC,IAAAA,oBAAD;AAAuBC,IAAAA,cAAvB;AAAuCC,IAAAA,UAAvC;AAAmDC,IAAAA;AAAnD,MAA4EL,KAAlF;AAEA,QAAM;AAACM,IAAAA;AAAD,MAAcL,OAApB;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEM,eAAMC;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAED,eAAME;AAAtB,kBACE;AACE,IAAA,IAAI,EAAC,MADP;AAEE,IAAA,WAAW,EAAEH,SAAS,CAAC,qBAAD,CAFxB;AAGE,IAAA,SAAS,EAAG;cACRC,eAAMG,cAAe;cACrBP,cAAc,IAAII,eAAMI,sBAAuB;cAC/CT,oBAAoB,IAAIK,eAAMK,wBAAyB;WAN7D;AAQE,IAAA,QAAQ,EAAEP;AARZ,IADF,eAWE;AAAQ,IAAA,IAAI,EAAC,QAAb;AAAsB,IAAA,OAAO,EAAED,UAA/B;AAA2C,IAAA,SAAS,EAAEG,eAAMM;AAA5D,KACGP,SAAS,CAAC,4BAAD,CADZ,CAXF,CADF,EAgBGJ,oBAAoB,gBACnB;AAAK,IAAA,SAAS,EAAEK,eAAML;AAAtB,UAA8CA,oBAA9C,CADmB,GAEjB,IAlBN,EAmBGC,cAAc,gBAAG;AAAK,IAAA,SAAS,EAAEI,eAAMJ;AAAtB,UAAwCA,cAAxC,CAAH,GAAmE,IAnBpF,CADF;AAuBD,CA5BD;;AA8BAJ,SAAS,CAACe,YAAV,GAAyB;AACvBR,EAAAA,SAAS,EAAES,kBAASC,iBAAT,CAA2BV;AADf,CAAzB;AAIAP,SAAS,CAACkB,SAAV,2CAAsB;AACpBf,EAAAA,oBAAoB,EAAEgB,mBAAUC,MADZ;AAEpBhB,EAAAA,cAAc,EAAEe,mBAAUC,MAFN;AAGpBf,EAAAA,UAAU,EAAEc,mBAAUE,IAAV,CAAeC,UAHP;AAIpBhB,EAAAA,qBAAqB,EAAEa,mBAAUE,IAAV,CAAeC;AAJlB,CAAtB;eAOetB,S","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst PromoCode = (props, context) => {\n const {promoCodeDescription, promoCodeError, onValidate, handlePromoCodeChange} = props;\n\n const {translate} = context;\n\n return (\n <div className={style.promoCode}>\n <div className={style.promoCodeInputAndButton}>\n <input\n type=\"text\"\n placeholder={translate('zuora_discount_code')}\n className={`\n ${style.promoCodeInput}\n ${promoCodeError && style.promoCodeButtonOnError}\n ${promoCodeDescription && style.promoCodeButtonOnSuccess}\n `}\n onChange={handlePromoCodeChange}\n />\n <button type=\"submit\" onClick={onValidate} className={style.promoCodeButton}>\n {translate('zuora_discount_code_submit')}\n </button>\n </div>\n {promoCodeDescription ? (\n <div className={style.promoCodeDescription}>-{promoCodeDescription}</div>\n ) : null}\n {promoCodeError ? <div className={style.promoCodeError}>-{promoCodeError}</div> : null}\n </div>\n );\n};\n\nPromoCode.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nPromoCode.propTypes = {\n promoCodeDescription: PropTypes.string,\n promoCodeError: PropTypes.string,\n onValidate: PropTypes.func.isRequired,\n handlePromoCodeChange: PropTypes.func.isRequired\n};\n\nexport default PromoCode;\n"],"file":"index.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/provider/index.js"],"names":["DEFAULT_SKIN","common","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","isRequired","object","propTypes","node"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAEA,MAAMA,YAAY,GAAG;AACnBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,KAAK,EAAE,SADD;AAENC,IAAAA,WAAW,EAAE,SAFP;AAGNC,IAAAA,WAAW,EAAE,SAHP;AAINC,IAAAA,WAAW,EAAE,SAJP;AAKNC,IAAAA,WAAW,EAAE,SALP;AAMNC,IAAAA,aAAa,EAAE,SANT;AAONC,IAAAA,KAAK,EAAE,SAPD;AAQNC,IAAAA,MAAM,EAAE,SARF;AASNC,IAAAA,IAAI,EAAE,SATA;AAUNC,IAAAA,IAAI,EAAE,SAVA;AAWNC,IAAAA,SAAS,EAAE,SAXL;AAYNC,IAAAA,MAAM,EAAE,SAZF;AAaNC,IAAAA,QAAQ,EAAE,SAbJ;AAcNC,IAAAA,UAAU,EAAE,SAdN;AAeNC,IAAAA,QAAQ,EAAE,SAfJ;AAgBNC,IAAAA,MAAM,EAAE,SAhBF;AAiBNC,IAAAA,KAAK,EAAE,SAjBD;AAkBNC,IAAAA,KAAK,EAAE;AAlBD;AADW,CAArB;;AAuBA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,EAAR,KAAe,4BAAaA,IAAb,EAAmBrB,YAAnB,CAAjC;;AAEA,MAAMsB,YAAY,GAAGC,mBAAUC,KAAV,CAAgB;AACnCC,EAAAA,UAAU,EAAEF,mBAAUG,IADa;AAEnCC,EAAAA,IAAI,EAAEJ,mBAAUG;AAFmB,CAAhB,CAArB;;AAKA,MAAME,SAAS,GAAGL,mBAAUC,KAAV,CAAgB;AAChCvB,EAAAA,MAAM,EAAEsB,mBAAUM,QAAV,CAAmBC,wBAAnB,CADwB;AAEhCC,EAAAA,MAAM,EAAER,mBAAUC,KAAV,CAAgB;AACtB,mBAAeQ,sBADO;AAEtBC,IAAAA,IAAI,EAAED,sBAFgB;AAGtB,kBAAcA,sBAHQ;AAItBE,IAAAA,KAAK,EAAEF;AAJe,GAAhB,CAFwB;AAQhCG,EAAAA,KAAK,EAAEZ,mBAAUM,QAAV,CAAmBO,sBAAnB,CARyB;AAShCC,EAAAA,GAAG,EAAEd,mBAAUM,QAAV,CAAmBC,wBAAnB,CAT2B;AAUhCQ,EAAAA,OAAO,EAAEf,mBAAUgB,OAAV,CAAkBT,wBAAlB,CAVuB;AAWhCU,EAAAA,KAAK,EAAEjB,mBAAUM,QAAV,CAAmBC,wBAAnB;AAXyB,CAAhB,CAAlB;;AAcA,MAAMW,cAAc,GAAGlB,mBAAUG,IAAjC;;AAEA,MAAMgB,QAAN,SAAuBC,eAAMC,SAA7B,CAAuC;
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/provider/index.js"],"names":["DEFAULT_SKIN","common","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","isRequired","object","propTypes","node"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAEA,MAAMA,YAAY,GAAG;AACnBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,KAAK,EAAE,SADD;AAENC,IAAAA,WAAW,EAAE,SAFP;AAGNC,IAAAA,WAAW,EAAE,SAHP;AAINC,IAAAA,WAAW,EAAE,SAJP;AAKNC,IAAAA,WAAW,EAAE,SALP;AAMNC,IAAAA,aAAa,EAAE,SANT;AAONC,IAAAA,KAAK,EAAE,SAPD;AAQNC,IAAAA,MAAM,EAAE,SARF;AASNC,IAAAA,IAAI,EAAE,SATA;AAUNC,IAAAA,IAAI,EAAE,SAVA;AAWNC,IAAAA,SAAS,EAAE,SAXL;AAYNC,IAAAA,MAAM,EAAE,SAZF;AAaNC,IAAAA,QAAQ,EAAE,SAbJ;AAcNC,IAAAA,UAAU,EAAE,SAdN;AAeNC,IAAAA,QAAQ,EAAE,SAfJ;AAgBNC,IAAAA,MAAM,EAAE,SAhBF;AAiBNC,IAAAA,KAAK,EAAE,SAjBD;AAkBNC,IAAAA,KAAK,EAAE;AAlBD;AADW,CAArB;;AAuBA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,EAAR,KAAe,4BAAaA,IAAb,EAAmBrB,YAAnB,CAAjC;;AAEA,MAAMsB,YAAY,GAAGC,mBAAUC,KAAV,CAAgB;AACnCC,EAAAA,UAAU,EAAEF,mBAAUG,IADa;AAEnCC,EAAAA,IAAI,EAAEJ,mBAAUG;AAFmB,CAAhB,CAArB;;AAKA,MAAME,SAAS,GAAGL,mBAAUC,KAAV,CAAgB;AAChCvB,EAAAA,MAAM,EAAEsB,mBAAUM,QAAV,CAAmBC,wBAAnB,CADwB;AAEhCC,EAAAA,MAAM,EAAER,mBAAUC,KAAV,CAAgB;AACtB,mBAAeQ,sBADO;AAEtBC,IAAAA,IAAI,EAAED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,WAAOH,eAAMa,QAAN,CAAeC,IAAf,CAAoBF,QAApB,CAAP;AACD;;AA1CoC;;gBAAjCb,Q,uBAWuB;AACzBK,EAAAA,OAAO,EAAEzB,YADgB;AAEzBD,EAAAA,IAAI,EAAEO,SAFmB;AAGzBoB,EAAAA,SAAS,EAAEP,cAAc,CAACiB,UAHD;AAIzBP,EAAAA,KAAK,EAAE5B,mBAAUoC;AAJQ,C;;AAXvBjB,Q,CACGkB,S,2CAAY;AACjBb,EAAAA,OAAO,EAAEzB,YADQ;AAEjBD,EAAAA,IAAI,EAAEO,SAFW;AAGjBoB,EAAAA,SAAS,EAAEP,cAHM;AAIjBc,EAAAA,QAAQ,EAAEhC,mBAAUsC,IAAV,CAAeH,UAJR;AAKjBP,EAAAA,KAAK,EAAE5B,mBAAUC,KAAV,CAAgB;AACrBvB,IAAAA,MAAM,EAAEsB,mBAAUG;AADG,GAAhB;AALU,C;eA4CNgB,Q","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {defaultsDeep} from 'lodash/fp';\nimport {SrcPropType, ColorPropType, HexPropType} from '../../util/proptypes';\n\nconst DEFAULT_SKIN = {\n common: {\n brand: '#00B0FF',\n primaryAdd1: '#B3E5FC',\n primaryAdd2: '#0091EA',\n primaryAdd3: '#0277BD',\n primaryAdd4: '#015798',\n xtraLightGrey: '#FAFAFA',\n light: '#ECEFF1',\n medium: '#90A4AE',\n dark: '#546E7A',\n grey: '#607D8B',\n orangeAdd: '#FF7043',\n orange: '#FFA000',\n positive: '#3EC483',\n lightGreen: '#66BB6A',\n negative: '#F73F52',\n battle: '#FFE100',\n white: '#FFFFFF',\n black: '#14171A'\n }\n};\n\nconst mergeSkin = (skin = {}) => defaultsDeep(skin, DEFAULT_SKIN);\n\nconst historyShape = PropTypes.shape({\n createHref: PropTypes.func,\n push: PropTypes.func\n});\n\nconst skinShape = PropTypes.shape({\n common: PropTypes.objectOf(ColorPropType),\n images: PropTypes.shape({\n 'logo-mobile': SrcPropType,\n logo: SrcPropType,\n 'logo-email': SrcPropType,\n login: SrcPropType\n }),\n icons: PropTypes.objectOf(HexPropType),\n mod: PropTypes.objectOf(ColorPropType),\n courses: PropTypes.arrayOf(ColorPropType),\n texts: PropTypes.objectOf(ColorPropType)\n});\n\nconst translateShape = PropTypes.func;\n\nclass Provider extends React.Component {\n static propTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n children: PropTypes.node.isRequired,\n Vimeo: PropTypes.shape({\n common: PropTypes.func\n })\n };\n\n static childContextTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape.isRequired,\n Vimeo: PropTypes.object\n };\n\n static getDerivedStateFromProps(props) {\n const {history, skin, translate} = props;\n\n return {\n history,\n skin: mergeSkin(skin),\n translate\n };\n }\n\n constructor(props, context) {\n super(props, context);\n const {history, skin, translate, Vimeo} = props;\n // eslint-disable-next-line react/no-unused-state\n this.state = {history, skin: mergeSkin(skin), translate, Vimeo};\n }\n\n getChildContext() {\n return this.state;\n }\n\n render() {\n const {children} = this.props;\n return React.Children.only(children);\n }\n}\n\nexport default Provider;\n"],"file":"index.js"}
|
|
@@ -31,7 +31,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
31
31
|
};
|
|
32
32
|
const wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react.default.createElement(_.default, _default.default.props, /*#__PURE__*/_react.default.createElement("span", null, "Foo")));
|
|
33
33
|
t.is(wrapper.state.history, undefined);
|
|
34
|
-
wrapper.setProps(_extends({}, _default.default.props, {
|
|
34
|
+
wrapper.setProps(_extends(_extends({}, _default.default.props), {}, {
|
|
35
35
|
history
|
|
36
36
|
}));
|
|
37
37
|
t.is(wrapper.state().history, history);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/atom/provider/test/index.js"],"names":["adapter","Adapter","t","history","createHref","push","wrapper","defaultFixture","props","is","state","undefined","setProps"],"mappings":";;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAEA;AACA,uBAAU;AAACA,EAAAA,OAAO,EAAE,IAAIC,2BAAJ;AAAV,CAAV;AAEA,kBAAK,8CAAL,EAAqDC,CAAC,IAAI;AACxD,QAAMC,OAAO,GAAG;AACdC,IAAAA,UAAU,gBADI;AAEdC,IAAAA,IAAI;AAFU,GAAhB;AAIA,QAAMC,OAAO,GAAG,mCACd,6BAAC,SAAD,EAAcC,iBAAeC,KAA7B,eACE,iDADF,CADc,CAAhB;AAMAN,EAAAA,CAAC,CAACO,EAAF,CAAKH,OAAO,CAACI,KAAR,CAAcP,OAAnB,EAA4BQ,SAA5B;AACAL,EAAAA,OAAO,CAACM,QAAR,
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/provider/test/index.js"],"names":["adapter","Adapter","t","history","createHref","push","wrapper","defaultFixture","props","is","state","undefined","setProps"],"mappings":";;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;AAEA;AACA,uBAAU;AAACA,EAAAA,OAAO,EAAE,IAAIC,2BAAJ;AAAV,CAAV;AAEA,kBAAK,8CAAL,EAAqDC,CAAC,IAAI;AACxD,QAAMC,OAAO,GAAG;AACdC,IAAAA,UAAU,gBADI;AAEdC,IAAAA,IAAI;AAFU,GAAhB;AAIA,QAAMC,OAAO,GAAG,mCACd,6BAAC,SAAD,EAAcC,iBAAeC,KAA7B,eACE,iDADF,CADc,CAAhB;AAMAN,EAAAA,CAAC,CAACO,EAAF,CAAKH,OAAO,CAACI,KAAR,CAAcP,OAAnB,EAA4BQ,SAA5B;AACAL,EAAAA,OAAO,CAACM,QAAR,uBAAqBL,iBAAeC,KAApC;AAA2CL,IAAAA;AAA3C;AACAD,EAAAA,CAAC,CAACO,EAAF,CAAKH,OAAO,CAACI,KAAR,GAAgBP,OAArB,EAA8BA,OAA9B;AACD,CAdD","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {shallow, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport {noop} from 'lodash/fp';\nimport Provider from '..';\nimport defaultFixture from './fixtures/default';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('should re-render element when updating props', t => {\n const history = {\n createHref: noop,\n push: noop\n };\n const wrapper = shallow(\n <Provider {...defaultFixture.props}>\n <span>Foo</span>\n </Provider>\n );\n\n t.is(wrapper.state.history, undefined);\n wrapper.setProps({...defaultFixture.props, history});\n t.is(wrapper.state().history, history);\n});\n"],"file":"index.js"}
|
package/lib/atom/range/index.js
CHANGED
|
@@ -57,7 +57,7 @@ class Range extends _react.default.Component {
|
|
|
57
57
|
|
|
58
58
|
constructor(props, context) {
|
|
59
59
|
super(props, context);
|
|
60
|
-
this.state = _extends({}, extractStateFromProps(props), {
|
|
60
|
+
this.state = _extends(_extends({}, extractStateFromProps(props)), {}, {
|
|
61
61
|
pending: false
|
|
62
62
|
});
|
|
63
63
|
this.handleClick = this.handleClick.bind(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/range/index.js"],"names":["valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","Range","React","Component","getDerivedStateFromProps","state","pending","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","handle","clientX","isClickToTheLeft","closestHandle","Math","abs","renderHandles","style","animatedHandle","render","skin","defaultColor","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","Provider","childContextTypes","propTypes","PropTypes","func","bool","oneOfType","number","arrayOf"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,YAAY,GAAG,CAACC,KAAD,EAAQC,CAAR,KAAc;AACjC,QAAM;AAACC,IAAAA,IA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AAK,MAAA,SAAS,EAAEL,OAAO,GAAGkC,eAAMY,IAAT,GAAgBZ,eAAMa,YAA7C;AAA2D,MAAA,KAAK,EAAEN;AAAlE,MAFF,EAGG,KAAKR,aAAL,EAHH,CADF,CADF;AASD;;AAtKiC;;gBAA9BtC,K,kBASkB;AACpB0C,EAAAA,IAAI,EAAEW,kBAASC,iBAAT,CAA2BZ;AADb,C;;AATlB1C,K,CACGuD,S,2CAAY;AACjBzB,EAAAA,QAAQ,EAAE0B,mBAAUC,IADH;AAEjB1B,EAAAA,WAAW,EAAEyB,mBAAUC,IAFN;AAGjB3D,EAAAA,KAAK,EAAE0D,mBAAUE,IAHA;AAIjB;AACA3D,EAAAA,KAAK,EAAEyD,mBAAUG,SAAV,CAAoB,CAACH,mBAAUI,MAAX,EAAmBJ,mBAAUK,OAAV,CAAkBL,mBAAUI,MAA5B,CAAnB,CAApB;AALU,C;eAwKN5D,K","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, noop, set, clamp} from 'lodash/fp';\nimport Provider from '../provider';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n renderHandles() {\n const {\n value: [left, right],\n multi,\n pending\n } = this.state;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMinChange} onPanEnd={this.handleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMaxChange} onPanEnd={this.handleMaxChangeEnd} />\n </span>\n </div>\n );\n }\n\n render() {\n const {skin} = this.context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: defaultColor,\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n {this.renderHandles()}\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/range/index.js"],"names":["valueOnTrack","track","x","left","right","getBoundingClientRect","extractStateFromProps","props","multi","value","Range","React","Component","getDerivedStateFromProps","state","pending","constructor","context","handleClick","bind","setRefTrack","handleMinChange","handleMaxChange","handleMinChangeEnd","handleMaxChangeEnd","e","srcEvent","stopPropagation","preventDefault","newValue","center","handleChange","valueIndex","prevValue","minValue","maxValue","nextValue","triggerChange","setState","newValues","onChange","onChangeEnd","handle","clientX","isClickToTheLeft","closestHandle","Math","abs","renderHandles","style","animatedHandle","render","skin","defaultColor","railWidth","railLeft","railStyle","backgroundColor","width","containerWrapper","container","rail","animatedRail","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AAA,OAAO,EAAE,KAAKzC;AAAtD,oBACE;AAAK,MAAA,SAAS,EAAE+B,eAAMW;AAAtB,oBACE;AAAK,MAAA,SAAS,EAAEX,eAAMhD,KAAtB;AAA6B,mBAAU,aAAvC;AAAqD,MAAA,GAAG,EAAE,KAAKmB;AAA/D,MADF,eAEE;AAAK,MAAA,SAAS,EAAEL,OAAO,GAAGkC,eAAMY,IAAT,GAAgBZ,eAAMa,YAA7C;AAA2D,MAAA,KAAK,EAAEN;AAAlE,MAFF,EAGG,KAAKR,aAAL,EAHH,CADF,CADF;AASD;;AAtKiC;;gBAA9BtC,K,kBASkB;AACpB0C,EAAAA,IAAI,EAAEW,kBAASC,iBAAT,CAA2BZ;AADb,C;;AATlB1C,K,CACGuD,S,2CAAY;AACjBzB,EAAAA,QAAQ,EAAE0B,mBAAUC,IADH;AAEjB1B,EAAAA,WAAW,EAAEyB,mBAAUC,IAFN;AAGjB3D,EAAAA,KAAK,EAAE0D,mBAAUE,IAHA;AAIjB;AACA3D,EAAAA,KAAK,EAAEyD,mBAAUG,SAAV,CAAoB,CAACH,mBAAUI,MAAX,EAAmBJ,mBAAUK,OAAV,CAAkBL,mBAAUI,MAA5B,CAAnB,CAApB;AALU,C;eAwKN5D,K","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, noop, set, clamp} from 'lodash/fp';\nimport Provider from '../provider';\nimport Handle from './handle';\nimport style from './style.css';\n\nconst valueOnTrack = (track, x) => {\n const {left, right} = track.getBoundingClientRect();\n return clamp(0, 1, (x - left) / (right - left));\n};\n\nconst extractStateFromProps = props => {\n const {multi = false, value = multi ? [0, 1] : 0} = props;\n return {\n multi,\n value: multi ? value : [0, value]\n };\n};\n\nclass Range extends React.Component {\n static propTypes = {\n onChange: PropTypes.func,\n onChangeEnd: PropTypes.func,\n multi: PropTypes.bool,\n // eslint-disable-next-line react/no-unused-prop-types\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n static getDerivedStateFromProps(props, state) {\n const {pending} = state;\n\n if (pending) return null;\n\n return extractStateFromProps(props);\n }\n\n constructor(props, context) {\n super(props, context);\n\n this.state = {\n ...extractStateFromProps(props),\n pending: false\n };\n\n this.handleClick = this.handleClick.bind(this);\n this.setRefTrack = this.setRefTrack.bind(this);\n this.handleMinChange = this.handleMinChange.bind(this);\n this.handleMaxChange = this.handleMaxChange.bind(this);\n this.handleMinChangeEnd = this.handleMinChangeEnd.bind(this);\n this.handleMaxChangeEnd = this.handleMaxChangeEnd.bind(this);\n }\n\n setRefTrack(track) {\n this.track = track;\n }\n\n handleMinChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, true);\n }\n\n handleMaxChange(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, true);\n }\n\n handleMinChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 0, false);\n }\n\n handleMaxChangeEnd(e) {\n e.srcEvent.stopPropagation();\n e.srcEvent.preventDefault();\n const newValue = valueOnTrack(this.track, e.center.x);\n return this.handleChange(newValue, 1, false);\n }\n\n handleChange(value, valueIndex, pending) {\n const {value: prevValue} = this.state;\n\n const newValue = set(valueIndex, value, prevValue);\n\n const [minValue, maxValue] = newValue;\n\n const nextValue = minValue > maxValue ? prevValue : newValue;\n\n this.triggerChange(nextValue, pending);\n return this.setState({\n pending,\n value: pending ? nextValue : extractStateFromProps(this.props).value\n });\n }\n\n triggerChange(newValues, pending) {\n const {onChange = noop, onChangeEnd = onChange, multi = false} = this.props;\n\n const handle = pending ? onChange : onChangeEnd;\n\n return handle(multi ? newValues : newValues[1]);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {\n value: [left, right],\n multi\n } = this.state;\n const x = e.clientX;\n const newValue = valueOnTrack(this.track, x);\n\n if (!multi) return this.handleChange(newValue, 1, false);\n\n if (left === right) {\n const isClickToTheLeft = left - newValue > 0;\n return this.handleChange(newValue, isClickToTheLeft ? 0 : 1, false);\n }\n\n const closestHandle = Math.abs(newValue - left) < Math.abs(newValue - right) ? 0 : 1;\n return this.handleChange(newValue, closestHandle, false);\n }\n\n renderHandles() {\n const {\n value: [left, right],\n multi,\n pending\n } = this.state;\n\n return (\n <div>\n {multi ? (\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${left * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMinChange} onPanEnd={this.handleMinChangeEnd} />\n </span>\n ) : null}\n <span\n className={pending ? style.handle : style.animatedHandle}\n style={{left: `${right * 100}%`}}\n >\n <Handle axis=\"x\" onPan={this.handleMaxChange} onPanEnd={this.handleMaxChangeEnd} />\n </span>\n </div>\n );\n }\n\n render() {\n const {skin} = this.context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const {\n value: [left, right],\n pending\n } = this.state;\n const railWidth = right - left;\n const railLeft = left;\n const railStyle = {\n backgroundColor: defaultColor,\n width: `${railWidth * 100}%`,\n left: `${railLeft * 100}%`\n };\n\n return (\n <div className={style.containerWrapper} onClick={this.handleClick}>\n <div className={style.container}>\n <div className={style.track} data-name=\"sliderTrack\" ref={this.setRefTrack} />\n <div className={pending ? style.rail : style.animatedRail} style={railStyle} />\n {this.renderHandles()}\n </div>\n </div>\n );\n }\n}\n\nexport default Range;\n"],"file":"index.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/atom/range/test/fixtures/multi.js"],"names":["props","Default","multi","value"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/atom/range/test/fixtures/multi.js"],"names":["props","Default","multi","value"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eAEe;AACbD,EAAAA,KAAK,wBACAA,KADA;AAEHE,IAAAA,KAAK,EAAE,IAFJ;AAGHC,IAAAA,KAAK,EAAE,CAAC,GAAD,EAAM,GAAN;AAHJ;AADQ,C","sourcesContent":["import Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: {\n ...props,\n multi: true,\n value: [0.2, 0.7]\n }\n};\n"],"file":"multi.js"}
|
|
@@ -171,7 +171,7 @@ const macro = (t, props, boundingRect, maxCenterEvent, maxExpected, minCenterEve
|
|
|
171
171
|
right: 1100
|
|
172
172
|
});
|
|
173
173
|
|
|
174
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
174
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
175
175
|
clientX: 1020
|
|
176
176
|
}));
|
|
177
177
|
});
|
|
@@ -195,37 +195,37 @@ const macro = (t, props, boundingRect, maxCenterEvent, maxExpected, minCenterEve
|
|
|
195
195
|
right: 1100
|
|
196
196
|
});
|
|
197
197
|
|
|
198
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
198
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
199
199
|
clientX: 1020
|
|
200
200
|
}));
|
|
201
201
|
wrapper.setProps({
|
|
202
202
|
value: [0.2, 0.7]
|
|
203
203
|
});
|
|
204
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
204
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
205
205
|
clientX: 1090
|
|
206
206
|
}));
|
|
207
207
|
wrapper.setProps({
|
|
208
208
|
value: [0.2, 0.9]
|
|
209
209
|
});
|
|
210
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
210
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
211
211
|
clientX: 1040
|
|
212
212
|
}));
|
|
213
213
|
wrapper.setProps({
|
|
214
214
|
value: [0.4, 0.9]
|
|
215
215
|
});
|
|
216
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
216
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
217
217
|
clientX: 1070
|
|
218
218
|
}));
|
|
219
219
|
wrapper.setProps({
|
|
220
220
|
value: [0.4, 0.7]
|
|
221
221
|
});
|
|
222
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
222
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
223
223
|
clientX: 1000
|
|
224
224
|
}));
|
|
225
225
|
wrapper.setProps({
|
|
226
226
|
value: [0, 0.7]
|
|
227
227
|
});
|
|
228
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
228
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
229
229
|
clientX: 1100
|
|
230
230
|
}));
|
|
231
231
|
});
|
|
@@ -246,7 +246,7 @@ const macro = (t, props, boundingRect, maxCenterEvent, maxExpected, minCenterEve
|
|
|
246
246
|
right: 100
|
|
247
247
|
});
|
|
248
248
|
|
|
249
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
249
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
250
250
|
clientX: 40
|
|
251
251
|
}));
|
|
252
252
|
});
|
|
@@ -267,7 +267,7 @@ const macro = (t, props, boundingRect, maxCenterEvent, maxExpected, minCenterEve
|
|
|
267
267
|
right: 100
|
|
268
268
|
});
|
|
269
269
|
|
|
270
|
-
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends({}, defaultEvent, {
|
|
270
|
+
wrapper.find(`.${_style.default.containerWrapper}`).simulate('click', _extends(_extends({}, defaultEvent), {}, {
|
|
271
271
|
clientX: 60
|
|
272
272
|
}));
|
|
273
273
|
});
|