@coorpacademy/components 10.24.5 → 10.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/choice/test/fixtures.native.d.ts +2 -0
- package/es/atom/choice/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/gradient/test/fixtures.native.d.ts +2 -0
- package/es/atom/gradient/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/header-back-button/test/fixtures.native.d.ts +2 -0
- package/es/atom/header-back-button/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/header-back-icon/test/fixtures.native.d.ts +2 -0
- package/es/atom/header-back-icon/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/html/test/fixtures.native.d.ts +2 -0
- package/es/atom/html/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/image-background/test/fixtures.native.d.ts +2 -0
- package/es/atom/image-background/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/loader/index.d.ts +13 -0
- package/es/atom/loader/index.d.ts.map +1 -0
- package/es/atom/lottie-wrapper/index.d.ts +8 -0
- package/es/atom/lottie-wrapper/index.d.ts.map +1 -0
- package/es/atom/lottie-wrapper/prop-types.d.ts +26 -9
- package/es/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
- package/es/atom/lottie-wrapper/prop-types.js +2 -1
- package/es/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/es/atom/lottie-wrapper/test/fixtures/confetti.d.ts +20 -0
- package/es/atom/lottie-wrapper/test/fixtures/confetti.d.ts.map +1 -0
- package/es/atom/lottie-wrapper/test/fixtures/default.d.ts +20 -0
- package/es/atom/lottie-wrapper/test/fixtures/default.d.ts.map +1 -0
- package/es/atom/lottie-wrapper/test/fixtures/rank.d.ts +16 -0
- package/es/atom/lottie-wrapper/test/fixtures/rank.d.ts.map +1 -0
- package/es/atom/provider/index.d.ts +1 -1
- package/es/atom/provider/web-context.js +1 -1
- package/es/atom/provider/web-context.js.map +1 -1
- package/es/atom/range/handle.d.ts +34 -0
- package/es/atom/range/handle.d.ts.map +1 -0
- package/es/atom/range/index.d.ts +32 -0
- package/es/atom/range/index.d.ts.map +1 -0
- package/es/atom/review-background/index.d.ts +7 -0
- package/es/atom/review-background/index.d.ts.map +1 -0
- package/es/atom/review-header-step-item/index.d.ts +2 -2
- package/es/atom/review-header-step-item/index.d.ts.map +1 -1
- package/es/atom/review-header-step-item/index.js.map +1 -1
- package/es/atom/review-header-step-item/index.native.d.ts +2 -2
- package/es/atom/review-header-step-item/index.native.d.ts.map +1 -1
- package/es/atom/review-header-step-item/index.native.js.map +1 -1
- package/es/atom/review-header-step-item/test/fixtures.native.d.ts +2 -0
- package/es/atom/review-header-step-item/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/review-header-step-item/types.d.ts +2 -2
- package/es/atom/review-header-step-item/types.d.ts.map +1 -1
- package/es/atom/review-header-step-item/types.js.map +1 -1
- package/es/atom/review-presentation/index.d.ts +7 -0
- package/es/atom/review-presentation/index.d.ts.map +1 -0
- package/es/atom/review-presentation/prop-types.d.ts +26 -0
- package/es/atom/review-presentation/prop-types.d.ts.map +1 -0
- package/es/atom/review-presentation/test/fixtures/default.d.ts +28 -0
- package/es/atom/review-presentation/test/fixtures/default.d.ts.map +1 -0
- package/es/atom/select/index.d.ts +56 -0
- package/es/atom/select/index.d.ts.map +1 -0
- package/es/atom/select-modal/test/fixtures.native.d.ts +2 -0
- package/es/atom/select-modal/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/space/test/fixtures.native.d.ts +2 -0
- package/es/atom/space/test/fixtures.native.d.ts.map +1 -0
- package/es/atom/text/test/fixtures.native.d.ts +2 -0
- package/es/atom/text/test/fixtures.native.d.ts.map +1 -0
- package/es/hoc/animation/index.d.ts +54 -0
- package/es/hoc/animation/index.d.ts.map +1 -0
- package/es/hoc/animation-scheduler/index.d.ts +38 -0
- package/es/hoc/animation-scheduler/index.d.ts.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/modal/select/test/fixtures.native.d.ts +2 -0
- package/es/hoc/modal/select/test/fixtures.native.d.ts.map +1 -0
- package/es/hoc/modal/select-item/test/fixtures.native.d.ts +2 -0
- package/es/hoc/modal/select-item/test/fixtures.native.d.ts.map +1 -0
- package/es/hoc/modal/test/fixtures.native.d.ts +2 -0
- package/es/hoc/modal/test/fixtures.native.d.ts.map +1 -0
- package/es/hoc/swapper/index.js +1 -1
- package/es/hoc/swapper/index.js.map +1 -1
- package/es/hoc/touchable/test/fixtures.native.d.ts +2 -0
- package/es/hoc/touchable/test/fixtures.native.d.ts.map +1 -0
- package/es/hoc/transition/index.d.ts +11 -0
- package/es/hoc/transition/index.d.ts.map +1 -0
- 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.d.ts +7 -0
- package/es/molecule/answer/index.d.ts.map +1 -0
- package/es/molecule/answer/index.native.d.ts +2 -2
- package/es/molecule/answer/index.native.d.ts.map +1 -1
- package/es/molecule/answer/index.native.js.map +1 -1
- package/es/molecule/answer/prop-types.d.ts +27 -10
- package/es/molecule/answer/prop-types.d.ts.map +1 -1
- package/es/molecule/answer/prop-types.js.map +1 -1
- package/es/molecule/answer/test/fixtures/audio.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/audio.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/default.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/default.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/drop-down.d.ts +2 -2
- package/es/molecule/answer/test/fixtures/drop-down.d.ts.map +1 -1
- package/es/molecule/answer/test/fixtures/qcm-arabic.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/qcm-arabic.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/qcm-drag.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/qcm-drag.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/qcm-graphic.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/qcm-graphic.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/qcm-short-audio.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/qcm-short-audio.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/qcm-short-video.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/qcm-short-video.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/qcm-short.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/qcm-short.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/qcm.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/qcm.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/range.d.ts +7 -0
- package/es/molecule/answer/test/fixtures/range.d.ts.map +1 -0
- package/es/molecule/answer/test/fixtures/template.d.ts +2 -2
- package/es/molecule/answer/test/fixtures/template.d.ts.map +1 -1
- package/es/molecule/answer/test/fixtures.native.d.ts +2 -0
- package/es/molecule/answer/test/fixtures.native.d.ts.map +1 -0
- package/es/molecule/audio/index.d.ts +42 -0
- package/es/molecule/audio/index.d.ts.map +1 -0
- package/es/molecule/brand-logo/test/fixtures.native.d.ts +2 -0
- package/es/molecule/brand-logo/test/fixtures.native.d.ts.map +1 -0
- package/es/molecule/card/index.js +1 -1
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/cm-popin/index.d.ts +2 -51
- package/es/molecule/cm-popin/index.js +2 -37
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/test/fixtures/on-review-quit.d.ts +7 -0
- package/es/molecule/cm-popin/test/fixtures/on-review-quit.d.ts.map +1 -0
- package/es/molecule/cm-popin/types.d.ts +70 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -0
- package/es/molecule/cm-popin/types.js +41 -0
- package/es/molecule/cm-popin/types.js.map +1 -0
- 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/news-list/index.js +1 -1
- package/es/molecule/dashboard/news-list/index.js.map +1 -1
- package/es/molecule/dashboard/review-banner/index.js +1 -1
- package/es/molecule/dashboard/review-banner/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/questions/drop-down/index.d.ts +16 -0
- package/es/molecule/questions/drop-down/index.d.ts.map +1 -0
- package/es/molecule/questions/free-text/index.d.ts +35 -0
- package/es/molecule/questions/free-text/index.d.ts.map +1 -0
- package/es/molecule/questions/free-text/test/fixtures/default.d.ts +7 -0
- package/es/molecule/questions/free-text/test/fixtures/default.d.ts.map +1 -0
- package/es/molecule/questions/free-text/test/fixtures/with-value-on-change.d.ts +10 -0
- package/es/molecule/questions/free-text/test/fixtures/with-value-on-change.d.ts.map +1 -0
- package/es/molecule/questions/free-text/test/fixtures/with-value.d.ts +8 -0
- package/es/molecule/questions/free-text/test/fixtures/with-value.d.ts.map +1 -0
- package/es/molecule/questions/free-text/test/fixtures.native.d.ts +2 -0
- package/es/molecule/questions/free-text/test/fixtures.native.d.ts.map +1 -0
- package/es/molecule/questions/mobile/draggable/test/fixtures.native.d.ts +2 -0
- package/es/molecule/questions/mobile/draggable/test/fixtures.native.d.ts.map +1 -0
- package/es/molecule/questions/mobile/slider/test/fixtures.native.d.ts +2 -0
- package/es/molecule/questions/mobile/slider/test/fixtures.native.d.ts.map +1 -0
- package/es/molecule/questions/mobile/switch/test/fixtures.native.d.ts +2 -0
- package/es/molecule/questions/mobile/switch/test/fixtures.native.d.ts.map +1 -0
- package/es/molecule/questions/mobile/template/test/fixtures.native.d.ts +2 -0
- package/es/molecule/questions/mobile/template/test/fixtures.native.d.ts.map +1 -0
- package/es/molecule/questions/qcm/index.d.ts +37 -0
- package/es/molecule/questions/qcm/index.d.ts.map +1 -0
- package/es/molecule/questions/qcm/test/fixtures/arabic.d.ts +11 -0
- package/es/molecule/questions/qcm/test/fixtures/arabic.d.ts.map +1 -0
- package/es/molecule/questions/qcm/test/fixtures/default.d.ts +12 -0
- package/es/molecule/questions/qcm/test/fixtures/default.d.ts.map +1 -0
- package/es/molecule/questions/qcm/test/fixtures/short-answers.d.ts +11 -0
- package/es/molecule/questions/qcm/test/fixtures/short-answers.d.ts.map +1 -0
- package/es/molecule/questions/qcm-drag/index.d.ts +68 -0
- package/es/molecule/questions/qcm-drag/index.d.ts.map +1 -0
- package/es/molecule/questions/qcm-drag/test/fixtures/default.d.ts +17 -0
- package/es/molecule/questions/qcm-drag/test/fixtures/default.d.ts.map +1 -0
- package/es/molecule/questions/qcm-graphic/index.d.ts +38 -0
- package/es/molecule/questions/qcm-graphic/index.d.ts.map +1 -0
- package/es/molecule/questions/qcm-graphic/test/fixtures/default.d.ts +12 -0
- package/es/molecule/questions/qcm-graphic/test/fixtures/default.d.ts.map +1 -0
- package/es/molecule/questions/question-range/index.d.ts +38 -0
- package/es/molecule/questions/question-range/index.d.ts.map +1 -0
- package/es/molecule/questions/question-range/test/fixtures/default.d.ts +11 -0
- package/es/molecule/questions/question-range/test/fixtures/default.d.ts.map +1 -0
- package/es/molecule/questions/template/index.d.ts +31 -0
- package/es/molecule/questions/template/index.d.ts.map +1 -0
- package/es/molecule/review-card-congrats/index.d.ts +8 -0
- package/es/molecule/review-card-congrats/index.d.ts.map +1 -0
- package/es/molecule/review-card-congrats/prop-types.d.ts +14 -1
- package/es/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
- package/es/molecule/review-card-congrats/prop-types.js.map +1 -1
- package/es/molecule/review-card-congrats/test/fixtures/rank.d.ts +28 -0
- package/es/molecule/review-card-congrats/test/fixtures/rank.d.ts.map +1 -0
- package/es/molecule/review-card-congrats/test/fixtures/star.d.ts +31 -0
- package/es/molecule/review-card-congrats/test/fixtures/star.d.ts.map +1 -0
- package/es/molecule/review-correction-popin/index.d.ts +7 -0
- package/es/molecule/review-correction-popin/index.d.ts.map +1 -0
- package/es/molecule/review-correction-popin/prop-types.d.ts +26 -9
- package/es/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
- package/es/molecule/review-correction-popin/prop-types.js +2 -1
- package/es/molecule/review-correction-popin/prop-types.js.map +1 -1
- package/es/molecule/review-correction-popin/test/fixtures/right.d.ts +18 -0
- package/es/molecule/review-correction-popin/test/fixtures/right.d.ts.map +1 -0
- package/es/molecule/review-correction-popin/test/fixtures/wrong.d.ts +22 -0
- package/es/molecule/review-correction-popin/test/fixtures/wrong.d.ts.map +1 -0
- package/es/molecule/review-header-steps/index.d.ts +7 -0
- package/es/molecule/review-header-steps/index.d.ts.map +1 -0
- package/es/molecule/review-header-steps/prop-types.d.ts +9 -5
- package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
- package/es/molecule/review-header-steps/prop-types.js +2 -1
- package/es/molecule/review-header-steps/prop-types.js.map +1 -1
- package/es/molecule/review-header-steps/test/fixtures/all-questions-ok.d.ts +7 -0
- package/es/molecule/review-header-steps/test/fixtures/all-questions-ok.d.ts.map +1 -0
- package/es/molecule/review-header-steps/test/fixtures/current-question-no-aswered.d.ts +7 -0
- package/es/molecule/review-header-steps/test/fixtures/current-question-no-aswered.d.ts.map +1 -0
- package/es/molecule/review-header-steps/test/fixtures/current-question-wrong.d.ts +7 -0
- package/es/molecule/review-header-steps/test/fixtures/current-question-wrong.d.ts.map +1 -0
- package/es/molecule/review-header-steps/test/fixtures/first-question-current-right.d.ts +7 -0
- package/es/molecule/review-header-steps/test/fixtures/first-question-current-right.d.ts.map +1 -0
- package/es/molecule/review-header-steps/test/fixtures/no-answered-question.d.ts +7 -0
- package/es/molecule/review-header-steps/test/fixtures/no-answered-question.d.ts.map +1 -0
- package/es/molecule/review-header-steps/test/fixtures/question-to-repeat.d.ts +7 -0
- package/es/molecule/review-header-steps/test/fixtures/question-to-repeat.d.ts.map +1 -0
- package/es/molecule/share/index.js +1 -1
- package/es/molecule/share/index.js.map +1 -1
- package/es/molecule/skill-card/index.d.ts +7 -0
- package/es/molecule/skill-card/index.d.ts.map +1 -0
- package/es/molecule/skill-card/test/fixtures/default.d.ts +16 -0
- package/es/molecule/skill-card/test/fixtures/default.d.ts.map +1 -0
- package/es/molecule/video-iframe/index.d.ts +22 -0
- package/es/molecule/video-iframe/index.d.ts.map +1 -0
- package/es/molecule/video-player/index.d.ts +51 -0
- package/es/molecule/video-player/index.d.ts.map +1 -0
- package/es/molecule/video-player/jwplayer.d.ts +58 -0
- package/es/molecule/video-player/jwplayer.d.ts.map +1 -0
- package/es/molecule/video-player/vimeo.d.ts +154 -0
- package/es/molecule/video-player/vimeo.d.ts.map +1 -0
- package/es/organism/header-v2/test/fixtures.native.d.ts +2 -0
- package/es/organism/header-v2/test/fixtures.native.d.ts.map +1 -0
- package/es/organism/mobile-navigation/test/fixtures.native.d.ts +2 -0
- package/es/organism/mobile-navigation/test/fixtures.native.d.ts.map +1 -0
- package/es/organism/review-congrats/index.d.ts +8 -0
- package/es/organism/review-congrats/index.d.ts.map +1 -0
- package/es/organism/review-congrats/prop-types.d.ts +25 -3
- package/es/organism/review-congrats/prop-types.d.ts.map +1 -1
- package/es/organism/review-congrats/prop-types.js +2 -1
- package/es/organism/review-congrats/prop-types.js.map +1 -1
- package/es/organism/review-congrats/test/fixtures/default.d.ts +7 -0
- package/es/organism/review-congrats/test/fixtures/default.d.ts.map +1 -0
- package/es/organism/review-header/index.d.ts +7 -0
- package/es/organism/review-header/index.d.ts.map +1 -0
- package/es/organism/review-header/index.native.d.ts +2 -2
- package/es/organism/review-header/index.native.d.ts.map +1 -1
- package/es/organism/review-header/index.native.js.map +1 -1
- package/es/organism/review-header/test/fixtures/all-questions-ok.d.ts +15 -0
- package/es/organism/review-header/test/fixtures/all-questions-ok.d.ts.map +1 -0
- package/es/organism/review-header/test/fixtures/current-question-no-answered.d.ts +7 -0
- package/es/organism/review-header/test/fixtures/current-question-no-answered.d.ts.map +1 -0
- package/es/organism/review-header/test/fixtures/current-question-wrong.d.ts +7 -0
- package/es/organism/review-header/test/fixtures/current-question-wrong.d.ts.map +1 -0
- package/es/organism/review-header/test/fixtures/first-question-current-right.d.ts +7 -0
- package/es/organism/review-header/test/fixtures/first-question-current-right.d.ts.map +1 -0
- package/es/organism/review-header/test/fixtures/no-answered-question.d.ts +7 -0
- package/es/organism/review-header/test/fixtures/no-answered-question.d.ts.map +1 -0
- package/es/organism/review-header/test/fixtures/question-to-repeat.d.ts +7 -0
- package/es/organism/review-header/test/fixtures/question-to-repeat.d.ts.map +1 -0
- package/es/organism/review-header/test/fixtures/steps-animation.d.ts +7 -0
- package/es/organism/review-header/test/fixtures/steps-animation.d.ts.map +1 -0
- package/es/organism/review-header/test/fixtures.native.d.ts +2 -0
- package/es/organism/review-header/test/fixtures.native.d.ts.map +1 -0
- package/es/organism/review-header/types.d.ts +4 -4
- package/es/organism/review-header/types.d.ts.map +1 -1
- package/es/organism/review-header/types.js.map +1 -1
- package/es/organism/review-skills/index.d.ts +7 -0
- package/es/organism/review-skills/index.d.ts.map +1 -0
- package/es/organism/review-skills/test/fixtures/many-skills.d.ts +22 -0
- package/es/organism/review-skills/test/fixtures/many-skills.d.ts.map +1 -0
- package/es/organism/review-skills/test/fixtures/no-skills.d.ts +12 -0
- package/es/organism/review-skills/test/fixtures/no-skills.d.ts.map +1 -0
- package/es/organism/review-slide/index.d.ts +7 -0
- package/es/organism/review-slide/index.d.ts.map +1 -0
- package/es/organism/review-slide/index.native.d.ts +2 -2
- package/es/organism/review-slide/index.native.d.ts.map +1 -1
- package/es/organism/review-slide/index.native.js +3 -3
- package/es/organism/review-slide/index.native.js.map +1 -1
- package/es/organism/review-slide/prop-types.d.ts +21 -36
- package/es/organism/review-slide/prop-types.d.ts.map +1 -1
- package/es/organism/review-slide/prop-types.js.map +1 -1
- package/es/organism/review-slide/test/fixtures/choices-selected.d.ts +22 -0
- package/es/organism/review-slide/test/fixtures/choices-selected.d.ts.map +1 -0
- package/es/organism/review-slide/test/fixtures/correction-ok-animated.d.ts +36 -0
- package/es/organism/review-slide/test/fixtures/correction-ok-animated.d.ts.map +1 -0
- package/es/organism/review-slide/test/fixtures/correction-ok.d.ts +36 -0
- package/es/organism/review-slide/test/fixtures/correction-ok.d.ts.map +1 -0
- package/es/organism/review-slide/test/fixtures/correction-wrong-animated.d.ts +38 -0
- package/es/organism/review-slide/test/fixtures/correction-wrong-animated.d.ts.map +1 -0
- package/es/organism/review-slide/test/fixtures/correction-wrong.d.ts +38 -0
- package/es/organism/review-slide/test/fixtures/correction-wrong.d.ts.map +1 -0
- package/es/organism/review-slide/test/fixtures/initial-state.d.ts +22 -0
- package/es/organism/review-slide/test/fixtures/initial-state.d.ts.map +1 -0
- package/es/organism/review-slide/test/fixtures/loading.d.ts +12 -0
- package/es/organism/review-slide/test/fixtures/loading.d.ts.map +1 -0
- package/es/organism/review-slide/test/fixtures.native.d.ts +2 -0
- package/es/organism/review-slide/test/fixtures.native.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/index.d.ts +13 -0
- package/es/organism/review-stacked-slides/index.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/index.js +3 -6
- package/es/organism/review-stacked-slides/index.js.map +1 -1
- package/es/organism/review-stacked-slides/index.native.d.ts +2 -2
- package/es/organism/review-stacked-slides/index.native.d.ts.map +1 -1
- package/es/organism/review-stacked-slides/index.native.js +3 -6
- package/es/organism/review-stacked-slides/index.native.js.map +1 -1
- package/es/organism/review-stacked-slides/prop-types.d.ts +26 -25
- package/es/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
- package/es/organism/review-stacked-slides/prop-types.js.map +1 -1
- package/es/organism/review-stacked-slides/test/fixtures/all-ok.d.ts +9 -0
- package/es/organism/review-stacked-slides/test/fixtures/all-ok.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/end-review.d.ts +7 -0
- package/es/organism/review-stacked-slides/test/fixtures/end-review.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/first-correct.d.ts +9 -0
- package/es/organism/review-stacked-slides/test/fixtures/first-correct.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/initial-state.d.ts +7 -0
- package/es/organism/review-stacked-slides/test/fixtures/initial-state.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/loading.d.ts +7 -0
- package/es/organism/review-stacked-slides/test/fixtures/loading.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/restack.d.ts +9 -0
- package/es/organism/review-stacked-slides/test/fixtures/restack.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/second-wrong.d.ts +9 -0
- package/es/organism/review-stacked-slides/test/fixtures/second-wrong.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/unstack.d.ts +9 -0
- package/es/organism/review-stacked-slides/test/fixtures/unstack.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures/wrong.d.ts +9 -0
- package/es/organism/review-stacked-slides/test/fixtures/wrong.d.ts.map +1 -0
- package/es/organism/review-stacked-slides/test/fixtures.native.d.ts +2 -0
- package/es/organism/review-stacked-slides/test/fixtures.native.d.ts.map +1 -0
- package/es/template/app-player/popin-end/summary.js +3 -4
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-review/demo-ts/test/fixtures.native.d.ts +2 -0
- package/es/template/app-review/demo-ts/test/fixtures.native.d.ts.map +1 -0
- package/es/template/app-review/index.d.ts +603 -0
- package/es/template/app-review/index.d.ts.map +1 -0
- package/es/template/app-review/index.js +16 -21
- package/es/template/app-review/index.js.map +1 -1
- package/es/template/app-review/index.native.d.ts +5 -0
- package/es/template/app-review/index.native.d.ts.map +1 -0
- package/es/template/app-review/index.native.js +20 -25
- package/es/template/app-review/index.native.js.map +1 -1
- package/es/template/app-review/onboarding/index.d.ts +3 -0
- package/es/template/app-review/onboarding/index.d.ts.map +1 -0
- package/es/template/app-review/onboarding/index.native.d.ts +9 -0
- package/es/template/app-review/onboarding/index.native.d.ts.map +1 -0
- package/es/template/app-review/onboarding/test/fixtures/default.d.ts +3 -0
- package/es/template/app-review/onboarding/test/fixtures/default.d.ts.map +1 -0
- package/es/template/app-review/onboarding/test/fixtures.native.d.ts +2 -0
- package/es/template/app-review/onboarding/test/fixtures.native.d.ts.map +1 -0
- package/es/template/app-review/player/index.d.ts +13 -0
- package/es/template/app-review/player/index.d.ts.map +1 -0
- package/es/template/app-review/player/index.native.d.ts +2 -2
- package/es/template/app-review/player/index.native.d.ts.map +1 -1
- package/es/template/app-review/player/index.native.js.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +31 -31
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.js.map +1 -1
- package/es/template/app-review/player/test/fixtures/all-ok.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/all-ok.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/end-review.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/end-review.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/first-right.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/first-right.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/initial-state.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/initial-state.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/loading.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/loading.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/on-quit.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/on-quit.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/one-fail.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/one-fail.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/restack.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/restack.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/second-failed-question.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/second-failed-question.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures/unstack.d.ts +7 -0
- package/es/template/app-review/player/test/fixtures/unstack.d.ts.map +1 -0
- package/es/template/app-review/player/test/fixtures.native.d.ts +2 -0
- package/es/template/app-review/player/test/fixtures.native.d.ts.map +1 -0
- package/es/template/app-review/prop-types.d.ts +610 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -0
- package/es/template/app-review/prop-types.js +3 -9
- package/es/template/app-review/prop-types.js.map +1 -1
- package/es/template/app-review/skills/index.d.ts +3 -0
- package/es/template/app-review/skills/index.d.ts.map +1 -0
- package/es/template/app-review/skills/test/fixtures/many-skills.d.ts +3 -0
- package/es/template/app-review/skills/test/fixtures/many-skills.d.ts.map +1 -0
- package/es/template/app-review/skills/test/fixtures/no-skills.d.ts +3 -0
- package/es/template/app-review/skills/test/fixtures/no-skills.d.ts.map +1 -0
- package/es/template/app-review/skills/test/fixtures.native.d.ts +2 -0
- package/es/template/app-review/skills/test/fixtures.native.d.ts.map +1 -0
- package/es/template/app-review/template-context.js +1 -1
- package/es/template/app-review/template-context.js.map +1 -1
- package/es/template/app-review/test/fixtures/onboarding.d.ts +7 -0
- package/es/template/app-review/test/fixtures/onboarding.d.ts.map +1 -0
- package/es/template/app-review/test/fixtures/player.d.ts +7 -0
- package/es/template/app-review/test/fixtures/player.d.ts.map +1 -0
- package/es/template/app-review/test/fixtures/skills.d.ts +7 -0
- package/es/template/app-review/test/fixtures/skills.d.ts.map +1 -0
- package/es/template/app-review/test/fixtures.native.d.ts +2 -0
- package/es/template/app-review/test/fixtures.native.d.ts.map +1 -0
- package/es/template/common/dashboard/index.js +1 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/test/helpers/render-component.d.ts +20 -0
- package/es/test/helpers/render-component.d.ts.map +1 -0
- package/es/util/get-shadow-box-color-from-primary.d.ts +2 -0
- package/es/util/get-shadow-box-color-from-primary.d.ts.map +1 -0
- package/lib/atom/choice/test/fixtures.native.d.ts +2 -0
- package/lib/atom/choice/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/gradient/test/fixtures.native.d.ts +2 -0
- package/lib/atom/gradient/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/header-back-button/test/fixtures.native.d.ts +2 -0
- package/lib/atom/header-back-button/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/header-back-icon/test/fixtures.native.d.ts +2 -0
- package/lib/atom/header-back-icon/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/html/test/fixtures.native.d.ts +2 -0
- package/lib/atom/html/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/image-background/test/fixtures.native.d.ts +2 -0
- package/lib/atom/image-background/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/loader/index.d.ts +13 -0
- package/lib/atom/loader/index.d.ts.map +1 -0
- package/lib/atom/lottie-wrapper/index.d.ts +8 -0
- package/lib/atom/lottie-wrapper/index.d.ts.map +1 -0
- package/lib/atom/lottie-wrapper/prop-types.d.ts +26 -9
- package/lib/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
- package/lib/atom/lottie-wrapper/prop-types.js +2 -1
- package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/lib/atom/lottie-wrapper/test/fixtures/confetti.d.ts +20 -0
- package/lib/atom/lottie-wrapper/test/fixtures/confetti.d.ts.map +1 -0
- package/lib/atom/lottie-wrapper/test/fixtures/default.d.ts +20 -0
- package/lib/atom/lottie-wrapper/test/fixtures/default.d.ts.map +1 -0
- package/lib/atom/lottie-wrapper/test/fixtures/rank.d.ts +16 -0
- package/lib/atom/lottie-wrapper/test/fixtures/rank.d.ts.map +1 -0
- package/lib/atom/provider/index.d.ts +1 -1
- package/lib/atom/provider/web-context.js +1 -1
- package/lib/atom/provider/web-context.js.map +1 -1
- package/lib/atom/range/handle.d.ts +34 -0
- package/lib/atom/range/handle.d.ts.map +1 -0
- package/lib/atom/range/index.d.ts +32 -0
- package/lib/atom/range/index.d.ts.map +1 -0
- package/lib/atom/review-background/index.d.ts +7 -0
- package/lib/atom/review-background/index.d.ts.map +1 -0
- package/lib/atom/review-header-step-item/index.d.ts +2 -2
- package/lib/atom/review-header-step-item/index.d.ts.map +1 -1
- package/lib/atom/review-header-step-item/index.js.map +1 -1
- package/lib/atom/review-header-step-item/index.native.d.ts +2 -2
- package/lib/atom/review-header-step-item/index.native.d.ts.map +1 -1
- package/lib/atom/review-header-step-item/index.native.js.map +1 -1
- package/lib/atom/review-header-step-item/test/fixtures.native.d.ts +2 -0
- package/lib/atom/review-header-step-item/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/review-header-step-item/types.d.ts +2 -2
- package/lib/atom/review-header-step-item/types.d.ts.map +1 -1
- package/lib/atom/review-header-step-item/types.js.map +1 -1
- package/lib/atom/review-presentation/index.d.ts +7 -0
- package/lib/atom/review-presentation/index.d.ts.map +1 -0
- package/lib/atom/review-presentation/prop-types.d.ts +26 -0
- package/lib/atom/review-presentation/prop-types.d.ts.map +1 -0
- package/lib/atom/review-presentation/test/fixtures/default.d.ts +28 -0
- package/lib/atom/review-presentation/test/fixtures/default.d.ts.map +1 -0
- package/lib/atom/select/index.d.ts +56 -0
- package/lib/atom/select/index.d.ts.map +1 -0
- package/lib/atom/select-modal/test/fixtures.native.d.ts +2 -0
- package/lib/atom/select-modal/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/space/test/fixtures.native.d.ts +2 -0
- package/lib/atom/space/test/fixtures.native.d.ts.map +1 -0
- package/lib/atom/text/test/fixtures.native.d.ts +2 -0
- package/lib/atom/text/test/fixtures.native.d.ts.map +1 -0
- package/lib/hoc/animation/index.d.ts +54 -0
- package/lib/hoc/animation/index.d.ts.map +1 -0
- package/lib/hoc/animation-scheduler/index.d.ts +38 -0
- package/lib/hoc/animation-scheduler/index.d.ts.map +1 -0
- package/lib/hoc/animation-scheduler/index.js +3 -3
- package/lib/hoc/animation-scheduler/index.js.map +1 -1
- package/lib/hoc/modal/select/test/fixtures.native.d.ts +2 -0
- package/lib/hoc/modal/select/test/fixtures.native.d.ts.map +1 -0
- package/lib/hoc/modal/select-item/test/fixtures.native.d.ts +2 -0
- package/lib/hoc/modal/select-item/test/fixtures.native.d.ts.map +1 -0
- package/lib/hoc/modal/test/fixtures.native.d.ts +2 -0
- package/lib/hoc/modal/test/fixtures.native.d.ts.map +1 -0
- package/lib/hoc/swapper/index.js +1 -1
- package/lib/hoc/swapper/index.js.map +1 -1
- package/lib/hoc/touchable/test/fixtures.native.d.ts +2 -0
- package/lib/hoc/touchable/test/fixtures.native.d.ts.map +1 -0
- package/lib/hoc/transition/index.d.ts +11 -0
- package/lib/hoc/transition/index.d.ts.map +1 -0
- package/lib/hoc/transition/index.js +1 -1
- package/lib/hoc/transition/index.js.map +1 -1
- package/lib/molecule/add-to-my-list/index.js +1 -1
- package/lib/molecule/add-to-my-list/index.js.map +1 -1
- package/lib/molecule/answer/index.d.ts +7 -0
- package/lib/molecule/answer/index.d.ts.map +1 -0
- package/lib/molecule/answer/index.native.d.ts +2 -2
- package/lib/molecule/answer/index.native.d.ts.map +1 -1
- package/lib/molecule/answer/index.native.js.map +1 -1
- package/lib/molecule/answer/prop-types.d.ts +27 -10
- package/lib/molecule/answer/prop-types.d.ts.map +1 -1
- package/lib/molecule/answer/prop-types.js.map +1 -1
- package/lib/molecule/answer/test/fixtures/audio.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/audio.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/default.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/default.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/drop-down.d.ts +2 -2
- package/lib/molecule/answer/test/fixtures/drop-down.d.ts.map +1 -1
- package/lib/molecule/answer/test/fixtures/qcm-arabic.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/qcm-arabic.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/qcm-drag.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/qcm-drag.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/qcm-graphic.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/qcm-graphic.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/qcm-short-audio.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/qcm-short-video.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/qcm-short-video.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/qcm-short.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/qcm-short.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/qcm.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/qcm.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/range.d.ts +7 -0
- package/lib/molecule/answer/test/fixtures/range.d.ts.map +1 -0
- package/lib/molecule/answer/test/fixtures/template.d.ts +2 -2
- package/lib/molecule/answer/test/fixtures/template.d.ts.map +1 -1
- package/lib/molecule/answer/test/fixtures.native.d.ts +2 -0
- package/lib/molecule/answer/test/fixtures.native.d.ts.map +1 -0
- package/lib/molecule/audio/index.d.ts +42 -0
- package/lib/molecule/audio/index.d.ts.map +1 -0
- package/lib/molecule/brand-logo/test/fixtures.native.d.ts +2 -0
- package/lib/molecule/brand-logo/test/fixtures.native.d.ts.map +1 -0
- package/lib/molecule/card/index.js +1 -1
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.d.ts +2 -51
- package/lib/molecule/cm-popin/index.js +3 -38
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/test/fixtures/on-review-quit.d.ts +7 -0
- package/lib/molecule/cm-popin/test/fixtures/on-review-quit.d.ts.map +1 -0
- package/lib/molecule/cm-popin/types.d.ts +70 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -0
- package/lib/molecule/cm-popin/types.js +52 -0
- package/lib/molecule/cm-popin/types.js.map +1 -0
- 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/news-list/index.js +1 -1
- package/lib/molecule/dashboard/news-list/index.js.map +1 -1
- package/lib/molecule/dashboard/review-banner/index.js +1 -1
- package/lib/molecule/dashboard/review-banner/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/questions/drop-down/index.d.ts +16 -0
- package/lib/molecule/questions/drop-down/index.d.ts.map +1 -0
- package/lib/molecule/questions/free-text/index.d.ts +35 -0
- package/lib/molecule/questions/free-text/index.d.ts.map +1 -0
- package/lib/molecule/questions/free-text/test/fixtures/default.d.ts +7 -0
- package/lib/molecule/questions/free-text/test/fixtures/default.d.ts.map +1 -0
- package/lib/molecule/questions/free-text/test/fixtures/with-value-on-change.d.ts +10 -0
- package/lib/molecule/questions/free-text/test/fixtures/with-value-on-change.d.ts.map +1 -0
- package/lib/molecule/questions/free-text/test/fixtures/with-value.d.ts +8 -0
- package/lib/molecule/questions/free-text/test/fixtures/with-value.d.ts.map +1 -0
- package/lib/molecule/questions/free-text/test/fixtures.native.d.ts +2 -0
- package/lib/molecule/questions/free-text/test/fixtures.native.d.ts.map +1 -0
- package/lib/molecule/questions/mobile/draggable/test/fixtures.native.d.ts +2 -0
- package/lib/molecule/questions/mobile/draggable/test/fixtures.native.d.ts.map +1 -0
- package/lib/molecule/questions/mobile/slider/test/fixtures.native.d.ts +2 -0
- package/lib/molecule/questions/mobile/slider/test/fixtures.native.d.ts.map +1 -0
- package/lib/molecule/questions/mobile/switch/test/fixtures.native.d.ts +2 -0
- package/lib/molecule/questions/mobile/switch/test/fixtures.native.d.ts.map +1 -0
- package/lib/molecule/questions/mobile/template/test/fixtures.native.d.ts +2 -0
- package/lib/molecule/questions/mobile/template/test/fixtures.native.d.ts.map +1 -0
- package/lib/molecule/questions/qcm/index.d.ts +37 -0
- package/lib/molecule/questions/qcm/index.d.ts.map +1 -0
- package/lib/molecule/questions/qcm/test/fixtures/arabic.d.ts +11 -0
- package/lib/molecule/questions/qcm/test/fixtures/arabic.d.ts.map +1 -0
- package/lib/molecule/questions/qcm/test/fixtures/default.d.ts +12 -0
- package/lib/molecule/questions/qcm/test/fixtures/default.d.ts.map +1 -0
- package/lib/molecule/questions/qcm/test/fixtures/short-answers.d.ts +11 -0
- package/lib/molecule/questions/qcm/test/fixtures/short-answers.d.ts.map +1 -0
- package/lib/molecule/questions/qcm-drag/index.d.ts +68 -0
- package/lib/molecule/questions/qcm-drag/index.d.ts.map +1 -0
- package/lib/molecule/questions/qcm-drag/test/fixtures/default.d.ts +17 -0
- package/lib/molecule/questions/qcm-drag/test/fixtures/default.d.ts.map +1 -0
- package/lib/molecule/questions/qcm-graphic/index.d.ts +38 -0
- package/lib/molecule/questions/qcm-graphic/index.d.ts.map +1 -0
- package/lib/molecule/questions/qcm-graphic/test/fixtures/default.d.ts +12 -0
- package/lib/molecule/questions/qcm-graphic/test/fixtures/default.d.ts.map +1 -0
- package/lib/molecule/questions/question-range/index.d.ts +38 -0
- package/lib/molecule/questions/question-range/index.d.ts.map +1 -0
- package/lib/molecule/questions/question-range/test/fixtures/default.d.ts +11 -0
- package/lib/molecule/questions/question-range/test/fixtures/default.d.ts.map +1 -0
- package/lib/molecule/questions/template/index.d.ts +31 -0
- package/lib/molecule/questions/template/index.d.ts.map +1 -0
- package/lib/molecule/review-card-congrats/index.d.ts +8 -0
- package/lib/molecule/review-card-congrats/index.d.ts.map +1 -0
- package/lib/molecule/review-card-congrats/prop-types.d.ts +14 -1
- package/lib/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
- package/lib/molecule/review-card-congrats/prop-types.js.map +1 -1
- package/lib/molecule/review-card-congrats/test/fixtures/rank.d.ts +28 -0
- package/lib/molecule/review-card-congrats/test/fixtures/rank.d.ts.map +1 -0
- package/lib/molecule/review-card-congrats/test/fixtures/star.d.ts +31 -0
- package/lib/molecule/review-card-congrats/test/fixtures/star.d.ts.map +1 -0
- package/lib/molecule/review-correction-popin/index.d.ts +7 -0
- package/lib/molecule/review-correction-popin/index.d.ts.map +1 -0
- package/lib/molecule/review-correction-popin/prop-types.d.ts +26 -9
- package/lib/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
- package/lib/molecule/review-correction-popin/prop-types.js +2 -1
- package/lib/molecule/review-correction-popin/prop-types.js.map +1 -1
- package/lib/molecule/review-correction-popin/test/fixtures/right.d.ts +18 -0
- package/lib/molecule/review-correction-popin/test/fixtures/right.d.ts.map +1 -0
- package/lib/molecule/review-correction-popin/test/fixtures/wrong.d.ts +22 -0
- package/lib/molecule/review-correction-popin/test/fixtures/wrong.d.ts.map +1 -0
- package/lib/molecule/review-header-steps/index.d.ts +7 -0
- package/lib/molecule/review-header-steps/index.d.ts.map +1 -0
- package/lib/molecule/review-header-steps/prop-types.d.ts +9 -5
- package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
- package/lib/molecule/review-header-steps/prop-types.js +2 -1
- package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
- package/lib/molecule/review-header-steps/test/fixtures/all-questions-ok.d.ts +7 -0
- package/lib/molecule/review-header-steps/test/fixtures/all-questions-ok.d.ts.map +1 -0
- package/lib/molecule/review-header-steps/test/fixtures/current-question-no-aswered.d.ts +7 -0
- package/lib/molecule/review-header-steps/test/fixtures/current-question-no-aswered.d.ts.map +1 -0
- package/lib/molecule/review-header-steps/test/fixtures/current-question-wrong.d.ts +7 -0
- package/lib/molecule/review-header-steps/test/fixtures/current-question-wrong.d.ts.map +1 -0
- package/lib/molecule/review-header-steps/test/fixtures/first-question-current-right.d.ts +7 -0
- package/lib/molecule/review-header-steps/test/fixtures/first-question-current-right.d.ts.map +1 -0
- package/lib/molecule/review-header-steps/test/fixtures/no-answered-question.d.ts +7 -0
- package/lib/molecule/review-header-steps/test/fixtures/no-answered-question.d.ts.map +1 -0
- package/lib/molecule/review-header-steps/test/fixtures/question-to-repeat.d.ts +7 -0
- package/lib/molecule/review-header-steps/test/fixtures/question-to-repeat.d.ts.map +1 -0
- package/lib/molecule/share/index.js +1 -1
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/skill-card/index.d.ts +7 -0
- package/lib/molecule/skill-card/index.d.ts.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/default.d.ts +16 -0
- package/lib/molecule/skill-card/test/fixtures/default.d.ts.map +1 -0
- package/lib/molecule/video-iframe/index.d.ts +22 -0
- package/lib/molecule/video-iframe/index.d.ts.map +1 -0
- package/lib/molecule/video-player/index.d.ts +51 -0
- package/lib/molecule/video-player/index.d.ts.map +1 -0
- package/lib/molecule/video-player/jwplayer.d.ts +58 -0
- package/lib/molecule/video-player/jwplayer.d.ts.map +1 -0
- package/lib/molecule/video-player/vimeo.d.ts +154 -0
- package/lib/molecule/video-player/vimeo.d.ts.map +1 -0
- package/lib/organism/header-v2/test/fixtures.native.d.ts +2 -0
- package/lib/organism/header-v2/test/fixtures.native.d.ts.map +1 -0
- package/lib/organism/mobile-navigation/test/fixtures.native.d.ts +2 -0
- package/lib/organism/mobile-navigation/test/fixtures.native.d.ts.map +1 -0
- package/lib/organism/review-congrats/index.d.ts +8 -0
- package/lib/organism/review-congrats/index.d.ts.map +1 -0
- package/lib/organism/review-congrats/prop-types.d.ts +25 -3
- package/lib/organism/review-congrats/prop-types.d.ts.map +1 -1
- package/lib/organism/review-congrats/prop-types.js +2 -1
- package/lib/organism/review-congrats/prop-types.js.map +1 -1
- package/lib/organism/review-congrats/test/fixtures/default.d.ts +7 -0
- package/lib/organism/review-congrats/test/fixtures/default.d.ts.map +1 -0
- package/lib/organism/review-header/index.d.ts +7 -0
- package/lib/organism/review-header/index.d.ts.map +1 -0
- package/lib/organism/review-header/index.native.d.ts +2 -2
- package/lib/organism/review-header/index.native.d.ts.map +1 -1
- package/lib/organism/review-header/index.native.js.map +1 -1
- package/lib/organism/review-header/test/fixtures/all-questions-ok.d.ts +15 -0
- package/lib/organism/review-header/test/fixtures/all-questions-ok.d.ts.map +1 -0
- package/lib/organism/review-header/test/fixtures/current-question-no-answered.d.ts +7 -0
- package/lib/organism/review-header/test/fixtures/current-question-no-answered.d.ts.map +1 -0
- package/lib/organism/review-header/test/fixtures/current-question-wrong.d.ts +7 -0
- package/lib/organism/review-header/test/fixtures/current-question-wrong.d.ts.map +1 -0
- package/lib/organism/review-header/test/fixtures/first-question-current-right.d.ts +7 -0
- package/lib/organism/review-header/test/fixtures/first-question-current-right.d.ts.map +1 -0
- package/lib/organism/review-header/test/fixtures/no-answered-question.d.ts +7 -0
- package/lib/organism/review-header/test/fixtures/no-answered-question.d.ts.map +1 -0
- package/lib/organism/review-header/test/fixtures/question-to-repeat.d.ts +7 -0
- package/lib/organism/review-header/test/fixtures/question-to-repeat.d.ts.map +1 -0
- package/lib/organism/review-header/test/fixtures/steps-animation.d.ts +7 -0
- package/lib/organism/review-header/test/fixtures/steps-animation.d.ts.map +1 -0
- package/lib/organism/review-header/test/fixtures.native.d.ts +2 -0
- package/lib/organism/review-header/test/fixtures.native.d.ts.map +1 -0
- package/lib/organism/review-header/types.d.ts +4 -4
- package/lib/organism/review-header/types.d.ts.map +1 -1
- package/lib/organism/review-header/types.js.map +1 -1
- package/lib/organism/review-skills/index.d.ts +7 -0
- package/lib/organism/review-skills/index.d.ts.map +1 -0
- package/lib/organism/review-skills/test/fixtures/many-skills.d.ts +22 -0
- package/lib/organism/review-skills/test/fixtures/many-skills.d.ts.map +1 -0
- package/lib/organism/review-skills/test/fixtures/no-skills.d.ts +12 -0
- package/lib/organism/review-skills/test/fixtures/no-skills.d.ts.map +1 -0
- package/lib/organism/review-slide/index.d.ts +7 -0
- package/lib/organism/review-slide/index.d.ts.map +1 -0
- package/lib/organism/review-slide/index.native.d.ts +2 -2
- package/lib/organism/review-slide/index.native.d.ts.map +1 -1
- package/lib/organism/review-slide/index.native.js +3 -3
- package/lib/organism/review-slide/index.native.js.map +1 -1
- package/lib/organism/review-slide/prop-types.d.ts +21 -36
- package/lib/organism/review-slide/prop-types.d.ts.map +1 -1
- package/lib/organism/review-slide/prop-types.js.map +1 -1
- package/lib/organism/review-slide/test/fixtures/choices-selected.d.ts +22 -0
- package/lib/organism/review-slide/test/fixtures/choices-selected.d.ts.map +1 -0
- package/lib/organism/review-slide/test/fixtures/correction-ok-animated.d.ts +36 -0
- package/lib/organism/review-slide/test/fixtures/correction-ok-animated.d.ts.map +1 -0
- package/lib/organism/review-slide/test/fixtures/correction-ok.d.ts +36 -0
- package/lib/organism/review-slide/test/fixtures/correction-ok.d.ts.map +1 -0
- package/lib/organism/review-slide/test/fixtures/correction-wrong-animated.d.ts +38 -0
- package/lib/organism/review-slide/test/fixtures/correction-wrong-animated.d.ts.map +1 -0
- package/lib/organism/review-slide/test/fixtures/correction-wrong.d.ts +38 -0
- package/lib/organism/review-slide/test/fixtures/correction-wrong.d.ts.map +1 -0
- package/lib/organism/review-slide/test/fixtures/initial-state.d.ts +22 -0
- package/lib/organism/review-slide/test/fixtures/initial-state.d.ts.map +1 -0
- package/lib/organism/review-slide/test/fixtures/loading.d.ts +12 -0
- package/lib/organism/review-slide/test/fixtures/loading.d.ts.map +1 -0
- package/lib/organism/review-slide/test/fixtures.native.d.ts +2 -0
- package/lib/organism/review-slide/test/fixtures.native.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/index.d.ts +13 -0
- package/lib/organism/review-stacked-slides/index.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/index.js +3 -6
- package/lib/organism/review-stacked-slides/index.js.map +1 -1
- package/lib/organism/review-stacked-slides/index.native.d.ts +2 -2
- package/lib/organism/review-stacked-slides/index.native.d.ts.map +1 -1
- package/lib/organism/review-stacked-slides/index.native.js +3 -6
- package/lib/organism/review-stacked-slides/index.native.js.map +1 -1
- package/lib/organism/review-stacked-slides/prop-types.d.ts +26 -25
- package/lib/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
- package/lib/organism/review-stacked-slides/prop-types.js.map +1 -1
- package/lib/organism/review-stacked-slides/test/fixtures/all-ok.d.ts +9 -0
- package/lib/organism/review-stacked-slides/test/fixtures/all-ok.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/end-review.d.ts +7 -0
- package/lib/organism/review-stacked-slides/test/fixtures/end-review.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/first-correct.d.ts +9 -0
- package/lib/organism/review-stacked-slides/test/fixtures/first-correct.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/initial-state.d.ts +7 -0
- package/lib/organism/review-stacked-slides/test/fixtures/initial-state.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/loading.d.ts +7 -0
- package/lib/organism/review-stacked-slides/test/fixtures/loading.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/restack.d.ts +9 -0
- package/lib/organism/review-stacked-slides/test/fixtures/restack.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/second-wrong.d.ts +9 -0
- package/lib/organism/review-stacked-slides/test/fixtures/second-wrong.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/unstack.d.ts +9 -0
- package/lib/organism/review-stacked-slides/test/fixtures/unstack.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures/wrong.d.ts +9 -0
- package/lib/organism/review-stacked-slides/test/fixtures/wrong.d.ts.map +1 -0
- package/lib/organism/review-stacked-slides/test/fixtures.native.d.ts +2 -0
- package/lib/organism/review-stacked-slides/test/fixtures.native.d.ts.map +1 -0
- package/lib/template/app-player/popin-end/summary.js +3 -4
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-review/demo-ts/test/fixtures.native.d.ts +2 -0
- package/lib/template/app-review/demo-ts/test/fixtures.native.d.ts.map +1 -0
- package/lib/template/app-review/index.d.ts +603 -0
- package/lib/template/app-review/index.d.ts.map +1 -0
- package/lib/template/app-review/index.js +15 -24
- package/lib/template/app-review/index.js.map +1 -1
- package/lib/template/app-review/index.native.d.ts +5 -0
- package/lib/template/app-review/index.native.d.ts.map +1 -0
- package/lib/template/app-review/index.native.js +20 -26
- package/lib/template/app-review/index.native.js.map +1 -1
- package/lib/template/app-review/onboarding/index.d.ts +3 -0
- package/lib/template/app-review/onboarding/index.d.ts.map +1 -0
- package/lib/template/app-review/onboarding/index.native.d.ts +9 -0
- package/lib/template/app-review/onboarding/index.native.d.ts.map +1 -0
- package/lib/template/app-review/onboarding/test/fixtures/default.d.ts +3 -0
- package/lib/template/app-review/onboarding/test/fixtures/default.d.ts.map +1 -0
- package/lib/template/app-review/onboarding/test/fixtures.native.d.ts +2 -0
- package/lib/template/app-review/onboarding/test/fixtures.native.d.ts.map +1 -0
- package/lib/template/app-review/player/index.d.ts +13 -0
- package/lib/template/app-review/player/index.d.ts.map +1 -0
- package/lib/template/app-review/player/index.native.d.ts +2 -2
- package/lib/template/app-review/player/index.native.d.ts.map +1 -1
- package/lib/template/app-review/player/index.native.js.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +31 -31
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.js.map +1 -1
- package/lib/template/app-review/player/test/fixtures/all-ok.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/all-ok.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/end-review.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/end-review.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/first-right.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/first-right.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/initial-state.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/initial-state.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/loading.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/loading.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/on-quit.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/on-quit.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/one-fail.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/one-fail.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/restack.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/restack.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/second-failed-question.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/second-failed-question.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures/unstack.d.ts +7 -0
- package/lib/template/app-review/player/test/fixtures/unstack.d.ts.map +1 -0
- package/lib/template/app-review/player/test/fixtures.native.d.ts +2 -0
- package/lib/template/app-review/player/test/fixtures.native.d.ts.map +1 -0
- package/lib/template/app-review/prop-types.d.ts +610 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -0
- package/lib/template/app-review/prop-types.js +4 -12
- package/lib/template/app-review/prop-types.js.map +1 -1
- package/lib/template/app-review/skills/index.d.ts +3 -0
- package/lib/template/app-review/skills/index.d.ts.map +1 -0
- package/lib/template/app-review/skills/test/fixtures/many-skills.d.ts +3 -0
- package/lib/template/app-review/skills/test/fixtures/many-skills.d.ts.map +1 -0
- package/lib/template/app-review/skills/test/fixtures/no-skills.d.ts +3 -0
- package/lib/template/app-review/skills/test/fixtures/no-skills.d.ts.map +1 -0
- package/lib/template/app-review/skills/test/fixtures.native.d.ts +2 -0
- package/lib/template/app-review/skills/test/fixtures.native.d.ts.map +1 -0
- package/lib/template/app-review/template-context.js +1 -1
- package/lib/template/app-review/template-context.js.map +1 -1
- package/lib/template/app-review/test/fixtures/onboarding.d.ts +7 -0
- package/lib/template/app-review/test/fixtures/onboarding.d.ts.map +1 -0
- package/lib/template/app-review/test/fixtures/player.d.ts +7 -0
- package/lib/template/app-review/test/fixtures/player.d.ts.map +1 -0
- package/lib/template/app-review/test/fixtures/skills.d.ts +7 -0
- package/lib/template/app-review/test/fixtures/skills.d.ts.map +1 -0
- package/lib/template/app-review/test/fixtures.native.d.ts +2 -0
- package/lib/template/app-review/test/fixtures.native.d.ts.map +1 -0
- package/lib/template/common/dashboard/index.js +1 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/test/helpers/render-component.d.ts +20 -0
- package/lib/test/helpers/render-component.d.ts.map +1 -0
- package/lib/util/get-shadow-box-color-from-primary.d.ts +2 -0
- package/lib/util/get-shadow-box-color-from-primary.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-short-audio.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-audio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAwBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-short-video.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAyBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-short.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAYd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAYd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/range.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAQd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplateContextValues } from '../../../../template/app-review/template-context';
|
|
2
|
-
import {
|
|
2
|
+
import { AnswerProps } from '../../prop-types';
|
|
3
3
|
declare type Fixture = {
|
|
4
|
-
props:
|
|
4
|
+
props: AnswerProps;
|
|
5
5
|
mobileContext?: TemplateContextValues;
|
|
6
6
|
};
|
|
7
7
|
declare const fixture: Fixture;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AAGvF,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AAGvF,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;IACnB,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAKF,QAAA,MAAM,OAAO,EAAE,OAsBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../src/molecule/answer/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default Audio;
|
|
2
|
+
declare class Audio extends React.Component<any, any, any> {
|
|
3
|
+
static propTypes: {
|
|
4
|
+
description: PropTypes.Requireable<string>;
|
|
5
|
+
mediaUrl: PropTypes.Requireable<string>;
|
|
6
|
+
poster: PropTypes.Requireable<string>;
|
|
7
|
+
onPlay: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
+
};
|
|
9
|
+
static contextTypes: {
|
|
10
|
+
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
+
common: PropTypes.Requireable<{
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
}>;
|
|
14
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
16
|
+
logo: PropTypes.Requireable<any>;
|
|
17
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
18
|
+
login: PropTypes.Requireable<any>;
|
|
19
|
+
}>>;
|
|
20
|
+
icons: PropTypes.Requireable<{
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
}>;
|
|
23
|
+
mod: PropTypes.Requireable<{
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
courses: PropTypes.Requireable<any[]>;
|
|
27
|
+
texts: PropTypes.Requireable<{
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
}>;
|
|
30
|
+
}>>;
|
|
31
|
+
};
|
|
32
|
+
constructor(props: any, context: any);
|
|
33
|
+
handlePlay(e: any): void;
|
|
34
|
+
audioElement: any;
|
|
35
|
+
setAudio: (element: any) => void;
|
|
36
|
+
shouldComponentUpdate(nextProps: any): boolean;
|
|
37
|
+
componentDidUpdate(): void;
|
|
38
|
+
render(): JSX.Element;
|
|
39
|
+
}
|
|
40
|
+
import React from "react";
|
|
41
|
+
import PropTypes from "prop-types";
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/audio/index.js"],"names":[],"mappings":";AAQA;IACE;;;;;MAKE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,sCAKC;IAeD,yBAGC;IApBC,kBAAwB;IAa1B,iCAEE;IAXF,+CAGC;IAED,2BAEC;IAWD,sBA+BC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../src/molecule/brand-logo/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -107,7 +107,7 @@ CardBackground.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
107
107
|
empty: PropTypes.bool,
|
|
108
108
|
'aria-label': PropTypes.string
|
|
109
109
|
} : {};
|
|
110
|
-
const Card = memo(function Card(props, context) {
|
|
110
|
+
const Card = /*#__PURE__*/memo(function Card(props, context) {
|
|
111
111
|
const {
|
|
112
112
|
skin
|
|
113
113
|
} = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","memo","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaCompositionCoorpacademyPictures","PicturesIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","CardContentInfo","MODES","Customer","Favorite","Selectable","Notification","style","THEMES","default","coorpmanager","CardBackground","type","image","empty","ariaLabel","skin","externalContent","primaryColor","whiteColor","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","childContextTypes","propTypes","string","bool","Card","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","CARD","lockWrapper","shape","number","func","oneOf"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,EAAwBC,IAAxB,QAAmC,OAAnC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,oBAAoB,IAAIC,QAD1B,EAEEC,mCAAmC,IAAIC,YAFzC,QAGO,0BAHP;AAIA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;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EA0Bf,oBAAoB/C,SAAS,CAACgD,MA1Bf;EA2Bf,uBAAuBhD,SAAS,CAACgD,MA3BlB;EA4Bf,2BAA2BvC,eAAe,CAACsC,SAAhB,CAA0B,YAA1B;AA5BZ,CAAjB;AA8BA,eAAeG,IAAf"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","memo","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaCompositionCoorpacademyPictures","PicturesIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","CardContentInfo","MODES","Customer","Favorite","Selectable","Notification","style","THEMES","default","coorpmanager","CardBackground","type","image","empty","ariaLabel","skin","externalContent","primaryColor","whiteColor","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","childContextTypes","propTypes","string","bool","Card","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","CARD","lockWrapper","shape","number","func","oneOf"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,EAAwBC,IAAxB,QAAmC,OAAnC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,oBAAoB,IAAIC,QAD1B,EAEEC,mCAAmC,IAAIC,YAFzC,QAGO,0BAHP;AAIA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,eAAP,IAAyBC,KAAzB,QAAqC,iBAArC;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,QAAP,MAAqB,YAArB;AACA,OAAOC,UAAP,MAAuB,cAAvB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,OAAO,MAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEH,KAAK,CAACG;AAFA,CAAf;;AAKP,MAAMC,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,KAAd;EAAqB,cAAcC;AAAnC,CAAD,EAAgD;EAACC;AAAD,CAAhD,KAA2D;EAChF,MAAMC,eAAe,GAAGnB,iBAAiB,CAACc,IAAD,CAAzC;;EACA,MAAMM,YAAY,GAAG,KAAI,gBAAJ,EAAsBF,IAAtB,CAArB;;EACA,MAAMG,UAAU,GAAG,KAAI,cAAJ,EAAoBH,IAApB,CAAnB;;EAEA,IAAIC,eAAe,IAAIlB,sBAAsB,CAACa,IAAD,CAA7C,EAAqD;IACnD,MAAMQ,QAAQ,GAAGrB,sBAAsB,CAACa,IAAD,CAAtB,CAA6BS,IAA9C;IACA,MAAMC,SAAS,GAAGvB,sBAAsB,CAACa,IAAD,CAAtB,C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,SAA7B,CAjBC;EAkBfsB,aAAa,EAAE5D,eAAe,CAACsC,SAAhB,CAA0BsB,aAlB1B;EAmBfC,UAAU,EAAE7D,eAAe,CAACsC,SAAhB,CAA0BuB,UAnBvB;EAoBfC,KAAK,EAAEvE,SAAS,CAACiG,KAAV,CAAgB,MAAKjF,MAAL,CAAhB,CApBQ;EAqBf,cAAchB,SAAS,CAACgD,MArBT;EAsBf,yBAAyBhD,SAAS,CAACgD,MAtBpB;EAuBf,uBAAuBpC,QAAQ,CAACmC,SAAT,CAAmB,YAAnB,CAvBR;EAwBf,yBAAyBlC,UAAU,CAACkC,SAAX,CAAqB,YAArB,CAxBV;EAyBf,uBAAuBpC,QAAQ,CAACoC,SAAT,CAAmB,YAAnB,CAzBR;EA0Bf,oBAAoB/C,SAAS,CAACgD,MA1Bf;EA2Bf,uBAAuBhD,SAAS,CAACgD,MA3BlB;EA4Bf,2BAA2BvC,eAAe,CAACsC,SAAhB,CAA0B,YAA1B;AA5BZ,CAAjB;AA8BA,eAAeG,IAAf"}
|
|
@@ -1,56 +1,7 @@
|
|
|
1
1
|
export default CMPopin;
|
|
2
2
|
declare function CMPopin(props: any): JSX.Element;
|
|
3
3
|
declare namespace CMPopin {
|
|
4
|
-
|
|
5
|
-
const content: PropTypes.Requireable<string>;
|
|
6
|
-
const mode: PropTypes.Requireable<string>;
|
|
7
|
-
const header: PropTypes.Requireable<string>;
|
|
8
|
-
const firstButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
|
-
label: PropTypes.Requireable<string>;
|
|
10
|
-
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
12
|
-
largeButton: PropTypes.Requireable<boolean>;
|
|
13
|
-
type: PropTypes.Requireable<string>;
|
|
14
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
15
|
-
}>>;
|
|
16
|
-
const secondButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
-
label: PropTypes.Requireable<string>;
|
|
18
|
-
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
type: PropTypes.Requireable<string>;
|
|
20
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
21
|
-
largeButton: PropTypes.Requireable<boolean>;
|
|
22
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
23
|
-
}>>;
|
|
24
|
-
const thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
|
-
label: PropTypes.Requireable<string>;
|
|
26
|
-
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
type: PropTypes.Requireable<string>;
|
|
28
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
29
|
-
largeButton: PropTypes.Requireable<boolean>;
|
|
30
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
31
|
-
}>>;
|
|
32
|
-
const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
-
const icon: PropTypes.Requireable<string>;
|
|
34
|
-
const backgroundImageUrl: PropTypes.Requireable<string>;
|
|
35
|
-
const descriptionText: PropTypes.Requireable<string>;
|
|
36
|
-
const cookieTitle: PropTypes.Requireable<string>;
|
|
37
|
-
const descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
38
|
-
const listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
39
|
-
title: PropTypes.Requireable<string>;
|
|
40
|
-
name: PropTypes.Requireable<string>;
|
|
41
|
-
id: PropTypes.Requireable<string>;
|
|
42
|
-
value: PropTypes.Requireable<boolean>;
|
|
43
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
44
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
-
description: PropTypes.Requireable<string>;
|
|
46
|
-
modified: PropTypes.Requireable<boolean>;
|
|
47
|
-
titlePosition: PropTypes.Requireable<string>;
|
|
48
|
-
theme: PropTypes.Requireable<string>;
|
|
49
|
-
details: PropTypes.Requireable<string>;
|
|
50
|
-
'data-name': PropTypes.Requireable<string>;
|
|
51
|
-
requiredSelection: PropTypes.Requireable<boolean>;
|
|
52
|
-
}> | null | undefined)[]>;
|
|
53
|
-
}
|
|
4
|
+
export { propTypes };
|
|
54
5
|
}
|
|
55
|
-
import
|
|
6
|
+
import propTypes from "./types";
|
|
56
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond, NovaSolidApplicationsWindowUpload3 as WindowUpload, NovaLineSettingsCookie as Cookie, NovaSolidSpaceMoonRocket as MoonRocket } from '@coorpacademy/nova-icons';
|
|
4
3
|
import map from 'lodash/fp/map';
|
|
5
4
|
import Cta from '../../atom/button-link';
|
|
6
5
|
import ButtonLinkIconOnly from '../../atom/button-link-icon-only';
|
|
7
6
|
import InputSwitch from '../../atom/input-switch';
|
|
8
7
|
import style from './style.css';
|
|
8
|
+
import propTypes from './types';
|
|
9
9
|
|
|
10
10
|
const CMPopin = props => {
|
|
11
11
|
const {
|
|
@@ -166,41 +166,6 @@ const CMPopin = props => {
|
|
|
166
166
|
})) : null)));
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
CMPopin.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
170
|
-
content: PropTypes.string,
|
|
171
|
-
mode: PropTypes.oneOf(['alert', 'information', 'cookie']),
|
|
172
|
-
header: PropTypes.string,
|
|
173
|
-
firstButton: PropTypes.shape({
|
|
174
|
-
label: PropTypes.string,
|
|
175
|
-
handleOnclick: PropTypes.func,
|
|
176
|
-
'aria-label': PropTypes.string,
|
|
177
|
-
largeButton: PropTypes.bool,
|
|
178
|
-
type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),
|
|
179
|
-
customStyle: Cta.propTypes.customStyle
|
|
180
|
-
}),
|
|
181
|
-
secondButton: PropTypes.shape({
|
|
182
|
-
label: PropTypes.string,
|
|
183
|
-
handleOnclick: PropTypes.func,
|
|
184
|
-
type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),
|
|
185
|
-
'aria-label': PropTypes.string,
|
|
186
|
-
largeButton: PropTypes.bool,
|
|
187
|
-
customStyle: Cta.propTypes.customStyle
|
|
188
|
-
}),
|
|
189
|
-
thirdButton: PropTypes.shape({
|
|
190
|
-
label: PropTypes.string,
|
|
191
|
-
handleOnclick: PropTypes.func,
|
|
192
|
-
type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),
|
|
193
|
-
'aria-label': PropTypes.string,
|
|
194
|
-
largeButton: PropTypes.bool,
|
|
195
|
-
customStyle: Cta.propTypes.customStyle
|
|
196
|
-
}),
|
|
197
|
-
onClose: PropTypes.func,
|
|
198
|
-
icon: PropTypes.string,
|
|
199
|
-
backgroundImageUrl: PropTypes.string,
|
|
200
|
-
descriptionText: PropTypes.string,
|
|
201
|
-
cookieTitle: PropTypes.string,
|
|
202
|
-
descriptionBtnTxt: PropTypes.string,
|
|
203
|
-
listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes))
|
|
204
|
-
} : {};
|
|
169
|
+
CMPopin.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
205
170
|
export default CMPopin;
|
|
206
171
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","NovaSolidInterfaceFeedbackInterfaceAlertDiamond","AlertDiamond","NovaSolidApplicationsWindowUpload3","WindowUpload","NovaLineSettingsCookie","Cookie","NovaSolidSpaceMoonRocket","MoonRocket","map","Cta","ButtonLinkIconOnly","InputSwitch","style","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","logo","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","renderHeader","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","convert","cap","el","type","title","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","background","popinCookie","popin","popinHeader","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","propTypes","string","oneOf","shape","func","bool","arrayOf"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth\n } = props;\n\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const renderHeader = () => {\n if (header) return <img className={style.headerBackground} src={header} />;\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n return null;\n };\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={mode === 'cookie' ? style.popinCookie : style.popin}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <ButtonLinkIconOnly\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </header>\n <div className={style.titleContainer}>\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {renderBtnSwitch()}\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie']),\n header: PropTypes.string,\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes))\n};\n\nexport default CMPopin;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAC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AS,CAAC6E,MAhCL;EAiClBlD,iBAAiB,EAAE3B,SAAS,CAAC6E,MAjCX;EAkClBjD,aAAa,EAAE5B,SAAS,CAACkF,OAAV,CAAkBlF,SAAS,CAAC+E,KAAV,CAAgBnE,WAAW,CAACgE,SAA5B,CAAlB;AAlCG,CAApB;AAqCA,eAAe9D,OAAf"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","NovaSolidInterfaceFeedbackInterfaceAlertDiamond","AlertDiamond","NovaSolidApplicationsWindowUpload3","WindowUpload","NovaLineSettingsCookie","Cookie","NovaSolidSpaceMoonRocket","MoonRocket","map","Cta","ButtonLinkIconOnly","InputSwitch","style","propTypes","CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","logo","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","renderHeader","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","convert","cap","el","type","title","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","background","popinCookie","popin","popinHeader","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\nimport propTypes from './types';\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth\n } = props;\n\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const renderHeader = () => {\n if (header) return <img className={style.headerBackground} src={header} />;\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n return null;\n };\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={mode === 'cookie' ? style.popinCookie : style.popin}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <ButtonLinkIconOnly\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </header>\n <div className={style.titleContainer}>\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {renderBtnSwitch()}\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\n\nexport default CMPopin;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SACEC,+CAA+C,IAAIC,YADrD,EAEEC,kCAAkC,IAAIC,YAFxC,EAGEC,sBAAsB,IAAIC,MAH5B,EAIEC,wBAAwB,IAAIC,UAJ9B,QAKO,0BALP;AAMA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OAAOC,WAAP,MAAwB,y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OAAO,EAAEtD,YAAY,CAACuD,aAFxB;IAGE,aAAY,gBAAevD,YAAY,CAAC+B,IAAK,EAH/C;IAIE,cAAY/B,YAAY,CAAC,YAAD,CAJ1B;IAKE,IAAI,EAAEA,YAAY,CAAC+B;EALrB,EADF,CADW,GAUT,IAvBN,EAwBGzB,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAAC8C,WAAZ,GAA0B3D,KAAK,CAAC2D,WAAhC,GAA8C3D,KAAK,CAAC4D;EAApE,gBACE,oBAAC,GAAD;IACE,KAAK,EAAE/C,WAAW,CAACgD,KADrB;IAEE,OAAO,EAAEhD,WAAW,CAACiD,aAFvB;IAGE,aAAY,gBAAejD,WAAW,CAACyB,IAAK,EAH9C;IAIE,cAAYzB,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAACyB,IALpB;IAME,WAAW,EAAEzB,WAAW,CAACkD;EAN3B,EADF,CADU,GAWR,IAnCN,CAnCF,CALF,CADF;AAiFD,CA1KD;;AA4KA7D,OAAO,CAACD,SAAR,2CAAoBA,SAApB;AAEA,eAAeC,OAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-review-quit.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/cm-popin/test/fixtures/on-review-quit.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAsBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const propTypes: {
|
|
3
|
+
content: PropTypes.Requireable<string>;
|
|
4
|
+
mode: PropTypes.Requireable<string>;
|
|
5
|
+
header: PropTypes.Requireable<string>;
|
|
6
|
+
firstButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
+
label: PropTypes.Requireable<string>;
|
|
8
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
10
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
11
|
+
type: PropTypes.Requireable<string>;
|
|
12
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
13
|
+
}>>;
|
|
14
|
+
secondButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
label: PropTypes.Requireable<string>;
|
|
16
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
type: PropTypes.Requireable<string>;
|
|
18
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
19
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
20
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
21
|
+
}>>;
|
|
22
|
+
thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
+
label: PropTypes.Requireable<string>;
|
|
24
|
+
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
+
type: PropTypes.Requireable<string>;
|
|
26
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
27
|
+
largeButton: PropTypes.Requireable<boolean>;
|
|
28
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
29
|
+
}>>;
|
|
30
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
icon: PropTypes.Requireable<string>;
|
|
32
|
+
backgroundImageUrl: PropTypes.Requireable<string>;
|
|
33
|
+
descriptionText: PropTypes.Requireable<string>;
|
|
34
|
+
cookieTitle: PropTypes.Requireable<string>;
|
|
35
|
+
descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
36
|
+
listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
37
|
+
title: PropTypes.Requireable<string>;
|
|
38
|
+
name: PropTypes.Requireable<string>;
|
|
39
|
+
id: PropTypes.Requireable<string>;
|
|
40
|
+
value: PropTypes.Requireable<boolean>;
|
|
41
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
42
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
+
description: PropTypes.Requireable<string>;
|
|
44
|
+
modified: PropTypes.Requireable<boolean>;
|
|
45
|
+
titlePosition: PropTypes.Requireable<string>;
|
|
46
|
+
theme: PropTypes.Requireable<string>;
|
|
47
|
+
details: PropTypes.Requireable<string>;
|
|
48
|
+
'data-name': PropTypes.Requireable<string>;
|
|
49
|
+
requiredSelection: PropTypes.Requireable<boolean>;
|
|
50
|
+
}> | null | undefined)[]>;
|
|
51
|
+
};
|
|
52
|
+
declare type QuitPopinButton = {
|
|
53
|
+
'aria-label'?: string;
|
|
54
|
+
label: string;
|
|
55
|
+
type: string;
|
|
56
|
+
customStyle?: {
|
|
57
|
+
color: string;
|
|
58
|
+
};
|
|
59
|
+
handleOnclick: () => void;
|
|
60
|
+
};
|
|
61
|
+
export declare type CMPopinProps = {
|
|
62
|
+
content: string;
|
|
63
|
+
icon: string;
|
|
64
|
+
mode: string;
|
|
65
|
+
descriptionText: string;
|
|
66
|
+
firstButton: QuitPopinButton;
|
|
67
|
+
secondButton: QuitPopinButton;
|
|
68
|
+
};
|
|
69
|
+
export default propTypes;
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCd,CAAC;AAEF,aAAK,eAAe,GAAG;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,eAAe,CAAC;CAC/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import Cta from '../../atom/button-link';
|
|
3
|
+
import InputSwitch from '../../atom/input-switch';
|
|
4
|
+
const propTypes = {
|
|
5
|
+
content: PropTypes.string,
|
|
6
|
+
mode: PropTypes.oneOf(['alert', 'information', 'cookie']),
|
|
7
|
+
header: PropTypes.string,
|
|
8
|
+
firstButton: PropTypes.shape({
|
|
9
|
+
label: PropTypes.string,
|
|
10
|
+
handleOnclick: PropTypes.func,
|
|
11
|
+
'aria-label': PropTypes.string,
|
|
12
|
+
largeButton: PropTypes.bool,
|
|
13
|
+
type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),
|
|
14
|
+
customStyle: Cta.propTypes.customStyle
|
|
15
|
+
}),
|
|
16
|
+
secondButton: PropTypes.shape({
|
|
17
|
+
label: PropTypes.string,
|
|
18
|
+
handleOnclick: PropTypes.func,
|
|
19
|
+
type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),
|
|
20
|
+
'aria-label': PropTypes.string,
|
|
21
|
+
largeButton: PropTypes.bool,
|
|
22
|
+
customStyle: Cta.propTypes.customStyle
|
|
23
|
+
}),
|
|
24
|
+
thirdButton: PropTypes.shape({
|
|
25
|
+
label: PropTypes.string,
|
|
26
|
+
handleOnclick: PropTypes.func,
|
|
27
|
+
type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),
|
|
28
|
+
'aria-label': PropTypes.string,
|
|
29
|
+
largeButton: PropTypes.bool,
|
|
30
|
+
customStyle: Cta.propTypes.customStyle
|
|
31
|
+
}),
|
|
32
|
+
onClose: PropTypes.func,
|
|
33
|
+
icon: PropTypes.string,
|
|
34
|
+
backgroundImageUrl: PropTypes.string,
|
|
35
|
+
descriptionText: PropTypes.string,
|
|
36
|
+
cookieTitle: PropTypes.string,
|
|
37
|
+
descriptionBtnTxt: PropTypes.string,
|
|
38
|
+
listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes))
|
|
39
|
+
};
|
|
40
|
+
export default propTypes;
|
|
41
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","Cta","InputSwitch","propTypes","content","string","mode","oneOf","header","firstButton","shape","label","handleOnclick","func","largeButton","bool","type","customStyle","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","descriptionBtnTxt","listBtnSwicth","arrayOf"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie']),\n header: PropTypes.string,\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes))\n};\n\ntype QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n color: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: string;\n descriptionText: string;\n firstButton: QuitPopinButton;\n secondButton: QuitPopinButton;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AAEA,MAAMC,SAAS,GAAG;EAChBC,OAAO,EAAEJ,SAAS,CAACK,MADH;EAEhBC,IAAI,EAAEN,SAAS,CAACO,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,CAAhB,CAFU;EAGhBC,MAAM,EAAER,SAAS,CAACK,MAHF;EAIhBI,WAAW,EAAET,SAAS,CAACU,KAAV,CAAgB;IAC3BC,KAAK,EAAEX,SAAS,CAACK,MADU;IAE3BO,aAAa,EAAEZ,SAAS,CAACa,IAFE;IAG3B,cAAcb,SAAS,CAACK,MAHG;IAI3BS,WAAW,EAAEd,SAAS,CAACe,IAJI;IAK3BC,IAAI,EAAEhB,SAAS,CAACO,KAAV,CAAgB,CAAC,WAAD,EAAc,SAAd,EAAyB,WAAzB,EAAsC,UAAtC,CAAhB,CALqB;IAM3BU,WAAW,EAAEhB,GAAG,CAACE,SAAJ,CAAcc;EANA,CAAhB,CAJG;EAYhBC,YAAY,EAAElB,SAAS,CAACU,KAAV,CAAgB;IAC5BC,KAAK,EAAEX,SAAS,CAACK,MADW;IAE5BO,aAAa,EAAEZ,SAAS,CAACa,IAFG;IAG5BG,IAAI,EAAEhB,SAAS,CAACO,KAAV,CAAgB,CAAC,WAAD,EAAc,SAAd,EAAyB,WAAzB,CAAhB,CAHsB;IAI5B,cAAcP,SAAS,CAACK,MAJI;IAK5BS,WAAW,EAAEd,SAAS,CAACe,IALK;IAM5BE,WAAW,EAAEhB,GAAG,CAACE,SAAJ,CAAcc;EANC,CAAhB,CAZE;EAoBhBE,WAAW,EAAEnB,SAAS,CAACU,KAAV,CAAgB;IAC3BC,KAAK,EAAEX,SAAS,CAACK,MADU;IAE3BO,aAAa,EAAEZ,SAAS,CAACa,IAFE;IAG3BG,IAAI,EAAEhB,SAAS,CAACO,KAAV,CAAgB,CAAC,WAAD,EAAc,SAAd,EAAyB,WAAzB,CAAhB,CAHqB;IAI3B,cAAcP,SAAS,CAACK,MAJG;IAK3BS,WAAW,EAAEd,SAAS,CAACe,IALI;IAM3BE,WAAW,EAAEhB,GAAG,CAACE,SAAJ,CAAcc;EANA,CAAhB,CApBG;EA4BhBG,OAAO,EAAEpB,SAAS,CAACa,IA5BH;EA6BhBQ,IAAI,EAAErB,SAAS,CAACK,MA7BA;EA8BhBiB,kBAAkB,EAAEtB,SAAS,CAACK,MA9Bd;EA+BhBkB,eAAe,EAAEvB,SAAS,CAACK,MA/BX;EAgChBmB,WAAW,EAAExB,SAAS,CAACK,MAhCP;EAiChBoB,iBAAiB,EAAEzB,SAAS,CAACK,MAjCb;EAkChBqB,aAAa,EAAE1B,SAAS,CAAC2B,OAAV,CAAkB3B,SAAS,CAACU,KAAV,CAAgBR,WAAW,CAACC,SAA5B,CAAlB;AAlCC,CAAlB;AAwDA,eAAeA,SAAf"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import BattleRequest from '../../battle-request';
|
|
4
4
|
import style from './style.css';
|
|
5
|
-
const BattleRequestList = React.memo(function BattleRequestList(props) {
|
|
5
|
+
const BattleRequestList = /*#__PURE__*/React.memo(function BattleRequestList(props) {
|
|
6
6
|
const {
|
|
7
7
|
requests
|
|
8
8
|
} = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","BattleRequest","style","BattleRequestList","memo","props","requests","cards","map","request","key","card","list","propTypes","arrayOf","shape"],"sources":["../../../../src/molecule/dashboard/battle-request-list/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport BattleRequest from '../../battle-request';\nimport style from './style.css';\n\nconst BattleRequestList = React.memo(function BattleRequestList(props) {\n const {requests} = props;\n\n const cards = requests.map((request, key) => {\n return (\n <div className={style.card} key={key}>\n <BattleRequest {...request} />\n </div>\n );\n });\n\n return (\n <div className={style.list} data-name=\"battle-request-list\">\n {cards}\n </div>\n );\n});\n\nBattleRequestList.propTypes = {\n requests: PropTypes.arrayOf(PropTypes.shape(BattleRequest.propTypes))\n};\n\nexport default BattleRequestList;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,sBAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","BattleRequest","style","BattleRequestList","memo","props","requests","cards","map","request","key","card","list","propTypes","arrayOf","shape"],"sources":["../../../../src/molecule/dashboard/battle-request-list/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport BattleRequest from '../../battle-request';\nimport style from './style.css';\n\nconst BattleRequestList = React.memo(function BattleRequestList(props) {\n const {requests} = props;\n\n const cards = requests.map((request, key) => {\n return (\n <div className={style.card} key={key}>\n <BattleRequest {...request} />\n </div>\n );\n });\n\n return (\n <div className={style.list} data-name=\"battle-request-list\">\n {cards}\n </div>\n );\n});\n\nBattleRequestList.propTypes = {\n requests: PropTypes.arrayOf(PropTypes.shape(BattleRequest.propTypes))\n};\n\nexport default BattleRequestList;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,aAAP,MAA0B,sBAA1B;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,iBAAiB,gBAAGJ,KAAK,CAACK,IAAN,CAAW,SAASD,iBAAT,CAA2BE,KAA3B,EAAkC;EACrE,MAAM;IAACC;EAAD,IAAaD,KAAnB;EAEA,MAAME,KAAK,GAAGD,QAAQ,CAACE,GAAT,CAAa,CAACC,OAAD,EAAUC,GAAV,KAAkB;IAC3C,oBACE;MAAK,SAAS,EAAER,KAAK,CAACS,IAAtB;MAA4B,GAAG,EAAED;IAAjC,gBACE,oBAAC,aAAD,EAAmBD,OAAnB,CADF,CADF;EAKD,CANa,CAAd;EAQA,oBACE;IAAK,SAAS,EAAEP,KAAK,CAACU,IAAtB;IAA4B,aAAU;EAAtC,GACGL,KADH,CADF;AAKD,CAhByB,CAA1B;AAkBAJ,iBAAiB,CAACU,SAAlB,2CAA8B;EAC5BP,QAAQ,EAAEN,SAAS,CAACc,OAAV,CAAkBd,SAAS,CAACe,KAAV,CAAgBd,aAAa,CAACY,SAA9B,CAAlB;AADkB,CAA9B;AAIA,eAAeV,iBAAf"}
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import News from '../../news';
|
|
4
4
|
import Loader from '../../../atom/loader';
|
|
5
5
|
import style from './style.css';
|
|
6
|
-
const NewsList = React.memo(function NewsList(props) {
|
|
6
|
+
const NewsList = /*#__PURE__*/React.memo(function NewsList(props) {
|
|
7
7
|
const {
|
|
8
8
|
title,
|
|
9
9
|
news,
|