@coorpacademy/components 11.9.3-alpha.25 → 11.9.3-alpha.29
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 +0 -3
- 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/button/index.js +0 -8
- package/es/atom/button/index.js.map +1 -1
- package/es/atom/button/index.native.d.ts +1 -1
- package/es/atom/button/index.native.d.ts.map +1 -1
- package/es/atom/button/index.native.js +0 -4
- package/es/atom/button/index.native.js.map +1 -1
- package/es/atom/button-link/index.js +0 -10
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link-icon-only/index.js +0 -12
- package/es/atom/button-link-icon-only/index.js.map +1 -1
- package/es/atom/button-menu/index.js +0 -5
- package/es/atom/button-menu/index.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 +5 -11
- 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/chips/index.js +0 -2
- package/es/atom/chips/index.js.map +1 -1
- package/es/atom/choice/index.native.d.ts +1 -1
- package/es/atom/choice/index.native.d.ts.map +1 -1
- package/es/atom/choice/index.native.js +2 -12
- package/es/atom/choice/index.native.js.map +1 -1
- package/es/atom/clue/index.js +0 -14
- 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 -13
- package/es/atom/cta/index.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 +0 -15
- 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.d.ts +1 -1
- package/es/atom/gradient/index.native.d.ts.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.d.ts +1 -1
- package/es/atom/header-back-button/index.native.d.ts.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.d.ts +1 -1
- package/es/atom/header-back-icon/index.native.d.ts.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.d.ts +1 -1
- package/es/atom/html/index.native.d.ts.map +1 -1
- package/es/atom/html/index.native.js +6 -12
- package/es/atom/html/index.native.js.map +1 -1
- package/es/atom/image-background/index.native.d.ts +1 -1
- package/es/atom/image-background/index.native.d.ts.map +1 -1
- package/es/atom/image-background/index.native.js +11 -24
- package/es/atom/image-background/index.native.js.map +1 -1
- package/es/atom/image-upload/index.js +0 -6
- package/es/atom/image-upload/index.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 +0 -14
- package/es/atom/input-doublestep/index.js.map +1 -1
- package/es/atom/input-html/index.js +0 -9
- 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 +0 -8
- 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 +0 -3
- package/es/atom/input-text-with-title/index.js.map +1 -1
- package/es/atom/input-textarea/index.js +2 -3
- package/es/atom/input-textarea/index.js.map +1 -1
- package/es/atom/label/index.js +0 -2
- package/es/atom/label/index.js.map +1 -1
- package/es/atom/life/index.js +0 -7
- package/es/atom/life/index.js.map +1 -1
- package/es/atom/link/index.js +7 -24
- 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.d.ts +1 -1
- package/es/atom/loader/index.native.d.ts.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 +3 -11
- package/es/atom/lottie-wrapper/index.js.map +1 -1
- package/es/atom/lottie-wrapper/prop-types.d.ts +1 -1
- package/es/atom/lottie-wrapper/prop-types.d.ts.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 +0 -8
- package/es/atom/picture/index.js.map +1 -1
- package/es/atom/picture-background/index.js +0 -2
- package/es/atom/picture-background/index.js.map +1 -1
- package/es/atom/promo-code/index.js +0 -2
- package/es/atom/promo-code/index.js.map +1 -1
- package/es/atom/provider/index.js +2 -19
- package/es/atom/provider/index.js.map +1 -1
- package/es/atom/provider/web-context.d.ts +3 -3
- package/es/atom/provider/web-context.d.ts.map +1 -1
- package/es/atom/provider/web-context.js +5 -12
- package/es/atom/provider/web-context.js.map +1 -1
- package/es/atom/radio-group/index.js +0 -8
- 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/range/handle.js +9 -17
- package/es/atom/range/handle.js.map +1 -1
- package/es/atom/range/index.js +0 -23
- 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-header-step-item/index.js +0 -8
- package/es/atom/review-header-step-item/index.js.map +1 -1
- package/es/atom/review-header-step-item/index.native.js +0 -14
- package/es/atom/review-header-step-item/index.native.js.map +1 -1
- package/es/atom/review-header-step-item/types.d.ts +2 -2
- package/es/atom/review-header-step-item/types.d.ts.map +1 -1
- package/es/atom/review-header-step-item/types.js.map +1 -1
- package/es/atom/review-presentation/index.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.d.ts +2 -2
- package/es/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/es/atom/review-presentation/prop-types.js.map +1 -1
- package/es/atom/select/index.js +2 -8
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select-modal/index.native.d.ts +2 -2
- package/es/atom/select-modal/index.native.d.ts.map +1 -1
- package/es/atom/select-modal/index.native.js +0 -11
- package/es/atom/select-modal/index.native.js.map +1 -1
- package/es/atom/slide/index.js +0 -3
- 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.d.ts +1 -1
- package/es/atom/space/index.native.d.ts.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/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 +0 -2
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/text/index.native.d.ts +1 -1
- package/es/atom/text/index.native.d.ts.map +1 -1
- package/es/atom/text/index.native.js +0 -3
- package/es/atom/text/index.native.js.map +1 -1
- package/es/atom/title/index.js +0 -8
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/tooltip/index.js +0 -5
- package/es/atom/tooltip/index.js.map +1 -1
- package/es/atom/video-upload/index.js +0 -3
- package/es/atom/video-upload/index.js.map +1 -1
- package/es/atom/wizard-steps/index.js +0 -2
- package/es/atom/wizard-steps/index.js.map +1 -1
- package/es/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.d.ts +1 -1
- package/es/hoc/modal/index.native.d.ts.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.d.ts +2 -2
- package/es/hoc/modal/select/index.native.d.ts.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.d.ts +1 -1
- package/es/hoc/modal/select-item/index.native.d.ts.map +1 -1
- package/es/hoc/modal/select-item/index.native.js +0 -8
- package/es/hoc/modal/select-item/index.native.js.map +1 -1
- package/es/hoc/swapper/index.js +4 -14
- package/es/hoc/swapper/index.js.map +1 -1
- package/es/hoc/touchable/index.native.d.ts +1 -1
- package/es/hoc/touchable/index.native.d.ts.map +1 -1
- package/es/hoc/touchable/index.native.js +0 -6
- package/es/hoc/touchable/index.native.js.map +1 -1
- package/es/hoc/transition/index.js +0 -4
- package/es/hoc/transition/index.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.d.ts.map +1 -1
- package/es/molecule/answer/index.js +7 -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.d.ts +3 -3
- package/es/molecule/answer/prop-types.d.ts.map +1 -1
- package/es/molecule/answer/prop-types.js +0 -3
- package/es/molecule/answer/prop-types.js.map +1 -1
- package/es/molecule/audio/index.js +2 -12
- package/es/molecule/audio/index.js.map +1 -1
- package/es/molecule/banner/index.js +0 -2
- package/es/molecule/banner/index.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 +0 -29
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-logo/index.native.js +0 -5
- 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/bullet-point-menu-button/index.js +0 -2
- package/es/molecule/bullet-point-menu-button/index.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 +0 -9
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/card/index.js +0 -21
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/notification.js +0 -5
- package/es/molecule/card/notification.js.map +1 -1
- package/es/molecule/card/selectable.js +0 -2
- package/es/molecule/card/selectable.js.map +1 -1
- package/es/molecule/card-congrats/index.native.js +0 -7
- package/es/molecule/card-congrats/index.native.js.map +1 -1
- package/es/molecule/card-congrats/types.d.ts +1 -1
- package/es/molecule/card-congrats/types.d.ts.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/cm-popin/index.js +4 -10
- 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.d.ts +2 -2
- package/es/molecule/cm-popin/types.d.ts.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 +0 -3
- package/es/molecule/coorp-manager-roles/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 +0 -6
- 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 +2 -49
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/news-list/index.js.map +1 -1
- package/es/molecule/dashboard/review-banner/index.js +0 -3
- package/es/molecule/dashboard/review-banner/index.js.map +1 -1
- package/es/molecule/dashboard/start-battle/index.js.map +1 -1
- package/es/molecule/discipline-cta/index.js +0 -4
- package/es/molecule/discipline-cta/index.js.map +1 -1
- package/es/molecule/discipline-header/index.js +4 -11
- 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 +0 -3
- 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 +0 -13
- 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 +0 -3
- package/es/molecule/draggable-list/index.js.map +1 -1
- package/es/molecule/empty-state-dashboard/index.js +0 -3
- package/es/molecule/empty-state-dashboard/index.js.map +1 -1
- package/es/molecule/empty-state-dashboard/types.d.ts +1 -1
- package/es/molecule/empty-state-dashboard/types.d.ts.map +1 -1
- package/es/molecule/empty-state-dashboard/types.js.map +1 -1
- package/es/molecule/external-content-button/index.js +0 -5
- 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 +6 -9
- package/es/molecule/feedback/index.js.map +1 -1
- package/es/molecule/filters/filters-wrapper.js +0 -13
- package/es/molecule/filters/filters-wrapper.js.map +1 -1
- package/es/molecule/filters/index.js +0 -11
- 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 +0 -4
- 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/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/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-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 +2 -7
- package/es/molecule/module-card/index.js.map +1 -1
- package/es/molecule/news/index.js +0 -3
- package/es/molecule/news/index.js.map +1 -1
- package/es/molecule/notification-banner/index.js +0 -7
- package/es/molecule/notification-banner/index.js.map +1 -1
- package/es/molecule/pagination/index.js +0 -2
- package/es/molecule/pagination/index.js.map +1 -1
- package/es/molecule/payment-form/index.js +0 -13
- 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/popin/index.js +2 -7
- package/es/molecule/popin/index.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 +0 -6
- package/es/molecule/progress-bar/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 +0 -6
- package/es/molecule/questions/free-text/index.js.map +1 -1
- package/es/molecule/questions/free-text/index.native.d.ts +1 -1
- package/es/molecule/questions/free-text/index.native.d.ts.map +1 -1
- package/es/molecule/questions/free-text/index.native.js +12 -11
- 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.d.ts +2 -2
- package/es/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
- package/es/molecule/questions/mobile/slider/index.native.js +0 -7
- package/es/molecule/questions/mobile/slider/index.native.js.map +1 -1
- package/es/molecule/questions/mobile/switch/index.native.d.ts +1 -1
- package/es/molecule/questions/mobile/switch/index.native.d.ts.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.d.ts +1 -1
- package/es/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
- package/es/molecule/questions/mobile/template/index.native.js +0 -16
- package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/es/molecule/questions/qcm/index.js +3 -7
- package/es/molecule/questions/qcm/index.js.map +1 -1
- package/es/molecule/questions/qcm-drag/index.js +4 -14
- package/es/molecule/questions/qcm-drag/index.js.map +1 -1
- package/es/molecule/questions/qcm-graphic/index.js +2 -7
- package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.js +12 -17
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.js +5 -16
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/types.d.ts +12 -12
- package/es/molecule/questions/types.d.ts.map +1 -1
- package/es/molecule/quick-access-card/index.js +0 -18
- 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 +5 -25
- package/es/molecule/resource-player/index.js.map +1 -1
- package/es/molecule/review-card-congrats/index.js +2 -7
- package/es/molecule/review-card-congrats/index.js.map +1 -1
- package/es/molecule/review-card-congrats/prop-types.d.ts +1 -1
- package/es/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
- package/es/molecule/review-card-congrats/prop-types.js.map +1 -1
- package/es/molecule/review-correction-popin/index.js +4 -9
- package/es/molecule/review-correction-popin/index.js.map +1 -1
- package/es/molecule/review-correction-popin/index.native.js +0 -9
- package/es/molecule/review-correction-popin/index.native.js.map +1 -1
- package/es/molecule/review-correction-popin/prop-types.d.ts +3 -3
- package/es/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
- package/es/molecule/review-correction-popin/prop-types.js.map +1 -1
- package/es/molecule/review-header-steps/index.js +0 -3
- package/es/molecule/review-header-steps/index.js.map +1 -1
- package/es/molecule/review-header-steps/prop-types.d.ts +1 -1
- package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
- package/es/molecule/review-header-steps/prop-types.js.map +1 -1
- package/es/molecule/scope-content/index.js +6 -21
- package/es/molecule/scope-content/index.js.map +1 -1
- package/es/molecule/scope-tabs/index.js +0 -6
- package/es/molecule/scope-tabs/index.js.map +1 -1
- package/es/molecule/search-form/index.js +0 -6
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/select-multiple/index.js +2 -18
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/setup-cohort-item/index.js +0 -10
- package/es/molecule/setup-cohort-item/index.js.map +1 -1
- package/es/molecule/setup-section/index.js +0 -10
- 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-slide/index.js +0 -17
- package/es/molecule/setup-slide/index.js.map +1 -1
- package/es/molecule/setup-slider/index.js +0 -6
- 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.d.ts +1 -1
- package/es/molecule/skill-card/prop-types.d.ts.map +1 -1
- package/es/molecule/skill-card/prop-types.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 +0 -18
- 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 +0 -3
- package/es/molecule/title-and-checkbox-wrapper/index.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/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 +0 -12
- package/es/molecule/video-iframe/index.js.map +1 -1
- package/es/molecule/video-player/index.js +6 -23
- 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 +3 -29
- 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 +0 -42
- package/es/molecule/video-player/vimeo.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 +0 -9
- package/es/organism/accordion/container/index.js.map +1 -1
- package/es/organism/accordion/coorp-manager/index.js +0 -13
- package/es/organism/accordion/coorp-manager/index.js.map +1 -1
- package/es/organism/accordion/coorp-manager/part/index.js +0 -10
- 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 +0 -11
- 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 +0 -3
- 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-table/index.js +0 -2
- package/es/organism/brand-table/index.js.map +1 -1
- package/es/organism/brand-upload/index.js +0 -4
- 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 +0 -5
- package/es/organism/content-translation/index.js.map +1 -1
- package/es/organism/course-selection/index.js +0 -8
- package/es/organism/course-selection/index.js.map +1 -1
- package/es/organism/discussion/index.js +2 -4
- package/es/organism/discussion/index.js.map +1 -1
- package/es/organism/get-the-app/index.js +0 -16
- 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 +0 -4
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-items/index.js +0 -3
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/mobile-navigation/index.native.d.ts +2 -2
- package/es/organism/mobile-navigation/index.native.d.ts.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 +0 -5
- 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 +0 -47
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/podcast-popin-intro/index.native.d.ts +2 -2
- package/es/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
- package/es/organism/podcast-popin-intro/index.native.js +0 -6
- package/es/organism/podcast-popin-intro/index.native.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 +0 -10
- package/es/organism/resource-browser/index.js.map +1 -1
- package/es/organism/review-congrats/index.js +1 -5
- package/es/organism/review-congrats/index.js.map +1 -1
- package/es/organism/review-congrats/index.native.js +2 -10
- package/es/organism/review-congrats/index.native.js.map +1 -1
- package/es/organism/review-congrats/prop-types.d.ts +1 -1
- package/es/organism/review-congrats/prop-types.d.ts.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 +0 -3
- package/es/organism/review-header/index.native.js.map +1 -1
- package/es/organism/review-header/types.d.ts +1 -1
- package/es/organism/review-header/types.d.ts.map +1 -1
- package/es/organism/review-header/types.js.map +1 -1
- package/es/organism/review-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.d.ts +1 -1
- package/es/organism/review-no-skills/prop-types.d.ts.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.d.ts +1 -1
- package/es/organism/review-skills/prop-types.d.ts.map +1 -1
- package/es/organism/review-skills/prop-types.js.map +1 -1
- package/es/organism/review-slide/index.js +8 -16
- package/es/organism/review-slide/index.js.map +1 -1
- package/es/organism/review-slide/index.native.js +3 -10
- package/es/organism/review-slide/index.native.js.map +1 -1
- package/es/organism/review-slide/prop-types.d.ts +5 -5
- package/es/organism/review-slide/prop-types.d.ts.map +1 -1
- package/es/organism/review-slide/prop-types.js +1 -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 +5 -10
- package/es/organism/review-stacked-slides/index.native.js.map +1 -1
- package/es/organism/review-stacked-slides/prop-types.d.ts +1 -1
- package/es/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
- package/es/organism/review-stacked-slides/prop-types.js.map +1 -1
- package/es/organism/rewards-form/index.js +3 -8
- package/es/organism/rewards-form/index.js.map +1 -1
- package/es/organism/search-and-chips-results/index.js +0 -6
- package/es/organism/search-and-chips-results/index.js.map +1 -1
- package/es/organism/settings/index.js +5 -12
- 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 +8 -26
- 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/user-preferences/index.js +5 -13
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/wizard-contents/index.js +0 -13
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/template/activity/engine-stars.js +5 -17
- package/es/template/activity/engine-stars.js.map +1 -1
- package/es/template/activity/index.js +2 -4
- 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 +0 -13
- 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 +0 -3
- package/es/template/app-player/player/index.js.map +1 -1
- package/es/template/app-player/player/slides/footer/index.js +0 -16
- 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 +4 -14
- 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 +2 -5
- package/es/template/app-player/player/slides/header/microlearning.js.map +1 -1
- package/es/template/app-player/player/slides/index.js +21 -64
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +10 -34
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-end/index.js +0 -5
- package/es/template/app-player/popin-end/index.js.map +1 -1
- package/es/template/app-player/popin-end/summary.js +22 -54
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-player/popin-header/index.js +12 -46
- 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.d.ts +1 -1
- package/es/template/app-review/demo-ts/typings.d.ts.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.d.ts +1 -1
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.js +0 -1
- package/es/template/app-review/player/prop-types.js.map +1 -1
- package/es/template/app-review/prop-types.d.ts +2 -2
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.js +0 -1
- package/es/template/app-review/prop-types.js.map +1 -1
- package/es/template/app-review/skills/index.js +0 -2
- package/es/template/app-review/skills/index.js.map +1 -1
- package/es/template/app-review/skills/index.native.js +0 -6
- package/es/template/app-review/skills/index.native.js.map +1 -1
- package/es/template/app-review/skills/prop-types.d.ts +1 -1
- package/es/template/app-review/skills/prop-types.d.ts.map +1 -1
- package/es/template/app-review/skills/prop-types.js.map +1 -1
- package/es/template/app-review/template-context.d.ts +5 -5
- package/es/template/app-review/template-context.d.ts.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 +8 -14
- package/es/template/back-office/brand-list/index.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +4 -25
- 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/cockpit/jw-uploader/index.js +0 -3
- package/es/template/cockpit/jw-uploader/index.js.map +1 -1
- package/es/template/common/authors/index.js +2 -10
- 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 +0 -13
- 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/search-page/index.js +0 -6
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/external-course/index.js +2 -10
- package/es/template/external-course/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/teams-dashboard/index.js +0 -4
- 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.d.ts +1 -1
- package/es/util/build-query-string.d.ts.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/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 +0 -7
- 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 +8 -14
- package/es/util/render-with-context.js.map +1 -1
- package/es/util/shallow-compare.js +0 -2
- package/es/util/shallow-compare.js.map +1 -1
- package/es/variables/analytics.d.ts +2 -2
- package/es/variables/analytics.d.ts.map +1 -1
- package/es/variables/analytics.js.map +1 -1
- package/es/variables/brand.native.d.ts +1 -1
- package/es/variables/brand.native.d.ts.map +1 -1
- package/es/variables/brand.native.js.map +1 -1
- package/es/variables/colors.d.ts +1 -1
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js.map +1 -1
- package/es/variables/default-mobile-translations.d.ts +2 -2
- package/es/variables/default-mobile-translations.d.ts.map +1 -1
- package/es/variables/default-mobile-translations.js.map +1 -1
- package/es/variables/shadow.d.ts +1 -1
- package/es/variables/shadow.d.ts.map +1 -1
- package/es/variables/shadow.js +0 -1
- package/es/variables/shadow.js.map +1 -1
- package/es/variables/theme.native.d.ts +3 -3
- package/es/variables/theme.native.d.ts.map +1 -1
- package/es/variables/theme.native.js.map +1 -1
- package/es/variables/vibration.d.ts +2 -2
- package/es/variables/vibration.d.ts.map +1 -1
- package/es/variables/vibration.js.map +1 -1
- package/lib/atom/autocomplete/index.js +0 -14
- package/lib/atom/autocomplete/index.js.map +1 -1
- package/lib/atom/avatar/index.js +0 -7
- package/lib/atom/avatar/index.js.map +1 -1
- package/lib/atom/button/index.js +0 -15
- package/lib/atom/button/index.js.map +1 -1
- package/lib/atom/button/index.native.d.ts +1 -1
- package/lib/atom/button/index.native.d.ts.map +1 -1
- package/lib/atom/button/index.native.js +0 -12
- package/lib/atom/button/index.native.js.map +1 -1
- package/lib/atom/button-link/index.js +0 -20
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link-icon-only/index.js +0 -22
- package/lib/atom/button-link-icon-only/index.js.map +1 -1
- package/lib/atom/button-menu/index.js +0 -13
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/card-image-preview/index.js +0 -9
- package/lib/atom/card-image-preview/index.js.map +1 -1
- package/lib/atom/catalog-section/index.js +0 -6
- package/lib/atom/catalog-section/index.js.map +1 -1
- package/lib/atom/centered-text/index.js +0 -6
- package/lib/atom/centered-text/index.js.map +1 -1
- package/lib/atom/checkbox/index.js +5 -17
- package/lib/atom/checkbox/index.js.map +1 -1
- package/lib/atom/checkbox-with-title/index.js +0 -11
- package/lib/atom/checkbox-with-title/index.js.map +1 -1
- package/lib/atom/chips/index.js +0 -10
- package/lib/atom/chips/index.js.map +1 -1
- package/lib/atom/choice/index.native.d.ts +1 -1
- package/lib/atom/choice/index.native.d.ts.map +1 -1
- package/lib/atom/choice/index.native.js +2 -22
- package/lib/atom/choice/index.native.js.map +1 -1
- package/lib/atom/clue/index.js +0 -19
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/content-badge/index.js +0 -8
- package/lib/atom/content-badge/index.js.map +1 -1
- package/lib/atom/cta/index.js +0 -21
- package/lib/atom/cta/index.js.map +1 -1
- package/lib/atom/difficulty-level/index.js +0 -14
- package/lib/atom/difficulty-level/index.js.map +1 -1
- package/lib/atom/drag-and-drop/index.js +0 -25
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/empty-search-result/index.js +0 -6
- package/lib/atom/empty-search-result/index.js.map +1 -1
- package/lib/atom/gradient/index.native.d.ts +1 -1
- package/lib/atom/gradient/index.native.d.ts.map +1 -1
- package/lib/atom/gradient/index.native.js +0 -11
- package/lib/atom/gradient/index.native.js.map +1 -1
- package/lib/atom/header-back-button/index.native.d.ts +1 -1
- package/lib/atom/header-back-button/index.native.d.ts.map +1 -1
- package/lib/atom/header-back-button/index.native.js +0 -16
- package/lib/atom/header-back-button/index.native.js.map +1 -1
- package/lib/atom/header-back-icon/index.native.d.ts +1 -1
- package/lib/atom/header-back-icon/index.native.d.ts.map +1 -1
- package/lib/atom/header-back-icon/index.native.js +0 -7
- package/lib/atom/header-back-icon/index.native.js.map +1 -1
- package/lib/atom/html/index.native.d.ts +1 -1
- package/lib/atom/html/index.native.d.ts.map +1 -1
- package/lib/atom/html/index.native.js +6 -21
- package/lib/atom/html/index.native.js.map +1 -1
- package/lib/atom/image-background/index.native.d.ts +1 -1
- package/lib/atom/image-background/index.native.d.ts.map +1 -1
- package/lib/atom/image-background/index.native.js +11 -33
- package/lib/atom/image-background/index.native.js.map +1 -1
- package/lib/atom/image-upload/index.js +0 -16
- package/lib/atom/image-upload/index.js.map +1 -1
- package/lib/atom/input-checkbox/index.js +0 -15
- package/lib/atom/input-checkbox/index.js.map +1 -1
- package/lib/atom/input-color/index.js +0 -10
- package/lib/atom/input-color/index.js.map +1 -1
- package/lib/atom/input-doublestep/index.js +0 -25
- package/lib/atom/input-doublestep/index.js.map +1 -1
- package/lib/atom/input-html/index.js +0 -16
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-html/input-preview.js +2 -8
- package/lib/atom/input-html/input-preview.js.map +1 -1
- package/lib/atom/input-readonly/index.js +0 -6
- package/lib/atom/input-readonly/index.js.map +1 -1
- package/lib/atom/input-search/index.js +0 -13
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-switch/index.js +0 -15
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-text/index.js +2 -17
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text-with-title/index.js +0 -8
- package/lib/atom/input-text-with-title/index.js.map +1 -1
- package/lib/atom/input-textarea/index.js +2 -16
- package/lib/atom/input-textarea/index.js.map +1 -1
- package/lib/atom/label/index.js +0 -7
- package/lib/atom/label/index.js.map +1 -1
- package/lib/atom/life/index.js +0 -15
- package/lib/atom/life/index.js.map +1 -1
- package/lib/atom/link/index.js +7 -32
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/loader/index.js +0 -8
- package/lib/atom/loader/index.js.map +1 -1
- package/lib/atom/loader/index.native.d.ts +1 -1
- package/lib/atom/loader/index.native.d.ts.map +1 -1
- package/lib/atom/loader/index.native.js +2 -18
- package/lib/atom/loader/index.native.js.map +1 -1
- package/lib/atom/lottie-wrapper/index.js +3 -26
- package/lib/atom/lottie-wrapper/index.js.map +1 -1
- package/lib/atom/lottie-wrapper/prop-types.d.ts +1 -1
- package/lib/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
- package/lib/atom/lottie-wrapper/prop-types.js +0 -4
- package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/lib/atom/notification/index.js +0 -8
- package/lib/atom/notification/index.js.map +1 -1
- package/lib/atom/picture/index.js +0 -21
- package/lib/atom/picture/index.js.map +1 -1
- package/lib/atom/picture-background/index.js +0 -10
- package/lib/atom/picture-background/index.js.map +1 -1
- package/lib/atom/promo-code/index.js +0 -7
- package/lib/atom/promo-code/index.js.map +1 -1
- package/lib/atom/provider/index.js +2 -28
- package/lib/atom/provider/index.js.map +1 -1
- package/lib/atom/provider/web-context.d.ts +3 -3
- package/lib/atom/provider/web-context.d.ts.map +1 -1
- package/lib/atom/provider/web-context.js +6 -18
- package/lib/atom/provider/web-context.js.map +1 -1
- package/lib/atom/radio-group/index.js +0 -13
- package/lib/atom/radio-group/index.js.map +1 -1
- package/lib/atom/radio-group/item.js +0 -14
- package/lib/atom/radio-group/item.js.map +1 -1
- package/lib/atom/range/handle.js +9 -25
- package/lib/atom/range/handle.js.map +1 -1
- package/lib/atom/range/index.js +0 -28
- package/lib/atom/range/index.js.map +1 -1
- package/lib/atom/resource-miniature/index.js +2 -13
- package/lib/atom/resource-miniature/index.js.map +1 -1
- package/lib/atom/review-header-step-item/index.js +0 -15
- package/lib/atom/review-header-step-item/index.js.map +1 -1
- package/lib/atom/review-header-step-item/index.native.js +0 -20
- package/lib/atom/review-header-step-item/index.native.js.map +1 -1
- package/lib/atom/review-header-step-item/types.d.ts +2 -2
- package/lib/atom/review-header-step-item/types.d.ts.map +1 -1
- package/lib/atom/review-header-step-item/types.js +0 -3
- package/lib/atom/review-header-step-item/types.js.map +1 -1
- package/lib/atom/review-presentation/index.js +5 -18
- package/lib/atom/review-presentation/index.js.map +1 -1
- package/lib/atom/review-presentation/index.native.js +3 -19
- package/lib/atom/review-presentation/index.native.js.map +1 -1
- package/lib/atom/review-presentation/prop-types.d.ts +2 -2
- package/lib/atom/review-presentation/prop-types.d.ts.map +1 -1
- package/lib/atom/review-presentation/prop-types.js +0 -4
- package/lib/atom/review-presentation/prop-types.js.map +1 -1
- package/lib/atom/select/index.js +2 -30
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select-modal/index.native.d.ts +2 -2
- package/lib/atom/select-modal/index.native.d.ts.map +1 -1
- package/lib/atom/select-modal/index.native.js +0 -25
- package/lib/atom/select-modal/index.native.js.map +1 -1
- package/lib/atom/slide/index.js +0 -8
- package/lib/atom/slide/index.js.map +1 -1
- package/lib/atom/social-link/index.js +0 -8
- package/lib/atom/social-link/index.js.map +1 -1
- package/lib/atom/space/index.native.d.ts +1 -1
- package/lib/atom/space/index.native.d.ts.map +1 -1
- package/lib/atom/space/index.native.js +0 -7
- package/lib/atom/space/index.native.js.map +1 -1
- package/lib/atom/spinner/index.js +0 -5
- package/lib/atom/spinner/index.js.map +1 -1
- package/lib/atom/tab/index.js +0 -9
- package/lib/atom/tab/index.js.map +1 -1
- package/lib/atom/tab-content/index.js +0 -7
- package/lib/atom/tab-content/index.js.map +1 -1
- package/lib/atom/tag/index.js +0 -8
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/text/index.native.d.ts +1 -1
- package/lib/atom/text/index.native.d.ts.map +1 -1
- package/lib/atom/text/index.native.js +0 -10
- package/lib/atom/text/index.native.js.map +1 -1
- package/lib/atom/title/index.js +0 -12
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/tooltip/index.js +0 -16
- package/lib/atom/tooltip/index.js.map +1 -1
- package/lib/atom/video-upload/index.js +0 -8
- package/lib/atom/video-upload/index.js.map +1 -1
- package/lib/atom/wizard-steps/index.js +0 -7
- package/lib/atom/wizard-steps/index.js.map +1 -1
- package/lib/hoc/animation/index.js +0 -18
- package/lib/hoc/animation/index.js.map +1 -1
- package/lib/hoc/animation-scheduler/index.js +0 -39
- package/lib/hoc/animation-scheduler/index.js.map +1 -1
- package/lib/hoc/modal/index.native.d.ts +1 -1
- package/lib/hoc/modal/index.native.d.ts.map +1 -1
- package/lib/hoc/modal/index.native.js +0 -14
- package/lib/hoc/modal/index.native.js.map +1 -1
- package/lib/hoc/modal/select/index.native.d.ts +2 -2
- package/lib/hoc/modal/select/index.native.d.ts.map +1 -1
- package/lib/hoc/modal/select/index.native.js +0 -19
- package/lib/hoc/modal/select/index.native.js.map +1 -1
- package/lib/hoc/modal/select-item/index.native.d.ts +1 -1
- package/lib/hoc/modal/select-item/index.native.d.ts.map +1 -1
- package/lib/hoc/modal/select-item/index.native.js +0 -16
- package/lib/hoc/modal/select-item/index.native.js.map +1 -1
- package/lib/hoc/swapper/index.js +4 -20
- package/lib/hoc/swapper/index.js.map +1 -1
- package/lib/hoc/touchable/index.native.d.ts +1 -1
- package/lib/hoc/touchable/index.native.d.ts.map +1 -1
- package/lib/hoc/touchable/index.native.js +0 -13
- package/lib/hoc/touchable/index.native.js.map +1 -1
- package/lib/hoc/transition/index.js +0 -11
- package/lib/hoc/transition/index.js.map +1 -1
- package/lib/index.js +0 -13
- package/lib/index.js.map +1 -1
- package/lib/molecule/add-to-my-list/index.js +0 -22
- package/lib/molecule/add-to-my-list/index.js.map +1 -1
- package/lib/molecule/answer/index.d.ts.map +1 -1
- package/lib/molecule/answer/index.js +7 -43
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/answer/index.native.js +0 -14
- package/lib/molecule/answer/index.native.js.map +1 -1
- package/lib/molecule/answer/prop-types.d.ts +3 -3
- package/lib/molecule/answer/prop-types.d.ts.map +1 -1
- package/lib/molecule/answer/prop-types.js +0 -13
- package/lib/molecule/answer/prop-types.js.map +1 -1
- package/lib/molecule/audio/index.js +2 -18
- package/lib/molecule/audio/index.js.map +1 -1
- package/lib/molecule/banner/index.js +0 -11
- package/lib/molecule/banner/index.js.map +1 -1
- package/lib/molecule/battle-request/index.js +2 -13
- package/lib/molecule/battle-request/index.js.map +1 -1
- package/lib/molecule/brand-card/description.js +0 -7
- package/lib/molecule/brand-card/description.js.map +1 -1
- package/lib/molecule/brand-card/index.js +0 -10
- package/lib/molecule/brand-card/index.js.map +1 -1
- package/lib/molecule/brand-card-create/index.js +0 -7
- package/lib/molecule/brand-card-create/index.js.map +1 -1
- package/lib/molecule/brand-create-form/index.js +0 -11
- package/lib/molecule/brand-create-form/index.js.map +1 -1
- package/lib/molecule/brand-download-box/index.js +0 -10
- package/lib/molecule/brand-download-box/index.js.map +1 -1
- package/lib/molecule/brand-form-group/index.js +0 -58
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-logo/index.native.js +0 -11
- package/lib/molecule/brand-logo/index.native.js.map +1 -1
- package/lib/molecule/brand-tabs/index.js +0 -10
- package/lib/molecule/brand-tabs/index.js.map +1 -1
- package/lib/molecule/brand-upload-box/index.js +0 -17
- package/lib/molecule/brand-upload-box/index.js.map +1 -1
- package/lib/molecule/breadcrumbs/index.js +0 -13
- package/lib/molecule/breadcrumbs/index.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +0 -12
- package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/lib/molecule/card/customer.js +0 -9
- package/lib/molecule/card/customer.js.map +1 -1
- package/lib/molecule/card/favorite.js +0 -15
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/card/index.js +0 -34
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/notification.js +0 -12
- package/lib/molecule/card/notification.js.map +1 -1
- package/lib/molecule/card/selectable.js +0 -9
- package/lib/molecule/card/selectable.js.map +1 -1
- package/lib/molecule/card-congrats/index.native.js +0 -15
- package/lib/molecule/card-congrats/index.native.js.map +1 -1
- package/lib/molecule/card-congrats/types.d.ts +1 -1
- package/lib/molecule/card-congrats/types.d.ts.map +1 -1
- package/lib/molecule/card-content/index.js +2 -26
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-with-button/index.js +0 -12
- package/lib/molecule/card-with-button/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.js +4 -19
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.native.js +0 -15
- package/lib/molecule/cm-popin/index.native.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +2 -2
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +0 -5
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/cookie-banner/index.js +0 -10
- package/lib/molecule/cookie-banner/index.js.map +1 -1
- package/lib/molecule/coorp-manager-roles/index.js +0 -8
- package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
- package/lib/molecule/course-section/index.js +0 -9
- package/lib/molecule/course-section/index.js.map +1 -1
- package/lib/molecule/course-sections/index.js +0 -16
- package/lib/molecule/course-sections/index.js.map +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js +0 -7
- package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +2 -59
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/news-list/index.js +0 -10
- package/lib/molecule/dashboard/news-list/index.js.map +1 -1
- package/lib/molecule/dashboard/review-banner/index.js +0 -10
- package/lib/molecule/dashboard/review-banner/index.js.map +1 -1
- package/lib/molecule/dashboard/start-battle/index.js +0 -9
- package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
- package/lib/molecule/discipline-cta/index.js +0 -11
- package/lib/molecule/discipline-cta/index.js.map +1 -1
- package/lib/molecule/discipline-header/index.js +4 -20
- package/lib/molecule/discipline-header/index.js.map +1 -1
- package/lib/molecule/discipline-partners/index.js +0 -21
- package/lib/molecule/discipline-partners/index.js.map +1 -1
- package/lib/molecule/discipline-scope/index.js +0 -7
- package/lib/molecule/discipline-scope/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/index.js +0 -20
- package/lib/molecule/drag-and-drop/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/overlay.js +0 -10
- package/lib/molecule/drag-and-drop/overlay.js.map +1 -1
- package/lib/molecule/drag-and-drop/placeholder.js +0 -7
- package/lib/molecule/drag-and-drop/placeholder.js.map +1 -1
- package/lib/molecule/drag-and-drop/upload-report.js +0 -30
- package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.js +0 -8
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/lib/molecule/draggable/index.js +0 -11
- package/lib/molecule/draggable/index.js.map +1 -1
- package/lib/molecule/draggable-list/index.js +0 -12
- package/lib/molecule/draggable-list/index.js.map +1 -1
- package/lib/molecule/empty-state-dashboard/index.js +0 -8
- package/lib/molecule/empty-state-dashboard/index.js.map +1 -1
- package/lib/molecule/empty-state-dashboard/types.d.ts +1 -1
- package/lib/molecule/empty-state-dashboard/types.d.ts.map +1 -1
- package/lib/molecule/empty-state-dashboard/types.js +0 -4
- package/lib/molecule/empty-state-dashboard/types.js.map +1 -1
- package/lib/molecule/external-content-button/index.js +0 -11
- package/lib/molecule/external-content-button/index.js.map +1 -1
- package/lib/molecule/external-content-viewer/index.js +0 -9
- package/lib/molecule/external-content-viewer/index.js.map +1 -1
- package/lib/molecule/feedback/index.js +6 -19
- package/lib/molecule/feedback/index.js.map +1 -1
- package/lib/molecule/filters/filters-wrapper.js +0 -22
- package/lib/molecule/filters/filters-wrapper.js.map +1 -1
- package/lib/molecule/filters/index.js +0 -17
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/forum/forum-comment/index.js +0 -14
- package/lib/molecule/forum/forum-comment/index.js.map +1 -1
- package/lib/molecule/forum/forum-post/index.js +0 -15
- package/lib/molecule/forum/forum-post/index.js.map +1 -1
- package/lib/molecule/forum/forum-thread/index.js +0 -9
- package/lib/molecule/forum/forum-thread/index.js.map +1 -1
- package/lib/molecule/forum/post-conditions.js +0 -4
- package/lib/molecule/forum/post-conditions.js.map +1 -1
- package/lib/molecule/go1-banner/index.js +4 -9
- package/lib/molecule/go1-banner/index.js.map +1 -1
- package/lib/molecule/hero/index.js +0 -13
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/input-text-with-titled-checkbox/index.js +0 -8
- package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
- package/lib/molecule/list-badges/index.js +0 -8
- package/lib/molecule/list-badges/index.js.map +1 -1
- package/lib/molecule/login-alert/index.js +2 -8
- package/lib/molecule/login-alert/index.js.map +1 -1
- package/lib/molecule/menu-list/index.js +0 -10
- package/lib/molecule/menu-list/index.js.map +1 -1
- package/lib/molecule/message-popin/index.js +0 -6
- package/lib/molecule/message-popin/index.js.map +1 -1
- package/lib/molecule/modal/index.js +6 -13
- package/lib/molecule/modal/index.js.map +1 -1
- package/lib/molecule/module-bubble/index.js +0 -12
- package/lib/molecule/module-bubble/index.js.map +1 -1
- package/lib/molecule/module-card/index.js +2 -12
- package/lib/molecule/module-card/index.js.map +1 -1
- package/lib/molecule/news/index.js +0 -10
- package/lib/molecule/news/index.js.map +1 -1
- package/lib/molecule/notification-banner/index.js +0 -14
- package/lib/molecule/notification-banner/index.js.map +1 -1
- package/lib/molecule/pagination/index.js +0 -7
- package/lib/molecule/pagination/index.js.map +1 -1
- package/lib/molecule/payment-form/index.js +0 -18
- package/lib/molecule/payment-form/index.js.map +1 -1
- package/lib/molecule/pdf/index.js +2 -12
- package/lib/molecule/pdf/index.js.map +1 -1
- package/lib/molecule/popin/index.js +2 -14
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/product-card/index.js +0 -8
- package/lib/molecule/product-card/index.js.map +1 -1
- package/lib/molecule/progress-bar/index.js +0 -9
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/questions/drop-down/index.js +0 -10
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.js +0 -13
- package/lib/molecule/questions/free-text/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.native.d.ts +1 -1
- package/lib/molecule/questions/free-text/index.native.d.ts.map +1 -1
- package/lib/molecule/questions/free-text/index.native.js +12 -18
- package/lib/molecule/questions/free-text/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/draggable/index.native.js +0 -18
- package/lib/molecule/questions/mobile/draggable/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/slider/index.native.d.ts +2 -2
- package/lib/molecule/questions/mobile/slider/index.native.d.ts.map +1 -1
- package/lib/molecule/questions/mobile/slider/index.native.js +0 -16
- package/lib/molecule/questions/mobile/slider/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/switch/index.native.d.ts +1 -1
- package/lib/molecule/questions/mobile/switch/index.native.d.ts.map +1 -1
- package/lib/molecule/questions/mobile/switch/index.native.js +0 -26
- package/lib/molecule/questions/mobile/switch/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/template/index.native.d.ts +1 -1
- package/lib/molecule/questions/mobile/template/index.native.d.ts.map +1 -1
- package/lib/molecule/questions/mobile/template/index.native.js +0 -29
- package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/lib/molecule/questions/qcm/index.js +3 -18
- package/lib/molecule/questions/qcm/index.js.map +1 -1
- package/lib/molecule/questions/qcm-drag/index.js +4 -25
- package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
- package/lib/molecule/questions/qcm-graphic/index.js +2 -14
- package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/lib/molecule/questions/question-range/index.js +12 -25
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.js +5 -24
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/types.d.ts +12 -12
- package/lib/molecule/questions/types.d.ts.map +1 -1
- package/lib/molecule/quick-access-card/index.js +0 -24
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-cards-group/index.js +0 -10
- package/lib/molecule/quick-access-cards-group/index.js.map +1 -1
- package/lib/molecule/resource-player/index.js +5 -36
- package/lib/molecule/resource-player/index.js.map +1 -1
- package/lib/molecule/review-card-congrats/index.js +2 -23
- package/lib/molecule/review-card-congrats/index.js.map +1 -1
- package/lib/molecule/review-card-congrats/prop-types.d.ts +1 -1
- package/lib/molecule/review-card-congrats/prop-types.d.ts.map +1 -1
- package/lib/molecule/review-card-congrats/prop-types.js +0 -4
- package/lib/molecule/review-card-congrats/prop-types.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.js +4 -16
- package/lib/molecule/review-correction-popin/index.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.native.js +0 -20
- package/lib/molecule/review-correction-popin/index.native.js.map +1 -1
- package/lib/molecule/review-correction-popin/prop-types.d.ts +3 -3
- package/lib/molecule/review-correction-popin/prop-types.d.ts.map +1 -1
- package/lib/molecule/review-correction-popin/prop-types.js +0 -3
- package/lib/molecule/review-correction-popin/prop-types.js.map +1 -1
- package/lib/molecule/review-header-steps/index.js +0 -11
- package/lib/molecule/review-header-steps/index.js.map +1 -1
- package/lib/molecule/review-header-steps/prop-types.d.ts +1 -1
- package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
- package/lib/molecule/review-header-steps/prop-types.js +0 -4
- package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
- package/lib/molecule/scope-content/index.js +6 -25
- package/lib/molecule/scope-content/index.js.map +1 -1
- package/lib/molecule/scope-tabs/index.js +0 -16
- package/lib/molecule/scope-tabs/index.js.map +1 -1
- package/lib/molecule/search-form/index.js +0 -12
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/select-multiple/index.js +2 -35
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/setup-cohort-item/index.js +0 -17
- package/lib/molecule/setup-cohort-item/index.js.map +1 -1
- package/lib/molecule/setup-section/index.js +0 -15
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-sections/index.js +0 -10
- package/lib/molecule/setup-sections/index.js.map +1 -1
- package/lib/molecule/setup-slide/index.js +0 -30
- package/lib/molecule/setup-slide/index.js.map +1 -1
- package/lib/molecule/setup-slider/index.js +0 -11
- package/lib/molecule/setup-slider/index.js.map +1 -1
- package/lib/molecule/share/index.js +6 -29
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/skill-card/index.js +0 -13
- package/lib/molecule/skill-card/index.js.map +1 -1
- package/lib/molecule/skill-card/index.native.js +0 -12
- package/lib/molecule/skill-card/index.native.js.map +1 -1
- package/lib/molecule/skill-card/prop-types.d.ts +1 -1
- package/lib/molecule/skill-card/prop-types.d.ts.map +1 -1
- package/lib/molecule/skill-card/prop-types.js +0 -3
- package/lib/molecule/skill-card/prop-types.js.map +1 -1
- package/lib/molecule/ssmenu-list/index.js +0 -6
- package/lib/molecule/ssmenu-list/index.js.map +1 -1
- package/lib/molecule/subscription-freemium/index.js +0 -7
- package/lib/molecule/subscription-freemium/index.js.map +1 -1
- package/lib/molecule/subscription-premium/index.js +0 -11
- package/lib/molecule/subscription-premium/index.js.map +1 -1
- package/lib/molecule/table/index.js +0 -28
- package/lib/molecule/table/index.js.map +1 -1
- package/lib/molecule/teams-popin/index.js +0 -10
- package/lib/molecule/teams-popin/index.js.map +1 -1
- package/lib/molecule/theme-image/index.js +0 -8
- package/lib/molecule/theme-image/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.js +0 -12
- package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/lib/molecule/titled-checkbox/index.js +0 -11
- package/lib/molecule/titled-checkbox/index.js.map +1 -1
- package/lib/molecule/unsubscribe/index.js +0 -8
- package/lib/molecule/unsubscribe/index.js.map +1 -1
- package/lib/molecule/vertical-tabs/index.js +0 -14
- package/lib/molecule/vertical-tabs/index.js.map +1 -1
- package/lib/molecule/video-iframe/index.js +0 -19
- package/lib/molecule/video-iframe/index.js.map +1 -1
- package/lib/molecule/video-player/index.js +6 -31
- package/lib/molecule/video-player/index.js.map +1 -1
- package/lib/molecule/video-player/jwplayer-prop-types.js +0 -4
- package/lib/molecule/video-player/jwplayer-prop-types.js.map +1 -1
- package/lib/molecule/video-player/jwplayer.js +3 -36
- package/lib/molecule/video-player/jwplayer.js.map +1 -1
- package/lib/molecule/video-player/prop-types.js +0 -4
- package/lib/molecule/video-player/prop-types.js.map +1 -1
- package/lib/molecule/video-player/vimeo.js +0 -46
- package/lib/molecule/video-player/vimeo.js.map +1 -1
- package/lib/molecule/wizard-summary/index.js +2 -28
- package/lib/molecule/wizard-summary/index.js.map +1 -1
- package/lib/organism/accordion/container/index.js +0 -18
- package/lib/organism/accordion/container/index.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/index.js +0 -21
- package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/part/index.js +0 -19
- package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
- package/lib/organism/accordion/part/index.js +0 -12
- package/lib/organism/accordion/part/index.js.map +1 -1
- package/lib/organism/accordion/toggler/index.js +0 -20
- package/lib/organism/accordion/toggler/index.js.map +1 -1
- package/lib/organism/brand-analytics/analytics-popin.js +0 -14
- package/lib/organism/brand-analytics/analytics-popin.js.map +1 -1
- package/lib/organism/brand-analytics/index.js +0 -21
- package/lib/organism/brand-analytics/index.js.map +1 -1
- package/lib/organism/brand-dashboard/index.js +0 -10
- package/lib/organism/brand-dashboard/index.js.map +1 -1
- package/lib/organism/brand-form/index.js +0 -18
- package/lib/organism/brand-form/index.js.map +1 -1
- package/lib/organism/brand-table/index.js +0 -12
- package/lib/organism/brand-table/index.js.map +1 -1
- package/lib/organism/brand-upload/index.js +0 -13
- package/lib/organism/brand-upload/index.js.map +1 -1
- package/lib/organism/cards-grid/index.js +0 -9
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/cart/index.js +0 -11
- package/lib/organism/cart/index.js.map +1 -1
- package/lib/organism/content-translation/index.js +0 -14
- package/lib/organism/content-translation/index.js.map +1 -1
- package/lib/organism/course-selection/index.js +0 -18
- package/lib/organism/course-selection/index.js.map +1 -1
- package/lib/organism/discussion/index.js +2 -14
- package/lib/organism/discussion/index.js.map +1 -1
- package/lib/organism/get-the-app/index.js +0 -21
- package/lib/organism/get-the-app/index.js.map +1 -1
- package/lib/organism/grid-list/index.js +0 -6
- package/lib/organism/grid-list/index.js.map +1 -1
- package/lib/organism/header/index.js +0 -9
- package/lib/organism/header/index.js.map +1 -1
- package/lib/organism/header-v2/index.native.js +3 -17
- package/lib/organism/header-v2/index.native.js.map +1 -1
- package/lib/organism/hero/index.js +0 -11
- package/lib/organism/hero/index.js.map +1 -1
- package/lib/organism/list-item/index.js +0 -12
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-items/index.js +0 -10
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/mobile-navigation/index.native.d.ts +2 -2
- package/lib/organism/mobile-navigation/index.native.d.ts.map +1 -1
- package/lib/organism/mobile-navigation/index.native.js +0 -16
- package/lib/organism/mobile-navigation/index.native.js.map +1 -1
- package/lib/organism/mooc/image-slider/index.js +0 -9
- package/lib/organism/mooc/image-slider/index.js.map +1 -1
- package/lib/organism/mooc-footer/index.js +10 -22
- package/lib/organism/mooc-footer/index.js.map +1 -1
- package/lib/organism/mooc-header/index.js +0 -55
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/podcast-popin-intro/index.native.d.ts +2 -2
- package/lib/organism/podcast-popin-intro/index.native.d.ts.map +1 -1
- package/lib/organism/podcast-popin-intro/index.native.js +0 -15
- package/lib/organism/podcast-popin-intro/index.native.js.map +1 -1
- package/lib/organism/popin/index.js +0 -12
- package/lib/organism/popin/index.js.map +1 -1
- package/lib/organism/resource-browser/index.js +0 -16
- package/lib/organism/resource-browser/index.js.map +1 -1
- package/lib/organism/review-congrats/index.js +1 -16
- package/lib/organism/review-congrats/index.js.map +1 -1
- package/lib/organism/review-congrats/index.native.js +2 -22
- package/lib/organism/review-congrats/index.native.js.map +1 -1
- package/lib/organism/review-congrats/prop-types.d.ts +1 -1
- package/lib/organism/review-congrats/prop-types.d.ts.map +1 -1
- package/lib/organism/review-congrats/prop-types.js +0 -5
- package/lib/organism/review-congrats/prop-types.js.map +1 -1
- package/lib/organism/review-header/index.js +0 -10
- package/lib/organism/review-header/index.js.map +1 -1
- package/lib/organism/review-header/index.native.js +0 -10
- package/lib/organism/review-header/index.native.js.map +1 -1
- package/lib/organism/review-header/types.d.ts +1 -1
- package/lib/organism/review-header/types.d.ts.map +1 -1
- package/lib/organism/review-header/types.js +0 -4
- package/lib/organism/review-header/types.js.map +1 -1
- package/lib/organism/review-no-skills/index.js +0 -7
- package/lib/organism/review-no-skills/index.js.map +1 -1
- package/lib/organism/review-no-skills/index.native.js +0 -12
- package/lib/organism/review-no-skills/index.native.js.map +1 -1
- package/lib/organism/review-no-skills/prop-types.d.ts +1 -1
- package/lib/organism/review-no-skills/prop-types.d.ts.map +1 -1
- package/lib/organism/review-no-skills/prop-types.js +0 -3
- package/lib/organism/review-no-skills/prop-types.js.map +1 -1
- package/lib/organism/review-skills/index.js +0 -8
- package/lib/organism/review-skills/index.js.map +1 -1
- package/lib/organism/review-skills/index.native.js +0 -8
- package/lib/organism/review-skills/index.native.js.map +1 -1
- package/lib/organism/review-skills/prop-types.d.ts +1 -1
- package/lib/organism/review-skills/prop-types.d.ts.map +1 -1
- package/lib/organism/review-skills/prop-types.js +0 -4
- package/lib/organism/review-skills/prop-types.js.map +1 -1
- package/lib/organism/review-slide/index.js +8 -31
- package/lib/organism/review-slide/index.js.map +1 -1
- package/lib/organism/review-slide/index.native.js +3 -24
- package/lib/organism/review-slide/index.native.js.map +1 -1
- package/lib/organism/review-slide/prop-types.d.ts +5 -5
- package/lib/organism/review-slide/prop-types.d.ts.map +1 -1
- package/lib/organism/review-slide/prop-types.js +1 -7
- package/lib/organism/review-slide/prop-types.js.map +1 -1
- package/lib/organism/review-stacked-slides/index.js +2 -18
- package/lib/organism/review-stacked-slides/index.js.map +1 -1
- package/lib/organism/review-stacked-slides/index.native.js +5 -20
- package/lib/organism/review-stacked-slides/index.native.js.map +1 -1
- package/lib/organism/review-stacked-slides/prop-types.d.ts +1 -1
- package/lib/organism/review-stacked-slides/prop-types.d.ts.map +1 -1
- package/lib/organism/review-stacked-slides/prop-types.js +0 -6
- package/lib/organism/review-stacked-slides/prop-types.js.map +1 -1
- package/lib/organism/rewards-form/index.js +3 -14
- package/lib/organism/rewards-form/index.js.map +1 -1
- package/lib/organism/search-and-chips-results/index.js +0 -15
- package/lib/organism/search-and-chips-results/index.js.map +1 -1
- package/lib/organism/settings/index.js +5 -25
- package/lib/organism/settings/index.js.map +1 -1
- package/lib/organism/setup-header/index.js +0 -15
- package/lib/organism/setup-header/index.js.map +1 -1
- package/lib/organism/sidebar/index.js +8 -58
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/organism/slider/index.js +2 -24
- package/lib/organism/slider/index.js.map +1 -1
- package/lib/organism/user-preferences/index.js +5 -21
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/wizard-contents/index.js +0 -28
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/template/activity/engine-stars.js +5 -27
- package/lib/template/activity/engine-stars.js.map +1 -1
- package/lib/template/activity/index.js +2 -26
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.js +2 -17
- package/lib/template/activity/progression-item.js.map +1 -1
- package/lib/template/activity/stars-summary.js +0 -22
- package/lib/template/activity/stars-summary.js.map +1 -1
- package/lib/template/app-player/loading/index.js +0 -8
- package/lib/template/app-player/loading/index.js.map +1 -1
- package/lib/template/app-player/player/index.js +0 -9
- package/lib/template/app-player/player/index.js.map +1 -1
- package/lib/template/app-player/player/slides/footer/index.js +0 -20
- package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/index.js +1 -11
- package/lib/template/app-player/player/slides/header/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/learner.js +4 -20
- package/lib/template/app-player/player/slides/header/learner.js.map +1 -1
- package/lib/template/app-player/player/slides/header/lives.js +0 -9
- package/lib/template/app-player/player/slides/header/lives.js.map +1 -1
- package/lib/template/app-player/player/slides/header/microlearning.js +2 -12
- package/lib/template/app-player/player/slides/header/microlearning.js.map +1 -1
- package/lib/template/app-player/player/slides/index.js +21 -89
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +10 -50
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-end/index.js +0 -12
- package/lib/template/app-player/popin-end/index.js.map +1 -1
- package/lib/template/app-player/popin-end/summary.js +22 -69
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-player/popin-header/index.js +12 -67
- package/lib/template/app-player/popin-header/index.js.map +1 -1
- package/lib/template/app-player/popin-no-access/index.js +0 -6
- package/lib/template/app-player/popin-no-access/index.js.map +1 -1
- package/lib/template/app-review/demo-ts/index.js +0 -5
- package/lib/template/app-review/demo-ts/index.js.map +1 -1
- package/lib/template/app-review/demo-ts/index.native.js +0 -5
- package/lib/template/app-review/demo-ts/index.native.js.map +1 -1
- package/lib/template/app-review/demo-ts/typings.d.ts +1 -1
- package/lib/template/app-review/demo-ts/typings.d.ts.map +1 -1
- package/lib/template/app-review/demo-ts/typings.js +0 -3
- package/lib/template/app-review/demo-ts/typings.js.map +1 -1
- package/lib/template/app-review/index.js +0 -8
- package/lib/template/app-review/index.js.map +1 -1
- package/lib/template/app-review/index.native.js +2 -14
- package/lib/template/app-review/index.native.js.map +1 -1
- package/lib/template/app-review/onboarding/index.js +0 -3
- package/lib/template/app-review/onboarding/index.js.map +1 -1
- package/lib/template/app-review/onboarding/index.native.js +0 -3
- package/lib/template/app-review/onboarding/index.native.js.map +1 -1
- package/lib/template/app-review/player/background-review.js +0 -5
- package/lib/template/app-review/player/background-review.js.map +1 -1
- package/lib/template/app-review/player/index.js +0 -13
- package/lib/template/app-review/player/index.js.map +1 -1
- package/lib/template/app-review/player/index.native.js +0 -16
- package/lib/template/app-review/player/index.native.js.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +1 -1
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.js +0 -8
- package/lib/template/app-review/player/prop-types.js.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +2 -2
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.js +0 -5
- package/lib/template/app-review/prop-types.js.map +1 -1
- package/lib/template/app-review/skills/index.js +0 -10
- package/lib/template/app-review/skills/index.js.map +1 -1
- package/lib/template/app-review/skills/index.native.js +0 -16
- package/lib/template/app-review/skills/index.native.js.map +1 -1
- package/lib/template/app-review/skills/prop-types.d.ts +1 -1
- package/lib/template/app-review/skills/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/skills/prop-types.js +0 -4
- package/lib/template/app-review/skills/prop-types.js.map +1 -1
- package/lib/template/app-review/template-context.d.ts +5 -5
- package/lib/template/app-review/template-context.d.ts.map +1 -1
- package/lib/template/app-review/template-context.js +0 -15
- package/lib/template/app-review/template-context.js.map +1 -1
- package/lib/template/back-office/brand-create/index.js +0 -8
- package/lib/template/back-office/brand-create/index.js.map +1 -1
- package/lib/template/back-office/brand-list/index.js +8 -26
- package/lib/template/back-office/brand-list/index.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +4 -51
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js +0 -12
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
- package/lib/template/back-office/dashboard-preview/index.js +0 -30
- package/lib/template/back-office/dashboard-preview/index.js.map +1 -1
- package/lib/template/back-office/layout/index.js +0 -8
- package/lib/template/back-office/layout/index.js.map +1 -1
- package/lib/template/battle-requests/index.js +2 -12
- package/lib/template/battle-requests/index.js.map +1 -1
- package/lib/template/cockpit/jw-uploader/index.js +0 -11
- package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
- package/lib/template/common/authors/index.js +2 -18
- package/lib/template/common/authors/index.js.map +1 -1
- package/lib/template/common/coorp-header/content.js +0 -6
- package/lib/template/common/coorp-header/content.js.map +1 -1
- package/lib/template/common/coorp-header/index.js +0 -7
- package/lib/template/common/coorp-header/index.js.map +1 -1
- package/lib/template/common/dashboard/index.js +0 -27
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/discipline/index.js +0 -20
- package/lib/template/common/discipline/index.js.map +1 -1
- package/lib/template/common/search-page/index.js +0 -14
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/external-course/index.js +2 -25
- package/lib/template/external-course/index.js.map +1 -1
- package/lib/template/review-dashboard-skills/index.js +0 -8
- package/lib/template/review-dashboard-skills/index.js.map +1 -1
- package/lib/template/teams-dashboard/index.js +0 -14
- package/lib/template/teams-dashboard/index.js.map +1 -1
- package/lib/util/bubbling.js +0 -2
- package/lib/util/bubbling.js.map +1 -1
- package/lib/util/build-query-string.d.ts +1 -1
- package/lib/util/build-query-string.d.ts.map +1 -1
- package/lib/util/build-query-string.js +0 -4
- package/lib/util/build-query-string.js.map +1 -1
- package/lib/util/button-icons.js +0 -2
- package/lib/util/button-icons.js.map +1 -1
- package/lib/util/closest-step.js +0 -7
- package/lib/util/closest-step.js.map +1 -1
- package/lib/util/constants.js.map +1 -1
- package/lib/util/external-content.js +0 -5
- package/lib/util/external-content.js.map +1 -1
- package/lib/util/get-class-state.js +0 -3
- package/lib/util/get-class-state.js.map +1 -1
- package/lib/util/get-clean-uri.js +0 -2
- package/lib/util/get-clean-uri.js.map +1 -1
- package/lib/util/get-resized-image.js +0 -11
- 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 +0 -5
- package/lib/util/image.js.map +1 -1
- package/lib/util/navigation.js +1 -13
- package/lib/util/navigation.js.map +1 -1
- package/lib/util/parse-template-string.js +0 -9
- package/lib/util/parse-template-string.js.map +1 -1
- package/lib/util/proptypes.js +0 -11
- package/lib/util/proptypes.js.map +1 -1
- package/lib/util/render-with-context.js +8 -22
- package/lib/util/render-with-context.js.map +1 -1
- package/lib/util/shallow-compare.js +0 -4
- package/lib/util/shallow-compare.js.map +1 -1
- package/lib/variables/analytics.d.ts +2 -2
- package/lib/variables/analytics.d.ts.map +1 -1
- package/lib/variables/analytics.js.map +1 -1
- package/lib/variables/brand.native.d.ts +1 -1
- package/lib/variables/brand.native.d.ts.map +1 -1
- package/lib/variables/brand.native.js.map +1 -1
- package/lib/variables/colors.d.ts +1 -1
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js.map +1 -1
- package/lib/variables/default-mobile-translations.d.ts +2 -2
- package/lib/variables/default-mobile-translations.d.ts.map +1 -1
- package/lib/variables/default-mobile-translations.js.map +1 -1
- package/lib/variables/shadow.d.ts +1 -1
- package/lib/variables/shadow.d.ts.map +1 -1
- package/lib/variables/shadow.js +0 -1
- package/lib/variables/shadow.js.map +1 -1
- package/lib/variables/theme.native.d.ts +3 -3
- package/lib/variables/theme.native.d.ts.map +1 -1
- package/lib/variables/theme.native.js +0 -2
- package/lib/variables/theme.native.js.map +1 -1
- package/lib/variables/vibration.d.ts +2 -2
- package/lib/variables/vibration.d.ts.map +1 -1
- package/lib/variables/vibration.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["MODES","default","cssStyle","small","BOUNCES","bounce","bounceTwice","bounceAndPause","Life","props","context","skin","heartOnRight","animated","count","failed","mode","operator","revival","className","style","customStyle","negativeColor","white","pickStyle","successStyle","failedStyle","animatedFailedStyle","revivalStyle","heartWrapper","heartWrapperFailed","heartWrapperDefault","bounceClass","type","heartCustomStyle","animationDelay","delay","animationDuration","duration","left","countStyle","livesCounterFailed","livesCounterDefault","classnames","livesCounterWrapper","previousLivesCounterDefault","previousLivesCounterFailed","previousLivesRevival","operatorWrapper","heartOutline","heartNormalDefault","heartNormalFailed","heartNormalAnimatedFailed","heartNormalRevival","heartBrokenDefault","heartBrokenFailed","heartBrokenAnimatedFailed","heartBrokenRevival","contextTypes","Provider","childContextTypes","propTypes","PropTypes","bool","shape","oneOf","string","number"],"sources":["../../../src/atom/life/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaSolidVoteRewardsVoteHeart as HeartIcon,\n NovaCompositionCoorpacademyBrokenHeart as HeartBrokenIcon,\n NovaCompositionCoorpacademyVoteHeartOutline as HeartIconOutline\n} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport cssStyle from './style.css';\n\nconst MODES = {\n default: cssStyle.default,\n small: cssStyle.small\n};\n\nconst BOUNCES = {\n bounce: cssStyle.bounce,\n bounceTwice: cssStyle.bounceTwice,\n bounceAndPause: cssStyle.bounceAndPause\n};\n\nconst Life = (props, context) => {\n const {skin} = context;\n const {\n bounce = null,\n heartOnRight = false,\n animated = false,\n count = 3,\n failed = false,\n mode = 'default',\n operator = 'x',\n revival,\n className,\n style: customStyle\n } = props;\n const negativeColor = get('common.negative', skin);\n const white = get('common.white', skin);\n\n if (count === null) {\n return null;\n }\n\n const pickStyle = (successStyle, failedStyle, animatedFailedStyle, revivalStyle) => {\n if (revival) return revivalStyle;\n if (failed && animated) return animatedFailedStyle;\n if (failed) return failedStyle;\n return successStyle;\n };\n\n const heartWrapper =\n failed && animated ? cssStyle.heartWrapperFailed : cssStyle.heartWrapperDefault;\n const bounceClass = bounce ? BOUNCES[bounce.type] : null;\n const heartCustomStyle = {\n animationDelay: bounce && bounce.delay,\n animationDuration: bounce && bounce.duration,\n left: heartOnRight && '70px'\n };\n\n const countStyle = failed ? cssStyle.livesCounterFailed : cssStyle.livesCounterDefault;\n\n return (\n <div data-name=\"life\" className={classnames(MODES[mode], className)} style={customStyle}>\n <div className={cssStyle.livesCounterWrapper}>\n <div\n className={pickStyle(\n cssStyle.previousLivesCounterDefault,\n cssStyle.previousLivesCounterDefault,\n cssStyle.previousLivesCounterFailed,\n cssStyle.previousLivesRevival\n )}\n >\n {count + 1}\n </div>\n <div data-name=\"counter\" className={countStyle}>\n {count}\n </div>\n </div>\n <div className={cssStyle.operatorWrapper}>\n <span className={cssStyle.operator}>{operator}</span>\n </div>\n <div className={classnames(heartWrapper, bounceClass)} style={heartCustomStyle}>\n <HeartIconOutline className={cssStyle.heartOutline} color={white} />\n <HeartIcon\n className={pickStyle(\n cssStyle.heartNormalDefault,\n cssStyle.heartNormalFailed,\n cssStyle.heartNormalAnimatedFailed,\n cssStyle.heartNormalRevival\n )}\n color={negativeColor}\n />\n <HeartBrokenIcon\n className={pickStyle(\n cssStyle.heartBrokenDefault,\n cssStyle.heartBrokenFailed,\n cssStyle.heartBrokenAnimatedFailed,\n cssStyle.heartBrokenRevival\n )}\n color={negativeColor}\n />\n </div>\n </div>\n );\n};\n\nLife.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nLife.propTypes = {\n revival: PropTypes.bool,\n animated: PropTypes.bool,\n bounce: PropTypes.shape({\n type: PropTypes.oneOf(['bounce', 'bounceTwice', 'bounceAndPause']),\n delay: PropTypes.string\n }),\n heartOnRight: PropTypes.bool,\n mode: PropTypes.oneOf(keys(MODES)),\n count: PropTypes.number,\n failed: PropTypes.bool,\n className: PropTypes.string,\n operator: PropTypes.string,\n style: PropTypes.shape({})\n};\n\nexport default Life;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["MODES","default","cssStyle","small","BOUNCES","bounce","bounceTwice","bounceAndPause","Life","props","context","skin","heartOnRight","animated","count","failed","mode","operator","revival","className","style","customStyle","negativeColor","white","pickStyle","successStyle","failedStyle","animatedFailedStyle","revivalStyle","heartWrapper","heartWrapperFailed","heartWrapperDefault","bounceClass","type","heartCustomStyle","animationDelay","delay","animationDuration","duration","left","countStyle","livesCounterFailed","livesCounterDefault","classnames","livesCounterWrapper","previousLivesCounterDefault","previousLivesCounterFailed","previousLivesRevival","operatorWrapper","heartOutline","heartNormalDefault","heartNormalFailed","heartNormalAnimatedFailed","heartNormalRevival","heartBrokenDefault","heartBrokenFailed","heartBrokenAnimatedFailed","heartBrokenRevival","contextTypes","Provider","childContextTypes","propTypes","PropTypes","bool","shape","oneOf","string","number"],"sources":["../../../src/atom/life/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaSolidVoteRewardsVoteHeart as HeartIcon,\n NovaCompositionCoorpacademyBrokenHeart as HeartBrokenIcon,\n NovaCompositionCoorpacademyVoteHeartOutline as HeartIconOutline\n} from '@coorpacademy/nova-icons';\nimport Provider from '../provider';\nimport cssStyle from './style.css';\n\nconst MODES = {\n default: cssStyle.default,\n small: cssStyle.small\n};\n\nconst BOUNCES = {\n bounce: cssStyle.bounce,\n bounceTwice: cssStyle.bounceTwice,\n bounceAndPause: cssStyle.bounceAndPause\n};\n\nconst Life = (props, context) => {\n const {skin} = context;\n const {\n bounce = null,\n heartOnRight = false,\n animated = false,\n count = 3,\n failed = false,\n mode = 'default',\n operator = 'x',\n revival,\n className,\n style: customStyle\n } = props;\n const negativeColor = get('common.negative', skin);\n const white = get('common.white', skin);\n\n if (count === null) {\n return null;\n }\n\n const pickStyle = (successStyle, failedStyle, animatedFailedStyle, revivalStyle) => {\n if (revival) return revivalStyle;\n if (failed && animated) return animatedFailedStyle;\n if (failed) return failedStyle;\n return successStyle;\n };\n\n const heartWrapper =\n failed && animated ? cssStyle.heartWrapperFailed : cssStyle.heartWrapperDefault;\n const bounceClass = bounce ? BOUNCES[bounce.type] : null;\n const heartCustomStyle = {\n animationDelay: bounce && bounce.delay,\n animationDuration: bounce && bounce.duration,\n left: heartOnRight && '70px'\n };\n\n const countStyle = failed ? cssStyle.livesCounterFailed : cssStyle.livesCounterDefault;\n\n return (\n <div data-name=\"life\" className={classnames(MODES[mode], className)} style={customStyle}>\n <div className={cssStyle.livesCounterWrapper}>\n <div\n className={pickStyle(\n cssStyle.previousLivesCounterDefault,\n cssStyle.previousLivesCounterDefault,\n cssStyle.previousLivesCounterFailed,\n cssStyle.previousLivesRevival\n )}\n >\n {count + 1}\n </div>\n <div data-name=\"counter\" className={countStyle}>\n {count}\n </div>\n </div>\n <div className={cssStyle.operatorWrapper}>\n <span className={cssStyle.operator}>{operator}</span>\n </div>\n <div className={classnames(heartWrapper, bounceClass)} style={heartCustomStyle}>\n <HeartIconOutline className={cssStyle.heartOutline} color={white} />\n <HeartIcon\n className={pickStyle(\n cssStyle.heartNormalDefault,\n cssStyle.heartNormalFailed,\n cssStyle.heartNormalAnimatedFailed,\n cssStyle.heartNormalRevival\n )}\n color={negativeColor}\n />\n <HeartBrokenIcon\n className={pickStyle(\n cssStyle.heartBrokenDefault,\n cssStyle.heartBrokenFailed,\n cssStyle.heartBrokenAnimatedFailed,\n cssStyle.heartBrokenRevival\n )}\n color={negativeColor}\n />\n </div>\n </div>\n );\n};\n\nLife.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nLife.propTypes = {\n revival: PropTypes.bool,\n animated: PropTypes.bool,\n bounce: PropTypes.shape({\n type: PropTypes.oneOf(['bounce', 'bounceTwice', 'bounceAndPause']),\n delay: PropTypes.string\n }),\n heartOnRight: PropTypes.bool,\n mode: PropTypes.oneOf(keys(MODES)),\n count: PropTypes.number,\n failed: PropTypes.bool,\n className: PropTypes.string,\n operator: PropTypes.string,\n style: PropTypes.shape({})\n};\n\nexport default Life;\n"],"mappings":";;;;;;AAAA;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|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _noop2 = _interopRequireDefault(require("lodash/fp/noop"));
|
|
7
|
-
|
|
8
6
|
var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
|
|
9
|
-
|
|
10
7
|
var _identity2 = _interopRequireDefault(require("lodash/fp/identity"));
|
|
11
|
-
|
|
12
8
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
10
|
var _provider = _interopRequireDefault(require("../provider"));
|
|
17
|
-
|
|
18
11
|
var _navigation = _interopRequireDefault(require("../../util/navigation"));
|
|
19
|
-
|
|
20
12
|
const _excluded = ["skinHover", "hoverColor", "data-name", "aria-label"];
|
|
21
|
-
|
|
22
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
14
|
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); }
|
|
25
|
-
|
|
26
15
|
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; }
|
|
27
|
-
|
|
28
16
|
class Link extends _react.default.Component {
|
|
29
17
|
constructor(props) {
|
|
30
18
|
super(props);
|
|
31
|
-
|
|
32
19
|
this.handleMouseEnter = () => {
|
|
33
20
|
const {
|
|
34
21
|
onMouseEnter = _noop2.default
|
|
@@ -38,7 +25,6 @@ class Link extends _react.default.Component {
|
|
|
38
25
|
});
|
|
39
26
|
onMouseEnter();
|
|
40
27
|
};
|
|
41
|
-
|
|
42
28
|
this.handleMouseLeave = () => {
|
|
43
29
|
const {
|
|
44
30
|
onMouseLeave = _noop2.default
|
|
@@ -48,25 +34,21 @@ class Link extends _react.default.Component {
|
|
|
48
34
|
});
|
|
49
35
|
onMouseLeave();
|
|
50
36
|
};
|
|
51
|
-
|
|
52
37
|
this.handleOnClick = e => {
|
|
53
38
|
const {
|
|
54
39
|
onClick = _noop2.default,
|
|
55
40
|
download
|
|
56
41
|
} = this.props;
|
|
57
42
|
onClick(e);
|
|
58
|
-
|
|
59
43
|
if (!download) {
|
|
60
44
|
const navigate = (0, _navigation.default)(this.context)(this.props);
|
|
61
45
|
navigate(e);
|
|
62
46
|
}
|
|
63
47
|
};
|
|
64
|
-
|
|
65
48
|
this.state = {
|
|
66
49
|
hovered: false
|
|
67
50
|
};
|
|
68
51
|
}
|
|
69
|
-
|
|
70
52
|
render() {
|
|
71
53
|
const {
|
|
72
54
|
skin,
|
|
@@ -74,16 +56,14 @@ class Link extends _react.default.Component {
|
|
|
74
56
|
createHref = _identity2.default
|
|
75
57
|
} = {}
|
|
76
58
|
} = this.context;
|
|
77
|
-
|
|
78
59
|
const _this$props = this.props,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
60
|
+
{
|
|
61
|
+
skinHover,
|
|
62
|
+
hoverColor = (0, _getOr2.default)('#00B0FF', 'common.primary', skin),
|
|
63
|
+
'data-name': dataName = 'link',
|
|
64
|
+
'aria-label': ariaLabel
|
|
65
|
+
} = _this$props,
|
|
66
|
+
aProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
87
67
|
const {
|
|
88
68
|
href,
|
|
89
69
|
onClick,
|
|
@@ -94,15 +74,12 @@ class Link extends _react.default.Component {
|
|
|
94
74
|
const {
|
|
95
75
|
hovered
|
|
96
76
|
} = this.state;
|
|
97
|
-
|
|
98
77
|
const _style = href || onClick ? null : {
|
|
99
78
|
pointerEvents: 'none'
|
|
100
79
|
};
|
|
101
|
-
|
|
102
80
|
const _hoverStyle = skinHover && hovered ? {
|
|
103
81
|
color: hoverColor
|
|
104
82
|
} : null;
|
|
105
|
-
|
|
106
83
|
return /*#__PURE__*/_react.default.createElement("a", _extends({}, aProps, {
|
|
107
84
|
"data-name": dataName,
|
|
108
85
|
"aria-label": ariaLabel,
|
|
@@ -114,9 +91,7 @@ class Link extends _react.default.Component {
|
|
|
114
91
|
style: _extends({}, propsStyle, _style, _hoverStyle)
|
|
115
92
|
}), children);
|
|
116
93
|
}
|
|
117
|
-
|
|
118
94
|
}
|
|
119
|
-
|
|
120
95
|
Link.contextTypes = {
|
|
121
96
|
skin: _provider.default.childContextTypes.skin,
|
|
122
97
|
history: _provider.default.childContextTypes.history
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Link","React","Component","constructor","props","handleMouseEnter","onMouseEnter","setState","hovered","handleMouseLeave","onMouseLeave","handleOnClick","e","onClick","download","navigate","pushToHistory","context","state","render","skin","history","createHref","skinHover","hoverColor","dataName","ariaLabel","aProps","href","className","style","propsStyle","children","_style","pointerEvents","_hoverStyle","color","undefined","contextTypes","Provider","childContextTypes","propTypes","PropTypes","node","string","target","oneOf","bool","func","shape"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, getOr, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nclass Link extends React.Component {\n static propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n skinHover: PropTypes.bool,\n hoverColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n style: PropTypes.shape({})\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n };\n\n constructor(props) {\n super(props);\n this.state = {\n hovered: false\n };\n }\n\n handleMouseEnter = () => {\n const {onMouseEnter = noop} = this.props;\n\n this.setState({\n hovered: true\n });\n\n onMouseEnter();\n };\n\n handleMouseLeave = () => {\n const {onMouseLeave = noop} = this.props;\n\n this.setState({\n hovered: false\n });\n\n onMouseLeave();\n };\n\n handleOnClick = e => {\n const {onClick = noop, download} = this.props;\n\n onClick(e);\n\n if (!download) {\n const navigate = pushToHistory(this.context)(this.props);\n navigate(e);\n }\n };\n\n render() {\n const {skin, history: {createHref = identity} = {}} = this.context;\n const {\n skinHover,\n hoverColor = getOr('#00B0FF', 'common.primary', skin),\n 'data-name': dataName = 'link',\n 'aria-label': ariaLabel,\n ...aProps\n } = this.props;\n const {href, onClick, className, style: propsStyle, children} = this.props;\n const {hovered} = this.state;\n const _style =\n href || onClick\n ? null\n : {\n pointerEvents: 'none'\n };\n const _hoverStyle =\n skinHover && hovered\n ? {\n color: hoverColor\n }\n : null;\n\n return (\n <a\n {...aProps}\n data-name={dataName}\n aria-label={ariaLabel}\n href={href ? createHref(href) : undefined}\n onClick={this.handleOnClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n className={className}\n style={{\n ...propsStyle,\n ..._style,\n ..._hoverStyle\n }}\n >\n {children}\n </a>\n );\n }\n}\n\nexport default Link;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["Link","React","Component","constructor","props","handleMouseEnter","onMouseEnter","setState","hovered","handleMouseLeave","onMouseLeave","handleOnClick","e","onClick","download","navigate","pushToHistory","context","state","render","skin","history","createHref","skinHover","hoverColor","dataName","ariaLabel","aProps","href","className","style","propsStyle","children","_style","pointerEvents","_hoverStyle","color","undefined","contextTypes","Provider","childContextTypes","propTypes","PropTypes","node","string","target","oneOf","bool","func","shape"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, getOr, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nclass Link extends React.Component {\n static propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n skinHover: PropTypes.bool,\n hoverColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n style: PropTypes.shape({})\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n };\n\n constructor(props) {\n super(props);\n this.state = {\n hovered: false\n };\n }\n\n handleMouseEnter = () => {\n const {onMouseEnter = noop} = this.props;\n\n this.setState({\n hovered: true\n });\n\n onMouseEnter();\n };\n\n handleMouseLeave = () => {\n const {onMouseLeave = noop} = this.props;\n\n this.setState({\n hovered: false\n });\n\n onMouseLeave();\n };\n\n handleOnClick = e => {\n const {onClick = noop, download} = this.props;\n\n onClick(e);\n\n if (!download) {\n const navigate = pushToHistory(this.context)(this.props);\n navigate(e);\n }\n };\n\n render() {\n const {skin, history: {createHref = identity} = {}} = this.context;\n const {\n skinHover,\n hoverColor = getOr('#00B0FF', 'common.primary', skin),\n 'data-name': dataName = 'link',\n 'aria-label': ariaLabel,\n ...aProps\n } = this.props;\n const {href, onClick, className, style: propsStyle, children} = this.props;\n const {hovered} = this.state;\n const _style =\n href || onClick\n ? null\n : {\n pointerEvents: 'none'\n };\n const _hoverStyle =\n skinHover && hovered\n ? {\n color: hoverColor\n }\n : null;\n\n return (\n <a\n {...aProps}\n data-name={dataName}\n aria-label={ariaLabel}\n href={href ? createHref(href) : undefined}\n onClick={this.handleOnClick}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n className={className}\n style={{\n ...propsStyle,\n ..._style,\n ..._hoverStyle\n }}\n >\n {children}\n </a>\n );\n }\n}\n\nexport default Link;\n"],"mapp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E,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;EAC/DvB,SAAS,EAAEmB,kBAAS,CAACK,IAAI;EACzBvB,UAAU,EAAEkB,kBAAS,CAACE,MAAM;EAC5B9B,QAAQ,EAAE4B,kBAAS,CAACK,IAAI;EACxBlC,OAAO,EAAE6B,kBAAS,CAACM,IAAI;EACvB1C,YAAY,EAAEoC,kBAAS,CAACM,IAAI;EAC5BtC,YAAY,EAAEgC,kBAAS,CAACM,IAAI;EAC5BlB,KAAK,EAAEY,kBAAS,CAACO,KAAK,CAAC,CAAC,CAAC;AAC3B,CAAC;AAAA,eA2FYjD,IAAI;AAAA"}
|
package/lib/atom/loader/index.js
CHANGED
|
@@ -2,19 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
7
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
11
|
-
|
|
12
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
9
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
11
|
const Loader = ({
|
|
19
12
|
className,
|
|
20
13
|
theme = 'default'
|
|
@@ -43,7 +36,6 @@ const Loader = ({
|
|
|
43
36
|
className: _style.default.yellow
|
|
44
37
|
})));
|
|
45
38
|
};
|
|
46
|
-
|
|
47
39
|
Loader.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
48
40
|
className: _propTypes.default.string,
|
|
49
41
|
theme: _propTypes.default.oneOf(['default', 'coorpmanager'])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Loader","className","theme","classnames","style","cmLoaderContainer","cmLoaderGrey","cmLoaderLightGrey","cmLoaderBlue","container","dots","red","blue","green","yellow","propTypes","PropTypes","string","oneOf"],"sources":["../../../src/atom/loader/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {NovaCompositionCoorpacademyCmLoader as CMLoader} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport style from './style.css';\n\nconst Loader = ({className, theme = 'default'}) => {\n return theme !== 'default' ? (\n <div data-name=\"loader\" className={classnames(style.cmLoaderContainer, className)}>\n <CMLoader className={style.cmLoaderGrey} />\n <CMLoader className={style.cmLoaderLightGrey} />\n <CMLoader className={style.cmLoaderBlue} />\n </div>\n ) : (\n <div data-name=\"loader\" className={classnames(style.container, className)}>\n <div className={style.dots}>\n <div className={style.red} />\n <div className={style.blue} />\n <div className={style.green} />\n <div className={style.yellow} />\n </div>\n </div>\n );\n};\n\nLoader.propTypes = {\n className: PropTypes.string,\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\n\nexport default Loader;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["Loader","className","theme","classnames","style","cmLoaderContainer","cmLoaderGrey","cmLoaderLightGrey","cmLoaderBlue","container","dots","red","blue","green","yellow","propTypes","PropTypes","string","oneOf"],"sources":["../../../src/atom/loader/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {NovaCompositionCoorpacademyCmLoader as CMLoader} from '@coorpacademy/nova-icons';\nimport classnames from 'classnames';\nimport style from './style.css';\n\nconst Loader = ({className, theme = 'default'}) => {\n return theme !== 'default' ? (\n <div data-name=\"loader\" className={classnames(style.cmLoaderContainer, className)}>\n <CMLoader className={style.cmLoaderGrey} />\n <CMLoader className={style.cmLoaderLightGrey} />\n <CMLoader className={style.cmLoaderBlue} />\n </div>\n ) : (\n <div data-name=\"loader\" className={classnames(style.container, className)}>\n <div className={style.dots}>\n <div className={style.red} />\n <div className={style.blue} />\n <div className={style.green} />\n <div className={style.yellow} />\n </div>\n </div>\n );\n};\n\nLoader.propTypes = {\n className: PropTypes.string,\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\n\nexport default Loader;\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AAAgC;AAEhC,MAAMA,MAAM,GAAG,CAAC;EAACC,SAAS;EAAEC,KAAK,GAAG;AAAS,CAAC,KAAK;EACjD,OAAOA,KAAK,KAAK,SAAS,gBACxB;IAAK,aAAU,QAAQ;IAAC,SAAS,EAAE,IAAAC,mBAAU,EAACC,cAAK,CAACC,iBAAiB,EAAEJ,SAAS;EAAE,gBAChF,6BAAC,8CAAQ;IAAC,SAAS,EAAEG,cAAK,CAACE;EAAa,EAAG,eAC3C,6BAAC,8CAAQ;IAAC,SAAS,EAAEF,cAAK,CAACG;EAAkB,EAAG,eAChD,6BAAC,8CAAQ;IAAC,SAAS,EAAEH,cAAK,CAACI;EAAa,EAAG,CACvC,gBAEN;IAAK,aAAU,QAAQ;IAAC,SAAS,EAAE,IAAAL,mBAAU,EAACC,cAAK,CAACK,SAAS,EAAER,SAAS;EAAE,gBACxE;IAAK,SAAS,EAAEG,cAAK,CAACM;EAAK,gBACzB;IAAK,SAAS,EAAEN,cAAK,CAACO;EAAI,EAAG,eAC7B;IAAK,SAAS,EAAEP,cAAK,CAACQ;EAAK,EAAG,eAC9B;IAAK,SAAS,EAAER,cAAK,CAACS;EAAM,EAAG,eAC/B;IAAK,SAAS,EAAET,cAAK,CAACU;EAAO,EAAG,CAC5B,CAET;AACH,CAAC;AAEDd,MAAM,CAACe,SAAS,2CAAG;EACjBd,SAAS,EAAEe,kBAAS,CAACC,MAAM;EAC3Bf,KAAK,EAAEc,kBAAS,CAACE,KAAK,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC;AACpD,CAAC;AAAC,eAEalB,MAAM;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/loader/index.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAA0C,UAAU,EAAC,MAAM,cAAc,CAAC;AAoCjF,
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/loader/index.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAA0C,UAAU,EAAC,MAAM,cAAc,CAAC;AAoCjF,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAKF,QAAA,MAAM,MAAM,UAAW,KAAK,uBAsK3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -2,19 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _reactNativeAnimation = require("@coorpacademy/react-native-animation");
|
|
7
|
-
|
|
8
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
7
|
var _reactNative = require("react-native");
|
|
11
|
-
|
|
12
8
|
var _templateContext = require("../../template/app-review/template-context");
|
|
13
|
-
|
|
14
9
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
|
|
16
10
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
11
|
const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
19
12
|
container: {
|
|
20
13
|
alignItems: 'center',
|
|
@@ -36,10 +29,8 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
|
36
29
|
backgroundColor: theme.colors.battle
|
|
37
30
|
}
|
|
38
31
|
});
|
|
39
|
-
|
|
40
32
|
const CYCLE_DURATION = 3000;
|
|
41
33
|
const MIN_TIME = 1000;
|
|
42
|
-
|
|
43
34
|
const Loader = props => {
|
|
44
35
|
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
45
36
|
const {
|
|
@@ -65,7 +56,6 @@ const Loader = props => {
|
|
|
65
56
|
} = props;
|
|
66
57
|
(0, _react.useEffect)(() => {
|
|
67
58
|
const _stylesheet = createStyleSheet(theme);
|
|
68
|
-
|
|
69
59
|
setStylesheet(_stylesheet);
|
|
70
60
|
}, [theme]);
|
|
71
61
|
(0, _react.useEffect)(() => {
|
|
@@ -77,7 +67,6 @@ const Loader = props => {
|
|
|
77
67
|
setTimeout(() => {
|
|
78
68
|
setMinTimeSpent(true);
|
|
79
69
|
}, MIN_TIME);
|
|
80
|
-
|
|
81
70
|
const _animation = _reactNative.Animated.parallel([_reactNative.Animated.loop(_reactNative.Animated.sequence([_reactNative.Animated.timing(scale, {
|
|
82
71
|
toValue: 0,
|
|
83
72
|
duration: 0,
|
|
@@ -107,23 +96,19 @@ const Loader = props => {
|
|
|
107
96
|
useNativeDriver: false,
|
|
108
97
|
easing: _reactNative.Easing.inOut(_reactNative.Easing.sin)
|
|
109
98
|
})]))]);
|
|
110
|
-
|
|
111
99
|
_animation.start();
|
|
112
|
-
|
|
113
100
|
return () => {
|
|
114
101
|
_animation.stop();
|
|
115
|
-
};
|
|
102
|
+
};
|
|
103
|
+
// eslint bad warning --> effect only onmount
|
|
116
104
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
117
105
|
}, []);
|
|
118
|
-
|
|
119
106
|
if (!styleSheet) {
|
|
120
107
|
return null;
|
|
121
108
|
}
|
|
122
|
-
|
|
123
109
|
if (hidden) {
|
|
124
110
|
return null;
|
|
125
111
|
}
|
|
126
|
-
|
|
127
112
|
const interpolatedScale = scale.interpolate({
|
|
128
113
|
inputRange: [0, 0.45, 1, 1.32, 1.5, 2, 2.3, 2.64, 3],
|
|
129
114
|
outputRange: [0.5, 0.2, 0.5, 0.5, 0.8, 0.5, 0.5, 0.3, 0.5]
|
|
@@ -201,7 +186,6 @@ const Loader = props => {
|
|
|
201
186
|
}]
|
|
202
187
|
})));
|
|
203
188
|
};
|
|
204
|
-
|
|
205
189
|
var _default = Loader;
|
|
206
190
|
exports.default = _default;
|
|
207
191
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","alignItems","justifyContent","dot","position","blue","backgroundColor","colors","cta","red","negative","green","positive","yellow","battle","CYCLE_DURATION","MIN_TIME","Loader","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","hidden","setHidden","minTimeIsSpent","setMinTimeSpent","rotation","useRef","Animated","Value","current","scale","hideAnimation","useAnimateProp","property","fromValue","toValue","onComplete","height","color","readyToHide","useEffect","_stylesheet","start","setTimeout","_animation","parallel","loop","sequence","timing","duration","useNativeDriver","easing","Easing","inOut","sin","stop","interpolatedScale","interpolate","inputRange","outputRange","interpolatedRotation","dotWidth","dotTranslate","dotStyle","width","borderRadius","animatedStyle","transform","scaleX","scaleY","rotateZ","translateX"],"sources":["../../../src/atom/loader/index.native.tsx"],"sourcesContent":["import {useAnimateProp} from '@coorpacademy/react-native-animation';\nimport React, {useEffect, useRef, useState} from 'react';\nimport {Animated, StyleSheet, Easing, ViewStyle, ColorValue} from 'react-native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\n\ntype StyleSheetType = {\n container: ViewStyle;\n dot: ViewStyle;\n blue: ViewStyle;\n red: ViewStyle;\n green: ViewStyle;\n yellow: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center'\n },\n dot: {\n position: 'absolute'\n },\n blue: {\n backgroundColor: theme.colors.cta\n },\n red: {\n backgroundColor: theme.colors.negative\n },\n green: {\n backgroundColor: theme.colors.positive\n },\n yellow: {\n backgroundColor: theme.colors.battle\n }\n });\n\nexport type Props = {\n color?: ColorValue;\n height?: number;\n readyToHide: boolean;\n};\n\nconst CYCLE_DURATION = 3000;\nconst MIN_TIME = 1000;\n\nconst Loader = (props: Props) => {\n const templateContext = useTemplateContext();\n const {theme} = templateContext;\n\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const [hidden, setHidden] = useState<boolean>(false);\n const [minTimeIsSpent, setMinTimeSpent] = useState<boolean>(false);\n\n const rotation = useRef<Animated.Value>(new Animated.Value(0)).current;\n const scale = useRef<Animated.Value>(new Animated.Value(0)).current;\n\n const hideAnimation = useAnimateProp({\n property: 'opacity',\n fromValue: 1,\n toValue: 0,\n onComplete: () => {\n setHidden(true);\n }\n });\n\n const {height = 60, color, readyToHide} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n useEffect(() => {\n if (readyToHide && minTimeIsSpent && !hidden) {\n hideAnimation.start();\n }\n }, [hidden, hideAnimation, readyToHide, minTimeIsSpent]);\n\n useEffect(() => {\n setTimeout(() => {\n setMinTimeSpent(true);\n }, MIN_TIME);\n\n const _animation = Animated.parallel([\n Animated.loop(\n Animated.sequence([\n Animated.timing(scale, {toValue: 0, duration: 0, useNativeDriver: false}),\n Animated.timing(scale, {\n toValue: 1,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n }),\n Animated.timing(scale, {\n toValue: 2,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n }),\n Animated.timing(scale, {\n toValue: 3,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n })\n ])\n ),\n Animated.loop(\n Animated.sequence([\n Animated.timing(rotation, {toValue: 0, duration: 0, useNativeDriver: false}),\n Animated.timing(rotation, {\n toValue: 1,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n })\n ])\n )\n ]);\n\n _animation.start();\n\n return () => {\n _animation.stop();\n };\n // eslint bad warning --> effect only onmount\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!styleSheet) {\n return null;\n }\n\n if (hidden) {\n return null;\n }\n\n const interpolatedScale = scale.interpolate({\n inputRange: [0, 0.45, 1, 1.32, 1.5, 2, 2.3, 2.64, 3],\n outputRange: [0.5, 0.2, 0.5, 0.5, 0.8, 0.5, 0.5, 0.3, 0.5]\n });\n\n const interpolatedRotation = rotation.interpolate({\n inputRange: [0, 1],\n outputRange: ['0deg', '360deg']\n });\n const dotWidth = rotation.interpolate({\n inputRange: [0, 0.5, 1],\n outputRange: [height / 2, height / 6, height / 2]\n });\n const dotTranslate = rotation.interpolate({\n inputRange: [0, 0.5, 1],\n outputRange: [-25 * (height / 60), -35 * (height / 60), -25 * (height / 60)]\n });\n const dotStyle = {\n width: dotWidth,\n height: height / 6,\n borderRadius: height / 12\n };\n\n return (\n <Animated.View style={hideAnimation.animatedStyle}>\n <Animated.View\n style={[\n styleSheet.container,\n {\n height,\n width: height,\n transform: [\n {scaleX: interpolatedScale},\n {scaleY: interpolatedScale},\n {rotateZ: interpolatedRotation}\n ]\n }\n ]}\n >\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.red,\n dotStyle,\n {transform: [{rotateZ: '45deg'}, {translateX: dotTranslate}]}\n ]}\n />\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.green,\n dotStyle,\n {transform: [{rotateZ: '135deg'}, {translateX: dotTranslate}]}\n ]}\n />\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.yellow,\n dotStyle,\n {transform: [{rotateZ: '225deg'}, {translateX: dotTranslate}]}\n ]}\n />\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.blue,\n dotStyle,\n {transform: [{rotateZ: '315deg'}, {translateX: dotTranslate}]}\n ]}\n />\n </Animated.View>\n </Animated.View>\n );\n};\n\nexport default Loader;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAYA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,UAAU,EAAE,QADH;IAETC,cAAc,EAAE;EAFP,CADK;EAKhBC,GAAG,EAAE;IACHC,QAAQ,EAAE;EADP,CALW;EAQhBC,IAAI,EAAE;IACJC,eAAe,EAAET,KAAK,CAACU,MAAN,CAAaC;EAD1B,CARU;EAWhBC,GAAG,EAAE;IACHH,eAAe,EAAET,KAAK,CAACU,MAAN,CAAaG;EAD3B,CAXW;EAchBC,KAAK,EAAE;IACLL,eAAe,EAAET,KAAK,CAACU,MAAN,CAAaK;EADzB,CAdS;EAiBhBC,MAAM,EAAE;IACNP,eAAe,EAAET,KAAK,CAACU,MAAN,CAAaO;EADxB;AAjBQ,CAAlB,CADF;;AA6BA,MAAMC,cAAc,GAAG,IAAvB;AACA,MAAMC,QAAQ,GAAG,IAAjB;;AAEA,MAAMC,MAAM,GAAIC,KAAD,IAAkB;EAC/B,MAAMC,eAAe,GAAG,IAAAC,mCAAA,GAAxB;EACA,MAAM;IAACvB;EAAD,IAAUsB,eAAhB;EAEA,MAAM,CAACE,UAAD,E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AAE,CAAC;QAACG,OAAO,EAAE;MAAV,CAAD,EAAsB;QAACC,UAAU,EAAET;MAAb,CAAtB;IAAZ,CAJK;EADT,EAtBF,eA8BE,6BAAC,qBAAD,CAAU,IAAV;IACE,KAAK,EAAE,CACL5C,UAAU,CAAClB,GADN,EAELsC,KAAK,GAAG;MAACnC,eAAe,EAAEmC;IAAlB,CAAH,GAA8BpB,UAAU,CAACR,MAFzC,EAGLqD,QAHK,EAIL;MAACI,SAAS,EAAE,CAAC;QAACG,OAAO,EAAE;MAAV,CAAD,EAAsB;QAACC,UAAU,EAAET;MAAb,CAAtB;IAAZ,CAJK;EADT,EA9BF,eAsCE,6BAAC,qBAAD,CAAU,IAAV;IACE,KAAK,EAAE,CACL5C,UAAU,CAAClB,GADN,EAELsC,KAAK,GAAG;MAACnC,eAAe,EAAEmC;IAAlB,CAAH,GAA8BpB,UAAU,CAAChB,IAFzC,EAGL6D,QAHK,EAIL;MAACI,SAAS,EAAE,CAAC;QAACG,OAAO,EAAE;MAAV,CAAD,EAAsB;QAACC,UAAU,EAAET;MAAb,CAAtB;IAAZ,CAJK;EADT,EAtCF,CADF,CADF;AAmDD,CAtKD;;eAwKehD,M"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","container","alignItems","justifyContent","dot","position","blue","backgroundColor","colors","cta","red","negative","green","positive","yellow","battle","CYCLE_DURATION","MIN_TIME","Loader","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","hidden","setHidden","minTimeIsSpent","setMinTimeSpent","rotation","useRef","Animated","Value","current","scale","hideAnimation","useAnimateProp","property","fromValue","toValue","onComplete","height","color","readyToHide","useEffect","_stylesheet","start","setTimeout","_animation","parallel","loop","sequence","timing","duration","useNativeDriver","easing","Easing","inOut","sin","stop","interpolatedScale","interpolate","inputRange","outputRange","interpolatedRotation","dotWidth","dotTranslate","dotStyle","width","borderRadius","animatedStyle","transform","scaleX","scaleY","rotateZ","translateX"],"sources":["../../../src/atom/loader/index.native.tsx"],"sourcesContent":["import {useAnimateProp} from '@coorpacademy/react-native-animation';\nimport React, {useEffect, useRef, useState} from 'react';\nimport {Animated, StyleSheet, Easing, ViewStyle, ColorValue} from 'react-native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\n\ntype StyleSheetType = {\n container: ViewStyle;\n dot: ViewStyle;\n blue: ViewStyle;\n red: ViewStyle;\n green: ViewStyle;\n yellow: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center'\n },\n dot: {\n position: 'absolute'\n },\n blue: {\n backgroundColor: theme.colors.cta\n },\n red: {\n backgroundColor: theme.colors.negative\n },\n green: {\n backgroundColor: theme.colors.positive\n },\n yellow: {\n backgroundColor: theme.colors.battle\n }\n });\n\nexport type Props = {\n color?: ColorValue;\n height?: number;\n readyToHide: boolean;\n};\n\nconst CYCLE_DURATION = 3000;\nconst MIN_TIME = 1000;\n\nconst Loader = (props: Props) => {\n const templateContext = useTemplateContext();\n const {theme} = templateContext;\n\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const [hidden, setHidden] = useState<boolean>(false);\n const [minTimeIsSpent, setMinTimeSpent] = useState<boolean>(false);\n\n const rotation = useRef<Animated.Value>(new Animated.Value(0)).current;\n const scale = useRef<Animated.Value>(new Animated.Value(0)).current;\n\n const hideAnimation = useAnimateProp({\n property: 'opacity',\n fromValue: 1,\n toValue: 0,\n onComplete: () => {\n setHidden(true);\n }\n });\n\n const {height = 60, color, readyToHide} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n useEffect(() => {\n if (readyToHide && minTimeIsSpent && !hidden) {\n hideAnimation.start();\n }\n }, [hidden, hideAnimation, readyToHide, minTimeIsSpent]);\n\n useEffect(() => {\n setTimeout(() => {\n setMinTimeSpent(true);\n }, MIN_TIME);\n\n const _animation = Animated.parallel([\n Animated.loop(\n Animated.sequence([\n Animated.timing(scale, {toValue: 0, duration: 0, useNativeDriver: false}),\n Animated.timing(scale, {\n toValue: 1,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n }),\n Animated.timing(scale, {\n toValue: 2,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n }),\n Animated.timing(scale, {\n toValue: 3,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n })\n ])\n ),\n Animated.loop(\n Animated.sequence([\n Animated.timing(rotation, {toValue: 0, duration: 0, useNativeDriver: false}),\n Animated.timing(rotation, {\n toValue: 1,\n duration: CYCLE_DURATION,\n useNativeDriver: false,\n easing: Easing.inOut(Easing.sin)\n })\n ])\n )\n ]);\n\n _animation.start();\n\n return () => {\n _animation.stop();\n };\n // eslint bad warning --> effect only onmount\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!styleSheet) {\n return null;\n }\n\n if (hidden) {\n return null;\n }\n\n const interpolatedScale = scale.interpolate({\n inputRange: [0, 0.45, 1, 1.32, 1.5, 2, 2.3, 2.64, 3],\n outputRange: [0.5, 0.2, 0.5, 0.5, 0.8, 0.5, 0.5, 0.3, 0.5]\n });\n\n const interpolatedRotation = rotation.interpolate({\n inputRange: [0, 1],\n outputRange: ['0deg', '360deg']\n });\n const dotWidth = rotation.interpolate({\n inputRange: [0, 0.5, 1],\n outputRange: [height / 2, height / 6, height / 2]\n });\n const dotTranslate = rotation.interpolate({\n inputRange: [0, 0.5, 1],\n outputRange: [-25 * (height / 60), -35 * (height / 60), -25 * (height / 60)]\n });\n const dotStyle = {\n width: dotWidth,\n height: height / 6,\n borderRadius: height / 12\n };\n\n return (\n <Animated.View style={hideAnimation.animatedStyle}>\n <Animated.View\n style={[\n styleSheet.container,\n {\n height,\n width: height,\n transform: [\n {scaleX: interpolatedScale},\n {scaleY: interpolatedScale},\n {rotateZ: interpolatedRotation}\n ]\n }\n ]}\n >\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.red,\n dotStyle,\n {transform: [{rotateZ: '45deg'}, {translateX: dotTranslate}]}\n ]}\n />\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.green,\n dotStyle,\n {transform: [{rotateZ: '135deg'}, {translateX: dotTranslate}]}\n ]}\n />\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.yellow,\n dotStyle,\n {transform: [{rotateZ: '225deg'}, {translateX: dotTranslate}]}\n ]}\n />\n <Animated.View\n style={[\n styleSheet.dot,\n color ? {backgroundColor: color} : styleSheet.blue,\n dotStyle,\n {transform: [{rotateZ: '315deg'}, {translateX: dotTranslate}]}\n ]}\n />\n </Animated.View>\n </Animated.View>\n );\n};\n\nexport default Loader;\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AAA8E;AAAA;AAY9E,MAAMA,gBAAgB,GAAIC,KAAY,IACpCC,uBAAU,CAACC,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDC,GAAG,EAAE;IACHC,QAAQ,EAAE;EACZ,CAAC;EACDC,IAAI,EAAE;IACJC,eAAe,EAAET,KAAK,CAACU,MAAM,CAACC;EAChC,CAAC;EACDC,GAAG,EAAE;IACHH,eAAe,EAAET,KAAK,CAACU,MAAM,CAACG;EAChC,CAAC;EACDC,KAAK,EAAE;IACLL,eAAe,EAAET,KAAK,CAACU,MAAM,CAACK;EAChC,CAAC;EACDC,MAAM,EAAE;IACNP,eAAe,EAAET,KAAK,CAACU,MAAM,CAACO;EAChC;AACF,CAAC,CAAC;AAQJ,MAAMC,cAAc,GAAG,IAAI;AAC3B,MAAMC,QAAQ,GAAG,IAAI;AAErB,MAAMC,MAAM,GAAIC,KAAY,IAAK;EAC/B,MA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I,SAAS,EAAE,CAAC;QAACG,OAAO,EAAE;MAAQ,CAAC,EAAE;QAACC,UAAU,EAAET;MAAY,CAAC;IAAC,CAAC;EAC9D,EACF,eACF,6BAAC,qBAAQ,CAAC,IAAI;IACZ,KAAK,EAAE,CACL5C,UAAU,CAAClB,GAAG,EACdsC,KAAK,GAAG;MAACnC,eAAe,EAAEmC;IAAK,CAAC,GAAGpB,UAAU,CAACR,MAAM,EACpDqD,QAAQ,EACR;MAACI,SAAS,EAAE,CAAC;QAACG,OAAO,EAAE;MAAQ,CAAC,EAAE;QAACC,UAAU,EAAET;MAAY,CAAC;IAAC,CAAC;EAC9D,EACF,eACF,6BAAC,qBAAQ,CAAC,IAAI;IACZ,KAAK,EAAE,CACL5C,UAAU,CAAClB,GAAG,EACdsC,KAAK,GAAG;MAACnC,eAAe,EAAEmC;IAAK,CAAC,GAAGpB,UAAU,CAAChB,IAAI,EAClD6D,QAAQ,EACR;MAACI,SAAS,EAAE,CAAC;QAACG,OAAO,EAAE;MAAQ,CAAC,EAAE;QAACC,UAAU,EAAET;MAAY,CAAC;IAAC,CAAC;EAC9D,EACF,CACY,CACF;AAEpB,CAAC;AAAC,eAEahD,MAAM;AAAA"}
|
|
@@ -2,35 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.fetchAndLoadAnimation = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
|
|
10
7
|
var _lottieWeb = _interopRequireDefault(require("lottie-web"));
|
|
11
|
-
|
|
12
8
|
var _includes = _interopRequireDefault(require("lodash/fp/includes"));
|
|
13
|
-
|
|
14
9
|
var _isNil = _interopRequireDefault(require("lodash/fp/isNil"));
|
|
15
|
-
|
|
16
10
|
var _keys = _interopRequireDefault(require("lodash/fp/keys"));
|
|
17
|
-
|
|
18
11
|
var _omit = _interopRequireDefault(require("lodash/fp/omit"));
|
|
19
|
-
|
|
20
12
|
var _isomorphicUnfetch = _interopRequireDefault(require("isomorphic-unfetch"));
|
|
21
|
-
|
|
22
13
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
23
|
-
|
|
24
14
|
var _propTypes = _interopRequireWildcard(require("./prop-types"));
|
|
25
|
-
|
|
26
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
-
|
|
30
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
-
|
|
32
18
|
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); }
|
|
33
|
-
|
|
34
19
|
const fetchAndLoadAnimation = async (_lottie, _fetch, animationSrc, containerRef, loop, animationClassnames, hideOnTransparent, autoplay) => {
|
|
35
20
|
const animationUrl = new URL(animationSrc).toString();
|
|
36
21
|
const fetchResult = await _fetch(animationUrl, {
|
|
@@ -40,7 +25,6 @@ const fetchAndLoadAnimation = async (_lottie, _fetch, animationSrc, containerRef
|
|
|
40
25
|
}
|
|
41
26
|
});
|
|
42
27
|
const animationData = await fetchResult.json();
|
|
43
|
-
|
|
44
28
|
const animation = _lottie.loadAnimation && _lottie.loadAnimation({
|
|
45
29
|
container: containerRef.current,
|
|
46
30
|
// the dom element that will contain the animation
|
|
@@ -52,15 +36,12 @@ const fetchAndLoadAnimation = async (_lottie, _fetch, animationSrc, containerRef
|
|
|
52
36
|
className: animationClassnames,
|
|
53
37
|
hideOnTransparent,
|
|
54
38
|
preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop
|
|
55
|
-
|
|
56
39
|
}
|
|
57
40
|
});
|
|
58
41
|
|
|
59
42
|
return animation;
|
|
60
43
|
};
|
|
61
|
-
|
|
62
44
|
exports.fetchAndLoadAnimation = fetchAndLoadAnimation;
|
|
63
|
-
|
|
64
45
|
const LottieWrapper = props => {
|
|
65
46
|
const {
|
|
66
47
|
className,
|
|
@@ -79,8 +60,9 @@ const LottieWrapper = props => {
|
|
|
79
60
|
hideOnTransparent = true
|
|
80
61
|
} = rendererSettings;
|
|
81
62
|
const containerRef = (0, _react.useRef)(null);
|
|
82
|
-
const isCancelledRef = (0, _react.useRef)(null);
|
|
63
|
+
const isCancelledRef = (0, _react.useRef)(null);
|
|
83
64
|
|
|
65
|
+
// lottie's animation instance
|
|
84
66
|
const [animationItem, setAnimationItem] = (0, _react.useState)(null);
|
|
85
67
|
const [isAnimationVisible, setIsAnimationVisible] = (0, _react.useState)(autoplay);
|
|
86
68
|
const wrapperClassName = (0, _react.useMemo)(() => (0, _classnames.default)(className, _style.default.lottieContainer), [className]);
|
|
@@ -89,7 +71,6 @@ const LottieWrapper = props => {
|
|
|
89
71
|
if ((0, _includes.default)(animationControl, (0, _keys.default)((0, _omit.default)('loading', _propTypes.ANIMATION_CONTROL))) && !autoplay) {
|
|
90
72
|
setIsAnimationVisible(true);
|
|
91
73
|
/* istanbul ignore next */
|
|
92
|
-
|
|
93
74
|
if (animationItem) animationItem[animationControl]();
|
|
94
75
|
if (animationControl === _propTypes.ANIMATION_CONTROL.stop) setIsAnimationVisible(false);
|
|
95
76
|
}
|
|
@@ -103,13 +84,10 @@ const LottieWrapper = props => {
|
|
|
103
84
|
(0, _isNil.default)(isCancelledRef.current) && setAnimationItem(animation);
|
|
104
85
|
}
|
|
105
86
|
};
|
|
106
|
-
|
|
107
87
|
loadAnimation();
|
|
108
88
|
return () => {
|
|
109
89
|
isCancelledRef.current = true;
|
|
110
|
-
return animationItem &&
|
|
111
|
-
/* istanbul ignore next */
|
|
112
|
-
window.lottie.destroy(animationItem.name);
|
|
90
|
+
return animationItem && /* istanbul ignore next */window.lottie.destroy(animationItem.name);
|
|
113
91
|
};
|
|
114
92
|
}, [lottieAnimationClassName, containerRef, hideOnTransparent, loop, animationSrc, animationItem, autoplay]);
|
|
115
93
|
const accessibilityProps = ariaLabel ? {
|
|
@@ -135,7 +113,6 @@ const LottieWrapper = props => {
|
|
|
135
113
|
})
|
|
136
114
|
}));
|
|
137
115
|
};
|
|
138
|
-
|
|
139
116
|
LottieWrapper.propTypes = process.env.NODE_ENV !== "production" ? _propTypes.default : {};
|
|
140
117
|
var _default = LottieWrapper;
|
|
141
118
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["fetchAndLoadAnimation","_lottie","_fetch","animationSrc","containerRef","loop","animationClassnames","hideOnTransparent","autoplay","animationUrl","URL","toString","fetchResult","headers","animationData","json","animation","loadAnimation","container","current","renderer","rendererSettings","className","preserveAspectRatio","LottieWrapper","props","dataName","ariaLabel","width","height","animationControl","animationClassName","useRef","isCancelledRef","animationItem","setAnimationItem","useState","isAnimationVisible","setIsAnimationVisible","wrapperClassName","useMemo","classnames","style","lottieContainer","lottieAnimationClassName","useEffect","includes","keys","omit","ANIMATION_CONTROL","stop","window","lottie","unfetch","isNil","destroy","name","accessibilityProps","role","maxWidth","maxHeight","opacity","transition","propTypes"],"sources":["../../../src/atom/lottie-wrapper/index.js"],"sourcesContent":["import React, {useMemo, useRef, useEffect, useState} from 'react';\nimport classnames from 'classnames';\nimport lottie from 'lottie-web';\nimport includes from 'lodash/fp/includes';\nimport isNil from 'lodash/fp/isNil';\nimport keys from 'lodash/fp/keys';\nimport omit from 'lodash/fp/omit';\nimport unfetch from 'isomorphic-unfetch';\nimport style from './style.css';\nimport propTypes, {ANIMATION_CONTROL} from './prop-types';\n\nexport const fetchAndLoadAnimation = async (\n _lottie,\n _fetch,\n animationSrc,\n containerRef,\n loop,\n animationClassnames,\n hideOnTransparent,\n autoplay\n) => {\n const animationUrl = new URL(animationSrc).toString();\n const fetchResult = await _fetch(animationUrl, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json'\n }\n });\n\n const animationData = await fetchResult.json();\n\n const animation =\n _lottie.loadAnimation &&\n _lottie.loadAnimation({\n container: containerRef.current, // the dom element that will contain the animation\n renderer: 'svg',\n autoplay,\n loop,\n animationData,\n rendererSettings: {\n className: animationClassnames,\n hideOnTransparent,\n preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop\n }\n });\n return animation;\n};\n\nconst LottieWrapper = props => {\n const {\n className,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n animationSrc,\n loop = false,\n rendererSettings = {},\n width,\n height,\n autoplay = true,\n animationControl\n } = props;\n const {className: animationClassName, hideOnTransparent = true} = rendererSettings;\n\n const containerRef = useRef(null);\n const isCancelledRef = useRef(null);\n\n // lottie's animation instance\n const [animationItem, setAnimationItem] = useState(null);\n\n const [isAnimationVisible, setIsAnimationVisible] = useState(autoplay);\n\n const wrapperClassName = useMemo(() => classnames(className, style.lottieContainer), [className]);\n\n const lottieAnimationClassName = useMemo(\n () => classnames(animationClassName, style.animation),\n [animationClassName]\n );\n\n useEffect(() => {\n if (includes(animationControl, keys(omit('loading', ANIMATION_CONTROL))) && !autoplay) {\n setIsAnimationVisible(true);\n /* istanbul ignore next */\n if (animationItem) animationItem[animationControl]();\n if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);\n }\n }, [animationControl, animationItem, autoplay]);\n\n useEffect(() => {\n const loadAnimation = async () => {\n /* istanbul ignore else */\n if (!animationItem && typeof window !== 'undefined') {\n window.lottie = lottie;\n const animation = await fetchAndLoadAnimation(\n window.lottie,\n unfetch,\n animationSrc,\n containerRef,\n loop,\n lottieAnimationClassName,\n hideOnTransparent,\n autoplay\n );\n\n isNil(isCancelledRef.current) && setAnimationItem(animation);\n }\n };\n\n loadAnimation();\n return () => {\n isCancelledRef.current = true;\n return animationItem && /* istanbul ignore next */ window.lottie.destroy(animationItem.name);\n };\n }, [\n lottieAnimationClassName,\n containerRef,\n hideOnTransparent,\n loop,\n animationSrc,\n animationItem,\n autoplay\n ]);\n\n const accessibilityProps = ariaLabel\n ? {\n 'aria-label': ariaLabel,\n role: 'img'\n }\n : {\n 'aria-hidden': 'true',\n role: 'presentation'\n };\n\n return (\n <div\n {...accessibilityProps}\n ref={containerRef}\n data-name={dataName}\n className={wrapperClassName}\n style={{\n ...(width && {\n width: `${width}px`,\n maxWidth: `${width}px`\n }),\n ...(height && {\n height: `${height}px`,\n maxHeight: `${height}px`\n }),\n opacity: isAnimationVisible ? 1 : 0,\n transition: 'opacity 0.25s ease-in'\n }}\n />\n );\n};\n\nLottieWrapper.propTypes = propTypes;\n\nexport default LottieWrapper;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["fetchAndLoadAnimation","_lottie","_fetch","animationSrc","containerRef","loop","animationClassnames","hideOnTransparent","autoplay","animationUrl","URL","toString","fetchResult","headers","animationData","json","animation","loadAnimation","container","current","renderer","rendererSettings","className","preserveAspectRatio","LottieWrapper","props","dataName","ariaLabel","width","height","animationControl","animationClassName","useRef","isCancelledRef","animationItem","setAnimationItem","useState","isAnimationVisible","setIsAnimationVisible","wrapperClassName","useMemo","classnames","style","lottieContainer","lottieAnimationClassName","useEffect","includes","keys","omit","ANIMATION_CONTROL","stop","window","lottie","unfetch","isNil","destroy","name","accessibilityProps","role","maxWidth","maxHeight","opacity","transition","propTypes"],"sources":["../../../src/atom/lottie-wrapper/index.js"],"sourcesContent":["import React, {useMemo, useRef, useEffect, useState} from 'react';\nimport classnames from 'classnames';\nimport lottie from 'lottie-web';\nimport includes from 'lodash/fp/includes';\nimport isNil from 'lodash/fp/isNil';\nimport keys from 'lodash/fp/keys';\nimport omit from 'lodash/fp/omit';\nimport unfetch from 'isomorphic-unfetch';\nimport style from './style.css';\nimport propTypes, {ANIMATION_CONTROL} from './prop-types';\n\nexport const fetchAndLoadAnimation = async (\n _lottie,\n _fetch,\n animationSrc,\n containerRef,\n loop,\n animationClassnames,\n hideOnTransparent,\n autoplay\n) => {\n const animationUrl = new URL(animationSrc).toString();\n const fetchResult = await _fetch(animationUrl, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json'\n }\n });\n\n const animationData = await fetchResult.json();\n\n const animation =\n _lottie.loadAnimation &&\n _lottie.loadAnimation({\n container: containerRef.current, // the dom element that will contain the animation\n renderer: 'svg',\n autoplay,\n loop,\n animationData,\n rendererSettings: {\n className: animationClassnames,\n hideOnTransparent,\n preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop\n }\n });\n return animation;\n};\n\nconst LottieWrapper = props => {\n const {\n className,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n animationSrc,\n loop = false,\n rendererSettings = {},\n width,\n height,\n autoplay = true,\n animationControl\n } = props;\n const {className: animationClassName, hideOnTransparent = true} = rendererSettings;\n\n const containerRef = useRef(null);\n const isCancelledRef = useRef(null);\n\n // lottie's animation instance\n const [animationItem, setAnimationItem] = useState(null);\n\n const [isAnimationVisible, setIsAnimationVisible] = useState(autoplay);\n\n const wrapperClassName = useMemo(() => classnames(className, style.lottieContainer), [className]);\n\n const lottieAnimationClassName = useMemo(\n () => classnames(animationClassName, style.animation),\n [animationClassName]\n );\n\n useEffect(() => {\n if (includes(animationControl, keys(omit('loading', ANIMATION_CONTROL))) && !autoplay) {\n setIsAnimationVisible(true);\n /* istanbul ignore next */\n if (animationItem) animationItem[animationControl]();\n if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);\n }\n }, [animationControl, animationItem, autoplay]);\n\n useEffect(() => {\n const loadAnimation = async () => {\n /* istanbul ignore else */\n if (!animationItem && typeof window !== 'undefined') {\n window.lottie = lottie;\n const animation = await fetchAndLoadAnimation(\n window.lottie,\n unfetch,\n animationSrc,\n containerRef,\n loop,\n lottieAnimationClassName,\n hideOnTransparent,\n autoplay\n );\n\n isNil(isCancelledRef.current) && setAnimationItem(animation);\n }\n };\n\n loadAnimation();\n return () => {\n isCancelledRef.current = true;\n return animationItem && /* istanbul ignore next */ window.lottie.destroy(animationItem.name);\n };\n }, [\n lottieAnimationClassName,\n containerRef,\n hideOnTransparent,\n loop,\n animationSrc,\n animationItem,\n autoplay\n ]);\n\n const accessibilityProps = ariaLabel\n ? {\n 'aria-label': ariaLabel,\n role: 'img'\n }\n : {\n 'aria-hidden': 'true',\n role: 'presentation'\n };\n\n return (\n <div\n {...accessibilityProps}\n ref={containerRef}\n data-name={dataName}\n className={wrapperClassName}\n style={{\n ...(width && {\n width: `${width}px`,\n maxWidth: `${width}px`\n }),\n ...(height && {\n height: `${height}px`,\n maxHeight: `${height}px`\n }),\n opacity: isAnimationVisible ? 1 : 0,\n transition: 'opacity 0.25s ease-in'\n }}\n />\n );\n};\n\nLottieWrapper.propTypes = propTypes;\n\nexport default LottieWrapper;\n"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0D;AAAA;AAAA;AAAA;AAEnD,MAAMA,qBAAqB,GAAG,OACnCC,OAAO,EACPC,MAAM,EACNC,YAAY,EACZC,YAAY,EACZC,IAAI,EACJC,mB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AAO,CAAC,IAAIgB,gBAAgB,CAACnB,SAAS,CAAC;MAC9D;IACF,CAAC;IAEDC,aAAa,EAAE;IACf,OAAO,MAAM;MACXgB,cAAc,CAACd,OAAO,GAAG,IAAI;MAC7B,OAAOe,aAAa,IAAI,0BAA2BiB,MAAM,CAACC,MAAM,CAACG,OAAO,CAACrB,aAAa,CAACsB,IAAI,CAAC;IAC9F,CAAC;EACH,CAAC,EAAE,CACDZ,wBAAwB,EACxBxC,YAAY,EACZG,iBAAiB,EACjBF,IAAI,EACJF,YAAY,EACZ+B,aAAa,EACb1B,QAAQ,CACT,CAAC;EAEF,MAAMiD,kBAAkB,GAAG9B,SAAS,GAChC;IACE,YAAY,EAAEA,SAAS;IACvB+B,IAAI,EAAE;EACR,CAAC,GACD;IACE,aAAa,EAAE,MAAM;IACrBA,IAAI,EAAE;EACR,CAAC;EAEL,oBACE,iDACMD,kBAAkB;IACtB,GAAG,EAAErD,YAAa;IAClB,aAAWsB,QAAS;IACpB,SAAS,EAAEa,gBAAiB;IAC5B,KAAK,eACCX,KAAK,IAAI;MACXA,KAAK,EAAG,GAAEA,KAAM,IAAG;MACnB+B,QAAQ,EAAG,GAAE/B,KAAM;IACrB,CAAC,EACGC,MAAM,IAAI;MACZA,MAAM,EAAG,GAAEA,MAAO,IAAG;MACrB+B,SAAS,EAAG,GAAE/B,MAAO;IACvB,CAAC;MACDgC,OAAO,EAAExB,kBAAkB,GAAG,CAAC,GAAG,CAAC;MACnCyB,UAAU,EAAE;IAAuB;EACnC,GACF;AAEN,CAAC;AAEDtC,aAAa,CAACuC,SAAS,2CAAGA,kBAAS;AAAC,eAErBvC,aAAa;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/lottie-wrapper/prop-types.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/lottie-wrapper/prop-types.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE;QACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;CAcd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.ANIMATION_CONTROL = void 0;
|
|
5
|
-
|
|
6
5
|
var _keys = _interopRequireDefault(require("lodash/fp/keys"));
|
|
7
|
-
|
|
8
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
8
|
const ANIMATION_CONTROL = {
|
|
13
9
|
play: 'play',
|
|
14
10
|
pause: 'pause',
|