@coorpacademy/components 11.32.52 → 11.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/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 +9 -16
- package/es/atom/button/index.js.map +1 -1
- package/es/atom/button/index.native.js +4 -9
- package/es/atom/button/index.native.js.map +1 -1
- package/es/atom/button-link/index.js +8 -16
- 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 +4 -12
- 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 +8 -7
- 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 +11 -21
- 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 +4 -18
- 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 +27 -22
- package/es/atom/html/index.native.js.map +1 -1
- package/es/atom/icon/index.js +6 -4
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/image-background/index.native.js +12 -29
- 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 +12 -22
- package/es/atom/input-doublestep/index.js.map +1 -1
- package/es/atom/input-file-draggable/index.js +4 -7
- 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 +3 -6
- 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 +16 -22
- 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 +14 -21
- 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 +8 -25
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/provider/web-context.js +4 -14
- 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 +3 -26
- 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 +17 -18
- 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 +7 -16
- 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 +6 -14
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/text/index.native.js +3 -8
- 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 +3 -6
- 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 +4 -11
- package/es/hoc/modal/select-item/index.native.js.map +1 -1
- package/es/hoc/swapper/index.js +4 -17
- package/es/hoc/swapper/index.js.map +1 -1
- package/es/hoc/touchable/index.native.js +4 -9
- 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 +4 -26
- 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 +3 -6
- package/es/molecule/answer/prop-types.js.map +1 -1
- package/es/molecule/audio/index.js +8 -18
- 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 +49 -62
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-logo/index.native.js +3 -8
- 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 +4 -12
- 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 +3 -6
- 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 +3 -9
- 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 +16 -60
- 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 +4 -6
- 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 +4 -6
- 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 +9 -15
- 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 +4 -6
- 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 +4 -16
- 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 +11 -9
- package/es/molecule/expandible-actionable-table/types.js.map +1 -1
- package/es/molecule/external-content-button/index.js +11 -16
- 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 +12 -13
- 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 +4 -17
- 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 +4 -14
- 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 +18 -50
- 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 +3 -16
- 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 +5 -10
- 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 +3 -9
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/progress-wrapper/index.js +7 -14
- 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 +11 -16
- package/es/molecule/questions/free-text/index.js.map +1 -1
- package/es/molecule/questions/free-text/index.native.js +16 -16
- 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 +6 -13
- 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 +4 -21
- package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/es/molecule/questions/qcm/index.js +8 -11
- 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 +5 -10
- package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.js +12 -19
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.js +9 -21
- 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 +17 -37
- 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 +10 -13
- package/es/molecule/review-correction-popin/index.js.map +1 -1
- package/es/molecule/review-correction-popin/index.native.js +4 -11
- 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 +11 -25
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/setup-cohort-item/index.js +12 -15
- package/es/molecule/setup-cohort-item/index.js.map +1 -1
- package/es/molecule/setup-section/index.js +4 -13
- 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 +27 -41
- 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 +13 -12
- 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 +19 -17
- 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 +8 -17
- package/es/molecule/video-iframe/index.js.map +1 -1
- package/es/molecule/video-player/index.js +73 -93
- 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 +9 -34
- 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 +14 -56
- package/es/molecule/video-player/vimeo.js.map +1 -1
- package/es/molecule/video-player-mobile/index.native.js +3 -13
- 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 +3 -12
- 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 -13
- 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 +3 -6
- 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 +7 -10
- 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 +7 -22
- 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 +6 -11
- 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 +26 -74
- 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 +14 -19
- 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 +4 -12
- 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 +8 -15
- 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 +27 -40
- 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 +7 -17
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/wizard-contents/index.js +24 -30
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/template/activity/engine-stars.js +7 -19
- package/es/template/activity/engine-stars.js.map +1 -1
- package/es/template/activity/index.js +6 -7
- 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 +26 -39
- 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 +44 -94
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +17 -43
- 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 +34 -72
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-player/popin-header/index.js +17 -52
- 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 +3 -3
- package/es/template/app-review/player/prop-types.js.map +1 -1
- package/es/template/app-review/prop-types.js +3 -3
- 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 +5 -13
- package/es/template/back-office/brand-list/index.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +44 -46
- 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 +4 -7
- package/es/template/certifications/index.js.map +1 -1
- package/es/template/cockpit/jw-uploader/index.js +3 -6
- package/es/template/cockpit/jw-uploader/index.js.map +1 -1
- package/es/template/common/authors/index.js +6 -14
- 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 +5 -10
- 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 +6 -12
- 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 +13 -21
- 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 +13 -31
- package/lib/atom/button/index.js.map +1 -1
- package/lib/atom/button/index.native.js +8 -22
- package/lib/atom/button/index.native.js.map +1 -1
- package/lib/atom/button-link/index.js +12 -32
- 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 +8 -23
- 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 +12 -29
- 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 +15 -36
- 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 +6 -26
- 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 +31 -36
- package/lib/atom/html/index.native.js.map +1 -1
- package/lib/atom/icon/index.js +11 -33
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/image-background/index.native.js +14 -41
- 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 +16 -39
- package/lib/atom/input-doublestep/index.js.map +1 -1
- package/lib/atom/input-file-draggable/index.js +8 -22
- 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 +5 -14
- 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 +20 -36
- 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 +18 -41
- 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 +12 -39
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/provider/web-context.js +7 -23
- 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 +5 -34
- 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 +23 -49
- 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 +11 -35
- 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 +8 -25
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/text/index.native.js +5 -16
- 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 +2 -0
- 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 +5 -14
- 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 +8 -24
- package/lib/hoc/modal/select-item/index.native.js.map +1 -1
- package/lib/hoc/swapper/index.js +6 -26
- package/lib/hoc/swapper/index.js.map +1 -1
- package/lib/hoc/touchable/index.native.js +7 -20
- 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 +8 -48
- 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 +9 -27
- package/lib/molecule/answer/prop-types.js.map +1 -1
- package/lib/molecule/audio/index.js +10 -27
- 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 +53 -100
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-logo/index.native.js +5 -17
- 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 +8 -25
- package/lib/molecule/card-congrats/index.native.js.map +1 -1
- package/lib/molecule/card-congrats/types.js +2 -0
- 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 +5 -14
- 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 +5 -22
- 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 +20 -77
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.js +2 -0
- package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/lib/molecule/dashboard/learning-profile-banner/index.js +6 -17
- 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 +6 -16
- 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 +11 -28
- 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 +8 -28
- 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 +8 -38
- 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 +13 -20
- package/lib/molecule/expandible-actionable-table/types.js.map +1 -1
- package/lib/molecule/external-content-button/index.js +13 -25
- 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 +16 -28
- 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 +6 -25
- 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 +8 -36
- 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 +22 -76
- 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 +5 -24
- 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 +9 -22
- 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 +5 -15
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/index.js +9 -33
- 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 +15 -28
- package/lib/molecule/questions/free-text/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.native.js +19 -27
- 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 +10 -27
- 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 +8 -39
- package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/lib/molecule/questions/qcm/index.js +12 -27
- 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 +9 -22
- package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/lib/molecule/questions/question-range/index.js +16 -32
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.js +11 -32
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/types.js +2 -0
- 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 +25 -61
- 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 +14 -29
- package/lib/molecule/review-correction-popin/index.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.native.js +8 -27
- 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 +15 -47
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/setup-cohort-item/index.js +14 -25
- package/lib/molecule/setup-cohort-item/index.js.map +1 -1
- package/lib/molecule/setup-section/index.js +6 -22
- 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 +29 -61
- 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 +15 -26
- 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 +23 -33
- 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 +10 -28
- package/lib/molecule/video-iframe/index.js.map +1 -1
- package/lib/molecule/video-player/index.js +75 -104
- 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 +11 -44
- 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 +20 -62
- package/lib/molecule/video-player/vimeo.js.map +1 -1
- package/lib/molecule/video-player-mobile/index.native.js +5 -24
- 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 +5 -26
- 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 -25
- 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 +7 -23
- 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 +9 -22
- 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 +9 -30
- 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 +8 -27
- 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 +28 -86
- 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 +18 -36
- 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 +6 -21
- 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 +10 -31
- 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 +31 -77
- 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 +11 -33
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/wizard-contents/index.js +26 -54
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/template/activity/engine-stars.js +11 -34
- package/lib/template/activity/engine-stars.js.map +1 -1
- package/lib/template/activity/index.js +10 -34
- 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 +28 -46
- 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 +48 -127
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +21 -64
- 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 +36 -90
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-player/popin-header/index.js +21 -78
- 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 +5 -13
- package/lib/template/app-review/player/prop-types.js.map +1 -1
- package/lib/template/app-review/prop-types.js +5 -10
- 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 +7 -29
- package/lib/template/back-office/brand-list/index.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +46 -77
- 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 +8 -23
- package/lib/template/certifications/index.js.map +1 -1
- package/lib/template/cockpit/jw-uploader/index.js +5 -17
- package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
- package/lib/template/common/authors/index.js +8 -25
- 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 +9 -33
- 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 +8 -19
- 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 +16 -35
- 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 +16 -29
|
@@ -4,7 +4,6 @@ import { View, FlatList, StyleSheet } from 'react-native';
|
|
|
4
4
|
import { useTemplateContext } from '../../../template/app-review/template-context';
|
|
5
5
|
import Modal from '../index.native';
|
|
6
6
|
import ModalSelectItem from '../select-item/index.native';
|
|
7
|
-
|
|
8
7
|
const createStyleSheet = theme => StyleSheet.create({
|
|
9
8
|
content: {
|
|
10
9
|
paddingHorizontal: 0
|
|
@@ -17,31 +16,26 @@ const createStyleSheet = theme => StyleSheet.create({
|
|
|
17
16
|
width: '100%'
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
|
-
|
|
21
19
|
const keyExtractor = (item, index) => {
|
|
22
20
|
return `modal-select-item-${index + 1}`;
|
|
23
21
|
};
|
|
24
|
-
|
|
25
22
|
const createRenderItem = (value, testID, onChange) => function Item({
|
|
26
23
|
item,
|
|
27
24
|
index
|
|
28
25
|
}) {
|
|
29
26
|
// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
30
27
|
const handleChange = _value => () => onChange(_value);
|
|
31
|
-
|
|
32
28
|
return /*#__PURE__*/React.createElement(ModalSelectItem, {
|
|
33
29
|
onPress: handleChange(item.text),
|
|
34
30
|
isSelected: value === item.text,
|
|
35
31
|
testID: `${testID}-item-${index + 1}`
|
|
36
32
|
}, item.text);
|
|
37
33
|
};
|
|
38
|
-
|
|
39
34
|
const createSeparator = styleSheet => function Separator() {
|
|
40
35
|
return /*#__PURE__*/React.createElement(View, {
|
|
41
36
|
style: styleSheet?.separator
|
|
42
37
|
});
|
|
43
38
|
};
|
|
44
|
-
|
|
45
39
|
const ModalSelect = props => {
|
|
46
40
|
const templateContext = useTemplateContext();
|
|
47
41
|
const [styleSheet, setStylesheet] = useState(null);
|
|
@@ -57,16 +51,13 @@ const ModalSelect = props => {
|
|
|
57
51
|
} = props;
|
|
58
52
|
useEffect(() => {
|
|
59
53
|
const _stylesheet = createStyleSheet(theme);
|
|
60
|
-
|
|
61
54
|
setStylesheet(_stylesheet);
|
|
62
55
|
}, [theme]);
|
|
63
56
|
const renderItem = useMemo(() => createRenderItem(value, testID, onChange), [value, testID, onChange]);
|
|
64
57
|
const renderSeparator = useMemo(() => styleSheet ? createSeparator(styleSheet) : null, [styleSheet]);
|
|
65
|
-
|
|
66
58
|
if (!styleSheet) {
|
|
67
59
|
return null;
|
|
68
60
|
}
|
|
69
|
-
|
|
70
61
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
71
62
|
onClose: onClose,
|
|
72
63
|
contentStyle: styleSheet?.content,
|
|
@@ -81,6 +72,5 @@ const ModalSelect = props => {
|
|
|
81
72
|
testID: `${testID}-items`
|
|
82
73
|
}));
|
|
83
74
|
};
|
|
84
|
-
|
|
85
75
|
export default ModalSelect;
|
|
86
76
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","useMemo","View","FlatList","StyleSheet","useTemplateContext","Modal","ModalSelectItem","createStyleSheet","theme","create","content","paddingHorizontal","separator","borderTopWidth","borderColor","colors","border","list","width","keyExtractor","item","index","createRenderItem","value","testID","onChange","Item","handleChange","_value","text","createSeparator","styleSheet","Separator","ModalSelect","props","templateContext","setStylesheet","values","onClose","_stylesheet","renderItem","renderSeparator"],"sources":["../../../../src/hoc/modal/select/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect, useMemo} from 'react';\nimport {View, FlatList, StyleSheet, GestureResponderEvent, ViewStyle} from 'react-native';\nimport {noop} from 'lodash/fp';\n\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\n\nimport Modal from '../index.native';\nimport ModalSelectItem from '../select-item/index.native';\nimport {ChoiceItem} from '../../../atom/select-modal/index.native';\n\nexport type OnChangeFunction = (value: string) => void;\n\nexport type Props = {\n value?: string;\n values: Array<ChoiceItem> | undefined;\n onChange: OnChangeFunction;\n onClose?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n content: ViewStyle;\n separator: ViewStyle;\n list: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n content: {\n paddingHorizontal: 0\n },\n separator: {\n borderTopWidth: 1,\n borderColor: theme.colors.border\n },\n list: {\n width: '100%'\n }\n });\n\nconst keyExtractor = (item: ChoiceItem, index: number): string => {\n return `modal-select-item-${index + 1}`;\n};\n\ntype ItemProps = {item: ChoiceItem; index: number};\nconst createRenderItem = (value: string, testID: string, onChange: OnChangeFunction) =>\n function Item({item, index}: ItemProps) {\n // eslint-disable-next-line unicorn/consistent-function-scoping\n const handleChange = (_value: string) => () => onChange(_value);\n\n return (\n <ModalSelectItem\n onPress={handleChange(item.text)}\n isSelected={value === item.text}\n testID={`${testID}-item-${index + 1}`}\n >\n {item.text}\n </ModalSelectItem>\n );\n };\n\nconst createSeparator = (styleSheet: StyleSheetType) =>\n function Separator() {\n return <View style={styleSheet?.separator} />;\n };\n\nconst ModalSelect = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n const {value = '', values, onChange, onClose = noop, testID = 'modal-select'} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n const renderItem = useMemo(\n () => createRenderItem(value, testID, onChange),\n [value, testID, onChange]\n );\n\n const renderSeparator = useMemo(\n () => (styleSheet ? createSeparator(styleSheet) : null),\n [styleSheet]\n );\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <Modal onClose={onClose} contentStyle={styleSheet?.content} testID={testID}>\n <FlatList\n data={values}\n renderItem={renderItem}\n keyExtractor={keyExtractor}\n showsVerticalScrollIndicator={false}\n ItemSeparatorComponent={renderSeparator}\n style={styleSheet?.list}\n testID={`${testID}-items`}\n />\n </Modal>\n );\n};\n\nexport default ModalSelect;\n"],"mappings":";AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","useMemo","View","FlatList","StyleSheet","useTemplateContext","Modal","ModalSelectItem","createStyleSheet","theme","create","content","paddingHorizontal","separator","borderTopWidth","borderColor","colors","border","list","width","keyExtractor","item","index","createRenderItem","value","testID","onChange","Item","handleChange","_value","createElement","onPress","text","isSelected","createSeparator","styleSheet","Separator","style","ModalSelect","props","templateContext","setStylesheet","values","onClose","_noop","_stylesheet","renderItem","renderSeparator","contentStyle","data","showsVerticalScrollIndicator","ItemSeparatorComponent"],"sources":["../../../../src/hoc/modal/select/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect, useMemo} from 'react';\nimport {View, FlatList, StyleSheet, GestureResponderEvent, ViewStyle} from 'react-native';\nimport {noop} from 'lodash/fp';\n\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\n\nimport Modal from '../index.native';\nimport ModalSelectItem from '../select-item/index.native';\nimport {ChoiceItem} from '../../../atom/select-modal/index.native';\n\nexport type OnChangeFunction = (value: string) => void;\n\nexport type Props = {\n value?: string;\n values: Array<ChoiceItem> | undefined;\n onChange: OnChangeFunction;\n onClose?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n content: ViewStyle;\n separator: ViewStyle;\n list: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n content: {\n paddingHorizontal: 0\n },\n separator: {\n borderTopWidth: 1,\n borderColor: theme.colors.border\n },\n list: {\n width: '100%'\n }\n });\n\nconst keyExtractor = (item: ChoiceItem, index: number): string => {\n return `modal-select-item-${index + 1}`;\n};\n\ntype ItemProps = {item: ChoiceItem; index: number};\nconst createRenderItem = (value: string, testID: string, onChange: OnChangeFunction) =>\n function Item({item, index}: ItemProps) {\n // eslint-disable-next-line unicorn/consistent-function-scoping\n const handleChange = (_value: string) => () => onChange(_value);\n\n return (\n <ModalSelectItem\n onPress={handleChange(item.text)}\n isSelected={value === item.text}\n testID={`${testID}-item-${index + 1}`}\n >\n {item.text}\n </ModalSelectItem>\n );\n };\n\nconst createSeparator = (styleSheet: StyleSheetType) =>\n function Separator() {\n return <View style={styleSheet?.separator} />;\n };\n\nconst ModalSelect = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n const {value = '', values, onChange, onClose = noop, testID = 'modal-select'} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n const renderItem = useMemo(\n () => createRenderItem(value, testID, onChange),\n [value, testID, onChange]\n );\n\n const renderSeparator = useMemo(\n () => (styleSheet ? createSeparator(styleSheet) : null),\n [styleSheet]\n );\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <Modal onClose={onClose} contentStyle={styleSheet?.content} testID={testID}>\n <FlatList\n data={values}\n renderItem={renderItem}\n keyExtractor={keyExtractor}\n showsVerticalScrollIndicator={false}\n ItemSeparatorComponent={renderSeparator}\n style={styleSheet?.list}\n testID={`${testID}-items`}\n />\n </Modal>\n );\n};\n\nexport default ModalSelect;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,QAAQ,EAAEC,SAAS,EAAEC,OAAO,QAAO,OAAO;AACzD,SAAQC,IAAI,EAAEC,QAAQ,EAAEC,UAAU,QAAyC,cAAc;AAIzF,SAAQC,kBAAkB,QAAO,+CAA+C;AAEhF,OAAOC,KAAK,MAAM,iBAAiB;AACnC,OAAOC,eAAe,MAAM,6BAA6B;AAmBzD,MAAMC,gBAAgB,GAAIC,KAAY,IACpCL,UAAU,CAACM,MAAM,CAAC;EAChBC,OAAO,EAAE;IACPC,iBAAiB,EAAE;EACrB,CAAC;EACDC,SAAS,EAAE;IACTC,cAAc,EAAE,CAAC;IACjBC,WAAW,EAAEN,KAAK,CAACO,MAAM,CAACC;EAC5B,CAAC;EACDC,IAAI,EAAE;IACJC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEJ,MAAMC,YAAY,GAAGA,CAACC,IAAgB,EAAEC,KAAa,KAAa;EAChE,OAAO,qBAAqBA,KAAK,GAAG,CAAC,EAAE;AACzC,CAAC;AAGD,MAAMC,gBAAgB,GAAGA,CAACC,KAAa,EAAEC,MAAc,EAAEC,QAA0B,KACjF,SAASC,IAAIA,CAAC;EAACN,IAAI;EAAEC;AAAgB,CAAC,EAAE;EACtC;EACA,MAAMM,YAAY,GAAIC,MAAc,IAAK,MAAMH,QAAQ,CAACG,MAAM,CAAC;EAE/D,oBACE/B,KAAA,CAAAgC,aAAA,CAACvB,eAAe;IACdwB,OAAO,EAAEH,YAAY,CAACP,IAAI,CAACW,IAAI,CAAE;IACjCC,UAAU,EAAET,KAAK,KAAKH,IAAI,CAACW,IAAK;IAChCP,MAAM,EAAE,GAAGA,MAAM,SAASH,KAAK,GAAG,CAAC;EAAG,GAErCD,IAAI,CAACW,IACS,CAAC;AAEtB,CAAC;AAEH,MAAME,eAAe,GAAIC,UAA0B,IACjD,SAASC,SAASA,CAAA,EAAG;EACnB,oBAAOtC,KAAA,CAAAgC,aAAA,CAAC5B,IAAI;IAACmC,KAAK,EAAEF,UAAU,EAAEtB;EAAU,CAAE,CAAC;AAC/C,CAAC;AAEH,MAAMyB,WAAW,GAAIC,KAAY,IAAK;EACpC,MAAMC,eAAe,GAAGnC,kBAAkB,CAAC,CAAC;EAC5C,MAAM,CAAC8B,UAAU,EAAEM,aAAa,CAAC,GAAG1C,QAAQ,CAAwB,IAAI,CAAC;EACzE,MAAM;IAACU;EAAK,CAAC,GAAG+B,eAAe;EAC/B,MAAM;IAAChB,KAAK,GAAG,EAAE;IAAEkB,MAAM;IAAEhB,QAAQ;IAAEiB,OAAO,GAAAC,KAAO;IAAEnB,MAAM,GAAG;EAAc,CAAC,GAAGc,KAAK;EAErFvC,SAAS,CAAC,MAAM;IACd,MAAM6C,WAAW,GAAGrC,gBAAgB,CAACC,KAAK,CAAC;IAC3CgC,aAAa,CAACI,WAAW,CAAC;EAC5B,CAAC,EAAE,CAACpC,KAAK,CAAC,CAAC;EAEX,MAAMqC,UAAU,GAAG7C,OAAO,CACxB,MAAMsB,gBAAgB,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,CAAC,EAC/C,CAACF,KAAK,EAAEC,MAAM,EAAEC,QAAQ,CAC1B,CAAC;EAED,MAAMqB,eAAe,GAAG9C,OAAO,CAC7B,MAAOkC,UAAU,GAAGD,eAAe,CAACC,UAAU,CAAC,GAAG,IAAK,EACvD,CAACA,UAAU,CACb,CAAC;EAED,IAAI,CAACA,UAAU,EAAE;IACf,OAAO,IAAI;EACb;EAEA,oBACErC,KAAA,CAAAgC,aAAA,CAACxB,KAAK;IAACqC,OAAO,EAAEA,OAAQ;IAACK,YAAY,EAAEb,UAAU,EAAExB,OAAQ;IAACc,MAAM,EAAEA;EAAO,gBACzE3B,KAAA,CAAAgC,aAAA,CAAC3B,QAAQ;IACP8C,IAAI,EAAEP,MAAO;IACbI,UAAU,EAAEA,UAAW;IACvB1B,YAAY,EAAEA,YAAa;IAC3B8B,4BAA4B,EAAE,KAAM;IACpCC,sBAAsB,EAAEJ,eAAgB;IACxCV,KAAK,EAAEF,UAAU,EAAEjB,IAAK;IACxBO,MAAM,EAAE,GAAGA,MAAM;EAAS,CAC3B,CACI,CAAC;AAEZ,CAAC;AAED,eAAea,WAAW","ignoreList":[]}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useState, useEffect } from 'react';
|
|
4
2
|
import { StyleSheet } from 'react-native';
|
|
5
3
|
import Text from '../../../atom/text/index.native';
|
|
6
4
|
import Touchable from '../../touchable/index.native';
|
|
7
5
|
import { useTemplateContext } from '../../../template/app-review/template-context';
|
|
8
|
-
|
|
9
6
|
const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
|
|
10
7
|
container: {
|
|
11
8
|
backgroundColor: theme.colors.white,
|
|
@@ -19,7 +16,6 @@ const createStyleSheet = (brandTheme, theme) => StyleSheet.create({
|
|
|
19
16
|
color: brandTheme?.colors?.primary
|
|
20
17
|
}
|
|
21
18
|
});
|
|
22
|
-
|
|
23
19
|
const ModalSelectItem = props => {
|
|
24
20
|
const templateContext = useTemplateContext();
|
|
25
21
|
const [styleSheet, setStylesheet] = useState(null);
|
|
@@ -29,14 +25,11 @@ const ModalSelectItem = props => {
|
|
|
29
25
|
} = templateContext;
|
|
30
26
|
useEffect(() => {
|
|
31
27
|
const _stylesheet = createStyleSheet(brandTheme, theme);
|
|
32
|
-
|
|
33
28
|
setStylesheet(_stylesheet);
|
|
34
29
|
}, [theme, brandTheme]);
|
|
35
|
-
|
|
36
30
|
if (!styleSheet) {
|
|
37
31
|
return null;
|
|
38
32
|
}
|
|
39
|
-
|
|
40
33
|
const {
|
|
41
34
|
children,
|
|
42
35
|
onPress,
|
|
@@ -44,11 +37,12 @@ const ModalSelectItem = props => {
|
|
|
44
37
|
testID
|
|
45
38
|
} = props;
|
|
46
39
|
let textStyle = styleSheet.text;
|
|
47
|
-
|
|
48
40
|
if (isSelected) {
|
|
49
|
-
textStyle =
|
|
41
|
+
textStyle = {
|
|
42
|
+
...textStyle,
|
|
43
|
+
...styleSheet.selectedTextStyle
|
|
44
|
+
};
|
|
50
45
|
}
|
|
51
|
-
|
|
52
46
|
return /*#__PURE__*/React.createElement(Touchable, {
|
|
53
47
|
onPress: onPress,
|
|
54
48
|
style: styleSheet.container,
|
|
@@ -57,6 +51,5 @@ const ModalSelectItem = props => {
|
|
|
57
51
|
style: textStyle
|
|
58
52
|
}, children));
|
|
59
53
|
};
|
|
60
|
-
|
|
61
54
|
export default ModalSelectItem;
|
|
62
55
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","StyleSheet","Text","Touchable","useTemplateContext","createStyleSheet","brandTheme","theme","create","container","backgroundColor","colors","white","padding","spacing","small","text","fontWeight","bold","color","black","selectedTextStyle","primary","ModalSelectItem","props","templateContext","styleSheet","setStylesheet","_stylesheet","children","onPress","isSelected","testID","textStyle"],"sources":["../../../../src/hoc/modal/select-item/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {GestureResponderEvent, StyleSheet, TextStyle, ViewStyle} from 'react-native';\n\nimport Text from '../../../atom/text/index.native';\nimport Touchable from '../../touchable/index.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\nimport {Brand} from '../../../variables/brand.native';\n\nexport type Props = {\n isSelected?: boolean;\n children: string;\n onPress?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n text: TextStyle;\n selectedTextStyle: TextStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n backgroundColor: theme.colors.white,\n padding: theme.spacing.small\n },\n text: {\n fontWeight: theme.fontWeight.bold,\n color: theme.colors.black\n },\n selectedTextStyle: {\n color: brandTheme?.colors?.primary\n }\n });\n\nconst ModalSelectItem = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme} = templateContext;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [theme, brandTheme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {children, onPress, isSelected, testID} = props;\n\n let textStyle: TextStyle = styleSheet.text;\n\n if (isSelected) {\n textStyle = {\n ...textStyle,\n ...styleSheet.selectedTextStyle\n };\n }\n\n return (\n <Touchable onPress={onPress} style={styleSheet.container} testID={testID}>\n <Text style={textStyle}>{children}</Text>\n </Touchable>\n );\n};\n\nexport default ModalSelectItem;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["React","useState","useEffect","StyleSheet","Text","Touchable","useTemplateContext","createStyleSheet","brandTheme","theme","create","container","backgroundColor","colors","white","padding","spacing","small","text","fontWeight","bold","color","black","selectedTextStyle","primary","ModalSelectItem","props","templateContext","styleSheet","setStylesheet","_stylesheet","children","onPress","isSelected","testID","textStyle","createElement","style"],"sources":["../../../../src/hoc/modal/select-item/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {GestureResponderEvent, StyleSheet, TextStyle, ViewStyle} from 'react-native';\n\nimport Text from '../../../atom/text/index.native';\nimport Touchable from '../../touchable/index.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\nimport {Brand} from '../../../variables/brand.native';\n\nexport type Props = {\n isSelected?: boolean;\n children: string;\n onPress?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n text: TextStyle;\n selectedTextStyle: TextStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n backgroundColor: theme.colors.white,\n padding: theme.spacing.small\n },\n text: {\n fontWeight: theme.fontWeight.bold,\n color: theme.colors.black\n },\n selectedTextStyle: {\n color: brandTheme?.colors?.primary\n }\n });\n\nconst ModalSelectItem = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme} = templateContext;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [theme, brandTheme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {children, onPress, isSelected, testID} = props;\n\n let textStyle: TextStyle = styleSheet.text;\n\n if (isSelected) {\n textStyle = {\n ...textStyle,\n ...styleSheet.selectedTextStyle\n };\n }\n\n return (\n <Touchable onPress={onPress} style={styleSheet.container} testID={testID}>\n <Text style={textStyle}>{children}</Text>\n </Touchable>\n );\n};\n\nexport default ModalSelectItem;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,QAAQ,EAAEC,SAAS,QAAO,OAAO;AAChD,SAA+BC,UAAU,QAA6B,cAAc;AAEpF,OAAOC,IAAI,MAAM,iCAAiC;AAClD,OAAOC,SAAS,MAAM,8BAA8B;AACpD,SAAQC,kBAAkB,QAAO,+CAA+C;AAiBhF,MAAMC,gBAAgB,GAAGA,CAACC,UAAiB,EAAEC,KAAY,KACvDN,UAAU,CAACO,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,eAAe,EAAEH,KAAK,CAACI,MAAM,CAACC,KAAK;IACnCC,OAAO,EAAEN,KAAK,CAACO,OAAO,CAACC;EACzB,CAAC;EACDC,IAAI,EAAE;IACJC,UAAU,EAAEV,KAAK,CAACU,UAAU,CAACC,IAAI;IACjCC,KAAK,EAAEZ,KAAK,CAACI,MAAM,CAACS;EACtB,CAAC;EACDC,iBAAiB,EAAE;IACjBF,KAAK,EAAEb,UAAU,EAAEK,MAAM,EAAEW;EAC7B;AACF,CAAC,CAAC;AAEJ,MAAMC,eAAe,GAAIC,KAAY,IAAK;EACxC,MAAMC,eAAe,GAAGrB,kBAAkB,CAAC,CAAC;EAC5C,MAAM,CAACsB,UAAU,EAAEC,aAAa,CAAC,GAAG5B,QAAQ,CAAwB,IAAI,CAAC;EACzE,MAAM;IAACO,UAAU;IAAEC;EAAK,CAAC,GAAGkB,eAAe;EAE3CzB,SAAS,CAAC,MAAM;IACd,MAAM4B,WAAW,GAAGvB,gBAAgB,CAACC,UAAU,EAAEC,KAAK,CAAC;IACvDoB,aAAa,CAACC,WAAW,CAAC;EAC5B,CAAC,EAAE,CAACrB,KAAK,EAAED,UAAU,CAAC,CAAC;EAEvB,IAAI,CAACoB,UAAU,EAAE;IACf,OAAO,IAAI;EACb;EAEA,MAAM;IAACG,QAAQ;IAAEC,OAAO;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGR,KAAK;EAErD,IAAIS,SAAoB,GAAGP,UAAU,CAACV,IAAI;EAE1C,IAAIe,UAAU,EAAE;IACdE,SAAS,GAAG;MACV,GAAGA,SAAS;MACZ,GAAGP,UAAU,CAACL;IAChB,CAAC;EACH;EAEA,oBACEvB,KAAA,CAAAoC,aAAA,CAAC/B,SAAS;IAAC2B,OAAO,EAAEA,OAAQ;IAACK,KAAK,EAAET,UAAU,CAACjB,SAAU;IAACuB,MAAM,EAAEA;EAAO,gBACvElC,KAAA,CAAAoC,aAAA,CAAChC,IAAI;IAACiC,KAAK,EAAEF;EAAU,GAAEJ,QAAe,CAC/B,CAAC;AAEhB,CAAC;AAED,eAAeN,eAAe","ignoreList":[]}
|
package/es/hoc/swapper/index.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
const _excluded = ["children"];
|
|
2
|
-
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
|
-
|
|
5
1
|
import React from 'react';
|
|
6
2
|
import PropTypes from 'prop-types';
|
|
7
3
|
export const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);
|
|
8
|
-
|
|
9
4
|
class Swapper extends React.Component {
|
|
10
5
|
constructor(props) {
|
|
11
6
|
super(props);
|
|
@@ -13,7 +8,6 @@ class Swapper extends React.Component {
|
|
|
13
8
|
init: true
|
|
14
9
|
};
|
|
15
10
|
}
|
|
16
|
-
|
|
17
11
|
componentDidMount() {
|
|
18
12
|
if (typeof requestAnimationFrame !== 'undefined') {
|
|
19
13
|
this.requestID = requestAnimationFrame(() => this.setState({
|
|
@@ -21,30 +15,23 @@ class Swapper extends React.Component {
|
|
|
21
15
|
}));
|
|
22
16
|
}
|
|
23
17
|
}
|
|
24
|
-
|
|
25
18
|
componentWillUnmount() {
|
|
26
19
|
if (this.requestID !== undefined) {
|
|
27
20
|
safeCancelAnimationFrame(this.requestID);
|
|
28
21
|
}
|
|
29
22
|
}
|
|
30
|
-
|
|
31
23
|
render() {
|
|
32
24
|
const {
|
|
33
25
|
init
|
|
34
26
|
} = this.state;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} = _this$props,
|
|
40
|
-
props = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
41
|
-
|
|
27
|
+
const {
|
|
28
|
+
children,
|
|
29
|
+
...props
|
|
30
|
+
} = this.props;
|
|
42
31
|
const child = React.Children.only(children);
|
|
43
32
|
return init ? /*#__PURE__*/React.cloneElement(child, props) : child;
|
|
44
33
|
}
|
|
45
|
-
|
|
46
34
|
}
|
|
47
|
-
|
|
48
35
|
Swapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
49
36
|
children: PropTypes.node
|
|
50
37
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","safeCancelAnimationFrame","requestId","cancelAnimationFrame","Swapper","Component","constructor","props","state","init","componentDidMount","requestAnimationFrame","requestID","setState","componentWillUnmount","undefined","render","children","child","Children","only","cloneElement","propTypes","node"],"sources":["../../../src/hoc/swapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);\n\nclass Swapper extends React.Component {\n static propTypes = {\n children: PropTypes.node\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n init: true\n };\n }\n\n componentDidMount() {\n if (typeof requestAnimationFrame !== 'undefined') {\n this.requestID = requestAnimationFrame(() => this.setState({init: false}));\n }\n }\n\n componentWillUnmount() {\n if (this.requestID !== undefined) {\n safeCancelAnimationFrame(this.requestID);\n }\n }\n\n render() {\n const {init} = this.state;\n const {children, ...props} = this.props;\n const child = React.Children.only(children);\n\n return init ? React.cloneElement(child, props) : child;\n }\n}\n\nexport default Swapper;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","safeCancelAnimationFrame","requestId","cancelAnimationFrame","Swapper","Component","constructor","props","state","init","componentDidMount","requestAnimationFrame","requestID","setState","componentWillUnmount","undefined","render","children","child","Children","only","cloneElement","propTypes","process","env","NODE_ENV","node"],"sources":["../../../src/hoc/swapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);\n\nclass Swapper extends React.Component {\n static propTypes = {\n children: PropTypes.node\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n init: true\n };\n }\n\n componentDidMount() {\n if (typeof requestAnimationFrame !== 'undefined') {\n this.requestID = requestAnimationFrame(() => this.setState({init: false}));\n }\n }\n\n componentWillUnmount() {\n if (this.requestID !== undefined) {\n safeCancelAnimationFrame(this.requestID);\n }\n }\n\n render() {\n const {init} = this.state;\n const {children, ...props} = this.props;\n const child = React.Children.only(children);\n\n return init ? React.cloneElement(child, props) : child;\n }\n}\n\nexport default Swapper;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAO,MAAMC,wBAAwB,GAAGC,SAAS,IAAIA,SAAS,IAAIC,oBAAoB,CAACD,SAAS,CAAC;AAEjG,MAAME,OAAO,SAASL,KAAK,CAACM,SAAS,CAAC;EAKpCC,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,KAAK,GAAG;MACXC,IAAI,EAAE;IACR,CAAC;EACH;EAEAC,iBAAiBA,CAAA,EAAG;IAClB,IAAI,OAAOC,qBAAqB,KAAK,WAAW,EAAE;MAChD,IAAI,CAACC,SAAS,GAAGD,qBAAqB,CAAC,MAAM,IAAI,CAACE,QAAQ,CAAC;QAACJ,IAAI,EAAE;MAAK,CAAC,CAAC,CAAC;IAC5E;EACF;EAEAK,oBAAoBA,CAAA,EAAG;IACrB,IAAI,IAAI,CAACF,SAAS,KAAKG,SAAS,EAAE;MAChCd,wBAAwB,CAAC,IAAI,CAACW,SAAS,CAAC;IAC1C;EACF;EAEAI,MAAMA,CAAA,EAAG;IACP,MAAM;MAACP;IAAI,CAAC,GAAG,IAAI,CAACD,KAAK;IACzB,MAAM;MAACS,QAAQ;MAAE,GAAGV;IAAK,CAAC,GAAG,IAAI,CAACA,KAAK;IACvC,MAAMW,KAAK,GAAGnB,KAAK,CAACoB,QAAQ,CAACC,IAAI,CAACH,QAAQ,CAAC;IAE3C,OAAOR,IAAI,gBAAGV,KAAK,CAACsB,YAAY,CAACH,KAAK,EAAEX,KAAK,CAAC,GAAGW,KAAK;EACxD;AACF;AAhCMd,OAAO,CACJkB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACjBR,QAAQ,EAAEjB,SAAS,CAAC0B;AACtB,CAAC;AA+BH,eAAetB,OAAO","ignoreList":[]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
2
|
-
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
2
|
import { TouchableOpacity, TouchableHighlight } from 'react-native';
|
|
4
3
|
import React, { useMemo } from 'react';
|
|
5
4
|
import { useTemplateContext } from '../../template/app-review/template-context';
|
|
@@ -10,13 +9,12 @@ const hitSlop = {
|
|
|
10
9
|
bottom: 12,
|
|
11
10
|
top: 12
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
const logEvent = (eventName, analyticsID, analytics, analyticsParams) => {
|
|
15
|
-
analytics && analytics.logEvent(eventName,
|
|
13
|
+
analytics && analytics.logEvent(eventName, {
|
|
14
|
+
...(analyticsParams || {}),
|
|
16
15
|
id: analyticsID
|
|
17
|
-
})
|
|
16
|
+
});
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
const Touchable = props => {
|
|
21
19
|
const templateContext = useTemplateContext();
|
|
22
20
|
const {
|
|
@@ -47,7 +45,6 @@ const Touchable = props => {
|
|
|
47
45
|
analytics && analyticsID && logEvent(ANALYTICS_EVENT_TYPE.LONG_PRESS, analyticsID, analytics, analyticsParams);
|
|
48
46
|
onLongPress(event);
|
|
49
47
|
}, [analytics, analyticsID, analyticsParams, onLongPress, vibration]);
|
|
50
|
-
|
|
51
48
|
if (isHighlight) {
|
|
52
49
|
return /*#__PURE__*/React.createElement(TouchableHighlight, _extends({}, props, {
|
|
53
50
|
accessibilityLabel: accessibilityLabel,
|
|
@@ -58,7 +55,6 @@ const Touchable = props => {
|
|
|
58
55
|
activeOpacity: activeOpacity || (disabled ? 1 : 0.85)
|
|
59
56
|
}));
|
|
60
57
|
}
|
|
61
|
-
|
|
62
58
|
return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({}, props, {
|
|
63
59
|
accessibilityLabel: accessibilityLabel,
|
|
64
60
|
hitSlop: hitSlop,
|
|
@@ -67,6 +63,5 @@ const Touchable = props => {
|
|
|
67
63
|
activeOpacity: isWithoutFeedback && 1 || activeOpacity || (disabled ? 1 : 0.2)
|
|
68
64
|
}));
|
|
69
65
|
};
|
|
70
|
-
|
|
71
66
|
export default Touchable;
|
|
72
67
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["TouchableOpacity","TouchableHighlight","React","useMemo","useTemplateContext","ANALYTICS_EVENT_TYPE","hitSlop","left","right","bottom","top","logEvent","eventName","analyticsID","analytics","analyticsParams","id","Touchable","props","templateContext","theme","vibration","accessibilityLabel","onPress","onLongPress","isWithoutFeedback","isHighlight","activeOpacity","disabled","handlePress","event","vibrate","PRESS","handleLongPress","LONG_PRESS","colors","gray","light"],"sources":["../../../src/hoc/touchable/index.native.tsx"],"sourcesContent":["import {\n TouchableOpacity,\n TouchableHighlight,\n ViewStyle,\n LayoutChangeEvent,\n NativeSyntheticEvent,\n GestureResponderEvent,\n TargetedEvent,\n StyleProp\n} from 'react-native';\n\nimport React, {useMemo} from 'react';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE, Analytics, AnalyticsEventParams} from '../../variables/analytics';\nimport {Vibration} from '../../variables/vibration';\n\nconst hitSlop = {\n left: 12,\n right: 12,\n bottom: 12,\n top: 12\n};\n\nexport type Props = {\n accessibilityLabel?: string;\n accessible?: boolean;\n children?: React.ReactNode;\n delayLongPress?: number;\n delayPressIn?: number;\n delayPressOut?: number;\n disabled?: boolean;\n focusable?: boolean;\n onBlur?: (event: NativeSyntheticEvent<TargetedEvent>) => void;\n onFocus?: (event: NativeSyntheticEvent<TargetedEvent>) => void;\n onLayout?: (event: LayoutChangeEvent) => void;\n onLongPress?: (event: GestureResponderEvent) => void;\n onPress?: (event: GestureResponderEvent) => void;\n onPressIn?: (event: GestureResponderEvent) => void;\n onPressOut?: (event: GestureResponderEvent) => void;\n testID?: string;\n isHighlight?: boolean;\n isWithoutFeedback?: boolean;\n // for TouchableOpacity\n activeOpacity?: number;\n style?: StyleProp<ViewStyle>;\n // Analytics\n analytics?: Analytics;\n analyticsID?: string;\n analyticsParams?: AnalyticsEventParams;\n vibration?: Vibration;\n};\n\nconst logEvent = (\n eventName: string,\n analyticsID: string,\n analytics: Analytics,\n analyticsParams?: AnalyticsEventParams\n) => {\n analytics &&\n analytics.logEvent(eventName, {\n ...(analyticsParams || {}),\n id: analyticsID\n });\n};\n\nconst Touchable = (props: Props) => {\n const templateContext = useTemplateContext();\n\n const {theme, vibration, analytics} = templateContext;\n\n const {\n analyticsID,\n analyticsParams,\n accessibilityLabel,\n onPress,\n onLongPress,\n isWithoutFeedback,\n isHighlight,\n activeOpacity,\n disabled\n } = props;\n\n const handlePress = useMemo(\n () => (event: GestureResponderEvent) => {\n if (!onPress) return;\n\n vibration?.vibrate();\n\n analytics &&\n analyticsID &&\n logEvent(ANALYTICS_EVENT_TYPE.PRESS, analyticsID, analytics, analyticsParams);\n onPress(event);\n },\n [analytics, analyticsID, analyticsParams, onPress, vibration]\n );\n\n const handleLongPress = useMemo(\n () => (event: GestureResponderEvent) => {\n if (!onLongPress) return;\n\n vibration?.vibrate();\n\n analytics &&\n analyticsID &&\n logEvent(ANALYTICS_EVENT_TYPE.LONG_PRESS, analyticsID, analytics, analyticsParams);\n onLongPress(event);\n },\n [analytics, analyticsID, analyticsParams, onLongPress, vibration]\n );\n\n if (isHighlight) {\n return (\n <TouchableHighlight\n {...props}\n accessibilityLabel={accessibilityLabel}\n hitSlop={hitSlop}\n underlayColor={theme.colors.gray.light}\n onPress={handlePress}\n onLongPress={handleLongPress}\n activeOpacity={activeOpacity || (disabled ? 1 : 0.85)}\n />\n );\n }\n\n return (\n <TouchableOpacity\n {...props}\n accessibilityLabel={accessibilityLabel}\n hitSlop={hitSlop}\n onPress={handlePress}\n onLongPress={handleLongPress}\n activeOpacity={(isWithoutFeedback && 1) || activeOpacity || (disabled ? 1 : 0.2)}\n />\n );\n};\n\nexport default Touchable;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["TouchableOpacity","TouchableHighlight","React","useMemo","useTemplateContext","ANALYTICS_EVENT_TYPE","hitSlop","left","right","bottom","top","logEvent","eventName","analyticsID","analytics","analyticsParams","id","Touchable","props","templateContext","theme","vibration","accessibilityLabel","onPress","onLongPress","isWithoutFeedback","isHighlight","activeOpacity","disabled","handlePress","event","vibrate","PRESS","handleLongPress","LONG_PRESS","createElement","_extends","underlayColor","colors","gray","light"],"sources":["../../../src/hoc/touchable/index.native.tsx"],"sourcesContent":["import {\n TouchableOpacity,\n TouchableHighlight,\n ViewStyle,\n LayoutChangeEvent,\n NativeSyntheticEvent,\n GestureResponderEvent,\n TargetedEvent,\n StyleProp\n} from 'react-native';\n\nimport React, {useMemo} from 'react';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {ANALYTICS_EVENT_TYPE, Analytics, AnalyticsEventParams} from '../../variables/analytics';\nimport {Vibration} from '../../variables/vibration';\n\nconst hitSlop = {\n left: 12,\n right: 12,\n bottom: 12,\n top: 12\n};\n\nexport type Props = {\n accessibilityLabel?: string;\n accessible?: boolean;\n children?: React.ReactNode;\n delayLongPress?: number;\n delayPressIn?: number;\n delayPressOut?: number;\n disabled?: boolean;\n focusable?: boolean;\n onBlur?: (event: NativeSyntheticEvent<TargetedEvent>) => void;\n onFocus?: (event: NativeSyntheticEvent<TargetedEvent>) => void;\n onLayout?: (event: LayoutChangeEvent) => void;\n onLongPress?: (event: GestureResponderEvent) => void;\n onPress?: (event: GestureResponderEvent) => void;\n onPressIn?: (event: GestureResponderEvent) => void;\n onPressOut?: (event: GestureResponderEvent) => void;\n testID?: string;\n isHighlight?: boolean;\n isWithoutFeedback?: boolean;\n // for TouchableOpacity\n activeOpacity?: number;\n style?: StyleProp<ViewStyle>;\n // Analytics\n analytics?: Analytics;\n analyticsID?: string;\n analyticsParams?: AnalyticsEventParams;\n vibration?: Vibration;\n};\n\nconst logEvent = (\n eventName: string,\n analyticsID: string,\n analytics: Analytics,\n analyticsParams?: AnalyticsEventParams\n) => {\n analytics &&\n analytics.logEvent(eventName, {\n ...(analyticsParams || {}),\n id: analyticsID\n });\n};\n\nconst Touchable = (props: Props) => {\n const templateContext = useTemplateContext();\n\n const {theme, vibration, analytics} = templateContext;\n\n const {\n analyticsID,\n analyticsParams,\n accessibilityLabel,\n onPress,\n onLongPress,\n isWithoutFeedback,\n isHighlight,\n activeOpacity,\n disabled\n } = props;\n\n const handlePress = useMemo(\n () => (event: GestureResponderEvent) => {\n if (!onPress) return;\n\n vibration?.vibrate();\n\n analytics &&\n analyticsID &&\n logEvent(ANALYTICS_EVENT_TYPE.PRESS, analyticsID, analytics, analyticsParams);\n onPress(event);\n },\n [analytics, analyticsID, analyticsParams, onPress, vibration]\n );\n\n const handleLongPress = useMemo(\n () => (event: GestureResponderEvent) => {\n if (!onLongPress) return;\n\n vibration?.vibrate();\n\n analytics &&\n analyticsID &&\n logEvent(ANALYTICS_EVENT_TYPE.LONG_PRESS, analyticsID, analytics, analyticsParams);\n onLongPress(event);\n },\n [analytics, analyticsID, analyticsParams, onLongPress, vibration]\n );\n\n if (isHighlight) {\n return (\n <TouchableHighlight\n {...props}\n accessibilityLabel={accessibilityLabel}\n hitSlop={hitSlop}\n underlayColor={theme.colors.gray.light}\n onPress={handlePress}\n onLongPress={handleLongPress}\n activeOpacity={activeOpacity || (disabled ? 1 : 0.85)}\n />\n );\n }\n\n return (\n <TouchableOpacity\n {...props}\n accessibilityLabel={accessibilityLabel}\n hitSlop={hitSlop}\n onPress={handlePress}\n onLongPress={handleLongPress}\n activeOpacity={(isWithoutFeedback && 1) || activeOpacity || (disabled ? 1 : 0.2)}\n />\n );\n};\n\nexport default Touchable;\n"],"mappings":";AAAA,SACEA,gBAAgB,EAChBC,kBAAkB,QAOb,cAAc;AAErB,OAAOC,KAAK,IAAGC,OAAO,QAAO,OAAO;AACpC,SAAQC,kBAAkB,QAAO,4CAA4C;AAC7E,SAAQC,oBAAoB,QAAwC,2BAA2B;AAG/F,MAAMC,OAAO,GAAG;EACdC,IAAI,EAAE,EAAE;EACRC,KAAK,EAAE,EAAE;EACTC,MAAM,EAAE,EAAE;EACVC,GAAG,EAAE;AACP,CAAC;AA+BD,MAAMC,QAAQ,GAAGA,CACfC,SAAiB,EACjBC,WAAmB,EACnBC,SAAoB,EACpBC,eAAsC,KACnC;EACHD,SAAS,IACPA,SAAS,CAACH,QAAQ,CAACC,SAAS,EAAE;IAC5B,IAAIG,eAAe,IAAI,CAAC,CAAC,CAAC;IAC1BC,EAAE,EAAEH;EACN,CAAC,CAAC;AACN,CAAC;AAED,MAAMI,SAAS,GAAIC,KAAY,IAAK;EAClC,MAAMC,eAAe,GAAGf,kBAAkB,CAAC,CAAC;EAE5C,MAAM;IAACgB,KAAK;IAAEC,SAAS;IAAEP;EAAS,CAAC,GAAGK,eAAe;EAErD,MAAM;IACJN,WAAW;IACXE,eAAe;IACfO,kBAAkB;IAClBC,OAAO;IACPC,WAAW;IACXC,iBAAiB;IACjBC,WAAW;IACXC,aAAa;IACbC;EACF,CAAC,GAAGV,KAAK;EAET,MAAMW,WAAW,GAAG1B,OAAO,CACzB,MAAO2B,KAA4B,IAAK;IACtC,IAAI,CAACP,OAAO,EAAE;IAEdF,SAAS,EAAEU,OAAO,CAAC,CAAC;IAEpBjB,SAAS,IACPD,WAAW,IACXF,QAAQ,CAACN,oBAAoB,CAAC2B,KAAK,EAAEnB,WAAW,EAAEC,SAAS,EAAEC,eAAe,CAAC;IAC/EQ,OAAO,CAACO,KAAK,CAAC;EAChB,CAAC,EACD,CAAChB,SAAS,EAAED,WAAW,EAAEE,eAAe,EAAEQ,OAAO,EAAEF,SAAS,CAC9D,CAAC;EAED,MAAMY,eAAe,GAAG9B,OAAO,CAC7B,MAAO2B,KAA4B,IAAK;IACtC,IAAI,CAACN,WAAW,EAAE;IAElBH,SAAS,EAAEU,OAAO,CAAC,CAAC;IAEpBjB,SAAS,IACPD,WAAW,IACXF,QAAQ,CAACN,oBAAoB,CAAC6B,UAAU,EAAErB,WAAW,EAAEC,SAAS,EAAEC,eAAe,CAAC;IACpFS,WAAW,CAACM,KAAK,CAAC;EACpB,CAAC,EACD,CAAChB,SAAS,EAAED,WAAW,EAAEE,eAAe,EAAES,WAAW,EAAEH,SAAS,CAClE,CAAC;EAED,IAAIK,WAAW,EAAE;IACf,oBACExB,KAAA,CAAAiC,aAAA,CAAClC,kBAAkB,EAAAmC,QAAA,KACblB,KAAK;MACTI,kBAAkB,EAAEA,kBAAmB;MACvChB,OAAO,EAAEA,OAAQ;MACjB+B,aAAa,EAAEjB,KAAK,CAACkB,MAAM,CAACC,IAAI,CAACC,KAAM;MACvCjB,OAAO,EAAEM,WAAY;MACrBL,WAAW,EAAES,eAAgB;MAC7BN,aAAa,EAAEA,aAAa,KAAKC,QAAQ,GAAG,CAAC,GAAG,IAAI;IAAE,EACvD,CAAC;EAEN;EAEA,oBACE1B,KAAA,CAAAiC,aAAA,CAACnC,gBAAgB,EAAAoC,QAAA,KACXlB,KAAK;IACTI,kBAAkB,EAAEA,kBAAmB;IACvChB,OAAO,EAAEA,OAAQ;IACjBiB,OAAO,EAAEM,WAAY;IACrBL,WAAW,EAAES,eAAgB;IAC7BN,aAAa,EAAGF,iBAAiB,IAAI,CAAC,IAAKE,aAAa,KAAKC,QAAQ,GAAG,CAAC,GAAG,GAAG;EAAE,EAClF,CAAC;AAEN,CAAC;AAED,eAAeX,SAAS","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-prop-types.js","names":["PropTypes","propTypes","name","string","isRequired","onAnimationEnd","func","animated","bool","className"],"sources":["../../../src/hoc/transition/child-prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool,\n className: PropTypes.string\n};\n\nexport type ChildProps = {\n child: React.ReactElement;\n onAnimationEnd: (name: string) => void;\n className: string;\n name: string;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"child-prop-types.js","names":["PropTypes","propTypes","name","string","isRequired","onAnimationEnd","func","animated","bool","className"],"sources":["../../../src/hoc/transition/child-prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool,\n className: PropTypes.string\n};\n\nexport type ChildProps = {\n child: React.ReactElement;\n onAnimationEnd: (name: string) => void;\n className: string;\n name: string;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,IAAI,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EACjCC,cAAc,EAAEL,SAAS,CAACM,IAAI;EAC9BC,QAAQ,EAAEP,SAAS,CAACQ,IAAI;EACxBC,SAAS,EAAET,SAAS,CAACG;AACvB,CAAC;AASD,eAAeF,SAAS","ignoreList":[]}
|
|
@@ -3,7 +3,6 @@ import React, { useMemo, useCallback } from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import childPropTypes from './child-prop-types';
|
|
5
5
|
import transitionPropTypes from './transition-prop-types';
|
|
6
|
-
|
|
7
6
|
const Child = ({
|
|
8
7
|
child,
|
|
9
8
|
onAnimationEnd,
|
|
@@ -24,9 +23,7 @@ const Child = ({
|
|
|
24
23
|
onAnimationEnd: handleAnimationEnd
|
|
25
24
|
});
|
|
26
25
|
};
|
|
27
|
-
|
|
28
26
|
Child.propTypes = process.env.NODE_ENV !== "production" ? childPropTypes : {};
|
|
29
|
-
|
|
30
27
|
const Transition = props => {
|
|
31
28
|
const {
|
|
32
29
|
name,
|
|
@@ -43,7 +40,6 @@ const Transition = props => {
|
|
|
43
40
|
})), [children, className, name, onAnimationEnd]);
|
|
44
41
|
return animated ? animatedChildren : children;
|
|
45
42
|
};
|
|
46
|
-
|
|
47
43
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? transitionPropTypes : {};
|
|
48
44
|
export default Transition;
|
|
49
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","useCallback","classnames","childPropTypes","transitionPropTypes","Child","child","onAnimationEnd","className","name","props","propClassName","handleAnimationEnd","cloneElement","onTransitionEnd","propTypes","Transition","children","animated","animatedChildren","Children","map"],"sources":["../../../src/hoc/transition/index.tsx"],"sourcesContent":["import React, {useMemo, useCallback} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport childPropTypes, {ChildProps} from './child-prop-types';\nimport transitionPropTypes, {TransitionProps} from './transition-prop-types';\n\nconst Child = ({child, onAnimationEnd, className, name}: ChildProps) => {\n const {\n props: {className: propClassName}\n } = child;\n\n const handleAnimationEnd = useCallback(() => {\n return onAnimationEnd(name);\n }, [onAnimationEnd, name]);\n\n return React.cloneElement(child, {\n className: classnames(propClassName, className),\n onTransitionEnd: handleAnimationEnd,\n onAnimationEnd: handleAnimationEnd\n });\n};\n\nChild.propTypes = childPropTypes;\n\nconst Transition = (props: TransitionProps) => {\n const {name, children, className, animated, onAnimationEnd = noop} = props;\n\n const animatedChildren = useMemo(\n () =>\n React.Children.map(children, child => (\n <Child child={child} onAnimationEnd={onAnimationEnd} className={className} name={name} />\n )),\n [children, className, name, onAnimationEnd]\n );\n\n return animated ? animatedChildren : children;\n};\n\nTransition.propTypes = transitionPropTypes;\n\nexport default Transition;\n"],"mappings":";AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","useCallback","classnames","childPropTypes","transitionPropTypes","Child","child","onAnimationEnd","className","name","props","propClassName","handleAnimationEnd","cloneElement","onTransitionEnd","propTypes","process","env","NODE_ENV","Transition","children","animated","_noop","animatedChildren","Children","map","createElement"],"sources":["../../../src/hoc/transition/index.tsx"],"sourcesContent":["import React, {useMemo, useCallback} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport childPropTypes, {ChildProps} from './child-prop-types';\nimport transitionPropTypes, {TransitionProps} from './transition-prop-types';\n\nconst Child = ({child, onAnimationEnd, className, name}: ChildProps) => {\n const {\n props: {className: propClassName}\n } = child;\n\n const handleAnimationEnd = useCallback(() => {\n return onAnimationEnd(name);\n }, [onAnimationEnd, name]);\n\n return React.cloneElement(child, {\n className: classnames(propClassName, className),\n onTransitionEnd: handleAnimationEnd,\n onAnimationEnd: handleAnimationEnd\n });\n};\n\nChild.propTypes = childPropTypes;\n\nconst Transition = (props: TransitionProps) => {\n const {name, children, className, animated, onAnimationEnd = noop} = props;\n\n const animatedChildren = useMemo(\n () =>\n React.Children.map(children, child => (\n <Child child={child} onAnimationEnd={onAnimationEnd} className={className} name={name} />\n )),\n [children, className, name, onAnimationEnd]\n );\n\n return animated ? animatedChildren : children;\n};\n\nTransition.propTypes = transitionPropTypes;\n\nexport default Transition;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,WAAW,QAAO,OAAO;AAEjD,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,cAAc,MAAoB,oBAAoB;AAC7D,OAAOC,mBAAmB,MAAyB,yBAAyB;AAE5E,MAAMC,KAAK,GAAGA,CAAC;EAACC,KAAK;EAAEC,cAAc;EAAEC,SAAS;EAAEC;AAAgB,CAAC,KAAK;EACtE,MAAM;IACJC,KAAK,EAAE;MAACF,SAAS,EAAEG;IAAa;EAClC,CAAC,GAAGL,KAAK;EAET,MAAMM,kBAAkB,GAAGX,WAAW,CAAC,MAAM;IAC3C,OAAOM,cAAc,CAACE,IAAI,CAAC;EAC7B,CAAC,EAAE,CAACF,cAAc,EAAEE,IAAI,CAAC,CAAC;EAE1B,oBAAOV,KAAK,CAACc,YAAY,CAACP,KAAK,EAAE;IAC/BE,SAAS,EAAEN,UAAU,CAACS,aAAa,EAAEH,SAAS,CAAC;IAC/CM,eAAe,EAAEF,kBAAkB;IACnCL,cAAc,EAAEK;EAClB,CAAC,CAAC;AACJ,CAAC;AAEDP,KAAK,CAACU,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGf,cAAc;AAEhC,MAAMgB,UAAU,GAAIT,KAAsB,IAAK;EAC7C,MAAM;IAACD,IAAI;IAAEW,QAAQ;IAAEZ,SAAS;IAAEa,QAAQ;IAAEd,cAAc,GAAAe;EAAO,CAAC,GAAGZ,KAAK;EAE1E,MAAMa,gBAAgB,GAAGvB,OAAO,CAC9B,MACED,KAAK,CAACyB,QAAQ,CAACC,GAAG,CAACL,QAAQ,EAAEd,KAAK,iBAChCP,KAAA,CAAA2B,aAAA,CAACrB,KAAK;IAACC,KAAK,EAAEA,KAAM;IAACC,cAAc,EAAEA,cAAe;IAACC,SAAS,EAAEA,SAAU;IAACC,IAAI,EAAEA;EAAK,CAAE,CACzF,CAAC,EACJ,CAACW,QAAQ,EAAEZ,SAAS,EAAEC,IAAI,EAAEF,cAAc,CAC5C,CAAC;EAED,OAAOc,QAAQ,GAAGE,gBAAgB,GAAGH,QAAQ;AAC/C,CAAC;AAEDD,UAAU,CAACJ,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGd,mBAAmB;AAE1C,eAAee,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition-prop-types.js","names":["PropTypes","propTypes","isAlreadyEngaged","bool","isRandom","userAvatarSrc","string","onClick","func","displayName","tooltipText"],"sources":["../../../src/hoc/transition/transition-prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n isAlreadyEngaged: PropTypes.bool,\n isRandom: PropTypes.bool,\n userAvatarSrc: PropTypes.string,\n onClick: PropTypes.func,\n displayName: PropTypes.string,\n tooltipText: PropTypes.string,\n 'aria-label': PropTypes.string\n};\n\nexport type TransitionProps = {\n name: string;\n children: React.ReactElement;\n className: string;\n animated: boolean;\n onAnimationEnd: () => void;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"transition-prop-types.js","names":["PropTypes","propTypes","isAlreadyEngaged","bool","isRandom","userAvatarSrc","string","onClick","func","displayName","tooltipText"],"sources":["../../../src/hoc/transition/transition-prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n isAlreadyEngaged: PropTypes.bool,\n isRandom: PropTypes.bool,\n userAvatarSrc: PropTypes.string,\n onClick: PropTypes.func,\n displayName: PropTypes.string,\n tooltipText: PropTypes.string,\n 'aria-label': PropTypes.string\n};\n\nexport type TransitionProps = {\n name: string;\n children: React.ReactElement;\n className: string;\n animated: boolean;\n onAnimationEnd: () => void;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,gBAAgB,EAAEF,SAAS,CAACG,IAAI;EAChCC,QAAQ,EAAEJ,SAAS,CAACG,IAAI;EACxBE,aAAa,EAAEL,SAAS,CAACM,MAAM;EAC/BC,OAAO,EAAEP,SAAS,CAACQ,IAAI;EACvBC,WAAW,EAAET,SAAS,CAACM,MAAM;EAC7BI,WAAW,EAAEV,SAAS,CAACM,MAAM;EAC7B,YAAY,EAAEN,SAAS,CAACM;AAC1B,CAAC;AAUD,eAAeL,SAAS","ignoreList":[]}
|
package/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Provider","PopinEnd","PopinCorrection","Player","Loading","PopinNoAccess"],"sources":["../src/index.js"],"sourcesContent":["import Provider from './atom/provider';\nimport PopinEnd from './template/app-player/popin-end';\nimport PopinCorrection from './template/app-player/popin-correction';\nimport Player from './template/app-player/player';\nimport Loading from './template/app-player/loading';\nimport PopinNoAccess from './template/app-player/popin-no-access';\n\nexport {Provider, PopinEnd, PopinCorrection, Loading, Player, PopinNoAccess};\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["Provider","PopinEnd","PopinCorrection","Player","Loading","PopinNoAccess"],"sources":["../src/index.js"],"sourcesContent":["import Provider from './atom/provider';\nimport PopinEnd from './template/app-player/popin-end';\nimport PopinCorrection from './template/app-player/popin-correction';\nimport Player from './template/app-player/player';\nimport Loading from './template/app-player/loading';\nimport PopinNoAccess from './template/app-player/popin-no-access';\n\nexport {Provider, PopinEnd, PopinCorrection, Loading, Player, PopinNoAccess};\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,QAAQ,MAAM,iCAAiC;AACtD,OAAOC,eAAe,MAAM,wCAAwC;AACpE,OAAOC,MAAM,MAAM,8BAA8B;AACjD,OAAOC,OAAO,MAAM,+BAA+B;AACnD,OAAOC,aAAa,MAAM,uCAAuC;AAEjE,SAAQL,QAAQ,EAAEC,QAAQ,EAAEC,eAAe,EAAEE,OAAO,EAAED,MAAM,EAAEE,aAAa","ignoreList":[]}
|
|
@@ -16,11 +16,9 @@ export const AddToMyListStatusProvider = ({
|
|
|
16
16
|
useEffect(() => {
|
|
17
17
|
let timeoutId;
|
|
18
18
|
const DURATION = 3000;
|
|
19
|
-
|
|
20
19
|
if (status !== ADD_TO_MY_LIST_STATUS.IDLE) {
|
|
21
20
|
timeoutId = setTimeout(() => setStatus(ADD_TO_MY_LIST_STATUS.IDLE), DURATION);
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
return () => clearTimeout(timeoutId);
|
|
25
23
|
}, [status]);
|
|
26
24
|
const statusValue = useMemo(() => [status, setStatus], [status, setStatus]);
|
|
@@ -47,7 +45,6 @@ export const AddToMyListFeedback = ({
|
|
|
47
45
|
role: "status"
|
|
48
46
|
}, favorite ? addToMyListText : removeFromMyListText));
|
|
49
47
|
};
|
|
50
|
-
|
|
51
48
|
const AddToMyList = ({
|
|
52
49
|
style,
|
|
53
50
|
addToMyListButton,
|
|
@@ -55,13 +52,10 @@ const AddToMyList = ({
|
|
|
55
52
|
onFavoriteClick
|
|
56
53
|
}) => {
|
|
57
54
|
const [, setStatus] = useContext(StatusContext);
|
|
58
|
-
|
|
59
55
|
const cb = () => setStatus(ADD_TO_MY_LIST_STATUS.SUCCESS);
|
|
60
|
-
|
|
61
56
|
function onClick() {
|
|
62
57
|
onFavoriteClick(cb);
|
|
63
58
|
}
|
|
64
|
-
|
|
65
59
|
return /*#__PURE__*/React.createElement("div", {
|
|
66
60
|
className: (styles.container, style)
|
|
67
61
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
@@ -81,7 +75,6 @@ const AddToMyList = ({
|
|
|
81
75
|
height: 12
|
|
82
76
|
}), /*#__PURE__*/React.createElement("p", null, addToMyListButton))));
|
|
83
77
|
};
|
|
84
|
-
|
|
85
78
|
AddToMyListStatusProvider.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
86
79
|
children: PropTypes.node
|
|
87
80
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useState","useContext","useEffect","useMemo","PropTypes","classnames","NovaCompositionCoorpacademyCheck","CheckIcon","NovaCompositionNavigationMore","MoreIcon","Link","styles","ADD_TO_MY_LIST_STATUS","IDLE","SUCCESS","StatusContext","createContext","AddToMyListStatusProvider","children","status","setStatus","timeoutId","DURATION","setTimeout","clearTimeout","statusValue","AddToMyListFeedback","addToMyListText","removeFromMyListText","favorite","feedback","checkIcon","AddToMyList","style","addToMyListButton","onFavoriteClick","cb","onClick","container","cta","wrapper","shareIcon","propTypes","node","string","bool","func"],"sources":["../../../src/molecule/add-to-my-list/index.js"],"sourcesContent":["import React, {useState, useContext, useEffect, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademyCheck as CheckIcon,\n NovaCompositionNavigationMore as MoreIcon\n} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport styles from './style.css';\n\nconst ADD_TO_MY_LIST_STATUS = {\n IDLE: 'IDLE',\n SUCCESS: 'SUCCESS'\n};\n\nconst StatusContext = React.createContext(ADD_TO_MY_LIST_STATUS.IDLE);\n\nexport const AddToMyListStatusProvider = ({children}) => {\n const [status, setStatus] = useState(ADD_TO_MY_LIST_STATUS.IDLE);\n useEffect(() => {\n let timeoutId;\n const DURATION = 3000;\n if (status !== ADD_TO_MY_LIST_STATUS.IDLE) {\n timeoutId = setTimeout(() => setStatus(ADD_TO_MY_LIST_STATUS.IDLE), DURATION);\n }\n return () => clearTimeout(timeoutId);\n }, [status]);\n const statusValue = useMemo(() => [status, setStatus], [status, setStatus]);\n return <StatusContext.Provider value={statusValue}>{children}</StatusContext.Provider>;\n};\n\nexport const AddToMyListFeedback = ({addToMyListText, removeFromMyListText, favorite}) => {\n const [status] = useContext(StatusContext);\n if (status === ADD_TO_MY_LIST_STATUS.IDLE) return null;\n\n return (\n <div\n className={classnames(styles.feedback)}\n data-testid=\"add-to-my-list-feedback\"\n data-name={'add-to-my-list-feedback'}\n >\n <CheckIcon className={styles.checkIcon} width={13} height={13} />\n <p role=\"status\">{favorite ? addToMyListText : removeFromMyListText}</p>\n </div>\n );\n};\n\nconst AddToMyList = ({style, addToMyListButton, favorite, onFavoriteClick}) => {\n const [, setStatus] = useContext(StatusContext);\n const cb = () => setStatus(ADD_TO_MY_LIST_STATUS.SUCCESS);\n\n function onClick() {\n onFavoriteClick(cb);\n }\n\n return (\n <div className={(styles.container, style)}>\n <Link\n data-testid=\"add-to-my-list-button\"\n data-name={'add-to-my-list-button'}\n onClick={onClick}\n className={styles.cta}\n >\n <div className={styles.wrapper}>\n {favorite ? (\n <CheckIcon className={styles.shareIcon} width={15} height={15} />\n ) : (\n <MoreIcon className={styles.shareIcon} width={12} height={12} />\n )}\n <p>{addToMyListButton}</p>\n </div>\n </Link>\n </div>\n );\n};\n\nAddToMyListStatusProvider.propTypes = {\n children: PropTypes.node\n};\n\nAddToMyListFeedback.propTypes = {\n addToMyListText: PropTypes.string,\n removeFromMyListText: PropTypes.string,\n favorite: PropTypes.bool\n};\n\nAddToMyList.propTypes = {\n style: PropTypes.string,\n addToMyListButton: PropTypes.string,\n favorite: PropTypes.bool,\n onFavoriteClick: PropTypes.func\n};\n\nexport default AddToMyList;\n"],"mappings":"AAAA,OAAOA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useState","useContext","useEffect","useMemo","PropTypes","classnames","NovaCompositionCoorpacademyCheck","CheckIcon","NovaCompositionNavigationMore","MoreIcon","Link","styles","ADD_TO_MY_LIST_STATUS","IDLE","SUCCESS","StatusContext","createContext","AddToMyListStatusProvider","children","status","setStatus","timeoutId","DURATION","setTimeout","clearTimeout","statusValue","createElement","Provider","value","AddToMyListFeedback","addToMyListText","removeFromMyListText","favorite","className","feedback","checkIcon","width","height","role","AddToMyList","style","addToMyListButton","onFavoriteClick","cb","onClick","container","cta","wrapper","shareIcon","propTypes","process","env","NODE_ENV","node","string","bool","func"],"sources":["../../../src/molecule/add-to-my-list/index.js"],"sourcesContent":["import React, {useState, useContext, useEffect, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademyCheck as CheckIcon,\n NovaCompositionNavigationMore as MoreIcon\n} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport styles from './style.css';\n\nconst ADD_TO_MY_LIST_STATUS = {\n IDLE: 'IDLE',\n SUCCESS: 'SUCCESS'\n};\n\nconst StatusContext = React.createContext(ADD_TO_MY_LIST_STATUS.IDLE);\n\nexport const AddToMyListStatusProvider = ({children}) => {\n const [status, setStatus] = useState(ADD_TO_MY_LIST_STATUS.IDLE);\n useEffect(() => {\n let timeoutId;\n const DURATION = 3000;\n if (status !== ADD_TO_MY_LIST_STATUS.IDLE) {\n timeoutId = setTimeout(() => setStatus(ADD_TO_MY_LIST_STATUS.IDLE), DURATION);\n }\n return () => clearTimeout(timeoutId);\n }, [status]);\n const statusValue = useMemo(() => [status, setStatus], [status, setStatus]);\n return <StatusContext.Provider value={statusValue}>{children}</StatusContext.Provider>;\n};\n\nexport const AddToMyListFeedback = ({addToMyListText, removeFromMyListText, favorite}) => {\n const [status] = useContext(StatusContext);\n if (status === ADD_TO_MY_LIST_STATUS.IDLE) return null;\n\n return (\n <div\n className={classnames(styles.feedback)}\n data-testid=\"add-to-my-list-feedback\"\n data-name={'add-to-my-list-feedback'}\n >\n <CheckIcon className={styles.checkIcon} width={13} height={13} />\n <p role=\"status\">{favorite ? addToMyListText : removeFromMyListText}</p>\n </div>\n );\n};\n\nconst AddToMyList = ({style, addToMyListButton, favorite, onFavoriteClick}) => {\n const [, setStatus] = useContext(StatusContext);\n const cb = () => setStatus(ADD_TO_MY_LIST_STATUS.SUCCESS);\n\n function onClick() {\n onFavoriteClick(cb);\n }\n\n return (\n <div className={(styles.container, style)}>\n <Link\n data-testid=\"add-to-my-list-button\"\n data-name={'add-to-my-list-button'}\n onClick={onClick}\n className={styles.cta}\n >\n <div className={styles.wrapper}>\n {favorite ? (\n <CheckIcon className={styles.shareIcon} width={15} height={15} />\n ) : (\n <MoreIcon className={styles.shareIcon} width={12} height={12} />\n )}\n <p>{addToMyListButton}</p>\n </div>\n </Link>\n </div>\n );\n};\n\nAddToMyListStatusProvider.propTypes = {\n children: PropTypes.node\n};\n\nAddToMyListFeedback.propTypes = {\n addToMyListText: PropTypes.string,\n removeFromMyListText: PropTypes.string,\n favorite: PropTypes.bool\n};\n\nAddToMyList.propTypes = {\n style: PropTypes.string,\n addToMyListButton: PropTypes.string,\n favorite: PropTypes.bool,\n onFavoriteClick: PropTypes.func\n};\n\nexport default AddToMyList;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,QAAQ,EAAEC,UAAU,EAAEC,SAAS,EAAEC,OAAO,QAAO,OAAO;AACrE,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AACnC,SACEC,gCAAgC,IAAIC,SAAS,EAC7CC,6BAA6B,IAAIC,QAAQ,QACpC,0BAA0B;AACjC,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,MAAM,MAAM,aAAa;AAEhC,MAAMC,qBAAqB,GAAG;EAC5BC,IAAI,EAAE,MAAM;EACZC,OAAO,EAAE;AACX,CAAC;AAED,MAAMC,aAAa,gBAAGhB,KAAK,CAACiB,aAAa,CAACJ,qBAAqB,CAACC,IAAI,CAAC;AAErE,OAAO,MAAMI,yBAAyB,GAAGA,CAAC;EAACC;AAAQ,CAAC,KAAK;EACvD,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGpB,QAAQ,CAACY,qBAAqB,CAACC,IAAI,CAAC;EAChEX,SAAS,CAAC,MAAM;IACd,IAAImB,SAAS;IACb,MAAMC,QAAQ,GAAG,IAAI;IACrB,IAAIH,MAAM,KAAKP,qBAAqB,CAACC,IAAI,EAAE;MACzCQ,SAAS,GAAGE,UAAU,CAAC,MAAMH,SAAS,CAACR,qBAAqB,CAACC,IAAI,CAAC,EAAES,QAAQ,CAAC;IAC/E;IACA,OAAO,MAAME,YAAY,CAACH,SAAS,CAAC;EACtC,CAAC,EAAE,CAACF,MAAM,CAAC,CAAC;EACZ,MAAMM,WAAW,GAAGtB,OAAO,CAAC,MAAM,CAACgB,MAAM,EAAEC,SAAS,CAAC,EAAE,CAACD,MAAM,EAAEC,SAAS,CAAC,CAAC;EAC3E,oBAAOrB,KAAA,CAAA2B,aAAA,CAACX,aAAa,CAACY,QAAQ;IAACC,KAAK,EAAEH;EAAY,GAAEP,QAAiC,CAAC;AACxF,CAAC;AAED,OAAO,MAAMW,mBAAmB,GAAGA,CAAC;EAACC,eAAe;EAAEC,oBAAoB;EAAEC;AAAQ,CAAC,KAAK;EACxF,MAAM,CAACb,MAAM,CAAC,GAAGlB,UAAU,CAACc,aAAa,CAAC;EAC1C,IAAII,MAAM,KAAKP,qBAAqB,CAACC,IAAI,EAAE,OAAO,IAAI;EAEtD,oBACEd,KAAA,CAAA2B,aAAA;IACEO,SAAS,EAAE5B,UAAU,CAACM,MAAM,CAACuB,QAAQ,CAAE;IACvC,eAAY,yBAAyB;IACrC,aAAW;EAA0B,gBAErCnC,KAAA,CAAA2B,aAAA,CAACnB,SAAS;IAAC0B,SAAS,EAAEtB,MAAM,CAACwB,SAAU;IAACC,KAAK,EAAE,EAAG;IAACC,MAAM,EAAE;EAAG,CAAE,CAAC,eACjEtC,KAAA,CAAA2B,aAAA;IAAGY,IAAI,EAAC;EAAQ,GAAEN,QAAQ,GAAGF,eAAe,GAAGC,oBAAwB,CACpE,CAAC;AAEV,CAAC;AAED,MAAMQ,WAAW,GAAGA,CAAC;EAACC,KAAK;EAAEC,iBAAiB;EAAET,QAAQ;EAAEU;AAAe,CAAC,KAAK;EAC7E,MAAM,GAAGtB,SAAS,CAAC,GAAGnB,UAAU,CAACc,aAAa,CAAC;EAC/C,MAAM4B,EAAE,GAAGA,CAAA,KAAMvB,SAAS,CAACR,qBAAqB,CAACE,OAAO,CAAC;EAEzD,SAAS8B,OAAOA,CAAA,EAAG;IACjBF,eAAe,CAACC,EAAE,CAAC;EACrB;EAEA,oBACE5C,KAAA,CAAA2B,aAAA;IAAKO,SAAS,GAAGtB,MAAM,CAACkC,SAAS,EAAEL,KAAK;EAAE,gBACxCzC,KAAA,CAAA2B,aAAA,CAAChB,IAAI;IACH,eAAY,uBAAuB;IACnC,aAAW,uBAAwB;IACnCkC,OAAO,EAAEA,OAAQ;IACjBX,SAAS,EAAEtB,MAAM,CAACmC;EAAI,gBAEtB/C,KAAA,CAAA2B,aAAA;IAAKO,SAAS,EAAEtB,MAAM,CAACoC;EAAQ,GAC5Bf,QAAQ,gBACPjC,KAAA,CAAA2B,aAAA,CAACnB,SAAS;IAAC0B,SAAS,EAAEtB,MAAM,CAACqC,SAAU;IAACZ,KAAK,EAAE,EAAG;IAACC,MAAM,EAAE;EAAG,CAAE,CAAC,gBAEjEtC,KAAA,CAAA2B,aAAA,CAACjB,QAAQ;IAACwB,SAAS,EAAEtB,MAAM,CAACqC,SAAU;IAACZ,KAAK,EAAE,EAAG;IAACC,MAAM,EAAE;EAAG,CAAE,CAChE,eACDtC,KAAA,CAAA2B,aAAA,YAAIe,iBAAqB,CACtB,CACD,CACH,CAAC;AAEV,CAAC;AAEDxB,yBAAyB,CAACgC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACpClC,QAAQ,EAAEd,SAAS,CAACiD;AACtB,CAAC;AAEDxB,mBAAmB,CAACoB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EAC9BtB,eAAe,EAAE1B,SAAS,CAACkD,MAAM;EACjCvB,oBAAoB,EAAE3B,SAAS,CAACkD,MAAM;EACtCtB,QAAQ,EAAE5B,SAAS,CAACmD;AACtB,CAAC;AAEDhB,WAAW,CAACU,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACtBZ,KAAK,EAAEpC,SAAS,CAACkD,MAAM;EACvBb,iBAAiB,EAAErC,SAAS,CAACkD,MAAM;EACnCtB,QAAQ,EAAE5B,SAAS,CAACmD,IAAI;EACxBb,eAAe,EAAEtC,SAAS,CAACoD;AAC7B,CAAC;AAED,eAAejB,WAAW","ignoreList":[]}
|