@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":["AnimationAdapter","animated","onAnimationEnd","name","children","React","Children","map","child","cloneElement","propTypes","PropTypes","string","isRequired","func","bool","pickByWithKey","convert","cap","walker","type","handler","index","newChild","count","props","reduceChildren","fun","acc","newAcc","getAnimationNames","Animation","Transition","mergeAnimationStates","animations","names","value","key","AnimationScheduler","Component","getDerivedStateFromProps","state","constructor","isAnimated","after","handlerAnimationEnd","setState","hasPendingAnimation","processAnimation","parentAnimated","render","bind","node"],"sources":["../../../src/hoc/animation-scheduler/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n assign,\n every,\n getOr,\n get,\n includes,\n isArray,\n isNil,\n isString,\n noop,\n pickBy,\n some,\n negate,\n identity,\n values,\n pipe,\n reduce,\n set\n} from 'lodash/fp';\nimport Animation from '../animation';\nimport Transition from '../transition';\n\nconst AnimationAdapter = ({animated, onAnimationEnd = noop, name, children}) => {\n return React.Children.map(children, child =>\n React.cloneElement(child, {\n animated,\n onAnimationEnd: () => onAnimationEnd(name)\n })\n );\n};\n\nAnimationAdapter.propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool\n};\n\nconst pickByWithKey = pickBy.convert({cap: true});\n\nconst walker = (type, handler) => children => {\n return React.Children.map(children, (child, index) => {\n if (isNil(child) || isString(child)) return child;\n const newChild = child.type === type ? handler(child) : child;\n if (React.Children.count(newChild.props.children) === 0) return newChild;\n return React.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));\n });\n};\n\nconst reduceChildren = fun => acc => children => {\n let newAcc = acc;\n React.Children.map(children, child => {\n newAcc = fun(newAcc, child);\n return child;\n });\n return newAcc;\n};\n\nconst getAnimationNames = reduceChildren((acc, child) => {\n if (isString(child)) return acc;\n\n const {\n type,\n props: {children}\n } = child;\n if (Animation !== type && Transition !== type && AnimationAdapter !== type)\n return [...acc, ...getAnimationNames(children)];\n\n const {\n props: {name}\n } = child;\n return [name, ...acc, ...getAnimationNames(children)];\n})([]);\n\nconst mergeAnimationStates = (animations, children) => {\n const names = getAnimationNames(children);\n\n return pipe(\n pickByWithKey((value, key) => includes(key, names)),\n assign(reduce((acc, name) => set(name, false, acc), {}, names))\n )(animations);\n};\n\nclass AnimationScheduler extends React.Component {\n static propTypes = {\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool,\n children: PropTypes.node\n };\n\n static getDerivedStateFromProps(props, state) {\n const {children} = props;\n const {animations} = state;\n return {\n animations: mergeAnimationStates(animations, children)\n };\n }\n\n constructor(props) {\n super(props);\n\n const {children} = props;\n this.state = {\n animations: mergeAnimationStates({}, children)\n };\n }\n\n isAnimated(after) {\n if (isNil(after)) return true;\n\n const {animations} = this.state;\n\n const isAnimated = every(\n name => getOr(false, name, animations),\n isArray(after) ? after : [after]\n );\n\n return isAnimated;\n }\n\n handlerAnimationEnd(name) {\n this.setState(set(['animations', name], true), () => {\n const hasPendingAnimation = pipe(\n get('state.animations'),\n values,\n some(negate(identity))\n )(this);\n const {onAnimationEnd = noop} = this.props;\n if (!hasPendingAnimation) return onAnimationEnd();\n });\n }\n\n processAnimation(child) {\n const {animated: parentAnimated} = this.props;\n const {animated, onAnimationEnd = noop, after} = child.props;\n\n return React.cloneElement(child, {\n animated: parentAnimated ? this.isAnimated(after) || animated : animated,\n onAnimationEnd: name => {\n this.handlerAnimationEnd(name);\n return onAnimationEnd(name);\n }\n });\n }\n\n render() {\n const {children} = this.props;\n return pipe(\n walker(Animation, this.processAnimation.bind(this)),\n walker(Transition, this.processAnimation.bind(this)),\n walker(AnimationAdapter, this.processAnimation.bind(this))\n )(children);\n }\n}\n\nexport default AnimationScheduler;\n\nexport {AnimationAdapter};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["AnimationAdapter","animated","onAnimationEnd","name","children","React","Children","map","child","cloneElement","propTypes","PropTypes","string","isRequired","func","bool","pickByWithKey","convert","cap","walker","type","handler","index","newChild","count","props","reduceChildren","fun","acc","newAcc","getAnimationNames","Animation","Transition","mergeAnimationStates","animations","names","value","key","AnimationScheduler","Component","getDerivedStateFromProps","state","constructor","isAnimated","after","handlerAnimationEnd","setState","hasPendingAnimation","processAnimation","parentAnimated","render","bind","node"],"sources":["../../../src/hoc/animation-scheduler/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n assign,\n every,\n getOr,\n get,\n includes,\n isArray,\n isNil,\n isString,\n noop,\n pickBy,\n some,\n negate,\n identity,\n values,\n pipe,\n reduce,\n set\n} from 'lodash/fp';\nimport Animation from '../animation';\nimport Transition from '../transition';\n\nconst AnimationAdapter = ({animated, onAnimationEnd = noop, name, children}) => {\n return React.Children.map(children, child =>\n React.cloneElement(child, {\n animated,\n onAnimationEnd: () => onAnimationEnd(name)\n })\n );\n};\n\nAnimationAdapter.propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool\n};\n\nconst pickByWithKey = pickBy.convert({cap: true});\n\nconst walker = (type, handler) => children => {\n return React.Children.map(children, (child, index) => {\n if (isNil(child) || isString(child)) return child;\n const newChild = child.type === type ? handler(child) : child;\n if (React.Children.count(newChild.props.children) === 0) return newChild;\n return React.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));\n });\n};\n\nconst reduceChildren = fun => acc => children => {\n let newAcc = acc;\n React.Children.map(children, child => {\n newAcc = fun(newAcc, child);\n return child;\n });\n return newAcc;\n};\n\nconst getAnimationNames = reduceChildren((acc, child) => {\n if (isString(child)) return acc;\n\n const {\n type,\n props: {children}\n } = child;\n if (Animation !== type && Transition !== type && AnimationAdapter !== type)\n return [...acc, ...getAnimationNames(children)];\n\n const {\n props: {name}\n } = child;\n return [name, ...acc, ...getAnimationNames(children)];\n})([]);\n\nconst mergeAnimationStates = (animations, children) => {\n const names = getAnimationNames(children);\n\n return pipe(\n pickByWithKey((value, key) => includes(key, names)),\n assign(reduce((acc, name) => set(name, false, acc), {}, names))\n )(animations);\n};\n\nclass AnimationScheduler extends React.Component {\n static propTypes = {\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool,\n children: PropTypes.node\n };\n\n static getDerivedStateFromProps(props, state) {\n const {children} = props;\n const {animations} = state;\n return {\n animations: mergeAnimationStates(animations, children)\n };\n }\n\n constructor(props) {\n super(props);\n\n const {children} = props;\n this.state = {\n animations: mergeAnimationStates({}, children)\n };\n }\n\n isAnimated(after) {\n if (isNil(after)) return true;\n\n const {animations} = this.state;\n\n const isAnimated = every(\n name => getOr(false, name, animations),\n isArray(after) ? after : [after]\n );\n\n return isAnimated;\n }\n\n handlerAnimationEnd(name) {\n this.setState(set(['animations', name], true), () => {\n const hasPendingAnimation = pipe(\n get('state.animations'),\n values,\n some(negate(identity))\n )(this);\n const {onAnimationEnd = noop} = this.props;\n if (!hasPendingAnimation) return onAnimationEnd();\n });\n }\n\n processAnimation(child) {\n const {animated: parentAnimated} = this.props;\n const {animated, onAnimationEnd = noop, after} = child.props;\n\n return React.cloneElement(child, {\n animated: parentAnimated ? this.isAnimated(after) || animated : animated,\n onAnimationEnd: name => {\n this.handlerAnimationEnd(name);\n return onAnimationEnd(name);\n }\n });\n }\n\n render() {\n const {children} = this.props;\n return pipe(\n walker(Animation, this.processAnimation.bind(this)),\n walker(Transition, this.processAnimation.bind(this)),\n walker(AnimationAdapter, this.processAnimation.bind(this))\n )(children);\n }\n}\n\nexport default AnimationScheduler;\n\nexport {AnimationAdapter};\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/hoc/modal/index.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAC,qBAAqB,EAAoB,SAAS,EAAC,MAAM,cAAc,CAAC;AAKhF,
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/hoc/modal/index.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAC,qBAAqB,EAAoB,SAAS,EAAC,MAAM,cAAc,CAAC;AAKhF,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,aAAa,KAAK,CAAC;AAqDhC,QAAA,MAAM,KAAK,UAAW,KAAK,uBA+C1B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -2,24 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.HEADER_HEIGHT = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
7
|
var _index = _interopRequireDefault(require("../../atom/header-back-button/index.native"));
|
|
11
|
-
|
|
12
8
|
var _templateContext = require("../../template/app-review/template-context");
|
|
13
|
-
|
|
14
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
10
|
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); }
|
|
17
|
-
|
|
18
11
|
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; }
|
|
19
|
-
|
|
20
12
|
const HEADER_HEIGHT = 64;
|
|
21
13
|
exports.HEADER_HEIGHT = HEADER_HEIGHT;
|
|
22
|
-
|
|
23
14
|
const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
24
15
|
container: {
|
|
25
16
|
borderRadius: theme.radius.card,
|
|
@@ -59,7 +50,6 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
|
59
50
|
alignItems: 'center'
|
|
60
51
|
}
|
|
61
52
|
});
|
|
62
|
-
|
|
63
53
|
const Modal = props => {
|
|
64
54
|
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
65
55
|
const [styleSheet, setStylesheet] = (0, _react.useState)(null);
|
|
@@ -77,14 +67,11 @@ const Modal = props => {
|
|
|
77
67
|
} = props;
|
|
78
68
|
(0, _react.useEffect)(() => {
|
|
79
69
|
const _stylesheet = createStyleSheet(theme);
|
|
80
|
-
|
|
81
70
|
setStylesheet(_stylesheet);
|
|
82
71
|
}, [theme]);
|
|
83
|
-
|
|
84
72
|
if (!styleSheet) {
|
|
85
73
|
return null;
|
|
86
74
|
}
|
|
87
|
-
|
|
88
75
|
const contentStyles = [styleSheet.content, contentStyle];
|
|
89
76
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
90
77
|
style: styleSheet.container,
|
|
@@ -109,7 +96,6 @@ const Modal = props => {
|
|
|
109
96
|
style: contentStyles
|
|
110
97
|
}, children));
|
|
111
98
|
};
|
|
112
|
-
|
|
113
99
|
var _default = Modal;
|
|
114
100
|
exports.default = _default;
|
|
115
101
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["HEADER_HEIGHT","createStyleSheet","theme","StyleSheet","create","container","borderRadius","radius","card","overflow","backgroundColor","colors","white","header","alignItems","justifyContent","paddingHorizontal","spacing","medium","height","content","paddingBottom","contentWithHeader","paddingTop","contentWithIcon","small","icon","marginTop","padding","thumbnail","alignSelf","iconContent","Modal","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","children","headerBackgroundColor","iconBackgroundColor","renderIcon","contentStyle","onClose","testID","useEffect","_stylesheet","contentStyles","gray","dark"],"sources":["../../../src/hoc/modal/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {GestureResponderEvent, StyleSheet, View, ViewStyle} from 'react-native';\nimport HeaderBackButton from '../../atom/header-back-button/index.native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\n\nexport type Props = {\n children: React.ReactNode;\n headerBackgroundColor?: string;\n iconBackgroundColor?: string;\n renderIcon?: React.ReactNode;\n contentStyle?: ViewStyle;\n onClose: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\nexport const HEADER_HEIGHT = 64;\n\ntype StyleSheetType = {\n container: ViewStyle;\n header: ViewStyle;\n content: ViewStyle;\n contentWithHeader: ViewStyle;\n contentWithIcon: ViewStyle;\n icon: ViewStyle;\n iconContent: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n borderRadius: theme.radius.card,\n overflow: 'hidden',\n backgroundColor: theme.colors.white\n },\n header: {\n backgroundColor: theme.colors.white,\n alignItems: 'flex-end',\n justifyContent: 'center',\n paddingHorizontal: theme.spacing.medium,\n height: HEADER_HEIGHT\n },\n content: {\n paddingHorizontal: theme.spacing.medium,\n paddingBottom: theme.spacing.medium,\n alignItems: 'center'\n },\n contentWithHeader: {\n paddingTop: theme.spacing.medium\n },\n contentWithIcon: {\n paddingTop: theme.spacing.small\n },\n icon: {\n marginTop: -HEADER_HEIGHT * (3 / 4),\n padding: 5,\n backgroundColor: theme.colors.white,\n borderRadius: theme.radius.thumbnail,\n alignSelf: 'center'\n },\n iconContent: {\n backgroundColor: theme.colors.white,\n padding: theme.spacing.small,\n borderRadius: theme.radius.thumbnail,\n justifyContent: 'center',\n alignItems: 'center'\n }\n });\n\nconst Modal = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n\n const {\n children,\n headerBackgroundColor,\n iconBackgroundColor,\n renderIcon,\n contentStyle,\n onClose,\n testID\n } = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const contentStyles = [styleSheet.content, contentStyle];\n\n return (\n <View style={styleSheet.container} testID={testID}>\n <View style={[styleSheet.header, {backgroundColor: headerBackgroundColor}]}>\n <HeaderBackButton\n color={theme.colors.gray.dark}\n isFloating={false}\n testID=\"close-modal\"\n onPress={onClose}\n type=\"close\"\n />\n </View>\n {renderIcon ? (\n <View style={styleSheet.icon}>\n <View style={[styleSheet.iconContent, {backgroundColor: iconBackgroundColor}]}>\n {renderIcon}\n </View>\n </View>\n ) : null}\n <View style={contentStyles}>{children}</View>\n </View>\n );\n};\n\nexport default Modal;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["HEADER_HEIGHT","createStyleSheet","theme","StyleSheet","create","container","borderRadius","radius","card","overflow","backgroundColor","colors","white","header","alignItems","justifyContent","paddingHorizontal","spacing","medium","height","content","paddingBottom","contentWithHeader","paddingTop","contentWithIcon","small","icon","marginTop","padding","thumbnail","alignSelf","iconContent","Modal","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","children","headerBackgroundColor","iconBackgroundColor","renderIcon","contentStyle","onClose","testID","useEffect","_stylesheet","contentStyles","gray","dark"],"sources":["../../../src/hoc/modal/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {GestureResponderEvent, StyleSheet, View, ViewStyle} from 'react-native';\nimport HeaderBackButton from '../../atom/header-back-button/index.native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {Theme} from '../../variables/theme.native';\n\nexport type Props = {\n children: React.ReactNode;\n headerBackgroundColor?: string;\n iconBackgroundColor?: string;\n renderIcon?: React.ReactNode;\n contentStyle?: ViewStyle;\n onClose: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\nexport const HEADER_HEIGHT = 64;\n\ntype StyleSheetType = {\n container: ViewStyle;\n header: ViewStyle;\n content: ViewStyle;\n contentWithHeader: ViewStyle;\n contentWithIcon: ViewStyle;\n icon: ViewStyle;\n iconContent: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n borderRadius: theme.radius.card,\n overflow: 'hidden',\n backgroundColor: theme.colors.white\n },\n header: {\n backgroundColor: theme.colors.white,\n alignItems: 'flex-end',\n justifyContent: 'center',\n paddingHorizontal: theme.spacing.medium,\n height: HEADER_HEIGHT\n },\n content: {\n paddingHorizontal: theme.spacing.medium,\n paddingBottom: theme.spacing.medium,\n alignItems: 'center'\n },\n contentWithHeader: {\n paddingTop: theme.spacing.medium\n },\n contentWithIcon: {\n paddingTop: theme.spacing.small\n },\n icon: {\n marginTop: -HEADER_HEIGHT * (3 / 4),\n padding: 5,\n backgroundColor: theme.colors.white,\n borderRadius: theme.radius.thumbnail,\n alignSelf: 'center'\n },\n iconContent: {\n backgroundColor: theme.colors.white,\n padding: theme.spacing.small,\n borderRadius: theme.radius.thumbnail,\n justifyContent: 'center',\n alignItems: 'center'\n }\n });\n\nconst Modal = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n\n const {\n children,\n headerBackgroundColor,\n iconBackgroundColor,\n renderIcon,\n contentStyle,\n onClose,\n testID\n } = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const contentStyles = [styleSheet.content, contentStyle];\n\n return (\n <View style={styleSheet.container} testID={testID}>\n <View style={[styleSheet.header, {backgroundColor: headerBackgroundColor}]}>\n <HeaderBackButton\n color={theme.colors.gray.dark}\n isFloating={false}\n testID=\"close-modal\"\n onPress={onClose}\n type=\"close\"\n />\n </View>\n {renderIcon ? (\n <View style={styleSheet.icon}>\n <View style={[styleSheet.iconContent, {backgroundColor: iconBackgroundColor}]}>\n {renderIcon}\n </View>\n </View>\n ) : null}\n <View style={contentStyles}>{children}</View>\n </View>\n );\n};\n\nexport default Modal;\n"],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GestureResponderEvent } from 'react-native';
|
|
3
3
|
import { ChoiceItem } from '../../../atom/select-modal/index.native';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type OnChangeFunction = (value: string) => void;
|
|
5
|
+
export type Props = {
|
|
6
6
|
value?: string;
|
|
7
7
|
values: Array<ChoiceItem> | undefined;
|
|
8
8
|
onChange: OnChangeFunction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/hoc/modal/select/index.native.tsx"],"names":[],"mappings":";AACA,OAAO,EAA6B,qBAAqB,EAAY,MAAM,cAAc,CAAC;AAQ1F,OAAO,EAAC,UAAU,EAAC,MAAM,yCAAyC,CAAC;AAEnE,
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/hoc/modal/select/index.native.tsx"],"names":[],"mappings":";AACA,OAAO,EAA6B,qBAAqB,EAAY,MAAM,cAAc,CAAC;AAQ1F,OAAO,EAAC,UAAU,EAAC,MAAM,yCAAyC,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAEvD,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;IACtC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAgDF,QAAA,MAAM,WAAW,UAAW,KAAK,uBAsChC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -2,25 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _noop2 = _interopRequireDefault(require("lodash/fp/noop"));
|
|
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
|
var _index = _interopRequireDefault(require("../index.native"));
|
|
15
|
-
|
|
16
10
|
var _index2 = _interopRequireDefault(require("../select-item/index.native"));
|
|
17
|
-
|
|
18
11
|
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); }
|
|
19
|
-
|
|
20
12
|
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; }
|
|
21
|
-
|
|
22
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
14
|
const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
25
15
|
content: {
|
|
26
16
|
paddingHorizontal: 0
|
|
@@ -33,31 +23,26 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
|
33
23
|
width: '100%'
|
|
34
24
|
}
|
|
35
25
|
});
|
|
36
|
-
|
|
37
26
|
const keyExtractor = (item, index) => {
|
|
38
27
|
return `modal-select-item-${index + 1}`;
|
|
39
28
|
};
|
|
40
|
-
|
|
41
29
|
const createRenderItem = (value, testID, onChange) => function Item({
|
|
42
30
|
item,
|
|
43
31
|
index
|
|
44
32
|
}) {
|
|
45
33
|
// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
46
34
|
const handleChange = _value => () => onChange(_value);
|
|
47
|
-
|
|
48
35
|
return /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
49
36
|
onPress: handleChange(item.text),
|
|
50
37
|
isSelected: value === item.text,
|
|
51
38
|
testID: `${testID}-item-${index + 1}`
|
|
52
39
|
}, item.text);
|
|
53
40
|
};
|
|
54
|
-
|
|
55
41
|
const createSeparator = styleSheet => function Separator() {
|
|
56
42
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
57
43
|
style: styleSheet?.separator
|
|
58
44
|
});
|
|
59
45
|
};
|
|
60
|
-
|
|
61
46
|
const ModalSelect = props => {
|
|
62
47
|
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
63
48
|
const [styleSheet, setStylesheet] = (0, _react.useState)(null);
|
|
@@ -73,16 +58,13 @@ const ModalSelect = props => {
|
|
|
73
58
|
} = props;
|
|
74
59
|
(0, _react.useEffect)(() => {
|
|
75
60
|
const _stylesheet = createStyleSheet(theme);
|
|
76
|
-
|
|
77
61
|
setStylesheet(_stylesheet);
|
|
78
62
|
}, [theme]);
|
|
79
63
|
const renderItem = (0, _react.useMemo)(() => createRenderItem(value, testID, onChange), [value, testID, onChange]);
|
|
80
64
|
const renderSeparator = (0, _react.useMemo)(() => styleSheet ? createSeparator(styleSheet) : null, [styleSheet]);
|
|
81
|
-
|
|
82
65
|
if (!styleSheet) {
|
|
83
66
|
return null;
|
|
84
67
|
}
|
|
85
|
-
|
|
86
68
|
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
87
69
|
onClose: onClose,
|
|
88
70
|
contentStyle: styleSheet?.content,
|
|
@@ -97,7 +79,6 @@ const ModalSelect = props => {
|
|
|
97
79
|
testID: `${testID}-items`
|
|
98
80
|
}));
|
|
99
81
|
};
|
|
100
|
-
|
|
101
82
|
var _default = ModalSelect;
|
|
102
83
|
exports.default = _default;
|
|
103
84
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","content","paddingHorizontal","separator","borderTopWidth","borderColor","colors","border","list","width","keyExtractor","item","index","createRenderItem","value","testID","onChange","Item","handleChange","_value","text","createSeparator","styleSheet","Separator","ModalSelect","props","templateContext","useTemplateContext","setStylesheet","useState","values","onClose","useEffect","_stylesheet","renderItem","useMemo","renderSeparator"],"sources":["../../../../src/hoc/modal/select/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect, useMemo} from 'react';\nimport {View, FlatList, StyleSheet, GestureResponderEvent, ViewStyle} from 'react-native';\nimport {noop} from 'lodash/fp';\n\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\n\nimport Modal from '../index.native';\nimport ModalSelectItem from '../select-item/index.native';\nimport {ChoiceItem} from '../../../atom/select-modal/index.native';\n\nexport type OnChangeFunction = (value: string) => void;\n\nexport type Props = {\n value?: string;\n values: Array<ChoiceItem> | undefined;\n onChange: OnChangeFunction;\n onClose?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n content: ViewStyle;\n separator: ViewStyle;\n list: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n content: {\n paddingHorizontal: 0\n },\n separator: {\n borderTopWidth: 1,\n borderColor: theme.colors.border\n },\n list: {\n width: '100%'\n }\n });\n\nconst keyExtractor = (item: ChoiceItem, index: number): string => {\n return `modal-select-item-${index + 1}`;\n};\n\ntype ItemProps = {item: ChoiceItem; index: number};\nconst createRenderItem = (value: string, testID: string, onChange: OnChangeFunction) =>\n function Item({item, index}: ItemProps) {\n // eslint-disable-next-line unicorn/consistent-function-scoping\n const handleChange = (_value: string) => () => onChange(_value);\n\n return (\n <ModalSelectItem\n onPress={handleChange(item.text)}\n isSelected={value === item.text}\n testID={`${testID}-item-${index + 1}`}\n >\n {item.text}\n </ModalSelectItem>\n );\n };\n\nconst createSeparator = (styleSheet: StyleSheetType) =>\n function Separator() {\n return <View style={styleSheet?.separator} />;\n };\n\nconst ModalSelect = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n const {value = '', values, onChange, onClose = noop, testID = 'modal-select'} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n const renderItem = useMemo(\n () => createRenderItem(value, testID, onChange),\n [value, testID, onChange]\n );\n\n const renderSeparator = useMemo(\n () => (styleSheet ? createSeparator(styleSheet) : null),\n [styleSheet]\n );\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <Modal onClose={onClose} contentStyle={styleSheet?.content} testID={testID}>\n <FlatList\n data={values}\n renderItem={renderItem}\n keyExtractor={keyExtractor}\n showsVerticalScrollIndicator={false}\n ItemSeparatorComponent={renderSeparator}\n style={styleSheet?.list}\n testID={`${testID}-items`}\n />\n </Modal>\n );\n};\n\nexport default ModalSelect;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","content","paddingHorizontal","separator","borderTopWidth","borderColor","colors","border","list","width","keyExtractor","item","index","createRenderItem","value","testID","onChange","Item","handleChange","_value","text","createSeparator","styleSheet","Separator","ModalSelect","props","templateContext","useTemplateContext","setStylesheet","useState","values","onClose","useEffect","_stylesheet","renderItem","useMemo","renderSeparator"],"sources":["../../../../src/hoc/modal/select/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect, useMemo} from 'react';\nimport {View, FlatList, StyleSheet, GestureResponderEvent, ViewStyle} from 'react-native';\nimport {noop} from 'lodash/fp';\n\nimport {Theme} from '../../../variables/theme.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\n\nimport Modal from '../index.native';\nimport ModalSelectItem from '../select-item/index.native';\nimport {ChoiceItem} from '../../../atom/select-modal/index.native';\n\nexport type OnChangeFunction = (value: string) => void;\n\nexport type Props = {\n value?: string;\n values: Array<ChoiceItem> | undefined;\n onChange: OnChangeFunction;\n onClose?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n content: ViewStyle;\n separator: ViewStyle;\n list: ViewStyle;\n};\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n content: {\n paddingHorizontal: 0\n },\n separator: {\n borderTopWidth: 1,\n borderColor: theme.colors.border\n },\n list: {\n width: '100%'\n }\n });\n\nconst keyExtractor = (item: ChoiceItem, index: number): string => {\n return `modal-select-item-${index + 1}`;\n};\n\ntype ItemProps = {item: ChoiceItem; index: number};\nconst createRenderItem = (value: string, testID: string, onChange: OnChangeFunction) =>\n function Item({item, index}: ItemProps) {\n // eslint-disable-next-line unicorn/consistent-function-scoping\n const handleChange = (_value: string) => () => onChange(_value);\n\n return (\n <ModalSelectItem\n onPress={handleChange(item.text)}\n isSelected={value === item.text}\n testID={`${testID}-item-${index + 1}`}\n >\n {item.text}\n </ModalSelectItem>\n );\n };\n\nconst createSeparator = (styleSheet: StyleSheetType) =>\n function Separator() {\n return <View style={styleSheet?.separator} />;\n };\n\nconst ModalSelect = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n const {value = '', values, onChange, onClose = noop, testID = 'modal-select'} = props;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n const renderItem = useMemo(\n () => createRenderItem(value, testID, onChange),\n [value, testID, onChange]\n );\n\n const renderSeparator = useMemo(\n () => (styleSheet ? createSeparator(styleSheet) : null),\n [styleSheet]\n );\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <Modal onClose={onClose} contentStyle={styleSheet?.content} testID={testID}>\n <FlatList\n data={values}\n renderItem={renderItem}\n keyExtractor={keyExtractor}\n showsVerticalScrollIndicator={false}\n ItemSeparatorComponent={renderSeparator}\n style={styleSheet?.list}\n testID={`${testID}-items`}\n />\n </Modal>\n );\n};\n\nexport default ModalSelect;\n"],"mappings":";;;;;AAAA;AACA;AAIA;AAEA;AACA;AAA0D;AAAA;AAAA;AAmB1D,MAAMA,gBAAgB,GAAIC,KAAY,IACpCC,uBAAU,CAACC,MAAM,CAAC;EAChBC,OAAO,EAAE;IACPC,iBAAiB,EAAE;EACrB,CAAC;EACDC,SAAS,EAAE;IACTC,cAAc,EAAE,CAAC;IACjBC,WAAW,EAAEP,KAAK,CAACQ,MAAM,CAACC;EAC5B,CAAC;EACDC,IAAI,EAAE;IACJC,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEJ,MAAMC,YAAY,GAAG,CAACC,IAAgB,EAAEC,KAAa,KAAa;EAChE,OAAQ,qBAAoBA,KAAK,GAAG,CAAE,EAAC;AACzC,CAAC;AAGD,MAAMC,gBAAgB,GAAG,CAACC,KAAa,EAAEC,MAAc,EAAEC,QAA0B,KACjF,SAASC,IAAI,CAAC;EAACN,IAAI;EAAEC;AAAgB,CAAC,EAAE;EACtC;EACA,MAAMM,YAAY,GAAIC,MAAc,IAAK,MAAMH,QAAQ,CAACG,MAAM,CAAC;EAE/D,oBACE,6BAAC,eAAe;IACd,OAAO,EAAED,YAAY,CAACP,IAAI,CAACS,IAAI,CAAE;IACjC,UAAU,EAAEN,KAAK,KAAKH,IAAI,CAACS,IAAK;IAChC,MAAM,EAAG,GAAEL,MAAO,SAAQH,KAAK,GAAG,CAAE;EAAE,GAErCD,IAAI,CAACS,IAAI,CACM;AAEtB,CAAC;AAEH,MAAMC,eAAe,GAAIC,UAA0B,IACjD,SAASC,SAAS,GAAG;EACnB,oBAAO,6BAAC,iBAAI;IAAC,KAAK,EAAED,UAAU,EAAEnB;EAAU,EAAG;AAC/C,CAAC;AAEH,MAAMqB,WAAW,GAAIC,KAAY,IAAK;EACpC,MAAMC,eAAe,GAAG,IAAAC,mCAAkB,GAAE;EAC5C,MAAM,CAACL,UAAU,EAAEM,aAAa,CAAC,GAAG,IAAAC,eAAQ,EAAwB,IAAI,CAAC;EACzE,MAAM;IAAC/B;EAAK,CAAC,GAAG4B,eAAe;EAC/B,MAAM;IAACZ,KAAK,GAAG,EAAE;IAAEgB,MAAM;IAAEd,QAAQ;IAAEe,OAAO,iBAAO;IAAEhB,MAAM,GAAG;EAAc,CAAC,GAAGU,KAAK;EAErF,IAAAO,gBAAS,EAAC,MAAM;IACd,MAAMC,WAAW,GAAGpC,gBAAgB,CAACC,KAAK,CAAC;IAC3C8B,aAAa,CAACK,WAAW,CAAC;EAC5B,CAAC,EAAE,CAACnC,KAAK,CAAC,CAAC;EAEX,MAAMoC,UAAU,GAAG,IAAAC,cAAO,EACxB,MAAMtB,gBAAgB,CAACC,KAAK,EAAEC,MAAM,EAAEC,QAAQ,CAAC,EAC/C,CAACF,KAAK,EAAEC,MAAM,EAAEC,QAAQ,CAAC,CAC1B;EAED,MAAMoB,eAAe,GAAG,IAAAD,cAAO,EAC7B,MAAOb,UAAU,GAAGD,eAAe,CAACC,UAAU,CAAC,GAAG,IAAK,EACvD,CAACA,UAAU,CAAC,CACb;EAED,IAAI,CAACA,UAAU,EAAE;IACf,OAAO,IAAI;EACb;EAEA,oBACE,6BAAC,cAAK;IAAC,OAAO,EAAES,OAAQ;IAAC,YAAY,EAAET,UAAU,EAAErB,OAAQ;IAAC,MAAM,EAAEc;EAAO,gBACzE,6BAAC,qBAAQ;IACP,IAAI,EAAEe,MAAO;IACb,UAAU,EAAEI,UAAW;IACvB,YAAY,EAAExB,YAAa;IAC3B,4BAA4B,EAAE,KAAM;IACpC,sBAAsB,EAAE0B,eAAgB;IACxC,KAAK,EAAEd,UAAU,EAAEd,IAAK;IACxB,MAAM,EAAG,GAAEO,MAAO;EAAQ,EAC1B,CACI;AAEZ,CAAC;AAAC,eAEaS,WAAW;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/hoc/modal/select-item/index.native.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,qBAAqB,EAAmC,MAAM,cAAc,CAAC;AAQrF,
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/hoc/modal/select-item/index.native.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,qBAAqB,EAAmC,MAAM,cAAc,CAAC;AAQrF,MAAM,MAAM,KAAK,GAAG;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAuBF,QAAA,MAAM,eAAe,UAAW,KAAK,uBA0BpC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -2,23 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
-
|
|
8
6
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
7
|
var _index = _interopRequireDefault(require("../../../atom/text/index.native"));
|
|
11
|
-
|
|
12
8
|
var _index2 = _interopRequireDefault(require("../../touchable/index.native"));
|
|
13
|
-
|
|
14
9
|
var _templateContext = require("../../../template/app-review/template-context");
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
11
|
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); }
|
|
19
|
-
|
|
20
12
|
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; }
|
|
21
|
-
|
|
22
13
|
const createStyleSheet = (brandTheme, theme) => _reactNative.StyleSheet.create({
|
|
23
14
|
container: {
|
|
24
15
|
backgroundColor: theme.colors.white,
|
|
@@ -32,7 +23,6 @@ const createStyleSheet = (brandTheme, theme) => _reactNative.StyleSheet.create({
|
|
|
32
23
|
color: brandTheme?.colors?.primary
|
|
33
24
|
}
|
|
34
25
|
});
|
|
35
|
-
|
|
36
26
|
const ModalSelectItem = props => {
|
|
37
27
|
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
38
28
|
const [styleSheet, setStylesheet] = (0, _react.useState)(null);
|
|
@@ -42,14 +32,11 @@ const ModalSelectItem = props => {
|
|
|
42
32
|
} = templateContext;
|
|
43
33
|
(0, _react.useEffect)(() => {
|
|
44
34
|
const _stylesheet = createStyleSheet(brandTheme, theme);
|
|
45
|
-
|
|
46
35
|
setStylesheet(_stylesheet);
|
|
47
36
|
}, [theme, brandTheme]);
|
|
48
|
-
|
|
49
37
|
if (!styleSheet) {
|
|
50
38
|
return null;
|
|
51
39
|
}
|
|
52
|
-
|
|
53
40
|
const {
|
|
54
41
|
children,
|
|
55
42
|
onPress,
|
|
@@ -57,11 +44,9 @@ const ModalSelectItem = props => {
|
|
|
57
44
|
testID
|
|
58
45
|
} = props;
|
|
59
46
|
const textStyle = [styleSheet.text];
|
|
60
|
-
|
|
61
47
|
if (isSelected) {
|
|
62
48
|
textStyle.push(styleSheet.selectedTextStyle);
|
|
63
49
|
}
|
|
64
|
-
|
|
65
50
|
return /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
66
51
|
onPress: onPress,
|
|
67
52
|
style: styleSheet.container,
|
|
@@ -70,7 +55,6 @@ const ModalSelectItem = props => {
|
|
|
70
55
|
style: textStyle
|
|
71
56
|
}, children));
|
|
72
57
|
};
|
|
73
|
-
|
|
74
58
|
var _default = ModalSelectItem;
|
|
75
59
|
exports.default = _default;
|
|
76
60
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["createStyleSheet","brandTheme","theme","StyleSheet","create","container","backgroundColor","colors","white","padding","spacing","small","text","fontWeight","bold","color","black","selectedTextStyle","primary","ModalSelectItem","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","children","onPress","isSelected","testID","textStyle","push"],"sources":["../../../../src/hoc/modal/select-item/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {GestureResponderEvent, StyleSheet, TextStyle, ViewStyle} from 'react-native';\n\nimport Text from '../../../atom/text/index.native';\nimport Touchable from '../../touchable/index.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\nimport {Brand} from '../../../variables/brand.native';\n\nexport type Props = {\n isSelected?: boolean;\n children: string;\n onPress?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n text: TextStyle;\n selectedTextStyle: TextStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n backgroundColor: theme.colors.white,\n padding: theme.spacing.small\n },\n text: {\n fontWeight: theme.fontWeight.bold,\n color: theme.colors.black\n },\n selectedTextStyle: {\n color: brandTheme?.colors?.primary\n }\n });\n\nconst ModalSelectItem = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme} = templateContext;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [theme, brandTheme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {children, onPress, isSelected, testID} = props;\n\n const textStyle: TextStyle[] = [styleSheet.text];\n if (isSelected) {\n textStyle.push(styleSheet.selectedTextStyle);\n }\n\n return (\n <Touchable onPress={onPress} style={styleSheet.container} testID={testID}>\n <Text style={textStyle}>{children}</Text>\n </Touchable>\n );\n};\n\nexport default ModalSelectItem;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["createStyleSheet","brandTheme","theme","StyleSheet","create","container","backgroundColor","colors","white","padding","spacing","small","text","fontWeight","bold","color","black","selectedTextStyle","primary","ModalSelectItem","props","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","children","onPress","isSelected","testID","textStyle","push"],"sources":["../../../../src/hoc/modal/select-item/index.native.tsx"],"sourcesContent":["import React, {useState, useEffect} from 'react';\nimport {GestureResponderEvent, StyleSheet, TextStyle, ViewStyle} from 'react-native';\n\nimport Text from '../../../atom/text/index.native';\nimport Touchable from '../../touchable/index.native';\nimport {useTemplateContext} from '../../../template/app-review/template-context';\nimport {Theme} from '../../../variables/theme.native';\nimport {Brand} from '../../../variables/brand.native';\n\nexport type Props = {\n isSelected?: boolean;\n children: string;\n onPress?: (event: GestureResponderEvent) => void;\n testID?: string;\n};\n\ntype StyleSheetType = {\n container: ViewStyle;\n text: TextStyle;\n selectedTextStyle: TextStyle;\n};\n\nconst createStyleSheet = (brandTheme: Brand, theme: Theme): StyleSheetType =>\n StyleSheet.create({\n container: {\n backgroundColor: theme.colors.white,\n padding: theme.spacing.small\n },\n text: {\n fontWeight: theme.fontWeight.bold,\n color: theme.colors.black\n },\n selectedTextStyle: {\n color: brandTheme?.colors?.primary\n }\n });\n\nconst ModalSelectItem = (props: Props) => {\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {brandTheme, theme} = templateContext;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(brandTheme, theme);\n setStylesheet(_stylesheet);\n }, [theme, brandTheme]);\n\n if (!styleSheet) {\n return null;\n }\n\n const {children, onPress, isSelected, testID} = props;\n\n const textStyle: TextStyle[] = [styleSheet.text];\n if (isSelected) {\n textStyle.push(styleSheet.selectedTextStyle);\n }\n\n return (\n <Touchable onPress={onPress} style={styleSheet.container} testID={testID}>\n <Text style={textStyle}>{children}</Text>\n </Touchable>\n );\n};\n\nexport default ModalSelectItem;\n"],"mappings":";;;;AAAA;AACA;AAEA;AACA;AACA;AAAiF;AAAA;AAAA;AAiBjF,MAAMA,gBAAgB,GAAG,CAACC,UAAiB,EAAEC,KAAY,KACvDC,uBAAU,CAACC,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,eAAe,EAAEJ,KAAK,CAACK,MAAM,CAACC,KAAK;IACnCC,OAAO,EAAEP,KAAK,CAACQ,OAAO,CAACC;EACzB,CAAC;EACDC,IAAI,EAAE;IACJC,UAAU,EAAEX,KAAK,CAACW,UAAU,CAACC,IAAI;IACjCC,KAAK,EAAEb,KAAK,CAACK,MAAM,CAACS;EACtB,CAAC;EACDC,iBAAiB,EAAE;IACjBF,KAAK,EAAEd,UAAU,EAAEM,MAAM,EAAEW;EAC7B;AACF,CAAC,CAAC;AAEJ,MAAMC,eAAe,GAAIC,KAAY,IAAK;EACxC,MAAMC,eAAe,GAAG,IAAAC,mCAAkB,GAAE;EAC5C,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAG,IAAAC,eAAQ,EAAwB,IAAI,CAAC;EACzE,MAAM;IAACxB,UAAU;IAAEC;EAAK,CAAC,GAAGmB,eAAe;EAE3C,IAAAK,gBAAS,EAAC,MAAM;IACd,MAAMC,WAAW,GAAG3B,gBAAgB,CAACC,UAAU,EAAEC,KAAK,CAAC;IACvDsB,aAAa,CAACG,WAAW,CAAC;EAC5B,CAAC,EAAE,CAACzB,KAAK,EAAED,UAAU,CAAC,CAAC;EAEvB,IAAI,CAACsB,UAAU,EAAE;IACf,OAAO,IAAI;EACb;EAEA,MAAM;IAACK,QAAQ;IAAEC,OAAO;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGX,KAAK;EAErD,MAAMY,SAAsB,GAAG,CAACT,UAAU,CAACX,IAAI,CAAC;EAChD,IAAIkB,UAAU,EAAE;IACdE,SAAS,CAACC,IAAI,CAACV,UAAU,CAACN,iBAAiB,CAAC;EAC9C;EAEA,oBACE,6BAAC,eAAS;IAAC,OAAO,EAAEY,OAAQ;IAAC,KAAK,EAAEN,UAAU,CAAClB,SAAU;IAAC,MAAM,EAAE0B;EAAO,gBACvE,6BAAC,cAAI;IAAC,KAAK,EAAEC;EAAU,GAAEJ,QAAQ,CAAQ,CAC/B;AAEhB,CAAC;AAAC,eAEaT,eAAe;AAAA"}
|
package/lib/hoc/swapper/index.js
CHANGED
|
@@ -2,21 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.safeCancelAnimationFrame = exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
7
|
const _excluded = ["children"];
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
9
|
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; }
|
|
15
|
-
|
|
16
10
|
const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);
|
|
17
|
-
|
|
18
11
|
exports.safeCancelAnimationFrame = safeCancelAnimationFrame;
|
|
19
|
-
|
|
20
12
|
class Swapper extends _react.default.Component {
|
|
21
13
|
constructor(props) {
|
|
22
14
|
super(props);
|
|
@@ -24,7 +16,6 @@ class Swapper extends _react.default.Component {
|
|
|
24
16
|
init: true
|
|
25
17
|
};
|
|
26
18
|
}
|
|
27
|
-
|
|
28
19
|
componentDidMount() {
|
|
29
20
|
if (typeof requestAnimationFrame !== 'undefined') {
|
|
30
21
|
this.requestID = requestAnimationFrame(() => this.setState({
|
|
@@ -32,31 +23,24 @@ class Swapper extends _react.default.Component {
|
|
|
32
23
|
}));
|
|
33
24
|
}
|
|
34
25
|
}
|
|
35
|
-
|
|
36
26
|
componentWillUnmount() {
|
|
37
27
|
if (this.requestID !== undefined) {
|
|
38
28
|
safeCancelAnimationFrame(this.requestID);
|
|
39
29
|
}
|
|
40
30
|
}
|
|
41
|
-
|
|
42
31
|
render() {
|
|
43
32
|
const {
|
|
44
33
|
init
|
|
45
34
|
} = this.state;
|
|
46
|
-
|
|
47
35
|
const _this$props = this.props,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
36
|
+
{
|
|
37
|
+
children
|
|
38
|
+
} = _this$props,
|
|
39
|
+
props = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
53
40
|
const child = _react.default.Children.only(children);
|
|
54
|
-
|
|
55
41
|
return init ? /*#__PURE__*/_react.default.cloneElement(child, props) : child;
|
|
56
42
|
}
|
|
57
|
-
|
|
58
43
|
}
|
|
59
|
-
|
|
60
44
|
Swapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
61
45
|
children: _propTypes.default.node
|
|
62
46
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["safeCancelAnimationFrame","requestId","cancelAnimationFrame","Swapper","React","Component","constructor","props","state","init","componentDidMount","requestAnimationFrame","requestID","setState","componentWillUnmount","undefined","render","children","child","Children","only","cloneElement","propTypes","PropTypes","node"],"sources":["../../../src/hoc/swapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);\n\nclass Swapper extends React.Component {\n static propTypes = {\n children: PropTypes.node\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n init: true\n };\n }\n\n componentDidMount() {\n if (typeof requestAnimationFrame !== 'undefined') {\n this.requestID = requestAnimationFrame(() => this.setState({init: false}));\n }\n }\n\n componentWillUnmount() {\n if (this.requestID !== undefined) {\n safeCancelAnimationFrame(this.requestID);\n }\n }\n\n render() {\n const {init} = this.state;\n const {children, ...props} = this.props;\n const child = React.Children.only(children);\n\n return init ? React.cloneElement(child, props) : child;\n }\n}\n\nexport default Swapper;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["safeCancelAnimationFrame","requestId","cancelAnimationFrame","Swapper","React","Component","constructor","props","state","init","componentDidMount","requestAnimationFrame","requestID","setState","componentWillUnmount","undefined","render","children","child","Children","only","cloneElement","propTypes","PropTypes","node"],"sources":["../../../src/hoc/swapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);\n\nclass Swapper extends React.Component {\n static propTypes = {\n children: PropTypes.node\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n init: true\n };\n }\n\n componentDidMount() {\n if (typeof requestAnimationFrame !== 'undefined') {\n this.requestID = requestAnimationFrame(() => this.setState({init: false}));\n }\n }\n\n componentWillUnmount() {\n if (this.requestID !== undefined) {\n safeCancelAnimationFrame(this.requestID);\n }\n }\n\n render() {\n const {init} = this.state;\n const {children, ...props} = this.props;\n const child = React.Children.only(children);\n\n return init ? React.cloneElement(child, props) : child;\n }\n}\n\nexport default Swapper;\n"],"mappings":";;;;AAAA;AACA;AAAmC;AAAA;AAAA;AAE5B,MAAMA,wBAAwB,GAAGC,SAAS,IAAIA,SAAS,IAAIC,oBAAoB,CAACD,SAAS,CAAC;AAAC;AAElG,MAAME,OAAO,SAASC,cAAK,CAACC,SAAS,CAAC;EAKpCC,WAAW,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,KAAK,GAAG;MACXC,IAAI,EAAE;IACR,CAAC;EACH;EAEAC,iBAAiB,GAAG;IAClB,IAAI,OAAOC,qBAAqB,KAAK,WAAW,EAAE;MAChD,IAAI,CAACC,SAAS,GAAGD,qBAAqB,CAAC,MAAM,IAAI,CAACE,QAAQ,CAAC;QAACJ,IAAI,EAAE;MAAK,CAAC,CAAC,CAAC;IAC5E;EACF;EAEAK,oBAAoB,GAAG;IACrB,IAAI,IAAI,CAACF,SAAS,KAAKG,SAAS,EAAE;MAChCf,wBAAwB,CAAC,IAAI,CAACY,SAAS,CAAC;IAC1C;EACF;EAEAI,MAAM,GAAG;IACP,MAAM;MAACP;IAAI,CAAC,GAAG,IAAI,CAACD,KAAK;IACzB,oBAA6B,IAAI,CAACD,KAAK;MAAjC;QAACU;MAAkB,CAAC;MAANV,KAAK;IACzB,MAAMW,KAAK,GAAGd,cAAK,CAACe,QAAQ,CAACC,IAAI,CAACH,QAAQ,CAAC;IAE3C,OAAOR,IAAI,gBAAGL,cAAK,CAACiB,YAAY,CAACH,KAAK,EAAEX,KAAK,CAAC,GAAGW,KAAK;EACxD;AACF;AAhCMf,OAAO,CACJmB,SAAS,2CAAG;EACjBL,QAAQ,EAAEM,kBAAS,CAACC;AACtB,CAAC;AAAA,eA+BYrB,OAAO;AAAA"}
|
|
@@ -2,7 +2,7 @@ import { ViewStyle, LayoutChangeEvent, NativeSyntheticEvent, GestureResponderEve
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Analytics, AnalyticsEventParams } from '../../variables/analytics';
|
|
4
4
|
import { Vibration } from '../../variables/vibration';
|
|
5
|
-
export
|
|
5
|
+
export type Props = {
|
|
6
6
|
accessibilityLabel?: string;
|
|
7
7
|
accessible?: boolean;
|
|
8
8
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/hoc/touchable/index.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAgB,MAAM,OAAO,CAAC;AAErC,OAAO,EAAuB,SAAS,EAAE,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AASpD,
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/hoc/touchable/index.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EACT,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,aAAa,EACb,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAgB,MAAM,OAAO,CAAC;AAErC,OAAO,EAAuB,SAAS,EAAE,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AASpD,MAAM,MAAM,KAAK,GAAG;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACnD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;AAeF,QAAA,MAAM,SAAS,UAAW,KAAK,gBAqE9B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -2,34 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
|
|
6
5
|
var _reactNative = require("react-native");
|
|
7
|
-
|
|
8
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
7
|
var _templateContext = require("../../template/app-review/template-context");
|
|
11
|
-
|
|
12
8
|
var _analytics = require("../../variables/analytics");
|
|
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
|
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); }
|
|
19
|
-
|
|
20
12
|
const hitSlop = {
|
|
21
13
|
left: 12,
|
|
22
14
|
right: 12,
|
|
23
15
|
bottom: 12,
|
|
24
16
|
top: 12
|
|
25
17
|
};
|
|
26
|
-
|
|
27
18
|
const logEvent = (eventName, analyticsID, analytics, analyticsParams) => {
|
|
28
19
|
analytics && analytics.logEvent(eventName, _extends({}, analyticsParams || {}, {
|
|
29
20
|
id: analyticsID
|
|
30
21
|
}));
|
|
31
22
|
};
|
|
32
|
-
|
|
33
23
|
const Touchable = props => {
|
|
34
24
|
const templateContext = (0, _templateContext.useTemplateContext)();
|
|
35
25
|
const {
|
|
@@ -60,7 +50,6 @@ const Touchable = props => {
|
|
|
60
50
|
analytics && analyticsID && logEvent(_analytics.ANALYTICS_EVENT_TYPE.LONG_PRESS, analyticsID, analytics, analyticsParams);
|
|
61
51
|
onLongPress(event);
|
|
62
52
|
}, [analytics, analyticsID, analyticsParams, onLongPress, vibration]);
|
|
63
|
-
|
|
64
53
|
if (isHighlight) {
|
|
65
54
|
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableHighlight, _extends({}, props, {
|
|
66
55
|
accessibilityLabel: accessibilityLabel,
|
|
@@ -71,7 +60,6 @@ const Touchable = props => {
|
|
|
71
60
|
activeOpacity: activeOpacity || (disabled ? 1 : 0.85)
|
|
72
61
|
}));
|
|
73
62
|
}
|
|
74
|
-
|
|
75
63
|
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, _extends({}, props, {
|
|
76
64
|
accessibilityLabel: accessibilityLabel,
|
|
77
65
|
hitSlop: hitSlop,
|
|
@@ -80,7 +68,6 @@ const Touchable = props => {
|
|
|
80
68
|
activeOpacity: isWithoutFeedback && 1 || activeOpacity || (disabled ? 1 : 0.2)
|
|
81
69
|
}));
|
|
82
70
|
};
|
|
83
|
-
|
|
84
71
|
var _default = Touchable;
|
|
85
72
|
exports.default = _default;
|
|
86
73
|
//# sourceMappingURL=index.native.js.map
|