@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","logo","AlertDiamond","WindowUpload","MoonRocket","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","renderHeader","style","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","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","PropTypes","string","oneOf","shape","func","bool","Cta","arrayOf","InputSwitch"],"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;;AACA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,OAAO,GAAGC,KAAK,IAAI;EACvB,MAAM;IACJC,OADI;IAEJC,IAAI,GAAG,OAFH;IAGJC,WAHI;IAIJC,YAJI;IAKJC,OALI;IAMJC,MANI;IAOJC,IAPI;IAQJC,kBARI;IASJC,eATI;IAUJC,WAVI;IAWJC,WAXI;IAYJC,iBAZI;IAaJC;EAbI,IAcFb,KAdJ;EAgBA,MAAMc,IAAI,GAAG;IACXC,YAAY,EAAZA,0DADW;IAEXC,YAAY,EAAZA,6CAFW;IAGXC,UAAU,EAAVA;EAHW,CAAb;EAKA,MAAMC,aAAa,GAAGJ,IAAI,CAACP,IAAD,CAA1B;EAEA,MAAMY,oBAAoB,GAAGX,kBAAkB,GAC3C;IACEY,eAAe,EAAG,OAAMZ,kBAAmB,GAD7C;IAEEa,cAAc,EAAE;EAFlB,CAD2C,GAK3C,IALJ;;EAMA,MAAMC,YAAY,GAAG,MAAM;IACzB,IAAIhB,MAAJ,EAAY,oBAAO;MAAK,SAAS,EAAEiB,cAAA,CAAMC,gBAAtB;MAAwC,GAAG,EAAElB;IAA7C,EAAP;IACZ,IAAIJ,IAAI,KAAK,QAAb,EACE,oBACE;MAAK,SAAS,EAAEqB,cAAA,CAAME;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,CAAIP,SAAJ,CAAcD;EANA,CAAhB,CApBK;EA4BlB5D,OAAO,EAAE8D,kBAAA,CAAUI,IA5BD;EA6BlBhE,IAAI,EAAE4D,kBAAA,CAAUC,MA7BE;EA8BlB5D,kBAAkB,EAAE2D,kBAAA,CAAUC,MA9BZ;EA+BlB3D,eAAe,EAAE0D,kBAAA,CAAUC,MA/BT;EAgClBzD,WAAW,EAAEwD,kBAAA,CAAUC,MAhCL;EAiClBxD,iBAAiB,EAAEuD,kBAAA,CAAUC,MAjCX;EAkClBvD,aAAa,EAAEsD,kBAAA,CAAUO,OAAV,CAAkBP,kBAAA,CAAUG,KAAV,CAAgBK,oBAAA,CAAYT,SAA5B,CAAlB;AAlCG,CAApB;eAqCenE,O"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","logo","AlertDiamond","WindowUpload","MoonRocket","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","renderHeader","style","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","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"],"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;;AACA;;AAMA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,OAAO,GAAGC,KAAK,IAAI;EACvB,MAAM;IACJC,OADI;IAEJC,IAAI,GAAG,OAFH;IAGJC,WAHI;IAIJC,YAJI;IAKJC,OALI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AJ1B;IAKE,IAAI,EAAEA,YAAY,CAACoC;EALrB,EADF,CADW,GAUT,IAvBN,EAwBG9B,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAACmD,WAAZ,GAA0BtC,cAAA,CAAMsC,WAAhC,GAA8CtC,cAAA,CAAMuC;EAApE,gBACE,6BAAC,mBAAD;IACE,KAAK,EAAEpD,WAAW,CAACqD,KADrB;IAEE,OAAO,EAAErD,WAAW,CAACsD,aAFvB;IAGE,aAAY,gBAAetD,WAAW,CAAC8B,IAAK,EAH9C;IAIE,cAAY9B,WAAW,CAAC,YAAD,CAJzB;IAKE,IAAI,EAAEA,WAAW,CAAC8B,IALpB;IAME,WAAW,EAAE9B,WAAW,CAACuD;EAN3B,EADF,CADU,GAWR,IAnCN,CAnCF,CALF,CADF;AAiFD,CA1KD;;AA4KAlE,OAAO,CAACmE,SAAR,2CAAoBA,cAApB;eAEenE,O"}
|
|
@@ -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,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
8
|
+
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
|
+
|
|
10
|
+
var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
const propTypes = {
|
|
15
|
+
content: _propTypes.default.string,
|
|
16
|
+
mode: _propTypes.default.oneOf(['alert', 'information', 'cookie']),
|
|
17
|
+
header: _propTypes.default.string,
|
|
18
|
+
firstButton: _propTypes.default.shape({
|
|
19
|
+
label: _propTypes.default.string,
|
|
20
|
+
handleOnclick: _propTypes.default.func,
|
|
21
|
+
'aria-label': _propTypes.default.string,
|
|
22
|
+
largeButton: _propTypes.default.bool,
|
|
23
|
+
type: _propTypes.default.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),
|
|
24
|
+
customStyle: _buttonLink.default.propTypes.customStyle
|
|
25
|
+
}),
|
|
26
|
+
secondButton: _propTypes.default.shape({
|
|
27
|
+
label: _propTypes.default.string,
|
|
28
|
+
handleOnclick: _propTypes.default.func,
|
|
29
|
+
type: _propTypes.default.oneOf(['dangerous', 'primary', 'secondary']),
|
|
30
|
+
'aria-label': _propTypes.default.string,
|
|
31
|
+
largeButton: _propTypes.default.bool,
|
|
32
|
+
customStyle: _buttonLink.default.propTypes.customStyle
|
|
33
|
+
}),
|
|
34
|
+
thirdButton: _propTypes.default.shape({
|
|
35
|
+
label: _propTypes.default.string,
|
|
36
|
+
handleOnclick: _propTypes.default.func,
|
|
37
|
+
type: _propTypes.default.oneOf(['dangerous', 'primary', 'secondary']),
|
|
38
|
+
'aria-label': _propTypes.default.string,
|
|
39
|
+
largeButton: _propTypes.default.bool,
|
|
40
|
+
customStyle: _buttonLink.default.propTypes.customStyle
|
|
41
|
+
}),
|
|
42
|
+
onClose: _propTypes.default.func,
|
|
43
|
+
icon: _propTypes.default.string,
|
|
44
|
+
backgroundImageUrl: _propTypes.default.string,
|
|
45
|
+
descriptionText: _propTypes.default.string,
|
|
46
|
+
cookieTitle: _propTypes.default.string,
|
|
47
|
+
descriptionBtnTxt: _propTypes.default.string,
|
|
48
|
+
listBtnSwicth: _propTypes.default.arrayOf(_propTypes.default.shape(_inputSwitch.default.propTypes))
|
|
49
|
+
};
|
|
50
|
+
var _default = propTypes;
|
|
51
|
+
exports.default = _default;
|
|
52
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","firstButton","shape","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch"],"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;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,MADH;EAEhBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,CAAhB,CAFU;EAGhBC,MAAM,EAAEJ,kBAAA,CAAUC,MAHF;EAIhBI,WAAW,EAAEL,kBAAA,CAAUM,KAAV,CAAgB;IAC3BC,KAAK,EAAEP,kBAAA,CAAUC,MADU;IAE3BO,aAAa,EAAER,kBAAA,CAAUS,IAFE;IAG3B,cAAcT,kBAAA,CAAUC,MAHG;IAI3BS,WAAW,EAAEV,kBAAA,CAAUW,IAJI;IAK3BC,IAAI,EAAEZ,kBAAA,CAAUG,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V,CAAkBxB,kBAAA,CAAUM,KAAV,CAAgBmB,oBAAA,CAAY3B,SAA5B,CAAlB;AAlCC,CAAlB;eAwDeA,S"}
|
|
@@ -13,7 +13,7 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
const BattleRequestList = _react.default.memo(function BattleRequestList(props) {
|
|
16
|
+
const BattleRequestList = /*#__PURE__*/_react.default.memo(function BattleRequestList(props) {
|
|
17
17
|
const {
|
|
18
18
|
requests
|
|
19
19
|
} = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["BattleRequestList","React","memo","props","requests","cards","map","request","key","style","card","list","propTypes","PropTypes","arrayOf","shape","BattleRequest"],"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;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","names":["BattleRequestList","React","memo","props","requests","cards","map","request","key","style","card","list","propTypes","PropTypes","arrayOf","shape","BattleRequest"],"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;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,iBAAiB,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,iBAAT,CAA2BG,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,EAAEC,cAAA,CAAMC,IAAtB;MAA4B,GAAG,EAAEF;IAAjC,gBACE,6BAAC,sBAAD,EAAmBD,OAAnB,CADF,CADF;EAKD,CANa,CAAd;EAQA,oBACE;IAAK,SAAS,EAAEE,cAAA,CAAME,IAAtB;IAA4B,aAAU;EAAtC,GACGN,KADH,CADF;AAKD,CAhByB,CAA1B;;AAkBAL,iBAAiB,CAACY,SAAlB,2CAA8B;EAC5BR,QAAQ,EAAES,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,sBAAA,CAAcJ,SAA9B,CAAlB;AADkB,CAA9B;eAIeZ,iB"}
|
|
@@ -15,7 +15,7 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
const NewsList = _react.default.memo(function NewsList(props) {
|
|
18
|
+
const NewsList = /*#__PURE__*/_react.default.memo(function NewsList(props) {
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
21
|
news,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["NewsList","React","memo","props","title","news","more","loading","loadingView","style","loader","moreView","onClick","label","cardsView","map","nws","key","card","wrapper","list","propTypes","PropTypes","string","arrayOf","shape","News","func","bool"],"sources":["../../../../src/molecule/dashboard/news-list/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport News from '../../news';\nimport Loader from '../../../atom/loader';\nimport style from './style.css';\n\nconst NewsList = React.memo(function NewsList(props) {\n const {title, news, more, loading = false} = props;\n\n const loadingView = (\n <div className={style.loader}>\n <Loader />\n </div>\n );\n\n const moreView = more ? (\n // eslint-disable-next-line react/jsx-handler-names\n <div className={style.more} onClick={more.onClick}>\n {more.label}\n </div>\n ) : null;\n\n const cardsView = news.map((nws, key) => {\n return (\n <div className={style.card} key={key}>\n <News {...nws} />\n </div>\n );\n });\n\n return (\n <div className={style.wrapper} data-name=\"news-list\">\n <div className={style.list}>\n <div className={style.title}>{title}</div>\n {cardsView}\n {loading ? loadingView : moreView}\n </div>\n </div>\n );\n});\n\nNewsList.propTypes = {\n title: PropTypes.string,\n news: PropTypes.arrayOf(PropTypes.shape(News.propTypes)),\n more: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n loading: PropTypes.bool\n};\n\nexport default NewsList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","names":["NewsList","React","memo","props","title","news","more","loading","loadingView","style","loader","moreView","onClick","label","cardsView","map","nws","key","card","wrapper","list","propTypes","PropTypes","string","arrayOf","shape","News","func","bool"],"sources":["../../../../src/molecule/dashboard/news-list/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport News from '../../news';\nimport Loader from '../../../atom/loader';\nimport style from './style.css';\n\nconst NewsList = React.memo(function NewsList(props) {\n const {title, news, more, loading = false} = props;\n\n const loadingView = (\n <div className={style.loader}>\n <Loader />\n </div>\n );\n\n const moreView = more ? (\n // eslint-disable-next-line react/jsx-handler-names\n <div className={style.more} onClick={more.onClick}>\n {more.label}\n </div>\n ) : null;\n\n const cardsView = news.map((nws, key) => {\n return (\n <div className={style.card} key={key}>\n <News {...nws} />\n </div>\n );\n });\n\n return (\n <div className={style.wrapper} data-name=\"news-list\">\n <div className={style.list}>\n <div className={style.title}>{title}</div>\n {cardsView}\n {loading ? loadingView : moreView}\n </div>\n </div>\n );\n});\n\nNewsList.propTypes = {\n title: PropTypes.string,\n news: PropTypes.arrayOf(PropTypes.shape(News.propTypes)),\n more: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n loading: PropTypes.bool\n};\n\nexport default NewsList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,QAAQ,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,QAAT,CAAkBG,KAAlB,EAAyB;EACnD,MAAM;IAACC,KAAD;IAAQC,IAAR;IAAcC,IAAd;IAAoBC,OAAO,GAAG;EAA9B,IAAuCJ,KAA7C;;EAEA,MAAMK,WAAW,gBACf;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE,6BAAC,eAAD,OADF,CADF;;EAMA,MAAMC,QAAQ,GAAGL,IAAI;EAAA;EACnB;EACA;IAAK,SAAS,EAAEG,cAAA,CAAMH,IAAtB;IAA4B,OAAO,EAAEA,IAAI,CAACM;EAA1C,GACGN,IAAI,CAACO,KADR,CAFmB,GAKjB,IALJ;EAOA,MAAMC,SAAS,GAAGT,IAAI,CAACU,GAAL,CAAS,CAACC,GAAD,EAAMC,GAAN,KAAc;IACvC,oBACE;MAAK,SAAS,EAAER,cAAA,CAAMS,IAAtB;MAA4B,GAAG,EAAED;IAAjC,gBACE,6BAAC,aAAD,EAAUD,GAAV,CADF,CADF;EAKD,CANiB,CAAlB;EAQA,oBACE;IAAK,SAAS,EAAEP,cAAA,CAAMU,OAAtB;IAA+B,aAAU;EAAzC,gBACE;IAAK,SAAS,EAAEV,cAAA,CAAMW;EAAtB,gBACE;IAAK,SAAS,EAAEX,cAAA,CAAML;EAAtB,GAA8BA,KAA9B,CADF,EAEGU,SAFH,EAGGP,OAAO,GAAGC,WAAH,GAAiBG,QAH3B,CADF,CADF;AASD,CAjCgB,CAAjB;;AAmCAX,QAAQ,CAACqB,SAAT,2CAAqB;EACnBjB,KAAK,EAAEkB,kBAAA,CAAUC,MADE;EAEnBlB,IAAI,EAAEiB,kBAAA,CAAUE,OAAV,CAAkBF,kBAAA,CAAUG,KAAV,CAAgBC,aAAA,CAAKL,SAArB,CAAlB,CAFa;EAGnBf,IAAI,EAAEgB,kBAAA,CAAUG,KAAV,CAAgB;IACpBZ,KAAK,EAAES,kBAAA,CAAUC,MADG;IAEpBX,OAAO,EAAEU,kBAAA,CAAUK;EAFC,CAAhB,CAHa;EAOnBpB,OAAO,EAAEe,kBAAA,CAAUM;AAPA,CAArB;eAUe5B,Q"}
|
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
|
|
16
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
17
|
|
|
18
|
-
const ReviewBanner = _react.default.memo(function ReviewBanner(props) {
|
|
18
|
+
const ReviewBanner = /*#__PURE__*/_react.default.memo(function ReviewBanner(props) {
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
21
|
subtitle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ReviewBanner","React","memo","props","title","subtitle","cta","buttonProps","type","style","root","container","banner","left","image","middle","right","propTypes","PropTypes","string","shape","onClick","func","label"],"sources":["../../../../src/molecule/dashboard/review-banner/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../../atom/button-link';\nimport style from './style.css';\n\nconst ReviewBanner = React.memo(function ReviewBanner(props) {\n const {title, subtitle, cta} = props;\n\n const buttonProps = {\n ...cta,\n type: 'primary'\n };\n\n return (\n <div className={style.root} data-name=\"start-review-banner\">\n <div className={style.container}>\n <div className={style.banner}>\n <div className={style.left} role=\"img\" aria-label=\"Left image container\">\n <img\n className={style.image}\n src=\"https://static.coorpacademy.com/site/book.png\"\n alt=\"Book image\"\n />\n </div>\n <div className={style.middle}>\n <span className={style.title} data-name=\"review-banner-title\" aria-label=\"{title}\">\n {title}\n </span>\n <span\n className={style.subtitle}\n data-name=\"review-banner-subtitle\"\n aria-label=\"{subtitle}\"\n >\n {subtitle}\n </span>\n <ButtonLink {...buttonProps} className={style.cta} />\n </div>\n <div className={style.right} role=\"img\" aria-label=\"Rigth image container\">\n <img\n className={style.image}\n src=\"https://static.coorpacademy.com/site/dumbell.png\"\n alt=\"Dumbbell image\"\n />\n </div>\n </div>\n </div>\n </div>\n );\n});\n\nReviewBanner.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n cta: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string\n })\n};\n\nexport default ReviewBanner;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","names":["ReviewBanner","React","memo","props","title","subtitle","cta","buttonProps","type","style","root","container","banner","left","image","middle","right","propTypes","PropTypes","string","shape","onClick","func","label"],"sources":["../../../../src/molecule/dashboard/review-banner/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../../atom/button-link';\nimport style from './style.css';\n\nconst ReviewBanner = React.memo(function ReviewBanner(props) {\n const {title, subtitle, cta} = props;\n\n const buttonProps = {\n ...cta,\n type: 'primary'\n };\n\n return (\n <div className={style.root} data-name=\"start-review-banner\">\n <div className={style.container}>\n <div className={style.banner}>\n <div className={style.left} role=\"img\" aria-label=\"Left image container\">\n <img\n className={style.image}\n src=\"https://static.coorpacademy.com/site/book.png\"\n alt=\"Book image\"\n />\n </div>\n <div className={style.middle}>\n <span className={style.title} data-name=\"review-banner-title\" aria-label=\"{title}\">\n {title}\n </span>\n <span\n className={style.subtitle}\n data-name=\"review-banner-subtitle\"\n aria-label=\"{subtitle}\"\n >\n {subtitle}\n </span>\n <ButtonLink {...buttonProps} className={style.cta} />\n </div>\n <div className={style.right} role=\"img\" aria-label=\"Rigth image container\">\n <img\n className={style.image}\n src=\"https://static.coorpacademy.com/site/dumbell.png\"\n alt=\"Dumbbell image\"\n />\n </div>\n </div>\n </div>\n </div>\n );\n});\n\nReviewBanner.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n cta: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string\n })\n};\n\nexport default ReviewBanner;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,YAAY,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,YAAT,CAAsBG,KAAtB,EAA6B;EAC3D,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC;EAAlB,IAAyBH,KAA/B;;EAEA,MAAMI,WAAW,gBACZD,GADY;IAEfE,IAAI,EAAE;EAFS,EAAjB;;EAKA,oBACE;IAAK,SAAS,EAAEC,cAAA,CAAMC,IAAtB;IAA4B,aAAU;EAAtC,gBACE;IAAK,SAAS,EAAED,cAAA,CAAME;EAAtB,gBACE;IAAK,SAAS,EAAEF,cAAA,CAAMG;EAAtB,gBACE;IAAK,SAAS,EAAEH,cAAA,CAAMI,IAAtB;IAA4B,IAAI,EAAC,KAAjC;IAAuC,cAAW;EAAlD,gBACE;IACE,SAAS,EAAEJ,cAAA,CAAMK,KADnB;IAEE,GAAG,EAAC,+CAFN;IAGE,GAAG,EAAC;EAHN,EADF,CADF,eAQE;IAAK,SAAS,EAAEL,cAAA,CAAMM;EAAtB,gBACE;IAAM,SAAS,EAAEN,cAAA,CAAML,KAAvB;IAA8B,aAAU,qBAAxC;IAA8D,cAAW;EAAzE,GACGA,KADH,CADF,eAIE;IACE,SAAS,EAAEK,cAAA,CAAMJ,QADnB;IAEE,aAAU,wBAFZ;IAGE,cAAW;EAHb,GAKGA,QALH,CAJF,eAWE,6BAAC,mBAAD,eAAgBE,WAAhB;IAA6B,SAAS,EAAEE,cAAA,CAAMH;EAA9C,GAXF,CARF,eAqBE;IAAK,SAAS,EAAEG,cAAA,CAAMO,KAAtB;IAA6B,IAAI,EAAC,KAAlC;IAAwC,cAAW;EAAnD,gBACE;IACE,SAAS,EAAEP,cAAA,CAAMK,KADnB;IAEE,GAAG,EAAC,kDAFN;IAGE,GAAG,EAAC;EAHN,EADF,CArBF,CADF,CADF,CADF;AAmCD,CA3CoB,CAArB;;AA6CAd,YAAY,CAACiB,SAAb,2CAAyB;EACvBb,KAAK,EAAEc,kBAAA,CAAUC,MADM;EAEvBd,QAAQ,EAAEa,kBAAA,CAAUC,MAFG;EAGvBb,GAAG,EAAEY,kBAAA,CAAUE,KAAV,CAAgB;IACnBC,OAAO,EAAEH,kBAAA,CAAUI,IADA;IAEnBC,KAAK,EAAEL,kBAAA,CAAUC;EAFE,CAAhB;AAHkB,CAAzB;eASenB,Y"}
|
|
@@ -17,7 +17,7 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
const StartBattle = _react.default.memo(function StartBattle(props) {
|
|
20
|
+
const StartBattle = /*#__PURE__*/_react.default.memo(function StartBattle(props) {
|
|
21
21
|
const {
|
|
22
22
|
startBattleText,
|
|
23
23
|
becomeAChampionText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["StartBattle","React","memo","props","startBattleText","becomeAChampionText","challengeText","onClick","href","style","root","container","wrapper","start","leftFlashes","bigFlashLeft","smallFlashLeft","middle","becomeText","smallFlashLeftMobile","smallFlashRightMobile","button","rightFlashes","bigFlashRight","smallFlashRight","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","func"],"sources":["../../../../src/molecule/dashboard/start-battle/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyBigFlashRight as FlashRight,\n NovaCompositionCoorpacademyBigFlashLeft as FlashLeft\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../atom/provider';\nimport Link from '../../../atom/link';\nimport style from './style.css';\n\nconst StartBattle = React.memo(function StartBattle(props) {\n const {startBattleText, becomeAChampionText, challengeText, onClick, href} = props;\n\n return (\n <div className={style.root} data-name=\"start-battle\">\n <div className={style.container}>\n <div className={style.wrapper}>\n <div className={style.start}>\n <div className={style.leftFlashes}>\n <FlashLeft className={style.bigFlashLeft} />\n <FlashLeft className={style.smallFlashLeft} />\n </div>\n <div className={style.middle}>\n <div className={style.becomeText}>\n <FlashLeft className={style.smallFlashLeftMobile} />\n {becomeAChampionText}\n <FlashRight className={style.smallFlashRightMobile} />\n </div>\n <div className={style.challengeText}>{challengeText}</div>\n <Link className={style.button} onClick={onClick} href={href}>\n {startBattleText}\n </Link>\n </div>\n <div className={style.rightFlashes}>\n <FlashRight className={style.bigFlashRight} />\n <FlashRight className={style.smallFlashRight} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n});\n\nStartBattle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nStartBattle.propTypes = {\n startBattleText: PropTypes.string,\n becomeAChampionText: PropTypes.string,\n challengeText: PropTypes.string,\n onClick: PropTypes.func,\n href: PropTypes.string\n};\n\nexport default StartBattle;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAIA;;AACA;;AACA;;;;AAEA,MAAMA,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","names":["StartBattle","React","memo","props","startBattleText","becomeAChampionText","challengeText","onClick","href","style","root","container","wrapper","start","leftFlashes","bigFlashLeft","smallFlashLeft","middle","becomeText","smallFlashLeftMobile","smallFlashRightMobile","button","rightFlashes","bigFlashRight","smallFlashRight","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","func"],"sources":["../../../../src/molecule/dashboard/start-battle/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaCompositionCoorpacademyBigFlashRight as FlashRight,\n NovaCompositionCoorpacademyBigFlashLeft as FlashLeft\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../../atom/provider';\nimport Link from '../../../atom/link';\nimport style from './style.css';\n\nconst StartBattle = React.memo(function StartBattle(props) {\n const {startBattleText, becomeAChampionText, challengeText, onClick, href} = props;\n\n return (\n <div className={style.root} data-name=\"start-battle\">\n <div className={style.container}>\n <div className={style.wrapper}>\n <div className={style.start}>\n <div className={style.leftFlashes}>\n <FlashLeft className={style.bigFlashLeft} />\n <FlashLeft className={style.smallFlashLeft} />\n </div>\n <div className={style.middle}>\n <div className={style.becomeText}>\n <FlashLeft className={style.smallFlashLeftMobile} />\n {becomeAChampionText}\n <FlashRight className={style.smallFlashRightMobile} />\n </div>\n <div className={style.challengeText}>{challengeText}</div>\n <Link className={style.button} onClick={onClick} href={href}>\n {startBattleText}\n </Link>\n </div>\n <div className={style.rightFlashes}>\n <FlashRight className={style.bigFlashRight} />\n <FlashRight className={style.smallFlashRight} />\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n});\n\nStartBattle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nStartBattle.propTypes = {\n startBattleText: PropTypes.string,\n becomeAChampionText: PropTypes.string,\n challengeText: PropTypes.string,\n onClick: PropTypes.func,\n href: PropTypes.string\n};\n\nexport default StartBattle;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAIA;;AACA;;AACA;;;;AAEA,MAAMA,WAAW,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,WAAT,CAAqBG,KAArB,EAA4B;EAC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iBAAT,CAA2BF;AADR,CAA3B;AAIA1B,WAAW,CAAC6B,SAAZ,2CAAwB;EACtBzB,eAAe,EAAE0B,kBAAA,CAAUC,MADL;EAEtB1B,mBAAmB,EAAEyB,kBAAA,CAAUC,MAFT;EAGtBzB,aAAa,EAAEwB,kBAAA,CAAUC,MAHH;EAItBxB,OAAO,EAAEuB,kBAAA,CAAUE,IAJG;EAKtBxB,IAAI,EAAEsB,kBAAA,CAAUC;AALM,CAAxB;eAQe/B,W"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default DropDown;
|
|
2
|
+
declare function DropDown(props: any): JSX.Element;
|
|
3
|
+
declare namespace DropDown {
|
|
4
|
+
namespace propTypes {
|
|
5
|
+
const onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
|
+
const options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
7
|
+
name: PropTypes.Validator<string>;
|
|
8
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
9
|
+
selected: PropTypes.Requireable<boolean>;
|
|
10
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
11
|
+
}> | null | undefined)[]>;
|
|
12
|
+
const theme: PropTypes.Requireable<string>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
import PropTypes from "prop-types";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/molecule/questions/drop-down/index.js"],"names":[],"mappings":";AAMA,mDAcC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default FreeText;
|
|
2
|
+
declare function FreeText(props: any, legacyContext: any): JSX.Element;
|
|
3
|
+
declare namespace FreeText {
|
|
4
|
+
namespace contextTypes {
|
|
5
|
+
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
common: PropTypes.Requireable<{
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
}>;
|
|
9
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
11
|
+
logo: PropTypes.Requireable<any>;
|
|
12
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
13
|
+
login: PropTypes.Requireable<any>;
|
|
14
|
+
}>>;
|
|
15
|
+
icons: PropTypes.Requireable<{
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}>;
|
|
18
|
+
mod: PropTypes.Requireable<{
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
courses: PropTypes.Requireable<any[]>;
|
|
22
|
+
texts: PropTypes.Requireable<{
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>;
|
|
25
|
+
}>>;
|
|
26
|
+
}
|
|
27
|
+
const propTypes: {
|
|
28
|
+
placeholder: PropTypes.Requireable<string>;
|
|
29
|
+
value: PropTypes.Requireable<string>;
|
|
30
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
import PropTypes from "prop-types";
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/molecule/questions/free-text/index.js"],"names":[],"mappings":";AAOA,uEAkDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/free-text/test/fixtures/default.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-value-on-change.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/free-text/test/fixtures/with-value-on-change.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-value.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/free-text/test/fixtures/with-value.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/questions/free-text/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/mobile/draggable/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/mobile/slider/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/mobile/switch/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/mobile/template/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default QCM;
|
|
2
|
+
declare function QCM(props: any, legacyContext: any): JSX.Element;
|
|
3
|
+
declare namespace QCM {
|
|
4
|
+
namespace contextTypes {
|
|
5
|
+
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
common: PropTypes.Requireable<{
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
}>;
|
|
9
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
11
|
+
logo: PropTypes.Requireable<any>;
|
|
12
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
13
|
+
login: PropTypes.Requireable<any>;
|
|
14
|
+
}>>;
|
|
15
|
+
icons: PropTypes.Requireable<{
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}>;
|
|
18
|
+
mod: PropTypes.Requireable<{
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
courses: PropTypes.Requireable<any[]>;
|
|
22
|
+
texts: PropTypes.Requireable<{
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>;
|
|
25
|
+
}>>;
|
|
26
|
+
}
|
|
27
|
+
namespace propTypes {
|
|
28
|
+
const answers: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
29
|
+
title: PropTypes.Requireable<string>;
|
|
30
|
+
selected: PropTypes.Requireable<boolean>;
|
|
31
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
33
|
+
}> | null | undefined)[]>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
import PropTypes from "prop-types";
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/molecule/questions/qcm/index.js"],"names":[],"mappings":";AASA,kEAiDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arabic.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/qcm/test/fixtures/arabic.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/qcm/test/fixtures/default.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"short-answers.d.ts","sourceRoot":"","sources":["../../../../../../src/molecule/questions/qcm/test/fixtures/short-answers.js"],"names":[],"mappings":""}
|