@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
|
@@ -3,7 +3,7 @@ export declare const TYPE_IMAGE = "img";
|
|
|
3
3
|
export declare const TYPE_VIDEO = "video";
|
|
4
4
|
export declare const TYPE_AUDIO = "audio";
|
|
5
5
|
export declare const MediaViewPropTypes: {
|
|
6
|
-
media: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
media: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
7
7
|
type: PropTypes.Validator<string>;
|
|
8
8
|
id: PropTypes.Requireable<string>;
|
|
9
9
|
width: PropTypes.Requireable<string>;
|
|
@@ -43,10 +43,10 @@ export declare const MediaViewPropTypes: {
|
|
|
43
43
|
}> | PropTypes.InferProps<{
|
|
44
44
|
type: PropTypes.Validator<string>;
|
|
45
45
|
mediaUrl: PropTypes.Validator<string>;
|
|
46
|
-
}>>;
|
|
46
|
+
}> | null | undefined>>;
|
|
47
47
|
};
|
|
48
48
|
declare const propTypes: {
|
|
49
|
-
model: PropTypes.Validator<PropTypes.InferProps<{
|
|
49
|
+
model: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
50
50
|
type: PropTypes.Validator<string>;
|
|
51
51
|
answer: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
52
52
|
title: PropTypes.Validator<string>;
|
|
@@ -64,9 +64,9 @@ declare const propTypes: {
|
|
|
64
64
|
type: PropTypes.Requireable<string>;
|
|
65
65
|
name: PropTypes.Requireable<string>;
|
|
66
66
|
}> | null | undefined)[]>;
|
|
67
|
-
}
|
|
67
|
+
}>>>;
|
|
68
68
|
help: PropTypes.Requireable<string>;
|
|
69
|
-
media: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
|
+
media: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
70
70
|
type: PropTypes.Validator<string>;
|
|
71
71
|
id: PropTypes.Requireable<string>;
|
|
72
72
|
width: PropTypes.Requireable<string>;
|
|
@@ -106,7 +106,7 @@ declare const propTypes: {
|
|
|
106
106
|
}> | PropTypes.InferProps<{
|
|
107
107
|
type: PropTypes.Validator<string>;
|
|
108
108
|
mediaUrl: PropTypes.Validator<string>;
|
|
109
|
-
}>>;
|
|
109
|
+
}> | null | undefined>>;
|
|
110
110
|
};
|
|
111
111
|
declare type SelectOptions = {
|
|
112
112
|
name: string;
|
|
@@ -114,7 +114,7 @@ declare type SelectOptions = {
|
|
|
114
114
|
validOption: boolean;
|
|
115
115
|
value: string;
|
|
116
116
|
};
|
|
117
|
-
declare type Answer = {
|
|
117
|
+
export declare type Answer = {
|
|
118
118
|
title?: string;
|
|
119
119
|
'aria-label'?: string;
|
|
120
120
|
onClick?: () => void;
|
|
@@ -122,10 +122,10 @@ declare type Answer = {
|
|
|
122
122
|
selected?: boolean;
|
|
123
123
|
image?: string;
|
|
124
124
|
options?: SelectOptions[];
|
|
125
|
-
type
|
|
125
|
+
type?: 'text' | 'select';
|
|
126
126
|
name?: string;
|
|
127
127
|
};
|
|
128
|
-
export declare type
|
|
128
|
+
export declare type AnswerProps = {
|
|
129
129
|
model: {
|
|
130
130
|
type: 'qcmDrag' | 'qcm' | 'qcmGraphic' | 'freeText' | 'dropDown' | 'slider' | 'template';
|
|
131
131
|
answers?: Answer[];
|
|
@@ -137,7 +137,24 @@ export declare type Props = {
|
|
|
137
137
|
title?: string;
|
|
138
138
|
};
|
|
139
139
|
help: string;
|
|
140
|
-
media
|
|
140
|
+
media?: {
|
|
141
|
+
type: 'img' | 'audio' | 'video';
|
|
142
|
+
url?: string;
|
|
143
|
+
mediaUrl?: string;
|
|
144
|
+
mimeType?: string;
|
|
145
|
+
poster?: string;
|
|
146
|
+
videoId?: string;
|
|
147
|
+
_id?: string;
|
|
148
|
+
description?: string;
|
|
149
|
+
subtitles?: string[];
|
|
150
|
+
posters?: string[];
|
|
151
|
+
src?: string[];
|
|
152
|
+
onClick?: () => void;
|
|
153
|
+
onPlay?: () => void;
|
|
154
|
+
onPause?: () => void;
|
|
155
|
+
onResume?: () => void;
|
|
156
|
+
onEnded?: () => void;
|
|
157
|
+
};
|
|
141
158
|
};
|
|
142
159
|
export default propTypes;
|
|
143
160
|
//# sourceMappingURL=prop-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/answer/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,UAAU,UAAU,CAAC;AAmBlC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE9B,CAAC;AAqBF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEF,aAAK,aAAa,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/answer/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,UAAU,UAAU,CAAC;AAClC,eAAO,MAAM,UAAU,UAAU,CAAC;AAmBlC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;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AAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC;QAChC,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;QACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.js","names":["TYPE_IMAGE","TYPE_VIDEO","TYPE_AUDIO","isType","name","PropTypes","oneOf","videoPropType","shape","VideoPlayerPropTypes","type","isRequired","imgPropType","url","string","audioPropType","mediaUrl","MediaViewPropTypes","media","oneOfType","SelectOptionsPropTypes","selected","bool","validOption","value","AnswerPropTypes","title","onClick","func","onChange","image","options","arrayOf","propTypes","model","answer","help"],"sources":["../../../src/molecule/answer/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport VideoPlayerPropTypes from '../video-player/prop-types';\n\nexport const TYPE_IMAGE = 'img';\nexport const TYPE_VIDEO = 'video';\nexport const TYPE_AUDIO = 'audio';\n\nconst isType = (name: string) => PropTypes.oneOf([name]);\n\nconst videoPropType = PropTypes.shape({\n ...VideoPlayerPropTypes,\n type: isType(TYPE_VIDEO).isRequired\n});\n\nconst imgPropType = PropTypes.shape({\n type: isType(TYPE_IMAGE).isRequired,\n url: PropTypes.string.isRequired\n});\n\nconst audioPropType = PropTypes.shape({\n type: isType(TYPE_AUDIO).isRequired,\n mediaUrl: PropTypes.string.isRequired\n});\n\nexport const MediaViewPropTypes = {\n media: PropTypes.oneOfType([videoPropType, imgPropType, audioPropType])\n};\n\nconst SelectOptionsPropTypes = PropTypes.shape({\n name: PropTypes.string,\n selected: PropTypes.bool,\n validOption: PropTypes.bool,\n value: PropTypes.string\n});\n\nconst AnswerPropTypes = PropTypes.shape({\n title: PropTypes.string.isRequired,\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func,\n onChange: PropTypes.func,\n selected: PropTypes.bool,\n image: PropTypes.string,\n options: PropTypes.arrayOf(SelectOptionsPropTypes),\n type: PropTypes.oneOf(['text', 'select']),\n name: PropTypes.string\n});\n\nconst propTypes = {\n model: PropTypes.shape({\n type: PropTypes.oneOf([\n 'qcmDrag',\n 'qcm',\n 'qcmGraphic',\n 'freeText',\n 'dropDown',\n 'slider',\n 'template'\n ]).isRequired,\n answer: PropTypes.arrayOf(AnswerPropTypes)\n }).isRequired,\n help: PropTypes.string,\n media: MediaViewPropTypes.media\n};\n\ntype SelectOptions = {\n name: string;\n selected: boolean;\n validOption: boolean;\n value: string;\n};\n\
|
|
1
|
+
{"version":3,"file":"prop-types.js","names":["TYPE_IMAGE","TYPE_VIDEO","TYPE_AUDIO","isType","name","PropTypes","oneOf","videoPropType","shape","VideoPlayerPropTypes","type","isRequired","imgPropType","url","string","audioPropType","mediaUrl","MediaViewPropTypes","media","oneOfType","SelectOptionsPropTypes","selected","bool","validOption","value","AnswerPropTypes","title","onClick","func","onChange","image","options","arrayOf","propTypes","model","answer","help"],"sources":["../../../src/molecule/answer/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport VideoPlayerPropTypes from '../video-player/prop-types';\n\nexport const TYPE_IMAGE = 'img';\nexport const TYPE_VIDEO = 'video';\nexport const TYPE_AUDIO = 'audio';\n\nconst isType = (name: string) => PropTypes.oneOf([name]);\n\nconst videoPropType = PropTypes.shape({\n ...VideoPlayerPropTypes,\n type: isType(TYPE_VIDEO).isRequired\n});\n\nconst imgPropType = PropTypes.shape({\n type: isType(TYPE_IMAGE).isRequired,\n url: PropTypes.string.isRequired\n});\n\nconst audioPropType = PropTypes.shape({\n type: isType(TYPE_AUDIO).isRequired,\n mediaUrl: PropTypes.string.isRequired\n});\n\nexport const MediaViewPropTypes = {\n media: PropTypes.oneOfType([videoPropType, imgPropType, audioPropType])\n};\n\nconst SelectOptionsPropTypes = PropTypes.shape({\n name: PropTypes.string,\n selected: PropTypes.bool,\n validOption: PropTypes.bool,\n value: PropTypes.string\n});\n\nconst AnswerPropTypes = PropTypes.shape({\n title: PropTypes.string.isRequired,\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func,\n onChange: PropTypes.func,\n selected: PropTypes.bool,\n image: PropTypes.string,\n options: PropTypes.arrayOf(SelectOptionsPropTypes),\n type: PropTypes.oneOf(['text', 'select']),\n name: PropTypes.string\n});\n\nconst propTypes = {\n model: PropTypes.shape({\n type: PropTypes.oneOf([\n 'qcmDrag',\n 'qcm',\n 'qcmGraphic',\n 'freeText',\n 'dropDown',\n 'slider',\n 'template'\n ]).isRequired,\n answer: PropTypes.arrayOf(AnswerPropTypes)\n }).isRequired,\n help: PropTypes.string,\n media: MediaViewPropTypes.media\n};\n\ntype SelectOptions = {\n name: string;\n selected: boolean;\n validOption: boolean;\n value: string;\n};\n\nexport type Answer = {\n title?: string;\n 'aria-label'?: string;\n onClick?: () => void;\n onChange?: (value: string) => void;\n selected?: boolean;\n image?: string;\n options?: SelectOptions[];\n type?: 'text' | 'select';\n name?: string;\n};\n\nexport type AnswerProps = {\n model: {\n type: 'qcmDrag' | 'qcm' | 'qcmGraphic' | 'freeText' | 'dropDown' | 'slider' | 'template';\n answers?: Answer[];\n template?: string;\n onChange?: (value: string | number) => void;\n onSliderChange?: (value: number) => void;\n minLabel?: string;\n maxLabel?: string;\n title?: string;\n };\n help: string;\n media?: {\n type: 'img' | 'audio' | 'video';\n url?: string;\n mediaUrl?: string;\n mimeType?: string;\n poster?: string;\n videoId?: string;\n _id?: string;\n description?: string;\n subtitles?: string[];\n posters?: string[];\n src?: string[];\n onClick?: () => void;\n onPlay?: () => void;\n onPause?: () => void;\n onResume?: () => void;\n onEnded?: () => void;\n };\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;;;;;AAEO,MAAMA,UAAU,GAAG,KAAnB;;AACA,MAAMC,UAAU,GAAG,OAAnB;;AACA,MAAMC,UAAU,GAAG,OAAnB;;;AAEP,MAAMC,MAAM,GAAIC,IAAD,IAAkBC,kBAAA,CAAUC,KAAV,CAAgB,CAACF,IAAD,CAAhB,CAAjC;;AAEA,MAAMG,aAAa,GAAGF,kBAAA,CAAUG,KAAV,cACjBC,mBADiB;EAEpBC,IAAI,EAAEP,MAAM,CAACF,UAAD,CAAN,CAAmBU;AAFL,GAAtB;;AAKA,MAAMC,WAAW,GAAGP,kBAAA,CAAUG,KAAV,CAAgB;EAClCE,IAAI,EAAEP,MAAM,CAACH,UAAD,CAAN,CAAmBW,UADS;EAElCE,GAAG,EAAER,kBAAA,CAAUS,MAAV,CAAiBH;AAFY,CAAhB,CAApB;;AAKA,MAAMI,aAAa,GAAGV,kBAAA,CAAUG,KAAV,CAAgB;EACpCE,IAAI,EAAEP,MAAM,CAACD,UAAD,CAAN,CAAmBS,UADW;EAEpCK,QAAQ,EAAEX,kBAAA,CAAUS,MAAV,CAAiBH;AAFS,CAAhB,CAAtB;;AAKO,MAAMM,kBAAkB,GAAG;EAChCC,KAAK,EAAEb,kBAAA,CAAUc,SAAV,CAAoB,CAACZ,aAAD,EAAgBK,WAAhB,EAA6BG,aAA7B,CAApB;AADyB,CAA3B;;;AAIP,MAAMK,sBAAsB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1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/audio.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAad,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/default.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAYd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplateContextValues } from '../../../../template/app-review/template-context';
|
|
2
|
-
import {
|
|
2
|
+
import { AnswerProps } from '../../prop-types';
|
|
3
3
|
declare type Fixture = {
|
|
4
|
-
props:
|
|
4
|
+
props: AnswerProps;
|
|
5
5
|
mobileContext?: TemplateContextValues;
|
|
6
6
|
};
|
|
7
7
|
declare const fixture: Fixture;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-down.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/drop-down.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AAGvF,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"drop-down.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/drop-down.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AAGvF,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAI7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;IACnB,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAoBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-arabic.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-arabic.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAYd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-drag.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-drag.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAI7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,OAQd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-graphic.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-graphic.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAQd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-short-audio.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-audio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAwBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-short-video.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAyBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm-short.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm-short.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAYd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qcm.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/qcm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAYd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/range.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAIF,QAAA,MAAM,OAAO,EAAE,OAQd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplateContextValues } from '../../../../template/app-review/template-context';
|
|
2
|
-
import {
|
|
2
|
+
import { AnswerProps } from '../../prop-types';
|
|
3
3
|
declare type Fixture = {
|
|
4
|
-
props:
|
|
4
|
+
props: AnswerProps;
|
|
5
5
|
mobileContext?: TemplateContextValues;
|
|
6
6
|
};
|
|
7
7
|
declare const fixture: Fixture;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AAGvF,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../../src/molecule/answer/test/fixtures/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,qBAAqB,EAAC,MAAM,kDAAkD,CAAC;AAGvF,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,aAAK,OAAO,GAAG;IACb,KAAK,EAAE,WAAW,CAAC;IACnB,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAKF,QAAA,MAAM,OAAO,EAAE,OAsBd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../src/molecule/answer/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default Audio;
|
|
2
|
+
declare class Audio extends React.Component<any, any, any> {
|
|
3
|
+
static propTypes: {
|
|
4
|
+
description: PropTypes.Requireable<string>;
|
|
5
|
+
mediaUrl: PropTypes.Requireable<string>;
|
|
6
|
+
poster: PropTypes.Requireable<string>;
|
|
7
|
+
onPlay: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
+
};
|
|
9
|
+
static contextTypes: {
|
|
10
|
+
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
+
common: PropTypes.Requireable<{
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
}>;
|
|
14
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
16
|
+
logo: PropTypes.Requireable<any>;
|
|
17
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
18
|
+
login: PropTypes.Requireable<any>;
|
|
19
|
+
}>>;
|
|
20
|
+
icons: PropTypes.Requireable<{
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
}>;
|
|
23
|
+
mod: PropTypes.Requireable<{
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
courses: PropTypes.Requireable<any[]>;
|
|
27
|
+
texts: PropTypes.Requireable<{
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
}>;
|
|
30
|
+
}>>;
|
|
31
|
+
};
|
|
32
|
+
constructor(props: any, context: any);
|
|
33
|
+
handlePlay(e: any): void;
|
|
34
|
+
audioElement: any;
|
|
35
|
+
setAudio: (element: any) => void;
|
|
36
|
+
shouldComponentUpdate(nextProps: any): boolean;
|
|
37
|
+
componentDidUpdate(): void;
|
|
38
|
+
render(): JSX.Element;
|
|
39
|
+
}
|
|
40
|
+
import React from "react";
|
|
41
|
+
import PropTypes from "prop-types";
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/audio/index.js"],"names":[],"mappings":";AAQA;IACE;;;;;MAKE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,sCAKC;IAeD,yBAGC;IApBC,kBAAwB;IAa1B,iCAEE;IAXF,+CAGC;IAED,2BAEC;IAWD,sBA+BC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.native.d.ts","sourceRoot":"","sources":["../../../../src/molecule/brand-logo/test/fixtures.native.ts"],"names":[],"mappings":""}
|
|
@@ -134,7 +134,7 @@ CardBackground.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
134
134
|
empty: _propTypes.default.bool,
|
|
135
135
|
'aria-label': _propTypes.default.string
|
|
136
136
|
} : {};
|
|
137
|
-
const Card = (0, _react.memo)(function Card(props, context) {
|
|
137
|
+
const Card = /*#__PURE__*/(0, _react.memo)(function Card(props, context) {
|
|
138
138
|
const {
|
|
139
139
|
skin
|
|
140
140
|
} = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","ariaLabel","skin","externalContent","isExternalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","classnames","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","memo","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","useMemo","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf","Favorite","Selectable"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEC,cAAA,CAAMD;AAFA,CAAf;;;AAKP,MAAME,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,KAAd;EAAqB,cAAcC;AAAnC,CAAD,EAAgD;EAACC;AAAD,CAAhD,KAA2D;EAChF,MAAMC,eAAe,GAAG,IAAAC,kCAAA,EAAkBN,IAAlB,CAAxB;EACA,MAAMO,YAAY,GAAG,mBAAI,gBAAJ,EAAsBH,IAAtB,CAArB;EACA,MAAMI,UAAU,GAAG,mBAAI,cAAJ,EAAoBJ,IAApB,CAAnB;;EAEA,IAAIC,eAAe,IAAII,uCAAA,CAAuBT,IAAvB,CAAvB,EAAqD;IACnD,MAAMU,QAAQ,GAAGD,uCAAA,CAAuBT,IAAvB,EAA6BW,IAA9C;IACA,MAAMC,SAAS,GAAGH,uCAAA,CAAuBT,IAAvB,EAA6Ba,KAA/C;;IACA,MAAMC,cAAc,gBAClB;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,kBAAA,CAAUkD,KAAV,CAAgBI,qBAAA,CAAavD,SAA7B,CAjBC;EAkBfwB,aAAa,EAAEgC,oBAAA,CAAgBxD,SAAhB,CAA0BwB,aAlB1B;EAmBfC,UAAU,EAAE+B,oBAAA,CAAgBxD,SAAhB,CAA0ByB,UAnBvB;EAoBfC,KAAK,EAAEzB,kBAAA,CAAUwD,KAAV,CAAgB,oBAAK7F,MAAL,CAAhB,CApBQ;EAqBf,cAAcqC,kBAAA,CAAUC,MArBT;EAsBf,yBAAyBD,kBAAA,CAAUC,MAtBpB;EAuBf,uBAAuBwD,iBAAA,CAAS1D,SAAT,CAAmB,YAAnB,CAvBR;EAwBf,yBAAyB2D,mBAAA,CAAW3D,SAAX,CAAqB,YAArB,CAxBV;EAyBf,uBAAuBoD,iBAAA,CAASpD,SAAT,CAAmB,YAAnB,CAzBR;EA0Bf,oBAAoBC,kBAAA,CAAUC,MA1Bf;EA2Bf,uBAAuBD,kBAAA,CAAUC,MA3BlB;EA4Bf,2BAA2BsD,oBAAA,CAAgBxD,SAAhB,CAA0B,YAA1B;AA5BZ,CAAjB;eA8BeI,I"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["THEMES","default","coorpmanager","style","CardBackground","type","image","empty","ariaLabel","skin","externalContent","isExternalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","externalIconCircleWrapper","externalIcon","_backgroundIcon","classnames","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","memo","props","context","badge","adaptiv","disabled","hidden","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","isSelected","notification","badgeCategory","badgeLabel","theme","cardArialabel","backgroundAriaLabel","favoriteAriaLabel","selectableAriaLabel","customerAriaLabel","badgeAriaLabel","disabledArialabel","cardContentLabelAriaLabel","cardStyle","chapter","course","lazy","grid","handleClick","useMemo","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification","CardContentInfo","oneOf","Favorite","Selectable"],"sources":["../../../src/molecule/card/index.js"],"sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick, keys} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Selectable from './selectable';\nimport Notification from './notification';\nimport style from './style.css';\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst CardBackground = ({type, image, empty, 'aria-label': ariaLabel}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n aria-label={ariaLabel}\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled: hidden = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n isSelected,\n notification,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': cardArialabel,\n 'background-aria-label': backgroundAriaLabel,\n 'favorite-aria-label': favoriteAriaLabel,\n 'selectable-aria-label': selectableAriaLabel,\n 'customer-aria-label': customerAriaLabel,\n 'badge-aria-label': badgeAriaLabel,\n 'disabled-aria-label': disabledArialabel,\n 'card-content-aria-label': cardContentLabelAriaLabel\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n THEMES[theme],\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const disabled = hidden && (!isSelected || isUndefined(isSelected));\n const handleClick = useMemo(() => e => !disabled && onClick(e), [disabled, onClick]);\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n aria-label={cardArialabel}\n >\n <CardBackground type={type} image={image} empty={empty} aria-label={backgroundAriaLabel} />\n {isUndefined(isSelected) && !isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n aria-label={favoriteAriaLabel}\n />\n ) : null}\n <Selectable isSelected={isSelected} hidden={hidden} aria-label={selectableAriaLabel} />\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n theme={theme}\n type={type}\n disabled={disabled}\n aria-label={customerAriaLabel}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n badgeCategory={badgeCategory}\n badgeLabel={badgeLabel}\n theme={theme}\n aria-label={cardContentLabelAriaLabel}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle} aria-label={badgeAriaLabel}>\n {badge}\n </div>\n ) : null}\n {disabled ? (\n <div className={style.lockWrapper} aria-label={disabledArialabel}>\n {lock}\n </div>\n ) : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n isSelected: PropTypes.bool,\n notification: PropTypes.shape(Notification.propTypes),\n badgeCategory: CardContentInfo.propTypes.badgeCategory,\n badgeLabel: CardContentInfo.propTypes.badgeLabel,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.string,\n 'background-aria-label': PropTypes.string,\n 'favorite-aria-label': Favorite.propTypes['aria-label'],\n 'selectable-aria-label': Selectable.propTypes['aria-label'],\n 'customer-aria-label': Customer.propTypes['aria-label'],\n 'badge-aria-label': PropTypes.string,\n 'disabled-aria-label': PropTypes.string,\n 'card-content-aria-label': CardContentInfo.propTypes['aria-label']\n};\nexport default Card;\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEC,cAAA,CAAMD;AAFA,CAAf;;;AAKP,MAAME,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,KAAd;EAAqB,cAAcC;AAAnC,CAAD,EAAgD;EAACC;AAAD,CAAhD,KAA2D;EAChF,MAAMC,eAAe,GAAG,IAAAC,kCAAA,EAAkBN,IAAlB,CAAxB;EACA,MAAMO,YAAY,GAAG,mBAAI,gBAAJ,EAAsBH,IAAtB,CAArB;EACA,MAAMI,UAAU,GAAG,mBAAI,cAAJ,EAAoBJ,IAApB,CAAnB;;EAEA,IAAIC,eAAe,IAAII,uCAAA,CAAuBT,IAAvB,CAAvB,EAAqD;IACnD,MAAMU,QAAQ,GAAGD,uCAAA,CAAuBT,IAAvB,EAA6BW,IAA9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EpB,kBAAA,CAAUqD,IAfZ;EAgBfhC,UAAU,EAAErB,kBAAA,CAAUE,IAhBP;EAiBfoB,YAAY,EAAEtB,kBAAA,CAAUkD,KAAV,CAAgBI,qBAAA,CAAavD,SAA7B,CAjBC;EAkBfwB,aAAa,EAAEgC,oBAAA,CAAgBxD,SAAhB,CAA0BwB,aAlB1B;EAmBfC,UAAU,EAAE+B,oBAAA,CAAgBxD,SAAhB,CAA0ByB,UAnBvB;EAoBfC,KAAK,EAAEzB,kBAAA,CAAUwD,KAAV,CAAgB,oBAAK7F,MAAL,CAAhB,CApBQ;EAqBf,cAAcqC,kBAAA,CAAUC,MArBT;EAsBf,yBAAyBD,kBAAA,CAAUC,MAtBpB;EAuBf,uBAAuBwD,iBAAA,CAAS1D,SAAT,CAAmB,YAAnB,CAvBR;EAwBf,yBAAyB2D,mBAAA,CAAW3D,SAAX,CAAqB,YAArB,CAxBV;EAyBf,uBAAuBoD,iBAAA,CAASpD,SAAT,CAAmB,YAAnB,CAzBR;EA0Bf,oBAAoBC,kBAAA,CAAUC,MA1Bf;EA2Bf,uBAAuBD,kBAAA,CAAUC,MA3BlB;EA4Bf,2BAA2BsD,oBAAA,CAAgBxD,SAAhB,CAA0B,YAA1B;AA5BZ,CAAjB;eA8BeI,I"}
|
|
@@ -1,56 +1,7 @@
|
|
|
1
1
|
export default CMPopin;
|
|
2
2
|
declare function CMPopin(props: any): JSX.Element;
|
|
3
3
|
declare namespace CMPopin {
|
|
4
|
-
|
|
5
|
-
const content: PropTypes.Requireable<string>;
|
|
6
|
-
const mode: PropTypes.Requireable<string>;
|
|
7
|
-
const header: PropTypes.Requireable<string>;
|
|
8
|
-
const firstButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
|
-
label: PropTypes.Requireable<string>;
|
|
10
|
-
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
12
|
-
largeButton: PropTypes.Requireable<boolean>;
|
|
13
|
-
type: PropTypes.Requireable<string>;
|
|
14
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
15
|
-
}>>;
|
|
16
|
-
const secondButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
-
label: PropTypes.Requireable<string>;
|
|
18
|
-
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
type: PropTypes.Requireable<string>;
|
|
20
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
21
|
-
largeButton: PropTypes.Requireable<boolean>;
|
|
22
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
23
|
-
}>>;
|
|
24
|
-
const thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
|
-
label: PropTypes.Requireable<string>;
|
|
26
|
-
handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
type: PropTypes.Requireable<string>;
|
|
28
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
29
|
-
largeButton: PropTypes.Requireable<boolean>;
|
|
30
|
-
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
31
|
-
}>>;
|
|
32
|
-
const onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
-
const icon: PropTypes.Requireable<string>;
|
|
34
|
-
const backgroundImageUrl: PropTypes.Requireable<string>;
|
|
35
|
-
const descriptionText: PropTypes.Requireable<string>;
|
|
36
|
-
const cookieTitle: PropTypes.Requireable<string>;
|
|
37
|
-
const descriptionBtnTxt: PropTypes.Requireable<string>;
|
|
38
|
-
const listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
39
|
-
title: PropTypes.Requireable<string>;
|
|
40
|
-
name: PropTypes.Requireable<string>;
|
|
41
|
-
id: PropTypes.Requireable<string>;
|
|
42
|
-
value: PropTypes.Requireable<boolean>;
|
|
43
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
44
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
-
description: PropTypes.Requireable<string>;
|
|
46
|
-
modified: PropTypes.Requireable<boolean>;
|
|
47
|
-
titlePosition: PropTypes.Requireable<string>;
|
|
48
|
-
theme: PropTypes.Requireable<string>;
|
|
49
|
-
details: PropTypes.Requireable<string>;
|
|
50
|
-
'data-name': PropTypes.Requireable<string>;
|
|
51
|
-
requiredSelection: PropTypes.Requireable<boolean>;
|
|
52
|
-
}> | null | undefined)[]>;
|
|
53
|
-
}
|
|
4
|
+
export { propTypes };
|
|
54
5
|
}
|
|
55
|
-
import
|
|
6
|
+
import propTypes from "./types";
|
|
56
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,8 +5,6 @@ exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _react = _interopRequireDefault(require("react"));
|
|
7
7
|
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
8
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
11
9
|
|
|
12
10
|
var _map = _interopRequireDefault(require("lodash/fp/map"));
|
|
@@ -19,6 +17,8 @@ var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
|
|
|
19
17
|
|
|
20
18
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
21
19
|
|
|
20
|
+
var _types = _interopRequireDefault(require("./types"));
|
|
21
|
+
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
24
|
const CMPopin = props => {
|
|
@@ -180,42 +180,7 @@ const CMPopin = props => {
|
|
|
180
180
|
})) : null)));
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
CMPopin.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
184
|
-
content: _propTypes.default.string,
|
|
185
|
-
mode: _propTypes.default.oneOf(['alert', 'information', 'cookie']),
|
|
186
|
-
header: _propTypes.default.string,
|
|
187
|
-
firstButton: _propTypes.default.shape({
|
|
188
|
-
label: _propTypes.default.string,
|
|
189
|
-
handleOnclick: _propTypes.default.func,
|
|
190
|
-
'aria-label': _propTypes.default.string,
|
|
191
|
-
largeButton: _propTypes.default.bool,
|
|
192
|
-
type: _propTypes.default.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),
|
|
193
|
-
customStyle: _buttonLink.default.propTypes.customStyle
|
|
194
|
-
}),
|
|
195
|
-
secondButton: _propTypes.default.shape({
|
|
196
|
-
label: _propTypes.default.string,
|
|
197
|
-
handleOnclick: _propTypes.default.func,
|
|
198
|
-
type: _propTypes.default.oneOf(['dangerous', 'primary', 'secondary']),
|
|
199
|
-
'aria-label': _propTypes.default.string,
|
|
200
|
-
largeButton: _propTypes.default.bool,
|
|
201
|
-
customStyle: _buttonLink.default.propTypes.customStyle
|
|
202
|
-
}),
|
|
203
|
-
thirdButton: _propTypes.default.shape({
|
|
204
|
-
label: _propTypes.default.string,
|
|
205
|
-
handleOnclick: _propTypes.default.func,
|
|
206
|
-
type: _propTypes.default.oneOf(['dangerous', 'primary', 'secondary']),
|
|
207
|
-
'aria-label': _propTypes.default.string,
|
|
208
|
-
largeButton: _propTypes.default.bool,
|
|
209
|
-
customStyle: _buttonLink.default.propTypes.customStyle
|
|
210
|
-
}),
|
|
211
|
-
onClose: _propTypes.default.func,
|
|
212
|
-
icon: _propTypes.default.string,
|
|
213
|
-
backgroundImageUrl: _propTypes.default.string,
|
|
214
|
-
descriptionText: _propTypes.default.string,
|
|
215
|
-
cookieTitle: _propTypes.default.string,
|
|
216
|
-
descriptionBtnTxt: _propTypes.default.string,
|
|
217
|
-
listBtnSwicth: _propTypes.default.arrayOf(_propTypes.default.shape(_inputSwitch.default.propTypes))
|
|
218
|
-
} : {};
|
|
183
|
+
CMPopin.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
|
|
219
184
|
var _default = CMPopin;
|
|
220
185
|
exports.default = _default;
|
|
221
186
|
//# sourceMappingURL=index.js.map
|