@coorpacademy/components 11.33.2-alpha.4 → 11.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/autocomplete/index.js +2 -4
- package/es/atom/autocomplete/index.js.map +1 -1
- package/es/atom/avatar/index.js +0 -2
- package/es/atom/avatar/index.js.map +1 -1
- package/es/atom/battle-opponent/index.js +7 -11
- package/es/atom/battle-opponent/index.js.map +1 -1
- package/es/atom/battle-opponent/prop-types.js.map +1 -1
- package/es/atom/button/index.js +1 -10
- package/es/atom/button/index.js.map +1 -1
- package/es/atom/button/index.native.js +2 -5
- package/es/atom/button/index.native.js.map +1 -1
- package/es/atom/button-link/index.js +3 -13
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/button-link-icon/index.js +3 -13
- package/es/atom/button-link-icon/index.js.map +1 -1
- package/es/atom/button-menu/index.js +3 -7
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/types.js.map +1 -1
- package/es/atom/card-image-preview/index.js +0 -3
- package/es/atom/card-image-preview/index.js.map +1 -1
- package/es/atom/catalog-section/index.js +0 -2
- package/es/atom/catalog-section/index.js.map +1 -1
- package/es/atom/centered-text/index.js +0 -2
- package/es/atom/centered-text/index.js.map +1 -1
- package/es/atom/checkbox/index.js +1 -5
- package/es/atom/checkbox/index.js.map +1 -1
- package/es/atom/checkbox-with-title/index.js +0 -4
- package/es/atom/checkbox-with-title/index.js.map +1 -1
- package/es/atom/chip/index.js +4 -3
- package/es/atom/chip/index.js.map +1 -1
- package/es/atom/chips/index.js +1 -2
- package/es/atom/chips/index.js.map +1 -1
- package/es/atom/choice/index.native.js +2 -11
- package/es/atom/choice/index.native.js.map +1 -1
- package/es/atom/circular-progress-bar/index.js +0 -3
- package/es/atom/circular-progress-bar/index.js.map +1 -1
- package/es/atom/circular-progress-bar/types.js.map +1 -1
- package/es/atom/clue/index.js +0 -15
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/content-badge/index.js +0 -2
- package/es/atom/content-badge/index.js.map +1 -1
- package/es/atom/cta/index.js +0 -7
- package/es/atom/cta/index.js.map +1 -1
- package/es/atom/cta/prop-types.js.map +1 -1
- package/es/atom/difficulty-level/index.js +0 -7
- package/es/atom/difficulty-level/index.js.map +1 -1
- package/es/atom/drag-and-drop/index.js +1 -18
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/empty-search-result/index.js +0 -2
- package/es/atom/empty-search-result/index.js.map +1 -1
- package/es/atom/gradient/index.native.js +0 -7
- package/es/atom/gradient/index.native.js.map +1 -1
- package/es/atom/header-back-button/index.native.js +0 -6
- package/es/atom/header-back-button/index.native.js.map +1 -1
- package/es/atom/header-back-icon/index.native.js +0 -2
- package/es/atom/header-back-icon/index.native.js.map +1 -1
- package/es/atom/html/index.native.js +18 -15
- package/es/atom/html/index.native.js.map +1 -1
- package/es/atom/icon/index.js +4 -2
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/image-background/index.native.js +1 -10
- package/es/atom/image-background/index.native.js.map +1 -1
- package/es/atom/input-checkbox/index.js +0 -4
- package/es/atom/input-checkbox/index.js.map +1 -1
- package/es/atom/input-color/index.js +0 -2
- package/es/atom/input-color/index.js.map +1 -1
- package/es/atom/input-doublestep/index.js +3 -16
- package/es/atom/input-doublestep/index.js.map +1 -1
- package/es/atom/input-file-draggable/index.js +3 -6
- package/es/atom/input-file-draggable/index.js.map +1 -1
- package/es/atom/input-html/index.js +0 -4
- package/es/atom/input-html/index.js.map +1 -1
- package/es/atom/input-html/input-preview.js +2 -3
- package/es/atom/input-html/input-preview.js.map +1 -1
- package/es/atom/input-readonly/index.js +0 -2
- package/es/atom/input-readonly/index.js.map +1 -1
- package/es/atom/input-search/index.js +0 -2
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-switch/index.js +1 -11
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-text/index.js +2 -3
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text-with-title/index.js +2 -3
- package/es/atom/input-text-with-title/index.js.map +1 -1
- package/es/atom/input-textarea/index.js +2 -3
- package/es/atom/input-textarea/index.js.map +1 -1
- package/es/atom/label/index.js +0 -2
- package/es/atom/label/index.js.map +1 -1
- package/es/atom/life/index.js +0 -7
- package/es/atom/life/index.js.map +1 -1
- package/es/atom/link/index.js +3 -6
- package/es/atom/link/index.js.map +1 -1
- package/es/atom/loader/index.js +0 -2
- package/es/atom/loader/index.js.map +1 -1
- package/es/atom/loader/index.native.js +2 -12
- package/es/atom/loader/index.native.js.map +1 -1
- package/es/atom/lottie-wrapper/index.js +6 -14
- package/es/atom/lottie-wrapper/index.js.map +1 -1
- package/es/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/es/atom/notification/index.js +0 -2
- package/es/atom/notification/index.js.map +1 -1
- package/es/atom/picture/index.js +1 -9
- package/es/atom/picture/index.js.map +1 -1
- package/es/atom/picture-background/index.js +0 -2
- package/es/atom/picture-background/index.js.map +1 -1
- package/es/atom/promo-code/index.js +0 -2
- package/es/atom/promo-code/index.js.map +1 -1
- package/es/atom/provider/index.js +2 -20
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/provider/web-context.js +0 -4
- package/es/atom/provider/web-context.js.map +1 -1
- package/es/atom/radio-group/index.js +1 -9
- package/es/atom/radio-group/index.js.map +1 -1
- package/es/atom/radio-group/item.js +0 -7
- package/es/atom/radio-group/item.js.map +1 -1
- package/es/atom/radio-with-title/index.js +1 -7
- package/es/atom/radio-with-title/index.js.map +1 -1
- package/es/atom/radio-with-title/types.js.map +1 -1
- package/es/atom/range/handle.js +11 -18
- package/es/atom/range/handle.js.map +1 -1
- package/es/atom/range/index.js +2 -22
- package/es/atom/range/index.js.map +1 -1
- package/es/atom/resource-miniature/index.js +2 -6
- package/es/atom/resource-miniature/index.js.map +1 -1
- package/es/atom/review-presentation/index.js +5 -8
- package/es/atom/review-presentation/index.js.map +1 -1
- package/es/atom/review-presentation/index.native.js +3 -10
- package/es/atom/review-presentation/index.native.js.map +1 -1
- package/es/atom/review-presentation/prop-types.js.map +1 -1
- package/es/atom/select/index.js +9 -12
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select-icon/index.js +0 -5
- package/es/atom/select-icon/index.js.map +1 -1
- package/es/atom/select-modal/index.native.js +4 -11
- package/es/atom/select-modal/index.native.js.map +1 -1
- package/es/atom/slide/index.js +1 -4
- package/es/atom/slide/index.js.map +1 -1
- package/es/atom/social-link/index.js +0 -2
- package/es/atom/social-link/index.js.map +1 -1
- package/es/atom/space/index.native.js +0 -2
- package/es/atom/space/index.native.js.map +1 -1
- package/es/atom/spinner/index.js +0 -2
- package/es/atom/spinner/index.js.map +1 -1
- package/es/atom/status-item/index.js +1 -13
- package/es/atom/status-item/index.js.map +1 -1
- package/es/atom/status-item/index.native.js +0 -14
- package/es/atom/status-item/index.native.js.map +1 -1
- package/es/atom/status-item/types.js.map +1 -1
- package/es/atom/tab/index.js +0 -2
- package/es/atom/tab/index.js.map +1 -1
- package/es/atom/tab-content/index.js +0 -2
- package/es/atom/tab-content/index.js.map +1 -1
- package/es/atom/tag/index.js +2 -3
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/text/index.native.js +2 -3
- package/es/atom/text/index.native.js.map +1 -1
- package/es/atom/title/index.js +1 -17
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/title/types.js.map +1 -1
- package/es/atom/tooltip/index.js +3 -9
- package/es/atom/tooltip/index.js.map +1 -1
- package/es/atom/video-upload/index.js +2 -3
- package/es/atom/video-upload/index.js.map +1 -1
- package/es/atom/wizard-steps/index.js +0 -2
- package/es/atom/wizard-steps/index.js.map +1 -1
- package/es/globals.d.js.map +1 -1
- package/es/hoc/animation/index.js +0 -11
- package/es/hoc/animation/index.js.map +1 -1
- package/es/hoc/animation-scheduler/index.js +0 -18
- package/es/hoc/animation-scheduler/index.js.map +1 -1
- package/es/hoc/modal/index.native.js +0 -6
- package/es/hoc/modal/index.native.js.map +1 -1
- package/es/hoc/modal/select/index.native.js +0 -10
- package/es/hoc/modal/select/index.native.js.map +1 -1
- package/es/hoc/modal/select-item/index.native.js +2 -9
- package/es/hoc/modal/select-item/index.native.js.map +1 -1
- package/es/hoc/swapper/index.js +0 -6
- package/es/hoc/swapper/index.js.map +1 -1
- package/es/hoc/touchable/index.native.js +3 -8
- package/es/hoc/touchable/index.native.js.map +1 -1
- package/es/hoc/transition/child-prop-types.js.map +1 -1
- package/es/hoc/transition/index.js +0 -4
- package/es/hoc/transition/index.js.map +1 -1
- package/es/hoc/transition/transition-prop-types.js.map +1 -1
- package/es/index.js.map +1 -1
- package/es/molecule/add-to-my-list/index.js +0 -7
- package/es/molecule/add-to-my-list/index.js.map +1 -1
- package/es/molecule/answer/index.js +1 -20
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/answer/index.native.js +0 -11
- package/es/molecule/answer/index.native.js.map +1 -1
- package/es/molecule/answer/prop-types.js +2 -3
- package/es/molecule/answer/prop-types.js.map +1 -1
- package/es/molecule/audio/index.js +2 -12
- package/es/molecule/audio/index.js.map +1 -1
- package/es/molecule/banner/index.js +0 -11
- package/es/molecule/banner/index.js.map +1 -1
- package/es/molecule/base-modal/index.js +5 -18
- package/es/molecule/base-modal/index.js.map +1 -1
- package/es/molecule/battle-opponent-list/index.js +1 -4
- package/es/molecule/battle-opponent-list/index.js.map +1 -1
- package/es/molecule/battle-opponent-list/prop-types.js.map +1 -1
- package/es/molecule/battle-request/index.js +2 -6
- package/es/molecule/battle-request/index.js.map +1 -1
- package/es/molecule/brand-card/description.js +0 -2
- package/es/molecule/brand-card/description.js.map +1 -1
- package/es/molecule/brand-card/index.js +0 -2
- package/es/molecule/brand-card/index.js.map +1 -1
- package/es/molecule/brand-card-create/index.js +0 -2
- package/es/molecule/brand-card-create/index.js.map +1 -1
- package/es/molecule/brand-create-form/index.js +0 -2
- package/es/molecule/brand-create-form/index.js.map +1 -1
- package/es/molecule/brand-download-box/index.js +0 -4
- package/es/molecule/brand-download-box/index.js.map +1 -1
- package/es/molecule/brand-form-group/index.js +45 -55
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-logo/index.native.js +2 -3
- package/es/molecule/brand-logo/index.native.js.map +1 -1
- package/es/molecule/brand-tabs/index.js +0 -4
- package/es/molecule/brand-tabs/index.js.map +1 -1
- package/es/molecule/brand-upload-box/index.js +0 -11
- package/es/molecule/brand-upload-box/index.js.map +1 -1
- package/es/molecule/breadcrumbs/index.js +0 -6
- package/es/molecule/breadcrumbs/index.js.map +1 -1
- package/es/molecule/bulk-infos/index.js +1 -5
- package/es/molecule/bulk-infos/index.js.map +1 -1
- package/es/molecule/bulk-infos/types.js.map +1 -1
- package/es/molecule/bulk-progress-bar/index.js +0 -6
- package/es/molecule/bulk-progress-bar/index.js.map +1 -1
- package/es/molecule/bulk-progress-bar/types.js.map +1 -1
- package/es/molecule/bullet-point-menu-button/index.js +0 -3
- package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/es/molecule/bullet-point-menu-button/types.js.map +1 -1
- package/es/molecule/card/customer.js +0 -2
- package/es/molecule/card/customer.js.map +1 -1
- package/es/molecule/card/favorite.js +8 -13
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/card/index.js +3 -22
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/notification.js +0 -5
- package/es/molecule/card/notification.js.map +1 -1
- package/es/molecule/card/selectable.js +0 -2
- package/es/molecule/card/selectable.js.map +1 -1
- package/es/molecule/card-congrats/index.native.js +0 -6
- package/es/molecule/card-congrats/index.native.js.map +1 -1
- package/es/molecule/card-congrats/types.js.map +1 -1
- package/es/molecule/card-content/index.js +2 -13
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-with-button/index.js +0 -6
- package/es/molecule/card-with-button/index.js.map +1 -1
- package/es/molecule/certification-card/index.js +0 -2
- package/es/molecule/certification-card/index.js.map +1 -1
- package/es/molecule/cm-popin/index.js +4 -14
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/index.native.js +0 -6
- package/es/molecule/cm-popin/index.native.js.map +1 -1
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/cookie-banner/index.js +0 -4
- package/es/molecule/cookie-banner/index.js.map +1 -1
- package/es/molecule/coorp-manager-roles/index.js +2 -3
- package/es/molecule/coorp-manager-roles/index.js.map +1 -1
- package/es/molecule/coorpmanager-base-banner/index.js +4 -4
- package/es/molecule/coorpmanager-base-banner/index.js.map +1 -1
- package/es/molecule/course-section/index.js +0 -2
- package/es/molecule/course-section/index.js.map +1 -1
- package/es/molecule/course-sections/index.js +2 -4
- package/es/molecule/course-sections/index.js.map +1 -1
- package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +12 -57
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/es/molecule/dashboard/learning-profile-banner/index.js +3 -3
- package/es/molecule/dashboard/learning-profile-banner/index.js.map +1 -1
- package/es/molecule/dashboard/news-list/index.js.map +1 -1
- package/es/molecule/dashboard/review-banner/index.js +3 -3
- package/es/molecule/dashboard/review-banner/index.js.map +1 -1
- package/es/molecule/dashboard/start-battle/index.js.map +1 -1
- package/es/molecule/discipline-associated-skills/index.js +0 -5
- package/es/molecule/discipline-associated-skills/index.js.map +1 -1
- package/es/molecule/discipline-cta/index.js +0 -4
- package/es/molecule/discipline-cta/index.js.map +1 -1
- package/es/molecule/discipline-header/index.js +6 -13
- package/es/molecule/discipline-header/index.js.map +1 -1
- package/es/molecule/discipline-partners/index.js +0 -11
- package/es/molecule/discipline-partners/index.js.map +1 -1
- package/es/molecule/discipline-scope/index.js +0 -2
- package/es/molecule/discipline-scope/index.js.map +1 -1
- package/es/molecule/drag-and-drop/index.js +3 -5
- package/es/molecule/drag-and-drop/index.js.map +1 -1
- package/es/molecule/drag-and-drop/overlay.js.map +1 -1
- package/es/molecule/drag-and-drop/placeholder.js.map +1 -1
- package/es/molecule/drag-and-drop/upload-report.js +3 -15
- package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.js +0 -4
- package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/es/molecule/draggable/index.js +0 -4
- package/es/molecule/draggable/index.js.map +1 -1
- package/es/molecule/draggable-list/index.js +1 -4
- package/es/molecule/draggable-list/index.js.map +1 -1
- package/es/molecule/errors-table/index.js +2 -5
- package/es/molecule/errors-table/index.js.map +1 -1
- package/es/molecule/errors-table/types.js.map +1 -1
- package/es/molecule/expandable-item/index.js +0 -2
- package/es/molecule/expandable-item/index.js.map +1 -1
- package/es/molecule/expandable-item/types.js.map +1 -1
- package/es/molecule/expandable-list/index.js +0 -2
- package/es/molecule/expandable-list/index.js.map +1 -1
- package/es/molecule/expandable-list/types.js.map +1 -1
- package/es/molecule/expandible-actionable-table/index.js +8 -25
- package/es/molecule/expandible-actionable-table/index.js.map +1 -1
- package/es/molecule/expandible-actionable-table/types.js +8 -4
- package/es/molecule/expandible-actionable-table/types.js.map +1 -1
- package/es/molecule/external-content-button/index.js +0 -6
- package/es/molecule/external-content-button/index.js.map +1 -1
- package/es/molecule/external-content-viewer/index.js +0 -2
- package/es/molecule/external-content-viewer/index.js.map +1 -1
- package/es/molecule/feedback/index.js +8 -6
- package/es/molecule/feedback/index.js.map +1 -1
- package/es/molecule/filters/filters-wrapper.js +1 -14
- package/es/molecule/filters/filters-wrapper.js.map +1 -1
- package/es/molecule/filters/index.js +1 -15
- package/es/molecule/filters/index.js.map +1 -1
- package/es/molecule/forum/forum-comment/index.js +0 -5
- package/es/molecule/forum/forum-comment/index.js.map +1 -1
- package/es/molecule/forum/forum-post/index.js +0 -6
- package/es/molecule/forum/forum-post/index.js.map +1 -1
- package/es/molecule/forum/forum-thread/index.js +1 -5
- package/es/molecule/forum/forum-thread/index.js.map +1 -1
- package/es/molecule/forum/post-conditions.js.map +1 -1
- package/es/molecule/go1-banner/index.js +4 -4
- package/es/molecule/go1-banner/index.js.map +1 -1
- package/es/molecule/hero/index.js +0 -4
- package/es/molecule/hero/index.js.map +1 -1
- package/es/molecule/hero/types.js.map +1 -1
- package/es/molecule/icon-picker-modal/index.js +0 -5
- package/es/molecule/icon-picker-modal/index.js.map +1 -1
- package/es/molecule/icon-picker-modal/use-icon-search.js +0 -2
- package/es/molecule/icon-picker-modal/use-icon-search.js.map +1 -1
- package/es/molecule/input-text-with-titled-checkbox/index.js +0 -2
- package/es/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
- package/es/molecule/learner-skill-card/index.js +0 -4
- package/es/molecule/learner-skill-card/index.js.map +1 -1
- package/es/molecule/learning-priority-card/index.js +0 -4
- package/es/molecule/learning-priority-card/index.js.map +1 -1
- package/es/molecule/learning-priority-card/types.js.map +1 -1
- package/es/molecule/learning-priority-modal/index.js +3 -13
- package/es/molecule/learning-priority-modal/index.js.map +1 -1
- package/es/molecule/learning-priority-setup-item/index.js +0 -6
- package/es/molecule/learning-priority-setup-item/index.js.map +1 -1
- package/es/molecule/learning-profile-radar-chart/index.js +13 -40
- package/es/molecule/learning-profile-radar-chart/index.js.map +1 -1
- package/es/molecule/learning-profile-radar-chart/types.js +5 -2
- package/es/molecule/learning-profile-radar-chart/types.js.map +1 -1
- package/es/molecule/list-badges/index.js +0 -2
- package/es/molecule/list-badges/index.js.map +1 -1
- package/es/molecule/login-alert/index.js +2 -3
- package/es/molecule/login-alert/index.js.map +1 -1
- package/es/molecule/menu-links/index.js +0 -4
- package/es/molecule/menu-links/index.js.map +1 -1
- package/es/molecule/menu-links/types.js.map +1 -1
- package/es/molecule/menu-list/index.js +0 -2
- package/es/molecule/menu-list/index.js.map +1 -1
- package/es/molecule/message-popin/index.js +0 -2
- package/es/molecule/message-popin/index.js.map +1 -1
- package/es/molecule/modal/index.js +6 -7
- package/es/molecule/modal/index.js.map +1 -1
- package/es/molecule/module-bubble/index.js +0 -6
- package/es/molecule/module-bubble/index.js.map +1 -1
- package/es/molecule/module-card/index.js +3 -8
- package/es/molecule/module-card/index.js.map +1 -1
- package/es/molecule/news/index.js +1 -4
- package/es/molecule/news/index.js.map +1 -1
- package/es/molecule/notification-banner/index.js +0 -7
- package/es/molecule/notification-banner/index.js.map +1 -1
- package/es/molecule/pagination/index.js +0 -2
- package/es/molecule/pagination/index.js.map +1 -1
- package/es/molecule/payment-form/index.js +0 -14
- package/es/molecule/payment-form/index.js.map +1 -1
- package/es/molecule/pdf/index.js +2 -6
- package/es/molecule/pdf/index.js.map +1 -1
- package/es/molecule/playlist-detail-cover/index.js +0 -2
- package/es/molecule/playlist-detail-cover/index.js.map +1 -1
- package/es/molecule/popin/index.js +4 -6
- package/es/molecule/popin/index.js.map +1 -1
- package/es/molecule/privacy-policy-contact/index.js +2 -3
- package/es/molecule/privacy-policy-contact/index.js.map +1 -1
- package/es/molecule/privacy-policy-contact/types.js.map +1 -1
- package/es/molecule/product-card/index.js +0 -4
- package/es/molecule/product-card/index.js.map +1 -1
- package/es/molecule/progress-bar/index.js +2 -5
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/progress-wrapper/index.js +3 -11
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/molecule/questions/drop-down/index.js +0 -4
- package/es/molecule/questions/drop-down/index.js.map +1 -1
- package/es/molecule/questions/free-text/index.js +2 -5
- package/es/molecule/questions/free-text/index.js.map +1 -1
- package/es/molecule/questions/free-text/index.native.js +12 -10
- package/es/molecule/questions/free-text/index.native.js.map +1 -1
- package/es/molecule/questions/mobile/draggable/index.native.js +0 -11
- package/es/molecule/questions/mobile/draggable/index.native.js.map +1 -1
- package/es/molecule/questions/mobile/slider/index.native.js +4 -8
- package/es/molecule/questions/mobile/slider/index.native.js.map +1 -1
- package/es/molecule/questions/mobile/switch/index.native.js +0 -13
- package/es/molecule/questions/mobile/switch/index.native.js.map +1 -1
- package/es/molecule/questions/mobile/template/index.native.js +0 -15
- package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/es/molecule/questions/qcm/index.js +5 -7
- package/es/molecule/questions/qcm/index.js.map +1 -1
- package/es/molecule/questions/qcm-drag/index.js +2 -13
- package/es/molecule/questions/qcm-drag/index.js.map +1 -1
- package/es/molecule/questions/qcm-graphic/index.js +2 -5
- package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.js +8 -8
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.js +5 -12
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/types.js.map +1 -1
- package/es/molecule/quick-access-card/index.js +0 -28
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/quick-access-cards-group/index.js +0 -4
- package/es/molecule/quick-access-cards-group/index.js.map +1 -1
- package/es/molecule/resource-player/index.js +1 -20
- package/es/molecule/resource-player/index.js.map +1 -1
- package/es/molecule/review-card-congrats/index.js +3 -8
- package/es/molecule/review-card-congrats/index.js.map +1 -1
- package/es/molecule/review-card-congrats/prop-types.js.map +1 -1
- package/es/molecule/review-correction-popin/index.js +9 -10
- package/es/molecule/review-correction-popin/index.js.map +1 -1
- package/es/molecule/review-correction-popin/index.native.js +2 -9
- package/es/molecule/review-correction-popin/index.native.js.map +1 -1
- package/es/molecule/review-correction-popin/prop-types.js.map +1 -1
- package/es/molecule/review-header-steps/index.js +0 -2
- package/es/molecule/review-header-steps/index.js.map +1 -1
- package/es/molecule/review-header-steps/prop-types.js.map +1 -1
- package/es/molecule/scope-content/index.js +7 -22
- package/es/molecule/scope-content/index.js.map +1 -1
- package/es/molecule/scope-tabs/index.js +1 -7
- package/es/molecule/scope-tabs/index.js.map +1 -1
- package/es/molecule/search-form/index.js +1 -7
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/select-multiple/index.js +8 -19
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/setup-cohort-item/index.js +8 -12
- package/es/molecule/setup-cohort-item/index.js.map +1 -1
- package/es/molecule/setup-section/index.js +3 -12
- package/es/molecule/setup-section/index.js.map +1 -1
- package/es/molecule/setup-sections/index.js +0 -3
- package/es/molecule/setup-sections/index.js.map +1 -1
- package/es/molecule/setup-slider/index.js +23 -34
- package/es/molecule/setup-slider/index.js.map +1 -1
- package/es/molecule/share/index.js +6 -15
- package/es/molecule/share/index.js.map +1 -1
- package/es/molecule/skill-card/index.js +0 -3
- package/es/molecule/skill-card/index.js.map +1 -1
- package/es/molecule/skill-card/index.native.js +0 -6
- package/es/molecule/skill-card/index.native.js.map +1 -1
- package/es/molecule/skill-card/prop-types.js.map +1 -1
- package/es/molecule/skill-picker-modal/index.js +1 -9
- package/es/molecule/skill-picker-modal/index.js.map +1 -1
- package/es/molecule/skills-chart-side-information-item/index.js +0 -2
- package/es/molecule/skills-chart-side-information-item/index.js.map +1 -1
- package/es/molecule/skills-chart-side-information-panel/index.js +1 -6
- package/es/molecule/skills-chart-side-information-panel/index.js.map +1 -1
- package/es/molecule/ssmenu-list/index.js +0 -2
- package/es/molecule/ssmenu-list/index.js.map +1 -1
- package/es/molecule/subscription-freemium/index.js +0 -2
- package/es/molecule/subscription-freemium/index.js.map +1 -1
- package/es/molecule/subscription-premium/index.js +0 -6
- package/es/molecule/subscription-premium/index.js.map +1 -1
- package/es/molecule/table/index.js +1 -19
- package/es/molecule/table/index.js.map +1 -1
- package/es/molecule/teams-popin/index.js +0 -2
- package/es/molecule/teams-popin/index.js.map +1 -1
- package/es/molecule/theme-image/index.js +0 -2
- package/es/molecule/theme-image/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.js +11 -10
- package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/es/molecule/title-radio-wrapper/index.js +0 -4
- package/es/molecule/title-radio-wrapper/index.js.map +1 -1
- package/es/molecule/title-radio-wrapper/types.js.map +1 -1
- package/es/molecule/titled-checkbox/index.js +0 -2
- package/es/molecule/titled-checkbox/index.js.map +1 -1
- package/es/molecule/translation-modal/index.js +13 -11
- package/es/molecule/translation-modal/index.js.map +1 -1
- package/es/molecule/unsubscribe/index.js +0 -2
- package/es/molecule/unsubscribe/index.js.map +1 -1
- package/es/molecule/vertical-tabs/index.js +0 -4
- package/es/molecule/vertical-tabs/index.js.map +1 -1
- package/es/molecule/video-iframe/index.js +3 -15
- package/es/molecule/video-iframe/index.js.map +1 -1
- package/es/molecule/video-player/index.js +1 -13
- package/es/molecule/video-player/index.js.map +1 -1
- package/es/molecule/video-player/jwplayer-prop-types.js.map +1 -1
- package/es/molecule/video-player/jwplayer.js +7 -27
- package/es/molecule/video-player/jwplayer.js.map +1 -1
- package/es/molecule/video-player/prop-types.js.map +1 -1
- package/es/molecule/video-player/vimeo.js +2 -43
- package/es/molecule/video-player/vimeo.js.map +1 -1
- package/es/molecule/video-player-mobile/index.native.js +2 -9
- package/es/molecule/video-player-mobile/index.native.js.map +1 -1
- package/es/molecule/wizard-summary/index.js +2 -18
- package/es/molecule/wizard-summary/index.js.map +1 -1
- package/es/organism/accordion/container/index.js +1 -10
- package/es/organism/accordion/container/index.js.map +1 -1
- package/es/organism/accordion/coorp-manager/index.js +3 -15
- package/es/organism/accordion/coorp-manager/index.js.map +1 -1
- package/es/organism/accordion/coorp-manager/part/index.js +2 -9
- package/es/organism/accordion/coorp-manager/part/index.js.map +1 -1
- package/es/organism/accordion/part/index.js +0 -5
- package/es/organism/accordion/part/index.js.map +1 -1
- package/es/organism/accordion/toggler/index.js +2 -10
- package/es/organism/accordion/toggler/index.js.map +1 -1
- package/es/organism/brand-analytics/analytics-popin.js +0 -6
- package/es/organism/brand-analytics/analytics-popin.js.map +1 -1
- package/es/organism/brand-analytics/index.js +0 -11
- package/es/organism/brand-analytics/index.js.map +1 -1
- package/es/organism/brand-dashboard/index.js +1 -4
- package/es/organism/brand-dashboard/index.js.map +1 -1
- package/es/organism/brand-form/index.js +0 -6
- package/es/organism/brand-form/index.js.map +1 -1
- package/es/organism/brand-learning-priorities/index.js +2 -3
- package/es/organism/brand-learning-priorities/index.js.map +1 -1
- package/es/organism/brand-table/index.js +0 -2
- package/es/organism/brand-table/index.js.map +1 -1
- package/es/organism/brand-upload/index.js +1 -5
- package/es/organism/brand-upload/index.js.map +1 -1
- package/es/organism/cards-grid/index.js +0 -4
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/cart/index.js +0 -2
- package/es/organism/cart/index.js.map +1 -1
- package/es/organism/content-translation/index.js +5 -8
- package/es/organism/content-translation/index.js.map +1 -1
- package/es/organism/course-selection/index.js +1 -9
- package/es/organism/course-selection/index.js.map +1 -1
- package/es/organism/discussion/index.js +3 -5
- package/es/organism/discussion/index.js.map +1 -1
- package/es/organism/get-the-app/index.js +2 -15
- package/es/organism/get-the-app/index.js.map +1 -1
- package/es/organism/grid-list/index.js +0 -2
- package/es/organism/grid-list/index.js.map +1 -1
- package/es/organism/header/index.js +0 -2
- package/es/organism/header/index.js.map +1 -1
- package/es/organism/header-v2/index.native.js +3 -6
- package/es/organism/header-v2/index.native.js.map +1 -1
- package/es/organism/hero/index.js +0 -4
- package/es/organism/hero/index.js.map +1 -1
- package/es/organism/list-item/index.js +1 -8
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-items/index.js +5 -10
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/mobile-intro-popin/index.native.js +0 -6
- package/es/organism/mobile-intro-popin/index.native.js.map +1 -1
- package/es/organism/mobile-navigation/index.native.js +0 -7
- package/es/organism/mobile-navigation/index.native.js.map +1 -1
- package/es/organism/mooc/image-slider/index.js +1 -6
- package/es/organism/mooc/image-slider/index.js.map +1 -1
- package/es/organism/mooc-footer/index.js +10 -9
- package/es/organism/mooc-footer/index.js.map +1 -1
- package/es/organism/mooc-header/index.js +9 -59
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/popin/index.js +0 -5
- package/es/organism/popin/index.js.map +1 -1
- package/es/organism/resource-browser/index.js +1 -11
- package/es/organism/resource-browser/index.js.map +1 -1
- package/es/organism/review-congrats/index.js +2 -6
- package/es/organism/review-congrats/index.js.map +1 -1
- package/es/organism/review-congrats/index.native.js +10 -12
- package/es/organism/review-congrats/index.native.js.map +1 -1
- package/es/organism/review-congrats/prop-types.js.map +1 -1
- package/es/organism/review-header/index.js +0 -2
- package/es/organism/review-header/index.js.map +1 -1
- package/es/organism/review-header/index.native.js +1 -4
- package/es/organism/review-header/index.native.js.map +1 -1
- package/es/organism/review-header/types.js.map +1 -1
- package/es/organism/review-no-skills/index.js +0 -2
- package/es/organism/review-no-skills/index.js.map +1 -1
- package/es/organism/review-no-skills/index.native.js +0 -6
- package/es/organism/review-no-skills/index.native.js.map +1 -1
- package/es/organism/review-no-skills/prop-types.js.map +1 -1
- package/es/organism/review-skills/index.js +0 -2
- package/es/organism/review-skills/index.js.map +1 -1
- package/es/organism/review-skills/index.native.js +0 -3
- package/es/organism/review-skills/index.native.js.map +1 -1
- package/es/organism/review-skills/prop-types.js.map +1 -1
- package/es/organism/review-slide/index.js +6 -14
- package/es/organism/review-slide/index.js.map +1 -1
- package/es/organism/review-slide/index.native.js +8 -16
- package/es/organism/review-slide/index.native.js.map +1 -1
- package/es/organism/review-slide/prop-types.js +0 -1
- package/es/organism/review-slide/prop-types.js.map +1 -1
- package/es/organism/review-stacked-slides/index.js +2 -9
- package/es/organism/review-stacked-slides/index.js.map +1 -1
- package/es/organism/review-stacked-slides/index.native.js +6 -11
- package/es/organism/review-stacked-slides/index.native.js.map +1 -1
- package/es/organism/review-stacked-slides/prop-types.js.map +1 -1
- package/es/organism/rewards-form/index.js +0 -2
- package/es/organism/rewards-form/index.js.map +1 -1
- package/es/organism/search-and-chips-results/index.js +1 -7
- package/es/organism/search-and-chips-results/index.js.map +1 -1
- package/es/organism/select-opponents/index.js +2 -3
- package/es/organism/select-opponents/index.js.map +1 -1
- package/es/organism/select-opponents/types.js.map +1 -1
- package/es/organism/settings/index.js +3 -6
- package/es/organism/settings/index.js.map +1 -1
- package/es/organism/setup-header/index.js +0 -5
- package/es/organism/setup-header/index.js.map +1 -1
- package/es/organism/sidebar/index.js +19 -27
- package/es/organism/sidebar/index.js.map +1 -1
- package/es/organism/slider/index.js +2 -18
- package/es/organism/slider/index.js.map +1 -1
- package/es/organism/title-and-input/index.js +1 -7
- package/es/organism/title-and-input/index.js.map +1 -1
- package/es/organism/title-and-input/types.js.map +1 -1
- package/es/organism/user-preferences/index.js +3 -7
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/wizard-contents/index.js +21 -28
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/template/activity/engine-stars.js +6 -18
- package/es/template/activity/engine-stars.js.map +1 -1
- package/es/template/activity/index.js +5 -6
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/progression-item.js +2 -7
- package/es/template/activity/progression-item.js.map +1 -1
- package/es/template/activity/stars-summary.js +1 -14
- package/es/template/activity/stars-summary.js.map +1 -1
- package/es/template/app-player/loading/index.js +0 -2
- package/es/template/app-player/loading/index.js.map +1 -1
- package/es/template/app-player/player/index.js +1 -4
- package/es/template/app-player/player/index.js.map +1 -1
- package/es/template/app-player/player/slides/footer/index.js +3 -17
- package/es/template/app-player/player/slides/footer/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/index.js +0 -2
- package/es/template/app-player/player/slides/header/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/learner.js +5 -15
- package/es/template/app-player/player/slides/header/learner.js.map +1 -1
- package/es/template/app-player/player/slides/header/lives.js +0 -3
- package/es/template/app-player/player/slides/header/lives.js.map +1 -1
- package/es/template/app-player/player/slides/header/microlearning.js +3 -7
- package/es/template/app-player/player/slides/header/microlearning.js.map +1 -1
- package/es/template/app-player/player/slides/index.js +21 -58
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +9 -30
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-end/index.js +1 -6
- package/es/template/app-player/popin-end/index.js.map +1 -1
- package/es/template/app-player/popin-end/summary.js +11 -37
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-player/popin-header/index.js +11 -40
- package/es/template/app-player/popin-header/index.js.map +1 -1
- package/es/template/app-player/popin-no-access/index.js +0 -2
- package/es/template/app-player/popin-no-access/index.js.map +1 -1
- package/es/template/app-review/demo-ts/index.js +0 -2
- package/es/template/app-review/demo-ts/index.js.map +1 -1
- package/es/template/app-review/demo-ts/index.native.js +0 -2
- package/es/template/app-review/demo-ts/index.native.js.map +1 -1
- package/es/template/app-review/demo-ts/typings.js.map +1 -1
- package/es/template/app-review/index.js +0 -3
- package/es/template/app-review/index.js.map +1 -1
- package/es/template/app-review/index.native.js +2 -4
- package/es/template/app-review/index.native.js.map +1 -1
- package/es/template/app-review/onboarding/index.js.map +1 -1
- package/es/template/app-review/onboarding/index.native.js.map +1 -1
- package/es/template/app-review/player/background-review.js +0 -2
- package/es/template/app-review/player/background-review.js.map +1 -1
- package/es/template/app-review/player/index.js +0 -2
- package/es/template/app-review/player/index.js.map +1 -1
- package/es/template/app-review/player/index.native.js +0 -6
- package/es/template/app-review/player/index.native.js.map +1 -1
- package/es/template/app-review/player/prop-types.js +2 -1
- package/es/template/app-review/player/prop-types.js.map +1 -1
- package/es/template/app-review/prop-types.js +2 -1
- package/es/template/app-review/prop-types.js.map +1 -1
- package/es/template/app-review/skills/index.js +0 -2
- package/es/template/app-review/skills/index.js.map +1 -1
- package/es/template/app-review/skills/index.native.js +0 -6
- package/es/template/app-review/skills/index.native.js.map +1 -1
- package/es/template/app-review/skills/prop-types.js.map +1 -1
- package/es/template/app-review/template-context.js +0 -5
- package/es/template/app-review/template-context.js.map +1 -1
- package/es/template/back-office/brand-create/index.js.map +1 -1
- package/es/template/back-office/brand-list/index.js +2 -5
- package/es/template/back-office/brand-list/index.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +37 -44
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/dashboard-preview/dashboard-popin.js +0 -5
- package/es/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
- package/es/template/back-office/dashboard-preview/index.js +0 -14
- package/es/template/back-office/dashboard-preview/index.js.map +1 -1
- package/es/template/back-office/layout/index.js +0 -3
- package/es/template/back-office/layout/index.js.map +1 -1
- package/es/template/battle-requests/index.js +2 -3
- package/es/template/battle-requests/index.js.map +1 -1
- package/es/template/certification-detail/index.js +0 -2
- package/es/template/certification-detail/index.js.map +1 -1
- package/es/template/certifications/index.js +3 -6
- package/es/template/certifications/index.js.map +1 -1
- package/es/template/cockpit/jw-uploader/index.js +2 -3
- package/es/template/cockpit/jw-uploader/index.js.map +1 -1
- package/es/template/common/authors/index.js +2 -11
- package/es/template/common/authors/index.js.map +1 -1
- package/es/template/common/coorp-header/content.js +0 -4
- package/es/template/common/coorp-header/content.js.map +1 -1
- package/es/template/common/coorp-header/index.js +0 -2
- package/es/template/common/coorp-header/index.js.map +1 -1
- package/es/template/common/dashboard/index.js +1 -17
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/discipline/index.js +0 -2
- package/es/template/common/discipline/index.js.map +1 -1
- package/es/template/common/faq-article-page/index.js +4 -4
- package/es/template/common/faq-article-page/index.js.map +1 -1
- package/es/template/common/faq-article-page/types.js.map +1 -1
- package/es/template/common/faq-cards-page/index.js +1 -5
- package/es/template/common/faq-cards-page/index.js.map +1 -1
- package/es/template/common/faq-cards-page/types.js.map +1 -1
- package/es/template/common/faq-page/index.js +1 -4
- package/es/template/common/faq-page/index.js.map +1 -1
- package/es/template/common/faq-page/types.js.map +1 -1
- package/es/template/common/privacy-policy-page/index.js +1 -4
- package/es/template/common/privacy-policy-page/index.js.map +1 -1
- package/es/template/common/privacy-policy-page/types.js.map +1 -1
- package/es/template/common/search-page/index.js +1 -7
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/external-course/index.js +4 -7
- package/es/template/external-course/index.js.map +1 -1
- package/es/template/mobile-login/confirm-email-sent/index.native.js +2 -7
- package/es/template/mobile-login/confirm-email-sent/index.native.js.map +1 -1
- package/es/template/mobile-login/qr-code-scanner/index.native.js +10 -9
- package/es/template/mobile-login/qr-code-scanner/index.native.js.map +1 -1
- package/es/template/mobile-login/receive-email/index.native.js +0 -2
- package/es/template/mobile-login/receive-email/index.native.js.map +1 -1
- package/es/template/mobile-login/welcome/index.native.js +3 -7
- package/es/template/mobile-login/welcome/index.native.js.map +1 -1
- package/es/template/my-learning/index.js +1 -20
- package/es/template/my-learning/index.js.map +1 -1
- package/es/template/playlist-detail/index.js +0 -2
- package/es/template/playlist-detail/index.js.map +1 -1
- package/es/template/review-dashboard-skills/index.js +0 -2
- package/es/template/review-dashboard-skills/index.js.map +1 -1
- package/es/template/skill-detail/all-courses.js +1 -12
- package/es/template/skill-detail/all-courses.js.map +1 -1
- package/es/template/skill-detail/continue-learning.js +2 -5
- package/es/template/skill-detail/continue-learning.js.map +1 -1
- package/es/template/skill-detail/index.js +0 -4
- package/es/template/skill-detail/index.js.map +1 -1
- package/es/template/teams-dashboard/index.js +1 -5
- package/es/template/teams-dashboard/index.js.map +1 -1
- package/es/util/bubbling.js +0 -1
- package/es/util/bubbling.js.map +1 -1
- package/es/util/build-query-string.js +0 -2
- package/es/util/build-query-string.js.map +1 -1
- package/es/util/button-icons.js.map +1 -1
- package/es/util/check-is-mobile.js.map +1 -1
- package/es/util/closest-step.js +0 -6
- package/es/util/closest-step.js.map +1 -1
- package/es/util/constants.js.map +1 -1
- package/es/util/external-content.js.map +1 -1
- package/es/util/get-class-state.js +0 -2
- package/es/util/get-class-state.js.map +1 -1
- package/es/util/get-clean-uri.js +0 -1
- package/es/util/get-clean-uri.js.map +1 -1
- package/es/util/get-resized-image.js +4 -8
- package/es/util/get-resized-image.js.map +1 -1
- package/es/util/get-shadow-box-color-from-primary.js +2 -1
- package/es/util/get-shadow-box-color-from-primary.js.map +1 -1
- package/es/util/image.js +0 -4
- package/es/util/image.js.map +1 -1
- package/es/util/navigation.js +0 -9
- package/es/util/navigation.js.map +1 -1
- package/es/util/parse-template-string.js +0 -6
- package/es/util/parse-template-string.js.map +1 -1
- package/es/util/proptypes.js.map +1 -1
- package/es/util/render-with-context.js +7 -9
- package/es/util/render-with-context.js.map +1 -1
- package/es/util/search-value-included.js +0 -2
- package/es/util/search-value-included.js.map +1 -1
- package/es/util/shallow-compare.js +0 -2
- package/es/util/shallow-compare.js.map +1 -1
- package/es/util/time-format.js +0 -4
- package/es/util/time-format.js.map +1 -1
- package/es/util/use-mobile-keyboard-visibility.js +0 -2
- package/es/util/use-mobile-keyboard-visibility.js.map +1 -1
- package/es/variables/analytics.js.map +1 -1
- package/es/variables/brand.native.js.map +1 -1
- package/es/variables/colors.js.map +1 -1
- package/es/variables/default-mobile-translations.js.map +1 -1
- package/es/variables/shadow.js +0 -1
- package/es/variables/shadow.js.map +1 -1
- package/es/variables/theme.native.js.map +1 -1
- package/es/variables/vibration.js.map +1 -1
- package/lib/atom/autocomplete/index.js +6 -24
- package/lib/atom/autocomplete/index.js.map +1 -1
- package/lib/atom/avatar/index.js +2 -10
- package/lib/atom/avatar/index.js.map +1 -1
- package/lib/atom/battle-opponent/index.js +11 -28
- package/lib/atom/battle-opponent/index.js.map +1 -1
- package/lib/atom/battle-opponent/prop-types.js +2 -6
- package/lib/atom/battle-opponent/prop-types.js.map +1 -1
- package/lib/atom/button/index.js +5 -25
- package/lib/atom/button/index.js.map +1 -1
- package/lib/atom/button/index.native.js +6 -18
- package/lib/atom/button/index.native.js.map +1 -1
- package/lib/atom/button-link/index.js +7 -29
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.js +2 -8
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/button-link-icon/index.js +5 -28
- package/lib/atom/button-link-icon/index.js.map +1 -1
- package/lib/atom/button-menu/index.js +7 -20
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/types.js +3 -8
- package/lib/atom/button-menu/types.js.map +1 -1
- package/lib/atom/card-image-preview/index.js +2 -12
- package/lib/atom/card-image-preview/index.js.map +1 -1
- package/lib/atom/catalog-section/index.js +2 -9
- package/lib/atom/catalog-section/index.js.map +1 -1
- package/lib/atom/centered-text/index.js +2 -9
- package/lib/atom/centered-text/index.js.map +1 -1
- package/lib/atom/checkbox/index.js +5 -15
- package/lib/atom/checkbox/index.js.map +1 -1
- package/lib/atom/checkbox-with-title/index.js +4 -16
- package/lib/atom/checkbox-with-title/index.js.map +1 -1
- package/lib/atom/chip/index.js +8 -25
- package/lib/atom/chip/index.js.map +1 -1
- package/lib/atom/chips/index.js +5 -15
- package/lib/atom/chips/index.js.map +1 -1
- package/lib/atom/choice/index.native.js +6 -26
- package/lib/atom/choice/index.native.js.map +1 -1
- package/lib/atom/circular-progress-bar/index.js +4 -15
- package/lib/atom/circular-progress-bar/index.js.map +1 -1
- package/lib/atom/circular-progress-bar/types.js +2 -6
- package/lib/atom/circular-progress-bar/types.js.map +1 -1
- package/lib/atom/clue/index.js +2 -23
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/content-badge/index.js +2 -11
- package/lib/atom/content-badge/index.js.map +1 -1
- package/lib/atom/cta/index.js +4 -23
- package/lib/atom/cta/index.js.map +1 -1
- package/lib/atom/cta/prop-types.js +2 -7
- package/lib/atom/cta/prop-types.js.map +1 -1
- package/lib/atom/difficulty-level/index.js +2 -17
- package/lib/atom/difficulty-level/index.js.map +1 -1
- package/lib/atom/drag-and-drop/index.js +3 -31
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/empty-search-result/index.js +2 -9
- package/lib/atom/empty-search-result/index.js.map +1 -1
- package/lib/atom/gradient/index.native.js +2 -14
- package/lib/atom/gradient/index.native.js.map +1 -1
- package/lib/atom/header-back-button/index.native.js +7 -27
- package/lib/atom/header-back-button/index.native.js.map +1 -1
- package/lib/atom/header-back-icon/index.native.js +2 -10
- package/lib/atom/header-back-icon/index.native.js.map +1 -1
- package/lib/atom/html/index.native.js +22 -29
- package/lib/atom/html/index.native.js.map +1 -1
- package/lib/atom/icon/index.js +9 -31
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/image-background/index.native.js +3 -22
- package/lib/atom/image-background/index.native.js.map +1 -1
- package/lib/atom/input-checkbox/index.js +4 -20
- package/lib/atom/input-checkbox/index.js.map +1 -1
- package/lib/atom/input-color/index.js +4 -15
- package/lib/atom/input-color/index.js.map +1 -1
- package/lib/atom/input-doublestep/index.js +7 -33
- package/lib/atom/input-doublestep/index.js.map +1 -1
- package/lib/atom/input-file-draggable/index.js +7 -21
- package/lib/atom/input-file-draggable/index.js.map +1 -1
- package/lib/atom/input-html/index.js +4 -18
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-html/input-preview.js +4 -11
- package/lib/atom/input-html/input-preview.js.map +1 -1
- package/lib/atom/input-readonly/index.js +2 -9
- package/lib/atom/input-readonly/index.js.map +1 -1
- package/lib/atom/input-search/index.js +4 -18
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-switch/index.js +5 -22
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-text/index.js +6 -22
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text-with-title/index.js +4 -11
- package/lib/atom/input-text-with-title/index.js.map +1 -1
- package/lib/atom/input-textarea/index.js +6 -21
- package/lib/atom/input-textarea/index.js.map +1 -1
- package/lib/atom/label/index.js +2 -10
- package/lib/atom/label/index.js.map +1 -1
- package/lib/atom/life/index.js +2 -18
- package/lib/atom/life/index.js.map +1 -1
- package/lib/atom/link/index.js +7 -19
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/loader/index.js +2 -11
- package/lib/atom/loader/index.js.map +1 -1
- package/lib/atom/loader/index.native.js +5 -22
- package/lib/atom/loader/index.native.js.map +1 -1
- package/lib/atom/lottie-wrapper/index.js +10 -34
- package/lib/atom/lottie-wrapper/index.js.map +1 -1
- package/lib/atom/lottie-wrapper/prop-types.js +3 -9
- package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/lib/atom/notification/index.js +2 -11
- package/lib/atom/notification/index.js.map +1 -1
- package/lib/atom/picture/index.js +3 -25
- package/lib/atom/picture/index.js.map +1 -1
- package/lib/atom/picture-background/index.js +2 -13
- package/lib/atom/picture-background/index.js.map +1 -1
- package/lib/atom/promo-code/index.js +2 -10
- package/lib/atom/promo-code/index.js.map +1 -1
- package/lib/atom/provider/index.js +6 -34
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/provider/web-context.js +3 -13
- package/lib/atom/provider/web-context.js.map +1 -1
- package/lib/atom/radio-group/index.js +3 -17
- package/lib/atom/radio-group/index.js.map +1 -1
- package/lib/atom/radio-group/item.js +2 -17
- package/lib/atom/radio-group/item.js.map +1 -1
- package/lib/atom/radio-with-title/index.js +5 -17
- package/lib/atom/radio-with-title/index.js.map +1 -1
- package/lib/atom/radio-with-title/types.js +2 -7
- package/lib/atom/radio-with-title/types.js.map +1 -1
- package/lib/atom/range/handle.js +15 -31
- package/lib/atom/range/handle.js.map +1 -1
- package/lib/atom/range/index.js +4 -31
- package/lib/atom/range/index.js.map +1 -1
- package/lib/atom/resource-miniature/index.js +4 -16
- package/lib/atom/resource-miniature/index.js.map +1 -1
- package/lib/atom/review-presentation/index.js +7 -21
- package/lib/atom/review-presentation/index.js.map +1 -1
- package/lib/atom/review-presentation/index.native.js +7 -24
- package/lib/atom/review-presentation/index.native.js.map +1 -1
- package/lib/atom/review-presentation/prop-types.js +4 -11
- package/lib/atom/review-presentation/prop-types.js.map +1 -1
- package/lib/atom/select/index.js +15 -43
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select-icon/index.js +4 -20
- package/lib/atom/select-icon/index.js.map +1 -1
- package/lib/atom/select-modal/index.native.js +8 -30
- package/lib/atom/select-modal/index.native.js.map +1 -1
- package/lib/atom/slide/index.js +3 -12
- package/lib/atom/slide/index.js.map +1 -1
- package/lib/atom/social-link/index.js +2 -11
- package/lib/atom/social-link/index.js.map +1 -1
- package/lib/atom/space/index.native.js +3 -11
- package/lib/atom/space/index.native.js.map +1 -1
- package/lib/atom/spinner/index.js +2 -8
- package/lib/atom/spinner/index.js.map +1 -1
- package/lib/atom/status-item/index.js +5 -27
- package/lib/atom/status-item/index.js.map +1 -1
- package/lib/atom/status-item/index.native.js +3 -24
- package/lib/atom/status-item/index.native.js.map +1 -1
- package/lib/atom/status-item/types.js +2 -6
- package/lib/atom/status-item/types.js.map +1 -1
- package/lib/atom/tab/index.js +4 -14
- package/lib/atom/tab/index.js.map +1 -1
- package/lib/atom/tab-content/index.js +2 -10
- package/lib/atom/tab-content/index.js.map +1 -1
- package/lib/atom/tag/index.js +4 -14
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/text/index.native.js +4 -11
- package/lib/atom/text/index.native.js.map +1 -1
- package/lib/atom/title/index.js +3 -26
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/title/types.js.map +1 -1
- package/lib/atom/tooltip/index.js +7 -30
- package/lib/atom/tooltip/index.js.map +1 -1
- package/lib/atom/video-upload/index.js +4 -11
- package/lib/atom/video-upload/index.js.map +1 -1
- package/lib/atom/wizard-steps/index.js +2 -10
- package/lib/atom/wizard-steps/index.js.map +1 -1
- package/lib/globals.d.js.map +1 -1
- package/lib/hoc/animation/index.js +29 -75
- package/lib/hoc/animation/index.js.map +1 -1
- package/lib/hoc/animation-scheduler/index.js +2 -42
- package/lib/hoc/animation-scheduler/index.js.map +1 -1
- package/lib/hoc/modal/index.native.js +5 -21
- package/lib/hoc/modal/index.native.js.map +1 -1
- package/lib/hoc/modal/select/index.native.js +4 -24
- package/lib/hoc/modal/select/index.native.js.map +1 -1
- package/lib/hoc/modal/select-item/index.native.js +6 -22
- package/lib/hoc/modal/select-item/index.native.js.map +1 -1
- package/lib/hoc/swapper/index.js +2 -16
- package/lib/hoc/swapper/index.js.map +1 -1
- package/lib/hoc/touchable/index.native.js +6 -19
- package/lib/hoc/touchable/index.native.js.map +1 -1
- package/lib/hoc/transition/child-prop-types.js +2 -6
- package/lib/hoc/transition/child-prop-types.js.map +1 -1
- package/lib/hoc/transition/index.js +4 -17
- package/lib/hoc/transition/index.js.map +1 -1
- package/lib/hoc/transition/transition-prop-types.js +2 -6
- package/lib/hoc/transition/transition-prop-types.js.map +1 -1
- package/lib/index.js +1 -14
- package/lib/index.js.map +1 -1
- package/lib/molecule/add-to-my-list/index.js +4 -27
- package/lib/molecule/add-to-my-list/index.js.map +1 -1
- package/lib/molecule/answer/index.js +5 -41
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/answer/index.native.js +2 -17
- package/lib/molecule/answer/index.native.js.map +1 -1
- package/lib/molecule/answer/prop-types.js +8 -24
- package/lib/molecule/answer/prop-types.js.map +1 -1
- package/lib/molecule/audio/index.js +4 -21
- package/lib/molecule/audio/index.js.map +1 -1
- package/lib/molecule/banner/index.js +4 -35
- package/lib/molecule/banner/index.js.map +1 -1
- package/lib/molecule/base-modal/index.js +9 -31
- package/lib/molecule/base-modal/index.js.map +1 -1
- package/lib/molecule/battle-opponent-list/index.js +5 -19
- package/lib/molecule/battle-opponent-list/index.js.map +1 -1
- package/lib/molecule/battle-opponent-list/prop-types.js +2 -6
- package/lib/molecule/battle-opponent-list/prop-types.js.map +1 -1
- package/lib/molecule/battle-request/index.js +4 -16
- package/lib/molecule/battle-request/index.js.map +1 -1
- package/lib/molecule/brand-card/description.js +2 -10
- package/lib/molecule/brand-card/description.js.map +1 -1
- package/lib/molecule/brand-card/index.js +2 -13
- package/lib/molecule/brand-card/index.js.map +1 -1
- package/lib/molecule/brand-card-create/index.js +2 -10
- package/lib/molecule/brand-card-create/index.js.map +1 -1
- package/lib/molecule/brand-create-form/index.js +4 -16
- package/lib/molecule/brand-create-form/index.js.map +1 -1
- package/lib/molecule/brand-download-box/index.js +2 -13
- package/lib/molecule/brand-download-box/index.js.map +1 -1
- package/lib/molecule/brand-form-group/index.js +49 -92
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-logo/index.native.js +4 -12
- package/lib/molecule/brand-logo/index.native.js.map +1 -1
- package/lib/molecule/brand-tabs/index.js +2 -14
- package/lib/molecule/brand-tabs/index.js.map +1 -1
- package/lib/molecule/brand-upload-box/index.js +2 -20
- package/lib/molecule/brand-upload-box/index.js.map +1 -1
- package/lib/molecule/breadcrumbs/index.js +2 -16
- package/lib/molecule/breadcrumbs/index.js.map +1 -1
- package/lib/molecule/bulk-infos/index.js +3 -15
- package/lib/molecule/bulk-infos/index.js.map +1 -1
- package/lib/molecule/bulk-infos/types.js +2 -7
- package/lib/molecule/bulk-infos/types.js.map +1 -1
- package/lib/molecule/bulk-progress-bar/index.js +2 -17
- package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
- package/lib/molecule/bulk-progress-bar/types.js +2 -6
- package/lib/molecule/bulk-progress-bar/types.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +4 -20
- package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/types.js +2 -7
- package/lib/molecule/bullet-point-menu-button/types.js.map +1 -1
- package/lib/molecule/card/customer.js +3 -14
- package/lib/molecule/card/customer.js.map +1 -1
- package/lib/molecule/card/favorite.js +12 -30
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/card/index.js +9 -45
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/notification.js +2 -15
- package/lib/molecule/card/notification.js.map +1 -1
- package/lib/molecule/card/selectable.js +2 -12
- package/lib/molecule/card/selectable.js.map +1 -1
- package/lib/molecule/card-congrats/index.native.js +4 -19
- package/lib/molecule/card-congrats/index.native.js.map +1 -1
- package/lib/molecule/card-congrats/types.js.map +1 -1
- package/lib/molecule/card-content/index.js +6 -33
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-with-button/index.js +2 -15
- package/lib/molecule/card-with-button/index.js.map +1 -1
- package/lib/molecule/certification-card/index.js +2 -13
- package/lib/molecule/certification-card/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.js +8 -38
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.native.js +4 -20
- package/lib/molecule/cm-popin/index.native.js.map +1 -1
- package/lib/molecule/cm-popin/types.js +2 -14
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/cookie-banner/index.js +2 -13
- package/lib/molecule/cookie-banner/index.js.map +1 -1
- package/lib/molecule/coorp-manager-roles/index.js +4 -11
- package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
- package/lib/molecule/coorpmanager-base-banner/index.js +6 -12
- package/lib/molecule/coorpmanager-base-banner/index.js.map +1 -1
- package/lib/molecule/course-section/index.js +2 -12
- package/lib/molecule/course-section/index.js.map +1 -1
- package/lib/molecule/course-sections/index.js +4 -17
- package/lib/molecule/course-sections/index.js.map +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js +2 -10
- package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +16 -74
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/lib/molecule/dashboard/learning-profile-banner/index.js +5 -14
- package/lib/molecule/dashboard/learning-profile-banner/index.js.map +1 -1
- package/lib/molecule/dashboard/news-list/index.js +2 -13
- package/lib/molecule/dashboard/news-list/index.js.map +1 -1
- package/lib/molecule/dashboard/review-banner/index.js +5 -13
- package/lib/molecule/dashboard/review-banner/index.js.map +1 -1
- package/lib/molecule/dashboard/start-battle/index.js +2 -12
- package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
- package/lib/molecule/discipline-associated-skills/index.js +4 -23
- package/lib/molecule/discipline-associated-skills/index.js.map +1 -1
- package/lib/molecule/discipline-cta/index.js +2 -14
- package/lib/molecule/discipline-cta/index.js.map +1 -1
- package/lib/molecule/discipline-header/index.js +8 -26
- package/lib/molecule/discipline-header/index.js.map +1 -1
- package/lib/molecule/discipline-partners/index.js +2 -24
- package/lib/molecule/discipline-partners/index.js.map +1 -1
- package/lib/molecule/discipline-scope/index.js +2 -10
- package/lib/molecule/discipline-scope/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/index.js +7 -27
- package/lib/molecule/drag-and-drop/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/overlay.js +2 -13
- package/lib/molecule/drag-and-drop/overlay.js.map +1 -1
- package/lib/molecule/drag-and-drop/placeholder.js +2 -10
- package/lib/molecule/drag-and-drop/placeholder.js.map +1 -1
- package/lib/molecule/drag-and-drop/upload-report.js +7 -37
- package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.js +2 -11
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/lib/molecule/draggable/index.js +4 -16
- package/lib/molecule/draggable/index.js.map +1 -1
- package/lib/molecule/draggable-list/index.js +5 -20
- package/lib/molecule/draggable-list/index.js.map +1 -1
- package/lib/molecule/errors-table/index.js +4 -13
- package/lib/molecule/errors-table/index.js.map +1 -1
- package/lib/molecule/errors-table/types.js +2 -8
- package/lib/molecule/errors-table/types.js.map +1 -1
- package/lib/molecule/expandable-item/index.js +3 -14
- package/lib/molecule/expandable-item/index.js.map +1 -1
- package/lib/molecule/expandable-item/types.js +2 -6
- package/lib/molecule/expandable-item/types.js.map +1 -1
- package/lib/molecule/expandable-list/index.js +2 -10
- package/lib/molecule/expandable-list/index.js.map +1 -1
- package/lib/molecule/expandable-list/types.js +2 -7
- package/lib/molecule/expandable-list/types.js.map +1 -1
- package/lib/molecule/expandible-actionable-table/index.js +12 -46
- package/lib/molecule/expandible-actionable-table/index.js.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.js +10 -15
- package/lib/molecule/expandible-actionable-table/types.js.map +1 -1
- package/lib/molecule/external-content-button/index.js +2 -15
- package/lib/molecule/external-content-button/index.js.map +1 -1
- package/lib/molecule/external-content-viewer/index.js +2 -12
- package/lib/molecule/external-content-viewer/index.js.map +1 -1
- package/lib/molecule/feedback/index.js +12 -22
- package/lib/molecule/feedback/index.js.map +1 -1
- package/lib/molecule/filters/filters-wrapper.js +3 -26
- package/lib/molecule/filters/filters-wrapper.js.map +1 -1
- package/lib/molecule/filters/index.js +3 -23
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/forum/forum-comment/index.js +2 -17
- package/lib/molecule/forum/forum-comment/index.js.map +1 -1
- package/lib/molecule/forum/forum-post/index.js +2 -18
- package/lib/molecule/forum/forum-post/index.js.map +1 -1
- package/lib/molecule/forum/forum-thread/index.js +3 -13
- package/lib/molecule/forum/forum-thread/index.js.map +1 -1
- package/lib/molecule/forum/post-conditions.js +2 -7
- package/lib/molecule/forum/post-conditions.js.map +1 -1
- package/lib/molecule/go1-banner/index.js +6 -12
- package/lib/molecule/go1-banner/index.js.map +1 -1
- package/lib/molecule/hero/index.js +4 -18
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/hero/types.js +2 -8
- package/lib/molecule/hero/types.js.map +1 -1
- package/lib/molecule/icon-picker-modal/index.js +4 -30
- package/lib/molecule/icon-picker-modal/index.js.map +1 -1
- package/lib/molecule/icon-picker-modal/use-icon-search.js +2 -14
- package/lib/molecule/icon-picker-modal/use-icon-search.js.map +1 -1
- package/lib/molecule/input-text-with-titled-checkbox/index.js +2 -11
- package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
- package/lib/molecule/learner-skill-card/index.js +2 -17
- package/lib/molecule/learner-skill-card/index.js.map +1 -1
- package/lib/molecule/learning-priority-card/index.js +4 -19
- package/lib/molecule/learning-priority-card/index.js.map +1 -1
- package/lib/molecule/learning-priority-card/types.js +2 -6
- package/lib/molecule/learning-priority-card/types.js.map +1 -1
- package/lib/molecule/learning-priority-modal/index.js +7 -35
- package/lib/molecule/learning-priority-modal/index.js.map +1 -1
- package/lib/molecule/learning-priority-setup-item/index.js +4 -20
- package/lib/molecule/learning-priority-setup-item/index.js.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/index.js +17 -65
- package/lib/molecule/learning-profile-radar-chart/index.js.map +1 -1
- package/lib/molecule/learning-profile-radar-chart/types.js +7 -13
- package/lib/molecule/learning-profile-radar-chart/types.js.map +1 -1
- package/lib/molecule/list-badges/index.js +2 -11
- package/lib/molecule/list-badges/index.js.map +1 -1
- package/lib/molecule/login-alert/index.js +4 -11
- package/lib/molecule/login-alert/index.js.map +1 -1
- package/lib/molecule/menu-links/index.js +4 -21
- package/lib/molecule/menu-links/index.js.map +1 -1
- package/lib/molecule/menu-links/types.js +2 -6
- package/lib/molecule/menu-links/types.js.map +1 -1
- package/lib/molecule/menu-list/index.js +2 -13
- package/lib/molecule/menu-list/index.js.map +1 -1
- package/lib/molecule/message-popin/index.js +2 -9
- package/lib/molecule/message-popin/index.js.map +1 -1
- package/lib/molecule/modal/index.js +8 -16
- package/lib/molecule/modal/index.js.map +1 -1
- package/lib/molecule/module-bubble/index.js +2 -15
- package/lib/molecule/module-bubble/index.js.map +1 -1
- package/lib/molecule/module-card/index.js +5 -16
- package/lib/molecule/module-card/index.js.map +1 -1
- package/lib/molecule/news/index.js +3 -14
- package/lib/molecule/news/index.js.map +1 -1
- package/lib/molecule/notification-banner/index.js +2 -17
- package/lib/molecule/notification-banner/index.js.map +1 -1
- package/lib/molecule/pagination/index.js +2 -10
- package/lib/molecule/pagination/index.js.map +1 -1
- package/lib/molecule/payment-form/index.js +2 -22
- package/lib/molecule/payment-form/index.js.map +1 -1
- package/lib/molecule/pdf/index.js +4 -15
- package/lib/molecule/pdf/index.js.map +1 -1
- package/lib/molecule/playlist-detail-cover/index.js +4 -15
- package/lib/molecule/playlist-detail-cover/index.js.map +1 -1
- package/lib/molecule/popin/index.js +8 -19
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/privacy-policy-contact/index.js +5 -14
- package/lib/molecule/privacy-policy-contact/index.js.map +1 -1
- package/lib/molecule/privacy-policy-contact/types.js +2 -6
- package/lib/molecule/privacy-policy-contact/types.js.map +1 -1
- package/lib/molecule/product-card/index.js +2 -11
- package/lib/molecule/product-card/index.js.map +1 -1
- package/lib/molecule/progress-bar/index.js +4 -12
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/index.js +5 -30
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/molecule/questions/drop-down/index.js +4 -15
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.js +6 -18
- package/lib/molecule/questions/free-text/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.native.js +15 -21
- package/lib/molecule/questions/free-text/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/draggable/index.native.js +4 -23
- package/lib/molecule/questions/mobile/draggable/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/slider/index.native.js +8 -22
- package/lib/molecule/questions/mobile/slider/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/switch/index.native.js +4 -31
- package/lib/molecule/questions/mobile/switch/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/template/index.native.js +4 -33
- package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/lib/molecule/questions/qcm/index.js +9 -23
- package/lib/molecule/questions/qcm/index.js.map +1 -1
- package/lib/molecule/questions/qcm-drag/index.js +6 -29
- package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
- package/lib/molecule/questions/qcm-graphic/index.js +6 -18
- package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/lib/molecule/questions/question-range/index.js +12 -21
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.js +7 -22
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/types.js.map +1 -1
- package/lib/molecule/quick-access-card/index.js +2 -40
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-cards-group/index.js +2 -13
- package/lib/molecule/quick-access-cards-group/index.js.map +1 -1
- package/lib/molecule/resource-player/index.js +7 -39
- package/lib/molecule/resource-player/index.js.map +1 -1
- package/lib/molecule/review-card-congrats/index.js +7 -29
- package/lib/molecule/review-card-congrats/index.js.map +1 -1
- package/lib/molecule/review-card-congrats/prop-types.js +2 -7
- package/lib/molecule/review-card-congrats/prop-types.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.js +13 -26
- package/lib/molecule/review-correction-popin/index.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.native.js +6 -25
- package/lib/molecule/review-correction-popin/index.native.js.map +1 -1
- package/lib/molecule/review-correction-popin/prop-types.js +2 -6
- package/lib/molecule/review-correction-popin/prop-types.js.map +1 -1
- package/lib/molecule/review-header-steps/index.js +2 -13
- package/lib/molecule/review-header-steps/index.js.map +1 -1
- package/lib/molecule/review-header-steps/prop-types.js +2 -7
- package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
- package/lib/molecule/scope-content/index.js +9 -29
- package/lib/molecule/scope-content/index.js.map +1 -1
- package/lib/molecule/scope-tabs/index.js +5 -24
- package/lib/molecule/scope-tabs/index.js.map +1 -1
- package/lib/molecule/search-form/index.js +5 -18
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/select-multiple/index.js +12 -42
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/setup-cohort-item/index.js +10 -23
- package/lib/molecule/setup-cohort-item/index.js.map +1 -1
- package/lib/molecule/setup-section/index.js +5 -21
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-sections/index.js +2 -13
- package/lib/molecule/setup-sections/index.js.map +1 -1
- package/lib/molecule/setup-slider/index.js +25 -53
- package/lib/molecule/setup-slider/index.js.map +1 -1
- package/lib/molecule/share/index.js +10 -34
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/skill-card/index.js +4 -18
- package/lib/molecule/skill-card/index.js.map +1 -1
- package/lib/molecule/skill-card/index.native.js +3 -16
- package/lib/molecule/skill-card/index.native.js.map +1 -1
- package/lib/molecule/skill-card/prop-types.js +2 -6
- package/lib/molecule/skill-card/prop-types.js.map +1 -1
- package/lib/molecule/skill-picker-modal/index.js +5 -25
- package/lib/molecule/skill-picker-modal/index.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-item/index.js +2 -11
- package/lib/molecule/skills-chart-side-information-item/index.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-panel/index.js +3 -13
- package/lib/molecule/skills-chart-side-information-panel/index.js.map +1 -1
- package/lib/molecule/ssmenu-list/index.js +2 -9
- package/lib/molecule/ssmenu-list/index.js.map +1 -1
- package/lib/molecule/subscription-freemium/index.js +2 -10
- package/lib/molecule/subscription-freemium/index.js.map +1 -1
- package/lib/molecule/subscription-premium/index.js +2 -14
- package/lib/molecule/subscription-premium/index.js.map +1 -1
- package/lib/molecule/table/index.js +3 -32
- package/lib/molecule/table/index.js.map +1 -1
- package/lib/molecule/teams-popin/index.js +2 -13
- package/lib/molecule/teams-popin/index.js.map +1 -1
- package/lib/molecule/theme-image/index.js +2 -11
- package/lib/molecule/theme-image/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.js +13 -24
- package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/lib/molecule/title-radio-wrapper/index.js +2 -15
- package/lib/molecule/title-radio-wrapper/index.js.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.js +2 -9
- package/lib/molecule/title-radio-wrapper/types.js.map +1 -1
- package/lib/molecule/titled-checkbox/index.js +4 -16
- package/lib/molecule/titled-checkbox/index.js.map +1 -1
- package/lib/molecule/translation-modal/index.js +17 -27
- package/lib/molecule/translation-modal/index.js.map +1 -1
- package/lib/molecule/unsubscribe/index.js +2 -11
- package/lib/molecule/unsubscribe/index.js.map +1 -1
- package/lib/molecule/vertical-tabs/index.js +2 -17
- package/lib/molecule/vertical-tabs/index.js.map +1 -1
- package/lib/molecule/video-iframe/index.js +5 -26
- package/lib/molecule/video-iframe/index.js.map +1 -1
- package/lib/molecule/video-player/index.js +3 -24
- package/lib/molecule/video-player/index.js.map +1 -1
- package/lib/molecule/video-player/jwplayer-prop-types.js +2 -7
- package/lib/molecule/video-player/jwplayer-prop-types.js.map +1 -1
- package/lib/molecule/video-player/jwplayer.js +9 -38
- package/lib/molecule/video-player/jwplayer.js.map +1 -1
- package/lib/molecule/video-player/prop-types.js +3 -9
- package/lib/molecule/video-player/prop-types.js.map +1 -1
- package/lib/molecule/video-player/vimeo.js +5 -50
- package/lib/molecule/video-player/vimeo.js.map +1 -1
- package/lib/molecule/video-player-mobile/index.native.js +4 -20
- package/lib/molecule/video-player-mobile/index.native.js.map +1 -1
- package/lib/molecule/wizard-summary/index.js +6 -33
- package/lib/molecule/wizard-summary/index.js.map +1 -1
- package/lib/organism/accordion/container/index.js +5 -24
- package/lib/organism/accordion/container/index.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/index.js +7 -28
- package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/part/index.js +4 -24
- package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
- package/lib/organism/accordion/part/index.js +2 -15
- package/lib/organism/accordion/part/index.js.map +1 -1
- package/lib/organism/accordion/toggler/index.js +4 -23
- package/lib/organism/accordion/toggler/index.js.map +1 -1
- package/lib/organism/brand-analytics/analytics-popin.js +2 -17
- package/lib/organism/brand-analytics/analytics-popin.js.map +1 -1
- package/lib/organism/brand-analytics/index.js +2 -25
- package/lib/organism/brand-analytics/index.js.map +1 -1
- package/lib/organism/brand-dashboard/index.js +3 -14
- package/lib/organism/brand-dashboard/index.js.map +1 -1
- package/lib/organism/brand-form/index.js +4 -23
- package/lib/organism/brand-form/index.js.map +1 -1
- package/lib/organism/brand-learning-priorities/index.js +6 -20
- package/lib/organism/brand-learning-priorities/index.js.map +1 -1
- package/lib/organism/brand-table/index.js +2 -15
- package/lib/organism/brand-table/index.js.map +1 -1
- package/lib/organism/brand-upload/index.js +3 -17
- package/lib/organism/brand-upload/index.js.map +1 -1
- package/lib/organism/cards-grid/index.js +2 -12
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/cart/index.js +2 -14
- package/lib/organism/cart/index.js.map +1 -1
- package/lib/organism/content-translation/index.js +7 -20
- package/lib/organism/content-translation/index.js.map +1 -1
- package/lib/organism/course-selection/index.js +3 -22
- package/lib/organism/course-selection/index.js.map +1 -1
- package/lib/organism/discussion/index.js +5 -18
- package/lib/organism/discussion/index.js.map +1 -1
- package/lib/organism/get-the-app/index.js +4 -24
- package/lib/organism/get-the-app/index.js.map +1 -1
- package/lib/organism/grid-list/index.js +2 -9
- package/lib/organism/grid-list/index.js.map +1 -1
- package/lib/organism/header/index.js +2 -12
- package/lib/organism/header/index.js.map +1 -1
- package/lib/organism/header-v2/index.native.js +8 -24
- package/lib/organism/header-v2/index.native.js.map +1 -1
- package/lib/organism/hero/index.js +2 -14
- package/lib/organism/hero/index.js.map +1 -1
- package/lib/organism/list-item/index.js +3 -25
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-items/index.js +7 -26
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/mobile-intro-popin/index.native.js +4 -20
- package/lib/organism/mobile-intro-popin/index.native.js.map +1 -1
- package/lib/organism/mobile-navigation/index.native.js +4 -21
- package/lib/organism/mobile-navigation/index.native.js.map +1 -1
- package/lib/organism/mooc/image-slider/index.js +3 -13
- package/lib/organism/mooc/image-slider/index.js.map +1 -1
- package/lib/organism/mooc-footer/index.js +12 -25
- package/lib/organism/mooc-footer/index.js.map +1 -1
- package/lib/organism/mooc-header/index.js +11 -71
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/popin/index.js +2 -15
- package/lib/organism/popin/index.js.map +1 -1
- package/lib/organism/resource-browser/index.js +3 -20
- package/lib/organism/resource-browser/index.js.map +1 -1
- package/lib/organism/review-congrats/index.js +6 -22
- package/lib/organism/review-congrats/index.js.map +1 -1
- package/lib/organism/review-congrats/index.native.js +14 -30
- package/lib/organism/review-congrats/index.native.js.map +1 -1
- package/lib/organism/review-congrats/prop-types.js +2 -8
- package/lib/organism/review-congrats/prop-types.js.map +1 -1
- package/lib/organism/review-header/index.js +4 -18
- package/lib/organism/review-header/index.js.map +1 -1
- package/lib/organism/review-header/index.native.js +3 -14
- package/lib/organism/review-header/index.native.js.map +1 -1
- package/lib/organism/review-header/types.js +2 -7
- package/lib/organism/review-header/types.js.map +1 -1
- package/lib/organism/review-no-skills/index.js +2 -10
- package/lib/organism/review-no-skills/index.js.map +1 -1
- package/lib/organism/review-no-skills/index.native.js +3 -16
- package/lib/organism/review-no-skills/index.native.js.map +1 -1
- package/lib/organism/review-no-skills/prop-types.js +2 -6
- package/lib/organism/review-no-skills/prop-types.js.map +1 -1
- package/lib/organism/review-skills/index.js +2 -11
- package/lib/organism/review-skills/index.js.map +1 -1
- package/lib/organism/review-skills/index.native.js +2 -11
- package/lib/organism/review-skills/index.native.js.map +1 -1
- package/lib/organism/review-skills/prop-types.js +2 -7
- package/lib/organism/review-skills/prop-types.js.map +1 -1
- package/lib/organism/review-slide/index.js +10 -34
- package/lib/organism/review-slide/index.js.map +1 -1
- package/lib/organism/review-slide/index.native.js +12 -39
- package/lib/organism/review-slide/index.native.js.map +1 -1
- package/lib/organism/review-slide/prop-types.js +3 -12
- package/lib/organism/review-slide/prop-types.js.map +1 -1
- package/lib/organism/review-stacked-slides/index.js +5 -23
- package/lib/organism/review-stacked-slides/index.js.map +1 -1
- package/lib/organism/review-stacked-slides/index.native.js +10 -26
- package/lib/organism/review-stacked-slides/index.native.js.map +1 -1
- package/lib/organism/review-stacked-slides/prop-types.js +4 -11
- package/lib/organism/review-stacked-slides/prop-types.js.map +1 -1
- package/lib/organism/rewards-form/index.js +2 -11
- package/lib/organism/rewards-form/index.js.map +1 -1
- package/lib/organism/search-and-chips-results/index.js +3 -19
- package/lib/organism/search-and-chips-results/index.js.map +1 -1
- package/lib/organism/select-opponents/index.js +2 -12
- package/lib/organism/select-opponents/index.js.map +1 -1
- package/lib/organism/select-opponents/types.js +3 -9
- package/lib/organism/select-opponents/types.js.map +1 -1
- package/lib/organism/settings/index.js +5 -21
- package/lib/organism/settings/index.js.map +1 -1
- package/lib/organism/setup-header/index.js +2 -18
- package/lib/organism/setup-header/index.js.map +1 -1
- package/lib/organism/sidebar/index.js +23 -63
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/organism/slider/index.js +4 -27
- package/lib/organism/slider/index.js.map +1 -1
- package/lib/organism/title-and-input/index.js +3 -18
- package/lib/organism/title-and-input/index.js.map +1 -1
- package/lib/organism/title-and-input/types.js +2 -10
- package/lib/organism/title-and-input/types.js.map +1 -1
- package/lib/organism/user-preferences/index.js +7 -23
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/wizard-contents/index.js +23 -52
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/template/activity/engine-stars.js +10 -33
- package/lib/template/activity/engine-stars.js.map +1 -1
- package/lib/template/activity/index.js +9 -33
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.js +6 -22
- package/lib/template/activity/progression-item.js.map +1 -1
- package/lib/template/activity/stars-summary.js +5 -28
- package/lib/template/activity/stars-summary.js.map +1 -1
- package/lib/template/app-player/loading/index.js +2 -11
- package/lib/template/app-player/loading/index.js.map +1 -1
- package/lib/template/app-player/player/index.js +3 -13
- package/lib/template/app-player/player/index.js.map +1 -1
- package/lib/template/app-player/player/slides/footer/index.js +5 -24
- package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/index.js +3 -14
- package/lib/template/app-player/player/slides/header/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/learner.js +7 -24
- package/lib/template/app-player/player/slides/header/learner.js.map +1 -1
- package/lib/template/app-player/player/slides/header/lives.js +2 -12
- package/lib/template/app-player/player/slides/header/lives.js.map +1 -1
- package/lib/template/app-player/player/slides/header/microlearning.js +5 -18
- package/lib/template/app-player/player/slides/header/microlearning.js.map +1 -1
- package/lib/template/app-player/player/slides/index.js +25 -90
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +13 -50
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-end/index.js +3 -16
- package/lib/template/app-player/popin-end/index.js.map +1 -1
- package/lib/template/app-player/popin-end/summary.js +13 -53
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-player/popin-header/index.js +15 -65
- package/lib/template/app-player/popin-header/index.js.map +1 -1
- package/lib/template/app-player/popin-no-access/index.js +2 -9
- package/lib/template/app-player/popin-no-access/index.js.map +1 -1
- package/lib/template/app-review/demo-ts/index.js +2 -8
- package/lib/template/app-review/demo-ts/index.js.map +1 -1
- package/lib/template/app-review/demo-ts/index.native.js +2 -8
- package/lib/template/app-review/demo-ts/index.native.js.map +1 -1
- package/lib/template/app-review/demo-ts/typings.js +2 -6
- package/lib/template/app-review/demo-ts/typings.js.map +1 -1
- package/lib/template/app-review/index.js +2 -11
- package/lib/template/app-review/index.js.map +1 -1
- package/lib/template/app-review/index.native.js +6 -19
- package/lib/template/app-review/index.native.js.map +1 -1
- package/lib/template/app-review/onboarding/index.js +2 -6
- package/lib/template/app-review/onboarding/index.js.map +1 -1
- package/lib/template/app-review/onboarding/index.native.js +2 -6
- package/lib/template/app-review/onboarding/index.native.js.map +1 -1
- package/lib/template/app-review/player/background-review.js +2 -8
- package/lib/template/app-review/player/background-review.js.map +1 -1
- package/lib/template/app-review/player/index.js +2 -16
- package/lib/template/app-review/player/index.js.map +1 -1
- package/lib/template/app-review/player/index.native.js +4 -21
- package/lib/template/app-review/player/index.native.js.map +1 -1
- package/lib/template/app-review/player/prop-types.js +4 -11
- package/lib/template/app-review/player/prop-types.js.map +1 -1
- package/lib/template/app-review/prop-types.js +4 -8
- package/lib/template/app-review/prop-types.js.map +1 -1
- package/lib/template/app-review/skills/index.js +2 -13
- package/lib/template/app-review/skills/index.js.map +1 -1
- package/lib/template/app-review/skills/index.native.js +4 -21
- package/lib/template/app-review/skills/index.native.js.map +1 -1
- package/lib/template/app-review/skills/prop-types.js +2 -7
- package/lib/template/app-review/skills/prop-types.js.map +1 -1
- package/lib/template/app-review/template-context.js +3 -18
- package/lib/template/app-review/template-context.js.map +1 -1
- package/lib/template/back-office/brand-create/index.js +2 -11
- package/lib/template/back-office/brand-create/index.js.map +1 -1
- package/lib/template/back-office/brand-list/index.js +4 -21
- package/lib/template/back-office/brand-list/index.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +39 -75
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js +2 -15
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
- package/lib/template/back-office/dashboard-preview/index.js +2 -33
- package/lib/template/back-office/dashboard-preview/index.js.map +1 -1
- package/lib/template/back-office/layout/index.js +2 -12
- package/lib/template/back-office/layout/index.js.map +1 -1
- package/lib/template/battle-requests/index.js +4 -15
- package/lib/template/battle-requests/index.js.map +1 -1
- package/lib/template/certification-detail/index.js +4 -28
- package/lib/template/certification-detail/index.js.map +1 -1
- package/lib/template/certifications/index.js +7 -22
- package/lib/template/certifications/index.js.map +1 -1
- package/lib/template/cockpit/jw-uploader/index.js +4 -14
- package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
- package/lib/template/common/authors/index.js +4 -22
- package/lib/template/common/authors/index.js.map +1 -1
- package/lib/template/common/coorp-header/content.js +2 -9
- package/lib/template/common/coorp-header/content.js.map +1 -1
- package/lib/template/common/coorp-header/index.js +2 -10
- package/lib/template/common/coorp-header/index.js.map +1 -1
- package/lib/template/common/dashboard/index.js +3 -37
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/discipline/index.js +4 -26
- package/lib/template/common/discipline/index.js.map +1 -1
- package/lib/template/common/faq-article-page/index.js +4 -14
- package/lib/template/common/faq-article-page/index.js.map +1 -1
- package/lib/template/common/faq-article-page/types.js +2 -7
- package/lib/template/common/faq-article-page/types.js.map +1 -1
- package/lib/template/common/faq-cards-page/index.js +3 -15
- package/lib/template/common/faq-cards-page/index.js.map +1 -1
- package/lib/template/common/faq-cards-page/types.js +2 -8
- package/lib/template/common/faq-cards-page/types.js.map +1 -1
- package/lib/template/common/faq-page/index.js +3 -15
- package/lib/template/common/faq-page/index.js.map +1 -1
- package/lib/template/common/faq-page/types.js +2 -10
- package/lib/template/common/faq-page/types.js.map +1 -1
- package/lib/template/common/privacy-policy-page/index.js +3 -15
- package/lib/template/common/privacy-policy-page/index.js.map +1 -1
- package/lib/template/common/privacy-policy-page/types.js +2 -10
- package/lib/template/common/privacy-policy-page/types.js.map +1 -1
- package/lib/template/common/search-page/index.js +5 -23
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/external-course/index.js +8 -31
- package/lib/template/external-course/index.js.map +1 -1
- package/lib/template/mobile-login/confirm-email-sent/index.native.js +6 -24
- package/lib/template/mobile-login/confirm-email-sent/index.native.js.map +1 -1
- package/lib/template/mobile-login/qr-code-scanner/index.native.js +12 -28
- package/lib/template/mobile-login/qr-code-scanner/index.native.js.map +1 -1
- package/lib/template/mobile-login/receive-email/index.native.js +4 -18
- package/lib/template/mobile-login/receive-email/index.native.js.map +1 -1
- package/lib/template/mobile-login/welcome/index.native.js +6 -26
- package/lib/template/mobile-login/welcome/index.native.js.map +1 -1
- package/lib/template/my-learning/index.js +5 -49
- package/lib/template/my-learning/index.js.map +1 -1
- package/lib/template/playlist-detail/index.js +4 -25
- package/lib/template/playlist-detail/index.js.map +1 -1
- package/lib/template/review-dashboard-skills/index.js +2 -11
- package/lib/template/review-dashboard-skills/index.js.map +1 -1
- package/lib/template/skill-detail/all-courses.js +5 -34
- package/lib/template/skill-detail/all-courses.js.map +1 -1
- package/lib/template/skill-detail/continue-learning.js +6 -21
- package/lib/template/skill-detail/continue-learning.js.map +1 -1
- package/lib/template/skill-detail/index.js +4 -27
- package/lib/template/skill-detail/index.js.map +1 -1
- package/lib/template/teams-dashboard/index.js +5 -21
- package/lib/template/teams-dashboard/index.js.map +1 -1
- package/lib/util/bubbling.js +1 -4
- package/lib/util/bubbling.js.map +1 -1
- package/lib/util/build-query-string.js +2 -7
- package/lib/util/build-query-string.js.map +1 -1
- package/lib/util/button-icons.js +2 -7
- package/lib/util/button-icons.js.map +1 -1
- package/lib/util/check-is-mobile.js +0 -2
- package/lib/util/check-is-mobile.js.map +1 -1
- package/lib/util/closest-step.js +1 -9
- package/lib/util/closest-step.js.map +1 -1
- package/lib/util/constants.js +1 -2
- package/lib/util/constants.js.map +1 -1
- package/lib/util/external-content.js +3 -10
- package/lib/util/external-content.js.map +1 -1
- package/lib/util/get-class-state.js +1 -5
- package/lib/util/get-class-state.js.map +1 -1
- package/lib/util/get-clean-uri.js +1 -4
- package/lib/util/get-clean-uri.js.map +1 -1
- package/lib/util/get-resized-image.js +6 -15
- package/lib/util/get-resized-image.js.map +1 -1
- package/lib/util/get-shadow-box-color-from-primary.js +0 -3
- package/lib/util/get-shadow-box-color-from-primary.js.map +1 -1
- package/lib/util/image.js +2 -8
- package/lib/util/image.js.map +1 -1
- package/lib/util/navigation.js +3 -16
- package/lib/util/navigation.js.map +1 -1
- package/lib/util/parse-template-string.js +2 -12
- package/lib/util/parse-template-string.js.map +1 -1
- package/lib/util/proptypes.js +6 -27
- package/lib/util/proptypes.js.map +1 -1
- package/lib/util/render-with-context.js +10 -23
- package/lib/util/render-with-context.js.map +1 -1
- package/lib/util/search-value-included.js +2 -9
- package/lib/util/search-value-included.js.map +1 -1
- package/lib/util/shallow-compare.js +2 -7
- package/lib/util/shallow-compare.js.map +1 -1
- package/lib/util/time-format.js +0 -4
- package/lib/util/time-format.js.map +1 -1
- package/lib/util/use-mobile-keyboard-visibility.js +1 -8
- package/lib/util/use-mobile-keyboard-visibility.js.map +1 -1
- package/lib/variables/analytics.js +1 -2
- package/lib/variables/analytics.js.map +1 -1
- package/lib/variables/brand.native.js +1 -2
- package/lib/variables/brand.native.js.map +1 -1
- package/lib/variables/colors.js +1 -2
- package/lib/variables/colors.js.map +1 -1
- package/lib/variables/default-mobile-translations.js +1 -2
- package/lib/variables/default-mobile-translations.js.map +1 -1
- package/lib/variables/shadow.js +1 -3
- package/lib/variables/shadow.js.map +1 -1
- package/lib/variables/theme.native.js +2 -6
- package/lib/variables/theme.native.js.map +1 -1
- package/lib/variables/vibration.js +1 -2
- package/lib/variables/vibration.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Select, { SelectOptionPropTypes } from '../../../atom/select';
|
|
5
5
|
import style from './style.css';
|
|
6
|
-
|
|
7
6
|
const DropDown = props => {
|
|
8
7
|
const {
|
|
9
8
|
options,
|
|
@@ -12,9 +11,7 @@ const DropDown = props => {
|
|
|
12
11
|
'aria-label': ariaLabel,
|
|
13
12
|
groupAriaLabel
|
|
14
13
|
} = props;
|
|
15
|
-
|
|
16
14
|
const currentSelection = _find('selected', options);
|
|
17
|
-
|
|
18
15
|
const defaultTheme = !currentSelection || currentSelection.validOption === false ? 'invalid' : 'question';
|
|
19
16
|
const theme = propsTheme || defaultTheme;
|
|
20
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -28,7 +25,6 @@ const DropDown = props => {
|
|
|
28
25
|
onChange: onChange
|
|
29
26
|
}));
|
|
30
27
|
};
|
|
31
|
-
|
|
32
28
|
DropDown.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
33
29
|
onChange: Select.propTypes.onChange,
|
|
34
30
|
options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Select","SelectOptionPropTypes","style","DropDown","props","options","onChange","theme","propsTheme","ariaLabel","groupAriaLabel","currentSelection","defaultTheme","validOption","wrapper","propTypes","arrayOf","shape","string"],"sources":["../../../../src/molecule/questions/drop-down/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {find} from 'lodash/fp';\nimport Select, {SelectOptionPropTypes} from '../../../atom/select';\nimport style from './style.css';\n\nconst DropDown = props => {\n const {options, onChange, theme: propsTheme, 'aria-label': ariaLabel, groupAriaLabel} = props;\n\n const currentSelection = find('selected', options);\n const defaultTheme =\n !currentSelection || currentSelection.validOption === false ? 'invalid' : 'question';\n\n const theme = propsTheme || defaultTheme;\n\n return (\n <div className={style.wrapper} role=\"group\" aria-label={groupAriaLabel}>\n <Select aria-label={ariaLabel} theme={theme} options={options} onChange={onChange} />\n </div>\n );\n};\n\nDropDown.propTypes = {\n onChange: Select.propTypes.onChange,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n theme: Select.propTypes.theme,\n 'aria-label': PropTypes.string,\n groupAriaLabel: PropTypes.string\n};\n\nexport default DropDown;\n"],"mappings":";AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Select","SelectOptionPropTypes","style","DropDown","props","options","onChange","theme","propsTheme","ariaLabel","groupAriaLabel","currentSelection","_find","defaultTheme","validOption","createElement","className","wrapper","role","propTypes","process","env","NODE_ENV","arrayOf","shape","string"],"sources":["../../../../src/molecule/questions/drop-down/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {find} from 'lodash/fp';\nimport Select, {SelectOptionPropTypes} from '../../../atom/select';\nimport style from './style.css';\n\nconst DropDown = props => {\n const {options, onChange, theme: propsTheme, 'aria-label': ariaLabel, groupAriaLabel} = props;\n\n const currentSelection = find('selected', options);\n const defaultTheme =\n !currentSelection || currentSelection.validOption === false ? 'invalid' : 'question';\n\n const theme = propsTheme || defaultTheme;\n\n return (\n <div className={style.wrapper} role=\"group\" aria-label={groupAriaLabel}>\n <Select aria-label={ariaLabel} theme={theme} options={options} onChange={onChange} />\n </div>\n );\n};\n\nDropDown.propTypes = {\n onChange: Select.propTypes.onChange,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n theme: Select.propTypes.theme,\n 'aria-label': PropTypes.string,\n groupAriaLabel: PropTypes.string\n};\n\nexport default DropDown;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,MAAM,IAAGC,qBAAqB,QAAO,sBAAsB;AAClE,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,QAAQ,GAAGC,KAAK,IAAI;EACxB,MAAM;IAACC,OAAO;IAAEC,QAAQ;IAAEC,KAAK,EAAEC,UAAU;IAAE,YAAY,EAAEC,SAAS;IAAEC;EAAc,CAAC,GAAGN,KAAK;EAE7F,MAAMO,gBAAgB,GAAGC,KAAA,CAAK,UAAU,EAAEP,OAAO,CAAC;EAClD,MAAMQ,YAAY,GAChB,CAACF,gBAAgB,IAAIA,gBAAgB,CAACG,WAAW,KAAK,KAAK,GAAG,SAAS,GAAG,UAAU;EAEtF,MAAMP,KAAK,GAAGC,UAAU,IAAIK,YAAY;EAExC,oBACEf,KAAA,CAAAiB,aAAA;IAAKC,SAAS,EAAEd,KAAK,CAACe,OAAQ;IAACC,IAAI,EAAC,OAAO;IAAC,cAAYR;EAAe,gBACrEZ,KAAA,CAAAiB,aAAA,CAACf,MAAM;IAAC,cAAYS,SAAU;IAACF,KAAK,EAAEA,KAAM;IAACF,OAAO,EAAEA,OAAQ;IAACC,QAAQ,EAAEA;EAAS,CAAE,CACjF,CAAC;AAEV,CAAC;AAEDH,QAAQ,CAACgB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACnBhB,QAAQ,EAAEN,MAAM,CAACmB,SAAS,CAACb,QAAQ;EACnCD,OAAO,EAAEN,SAAS,CAACwB,OAAO,CAACxB,SAAS,CAACyB,KAAK,CAACvB,qBAAqB,CAAC,CAAC;EAClEM,KAAK,EAAEP,MAAM,CAACmB,SAAS,CAACZ,KAAK;EAC7B,YAAY,EAAER,SAAS,CAAC0B,MAAM;EAC9Bf,cAAc,EAAEX,SAAS,CAAC0B;AAC5B,CAAC;AAED,eAAetB,QAAQ","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import { convert } from 'css-color-function';
|
|
6
6
|
import Provider, { GetSkinFromContext } from '../../../atom/provider';
|
|
7
7
|
import style from './style.css';
|
|
8
|
-
|
|
9
8
|
const FreeText = (props, legacyContext) => {
|
|
10
9
|
const skin = GetSkinFromContext(legacyContext);
|
|
11
10
|
const {
|
|
@@ -16,9 +15,7 @@ const FreeText = (props, legacyContext) => {
|
|
|
16
15
|
} = props;
|
|
17
16
|
const [hovered, setHovered] = useState(false);
|
|
18
17
|
const handleChange = useCallback(e => onChange(e.target.value), [onChange]);
|
|
19
|
-
|
|
20
18
|
const primarySkinColor = _getOr('#00B0FF', 'common.primary', skin);
|
|
21
|
-
|
|
22
19
|
const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);
|
|
23
20
|
const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);
|
|
24
21
|
const shadowBoxPrimaryColor = useMemo(() => convert(`color(${primarySkinColor} a(12%))`), [primarySkinColor]);
|
|
@@ -27,7 +24,8 @@ const FreeText = (props, legacyContext) => {
|
|
|
27
24
|
className: style.wrapper,
|
|
28
25
|
onMouseOver: handleMouseOver,
|
|
29
26
|
onMouseLeave: handleMouseLeave,
|
|
30
|
-
style: {
|
|
27
|
+
style: {
|
|
28
|
+
...(value && {
|
|
31
29
|
boxShadow: hovered ? 'none' : `0 4px 16px ${shadowBoxPrimaryColor}`
|
|
32
30
|
})
|
|
33
31
|
}
|
|
@@ -50,7 +48,6 @@ const FreeText = (props, legacyContext) => {
|
|
|
50
48
|
}
|
|
51
49
|
}));
|
|
52
50
|
};
|
|
53
|
-
|
|
54
51
|
FreeText.contextTypes = {
|
|
55
52
|
skin: Provider.childContextTypes.skin
|
|
56
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","useMemo","useState","PropTypes","convert","Provider","GetSkinFromContext","style","FreeText","props","legacyContext","skin","placeholder","value","onChange","ariaLabel","hovered","setHovered","handleChange","e","target","primarySkinColor","handleMouseOver","handleMouseLeave","shadowBoxPrimaryColor","wrapper","boxShadow","freeText","color","contextTypes","childContextTypes","propTypes","string","func"],"sources":["../../../../src/molecule/questions/free-text/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, getOr} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Provider, {GetSkinFromContext} from '../../../atom/provider';\nimport style from './style.css';\n\nconst FreeText = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const {placeholder = '', value = '', onChange = noop, 'aria-label': ariaLabel} = props;\n const [hovered, setHovered] = useState(false);\n\n const handleChange = useCallback(e => onChange(e.target.value), [onChange]);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const shadowBoxPrimaryColor = useMemo(\n () => convert(`color(${primarySkinColor} a(12%))`),\n [primarySkinColor]\n );\n\n return (\n <div\n data-name=\"freeText\"\n className={style.wrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n style={{\n ...(value && {\n boxShadow: hovered ? 'none' : `0 4px 16px ${shadowBoxPrimaryColor}`\n })\n }}\n >\n <input\n data-name=\"free-text-input\"\n type=\"text\"\n aria-label={ariaLabel || value || placeholder}\n title={ariaLabel || value || placeholder}\n className={style.freeText}\n placeholder={placeholder}\n value={value}\n onInput={handleChange}\n onChange={noop}\n style={{\n boxShadow: `0 4px 16px ${shadowBoxPrimaryColor}`,\n ...(value && {\n boxShadow: `0 4px 16px ${\n hovered ? convert(`color(${primarySkinColor} a(20%))`) : shadowBoxPrimaryColor\n }`\n }),\n color: primarySkinColor\n }}\n />\n </div>\n );\n};\n\nFreeText.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nFreeText.propTypes = {\n placeholder: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string\n};\n\nexport default FreeText;\n"],"mappings":";;AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useMemo","useState","PropTypes","convert","Provider","GetSkinFromContext","style","FreeText","props","legacyContext","skin","placeholder","value","onChange","_noop","ariaLabel","hovered","setHovered","handleChange","e","target","primarySkinColor","_getOr","handleMouseOver","handleMouseLeave","shadowBoxPrimaryColor","createElement","className","wrapper","onMouseOver","onMouseLeave","boxShadow","type","title","freeText","onInput","color","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","string","func"],"sources":["../../../../src/molecule/questions/free-text/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, getOr} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Provider, {GetSkinFromContext} from '../../../atom/provider';\nimport style from './style.css';\n\nconst FreeText = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const {placeholder = '', value = '', onChange = noop, 'aria-label': ariaLabel} = props;\n const [hovered, setHovered] = useState(false);\n\n const handleChange = useCallback(e => onChange(e.target.value), [onChange]);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const shadowBoxPrimaryColor = useMemo(\n () => convert(`color(${primarySkinColor} a(12%))`),\n [primarySkinColor]\n );\n\n return (\n <div\n data-name=\"freeText\"\n className={style.wrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n style={{\n ...(value && {\n boxShadow: hovered ? 'none' : `0 4px 16px ${shadowBoxPrimaryColor}`\n })\n }}\n >\n <input\n data-name=\"free-text-input\"\n type=\"text\"\n aria-label={ariaLabel || value || placeholder}\n title={ariaLabel || value || placeholder}\n className={style.freeText}\n placeholder={placeholder}\n value={value}\n onInput={handleChange}\n onChange={noop}\n style={{\n boxShadow: `0 4px 16px ${shadowBoxPrimaryColor}`,\n ...(value && {\n boxShadow: `0 4px 16px ${\n hovered ? convert(`color(${primarySkinColor} a(20%))`) : shadowBoxPrimaryColor\n }`\n }),\n color: primarySkinColor\n }}\n />\n </div>\n );\n};\n\nFreeText.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nFreeText.propTypes = {\n placeholder: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string\n};\n\nexport default FreeText;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AAC3D,OAAOC,SAAS,MAAM,YAAY;AAElC,SAAQC,OAAO,QAAO,oBAAoB;AAC1C,OAAOC,QAAQ,IAAGC,kBAAkB,QAAO,wBAAwB;AACnE,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,QAAQ,GAAGA,CAACC,KAAK,EAAEC,aAAa,KAAK;EACzC,MAAMC,IAAI,GAAGL,kBAAkB,CAACI,aAAa,CAAC;EAC9C,MAAM;IAACE,WAAW,GAAG,EAAE;IAAEC,KAAK,GAAG,EAAE;IAAEC,QAAQ,GAAAC,KAAO;IAAE,YAAY,EAAEC;EAAS,CAAC,GAAGP,KAAK;EACtF,MAAM,CAACQ,OAAO,EAAEC,UAAU,CAAC,GAAGhB,QAAQ,CAAC,KAAK,CAAC;EAE7C,MAAMiB,YAAY,GAAGnB,WAAW,CAACoB,CAAC,IAAIN,QAAQ,CAACM,CAAC,CAACC,MAAM,CAACR,KAAK,CAAC,EAAE,CAACC,QAAQ,CAAC,CAAC;EAC3E,MAAMQ,gBAAgB,GAAGC,MAAA,CAAM,SAAS,EAAE,gBAAgB,EAAEZ,IAAI,CAAC;EAEjE,MAAMa,eAA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AAQ,CAACkC,iBAAiB,CAAC5B;AACnC,CAAC;AAEDH,QAAQ,CAACgC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACnB/B,WAAW,EAAET,SAAS,CAACyC,MAAM;EAC7B/B,KAAK,EAAEV,SAAS,CAACyC,MAAM;EACvB9B,QAAQ,EAAEX,SAAS,CAAC0C,IAAI;EACxB,YAAY,EAAE1C,SAAS,CAACyC;AAC1B,CAAC;AAED,eAAepC,QAAQ","ignoreList":[]}
|
|
@@ -3,7 +3,6 @@ import React, { useState, useEffect, useCallback } from 'react';
|
|
|
3
3
|
import { useTemplateContext } from '../../../template/app-review/template-context';
|
|
4
4
|
import { ANALYTICS_EVENT_TYPE } from '../../../variables/analytics';
|
|
5
5
|
import { BOX_STYLE } from '../../../variables/shadow';
|
|
6
|
-
|
|
7
6
|
const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
|
|
8
7
|
// eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread
|
|
9
8
|
input: {
|
|
@@ -30,14 +29,12 @@ const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
|
|
|
30
29
|
width: '100%'
|
|
31
30
|
}
|
|
32
31
|
});
|
|
33
|
-
|
|
34
32
|
const logEvent = (eventName, analytics, questionType) => {
|
|
35
33
|
analytics && analytics.logEvent(eventName, {
|
|
36
34
|
id: `question-input-text`,
|
|
37
35
|
questionType
|
|
38
36
|
});
|
|
39
37
|
};
|
|
40
|
-
|
|
41
38
|
const FreeText = props => {
|
|
42
39
|
const templateContext = useTemplateContext();
|
|
43
40
|
const [styleSheet, setStylesheet] = useState(null);
|
|
@@ -46,7 +43,9 @@ const FreeText = props => {
|
|
|
46
43
|
theme,
|
|
47
44
|
translations
|
|
48
45
|
} = templateContext;
|
|
49
|
-
const PLACEHOLDER_COLOR = theme.colors.gray.medium;
|
|
46
|
+
const PLACEHOLDER_COLOR = theme.colors.gray.medium;
|
|
47
|
+
|
|
48
|
+
// ------------------------------------
|
|
50
49
|
|
|
51
50
|
const {
|
|
52
51
|
analytics,
|
|
@@ -56,21 +55,25 @@ const FreeText = props => {
|
|
|
56
55
|
onChange,
|
|
57
56
|
isDisabled = false,
|
|
58
57
|
value
|
|
59
|
-
} = props;
|
|
58
|
+
} = props;
|
|
59
|
+
|
|
60
|
+
// ------------------------------------
|
|
60
61
|
|
|
61
62
|
const handleFocus = useCallback(() => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_FOCUS, analytics, questionType), [analytics, questionType]);
|
|
62
|
-
const handleBlur = useCallback(() => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_BLUR, analytics, questionType), [analytics, questionType]);
|
|
63
|
+
const handleBlur = useCallback(() => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_BLUR, analytics, questionType), [analytics, questionType]);
|
|
64
|
+
|
|
65
|
+
// ------------------------------------
|
|
63
66
|
|
|
64
67
|
useEffect(() => {
|
|
65
68
|
const _stylesheet = createStyleSheet(brandTheme, theme);
|
|
66
|
-
|
|
67
69
|
setStylesheet(_stylesheet);
|
|
68
|
-
}, [brandTheme, theme]);
|
|
70
|
+
}, [brandTheme, theme]);
|
|
71
|
+
|
|
72
|
+
// ------------------------------------
|
|
69
73
|
|
|
70
74
|
if (!styleSheet) {
|
|
71
75
|
return null;
|
|
72
76
|
}
|
|
73
|
-
|
|
74
77
|
return /*#__PURE__*/React.createElement(View, {
|
|
75
78
|
style: [styleSheet.spaced, fullWidth && styleSheet.fullWitdh]
|
|
76
79
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
@@ -86,6 +89,5 @@ const FreeText = props => {
|
|
|
86
89
|
selectTextOnFocus: !isDisabled
|
|
87
90
|
}));
|
|
88
91
|
};
|
|
89
|
-
|
|
90
92
|
export default FreeText;
|
|
91
93
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["View","StyleSheet","TextInput","React","useState","useEffect","useCallback","useTemplateContext","ANALYTICS_EVENT_TYPE","BOX_STYLE","createStyleSheet","brandTheme","theme","create","input","padding","spacing","tiny","borderColor","colors","gray","lightMedium","borderRadius","radius","regular","minWidth","marginHorizontal","paddingVertical","backgroundColor","white","text","primary","color","medium","fontWeight","bold","fontSize","textAlign","spaced","fullWitdh","width","logEvent","eventName","analytics","questionType","id","FreeText","props","templateContext","styleSheet","setStylesheet","translations","PLACEHOLDER_COLOR","fullWidth","testID","onChange","isDisabled","value","handleFocus","INPUT_FOCUS","handleBlur","INPUT_BLUR","_stylesheet","typeHere"],"sources":["../../../../src/molecule/questions/free-text/index.native.tsx"],"sourcesContent":["import {View, StyleSheet, TextInput, ViewStyle} from 'react-native';\nimport React, {useState, useEffect, useCallback} from 'react';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE, Analytics} from '../../../variables/analytics';\nimport {Theme} from '../../../variables/theme.native';\nimport {BOX_STYLE} from '../../../variables/shadow';\nimport {Brand} from '../../../variables/brand.native';\n\ntype QuestionType = 'basic' | 'template';\n\ninterface Props {\n fullWidth?: boolean;\n testID: string;\n questionType: QuestionType;\n analytics?: Analytics;\n onChange: (text: string) => void;\n isDisabled?: boolean;\n value?: string; // when value is undefined, TextInput acts as not controlled\n}\n\ntype StyleSheetType = {\n input: ViewStyle;\n text: ViewStyle;\n spaced: ViewStyle;\n fullWitdh: ViewStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n // eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread\n input: {\n padding: theme.spacing.tiny,\n borderColor: theme.colors.gray.lightMedium,\n borderRadius: theme.radius.regular,\n minWidth: 175,\n marginHorizontal: 12,\n paddingVertical: 16,\n ...BOX_STYLE,\n backgroundColor: theme.colors.white\n },\n text: {\n borderColor: brandTheme?.colors?.primary,\n color: brandTheme?.colors?.primary || theme.colors.gray.medium,\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.regular,\n textAlign: 'center'\n },\n spaced: {\n paddingVertical: theme.spacing.tiny\n },\n fullWitdh: {\n width: '100%'\n }\n });\n\nconst logEvent = (eventName: string, analytics: Analytics, questionType: QuestionType) => {\n analytics &&\n analytics.logEvent(eventName, {\n id: `question-input-text`,\n questionType\n });\n};\n\nconst FreeText = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme, translations} = templateContext;\n const PLACEHOLDER_COLOR = theme.colors.gray.medium;\n\n // ------------------------------------\n\n const {\n analytics,\n questionType,\n fullWidth = false,\n testID,\n onChange,\n isDisabled = false,\n value\n } = props;\n\n // ------------------------------------\n\n const handleFocus = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_FOCUS, analytics, questionType),\n [analytics, questionType]\n );\n\n const handleBlur = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_BLUR, analytics, questionType),\n [analytics, questionType]\n );\n\n // ------------------------------------\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={[styleSheet.spaced, fullWidth && styleSheet.fullWitdh]}>\n <TextInput\n style={[styleSheet.input, styleSheet.text]}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChangeText={onChange}\n placeholder={translations.typeHere}\n placeholderTextColor={PLACEHOLDER_COLOR}\n value={value}\n testID={testID}\n editable={!isDisabled}\n selectTextOnFocus={!isDisabled}\n />\n </View>\n );\n};\n\nexport default FreeText;\n"],"mappings":"AAAA,SAAQA,
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["View","StyleSheet","TextInput","React","useState","useEffect","useCallback","useTemplateContext","ANALYTICS_EVENT_TYPE","BOX_STYLE","createStyleSheet","brandTheme","theme","create","input","padding","spacing","tiny","borderColor","colors","gray","lightMedium","borderRadius","radius","regular","minWidth","marginHorizontal","paddingVertical","backgroundColor","white","text","primary","color","medium","fontWeight","bold","fontSize","textAlign","spaced","fullWitdh","width","logEvent","eventName","analytics","questionType","id","FreeText","props","templateContext","styleSheet","setStylesheet","translations","PLACEHOLDER_COLOR","fullWidth","testID","onChange","isDisabled","value","handleFocus","INPUT_FOCUS","handleBlur","INPUT_BLUR","_stylesheet","createElement","style","onFocus","onBlur","onChangeText","placeholder","typeHere","placeholderTextColor","editable","selectTextOnFocus"],"sources":["../../../../src/molecule/questions/free-text/index.native.tsx"],"sourcesContent":["import {View, StyleSheet, TextInput, ViewStyle} from 'react-native';\nimport React, {useState, useEffect, useCallback} from 'react';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE, Analytics} from '../../../variables/analytics';\nimport {Theme} from '../../../variables/theme.native';\nimport {BOX_STYLE} from '../../../variables/shadow';\nimport {Brand} from '../../../variables/brand.native';\n\ntype QuestionType = 'basic' | 'template';\n\ninterface Props {\n fullWidth?: boolean;\n testID: string;\n questionType: QuestionType;\n analytics?: Analytics;\n onChange: (text: string) => void;\n isDisabled?: boolean;\n value?: string; // when value is undefined, TextInput acts as not controlled\n}\n\ntype StyleSheetType = {\n input: ViewStyle;\n text: ViewStyle;\n spaced: ViewStyle;\n fullWitdh: ViewStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n // eslint-disable-next-line @coorpacademy/coorpacademy/no-overwriting-spread\n input: {\n padding: theme.spacing.tiny,\n borderColor: theme.colors.gray.lightMedium,\n borderRadius: theme.radius.regular,\n minWidth: 175,\n marginHorizontal: 12,\n paddingVertical: 16,\n ...BOX_STYLE,\n backgroundColor: theme.colors.white\n },\n text: {\n borderColor: brandTheme?.colors?.primary,\n color: brandTheme?.colors?.primary || theme.colors.gray.medium,\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.regular,\n textAlign: 'center'\n },\n spaced: {\n paddingVertical: theme.spacing.tiny\n },\n fullWitdh: {\n width: '100%'\n }\n });\n\nconst logEvent = (eventName: string, analytics: Analytics, questionType: QuestionType) => {\n analytics &&\n analytics.logEvent(eventName, {\n id: `question-input-text`,\n questionType\n });\n};\n\nconst FreeText = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme, translations} = templateContext;\n const PLACEHOLDER_COLOR = theme.colors.gray.medium;\n\n // ------------------------------------\n\n const {\n analytics,\n questionType,\n fullWidth = false,\n testID,\n onChange,\n isDisabled = false,\n value\n } = props;\n\n // ------------------------------------\n\n const handleFocus = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_FOCUS, analytics, questionType),\n [analytics, questionType]\n );\n\n const handleBlur = useCallback(\n () => analytics && logEvent(ANALYTICS_EVENT_TYPE.INPUT_BLUR, analytics, questionType),\n [analytics, questionType]\n );\n\n // ------------------------------------\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n // ------------------------------------\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <View style={[styleSheet.spaced, fullWidth && styleSheet.fullWitdh]}>\n <TextInput\n style={[styleSheet.input, styleSheet.text]}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChangeText={onChange}\n placeholder={translations.typeHere}\n placeholderTextColor={PLACEHOLDER_COLOR}\n value={value}\n testID={testID}\n editable={!isDisabled}\n selectTextOnFocus={!isDisabled}\n />\n </View>\n );\n};\n\nexport default FreeText;\n"],"mappings":"AAAA,SAAQA,IAAI,EAAEC,UAAU,EAAEC,SAAS,QAAkB,cAAc;AACnE,OAAOC,KAAK,IAAGC,QAAQ,EAAEC,SAAS,EAAEC,WAAW,QAAO,OAAO;AAC7D,SAAQC,kBAAkB,QAAO,+CAA+C;AAChF,SAAQC,oBAAoB,QAAkB,8B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,OAAO,EAAEP,WAAY;IACrBQ,MAAM,EAAEN,UAAW;IACnBO,YAAY,EAAEZ,QAAS;IACvBa,WAAW,EAAEjB,YAAY,CAACkB,QAAS;IACnCC,oBAAoB,EAAElB,iBAAkB;IACxCK,KAAK,EAAEA,KAAM;IACbH,MAAM,EAAEA,MAAO;IACfiB,QAAQ,EAAE,CAACf,UAAW;IACtBgB,iBAAiB,EAAE,CAAChB;EAAW,CAChC,CACG,CAAC;AAEX,CAAC;AAED,eAAeV,QAAQ","ignoreList":[]}
|
|
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
3
|
import QuestionChoice from '../../../../atom/choice/index.native';
|
|
4
4
|
import { useTemplateContext } from '../../../../template/app-review/template-context';
|
|
5
|
-
|
|
6
5
|
const createSelectionStyle = theme => StyleSheet.create({
|
|
7
6
|
choice: {
|
|
8
7
|
margin: theme.spacing.micro
|
|
@@ -15,7 +14,6 @@ const createSelectionStyle = theme => StyleSheet.create({
|
|
|
15
14
|
color: theme.colors.gray.medium
|
|
16
15
|
}
|
|
17
16
|
});
|
|
18
|
-
|
|
19
17
|
const Selection = props => {
|
|
20
18
|
const templateContext = useTemplateContext();
|
|
21
19
|
const {
|
|
@@ -27,14 +25,11 @@ const Selection = props => {
|
|
|
27
25
|
const [styleSheet, setStylesheet] = useState(null);
|
|
28
26
|
useEffect(() => {
|
|
29
27
|
const _stylesheet = createSelectionStyle(theme);
|
|
30
|
-
|
|
31
28
|
setStylesheet(_stylesheet);
|
|
32
29
|
}, [theme]);
|
|
33
|
-
|
|
34
30
|
if (!styleSheet) {
|
|
35
31
|
return null;
|
|
36
32
|
}
|
|
37
|
-
|
|
38
33
|
const {
|
|
39
34
|
choices
|
|
40
35
|
} = props;
|
|
@@ -51,7 +46,6 @@ const Selection = props => {
|
|
|
51
46
|
style: styleSheet.selectionArea
|
|
52
47
|
}, mappedSortedChoices);
|
|
53
48
|
};
|
|
54
|
-
|
|
55
49
|
const createStyleSheet = theme => StyleSheet.create({
|
|
56
50
|
container: {
|
|
57
51
|
flex: 1
|
|
@@ -73,7 +67,6 @@ const createStyleSheet = theme => StyleSheet.create({
|
|
|
73
67
|
height: 2
|
|
74
68
|
}
|
|
75
69
|
});
|
|
76
|
-
|
|
77
70
|
const QuestionDraggable = props => {
|
|
78
71
|
const templateContext = useTemplateContext();
|
|
79
72
|
const {
|
|
@@ -82,14 +75,11 @@ const QuestionDraggable = props => {
|
|
|
82
75
|
const [styleSheet, setStylesheet] = useState(null);
|
|
83
76
|
useEffect(() => {
|
|
84
77
|
const _stylesheet = createStyleSheet(theme);
|
|
85
|
-
|
|
86
78
|
setStylesheet(_stylesheet);
|
|
87
79
|
}, [theme]);
|
|
88
|
-
|
|
89
80
|
if (!styleSheet) {
|
|
90
81
|
return null;
|
|
91
82
|
}
|
|
92
|
-
|
|
93
83
|
const {
|
|
94
84
|
choices,
|
|
95
85
|
onPress,
|
|
@@ -116,6 +106,5 @@ const QuestionDraggable = props => {
|
|
|
116
106
|
style: styleSheet.pickableChoices
|
|
117
107
|
}, pickableChoices));
|
|
118
108
|
};
|
|
119
|
-
|
|
120
109
|
export default QuestionDraggable;
|
|
121
110
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useEffect","useState","View","StyleSheet","QuestionChoice","useTemplateContext","createSelectionStyle","theme","create","choice","margin","spacing","micro","selectionArea","flexWrap","flexDirection","text","color","colors","gray","medium","Selection","props","templateContext","onPress","styleSheet","setStylesheet","_stylesheet","choices","mappedSortedChoices","map","item","_id","label","createStyleSheet","container","flex","pickableChoices","line","borderWidth","borderColor","borderRadius","marginHorizontal","marginBottom","marginTop","height","QuestionDraggable","
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useEffect","useState","View","StyleSheet","QuestionChoice","useTemplateContext","createSelectionStyle","theme","create","choice","margin","spacing","micro","selectionArea","flexWrap","flexDirection","text","color","colors","gray","medium","Selection","props","templateContext","onPress","styleSheet","setStylesheet","_stylesheet","choices","mappedSortedChoices","map","item","createElement","style","key","_id","squeezed","isSelected","testID","questionType","label","createStyleSheet","container","flex","pickableChoices","line","borderWidth","borderColor","borderRadius","marginHorizontal","marginBottom","marginTop","height","QuestionDraggable","selectedChoices","filter","selected"],"sources":["../../../../../src/molecule/questions/mobile/draggable/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport QuestionChoice from '../../../../atom/choice/index.native';\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {Theme} from '../../../../variables/theme.native';\n\nimport type {SelectableChoice} from '../../types';\n\nexport interface DropZoneProps {\n choices: Array<SelectableChoice>;\n onPress: (item: SelectableChoice) => () => void;\n}\n\ntype DropZoneStyleSheet = {\n choice: ViewStyle;\n selectionArea: ViewStyle;\n text: TextStyle;\n};\n\nconst createSelectionStyle = (theme: Theme): DropZoneStyleSheet =>\n StyleSheet.create({\n choice: {\n margin: theme.spacing.micro\n },\n selectionArea: {\n flexWrap: 'wrap',\n flexDirection: 'row'\n },\n text: {\n color: theme.colors.gray.medium\n }\n });\n\nconst Selection = (props: DropZoneProps) => {\n const templateContext = useTemplateContext();\n const {theme} = templateContext;\n const {onPress} = props;\n\n const [styleSheet, setStylesheet] = useState<DropZoneStyleSheet | null>(null);\n\n useEffect(() => {\n const _stylesheet = createSelectionStyle(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {choices} = props;\n const mappedSortedChoices = choices.map(item => (\n <QuestionChoice\n style={styleSheet.choice}\n key={item._id}\n squeezed\n isSelected\n testID={`choice-${item._id}`}\n onPress={onPress(item)}\n questionType=\"qcmDrag\"\n >\n {item.label}\n </QuestionChoice>\n ));\n\n return <View style={styleSheet.selectionArea}>{mappedSortedChoices}</View>;\n};\n\nexport interface Props {\n choices: Array<SelectableChoice>;\n testID?: string;\n onPress: (item: SelectableChoice) => () => void;\n}\n\ntype QuestionDraggableStyleSheet = {\n container: ViewStyle;\n pickableChoices: ViewStyle;\n choice: ViewStyle;\n line: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): QuestionDraggableStyleSheet =>\n StyleSheet.create({\n container: {\n flex: 1\n },\n pickableChoices: {\n flexDirection: 'row',\n flexWrap: 'wrap'\n },\n choice: {\n margin: theme.spacing.micro\n },\n line: {\n borderWidth: 1,\n borderColor: '#E1E1E3',\n borderRadius: 17,\n marginHorizontal: 4,\n marginBottom: 24,\n marginTop: 16,\n height: 2\n }\n });\n\nconst QuestionDraggable = (props: Props) => {\n const templateContext = useTemplateContext();\n const {theme} = templateContext;\n\n const [styleSheet, setStylesheet] = useState<QuestionDraggableStyleSheet | null>(null);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {choices, onPress, testID} = props;\n const selectedChoices = choices.filter(item => item.selected);\n\n const pickableChoices = choices\n .filter(item => !item.selected)\n .map((item: SelectableChoice) => (\n <QuestionChoice\n style={styleSheet.choice}\n key={item._id}\n squeezed\n testID={`choice-${item._id}-unselected`}\n onPress={onPress(item)}\n questionType=\"qcmDrag\"\n >\n {item.label}\n </QuestionChoice>\n ));\n\n return (\n <View testID={testID} style={styleSheet.container}>\n <Selection choices={selectedChoices} onPress={onPress} />\n <View style={styleSheet.line} />\n <View style={styleSheet.pickableChoices}>{pickableChoices}</View>\n </View>\n );\n};\n\nexport default QuestionDraggable;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,SAAS,EAAEC,QAAQ,QAAO,OAAO;AAChD,SAAQC,IAAI,EAAEC,UAAU,QAA6B,cAAc;AACnE,OAAOC,cAAc,MAAM,sCAAsC;AACjE,SAAQC,kBAAkB,QAAO,kDAAkD;AAgBnF,MAAMC,oBAAoB,GAAIC,KAAY,IACxCJ,UAA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AAG,CAAEC,IAAsB,iBAC1BhC,KAAA,CAAAiC,aAAA,CAAC5B,cAAc;IACb6B,KAAK,EAAER,UAAU,CAAChB,MAAO;IACzByB,GAAG,EAAEH,IAAI,CAACI,GAAI;IACdC,QAAQ;IACRE,MAAM,EAAE,UAAUP,IAAI,CAACI,GAAG,aAAc;IACxCX,OAAO,EAAEA,OAAO,CAACO,IAAI,CAAE;IACvBQ,YAAY,EAAC;EAAS,GAErBR,IAAI,CAACS,KACQ,CACjB,CAAC;EAEJ,oBACEzC,KAAA,CAAAiC,aAAA,CAAC9B,IAAI;IAACoC,MAAM,EAAEA,MAAO;IAACL,KAAK,EAAER,UAAU,CAACiB;EAAU,gBAChD3C,KAAA,CAAAiC,aAAA,CAACX,SAAS;IAACO,OAAO,EAAE0B,eAAgB;IAAC9B,OAAO,EAAEA;EAAQ,CAAE,CAAC,eACzDzB,KAAA,CAAAiC,aAAA,CAAC9B,IAAI;IAAC+B,KAAK,EAAER,UAAU,CAACoB;EAAK,CAAE,CAAC,eAChC9C,KAAA,CAAAiC,aAAA,CAAC9B,IAAI;IAAC+B,KAAK,EAAER,UAAU,CAACmB;EAAgB,GAAEA,eAAsB,CAC5D,CAAC;AAEX,CAAC;AAED,eAAeS,iBAAiB","ignoreList":[]}
|
|
@@ -4,7 +4,6 @@ import Slider from '@coorpacademy/react-native-slider';
|
|
|
4
4
|
import Text from '../../../../atom/text/index.native';
|
|
5
5
|
import { useTemplateContext } from '../../../../template/app-review/template-context';
|
|
6
6
|
import { BOX_STYLE } from '../../../../variables/shadow';
|
|
7
|
-
|
|
8
7
|
const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
|
|
9
8
|
container: {
|
|
10
9
|
flex: 1,
|
|
@@ -39,7 +38,8 @@ const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
|
|
|
39
38
|
height: 10,
|
|
40
39
|
borderRadius: theme.radius.button
|
|
41
40
|
},
|
|
42
|
-
thumb: {
|
|
41
|
+
thumb: {
|
|
42
|
+
...BOX_STYLE,
|
|
43
43
|
width: 30,
|
|
44
44
|
height: 30,
|
|
45
45
|
borderRadius: 30 / 2,
|
|
@@ -48,7 +48,6 @@ const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
|
|
|
48
48
|
borderColor: 'white'
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
|
-
|
|
52
51
|
const QuestionSlider = props => {
|
|
53
52
|
const {
|
|
54
53
|
step,
|
|
@@ -72,15 +71,13 @@ const QuestionSlider = props => {
|
|
|
72
71
|
}, [onSlidingComplete, value]);
|
|
73
72
|
useEffect(() => {
|
|
74
73
|
const _stylesheet = createStyleSheet(brandTheme, theme);
|
|
75
|
-
|
|
76
74
|
setStylesheet(_stylesheet);
|
|
77
75
|
}, [brandTheme, theme]);
|
|
78
|
-
|
|
79
76
|
if (!styleSheet) {
|
|
80
77
|
return null;
|
|
81
78
|
}
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
const textStyle = {
|
|
80
|
+
...styleSheet.header,
|
|
84
81
|
color: brandTheme?.colors?.primary
|
|
85
82
|
};
|
|
86
83
|
return /*#__PURE__*/React.createElement(View, {
|
|
@@ -115,6 +112,5 @@ const QuestionSlider = props => {
|
|
|
115
112
|
testID: "slider-max-value"
|
|
116
113
|
}, `${max} ${unit}`))));
|
|
117
114
|
};
|
|
118
|
-
|
|
119
115
|
export default QuestionSlider;
|
|
120
116
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","useCallback","View","StyleSheet","Slider","Text","useTemplateContext","BOX_STYLE","createStyleSheet","brandTheme","theme","create","container","flex","paddingHorizontal","flexDirection","justifyContent","header","fontSize","fontWeight","bold","textAlign","textValue","color","colors","black","valuesContainer","leftValue","alignItems","rightValue","track","height","borderRadius","radius","button","thumb","width","borderWidth","backgroundColor","primary","borderColor","QuestionSlider","props","step","style","min","max","unit","value","storeValue","onSlidingComplete","testID","templateContext","styleSheet","setStylesheet","setValue","handleSlidingComplete","_stylesheet","textStyle"],"sources":["../../../../../src/molecule/questions/mobile/slider/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect, useCallback} from 'react';\nimport {View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport Slider from '@coorpacademy/react-native-slider';\n\nimport {Theme} from '../../../../variables/theme.native';\nimport Text from '../../../../atom/text/index.native';\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {BOX_STYLE} from '../../../../variables/shadow';\nimport {Brand} from '../../../../variables/brand.native';\n\nexport type OnSlidingCompleteFunction = (value: number) => void;\n\nexport type Props = {\n min: number;\n max: number;\n value?: number;\n unit?: string;\n onSlidingComplete: OnSlidingCompleteFunction;\n style?: ViewStyle;\n step?: number;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n header: TextStyle;\n textValue: TextStyle;\n valuesContainer: ViewStyle;\n leftValue: ViewStyle;\n rightValue: ViewStyle;\n track: ViewStyle;\n thumb: ViewStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n paddingHorizontal: 20,\n flexDirection: 'column',\n justifyContent: 'center'\n },\n header: {\n fontSize: 25,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n textValue: {\n fontSize: 15,\n color: theme.colors.black,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n valuesContainer: {\n flexDirection: 'row',\n justifyContent: 'space-around'\n },\n leftValue: {\n flex: 1,\n alignItems: 'flex-start'\n },\n rightValue: {\n flex: 1,\n alignItems: 'flex-end'\n },\n track: {\n height: 10,\n borderRadius: theme.radius.button\n },\n thumb: {\n ...BOX_STYLE,\n width: 30,\n height: 30,\n borderRadius: 30 / 2,\n borderWidth: 5,\n backgroundColor: brandTheme?.colors?.primary,\n borderColor: 'white'\n }\n });\n\nconst QuestionSlider = (props: Props) => {\n const {\n step,\n style,\n min,\n max,\n unit = '',\n value: storeValue = 0,\n onSlidingComplete,\n testID\n } = props;\n const templateContext = useTemplateContext();\n const {brandTheme, theme} = templateContext;\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const [value, setValue] = useState<number>(storeValue);\n\n const handleSlidingComplete = useCallback(() => {\n onSlidingComplete(value);\n }, [onSlidingComplete, value]);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const textStyle: TextStyle = {\n ...styleSheet.header,\n color: brandTheme?.colors?.primary\n };\n\n return (\n <View style={[styleSheet.container, style]} testID={testID}>\n <Text style={textStyle} testID=\"slider-value\">\n {value}\n </Text>\n <Slider\n step={step || 1}\n value={value}\n onValueChange={setValue}\n maximumValue={max}\n minimumValue={min}\n onSlidingComplete={handleSlidingComplete}\n minimumTrackTintColor={brandTheme?.colors?.primary}\n trackStyle={styleSheet.track}\n thumbStyle={[styleSheet.thumb]}\n testID=\"slider\"\n />\n <View style={styleSheet.valuesContainer} testID=\"slider-values-container\">\n <View style={styleSheet.leftValue}>\n <Text style={styleSheet.textValue} testID=\"slider-min-value\">\n {`${min} ${unit}`}\n </Text>\n </View>\n <View style={styleSheet.rightValue}>\n <Text style={styleSheet.textValue} testID=\"slider-max-value\">\n {`${max} ${unit}`}\n </Text>\n </View>\n </View>\n </View>\n );\n};\n\nexport default QuestionSlider;\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","useCallback","View","StyleSheet","Slider","Text","useTemplateContext","BOX_STYLE","createStyleSheet","brandTheme","theme","create","container","flex","paddingHorizontal","flexDirection","justifyContent","header","fontSize","fontWeight","bold","textAlign","textValue","color","colors","black","valuesContainer","leftValue","alignItems","rightValue","track","height","borderRadius","radius","button","thumb","width","borderWidth","backgroundColor","primary","borderColor","QuestionSlider","props","step","style","min","max","unit","value","storeValue","onSlidingComplete","testID","templateContext","styleSheet","setStylesheet","setValue","handleSlidingComplete","_stylesheet","textStyle","createElement","onValueChange","maximumValue","minimumValue","minimumTrackTintColor","trackStyle","thumbStyle"],"sources":["../../../../../src/molecule/questions/mobile/slider/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect, useCallback} from 'react';\nimport {View, StyleSheet, ViewStyle, TextStyle} from 'react-native';\nimport Slider from '@coorpacademy/react-native-slider';\n\nimport {Theme} from '../../../../variables/theme.native';\nimport Text from '../../../../atom/text/index.native';\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {BOX_STYLE} from '../../../../variables/shadow';\nimport {Brand} from '../../../../variables/brand.native';\n\nexport type OnSlidingCompleteFunction = (value: number) => void;\n\nexport type Props = {\n min: number;\n max: number;\n value?: number;\n unit?: string;\n onSlidingComplete: OnSlidingCompleteFunction;\n style?: ViewStyle;\n step?: number;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n header: TextStyle;\n textValue: TextStyle;\n valuesContainer: ViewStyle;\n leftValue: ViewStyle;\n rightValue: ViewStyle;\n track: ViewStyle;\n thumb: ViewStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n flex: 1,\n paddingHorizontal: 20,\n flexDirection: 'column',\n justifyContent: 'center'\n },\n header: {\n fontSize: 25,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n textValue: {\n fontSize: 15,\n color: theme.colors.black,\n fontWeight: theme.fontWeight.bold,\n textAlign: 'center'\n },\n valuesContainer: {\n flexDirection: 'row',\n justifyContent: 'space-around'\n },\n leftValue: {\n flex: 1,\n alignItems: 'flex-start'\n },\n rightValue: {\n flex: 1,\n alignItems: 'flex-end'\n },\n track: {\n height: 10,\n borderRadius: theme.radius.button\n },\n thumb: {\n ...BOX_STYLE,\n width: 30,\n height: 30,\n borderRadius: 30 / 2,\n borderWidth: 5,\n backgroundColor: brandTheme?.colors?.primary,\n borderColor: 'white'\n }\n });\n\nconst QuestionSlider = (props: Props) => {\n const {\n step,\n style,\n min,\n max,\n unit = '',\n value: storeValue = 0,\n onSlidingComplete,\n testID\n } = props;\n const templateContext = useTemplateContext();\n const {brandTheme, theme} = templateContext;\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const [value, setValue] = useState<number>(storeValue);\n\n const handleSlidingComplete = useCallback(() => {\n onSlidingComplete(value);\n }, [onSlidingComplete, value]);\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [brandTheme, theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const textStyle: TextStyle = {\n ...styleSheet.header,\n color: brandTheme?.colors?.primary\n };\n\n return (\n <View style={[styleSheet.container, style]} testID={testID}>\n <Text style={textStyle} testID=\"slider-value\">\n {value}\n </Text>\n <Slider\n step={step || 1}\n value={value}\n onValueChange={setValue}\n maximumValue={max}\n minimumValue={min}\n onSlidingComplete={handleSlidingComplete}\n minimumTrackTintColor={brandTheme?.colors?.primary}\n trackStyle={styleSheet.track}\n thumbStyle={[styleSheet.thumb]}\n testID=\"slider\"\n />\n <View style={styleSheet.valuesContainer} testID=\"slider-values-container\">\n <View style={styleSheet.leftValue}>\n <Text style={styleSheet.textValue} testID=\"slider-min-value\">\n {`${min} ${unit}`}\n </Text>\n </View>\n <View style={styleSheet.rightValue}>\n <Text style={styleSheet.textValue} testID=\"slider-max-value\">\n {`${max} ${unit}`}\n </Text>\n </View>\n </View>\n </View>\n );\n};\n\nexport default QuestionSlider;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,QAAQ,EAAEC,SAAS,EAAEC,WAAW,QAAO,OAAO;AAC7D,SAAQC,IAAI,EAAEC,UAAU,QAA6B,cAAc;AACnE,OAAOC,MAAM,MAAM,mCAAmC;AAGtD,OAAOC,IAAI,MAAM,oCAAoC;AACrD,SAAQC,kBAAkB,QAAO,kDAAkD;AACnF,SAAQC,SAAS,QAAO,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,GAAI;IAClBgB,YAAY,EAAEjB,GAAI;IAClBK,iBAAiB,EAAEM,qBAAsB;IACzCO,qBAAqB,EAAEtD,UAAU,EAAEe,MAAM,EAAEe,OAAQ;IACnDyB,UAAU,EAAEX,UAAU,CAACvB,KAAM;IAC7BmC,UAAU,EAAE,CAACZ,UAAU,CAAClB,KAAK,CAAE;IAC/BgB,MAAM,EAAC;EAAQ,CAChB,CAAC,eACFrD,KAAA,CAAA6D,aAAA,CAACzD,IAAI;IAAC0C,KAAK,EAAES,UAAU,CAAC3B,eAAgB;IAACyB,MAAM,EAAC;EAAyB,gBACvErD,KAAA,CAAA6D,aAAA,CAACzD,IAAI;IAAC0C,KAAK,EAAES,UAAU,CAAC1B;EAAU,gBAChC7B,KAAA,CAAA6D,aAAA,CAACtD,IAAI;IAACuC,KAAK,EAAES,UAAU,CAAC/B,SAAU;IAAC6B,MAAM,EAAC;EAAkB,GACzD,GAAGN,GAAG,IAAIE,IAAI,EACX,CACF,CAAC,eACPjD,KAAA,CAAA6D,aAAA,CAACzD,IAAI;IAAC0C,KAAK,EAAES,UAAU,CAACxB;EAAW,gBACjC/B,KAAA,CAAA6D,aAAA,CAACtD,IAAI;IAACuC,KAAK,EAAES,UAAU,CAAC/B,SAAU;IAAC6B,MAAM,EAAC;EAAkB,GACzD,GAAGL,GAAG,IAAIC,IAAI,EACX,CACF,CACF,CACF,CAAC;AAEX,CAAC;AAED,eAAeN,cAAc","ignoreList":[]}
|
|
@@ -19,7 +19,6 @@ const styleSheet = StyleSheet.create({
|
|
|
19
19
|
paddingVertical: 5
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
|
|
23
22
|
const Switch = props => {
|
|
24
23
|
const templateContext = useTemplateContext();
|
|
25
24
|
const {
|
|
@@ -69,12 +68,10 @@ const Switch = props => {
|
|
|
69
68
|
id: 'slider',
|
|
70
69
|
questionType: 'slider'
|
|
71
70
|
});
|
|
72
|
-
|
|
73
71
|
if (onSliderChange) {
|
|
74
72
|
onSliderChange(_value);
|
|
75
73
|
}
|
|
76
74
|
}, [analytics, onSliderChange]);
|
|
77
|
-
|
|
78
75
|
switch (type) {
|
|
79
76
|
case 'qcm':
|
|
80
77
|
return /*#__PURE__*/React.createElement(View, {
|
|
@@ -88,7 +85,6 @@ const Switch = props => {
|
|
|
88
85
|
style: styleSheet.choice,
|
|
89
86
|
questionType: type
|
|
90
87
|
}, choice.label)));
|
|
91
|
-
|
|
92
88
|
case 'qcmGraphic':
|
|
93
89
|
return /*#__PURE__*/React.createElement(View, {
|
|
94
90
|
testID: "question-choices"
|
|
@@ -102,13 +98,11 @@ const Switch = props => {
|
|
|
102
98
|
style: styleSheet.choice,
|
|
103
99
|
questionType: type
|
|
104
100
|
}, choice.label)));
|
|
105
|
-
|
|
106
101
|
case 'slider':
|
|
107
102
|
{
|
|
108
103
|
if (min === undefined || max === undefined) {
|
|
109
104
|
return /*#__PURE__*/React.createElement(View, null);
|
|
110
105
|
}
|
|
111
|
-
|
|
112
106
|
return /*#__PURE__*/React.createElement(QuestionSlider, {
|
|
113
107
|
min: min,
|
|
114
108
|
max: max,
|
|
@@ -119,14 +113,12 @@ const Switch = props => {
|
|
|
119
113
|
testID: "question-slider"
|
|
120
114
|
});
|
|
121
115
|
}
|
|
122
|
-
|
|
123
116
|
case 'template':
|
|
124
117
|
if (handleBlur === undefined || handleFocus === undefined || focusedSelectId === undefined) {
|
|
125
118
|
// eslint-disable-next-line no-console
|
|
126
119
|
console.warn('type template must implement handleFocus etc within Context.store');
|
|
127
120
|
return /*#__PURE__*/React.createElement(View, null);
|
|
128
121
|
}
|
|
129
|
-
|
|
130
122
|
return /*#__PURE__*/React.createElement(View, {
|
|
131
123
|
testID: "question-choices"
|
|
132
124
|
}, /*#__PURE__*/React.createElement(QuestionTemplate, {
|
|
@@ -138,7 +130,6 @@ const Switch = props => {
|
|
|
138
130
|
handleFocus: handleFocus,
|
|
139
131
|
focusedSelectId: focusedSelectId
|
|
140
132
|
}));
|
|
141
|
-
|
|
142
133
|
case 'qcmDrag':
|
|
143
134
|
return /*#__PURE__*/React.createElement(View, {
|
|
144
135
|
testID: "question-draggable"
|
|
@@ -146,12 +137,10 @@ const Switch = props => {
|
|
|
146
137
|
choices: choices,
|
|
147
138
|
onPress: handleChoicePress
|
|
148
139
|
}));
|
|
149
|
-
|
|
150
140
|
case 'basic':
|
|
151
141
|
if (!onInputValueChange) {
|
|
152
142
|
return /*#__PURE__*/React.createElement(View, null);
|
|
153
143
|
}
|
|
154
|
-
|
|
155
144
|
return /*#__PURE__*/React.createElement(FreeText, {
|
|
156
145
|
fullWidth: true,
|
|
157
146
|
onChange: onInputValueChange,
|
|
@@ -159,11 +148,9 @@ const Switch = props => {
|
|
|
159
148
|
questionType: "basic",
|
|
160
149
|
isDisabled: isDisabled
|
|
161
150
|
});
|
|
162
|
-
|
|
163
151
|
default:
|
|
164
152
|
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, null, "Unhandled type: ", type));
|
|
165
153
|
}
|
|
166
154
|
};
|
|
167
|
-
|
|
168
155
|
export default Switch;
|
|
169
156
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useCallback","View","StyleSheet","Text","QuestionChoice","QuestionDraggable","QuestionTemplate","QuestionSlider","FreeText","useTemplateContext","ANALYTICS_EVENT_TYPE","styleSheet","create","cards","flexDirection","alignItems","card","flex","choice","paddingVertical","Switch","props","templateContext","analytics","store","focusedSelectId","handleBlur","handleFocus","type","template","isDisabled","choices","min","max","unit","value","step","onSliderChange","onItemPress","onItemInputChange","onInputValueChange","handleChoicePress","onPress","handleItemInputChange","_value","handleSlidingComplete","logEvent","SLIDE","id","questionType","map","_id","selected","label","media","undefined","console","warn"],"sources":["../../../../../src/molecule/questions/mobile/switch/index.native.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {View, StyleSheet, Text, ViewStyle} from 'react-native';\n\nimport QuestionChoice from '../../../../atom/choice/index.native';\nimport QuestionDraggable from '../draggable/index.native';\nimport QuestionTemplate from '../template/index.native';\nimport QuestionSlider from '../slider/index.native';\nimport FreeText from '../../free-text/index.native';\n\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE} from '../../../../variables/analytics';\n\nimport type {\n QuestionType,\n Choice,\n TemplateListOfChoices,\n TemplateTextChoice,\n SelectableChoice\n} from '../../types';\n\nexport type Props = {\n type: QuestionType;\n isDisabled?: boolean;\n template?: string;\n choices?: Array<Choice>;\n min?: number;\n max?: number;\n unit?: string;\n step?: number;\n value?: number;\n onInputValueChange?: (value: string) => void;\n onSliderChange?: (value: number) => void;\n // --- mobile learner only\n onItemInputChange?: (item: Choice, value: string) => void;\n onItemPress?: (item: Choice) => void;\n};\n\ntype StyleSheetType = {\n cards: ViewStyle;\n card: ViewStyle;\n choice: ViewStyle;\n};\n\nconst styleSheet: StyleSheetType = StyleSheet.create({\n cards: {\n flexDirection: 'row',\n alignItems: 'stretch'\n },\n card: {\n flex: 1\n },\n choice: {\n paddingVertical: 5\n }\n});\n\nconst Switch = (props: Props) => {\n const templateContext = useTemplateContext();\n const {analytics, store} = templateContext;\n const {focusedSelectId, handleBlur, handleFocus} = store;\n\n const {\n type,\n template,\n isDisabled,\n choices = [],\n min,\n max,\n unit,\n value,\n step,\n onSliderChange,\n onItemPress,\n onItemInputChange,\n onInputValueChange\n } = props;\n\n const handleChoicePress = useCallback(\n (choice: Choice) => () => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress();\n } else if (onItemPress) {\n // e.g. learner\n onItemPress(choice);\n }\n },\n [onItemPress]\n );\n\n const handleItemInputChange = useCallback(\n (choice: Choice, _value: string) => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress(_value);\n } else if (onItemInputChange) {\n // e.g. learner\n onItemInputChange(choice, _value);\n }\n },\n [onItemInputChange]\n );\n\n const handleSlidingComplete = useCallback(\n _value => {\n analytics &&\n analytics.logEvent(ANALYTICS_EVENT_TYPE.SLIDE, {\n id: 'slider',\n questionType: 'slider'\n });\n\n if (onSliderChange) {\n onSliderChange(_value);\n }\n },\n [analytics, onSliderChange]\n );\n\n switch (type) {\n case 'qcm':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'qcmGraphic':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n media={choice.media}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'slider': {\n if (min === undefined || max === undefined) {\n return <View />;\n }\n\n return (\n <QuestionSlider\n min={min}\n max={max}\n unit={unit}\n value={value}\n step={step}\n onSlidingComplete={handleSlidingComplete}\n testID=\"question-slider\"\n />\n );\n }\n case 'template':\n if (handleBlur === undefined || handleFocus === undefined || focusedSelectId === undefined) {\n // eslint-disable-next-line no-console\n console.warn('type template must implement handleFocus etc within Context.store');\n return <View />;\n }\n\n return (\n <View testID=\"question-choices\">\n <QuestionTemplate\n isDisabled={isDisabled}\n template={template || ''}\n choices={choices as (TemplateListOfChoices | TemplateTextChoice)[]}\n onInputChange={handleItemInputChange}\n handleBlur={handleBlur}\n handleFocus={handleFocus}\n focusedSelectId={focusedSelectId}\n />\n </View>\n );\n case 'qcmDrag':\n return (\n <View testID=\"question-draggable\">\n <QuestionDraggable choices={choices as SelectableChoice[]} onPress={handleChoicePress} />\n </View>\n );\n case 'basic':\n if (!onInputValueChange) {\n return <View />;\n }\n\n return (\n <FreeText\n fullWidth\n onChange={onInputValueChange}\n testID=\"question-input-text\"\n questionType=\"basic\"\n isDisabled={isDisabled}\n />\n );\n default:\n return (\n <View>\n <Text>Unhandled type: {type}</Text>\n </View>\n );\n }\n};\n\nexport default Switch;\n"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AACA,SAAQC,IAAR,EAAcC,UAAd,EAA0BC,IAA1B,QAAgD,cAAhD;AAEA,OAAOC,cAAP,MAA2B,sCAA3B;AACA,OAAOC,iBAAP,MAA8B,2BAA9B;AACA,OAAOC,gBAAP,MAA6B,0BAA7B;AACA,OAAOC,cAAP,MAA2B,wBAA3B;AACA,OAAOC,QAAP,MAAqB,8BAArB;AAEA,SAAQC,kBAAR,QAAiC,kDAAjC;AACA,SAAQC,oBAAR,QAAmC,iCAAnC;AAiCA,MAAMC,UAA0B,GAAGT,UAAU,CAACU,MAAX,CAAkB;EACnDC,KAAK,EAAE;IACLC,aAAa,EAAE,KADV;IAELC,UAAU,EAAE;EAFP,CAD4C;EAKnDC,IAAI,EAAE;IACJC,IAAI,EAAE;EADF,CAL6C;EAQnDC,MAAM,EAAE;IACNC,eAAe,EAAE;EADX;AAR2C,CAAlB,CAAnC;;AAaA,MAAMC,MAAM,GAAIC,KAAD,IAAkB;EAC/B,MAAMC,eAAe,GAAGb,kBAAkB,EAA1C;EACA,MAAM;IAACc,SAAD;IAAYC;EAAZ,IAAqBF,eAA3B;EACA,MAAM;IAACG,eAAD;IAAkBC,UAAlB;IAA8BC;EAA9B,IAA6CH,KAAnD;EAEA,MAAM;IACJI,IADI;IAEJC,QAFI;IAGJC,UAHI;IAIJC,OAAO,GAAG,EAJN;IAKJC,GALI;IAMJC,GANI;IAOJC,IAPI;IAQJC,KARI;IASJC,IATI;IAUJC,cAVI;IAWJC,WAXI;IAYJC,iBAZI;IAaJC;EAbI,IAcFnB,KAdJ;EAgBA,MAAMoB,i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Ab,gBACE,oBAAC,gBAAD;QACE,UAAU,EAAE3B,UADd;QAEE,QAAQ,EAAED,QAAQ,IAAI,EAFxB;QAGE,OAAO,EAAEE,OAHX;QAIE,aAAa,EAAEY,qBAJjB;QAKE,UAAU,EAAEjB,UALd;QAME,WAAW,EAAEC,WANf;QAOE,eAAe,EAAEF;MAPnB,EADF,CADF;;IAaF,KAAK,SAAL;MACE,oBACE,oBAAC,IAAD;QAAM,MAAM,EAAC;MAAb,gBACE,oBAAC,iBAAD;QAAmB,OAAO,EAAEM,OAA5B;QAA2D,OAAO,EAAEU;MAApE,EADF,CADF;;IAKF,KAAK,OAAL;MACE,IAAI,CAACD,kBAAL,EAAyB;QACvB,oBAAO,oBAAC,IAAD,OAAP;MACD;;MAED,oBACE,oBAAC,QAAD;QACE,SAAS,MADX;QAEE,QAAQ,EAAEA,kBAFZ;QAGE,MAAM,EAAC,qBAHT;QAIE,YAAY,EAAC,OAJf;QAKE,UAAU,EAAEV;MALd,EADF;;IASF;MACE,oBACE,oBAAC,IAAD,qBACE,oBAAC,IAAD,4BAAuBF,IAAvB,CADF,CADF;EAhGJ;AAsGD,CApKD;;AAsKA,eAAeR,MAAf"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useCallback","View","StyleSheet","Text","QuestionChoice","QuestionDraggable","QuestionTemplate","QuestionSlider","FreeText","useTemplateContext","ANALYTICS_EVENT_TYPE","styleSheet","create","cards","flexDirection","alignItems","card","flex","choice","paddingVertical","Switch","props","templateContext","analytics","store","focusedSelectId","handleBlur","handleFocus","type","template","isDisabled","choices","min","max","unit","value","step","onSliderChange","onItemPress","onItemInputChange","onInputValueChange","handleChoicePress","onPress","handleItemInputChange","_value","handleSlidingComplete","logEvent","SLIDE","id","questionType","createElement","testID","map","key","_id","isSelected","selected","style","label","media","undefined","onSlidingComplete","console","warn","onInputChange","fullWidth","onChange"],"sources":["../../../../../src/molecule/questions/mobile/switch/index.native.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {View, StyleSheet, Text, ViewStyle} from 'react-native';\n\nimport QuestionChoice from '../../../../atom/choice/index.native';\nimport QuestionDraggable from '../draggable/index.native';\nimport QuestionTemplate from '../template/index.native';\nimport QuestionSlider from '../slider/index.native';\nimport FreeText from '../../free-text/index.native';\n\nimport {useTemplateContext} from '../../../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE} from '../../../../variables/analytics';\n\nimport type {\n QuestionType,\n Choice,\n TemplateListOfChoices,\n TemplateTextChoice,\n SelectableChoice\n} from '../../types';\n\nexport type Props = {\n type: QuestionType;\n isDisabled?: boolean;\n template?: string;\n choices?: Array<Choice>;\n min?: number;\n max?: number;\n unit?: string;\n step?: number;\n value?: number;\n onInputValueChange?: (value: string) => void;\n onSliderChange?: (value: number) => void;\n // --- mobile learner only\n onItemInputChange?: (item: Choice, value: string) => void;\n onItemPress?: (item: Choice) => void;\n};\n\ntype StyleSheetType = {\n cards: ViewStyle;\n card: ViewStyle;\n choice: ViewStyle;\n};\n\nconst styleSheet: StyleSheetType = StyleSheet.create({\n cards: {\n flexDirection: 'row',\n alignItems: 'stretch'\n },\n card: {\n flex: 1\n },\n choice: {\n paddingVertical: 5\n }\n});\n\nconst Switch = (props: Props) => {\n const templateContext = useTemplateContext();\n const {analytics, store} = templateContext;\n const {focusedSelectId, handleBlur, handleFocus} = store;\n\n const {\n type,\n template,\n isDisabled,\n choices = [],\n min,\n max,\n unit,\n value,\n step,\n onSliderChange,\n onItemPress,\n onItemInputChange,\n onInputValueChange\n } = props;\n\n const handleChoicePress = useCallback(\n (choice: Choice) => () => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress();\n } else if (onItemPress) {\n // e.g. learner\n onItemPress(choice);\n }\n },\n [onItemPress]\n );\n\n const handleItemInputChange = useCallback(\n (choice: Choice, _value: string) => {\n if ((choice as SelectableChoice).onPress) {\n // e.g. app-review\n (choice as SelectableChoice).onPress(_value);\n } else if (onItemInputChange) {\n // e.g. learner\n onItemInputChange(choice, _value);\n }\n },\n [onItemInputChange]\n );\n\n const handleSlidingComplete = useCallback(\n _value => {\n analytics &&\n analytics.logEvent(ANALYTICS_EVENT_TYPE.SLIDE, {\n id: 'slider',\n questionType: 'slider'\n });\n\n if (onSliderChange) {\n onSliderChange(_value);\n }\n },\n [analytics, onSliderChange]\n );\n\n switch (type) {\n case 'qcm':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'qcmGraphic':\n return (\n <View testID=\"question-choices\">\n {(choices as SelectableChoice[]).map(choice => (\n <QuestionChoice\n key={`question-choice-${choice._id}`}\n onPress={handleChoicePress(choice)}\n media={choice.media}\n isDisabled={isDisabled}\n isSelected={choice.selected}\n testID={`question-choice-${choice._id}`}\n style={styleSheet.choice}\n questionType={type}\n >\n {choice.label}\n </QuestionChoice>\n ))}\n </View>\n );\n case 'slider': {\n if (min === undefined || max === undefined) {\n return <View />;\n }\n\n return (\n <QuestionSlider\n min={min}\n max={max}\n unit={unit}\n value={value}\n step={step}\n onSlidingComplete={handleSlidingComplete}\n testID=\"question-slider\"\n />\n );\n }\n case 'template':\n if (handleBlur === undefined || handleFocus === undefined || focusedSelectId === undefined) {\n // eslint-disable-next-line no-console\n console.warn('type template must implement handleFocus etc within Context.store');\n return <View />;\n }\n\n return (\n <View testID=\"question-choices\">\n <QuestionTemplate\n isDisabled={isDisabled}\n template={template || ''}\n choices={choices as (TemplateListOfChoices | TemplateTextChoice)[]}\n onInputChange={handleItemInputChange}\n handleBlur={handleBlur}\n handleFocus={handleFocus}\n focusedSelectId={focusedSelectId}\n />\n </View>\n );\n case 'qcmDrag':\n return (\n <View testID=\"question-draggable\">\n <QuestionDraggable choices={choices as SelectableChoice[]} onPress={handleChoicePress} />\n </View>\n );\n case 'basic':\n if (!onInputValueChange) {\n return <View />;\n }\n\n return (\n <FreeText\n fullWidth\n onChange={onInputValueChange}\n testID=\"question-input-text\"\n questionType=\"basic\"\n isDisabled={isDisabled}\n />\n );\n default:\n return (\n <View>\n <Text>Unhandled type: {type}</Text>\n </View>\n );\n }\n};\n\nexport default Switch;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,WAAW,QAAO,OAAO;AACxC,SAAQC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAkB,cAAc;AAE9D,OAAOC,cAAc,MAAM,sCAAsC;AACjE,OAAOC,iBAAiB,MAAM,2BAA2B;AACzD,OAAOC,gBAAgB,MAAM,0BAA0B;AACvD,OAAOC,cAAc,MAAM,wBAAwB;AACnD,OAAOC,QAAQ,MAAM,8BAA8B;AAEnD,SAAQC,kBAAkB,QAAO,kDAAkD;AACnF,SAAQC,oBAAoB,QAAO,iCAAiC;AAiCpE,MAAMC,UAA0B,GAAGT,UAAU,CAACU,MAAM,CAAC;EACnDC,KAAK,EAAE;IACLC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDC,IAAI,EAAE;IACJC,IAAI,EAAE;EACR,CAAC;EACDC,MAAM,EAAE;IACNC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,MAAMC,MAAM,GAAIC,KAAY,IAAK;EAC/B,MAAMC,eAAe,GAAGb,kBAAkB,CAAC,CAAC;EAC5C,MAAM;IAACc,SAAS;IAAEC;EAAK,CAAC,GAAGF,eAAe;EAC1C,MAAM;IAACG,eAAe;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAGH,KAAK;EAExD,MAAM;IACJI,IAAI;IACJC,QAAQ;IACRC,UAAU;IACVC,OAAO,GAAG,EAAE;IACZC,GAAG;IACHC,GAAG;IACHC,IAAI;IACJC,KAAK;IACLC,IAAI;IACJC,cAAc;IACdC,WAAW;IACXC,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