@coorpacademy/components 11.9.3-alpha.29 → 11.10.1
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 +3 -0
- package/es/atom/autocomplete/index.js.map +1 -1
- package/es/atom/avatar/index.js +2 -0
- package/es/atom/avatar/index.js.map +1 -1
- package/es/atom/button/index.js +8 -0
- 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 +4 -0
- package/es/atom/button/index.native.js.map +1 -1
- package/es/atom/button-link/index.js +10 -0
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link-icon-only/index.js +12 -0
- package/es/atom/button-link-icon-only/index.js.map +1 -1
- package/es/atom/button-menu/index.js +5 -0
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/card-image-preview/index.js +3 -0
- package/es/atom/card-image-preview/index.js.map +1 -1
- package/es/atom/catalog-section/index.js +2 -0
- package/es/atom/catalog-section/index.js.map +1 -1
- package/es/atom/centered-text/index.js +2 -0
- package/es/atom/centered-text/index.js.map +1 -1
- package/es/atom/checkbox/index.js +11 -5
- package/es/atom/checkbox/index.js.map +1 -1
- package/es/atom/checkbox-with-title/index.js +4 -0
- package/es/atom/checkbox-with-title/index.js.map +1 -1
- package/es/atom/chips/index.js +2 -0
- 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 +12 -2
- package/es/atom/choice/index.native.js.map +1 -1
- package/es/atom/clue/index.js +14 -0
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/content-badge/index.js +2 -0
- package/es/atom/content-badge/index.js.map +1 -1
- package/es/atom/cta/index.js +13 -0
- package/es/atom/cta/index.js.map +1 -1
- package/es/atom/difficulty-level/index.js +7 -0
- package/es/atom/difficulty-level/index.js.map +1 -1
- package/es/atom/drag-and-drop/index.js +15 -0
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/empty-search-result/index.js +2 -0
- 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 +7 -0
- 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 +6 -0
- 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 +2 -0
- 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 +12 -6
- 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 +24 -11
- package/es/atom/image-background/index.native.js.map +1 -1
- package/es/atom/image-upload/index.js +6 -0
- package/es/atom/image-upload/index.js.map +1 -1
- package/es/atom/input-checkbox/index.js +4 -0
- package/es/atom/input-checkbox/index.js.map +1 -1
- package/es/atom/input-color/index.js +2 -0
- package/es/atom/input-color/index.js.map +1 -1
- package/es/atom/input-doublestep/index.js +14 -0
- package/es/atom/input-doublestep/index.js.map +1 -1
- package/es/atom/input-html/index.js +9 -0
- package/es/atom/input-html/index.js.map +1 -1
- package/es/atom/input-html/input-preview.js +3 -2
- package/es/atom/input-html/input-preview.js.map +1 -1
- package/es/atom/input-readonly/index.js +2 -0
- package/es/atom/input-readonly/index.js.map +1 -1
- package/es/atom/input-search/index.js +2 -0
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-switch/index.js +8 -0
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-text/index.js +3 -2
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text-with-title/index.js +3 -0
- package/es/atom/input-text-with-title/index.js.map +1 -1
- package/es/atom/input-textarea/index.js +3 -2
- package/es/atom/input-textarea/index.js.map +1 -1
- package/es/atom/label/index.js +2 -0
- package/es/atom/label/index.js.map +1 -1
- package/es/atom/life/index.js +7 -0
- package/es/atom/life/index.js.map +1 -1
- package/es/atom/link/index.js +24 -7
- package/es/atom/link/index.js.map +1 -1
- package/es/atom/loader/index.js +2 -0
- 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 +12 -2
- package/es/atom/loader/index.native.js.map +1 -1
- package/es/atom/lottie-wrapper/index.js +11 -3
- 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 +2 -0
- package/es/atom/notification/index.js.map +1 -1
- package/es/atom/picture/index.js +8 -0
- package/es/atom/picture/index.js.map +1 -1
- package/es/atom/picture-background/index.js +2 -0
- package/es/atom/picture-background/index.js.map +1 -1
- package/es/atom/promo-code/index.js +2 -0
- package/es/atom/promo-code/index.js.map +1 -1
- package/es/atom/provider/index.js +19 -2
- 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 +12 -5
- package/es/atom/provider/web-context.js.map +1 -1
- package/es/atom/radio-group/index.js +8 -0
- package/es/atom/radio-group/index.js.map +1 -1
- package/es/atom/radio-group/item.js +7 -0
- package/es/atom/radio-group/item.js.map +1 -1
- package/es/atom/range/handle.js +17 -9
- package/es/atom/range/handle.js.map +1 -1
- package/es/atom/range/index.js +23 -0
- package/es/atom/range/index.js.map +1 -1
- package/es/atom/resource-miniature/index.js +6 -2
- package/es/atom/resource-miniature/index.js.map +1 -1
- package/es/atom/review-header-step-item/index.js +8 -0
- package/es/atom/review-header-step-item/index.js.map +1 -1
- package/es/atom/review-header-step-item/index.native.js +14 -0
- 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 +8 -5
- package/es/atom/review-presentation/index.js.map +1 -1
- package/es/atom/review-presentation/index.native.js +10 -3
- 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 +8 -2
- 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 +11 -0
- package/es/atom/select-modal/index.native.js.map +1 -1
- package/es/atom/slide/index.js +3 -0
- package/es/atom/slide/index.js.map +1 -1
- package/es/atom/social-link/index.js +2 -0
- 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 +2 -0
- package/es/atom/space/index.native.js.map +1 -1
- package/es/atom/spinner/index.js +2 -0
- package/es/atom/spinner/index.js.map +1 -1
- package/es/atom/tab/index.js +2 -0
- package/es/atom/tab/index.js.map +1 -1
- package/es/atom/tab-content/index.js +2 -0
- package/es/atom/tab-content/index.js.map +1 -1
- package/es/atom/tag/index.js +2 -0
- 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 +3 -0
- package/es/atom/text/index.native.js.map +1 -1
- package/es/atom/title/index.js +8 -0
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/tooltip/index.js +5 -0
- package/es/atom/tooltip/index.js.map +1 -1
- package/es/atom/video-upload/index.js +3 -0
- package/es/atom/video-upload/index.js.map +1 -1
- package/es/atom/wizard-steps/index.js +2 -0
- package/es/atom/wizard-steps/index.js.map +1 -1
- package/es/hoc/animation/index.js +11 -0
- package/es/hoc/animation/index.js.map +1 -1
- package/es/hoc/animation-scheduler/index.js +18 -0
- 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 +6 -0
- 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 +10 -0
- 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 +8 -0
- package/es/hoc/modal/select-item/index.native.js.map +1 -1
- package/es/hoc/swapper/index.js +14 -4
- 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 +6 -0
- package/es/hoc/touchable/index.native.js.map +1 -1
- package/es/hoc/transition/index.js +4 -0
- 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 +7 -0
- package/es/molecule/add-to-my-list/index.js.map +1 -1
- package/es/molecule/answer/index.d.ts +0 -3
- package/es/molecule/answer/index.d.ts.map +1 -1
- package/es/molecule/answer/index.js +27 -14
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/answer/index.native.js +11 -0
- 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 +3 -0
- package/es/molecule/answer/prop-types.js.map +1 -1
- package/es/molecule/answer/style.css +6 -5
- package/es/molecule/audio/index.js +12 -2
- package/es/molecule/audio/index.js.map +1 -1
- package/es/molecule/banner/index.js +2 -0
- package/es/molecule/banner/index.js.map +1 -1
- package/es/molecule/battle-request/index.js +6 -2
- package/es/molecule/battle-request/index.js.map +1 -1
- package/es/molecule/brand-card/description.js +2 -0
- package/es/molecule/brand-card/description.js.map +1 -1
- package/es/molecule/brand-card/index.js +2 -0
- package/es/molecule/brand-card/index.js.map +1 -1
- package/es/molecule/brand-card-create/index.js +2 -0
- package/es/molecule/brand-card-create/index.js.map +1 -1
- package/es/molecule/brand-create-form/index.js +2 -0
- package/es/molecule/brand-create-form/index.js.map +1 -1
- package/es/molecule/brand-download-box/index.js +4 -0
- package/es/molecule/brand-download-box/index.js.map +1 -1
- package/es/molecule/brand-form-group/index.js +29 -0
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-logo/index.native.js +5 -0
- package/es/molecule/brand-logo/index.native.js.map +1 -1
- package/es/molecule/brand-tabs/index.js +4 -0
- package/es/molecule/brand-tabs/index.js.map +1 -1
- package/es/molecule/brand-upload-box/index.js +11 -0
- package/es/molecule/brand-upload-box/index.js.map +1 -1
- package/es/molecule/breadcrumbs/index.js +6 -0
- package/es/molecule/breadcrumbs/index.js.map +1 -1
- package/es/molecule/bullet-point-menu-button/index.js +2 -0
- package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/es/molecule/card/customer.js +2 -0
- package/es/molecule/card/customer.js.map +1 -1
- package/es/molecule/card/favorite.js +9 -0
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/card/index.js +21 -0
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/notification.js +5 -0
- package/es/molecule/card/notification.js.map +1 -1
- package/es/molecule/card/selectable.js +2 -0
- package/es/molecule/card/selectable.js.map +1 -1
- package/es/molecule/card-congrats/index.native.js +7 -0
- 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 +13 -2
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-with-button/index.js +6 -0
- package/es/molecule/card-with-button/index.js.map +1 -1
- package/es/molecule/cm-popin/index.js +10 -4
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/index.native.js +6 -0
- 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 +4 -0
- package/es/molecule/cookie-banner/index.js.map +1 -1
- package/es/molecule/coorp-manager-roles/index.js +3 -0
- package/es/molecule/coorp-manager-roles/index.js.map +1 -1
- package/es/molecule/course-section/index.js +2 -0
- package/es/molecule/course-section/index.js.map +1 -1
- package/es/molecule/course-sections/index.js +6 -0
- 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 +49 -2
- 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 +3 -0
- 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 +4 -0
- package/es/molecule/discipline-cta/index.js.map +1 -1
- package/es/molecule/discipline-header/index.js +11 -4
- package/es/molecule/discipline-header/index.js.map +1 -1
- package/es/molecule/discipline-partners/index.js +11 -0
- package/es/molecule/discipline-partners/index.js.map +1 -1
- package/es/molecule/discipline-scope/index.js +2 -0
- package/es/molecule/discipline-scope/index.js.map +1 -1
- package/es/molecule/drag-and-drop/index.js +3 -0
- 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 +13 -0
- package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.js +4 -0
- package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/es/molecule/draggable/index.js +4 -0
- package/es/molecule/draggable/index.js.map +1 -1
- package/es/molecule/draggable-list/index.js +3 -0
- package/es/molecule/draggable-list/index.js.map +1 -1
- package/es/molecule/empty-state-dashboard/index.js +3 -0
- 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 +5 -0
- package/es/molecule/external-content-button/index.js.map +1 -1
- package/es/molecule/external-content-viewer/index.js +2 -0
- package/es/molecule/external-content-viewer/index.js.map +1 -1
- package/es/molecule/feedback/index.js +9 -6
- package/es/molecule/feedback/index.js.map +1 -1
- package/es/molecule/filters/filters-wrapper.js +13 -0
- package/es/molecule/filters/filters-wrapper.js.map +1 -1
- package/es/molecule/filters/index.js +11 -0
- package/es/molecule/filters/index.js.map +1 -1
- package/es/molecule/forum/forum-comment/index.js +5 -0
- package/es/molecule/forum/forum-comment/index.js.map +1 -1
- package/es/molecule/forum/forum-post/index.js +6 -0
- package/es/molecule/forum/forum-post/index.js.map +1 -1
- package/es/molecule/forum/forum-thread/index.js +4 -0
- 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 +4 -0
- package/es/molecule/hero/index.js.map +1 -1
- package/es/molecule/input-text-with-titled-checkbox/index.js +2 -0
- package/es/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
- package/es/molecule/list-badges/index.js +2 -0
- package/es/molecule/list-badges/index.js.map +1 -1
- package/es/molecule/login-alert/index.js +3 -2
- package/es/molecule/login-alert/index.js.map +1 -1
- package/es/molecule/menu-list/index.js +2 -0
- package/es/molecule/menu-list/index.js.map +1 -1
- package/es/molecule/message-popin/index.js +2 -0
- package/es/molecule/message-popin/index.js.map +1 -1
- package/es/molecule/modal/index.js +7 -6
- package/es/molecule/modal/index.js.map +1 -1
- package/es/molecule/module-bubble/index.js +6 -0
- package/es/molecule/module-bubble/index.js.map +1 -1
- package/es/molecule/module-card/index.js +7 -2
- package/es/molecule/module-card/index.js.map +1 -1
- package/es/molecule/news/index.js +3 -0
- package/es/molecule/news/index.js.map +1 -1
- package/es/molecule/notification-banner/index.js +7 -0
- package/es/molecule/notification-banner/index.js.map +1 -1
- package/es/molecule/pagination/index.js +2 -0
- package/es/molecule/pagination/index.js.map +1 -1
- package/es/molecule/payment-form/index.js +13 -0
- package/es/molecule/payment-form/index.js.map +1 -1
- package/es/molecule/pdf/index.js +6 -2
- package/es/molecule/pdf/index.js.map +1 -1
- package/es/molecule/popin/index.js +7 -2
- package/es/molecule/popin/index.js.map +1 -1
- package/es/molecule/product-card/index.js +4 -0
- package/es/molecule/product-card/index.js.map +1 -1
- package/es/molecule/progress-bar/index.js +6 -0
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/questions/drop-down/index.js +4 -0
- package/es/molecule/questions/drop-down/index.js.map +1 -1
- package/es/molecule/questions/free-text/index.js +6 -0
- 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 +11 -12
- package/es/molecule/questions/free-text/index.native.js.map +1 -1
- package/es/molecule/questions/mobile/draggable/index.native.js +11 -0
- 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 +7 -0
- 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 +13 -0
- 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 +16 -0
- package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/es/molecule/questions/qcm/index.js +7 -3
- package/es/molecule/questions/qcm/index.js.map +1 -1
- package/es/molecule/questions/qcm-drag/index.js +14 -4
- package/es/molecule/questions/qcm-drag/index.js.map +1 -1
- package/es/molecule/questions/qcm-graphic/index.js +7 -2
- package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.js +17 -12
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.js +16 -5
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/questions/types.d.ts +37 -12
- package/es/molecule/questions/types.d.ts.map +1 -1
- package/es/molecule/questions/types.js.map +1 -1
- package/es/molecule/quick-access-card/index.js +18 -0
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/quick-access-cards-group/index.js +4 -0
- package/es/molecule/quick-access-cards-group/index.js.map +1 -1
- package/es/molecule/resource-player/index.js +25 -5
- package/es/molecule/resource-player/index.js.map +1 -1
- package/es/molecule/review-card-congrats/index.js +7 -2
- 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 +9 -4
- package/es/molecule/review-correction-popin/index.js.map +1 -1
- package/es/molecule/review-correction-popin/index.native.js +9 -0
- 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 +3 -0
- 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 +21 -6
- package/es/molecule/scope-content/index.js.map +1 -1
- package/es/molecule/scope-tabs/index.js +6 -0
- package/es/molecule/scope-tabs/index.js.map +1 -1
- package/es/molecule/search-form/index.js +6 -0
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/select-multiple/index.js +18 -2
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/setup-cohort-item/index.js +10 -0
- package/es/molecule/setup-cohort-item/index.js.map +1 -1
- package/es/molecule/setup-section/index.js +10 -0
- package/es/molecule/setup-section/index.js.map +1 -1
- package/es/molecule/setup-sections/index.js +3 -0
- package/es/molecule/setup-sections/index.js.map +1 -1
- package/es/molecule/setup-slide/index.js +17 -0
- package/es/molecule/setup-slide/index.js.map +1 -1
- package/es/molecule/setup-slider/index.js +6 -0
- package/es/molecule/setup-slider/index.js.map +1 -1
- package/es/molecule/share/index.js +15 -6
- package/es/molecule/share/index.js.map +1 -1
- package/es/molecule/skill-card/index.js +3 -0
- package/es/molecule/skill-card/index.js.map +1 -1
- package/es/molecule/skill-card/index.native.js +6 -0
- 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 +2 -0
- package/es/molecule/ssmenu-list/index.js.map +1 -1
- package/es/molecule/subscription-freemium/index.js +2 -0
- package/es/molecule/subscription-freemium/index.js.map +1 -1
- package/es/molecule/subscription-premium/index.js +6 -0
- package/es/molecule/subscription-premium/index.js.map +1 -1
- package/es/molecule/table/index.js +18 -0
- package/es/molecule/table/index.js.map +1 -1
- package/es/molecule/teams-popin/index.js +2 -0
- package/es/molecule/teams-popin/index.js.map +1 -1
- package/es/molecule/theme-image/index.js +2 -0
- package/es/molecule/theme-image/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.js +3 -0
- package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/es/molecule/titled-checkbox/index.js +2 -0
- package/es/molecule/titled-checkbox/index.js.map +1 -1
- package/es/molecule/unsubscribe/index.js +2 -0
- package/es/molecule/unsubscribe/index.js.map +1 -1
- package/es/molecule/vertical-tabs/index.js +4 -0
- package/es/molecule/vertical-tabs/index.js.map +1 -1
- package/es/molecule/video-iframe/index.js +12 -0
- package/es/molecule/video-iframe/index.js.map +1 -1
- package/es/molecule/video-player/index.js +23 -6
- 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 +29 -3
- 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 +42 -0
- package/es/molecule/video-player/vimeo.js.map +1 -1
- package/es/molecule/video-player-mobile/index.native.d.ts +8 -0
- package/es/molecule/video-player-mobile/index.native.d.ts.map +1 -0
- package/es/molecule/video-player-mobile/index.native.js +45 -0
- package/es/molecule/video-player-mobile/index.native.js.map +1 -0
- package/es/molecule/wizard-summary/index.js +18 -2
- package/es/molecule/wizard-summary/index.js.map +1 -1
- package/es/organism/accordion/container/index.js +9 -0
- package/es/organism/accordion/container/index.js.map +1 -1
- package/es/organism/accordion/coorp-manager/index.js +13 -0
- package/es/organism/accordion/coorp-manager/index.js.map +1 -1
- package/es/organism/accordion/coorp-manager/part/index.js +10 -0
- package/es/organism/accordion/coorp-manager/part/index.js.map +1 -1
- package/es/organism/accordion/part/index.js +5 -0
- package/es/organism/accordion/part/index.js.map +1 -1
- package/es/organism/accordion/toggler/index.js +11 -0
- package/es/organism/accordion/toggler/index.js.map +1 -1
- package/es/organism/brand-analytics/analytics-popin.js +6 -0
- package/es/organism/brand-analytics/analytics-popin.js.map +1 -1
- package/es/organism/brand-analytics/index.js +11 -0
- package/es/organism/brand-analytics/index.js.map +1 -1
- package/es/organism/brand-dashboard/index.js +3 -0
- package/es/organism/brand-dashboard/index.js.map +1 -1
- package/es/organism/brand-form/index.js +6 -0
- package/es/organism/brand-form/index.js.map +1 -1
- package/es/organism/brand-table/index.js +2 -0
- package/es/organism/brand-table/index.js.map +1 -1
- package/es/organism/brand-upload/index.js +4 -0
- package/es/organism/brand-upload/index.js.map +1 -1
- package/es/organism/cards-grid/index.js +4 -0
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/cart/index.js +2 -0
- package/es/organism/cart/index.js.map +1 -1
- package/es/organism/content-translation/index.js +5 -0
- package/es/organism/content-translation/index.js.map +1 -1
- package/es/organism/course-selection/index.js +8 -0
- package/es/organism/course-selection/index.js.map +1 -1
- package/es/organism/discussion/index.js +4 -2
- package/es/organism/discussion/index.js.map +1 -1
- package/es/organism/get-the-app/index.js +16 -0
- package/es/organism/get-the-app/index.js.map +1 -1
- package/es/organism/grid-list/index.js +2 -0
- package/es/organism/grid-list/index.js.map +1 -1
- package/es/organism/header/index.js +2 -0
- package/es/organism/header/index.js.map +1 -1
- package/es/organism/header-v2/index.native.js +6 -3
- package/es/organism/header-v2/index.native.js.map +1 -1
- package/es/organism/hero/index.js +4 -0
- package/es/organism/hero/index.js.map +1 -1
- package/es/organism/list-item/index.js +4 -0
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-items/index.js +3 -0
- 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 +7 -0
- package/es/organism/mobile-navigation/index.native.js.map +1 -1
- package/es/organism/mooc/image-slider/index.js +5 -0
- package/es/organism/mooc/image-slider/index.js.map +1 -1
- package/es/organism/mooc-footer/index.js +9 -10
- package/es/organism/mooc-footer/index.js.map +1 -1
- package/es/organism/mooc-header/index.js +47 -0
- 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 +6 -0
- package/es/organism/podcast-popin-intro/index.native.js.map +1 -1
- package/es/organism/popin/index.js +5 -0
- package/es/organism/popin/index.js.map +1 -1
- package/es/organism/resource-browser/index.js +10 -0
- package/es/organism/resource-browser/index.js.map +1 -1
- package/es/organism/review-congrats/index.js +5 -1
- package/es/organism/review-congrats/index.js.map +1 -1
- package/es/organism/review-congrats/index.native.js +10 -2
- 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 +2 -0
- package/es/organism/review-header/index.js.map +1 -1
- package/es/organism/review-header/index.native.js +3 -0
- 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 +2 -0
- package/es/organism/review-no-skills/index.js.map +1 -1
- package/es/organism/review-no-skills/index.native.js +6 -0
- 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 +2 -0
- package/es/organism/review-skills/index.js.map +1 -1
- package/es/organism/review-skills/index.native.js +3 -0
- 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 +16 -8
- package/es/organism/review-slide/index.js.map +1 -1
- package/es/organism/review-slide/index.native.d.ts.map +1 -1
- package/es/organism/review-slide/index.native.js +58 -5
- 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 +9 -2
- package/es/organism/review-stacked-slides/index.js.map +1 -1
- package/es/organism/review-stacked-slides/index.native.js +10 -5
- 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 +8 -3
- package/es/organism/rewards-form/index.js.map +1 -1
- package/es/organism/search-and-chips-results/index.js +6 -0
- package/es/organism/search-and-chips-results/index.js.map +1 -1
- package/es/organism/settings/index.js +12 -5
- package/es/organism/settings/index.js.map +1 -1
- package/es/organism/setup-header/index.js +5 -0
- package/es/organism/setup-header/index.js.map +1 -1
- package/es/organism/sidebar/index.js +26 -8
- package/es/organism/sidebar/index.js.map +1 -1
- package/es/organism/slider/index.js +18 -2
- package/es/organism/slider/index.js.map +1 -1
- package/es/organism/user-preferences/index.js +13 -5
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/wizard-contents/index.js +13 -0
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/template/activity/engine-stars.js +17 -5
- package/es/template/activity/engine-stars.js.map +1 -1
- package/es/template/activity/index.js +4 -2
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/progression-item.js +7 -2
- package/es/template/activity/progression-item.js.map +1 -1
- package/es/template/activity/stars-summary.js +13 -0
- package/es/template/activity/stars-summary.js.map +1 -1
- package/es/template/app-player/loading/index.js +2 -0
- package/es/template/app-player/loading/index.js.map +1 -1
- package/es/template/app-player/player/index.js +3 -0
- package/es/template/app-player/player/index.js.map +1 -1
- package/es/template/app-player/player/slides/footer/index.js +16 -0
- package/es/template/app-player/player/slides/footer/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/index.js +2 -0
- package/es/template/app-player/player/slides/header/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/learner.js +14 -4
- package/es/template/app-player/player/slides/header/learner.js.map +1 -1
- package/es/template/app-player/player/slides/header/lives.js +3 -0
- package/es/template/app-player/player/slides/header/lives.js.map +1 -1
- package/es/template/app-player/player/slides/header/microlearning.js +5 -2
- package/es/template/app-player/player/slides/header/microlearning.js.map +1 -1
- package/es/template/app-player/player/slides/index.js +64 -21
- package/es/template/app-player/player/slides/index.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +34 -10
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-end/index.js +5 -0
- package/es/template/app-player/popin-end/index.js.map +1 -1
- package/es/template/app-player/popin-end/summary.js +54 -22
- package/es/template/app-player/popin-end/summary.js.map +1 -1
- package/es/template/app-player/popin-header/index.js +46 -12
- package/es/template/app-player/popin-header/index.js.map +1 -1
- package/es/template/app-player/popin-no-access/index.js +2 -0
- package/es/template/app-player/popin-no-access/index.js.map +1 -1
- package/es/template/app-review/demo-ts/index.js +2 -0
- package/es/template/app-review/demo-ts/index.js.map +1 -1
- package/es/template/app-review/demo-ts/index.native.js +2 -0
- 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 +3 -0
- package/es/template/app-review/index.js.map +1 -1
- package/es/template/app-review/index.native.js +4 -2
- 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 +2 -0
- package/es/template/app-review/player/background-review.js.map +1 -1
- package/es/template/app-review/player/index.js +2 -0
- package/es/template/app-review/player/index.js.map +1 -1
- package/es/template/app-review/player/index.native.js +6 -0
- 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 +1 -0
- 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 +1 -0
- package/es/template/app-review/prop-types.js.map +1 -1
- package/es/template/app-review/skills/index.js +2 -0
- package/es/template/app-review/skills/index.js.map +1 -1
- package/es/template/app-review/skills/index.native.js +6 -0
- 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 +5 -0
- 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 +14 -8
- package/es/template/back-office/brand-list/index.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +25 -4
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/dashboard-preview/dashboard-popin.js +5 -0
- package/es/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
- package/es/template/back-office/dashboard-preview/index.js +14 -0
- package/es/template/back-office/dashboard-preview/index.js.map +1 -1
- package/es/template/back-office/layout/index.js +3 -0
- package/es/template/back-office/layout/index.js.map +1 -1
- package/es/template/battle-requests/index.js +3 -2
- package/es/template/battle-requests/index.js.map +1 -1
- package/es/template/cockpit/jw-uploader/index.js +3 -0
- package/es/template/cockpit/jw-uploader/index.js.map +1 -1
- package/es/template/common/authors/index.js +10 -2
- package/es/template/common/authors/index.js.map +1 -1
- package/es/template/common/coorp-header/content.js +4 -0
- package/es/template/common/coorp-header/content.js.map +1 -1
- package/es/template/common/coorp-header/index.js +2 -0
- package/es/template/common/coorp-header/index.js.map +1 -1
- package/es/template/common/dashboard/index.js +13 -0
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/discipline/index.js +2 -0
- package/es/template/common/discipline/index.js.map +1 -1
- package/es/template/common/search-page/index.js +6 -0
- package/es/template/common/search-page/index.js.map +1 -1
- package/es/template/external-course/index.js +10 -2
- package/es/template/external-course/index.js.map +1 -1
- package/es/template/review-dashboard-skills/index.js +2 -0
- package/es/template/review-dashboard-skills/index.js.map +1 -1
- package/es/template/teams-dashboard/index.js +4 -0
- package/es/template/teams-dashboard/index.js.map +1 -1
- package/es/util/bubbling.js +1 -0
- 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 +2 -0
- 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 +6 -0
- 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 +2 -0
- package/es/util/get-class-state.js.map +1 -1
- package/es/util/get-clean-uri.js +1 -0
- package/es/util/get-clean-uri.js.map +1 -1
- package/es/util/get-resized-image.js +7 -0
- package/es/util/get-resized-image.js.map +1 -1
- package/es/util/get-shadow-box-color-from-primary.js +1 -2
- package/es/util/get-shadow-box-color-from-primary.js.map +1 -1
- package/es/util/image.js +4 -0
- package/es/util/image.js.map +1 -1
- package/es/util/navigation.js +9 -0
- package/es/util/navigation.js.map +1 -1
- package/es/util/parse-template-string.js +6 -0
- 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 +14 -8
- package/es/util/render-with-context.js.map +1 -1
- package/es/util/shallow-compare.js +2 -0
- 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 +1 -0
- 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 +14 -0
- package/lib/atom/autocomplete/index.js.map +1 -1
- package/lib/atom/avatar/index.js +7 -0
- package/lib/atom/avatar/index.js.map +1 -1
- package/lib/atom/button/index.js +15 -0
- 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 +12 -0
- package/lib/atom/button/index.native.js.map +1 -1
- package/lib/atom/button-link/index.js +20 -0
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link-icon-only/index.js +22 -0
- package/lib/atom/button-link-icon-only/index.js.map +1 -1
- package/lib/atom/button-menu/index.js +13 -0
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/card-image-preview/index.js +9 -0
- package/lib/atom/card-image-preview/index.js.map +1 -1
- package/lib/atom/catalog-section/index.js +6 -0
- package/lib/atom/catalog-section/index.js.map +1 -1
- package/lib/atom/centered-text/index.js +6 -0
- package/lib/atom/centered-text/index.js.map +1 -1
- package/lib/atom/checkbox/index.js +17 -5
- package/lib/atom/checkbox/index.js.map +1 -1
- package/lib/atom/checkbox-with-title/index.js +11 -0
- package/lib/atom/checkbox-with-title/index.js.map +1 -1
- package/lib/atom/chips/index.js +10 -0
- 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 +22 -2
- package/lib/atom/choice/index.native.js.map +1 -1
- package/lib/atom/clue/index.js +19 -0
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/content-badge/index.js +8 -0
- package/lib/atom/content-badge/index.js.map +1 -1
- package/lib/atom/cta/index.js +21 -0
- package/lib/atom/cta/index.js.map +1 -1
- package/lib/atom/difficulty-level/index.js +14 -0
- package/lib/atom/difficulty-level/index.js.map +1 -1
- package/lib/atom/drag-and-drop/index.js +25 -0
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/empty-search-result/index.js +6 -0
- 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 +11 -0
- 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 +16 -0
- 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 +7 -0
- 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 +21 -6
- 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 +33 -11
- package/lib/atom/image-background/index.native.js.map +1 -1
- package/lib/atom/image-upload/index.js +16 -0
- package/lib/atom/image-upload/index.js.map +1 -1
- package/lib/atom/input-checkbox/index.js +15 -0
- package/lib/atom/input-checkbox/index.js.map +1 -1
- package/lib/atom/input-color/index.js +10 -0
- package/lib/atom/input-color/index.js.map +1 -1
- package/lib/atom/input-doublestep/index.js +25 -0
- package/lib/atom/input-doublestep/index.js.map +1 -1
- package/lib/atom/input-html/index.js +16 -0
- package/lib/atom/input-html/index.js.map +1 -1
- package/lib/atom/input-html/input-preview.js +8 -2
- package/lib/atom/input-html/input-preview.js.map +1 -1
- package/lib/atom/input-readonly/index.js +6 -0
- package/lib/atom/input-readonly/index.js.map +1 -1
- package/lib/atom/input-search/index.js +13 -0
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-switch/index.js +15 -0
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-text/index.js +17 -2
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text-with-title/index.js +8 -0
- package/lib/atom/input-text-with-title/index.js.map +1 -1
- package/lib/atom/input-textarea/index.js +16 -2
- package/lib/atom/input-textarea/index.js.map +1 -1
- package/lib/atom/label/index.js +7 -0
- package/lib/atom/label/index.js.map +1 -1
- package/lib/atom/life/index.js +15 -0
- package/lib/atom/life/index.js.map +1 -1
- package/lib/atom/link/index.js +32 -7
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/loader/index.js +8 -0
- 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 +18 -2
- package/lib/atom/loader/index.native.js.map +1 -1
- package/lib/atom/lottie-wrapper/index.js +26 -3
- 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 +4 -0
- package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
- package/lib/atom/notification/index.js +8 -0
- package/lib/atom/notification/index.js.map +1 -1
- package/lib/atom/picture/index.js +21 -0
- package/lib/atom/picture/index.js.map +1 -1
- package/lib/atom/picture-background/index.js +10 -0
- package/lib/atom/picture-background/index.js.map +1 -1
- package/lib/atom/promo-code/index.js +7 -0
- package/lib/atom/promo-code/index.js.map +1 -1
- package/lib/atom/provider/index.js +28 -2
- 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 +18 -6
- package/lib/atom/provider/web-context.js.map +1 -1
- package/lib/atom/radio-group/index.js +13 -0
- package/lib/atom/radio-group/index.js.map +1 -1
- package/lib/atom/radio-group/item.js +14 -0
- package/lib/atom/radio-group/item.js.map +1 -1
- package/lib/atom/range/handle.js +25 -9
- package/lib/atom/range/handle.js.map +1 -1
- package/lib/atom/range/index.js +28 -0
- package/lib/atom/range/index.js.map +1 -1
- package/lib/atom/resource-miniature/index.js +13 -2
- package/lib/atom/resource-miniature/index.js.map +1 -1
- package/lib/atom/review-header-step-item/index.js +15 -0
- package/lib/atom/review-header-step-item/index.js.map +1 -1
- package/lib/atom/review-header-step-item/index.native.js +20 -0
- 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 +3 -0
- package/lib/atom/review-header-step-item/types.js.map +1 -1
- package/lib/atom/review-presentation/index.js +18 -5
- package/lib/atom/review-presentation/index.js.map +1 -1
- package/lib/atom/review-presentation/index.native.js +19 -3
- 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 +4 -0
- package/lib/atom/review-presentation/prop-types.js.map +1 -1
- package/lib/atom/select/index.js +30 -2
- 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 +25 -0
- package/lib/atom/select-modal/index.native.js.map +1 -1
- package/lib/atom/slide/index.js +8 -0
- package/lib/atom/slide/index.js.map +1 -1
- package/lib/atom/social-link/index.js +8 -0
- 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 +7 -0
- package/lib/atom/space/index.native.js.map +1 -1
- package/lib/atom/spinner/index.js +5 -0
- package/lib/atom/spinner/index.js.map +1 -1
- package/lib/atom/tab/index.js +9 -0
- package/lib/atom/tab/index.js.map +1 -1
- package/lib/atom/tab-content/index.js +7 -0
- package/lib/atom/tab-content/index.js.map +1 -1
- package/lib/atom/tag/index.js +8 -0
- 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 +10 -0
- package/lib/atom/text/index.native.js.map +1 -1
- package/lib/atom/title/index.js +12 -0
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/tooltip/index.js +16 -0
- package/lib/atom/tooltip/index.js.map +1 -1
- package/lib/atom/video-upload/index.js +8 -0
- package/lib/atom/video-upload/index.js.map +1 -1
- package/lib/atom/wizard-steps/index.js +7 -0
- package/lib/atom/wizard-steps/index.js.map +1 -1
- package/lib/hoc/animation/index.js +18 -0
- package/lib/hoc/animation/index.js.map +1 -1
- package/lib/hoc/animation-scheduler/index.js +39 -0
- 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 +14 -0
- 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 +19 -0
- 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 +16 -0
- package/lib/hoc/modal/select-item/index.native.js.map +1 -1
- package/lib/hoc/swapper/index.js +20 -4
- 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 +13 -0
- package/lib/hoc/touchable/index.native.js.map +1 -1
- package/lib/hoc/transition/index.js +11 -0
- package/lib/hoc/transition/index.js.map +1 -1
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -1
- package/lib/molecule/add-to-my-list/index.js +22 -0
- package/lib/molecule/add-to-my-list/index.js.map +1 -1
- package/lib/molecule/answer/index.d.ts +0 -3
- package/lib/molecule/answer/index.d.ts.map +1 -1
- package/lib/molecule/answer/index.js +44 -14
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/answer/index.native.js +14 -0
- 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 +13 -0
- package/lib/molecule/answer/prop-types.js.map +1 -1
- package/lib/molecule/answer/style.css +6 -5
- package/lib/molecule/audio/index.js +18 -2
- package/lib/molecule/audio/index.js.map +1 -1
- package/lib/molecule/banner/index.js +11 -0
- package/lib/molecule/banner/index.js.map +1 -1
- package/lib/molecule/battle-request/index.js +13 -2
- package/lib/molecule/battle-request/index.js.map +1 -1
- package/lib/molecule/brand-card/description.js +7 -0
- package/lib/molecule/brand-card/description.js.map +1 -1
- package/lib/molecule/brand-card/index.js +10 -0
- package/lib/molecule/brand-card/index.js.map +1 -1
- package/lib/molecule/brand-card-create/index.js +7 -0
- package/lib/molecule/brand-card-create/index.js.map +1 -1
- package/lib/molecule/brand-create-form/index.js +11 -0
- package/lib/molecule/brand-create-form/index.js.map +1 -1
- package/lib/molecule/brand-download-box/index.js +10 -0
- package/lib/molecule/brand-download-box/index.js.map +1 -1
- package/lib/molecule/brand-form-group/index.js +58 -0
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-logo/index.native.js +11 -0
- package/lib/molecule/brand-logo/index.native.js.map +1 -1
- package/lib/molecule/brand-tabs/index.js +10 -0
- package/lib/molecule/brand-tabs/index.js.map +1 -1
- package/lib/molecule/brand-upload-box/index.js +17 -0
- package/lib/molecule/brand-upload-box/index.js.map +1 -1
- package/lib/molecule/breadcrumbs/index.js +13 -0
- package/lib/molecule/breadcrumbs/index.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +12 -0
- package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/lib/molecule/card/customer.js +9 -0
- package/lib/molecule/card/customer.js.map +1 -1
- package/lib/molecule/card/favorite.js +15 -0
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/card/index.js +34 -0
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/notification.js +12 -0
- package/lib/molecule/card/notification.js.map +1 -1
- package/lib/molecule/card/selectable.js +9 -0
- package/lib/molecule/card/selectable.js.map +1 -1
- package/lib/molecule/card-congrats/index.native.js +15 -0
- 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 +26 -2
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-with-button/index.js +12 -0
- package/lib/molecule/card-with-button/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.js +19 -4
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.native.js +15 -0
- 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 +5 -0
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/cookie-banner/index.js +10 -0
- package/lib/molecule/cookie-banner/index.js.map +1 -1
- package/lib/molecule/coorp-manager-roles/index.js +8 -0
- package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
- package/lib/molecule/course-section/index.js +9 -0
- package/lib/molecule/course-section/index.js.map +1 -1
- package/lib/molecule/course-sections/index.js +16 -0
- package/lib/molecule/course-sections/index.js.map +1 -1
- package/lib/molecule/dashboard/battle-request-list/index.js +7 -0
- package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +59 -2
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/news-list/index.js +10 -0
- package/lib/molecule/dashboard/news-list/index.js.map +1 -1
- package/lib/molecule/dashboard/review-banner/index.js +10 -0
- package/lib/molecule/dashboard/review-banner/index.js.map +1 -1
- package/lib/molecule/dashboard/start-battle/index.js +9 -0
- package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
- package/lib/molecule/discipline-cta/index.js +11 -0
- package/lib/molecule/discipline-cta/index.js.map +1 -1
- package/lib/molecule/discipline-header/index.js +20 -4
- package/lib/molecule/discipline-header/index.js.map +1 -1
- package/lib/molecule/discipline-partners/index.js +21 -0
- package/lib/molecule/discipline-partners/index.js.map +1 -1
- package/lib/molecule/discipline-scope/index.js +7 -0
- package/lib/molecule/discipline-scope/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/index.js +20 -0
- package/lib/molecule/drag-and-drop/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/overlay.js +10 -0
- package/lib/molecule/drag-and-drop/overlay.js.map +1 -1
- package/lib/molecule/drag-and-drop/placeholder.js +7 -0
- package/lib/molecule/drag-and-drop/placeholder.js.map +1 -1
- package/lib/molecule/drag-and-drop/upload-report.js +30 -0
- package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.js +8 -0
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/lib/molecule/draggable/index.js +11 -0
- package/lib/molecule/draggable/index.js.map +1 -1
- package/lib/molecule/draggable-list/index.js +12 -0
- package/lib/molecule/draggable-list/index.js.map +1 -1
- package/lib/molecule/empty-state-dashboard/index.js +8 -0
- 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 +4 -0
- package/lib/molecule/empty-state-dashboard/types.js.map +1 -1
- package/lib/molecule/external-content-button/index.js +11 -0
- package/lib/molecule/external-content-button/index.js.map +1 -1
- package/lib/molecule/external-content-viewer/index.js +9 -0
- package/lib/molecule/external-content-viewer/index.js.map +1 -1
- package/lib/molecule/feedback/index.js +19 -6
- package/lib/molecule/feedback/index.js.map +1 -1
- package/lib/molecule/filters/filters-wrapper.js +22 -0
- package/lib/molecule/filters/filters-wrapper.js.map +1 -1
- package/lib/molecule/filters/index.js +17 -0
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/forum/forum-comment/index.js +14 -0
- package/lib/molecule/forum/forum-comment/index.js.map +1 -1
- package/lib/molecule/forum/forum-post/index.js +15 -0
- package/lib/molecule/forum/forum-post/index.js.map +1 -1
- package/lib/molecule/forum/forum-thread/index.js +9 -0
- package/lib/molecule/forum/forum-thread/index.js.map +1 -1
- package/lib/molecule/forum/post-conditions.js +4 -0
- package/lib/molecule/forum/post-conditions.js.map +1 -1
- package/lib/molecule/go1-banner/index.js +9 -4
- package/lib/molecule/go1-banner/index.js.map +1 -1
- package/lib/molecule/hero/index.js +13 -0
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/input-text-with-titled-checkbox/index.js +8 -0
- package/lib/molecule/input-text-with-titled-checkbox/index.js.map +1 -1
- package/lib/molecule/list-badges/index.js +8 -0
- package/lib/molecule/list-badges/index.js.map +1 -1
- package/lib/molecule/login-alert/index.js +8 -2
- package/lib/molecule/login-alert/index.js.map +1 -1
- package/lib/molecule/menu-list/index.js +10 -0
- package/lib/molecule/menu-list/index.js.map +1 -1
- package/lib/molecule/message-popin/index.js +6 -0
- package/lib/molecule/message-popin/index.js.map +1 -1
- package/lib/molecule/modal/index.js +13 -6
- package/lib/molecule/modal/index.js.map +1 -1
- package/lib/molecule/module-bubble/index.js +12 -0
- package/lib/molecule/module-bubble/index.js.map +1 -1
- package/lib/molecule/module-card/index.js +12 -2
- package/lib/molecule/module-card/index.js.map +1 -1
- package/lib/molecule/news/index.js +10 -0
- package/lib/molecule/news/index.js.map +1 -1
- package/lib/molecule/notification-banner/index.js +14 -0
- package/lib/molecule/notification-banner/index.js.map +1 -1
- package/lib/molecule/pagination/index.js +7 -0
- package/lib/molecule/pagination/index.js.map +1 -1
- package/lib/molecule/payment-form/index.js +18 -0
- package/lib/molecule/payment-form/index.js.map +1 -1
- package/lib/molecule/pdf/index.js +12 -2
- package/lib/molecule/pdf/index.js.map +1 -1
- package/lib/molecule/popin/index.js +14 -2
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/product-card/index.js +8 -0
- package/lib/molecule/product-card/index.js.map +1 -1
- package/lib/molecule/progress-bar/index.js +9 -0
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/questions/drop-down/index.js +10 -0
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/free-text/index.js +13 -0
- 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 +18 -12
- package/lib/molecule/questions/free-text/index.native.js.map +1 -1
- package/lib/molecule/questions/mobile/draggable/index.native.js +18 -0
- 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 +16 -0
- 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 +26 -0
- 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 +29 -0
- package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
- package/lib/molecule/questions/qcm/index.js +18 -3
- package/lib/molecule/questions/qcm/index.js.map +1 -1
- package/lib/molecule/questions/qcm-drag/index.js +25 -4
- package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
- package/lib/molecule/questions/qcm-graphic/index.js +14 -2
- package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/lib/molecule/questions/question-range/index.js +25 -12
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.js +24 -5
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/questions/types.d.ts +37 -12
- package/lib/molecule/questions/types.d.ts.map +1 -1
- package/lib/molecule/questions/types.js.map +1 -1
- package/lib/molecule/quick-access-card/index.js +24 -0
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-cards-group/index.js +10 -0
- package/lib/molecule/quick-access-cards-group/index.js.map +1 -1
- package/lib/molecule/resource-player/index.js +36 -5
- package/lib/molecule/resource-player/index.js.map +1 -1
- package/lib/molecule/review-card-congrats/index.js +23 -2
- 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 +4 -0
- package/lib/molecule/review-card-congrats/prop-types.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.js +16 -4
- package/lib/molecule/review-correction-popin/index.js.map +1 -1
- package/lib/molecule/review-correction-popin/index.native.js +20 -0
- 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 +3 -0
- package/lib/molecule/review-correction-popin/prop-types.js.map +1 -1
- package/lib/molecule/review-header-steps/index.js +11 -0
- 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 +4 -0
- package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
- package/lib/molecule/scope-content/index.js +25 -6
- package/lib/molecule/scope-content/index.js.map +1 -1
- package/lib/molecule/scope-tabs/index.js +16 -0
- package/lib/molecule/scope-tabs/index.js.map +1 -1
- package/lib/molecule/search-form/index.js +12 -0
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/select-multiple/index.js +35 -2
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/setup-cohort-item/index.js +17 -0
- package/lib/molecule/setup-cohort-item/index.js.map +1 -1
- package/lib/molecule/setup-section/index.js +15 -0
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-sections/index.js +10 -0
- package/lib/molecule/setup-sections/index.js.map +1 -1
- package/lib/molecule/setup-slide/index.js +30 -0
- package/lib/molecule/setup-slide/index.js.map +1 -1
- package/lib/molecule/setup-slider/index.js +11 -0
- package/lib/molecule/setup-slider/index.js.map +1 -1
- package/lib/molecule/share/index.js +29 -6
- package/lib/molecule/share/index.js.map +1 -1
- package/lib/molecule/skill-card/index.js +13 -0
- package/lib/molecule/skill-card/index.js.map +1 -1
- package/lib/molecule/skill-card/index.native.js +12 -0
- 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 +3 -0
- package/lib/molecule/skill-card/prop-types.js.map +1 -1
- package/lib/molecule/ssmenu-list/index.js +6 -0
- package/lib/molecule/ssmenu-list/index.js.map +1 -1
- package/lib/molecule/subscription-freemium/index.js +7 -0
- package/lib/molecule/subscription-freemium/index.js.map +1 -1
- package/lib/molecule/subscription-premium/index.js +11 -0
- package/lib/molecule/subscription-premium/index.js.map +1 -1
- package/lib/molecule/table/index.js +28 -0
- package/lib/molecule/table/index.js.map +1 -1
- package/lib/molecule/teams-popin/index.js +10 -0
- package/lib/molecule/teams-popin/index.js.map +1 -1
- package/lib/molecule/theme-image/index.js +8 -0
- package/lib/molecule/theme-image/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.js +12 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
- package/lib/molecule/titled-checkbox/index.js +11 -0
- package/lib/molecule/titled-checkbox/index.js.map +1 -1
- package/lib/molecule/unsubscribe/index.js +8 -0
- package/lib/molecule/unsubscribe/index.js.map +1 -1
- package/lib/molecule/vertical-tabs/index.js +14 -0
- package/lib/molecule/vertical-tabs/index.js.map +1 -1
- package/lib/molecule/video-iframe/index.js +19 -0
- package/lib/molecule/video-iframe/index.js.map +1 -1
- package/lib/molecule/video-player/index.js +31 -6
- package/lib/molecule/video-player/index.js.map +1 -1
- package/lib/molecule/video-player/jwplayer-prop-types.js +4 -0
- package/lib/molecule/video-player/jwplayer-prop-types.js.map +1 -1
- package/lib/molecule/video-player/jwplayer.js +36 -3
- package/lib/molecule/video-player/jwplayer.js.map +1 -1
- package/lib/molecule/video-player/prop-types.js +4 -0
- package/lib/molecule/video-player/prop-types.js.map +1 -1
- package/lib/molecule/video-player/vimeo.js +46 -0
- package/lib/molecule/video-player/vimeo.js.map +1 -1
- package/lib/molecule/video-player-mobile/index.native.d.ts +8 -0
- package/lib/molecule/video-player-mobile/index.native.d.ts.map +1 -0
- package/lib/molecule/video-player-mobile/index.native.js +56 -0
- package/lib/molecule/video-player-mobile/index.native.js.map +1 -0
- package/lib/molecule/wizard-summary/index.js +28 -2
- package/lib/molecule/wizard-summary/index.js.map +1 -1
- package/lib/organism/accordion/container/index.js +18 -0
- package/lib/organism/accordion/container/index.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/index.js +21 -0
- package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/part/index.js +19 -0
- package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
- package/lib/organism/accordion/part/index.js +12 -0
- package/lib/organism/accordion/part/index.js.map +1 -1
- package/lib/organism/accordion/toggler/index.js +20 -0
- package/lib/organism/accordion/toggler/index.js.map +1 -1
- package/lib/organism/brand-analytics/analytics-popin.js +14 -0
- package/lib/organism/brand-analytics/analytics-popin.js.map +1 -1
- package/lib/organism/brand-analytics/index.js +21 -0
- package/lib/organism/brand-analytics/index.js.map +1 -1
- package/lib/organism/brand-dashboard/index.js +10 -0
- package/lib/organism/brand-dashboard/index.js.map +1 -1
- package/lib/organism/brand-form/index.js +18 -0
- package/lib/organism/brand-form/index.js.map +1 -1
- package/lib/organism/brand-table/index.js +12 -0
- package/lib/organism/brand-table/index.js.map +1 -1
- package/lib/organism/brand-upload/index.js +13 -0
- package/lib/organism/brand-upload/index.js.map +1 -1
- package/lib/organism/cards-grid/index.js +9 -0
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/cart/index.js +11 -0
- package/lib/organism/cart/index.js.map +1 -1
- package/lib/organism/content-translation/index.js +14 -0
- package/lib/organism/content-translation/index.js.map +1 -1
- package/lib/organism/course-selection/index.js +18 -0
- package/lib/organism/course-selection/index.js.map +1 -1
- package/lib/organism/discussion/index.js +14 -2
- package/lib/organism/discussion/index.js.map +1 -1
- package/lib/organism/get-the-app/index.js +21 -0
- package/lib/organism/get-the-app/index.js.map +1 -1
- package/lib/organism/grid-list/index.js +6 -0
- package/lib/organism/grid-list/index.js.map +1 -1
- package/lib/organism/header/index.js +9 -0
- package/lib/organism/header/index.js.map +1 -1
- package/lib/organism/header-v2/index.native.js +17 -3
- package/lib/organism/header-v2/index.native.js.map +1 -1
- package/lib/organism/hero/index.js +11 -0
- package/lib/organism/hero/index.js.map +1 -1
- package/lib/organism/list-item/index.js +12 -0
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-items/index.js +10 -0
- 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 +16 -0
- package/lib/organism/mobile-navigation/index.native.js.map +1 -1
- package/lib/organism/mooc/image-slider/index.js +9 -0
- package/lib/organism/mooc/image-slider/index.js.map +1 -1
- package/lib/organism/mooc-footer/index.js +22 -10
- package/lib/organism/mooc-footer/index.js.map +1 -1
- package/lib/organism/mooc-header/index.js +55 -0
- 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 +15 -0
- package/lib/organism/podcast-popin-intro/index.native.js.map +1 -1
- package/lib/organism/popin/index.js +12 -0
- package/lib/organism/popin/index.js.map +1 -1
- package/lib/organism/resource-browser/index.js +16 -0
- package/lib/organism/resource-browser/index.js.map +1 -1
- package/lib/organism/review-congrats/index.js +16 -1
- package/lib/organism/review-congrats/index.js.map +1 -1
- package/lib/organism/review-congrats/index.native.js +22 -2
- 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 +5 -0
- package/lib/organism/review-congrats/prop-types.js.map +1 -1
- package/lib/organism/review-header/index.js +10 -0
- package/lib/organism/review-header/index.js.map +1 -1
- package/lib/organism/review-header/index.native.js +10 -0
- 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 +4 -0
- package/lib/organism/review-header/types.js.map +1 -1
- package/lib/organism/review-no-skills/index.js +7 -0
- package/lib/organism/review-no-skills/index.js.map +1 -1
- package/lib/organism/review-no-skills/index.native.js +12 -0
- 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 +3 -0
- package/lib/organism/review-no-skills/prop-types.js.map +1 -1
- package/lib/organism/review-skills/index.js +8 -0
- package/lib/organism/review-skills/index.js.map +1 -1
- package/lib/organism/review-skills/index.native.js +8 -0
- 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 +4 -0
- package/lib/organism/review-skills/prop-types.js.map +1 -1
- package/lib/organism/review-slide/index.js +31 -8
- package/lib/organism/review-slide/index.js.map +1 -1
- package/lib/organism/review-slide/index.native.d.ts.map +1 -1
- package/lib/organism/review-slide/index.native.js +73 -4
- 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 +7 -1
- package/lib/organism/review-slide/prop-types.js.map +1 -1
- package/lib/organism/review-stacked-slides/index.js +18 -2
- package/lib/organism/review-stacked-slides/index.js.map +1 -1
- package/lib/organism/review-stacked-slides/index.native.js +20 -5
- 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 +6 -0
- package/lib/organism/review-stacked-slides/prop-types.js.map +1 -1
- package/lib/organism/rewards-form/index.js +14 -3
- package/lib/organism/rewards-form/index.js.map +1 -1
- package/lib/organism/search-and-chips-results/index.js +15 -0
- package/lib/organism/search-and-chips-results/index.js.map +1 -1
- package/lib/organism/settings/index.js +25 -5
- package/lib/organism/settings/index.js.map +1 -1
- package/lib/organism/setup-header/index.js +15 -0
- package/lib/organism/setup-header/index.js.map +1 -1
- package/lib/organism/sidebar/index.js +58 -8
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/organism/slider/index.js +24 -2
- package/lib/organism/slider/index.js.map +1 -1
- package/lib/organism/user-preferences/index.js +21 -5
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/wizard-contents/index.js +28 -0
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/template/activity/engine-stars.js +27 -5
- package/lib/template/activity/engine-stars.js.map +1 -1
- package/lib/template/activity/index.js +26 -2
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/progression-item.js +17 -2
- package/lib/template/activity/progression-item.js.map +1 -1
- package/lib/template/activity/stars-summary.js +22 -0
- package/lib/template/activity/stars-summary.js.map +1 -1
- package/lib/template/app-player/loading/index.js +8 -0
- package/lib/template/app-player/loading/index.js.map +1 -1
- package/lib/template/app-player/player/index.js +9 -0
- package/lib/template/app-player/player/index.js.map +1 -1
- package/lib/template/app-player/player/slides/footer/index.js +20 -0
- package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/index.js +11 -1
- package/lib/template/app-player/player/slides/header/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/learner.js +20 -4
- package/lib/template/app-player/player/slides/header/learner.js.map +1 -1
- package/lib/template/app-player/player/slides/header/lives.js +9 -0
- package/lib/template/app-player/player/slides/header/lives.js.map +1 -1
- package/lib/template/app-player/player/slides/header/microlearning.js +12 -2
- package/lib/template/app-player/player/slides/header/microlearning.js.map +1 -1
- package/lib/template/app-player/player/slides/index.js +89 -21
- package/lib/template/app-player/player/slides/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +50 -10
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-end/index.js +12 -0
- package/lib/template/app-player/popin-end/index.js.map +1 -1
- package/lib/template/app-player/popin-end/summary.js +69 -22
- package/lib/template/app-player/popin-end/summary.js.map +1 -1
- package/lib/template/app-player/popin-header/index.js +67 -12
- package/lib/template/app-player/popin-header/index.js.map +1 -1
- package/lib/template/app-player/popin-no-access/index.js +6 -0
- package/lib/template/app-player/popin-no-access/index.js.map +1 -1
- package/lib/template/app-review/demo-ts/index.js +5 -0
- package/lib/template/app-review/demo-ts/index.js.map +1 -1
- package/lib/template/app-review/demo-ts/index.native.js +5 -0
- 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 +3 -0
- package/lib/template/app-review/demo-ts/typings.js.map +1 -1
- package/lib/template/app-review/index.js +8 -0
- package/lib/template/app-review/index.js.map +1 -1
- package/lib/template/app-review/index.native.js +14 -2
- package/lib/template/app-review/index.native.js.map +1 -1
- package/lib/template/app-review/onboarding/index.js +3 -0
- package/lib/template/app-review/onboarding/index.js.map +1 -1
- package/lib/template/app-review/onboarding/index.native.js +3 -0
- package/lib/template/app-review/onboarding/index.native.js.map +1 -1
- package/lib/template/app-review/player/background-review.js +5 -0
- package/lib/template/app-review/player/background-review.js.map +1 -1
- package/lib/template/app-review/player/index.js +13 -0
- package/lib/template/app-review/player/index.js.map +1 -1
- package/lib/template/app-review/player/index.native.js +16 -0
- 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 +8 -0
- 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 +5 -0
- package/lib/template/app-review/prop-types.js.map +1 -1
- package/lib/template/app-review/skills/index.js +10 -0
- package/lib/template/app-review/skills/index.js.map +1 -1
- package/lib/template/app-review/skills/index.native.js +16 -0
- 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 +4 -0
- 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 +15 -0
- package/lib/template/app-review/template-context.js.map +1 -1
- package/lib/template/back-office/brand-create/index.js +8 -0
- package/lib/template/back-office/brand-create/index.js.map +1 -1
- package/lib/template/back-office/brand-list/index.js +26 -8
- package/lib/template/back-office/brand-list/index.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +51 -4
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js +12 -0
- package/lib/template/back-office/dashboard-preview/dashboard-popin.js.map +1 -1
- package/lib/template/back-office/dashboard-preview/index.js +30 -0
- package/lib/template/back-office/dashboard-preview/index.js.map +1 -1
- package/lib/template/back-office/layout/index.js +8 -0
- package/lib/template/back-office/layout/index.js.map +1 -1
- package/lib/template/battle-requests/index.js +12 -2
- package/lib/template/battle-requests/index.js.map +1 -1
- package/lib/template/cockpit/jw-uploader/index.js +11 -0
- package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
- package/lib/template/common/authors/index.js +18 -2
- package/lib/template/common/authors/index.js.map +1 -1
- package/lib/template/common/coorp-header/content.js +6 -0
- package/lib/template/common/coorp-header/content.js.map +1 -1
- package/lib/template/common/coorp-header/index.js +7 -0
- package/lib/template/common/coorp-header/index.js.map +1 -1
- package/lib/template/common/dashboard/index.js +27 -0
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/discipline/index.js +20 -0
- package/lib/template/common/discipline/index.js.map +1 -1
- package/lib/template/common/search-page/index.js +14 -0
- package/lib/template/common/search-page/index.js.map +1 -1
- package/lib/template/external-course/index.js +25 -2
- package/lib/template/external-course/index.js.map +1 -1
- package/lib/template/review-dashboard-skills/index.js +8 -0
- package/lib/template/review-dashboard-skills/index.js.map +1 -1
- package/lib/template/teams-dashboard/index.js +14 -0
- package/lib/template/teams-dashboard/index.js.map +1 -1
- package/lib/util/bubbling.js +2 -0
- 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 +4 -0
- package/lib/util/build-query-string.js.map +1 -1
- package/lib/util/button-icons.js +2 -0
- package/lib/util/button-icons.js.map +1 -1
- package/lib/util/closest-step.js +7 -0
- package/lib/util/closest-step.js.map +1 -1
- package/lib/util/constants.js.map +1 -1
- package/lib/util/external-content.js +5 -0
- package/lib/util/external-content.js.map +1 -1
- package/lib/util/get-class-state.js +3 -0
- package/lib/util/get-class-state.js.map +1 -1
- package/lib/util/get-clean-uri.js +2 -0
- package/lib/util/get-clean-uri.js.map +1 -1
- package/lib/util/get-resized-image.js +11 -0
- package/lib/util/get-resized-image.js.map +1 -1
- package/lib/util/get-shadow-box-color-from-primary.js +3 -0
- package/lib/util/get-shadow-box-color-from-primary.js.map +1 -1
- package/lib/util/image.js +5 -0
- package/lib/util/image.js.map +1 -1
- package/lib/util/navigation.js +13 -1
- package/lib/util/navigation.js.map +1 -1
- package/lib/util/parse-template-string.js +9 -0
- package/lib/util/parse-template-string.js.map +1 -1
- package/lib/util/proptypes.js +11 -0
- package/lib/util/proptypes.js.map +1 -1
- package/lib/util/render-with-context.js +22 -8
- package/lib/util/render-with-context.js.map +1 -1
- package/lib/util/shallow-compare.js +4 -0
- 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 +1 -0
- 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 +2 -0
- 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/locales/.mtslconfig.json +1 -0
- package/locales/fr/global.json +1 -1
- package/locales/it/global.json +1 -1
- package/locales/tr/global.json +1 -0
- package/locales/uk/global.json +1 -0
- package/locales/vi/global.json +1 -0
- package/package.json +3 -2
|
@@ -2,18 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.THEMES = exports.MODES = void 0;
|
|
5
|
+
|
|
5
6
|
var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
|
|
7
|
+
|
|
6
8
|
var _isNil2 = _interopRequireDefault(require("lodash/fp/isNil"));
|
|
9
|
+
|
|
7
10
|
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
11
|
+
|
|
8
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
9
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
10
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
11
18
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
19
|
+
|
|
12
20
|
var _externalContent = require("../../util/external-content");
|
|
21
|
+
|
|
13
22
|
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
23
|
+
|
|
14
24
|
var _contentBadge = _interopRequireDefault(require("../../atom/content-badge"));
|
|
25
|
+
|
|
15
26
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
27
|
+
|
|
16
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
|
|
17
30
|
const MODES = {
|
|
18
31
|
HERO: 'hero',
|
|
19
32
|
CARD: 'card'
|
|
@@ -24,6 +37,7 @@ const THEMES = {
|
|
|
24
37
|
coorpmanager: _style.default.coorpmanager
|
|
25
38
|
};
|
|
26
39
|
exports.THEMES = THEMES;
|
|
40
|
+
|
|
27
41
|
const ContentTypeInfo = ({
|
|
28
42
|
mode,
|
|
29
43
|
type,
|
|
@@ -32,9 +46,11 @@ const ContentTypeInfo = ({
|
|
|
32
46
|
const {
|
|
33
47
|
translate
|
|
34
48
|
} = context;
|
|
49
|
+
|
|
35
50
|
if (mode !== MODES.CARD) {
|
|
36
51
|
return null;
|
|
37
52
|
}
|
|
53
|
+
|
|
38
54
|
if (type === 'chapter') {
|
|
39
55
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
40
56
|
className: _style.default.microLearningIcon
|
|
@@ -44,6 +60,7 @@ const ContentTypeInfo = ({
|
|
|
44
60
|
className: _style.default.microLearninglabel
|
|
45
61
|
}, "5' learning"));
|
|
46
62
|
}
|
|
63
|
+
|
|
47
64
|
if (externalContent && _externalContent.EXTERNAL_CONTENT_ICONS[type]) {
|
|
48
65
|
const textColor = _externalContent.EXTERNAL_CONTENT_ICONS[type].color;
|
|
49
66
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -53,8 +70,10 @@ const ContentTypeInfo = ({
|
|
|
53
70
|
}
|
|
54
71
|
}, type === 'scorm' ? translate('external_content_scorm') : '', type === 'video' ? translate('external_content_video') : '', type === 'article' ? translate('external_content_article') : '', type === 'podcast' ? translate('external_content_podcast') : '');
|
|
55
72
|
}
|
|
73
|
+
|
|
56
74
|
return null;
|
|
57
75
|
};
|
|
76
|
+
|
|
58
77
|
ContentTypeInfo.contextTypes = {
|
|
59
78
|
skin: _provider.default.childContextTypes.skin,
|
|
60
79
|
translate: _provider.default.childContextTypes.translate
|
|
@@ -64,6 +83,7 @@ ContentTypeInfo.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
64
83
|
type: _propTypes.default.string,
|
|
65
84
|
mode: _propTypes.default.string
|
|
66
85
|
} : {};
|
|
86
|
+
|
|
67
87
|
const CardTitle = ({
|
|
68
88
|
title,
|
|
69
89
|
empty,
|
|
@@ -72,19 +92,20 @@ const CardTitle = ({
|
|
|
72
92
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
73
93
|
className: (0, _classnames.default)(_style.default.title, _style.default.innerHTML, courseContent ? _style.default.lightTitle : _style.default.darkTitle, empty ? _style.default.empty : null),
|
|
74
94
|
"data-name": "title",
|
|
75
|
-
title: title
|
|
76
|
-
// eslint-disable-next-line react/no-danger
|
|
95
|
+
title: title // eslint-disable-next-line react/no-danger
|
|
77
96
|
,
|
|
78
97
|
dangerouslySetInnerHTML: {
|
|
79
98
|
__html: title
|
|
80
99
|
}
|
|
81
100
|
});
|
|
82
101
|
};
|
|
102
|
+
|
|
83
103
|
CardTitle.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
84
104
|
title: _propTypes.default.string,
|
|
85
105
|
empty: _propTypes.default.bool,
|
|
86
106
|
courseContent: _propTypes.default.bool
|
|
87
107
|
} : {};
|
|
108
|
+
|
|
88
109
|
const AuthorName = ({
|
|
89
110
|
author,
|
|
90
111
|
empty,
|
|
@@ -103,6 +124,7 @@ const AuthorName = ({
|
|
|
103
124
|
className: (0, _classnames.default)(_style.default.author, courseContent ? _style.default.lightTitle : _style.default.darkAuthorTitle, empty ? _style.default.empty : null)
|
|
104
125
|
}, /*#__PURE__*/_react.default.createElement("span", null, author), checkIcon);
|
|
105
126
|
};
|
|
127
|
+
|
|
106
128
|
AuthorName.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
107
129
|
author: _propTypes.default.string,
|
|
108
130
|
empty: _propTypes.default.bool,
|
|
@@ -110,6 +132,7 @@ AuthorName.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
110
132
|
certifiedAuthor: _propTypes.default.bool,
|
|
111
133
|
'aria-label': _propTypes.default.string
|
|
112
134
|
} : {};
|
|
135
|
+
|
|
113
136
|
const ContentInfo = ({
|
|
114
137
|
adaptiv,
|
|
115
138
|
author,
|
|
@@ -173,6 +196,7 @@ const ContentInfo = ({
|
|
|
173
196
|
"aria-label": (0, _get2.default)('author', ariaLabel)
|
|
174
197
|
})), progressBar);
|
|
175
198
|
};
|
|
199
|
+
|
|
176
200
|
ContentInfo.contextTypes = {
|
|
177
201
|
skin: _provider.default.childContextTypes.skin
|
|
178
202
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["MODES","HERO","CARD","THEMES","default","coorpmanager","style","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","timerIcon","microLearninglabel","EXTERNAL_CONTENT_ICONS","textColor","color","contentTypeInfo","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","bool","string","CardTitle","title","empty","courseContent","classnames","innerHTML","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","ariaLabel","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","theme","progressBarColor","inlineProgressValueStyle","backgroundColor","width","isExternalContent","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","number","ContentBadge","category","label","oneOf","shape","progression","adaptive"],"sources":["../../../src/molecule/card-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon className={style.timerIcon} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n style.innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor, 'aria-label': ariaLabel}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n aria-label={ariaLabel}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': ariaLabel\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n aria-label={get('progression', ariaLabel)}\n />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} aria-label={get('adaptive', ariaLabel)} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n aria-label={get('author', ariaLabel)}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.shape({\n author: PropTypes.string,\n progression: PropTypes.string,\n adaptive: PropTypes.string\n })\n};\n\nexport default ContentInfo;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AAAgC;AAEzB,MAAMA,KAAK,GAAG;EACnBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE;AACR,CAAC;AAAC;AAEK,MAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE,IAAI;EACbC,YAAY,EAAEC,cAAK,CAACD;AACtB,CAAC;AAAC;AAEF,MAAME,eAAe,GAAG,CAAC;EAACC,IAAI;EAAEC,IAAI;EAAEC;AAAe,CAAC,EAAEC,OAAO,KAAK;EAClE,MAAM;IAACC;EAAS,CAAC,GAAGD,OAAO;EAC3B,IAAIH,IAAI,KAAKR,KAAK,CAACE,IAAI,EAAE;IACvB,OAAO,IAAI;EACb;EAEA,IAAIO,IAAI,KAAK,SAAS,EAAE;IACtB,oBACE;MAAK,SAAS,EAAEH,cAAK,CAACO;IAAkB,gBACtC,6BAAC,2CAAS;MAAC,SAAS,EAAEP,cAAK,CAACQ;IAAU,EAAG,eACzC;MAAM,SAAS,EAAER,cAAK,CAACS;IAAmB,GAAE,aAAa,CAAQ,CAC7D;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,MAAM,EAAEb,kBAAS,CAACE,MAAM;EACxBY,eAAe,EAAEd,kBAAS,CAACC,IAAI;EAC/BqB,QAAQ,EAAEtB,kBAAS,CAACC,IAAI;EACxBI,KAAK,EAAEL,kBAAS,CAACC,IAAI;EACrBsB,QAAQ,EAAEvB,kBAAS,CAAC4C,MAAM;EAC1BxC,KAAK,EAAEJ,kBAAS,CAACE,MAAM;EACvBlB,IAAI,EAAEgB,kBAAS,CAACE,MAAM;EACtBnB,IAAI,EAAEiB,kBAAS,CAACE,MAAM;EACtBsB,aAAa,EAAEqB,qBAAY,CAAC9C,SAAS,CAAC+C,QAAQ;EAC9CrB,UAAU,EAAEoB,qBAAY,CAAC9C,SAAS,CAACgD,KAAK;EACxCrB,KAAK,EAAE1B,kBAAS,CAACgD,KAAK,CAAC,oBAAKtE,MAAM,CAAC,CAAC;EACpC,YAAY,EAAEsB,kBAAS,CAACiD,KAAK,CAAC;IAC5BpC,MAAM,EAAEb,kBAAS,CAACE,MAAM;IACxBgD,WAAW,EAAElD,kBAAS,CAACE,MAAM;IAC7BiD,QAAQ,EAAEnD,kBAAS,CAACE;EACtB,CAAC;AACH,CAAC;AAAC,eAEakB,WAAW;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["MODES","HERO","CARD","THEMES","default","coorpmanager","style","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","timerIcon","microLearninglabel","EXTERNAL_CONTENT_ICONS","textColor","color","contentTypeInfo","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","bool","string","CardTitle","title","empty","courseContent","classnames","innerHTML","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","ariaLabel","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","theme","progressBarColor","inlineProgressValueStyle","backgroundColor","width","isExternalContent","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","number","ContentBadge","category","label","oneOf","shape","progression","adaptive"],"sources":["../../../src/molecule/card-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon className={style.timerIcon} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n style.innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor, 'aria-label': ariaLabel}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n aria-label={ariaLabel}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': ariaLabel\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n aria-label={get('progression', ariaLabel)}\n />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} aria-label={get('adaptive', ariaLabel)} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n aria-label={get('author', ariaLabel)}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.shape({\n author: PropTypes.string,\n progression: PropTypes.string,\n adaptive: PropTypes.string\n })\n};\n\nexport default ContentInfo;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAKA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,IAAI,EAAE,MADa;EAEnBC,IAAI,EAAE;AAFa,CAAd;;AAKA,MAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE,IADW;EAEpBC,YAAY,EAAEC,cAAA,CAAMD;AAFA,CAAf;;;AAKP,MAAME,eAAe,GAAG,CAAC;EAACC,IAAD;EAAOC,IAAP;EAAaC;AAAb,CAAD,EAAgCC,OAAhC,KAA4C;E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|
|
@@ -2,14 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
+
|
|
5
6
|
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
7
|
+
|
|
6
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
7
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
8
12
|
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
13
|
+
|
|
9
14
|
var _link = _interopRequireDefault(require("../../atom/link"));
|
|
15
|
+
|
|
10
16
|
var _cta = _interopRequireDefault(require("../../atom/cta"));
|
|
17
|
+
|
|
11
18
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
19
|
+
|
|
12
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
13
22
|
function backgroundImage(url) {
|
|
14
23
|
return {
|
|
15
24
|
background: `linear-gradient(
|
|
@@ -19,6 +28,7 @@ function backgroundImage(url) {
|
|
|
19
28
|
backgroundSize: 'cover'
|
|
20
29
|
};
|
|
21
30
|
}
|
|
31
|
+
|
|
22
32
|
const Button = props => {
|
|
23
33
|
const {
|
|
24
34
|
onClick,
|
|
@@ -31,6 +41,7 @@ const Button = props => {
|
|
|
31
41
|
light: light
|
|
32
42
|
});
|
|
33
43
|
};
|
|
44
|
+
|
|
34
45
|
const CardWithButton = (props, context) => {
|
|
35
46
|
const {
|
|
36
47
|
lightButtonLabel,
|
|
@@ -76,6 +87,7 @@ const CardWithButton = (props, context) => {
|
|
|
76
87
|
onClick: onPrimaryButtonClick
|
|
77
88
|
})));
|
|
78
89
|
};
|
|
90
|
+
|
|
79
91
|
CardWithButton.contextTypes = {
|
|
80
92
|
translate: _provider.default.childContextTypes.translate,
|
|
81
93
|
skin: _provider.default.childContextTypes.skin
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["backgroundImage","url","background","backgroundSize","Button","props","onClick","submitValue","light","CardWithButton","context","lightButtonLabel","primaryButtonLabel","tagLabel","onLightButtonClick","onPrimaryButtonClick","backgroundImg","children","skin","primaryColor","inlineStyle","color","style","container","imageBox","filtre","image","zoom","content","levelContainer","level","avatar","buttons","lightButton","contextTypes","translate","Provider","childContextTypes","propTypes","Cta","isRequired","Link","PropTypes","string","node"],"sources":["../../../src/molecule/card-with-button/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Link from '../../atom/link';\nimport Cta from '../../atom/cta';\nimport style from './style.css';\n\nfunction backgroundImage(url) {\n return {\n background: `linear-gradient(\n rgba(0, 0, 0, 0.65), \n rgba(0, 0, 0, 0.65)\n ),url(${url})`,\n backgroundSize: 'cover'\n };\n}\n\nconst Button = props => {\n const {onClick, submitValue, light = false} = props;\n return <Cta submitValue={submitValue} onClick={onClick} light={light} />;\n};\nconst CardWithButton = (props, context) => {\n const {\n lightButtonLabel,\n primaryButtonLabel,\n tagLabel,\n onLightButtonClick,\n onPrimaryButtonClick,\n backgroundImg,\n children\n } = props;\n const {skin} = context;\n const primaryColor = get('common.primary', skin);\n const inlineStyle = {color: primaryColor};\n return (\n <div className={style.container}>\n <div className={style.imageBox}>\n <div className={style.filtre}>\n <div className={`${style.image} ${style.zoom}`} style={backgroundImage(backgroundImg)}>\n <div className={style.content}>\n {tagLabel ? (\n <div className={style.levelContainer}>\n <div className={style.level}>\n <p>{tagLabel}</p>\n </div>\n </div>\n ) : null}\n {children ? <div className={style.avatar}>{children}</div> : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.buttons}>\n {lightButtonLabel ? (\n <a className={style.lightButton} style={inlineStyle} onClick={onLightButtonClick}>\n {lightButtonLabel}\n </a>\n ) : null}\n <Button submitValue={primaryButtonLabel} onClick={onPrimaryButtonClick} />\n </div>\n </div>\n );\n};\n\nCardWithButton.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nButton.propTypes = {\n onClick: Cta.propTypes.onClick,\n submitValue: Cta.propTypes.submitValue\n};\n\nCardWithButton.propTypes = {\n lightButtonLabel: Button.propTypes.submitValue,\n primaryButtonLabel: Button.propTypes.submitValue.isRequired,\n tagLabel: Link.propTypes.children,\n onLightButtonClick: Button.propTypes.onClick,\n onPrimaryButtonClick: Button.propTypes.onClick.isRequired,\n backgroundImg: PropTypes.string.isRequired,\n children: PropTypes.node\n};\n\nexport default CardWithButton;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["backgroundImage","url","background","backgroundSize","Button","props","onClick","submitValue","light","CardWithButton","context","lightButtonLabel","primaryButtonLabel","tagLabel","onLightButtonClick","onPrimaryButtonClick","backgroundImg","children","skin","primaryColor","inlineStyle","color","style","container","imageBox","filtre","image","zoom","content","levelContainer","level","avatar","buttons","lightButton","contextTypes","translate","Provider","childContextTypes","propTypes","Cta","isRequired","Link","PropTypes","string","node"],"sources":["../../../src/molecule/card-with-button/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Link from '../../atom/link';\nimport Cta from '../../atom/cta';\nimport style from './style.css';\n\nfunction backgroundImage(url) {\n return {\n background: `linear-gradient(\n rgba(0, 0, 0, 0.65), \n rgba(0, 0, 0, 0.65)\n ),url(${url})`,\n backgroundSize: 'cover'\n };\n}\n\nconst Button = props => {\n const {onClick, submitValue, light = false} = props;\n return <Cta submitValue={submitValue} onClick={onClick} light={light} />;\n};\nconst CardWithButton = (props, context) => {\n const {\n lightButtonLabel,\n primaryButtonLabel,\n tagLabel,\n onLightButtonClick,\n onPrimaryButtonClick,\n backgroundImg,\n children\n } = props;\n const {skin} = context;\n const primaryColor = get('common.primary', skin);\n const inlineStyle = {color: primaryColor};\n return (\n <div className={style.container}>\n <div className={style.imageBox}>\n <div className={style.filtre}>\n <div className={`${style.image} ${style.zoom}`} style={backgroundImage(backgroundImg)}>\n <div className={style.content}>\n {tagLabel ? (\n <div className={style.levelContainer}>\n <div className={style.level}>\n <p>{tagLabel}</p>\n </div>\n </div>\n ) : null}\n {children ? <div className={style.avatar}>{children}</div> : null}\n </div>\n </div>\n </div>\n </div>\n <div className={style.buttons}>\n {lightButtonLabel ? (\n <a className={style.lightButton} style={inlineStyle} onClick={onLightButtonClick}>\n {lightButtonLabel}\n </a>\n ) : null}\n <Button submitValue={primaryButtonLabel} onClick={onPrimaryButtonClick} />\n </div>\n </div>\n );\n};\n\nCardWithButton.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nButton.propTypes = {\n onClick: Cta.propTypes.onClick,\n submitValue: Cta.propTypes.submitValue\n};\n\nCardWithButton.propTypes = {\n lightButtonLabel: Button.propTypes.submitValue,\n primaryButtonLabel: Button.propTypes.submitValue.isRequired,\n tagLabel: Link.propTypes.children,\n onLightButtonClick: Button.propTypes.onClick,\n onPrimaryButtonClick: Button.propTypes.onClick.isRequired,\n backgroundImg: PropTypes.string.isRequired,\n children: PropTypes.node\n};\n\nexport default CardWithButton;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;AAEA,SAASA,eAAT,CAAyBC,GAAzB,EAA8B;EAC5B,OAAO;IACLC,UAAU,EAAG;AACjB;AACA;AACA,cAAcD,GAAI,GAJT;IAKLE,cAAc,EAAE;EALX,CAAP;AAOD;;AAED,MAAMC,MAAM,GAAGC,KAAK,IAAI;EACtB,MAAM;IAACC,OAAD;IAAUC,WAAV;IAAuBC,KAAK,GAAG;EAA/B,IAAwCH,KAA9C;EACA,oBAAO,6BAAC,YAAD;IAAK,WAAW,EAAEE,WAAlB;IAA+B,OAAO,EAAED,OAAxC;IAAiD,KAAK,EAAEE;EAAxD,EAAP;AACD,CAHD;;AAIA,MAAMC,cAAc,GAAG,CAACJ,KAAD,EAAQK,OAAR,KAAoB;EACzC,M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,SADV;EAE5BjB,IAAI,EAAEkB,iBAAA,CAASC,iBAAT,CAA2BnB;AAFL,CAA9B;AAKAd,MAAM,CAACkC,SAAP,2CAAmB;EACjBhC,OAAO,EAAEiC,YAAA,CAAID,SAAJ,CAAchC,OADN;EAEjBC,WAAW,EAAEgC,YAAA,CAAID,SAAJ,CAAc/B;AAFV,CAAnB;AAKAE,cAAc,CAAC6B,SAAf,2CAA2B;EACzB3B,gBAAgB,EAAEP,MAAM,CAACkC,SAAP,CAAiB/B,WADV;EAEzBK,kBAAkB,EAAER,MAAM,CAACkC,SAAP,CAAiB/B,WAAjB,CAA6BiC,UAFxB;EAGzB3B,QAAQ,EAAE4B,aAAA,CAAKH,SAAL,CAAerB,QAHA;EAIzBH,kBAAkB,EAAEV,MAAM,CAACkC,SAAP,CAAiBhC,OAJZ;EAKzBS,oBAAoB,EAAEX,MAAM,CAACkC,SAAP,CAAiBhC,OAAjB,CAAyBkC,UALtB;EAMzBxB,aAAa,EAAE0B,kBAAA,CAAUC,MAAV,CAAiBH,UANP;EAOzBvB,QAAQ,EAAEyB,kBAAA,CAAUE;AAPK,CAA3B;eAUenC,c"}
|
|
@@ -2,15 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
+
|
|
5
6
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
6
8
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
9
|
+
|
|
7
10
|
var _map = _interopRequireDefault(require("lodash/fp/map"));
|
|
11
|
+
|
|
8
12
|
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
13
|
+
|
|
9
14
|
var _buttonLinkIconOnly = _interopRequireDefault(require("../../atom/button-link-icon-only"));
|
|
15
|
+
|
|
10
16
|
var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
|
|
17
|
+
|
|
11
18
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
19
|
+
|
|
12
20
|
var _types = _interopRequireDefault(require("./types"));
|
|
21
|
+
|
|
13
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
14
24
|
const CMPopin = props => {
|
|
15
25
|
const {
|
|
16
26
|
content,
|
|
@@ -37,6 +47,7 @@ const CMPopin = props => {
|
|
|
37
47
|
backgroundImage: `url(${backgroundImageUrl})`,
|
|
38
48
|
backgroundSize: 'cover'
|
|
39
49
|
} : null;
|
|
50
|
+
|
|
40
51
|
const renderHeader = () => {
|
|
41
52
|
if (header) return /*#__PURE__*/_react.default.createElement("img", {
|
|
42
53
|
className: _style.default.headerBackground,
|
|
@@ -53,16 +64,20 @@ const CMPopin = props => {
|
|
|
53
64
|
}, cookieTitle));
|
|
54
65
|
return null;
|
|
55
66
|
};
|
|
67
|
+
|
|
56
68
|
const getClassBtnSwitch = (index, btnList) => {
|
|
57
69
|
switch (index) {
|
|
58
70
|
case 0:
|
|
59
71
|
return _style.default.firstBtnSwitchContainer;
|
|
72
|
+
|
|
60
73
|
case btnList.length - 1:
|
|
61
74
|
return _style.default.lastBtnSwitchContainer;
|
|
75
|
+
|
|
62
76
|
default:
|
|
63
77
|
return _style.default.singleSwitchContainer;
|
|
64
78
|
}
|
|
65
79
|
};
|
|
80
|
+
|
|
66
81
|
const renderBtnSwitch = () => {
|
|
67
82
|
return _map.default.convert({
|
|
68
83
|
cap: false
|
|
@@ -98,6 +113,7 @@ const CMPopin = props => {
|
|
|
98
113
|
}));
|
|
99
114
|
})(listBtnSwicth);
|
|
100
115
|
};
|
|
116
|
+
|
|
101
117
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
102
118
|
className: mode !== 'cookie' ? _style.default.background : null,
|
|
103
119
|
style: backgroundImageStyle,
|
|
@@ -120,15 +136,13 @@ const CMPopin = props => {
|
|
|
120
136
|
className: _style.default.icon
|
|
121
137
|
}) : null, content ? /*#__PURE__*/_react.default.createElement("p", {
|
|
122
138
|
className: mode === 'alert' ? _style.default.content : _style.default.message,
|
|
123
|
-
"data-name": 'cm-popin-content'
|
|
124
|
-
// eslint-disable-next-line react/no-danger
|
|
139
|
+
"data-name": 'cm-popin-content' // eslint-disable-next-line react/no-danger
|
|
125
140
|
,
|
|
126
141
|
dangerouslySetInnerHTML: {
|
|
127
142
|
__html: content
|
|
128
143
|
}
|
|
129
144
|
}) : null), descriptionText ? /*#__PURE__*/_react.default.createElement("p", {
|
|
130
|
-
className: _style.default.descriptionText
|
|
131
|
-
// eslint-disable-next-line react/no-danger
|
|
145
|
+
className: _style.default.descriptionText // eslint-disable-next-line react/no-danger
|
|
132
146
|
,
|
|
133
147
|
dangerouslySetInnerHTML: {
|
|
134
148
|
__html: descriptionText
|
|
@@ -166,6 +180,7 @@ const CMPopin = props => {
|
|
|
166
180
|
customStyle: thirdButton.customStyle
|
|
167
181
|
})) : null)));
|
|
168
182
|
};
|
|
183
|
+
|
|
169
184
|
CMPopin.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
|
|
170
185
|
var _default = CMPopin;
|
|
171
186
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","logo","AlertDiamond","WindowUpload","MoonRocket","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","renderHeader","style","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","convert","cap","el","type","title","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","background","popinCookie","popin","popinHeader","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","propTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\nimport propTypes from './types';\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth\n } = props;\n\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const renderHeader = () => {\n if (header) return <img className={style.headerBackground} src={header} />;\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n return null;\n };\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={mode === 'cookie' ? style.popinCookie : style.popin}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <ButtonLinkIconOnly\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </header>\n <div\n className={\n mode === 'cookie' || mode === 'information'\n ? style.cookieTitleContainer\n : style.titleContainer\n }\n >\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {renderBtnSwitch()}\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n customStyle={secondButton.customStyle}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\n\nexport default CMPopin;\n"],"mappings":";;;;AAAA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AAAgC;AAEhC,MAAMA,OAAO,GAAGC,KAAK,IAAI;EACvB,MAAM;IACJC,OAAO;IACPC,IAAI,GAAG,OAAO;IACdC,WAAW;IACXC,YAAY;IACZC,OAAO;IACPC,MAAM;IACNC,IAAI;IACJC,kBAAkB;IAClBC,eAAe;IACfC,WAAW;IACXC,WAAW;IACXC,iBAAiB;IACjBC;EACF,CAAC,GAAGb,KAAK;EAET,MAAMc,IAAI,GAAG;IACXC,YAAY,EAAZA,0DAAY;IACZC,YAAY,EAAZA,6CAAY;IACZC,UAAU,EAAVA;EACF,CAAC;EACD,MAAMC,aAAa,GAAGJ,IAAI,CAACP,IAAI,CAAC;EAEhC,MAAMY,oBAAoB,GAAGX,kBAAkB,GAC3C;IACEY,eAAe,EAAG,OAAMZ,kBAAmB,GAAE;IAC7Ca,cAAc,EAAE;EAClB,CAAC,GACD,IAAI;EACR,MAAMC,YAAY,GAAG,MAAM;IACzB,IAAIhB,MAAM,EAAE,oBAAO;MAAK,SAAS,EAAEiB,cAAK,CAACC,gBAAiB;MAAC,GAAG,EAAElB;IAAO,EAAG;IAC1E,IAAIJ,IAAI,KAAK,QAAQ,EACnB,oBACE;MAAK,SAAS,EAAEqB,cAAK,CAACE;IAAa,gBACjC;MAAK,SAAS,EAAEF,cAAK,CAACG;IAAoB,gBACxC,6BAAC,iCAAM;MAAC,SAAS,EAAEH,cAAK,CAACI;IAAW,EAAG,CACnC,eACN;MAAK,SAAS,EAAEJ,cAAK,CAACZ;IAAY,GAAEA,WAAW,CAAO,CAClD;IAEV,OAAO,IAAI;EACb,CAAC;EACD,MAAMiB,iBAAiB,GAAG,CAACC,KAAK,EAAEC,OAAO,KAAK;IAC5C,QAAQD,KAAK;MAC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AI,EACP9D,YAAY,gBACX;IAAK,SAAS,EAAEA,YAAY,CAAC0D,WAAW,GAAGvC,cAAK,CAACuC,WAAW,GAAGvC,cAAK,CAACwC;EAAO,gBAC1E,6BAAC,mBAAG;IACF,KAAK,EAAE3D,YAAY,CAAC4D,KAAM;IAC1B,OAAO,EAAE5D,YAAY,CAAC6D,aAAc;IACpC,aAAY,gBAAe7D,YAAY,CAACoC,IAAK,EAAE;IAC/C,cAAYpC,YAAY,CAAC,YAAY,CAAE;IACvC,IAAI,EAAEA,YAAY,CAACoC,IAAK;IACxB,WAAW,EAAEpC,YAAY,CAAC8D;EAAY,EACtC,CACE,GACJ,IAAI,EACPxD,WAAW,gBACV;IAAK,SAAS,EAAEA,WAAW,CAACoD,WAAW,GAAGvC,cAAK,CAACuC,WAAW,GAAGvC,cAAK,CAACwC;EAAO,gBACzE,6BAAC,mBAAG;IACF,KAAK,EAAErD,WAAW,CAACsD,KAAM;IACzB,OAAO,EAAEtD,WAAW,CAACuD,aAAc;IACnC,aAAY,gBAAevD,WAAW,CAAC8B,IAAK,EAAE;IAC9C,cAAY9B,WAAW,CAAC,YAAY,CAAE;IACtC,IAAI,EAAEA,WAAW,CAAC8B,IAAK;IACvB,WAAW,EAAE9B,WAAW,CAACwD;EAAY,EACrC,CACE,GACJ,IAAI,CACJ,CACF,CACF;AAEV,CAAC;AAEDnE,OAAO,CAACoE,SAAS,2CAAGA,cAAS;AAAC,eAEfpE,OAAO;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["CMPopin","props","content","mode","firstButton","secondButton","onClose","header","icon","backgroundImageUrl","descriptionText","thirdButton","cookieTitle","descriptionBtnTxt","listBtnSwicth","logo","AlertDiamond","WindowUpload","MoonRocket","LogoComponent","backgroundImageStyle","backgroundImage","backgroundSize","renderHeader","style","headerBackground","cookieHeader","cookieIconContainer","cookieIcon","getClassBtnSwitch","index","btnList","firstBtnSwitchContainer","length","lastBtnSwitchContainer","singleSwitchContainer","renderBtnSwitch","map","convert","cap","el","type","title","value","onChange","titlePosition","theme","details","requiredSelection","disabled","id","dataName","background","popinCookie","popin","popinHeader","cookieTitleContainer","titleContainer","contentSection","message","__html","descriptionBtn","buttonContainer","largeButton","button","label","handleOnclick","customStyle","propTypes"],"sources":["../../../src/molecule/cm-popin/index.js"],"sourcesContent":["import React from 'react';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaLineSettingsCookie as Cookie,\n NovaSolidSpaceMoonRocket as MoonRocket\n} from '@coorpacademy/nova-icons';\nimport map from 'lodash/fp/map';\nimport Cta from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\nimport propTypes from './types';\n\nconst CMPopin = props => {\n const {\n content,\n mode = 'alert',\n firstButton,\n secondButton,\n onClose,\n header,\n icon,\n backgroundImageUrl,\n descriptionText,\n thirdButton,\n cookieTitle,\n descriptionBtnTxt,\n listBtnSwicth\n } = props;\n\n const logo = {\n AlertDiamond,\n WindowUpload,\n MoonRocket\n };\n const LogoComponent = logo[icon];\n\n const backgroundImageStyle = backgroundImageUrl\n ? {\n backgroundImage: `url(${backgroundImageUrl})`,\n backgroundSize: 'cover'\n }\n : null;\n const renderHeader = () => {\n if (header) return <img className={style.headerBackground} src={header} />;\n if (mode === 'cookie')\n return (\n <div className={style.cookieHeader}>\n <div className={style.cookieIconContainer}>\n <Cookie className={style.cookieIcon} />\n </div>\n <div className={style.cookieTitle}>{cookieTitle}</div>\n </div>\n );\n return null;\n };\n const getClassBtnSwitch = (index, btnList) => {\n switch (index) {\n case 0:\n return style.firstBtnSwitchContainer;\n case btnList.length - 1:\n return style.lastBtnSwitchContainer;\n default:\n return style.singleSwitchContainer;\n }\n };\n const renderBtnSwitch = () => {\n return map.convert({cap: false})((el, index) => {\n const {\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n } = el;\n return (\n <div key={index} className={getClassBtnSwitch(index, listBtnSwicth)}>\n <InputSwitch\n {...{\n type,\n title,\n value,\n onChange,\n titlePosition,\n theme,\n details,\n requiredSelection,\n disabled,\n id,\n 'data-name': dataName\n }}\n />\n </div>\n );\n })(listBtnSwicth);\n };\n return (\n <div\n className={mode !== 'cookie' ? style.background : null}\n style={backgroundImageStyle}\n data-name={'cm-popin-container'}\n >\n <div className={mode === 'cookie' ? style.popinCookie : style.popin}>\n <header className={style.popinHeader}>\n {renderHeader()}\n {onClose ? (\n <ButtonLinkIconOnly\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </header>\n <div\n className={\n mode === 'cookie' || mode === 'information'\n ? style.cookieTitleContainer\n : style.titleContainer\n }\n >\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n {content ? (\n <p\n className={mode === 'alert' ? style.content : style.message}\n data-name={'cm-popin-content'}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n ) : null}\n </div>\n {descriptionText ? (\n <p\n className={style.descriptionText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: descriptionText}}\n />\n ) : null}\n </div>\n {descriptionBtnTxt ? <div className={style.descriptionBtn}>{descriptionBtnTxt}</div> : null}\n {renderBtnSwitch()}\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={firstButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={'cm-popin-cta'}\n aria-label={firstButton['aria-label']}\n type={firstButton.type}\n customStyle={firstButton.customStyle}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={secondButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-label={secondButton['aria-label']}\n type={secondButton.type}\n customStyle={secondButton.customStyle}\n />\n </div>\n ) : null}\n {thirdButton ? (\n <div className={thirdButton.largeButton ? style.largeButton : style.button}>\n <Cta\n label={thirdButton.label}\n onClick={thirdButton.handleOnclick}\n data-name={`cm-popin-cta-${thirdButton.type}`}\n aria-label={thirdButton['aria-label']}\n type={thirdButton.type}\n customStyle={thirdButton.customStyle}\n />\n </div>\n ) : null}\n </div>\n </div>\n </div>\n );\n};\n\nCMPopin.propTypes = propTypes;\n\nexport default CMPopin;\n"],"mappings":";;;;;AAAA;;AACA;;AAMA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,OAAO,GAAGC,KAAK,IAAI;EACvB,MAAM;IACJC,OADI;IAEJC,IAAI,GAAG,OAFH;IAGJC,WAHI;IAIJC,YAJI;IAKJC,OALI;IAMJC,MANI;IAOJC,IAPI;IAQJC,kBARI;IASJC,eATI;IAUJC,WAVI;IAWJC,WAXI;IAYJC,iBAZI;IAaJC;EAbI,IAcFb,KAdJ;EAgBA,MAAMc,IAAI,GAAG;IACXC,YAAY,EAAZA,0DADW;IAEXC,YAAY,EAAZA,6CAFW;IAGXC,UAAU,EAAVA;EAHW,CAAb;EAKA,MAAMC,aAAa,GAAGJ,IAAI,CAACP,IAAD,CAA1B;EAEA,MAAMY,oBAAoB,GAAGX,kBAAkB,GAC3C;IACEY,eAAe,EAAG,OAAMZ,kBAAmB,GAD7C;IAEEa,cAAc,EAAE;EAFlB,CAD2C,GAK3C,IALJ;;EAMA,MAAMC,YAAY,GAAG,MAAM;IACzB,IAAIhB,MAAJ,EAAY,oBAAO;MAAK,SAAS,EAAEiB,cAAA,CAAMC,gBAAtB;MAAwC,GAAG,EAAElB;IAA7C,EAAP;IACZ,IAAIJ,IAAI,KAAK,QAAb,EACE,oBACE;MAAK,SAAS,EAAEqB,cAAA,CAAME;IAAtB,gBACE;MAAK,SAAS,EAAEF,cAAA,CAAMG;IAAtB,gBACE,6BAA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15 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
+
|
|
5
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
6
8
|
var _reactNative = require("react-native");
|
|
9
|
+
|
|
7
10
|
var _reactNativeModal = _interopRequireDefault(require("react-native-modal"));
|
|
11
|
+
|
|
8
12
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
13
|
+
|
|
9
14
|
var _index = _interopRequireDefault(require("../../hoc/touchable/index.native"));
|
|
15
|
+
|
|
10
16
|
var _templateContext = require("../../template/app-review/template-context");
|
|
17
|
+
|
|
11
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
12
20
|
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); }
|
|
21
|
+
|
|
13
22
|
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; }
|
|
23
|
+
|
|
14
24
|
const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
15
25
|
modalView: {
|
|
16
26
|
backgroundColor: '#fff',
|
|
@@ -67,6 +77,7 @@ const createStyleSheet = theme => _reactNative.StyleSheet.create({
|
|
|
67
77
|
color: '#ED3436'
|
|
68
78
|
}
|
|
69
79
|
});
|
|
80
|
+
|
|
70
81
|
const QuitPopinReview = props => {
|
|
71
82
|
const {
|
|
72
83
|
content,
|
|
@@ -81,11 +92,14 @@ const QuitPopinReview = props => {
|
|
|
81
92
|
} = templateContext;
|
|
82
93
|
(0, _react.useEffect)(() => {
|
|
83
94
|
const _stylesheet = createStyleSheet(theme);
|
|
95
|
+
|
|
84
96
|
setStylesheet(_stylesheet);
|
|
85
97
|
}, [theme]);
|
|
98
|
+
|
|
86
99
|
if (!styleSheet) {
|
|
87
100
|
return null;
|
|
88
101
|
}
|
|
102
|
+
|
|
89
103
|
return /*#__PURE__*/_react.default.createElement(_reactNativeModal.default, {
|
|
90
104
|
isVisible: true,
|
|
91
105
|
animationIn: "fadeIn",
|
|
@@ -120,6 +134,7 @@ const QuitPopinReview = props => {
|
|
|
120
134
|
style: [styleSheet.buttonText, styleSheet.firstButtonText]
|
|
121
135
|
}, firstButton?.label)))));
|
|
122
136
|
};
|
|
137
|
+
|
|
123
138
|
var _default = QuitPopinReview;
|
|
124
139
|
exports.default = _default;
|
|
125
140
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","modalView","backgroundColor","margin","borderRadius","textsContainer","display","alignItems","marginVertical","spacing","large","marginHorizontal","base","icon","width","height","title","color","fontWeight","bold","fontSize","lineHeight","small","descriptionText","semiBold","textAlign","buttonContainer","buttonText","secondButton","colors","cta","marginBottom","secondButtonText","white","firstButton","firstButtonText","QuitPopinReview","props","content","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","handleOnclick","label"],"sources":["../../../src/molecule/cm-popin/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {Text, TextStyle, StyleSheet, View, ViewStyle} from 'react-native';\nimport Modal from 'react-native-modal';\nimport {NovaSolidSpaceMoonRocket as MoonRocket} from '@coorpacademy/nova-icons';\nimport {Theme} from '../../variables/theme.native';\nimport Touchable from '../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {CMPopinProps} from './types';\n\ninterface StyleSheetType {\n modalView: ViewStyle;\n textsContainer: ViewStyle;\n icon: ViewStyle;\n title: TextStyle;\n descriptionText: TextStyle;\n buttonContainer: ViewStyle;\n buttonText: TextStyle;\n firstButton: ViewStyle;\n firstButtonText: TextStyle;\n secondButton: ViewStyle;\n secondButtonText: TextStyle;\n}\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n modalView: {\n backgroundColor: '#fff',\n margin: 5,\n borderRadius: 20\n },\n textsContainer: {\n display: 'flex',\n alignItems: 'center',\n marginVertical: theme.spacing.large,\n marginHorizontal: theme.spacing.base\n },\n icon: {\n width: 76,\n height: 76\n },\n title: {\n color: '#1D1D2B',\n fontWeight: theme.fontWeight.bold,\n fontSize: 20,\n lineHeight: 28,\n marginVertical: theme.spacing.small\n },\n descriptionText: {\n color: '#515161',\n fontWeight: theme.fontWeight.semiBold,\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center'\n },\n buttonContainer: {\n marginHorizontal: theme.spacing.base\n },\n buttonText: {\n fontWeight: theme.fontWeight.bold,\n fontSize: 14,\n lineHeight: 20,\n marginVertical: 12,\n textAlign: 'center'\n },\n secondButton: {\n backgroundColor: theme.colors.cta,\n borderRadius: 7,\n marginBottom: theme.spacing.small\n },\n secondButtonText: {\n color: theme.colors.white\n },\n firstButton: {\n borderRadius: 7,\n marginBottom: theme.spacing.small\n },\n firstButtonText: {\n color: '#ED3436'\n }\n });\n\nconst QuitPopinReview = (props: CMPopinProps) => {\n const {content, descriptionText, firstButton, secondButton} = props;\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <Modal isVisible animationIn=\"fadeIn\" animationOut=\"fadeOut\">\n <View style={styleSheet.modalView}>\n <View style={styleSheet.textsContainer}>\n <MoonRocket style={styleSheet.icon} color=\"#06265B\" />\n <Text style={styleSheet.title}>{content}</Text>\n <Text style={styleSheet.descriptionText}>{descriptionText}</Text>\n </View>\n <View style={styleSheet.buttonContainer}>\n <Touchable\n style={styleSheet.secondButton}\n onPress={secondButton?.handleOnclick}\n accessibilityLabel={secondButton?.['aria-label']}\n testID=\"second-button\"\n >\n <Text style={[styleSheet.buttonText, styleSheet.secondButtonText]}>\n {secondButton?.label}\n </Text>\n </Touchable>\n <Touchable\n style={styleSheet.firstButton}\n isHighlight\n onPress={firstButton?.handleOnclick}\n accessibilityLabel={firstButton?.['aria-label']}\n testID=\"first-button\"\n >\n <Text style={[styleSheet.buttonText, styleSheet.firstButtonText]}>\n {firstButton?.label}\n </Text>\n </Touchable>\n </View>\n </View>\n </Modal>\n );\n};\n\nexport default QuitPopinReview;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["createStyleSheet","theme","StyleSheet","create","modalView","backgroundColor","margin","borderRadius","textsContainer","display","alignItems","marginVertical","spacing","large","marginHorizontal","base","icon","width","height","title","color","fontWeight","bold","fontSize","lineHeight","small","descriptionText","semiBold","textAlign","buttonContainer","buttonText","secondButton","colors","cta","marginBottom","secondButtonText","white","firstButton","firstButtonText","QuitPopinReview","props","content","templateContext","useTemplateContext","styleSheet","setStylesheet","useState","useEffect","_stylesheet","handleOnclick","label"],"sources":["../../../src/molecule/cm-popin/index.native.tsx"],"sourcesContent":["import React, {useEffect, useState} from 'react';\nimport {Text, TextStyle, StyleSheet, View, ViewStyle} from 'react-native';\nimport Modal from 'react-native-modal';\nimport {NovaSolidSpaceMoonRocket as MoonRocket} from '@coorpacademy/nova-icons';\nimport {Theme} from '../../variables/theme.native';\nimport Touchable from '../../hoc/touchable/index.native';\nimport {useTemplateContext} from '../../template/app-review/template-context';\nimport {CMPopinProps} from './types';\n\ninterface StyleSheetType {\n modalView: ViewStyle;\n textsContainer: ViewStyle;\n icon: ViewStyle;\n title: TextStyle;\n descriptionText: TextStyle;\n buttonContainer: ViewStyle;\n buttonText: TextStyle;\n firstButton: ViewStyle;\n firstButtonText: TextStyle;\n secondButton: ViewStyle;\n secondButtonText: TextStyle;\n}\n\nconst createStyleSheet = (theme: Theme): StyleSheetType =>\n StyleSheet.create({\n modalView: {\n backgroundColor: '#fff',\n margin: 5,\n borderRadius: 20\n },\n textsContainer: {\n display: 'flex',\n alignItems: 'center',\n marginVertical: theme.spacing.large,\n marginHorizontal: theme.spacing.base\n },\n icon: {\n width: 76,\n height: 76\n },\n title: {\n color: '#1D1D2B',\n fontWeight: theme.fontWeight.bold,\n fontSize: 20,\n lineHeight: 28,\n marginVertical: theme.spacing.small\n },\n descriptionText: {\n color: '#515161',\n fontWeight: theme.fontWeight.semiBold,\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center'\n },\n buttonContainer: {\n marginHorizontal: theme.spacing.base\n },\n buttonText: {\n fontWeight: theme.fontWeight.bold,\n fontSize: 14,\n lineHeight: 20,\n marginVertical: 12,\n textAlign: 'center'\n },\n secondButton: {\n backgroundColor: theme.colors.cta,\n borderRadius: 7,\n marginBottom: theme.spacing.small\n },\n secondButtonText: {\n color: theme.colors.white\n },\n firstButton: {\n borderRadius: 7,\n marginBottom: theme.spacing.small\n },\n firstButtonText: {\n color: '#ED3436'\n }\n });\n\nconst QuitPopinReview = (props: CMPopinProps) => {\n const {content, descriptionText, firstButton, secondButton} = props;\n const templateContext = useTemplateContext();\n const [styleSheet, setStylesheet] = useState<StyleSheetType | null>(null);\n const {theme} = templateContext;\n\n useEffect(() => {\n const _stylesheet = createStyleSheet(theme);\n setStylesheet(_stylesheet);\n }, [theme]);\n\n if (!styleSheet) {\n return null;\n }\n\n return (\n <Modal isVisible animationIn=\"fadeIn\" animationOut=\"fadeOut\">\n <View style={styleSheet.modalView}>\n <View style={styleSheet.textsContainer}>\n <MoonRocket style={styleSheet.icon} color=\"#06265B\" />\n <Text style={styleSheet.title}>{content}</Text>\n <Text style={styleSheet.descriptionText}>{descriptionText}</Text>\n </View>\n <View style={styleSheet.buttonContainer}>\n <Touchable\n style={styleSheet.secondButton}\n onPress={secondButton?.handleOnclick}\n accessibilityLabel={secondButton?.['aria-label']}\n testID=\"second-button\"\n >\n <Text style={[styleSheet.buttonText, styleSheet.secondButtonText]}>\n {secondButton?.label}\n </Text>\n </Touchable>\n <Touchable\n style={styleSheet.firstButton}\n isHighlight\n onPress={firstButton?.handleOnclick}\n accessibilityLabel={firstButton?.['aria-label']}\n testID=\"first-button\"\n >\n <Text style={[styleSheet.buttonText, styleSheet.firstButtonText]}>\n {firstButton?.label}\n </Text>\n </Touchable>\n </View>\n </View>\n </Modal>\n );\n};\n\nexport default QuitPopinReview;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;AAiBA,MAAMA,gBAAgB,GAAIC,KAAD,IACvBC,uBAAA,CAAWC,MAAX,CAAkB;EAChBC,SAAS,EAAE;IACTC,eAAe,EAAE,MADR;IAETC,MAAM,EAAE,CAFC;IAGTC,YAAY,EAAE;EAHL,CADK;EAMhBC,cAAc,EAAE;IACdC,OAAO,EAAE,MADK;IAEdC,UAAU,EAAE,QAFE;IAGdC,cAAc,EAAEV,KAAK,CAACW,OAAN,CAAcC,KAHhB;IAIdC,gBAAgB,EAAEb,KAAK,CAACW,OAAN,CAAcG;EAJlB,CANA;EAYhBC,IAAI,EAAE;IACJC,KAAK,EAAE,EADH;IAEJC,MAAM,EAAE;EAFJ,CAZU;EAgBhBC,KAAK,EAAE;IACLC,KAAK,EAAE,SADF;IAELC,UAAU,EAAEpB,KAAK,CAACoB,UAAN,CAAiBC,IAFxB;IAGLC,QAAQ,EAAE,EAHL;IA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IAKE,MAAM,EAAC;EALT,gBAOE,6BAAC,iBAAD;IAAM,KAAK,EAAE,CAACO,UAAU,CAACd,UAAZ,EAAwBc,UAAU,CAACN,eAAnC;EAAb,GACGD,WAAW,EAAEa,KADhB,CAPF,CAXF,CANF,CADF,CADF;AAkCD,CAjDD;;eAmDeX,e"}
|
|
@@ -49,7 +49,7 @@ declare const propTypes: {
|
|
|
49
49
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
50
50
|
}> | null | undefined)[]>;
|
|
51
51
|
};
|
|
52
|
-
export type QuitPopinButton = {
|
|
52
|
+
export declare type QuitPopinButton = {
|
|
53
53
|
'aria-label'?: string;
|
|
54
54
|
label: string;
|
|
55
55
|
type: string;
|
|
@@ -59,7 +59,7 @@ export type QuitPopinButton = {
|
|
|
59
59
|
};
|
|
60
60
|
handleOnclick: () => void;
|
|
61
61
|
};
|
|
62
|
-
export type CMPopinProps = {
|
|
62
|
+
export declare type CMPopinProps = {
|
|
63
63
|
content: string;
|
|
64
64
|
icon: string;
|
|
65
65
|
mode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCd,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCd,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
+
|
|
5
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
6
8
|
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
|
+
|
|
7
10
|
var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
|
|
11
|
+
|
|
8
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
9
14
|
const propTypes = {
|
|
10
15
|
content: _propTypes.default.string,
|
|
11
16
|
mode: _propTypes.default.oneOf(['alert', 'information', 'cookie']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","firstButton","shape","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie']),\n header: PropTypes.string,\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes))\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: string;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n};\n\nexport default propTypes;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","firstButton","shape","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie']),\n header: PropTypes.string,\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes))\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: string;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,MADH;EAEhBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,CAAhB,CAFU;EAGhBC,MAAM,EAAEJ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