@coorpacademy/components 10.16.3 → 10.17.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/README.md +54 -0
- package/es/atom/autocomplete/test/fixtures.js +19 -0
- package/es/atom/autocomplete/test/fixtures.js.map +1 -0
- package/es/atom/avatar/test/fixtures.js +13 -0
- package/es/atom/avatar/test/fixtures.js.map +1 -0
- package/es/atom/button/test/fixtures.js +27 -0
- package/es/atom/button/test/fixtures.js.map +1 -0
- package/es/atom/button-link/test/fixtures.js +31 -0
- package/es/atom/button-link/test/fixtures.js.map +1 -0
- package/es/atom/button-link-icon-only/test/fixtures.js +23 -0
- package/es/atom/button-link-icon-only/test/fixtures.js.map +1 -0
- package/es/atom/button-menu/test/fixtures.js +15 -0
- package/es/atom/button-menu/test/fixtures.js.map +1 -0
- package/es/atom/card-image-preview/test/fixtures.js +15 -0
- package/es/atom/card-image-preview/test/fixtures.js.map +1 -0
- package/es/atom/catalog-section/test/fixtures.js +15 -0
- package/es/atom/catalog-section/test/fixtures.js.map +1 -0
- package/es/atom/centered-text/test/fixtures.js +13 -0
- package/es/atom/centered-text/test/fixtures.js.map +1 -0
- package/es/atom/checkbox/test/fixtures.js +19 -0
- package/es/atom/checkbox/test/fixtures.js.map +1 -0
- package/es/atom/checkbox-with-title/test/fixtures.js +15 -0
- package/es/atom/checkbox-with-title/test/fixtures.js.map +1 -0
- package/es/atom/chips/test/fixtures.js +17 -0
- package/es/atom/chips/test/fixtures.js.map +1 -0
- package/es/atom/clue/test/fixtures.js +17 -0
- package/es/atom/clue/test/fixtures.js.map +1 -0
- package/es/atom/content-badge/test/fixtures.js +29 -0
- package/es/atom/content-badge/test/fixtures.js.map +1 -0
- package/es/atom/cta/test/fixtures.js +37 -0
- package/es/atom/cta/test/fixtures.js.map +1 -0
- package/es/atom/difficulty-level/test/fixtures.js +19 -0
- package/es/atom/difficulty-level/test/fixtures.js.map +1 -0
- package/es/atom/drag-and-drop/test/fixtures.js +31 -0
- package/es/atom/drag-and-drop/test/fixtures.js.map +1 -0
- package/es/atom/empty-search-result/test/fixtures.js +13 -0
- package/es/atom/empty-search-result/test/fixtures.js.map +1 -0
- package/es/atom/image-upload/test/fixtures.js +31 -0
- package/es/atom/image-upload/test/fixtures.js.map +1 -0
- package/es/atom/input-checkbox/test/fixtures.js +25 -0
- package/es/atom/input-checkbox/test/fixtures.js.map +1 -0
- package/es/atom/input-color/test/fixtures.js +19 -0
- package/es/atom/input-color/test/fixtures.js.map +1 -0
- package/es/atom/input-doublestep/test/fixtures.js +21 -0
- package/es/atom/input-doublestep/test/fixtures.js.map +1 -0
- package/es/atom/input-html/test/fixtures.js +17 -0
- package/es/atom/input-html/test/fixtures.js.map +1 -0
- package/es/atom/input-readonly/test/fixtures.js +13 -0
- package/es/atom/input-readonly/test/fixtures.js.map +1 -0
- package/es/atom/input-search/test/fixtures.js +19 -0
- package/es/atom/input-search/test/fixtures.js.map +1 -0
- package/es/atom/input-switch/test/fixtures.js +33 -0
- package/es/atom/input-switch/test/fixtures.js.map +1 -0
- package/es/atom/input-text/test/fixtures.js +27 -0
- package/es/atom/input-text/test/fixtures.js.map +1 -0
- package/es/atom/input-text-with-title/test/fixtures.js +15 -0
- package/es/atom/input-text-with-title/test/fixtures.js.map +1 -0
- package/es/atom/input-textarea/test/fixtures.js +21 -0
- package/es/atom/input-textarea/test/fixtures.js.map +1 -0
- package/es/atom/label/test/fixtures.js +15 -0
- package/es/atom/label/test/fixtures.js.map +1 -0
- package/es/atom/life/test/fixtures.js +25 -0
- package/es/atom/life/test/fixtures.js.map +1 -0
- package/es/atom/link/test/fixtures.js +17 -0
- package/es/atom/link/test/fixtures.js.map +1 -0
- package/es/atom/loader/test/fixtures.js +15 -0
- package/es/atom/loader/test/fixtures.js.map +1 -0
- package/es/atom/lottie-wrapper/index.js +158 -0
- package/es/atom/lottie-wrapper/index.js.map +1 -0
- package/es/atom/lottie-wrapper/style.css +15 -0
- package/es/atom/lottie-wrapper/test/fixtures/confetti.js +19 -0
- package/es/atom/lottie-wrapper/test/fixtures/confetti.js.map +1 -0
- package/es/atom/lottie-wrapper/test/fixtures/controls.js +10 -0
- package/es/atom/lottie-wrapper/test/fixtures/controls.js.map +1 -0
- package/es/atom/lottie-wrapper/test/fixtures/default.js +19 -0
- package/es/atom/lottie-wrapper/test/fixtures/default.js.map +1 -0
- package/es/atom/lottie-wrapper/test/fixtures/rank.js +15 -0
- package/es/atom/lottie-wrapper/test/fixtures/rank.js.map +1 -0
- package/es/atom/lottie-wrapper/test/fixtures.js +19 -0
- package/es/atom/lottie-wrapper/test/fixtures.js.map +1 -0
- package/es/atom/lottie-wrapper/test/lottie.js +119 -0
- package/es/atom/lottie-wrapper/test/lottie.js.map +1 -0
- package/es/atom/notification/test/fixtures.js +17 -0
- package/es/atom/notification/test/fixtures.js.map +1 -0
- package/es/atom/picture/test/fixtures.js +19 -0
- package/es/atom/picture/test/fixtures.js.map +1 -0
- package/es/atom/picture-background/test/fixtures.js +19 -0
- package/es/atom/picture-background/test/fixtures.js.map +1 -0
- package/es/atom/promo-code/test/fixtures.js +17 -0
- package/es/atom/promo-code/test/fixtures.js.map +1 -0
- package/es/atom/provider/test/fixtures.js +13 -0
- package/es/atom/provider/test/fixtures.js.map +1 -0
- package/es/atom/radio-group/test/fixtures.js +17 -0
- package/es/atom/radio-group/test/fixtures.js.map +1 -0
- package/es/atom/range/test/fixtures.js +15 -0
- package/es/atom/range/test/fixtures.js.map +1 -0
- package/es/atom/resource-miniature/test/fixtures.js +21 -0
- package/es/atom/resource-miniature/test/fixtures.js.map +1 -0
- package/es/atom/review-background/test/fixtures.js +13 -0
- package/es/atom/review-background/test/fixtures.js.map +1 -0
- package/es/atom/review-header-step-item/test/fixtures.js +19 -0
- package/es/atom/review-header-step-item/test/fixtures.js.map +1 -0
- package/es/atom/review-presentation/test/fixtures.js +13 -0
- package/es/atom/review-presentation/test/fixtures.js.map +1 -0
- package/es/atom/select/test/fixtures.js +47 -0
- package/es/atom/select/test/fixtures.js.map +1 -0
- package/es/atom/slide/test/fixtures.js +21 -0
- package/es/atom/slide/test/fixtures.js.map +1 -0
- package/es/atom/social-link/test/fixtures.js +17 -0
- package/es/atom/social-link/test/fixtures.js.map +1 -0
- package/es/atom/spinner/test/fixtures.js +13 -0
- package/es/atom/spinner/test/fixtures.js.map +1 -0
- package/es/atom/tab/test/fixtures.js +13 -0
- package/es/atom/tab/test/fixtures.js.map +1 -0
- package/es/atom/tab-content/test/fixtures.js +15 -0
- package/es/atom/tab-content/test/fixtures.js.map +1 -0
- package/es/atom/tag/test/fixtures.js +21 -0
- package/es/atom/tag/test/fixtures.js.map +1 -0
- package/es/atom/title/test/fixtures.js +17 -0
- package/es/atom/title/test/fixtures.js.map +1 -0
- package/es/atom/video-upload/test/fixtures.js +21 -0
- package/es/atom/video-upload/test/fixtures.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures.js +17 -0
- package/es/atom/wizard-steps/test/fixtures.js.map +1 -0
- package/es/hoc/animation/test/fixtures.js +15 -0
- package/es/hoc/animation/test/fixtures.js.map +1 -0
- package/es/hoc/animation-scheduler/test/fixtures.js +15 -0
- package/es/hoc/animation-scheduler/test/fixtures.js.map +1 -0
- package/es/hoc/swapper/test/fixtures.js +13 -0
- package/es/hoc/swapper/test/fixtures.js.map +1 -0
- package/es/hoc/transition/test/fixtures.js +13 -0
- package/es/hoc/transition/test/fixtures.js.map +1 -0
- package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
- package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
- package/es/molecule/answer/test/fixtures.js +35 -0
- package/es/molecule/answer/test/fixtures.js.map +1 -0
- package/es/molecule/audio/test/fixtures.js +15 -0
- package/es/molecule/audio/test/fixtures.js.map +1 -0
- package/es/molecule/banner/test/fixtures.js +23 -0
- package/es/molecule/banner/test/fixtures.js.map +1 -0
- package/es/molecule/battle-request/test/fixtures.js +15 -0
- package/es/molecule/battle-request/test/fixtures.js.map +1 -0
- package/es/molecule/brand-card/test/fixtures.js +15 -0
- package/es/molecule/brand-card/test/fixtures.js.map +1 -0
- package/es/molecule/brand-card-create/test/fixtures.js +13 -0
- package/es/molecule/brand-card-create/test/fixtures.js.map +1 -0
- package/es/molecule/brand-create-form/test/fixtures.js +19 -0
- package/es/molecule/brand-create-form/test/fixtures.js.map +1 -0
- package/es/molecule/brand-download-box/test/fixtures.js +17 -0
- package/es/molecule/brand-download-box/test/fixtures.js.map +1 -0
- package/es/molecule/brand-form-group/test/fixtures.js +37 -0
- package/es/molecule/brand-form-group/test/fixtures.js.map +1 -0
- package/es/molecule/brand-tabs/test/fixtures.js +29 -0
- package/es/molecule/brand-tabs/test/fixtures.js.map +1 -0
- package/es/molecule/brand-upload-box/test/fixtures.js +17 -0
- package/es/molecule/brand-upload-box/test/fixtures.js.map +1 -0
- package/es/molecule/breadcrumbs/test/fixtures.js +13 -0
- package/es/molecule/breadcrumbs/test/fixtures.js.map +1 -0
- package/es/molecule/bullet-point-menu-button/test/fixtures.js +15 -0
- package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
- package/es/molecule/card/test/fixtures.js +45 -0
- package/es/molecule/card/test/fixtures.js.map +1 -0
- package/es/molecule/card-content/test/fixtures.js +27 -0
- package/es/molecule/card-content/test/fixtures.js.map +1 -0
- package/es/molecule/card-with-button/test/fixtures.js +17 -0
- package/es/molecule/card-with-button/test/fixtures.js.map +1 -0
- package/es/molecule/cm-popin/test/fixtures.js +17 -0
- package/es/molecule/cm-popin/test/fixtures.js.map +1 -0
- package/es/molecule/cookie-banner/test/fixtures.js +13 -0
- package/es/molecule/cookie-banner/test/fixtures.js.map +1 -0
- package/es/molecule/coorp-manager-roles/test/fixtures.js +13 -0
- package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
- package/es/molecule/course-section/test/fixtures.js +21 -0
- package/es/molecule/course-section/test/fixtures.js.map +1 -0
- package/es/molecule/course-sections/test/fixtures.js +17 -0
- package/es/molecule/course-sections/test/fixtures.js.map +1 -0
- package/es/molecule/dashboard/battle-request-list/test/fixtures.js +15 -0
- package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
- package/es/molecule/dashboard/cards-list/index.js +7 -3
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/test/fixtures.js +23 -0
- package/es/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
- package/es/molecule/dashboard/news-list/test/fixtures.js +17 -0
- package/es/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
- package/es/molecule/dashboard/review-banner/test/fixtures.js +13 -0
- package/es/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
- package/es/molecule/dashboard/start-battle/test/fixtures.js +15 -0
- package/es/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
- package/es/molecule/discipline-cta/test/fixtures.js +15 -0
- package/es/molecule/discipline-cta/test/fixtures.js.map +1 -0
- package/es/molecule/discipline-header/test/fixtures.js +27 -0
- package/es/molecule/discipline-header/test/fixtures.js.map +1 -0
- package/es/molecule/discipline-partners/test/fixtures.js +21 -0
- package/es/molecule/discipline-partners/test/fixtures.js.map +1 -0
- package/es/molecule/discipline-scope/test/fixtures.js +27 -0
- package/es/molecule/discipline-scope/test/fixtures.js.map +1 -0
- package/es/molecule/drag-and-drop/test/fixtures.js +25 -0
- package/es/molecule/drag-and-drop/test/fixtures.js.map +1 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +17 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -0
- package/es/molecule/draggable/test/fixtures.js +13 -0
- package/es/molecule/draggable/test/fixtures.js.map +1 -0
- package/es/molecule/draggable-list/test/fixtures.js +15 -0
- package/es/molecule/draggable-list/test/fixtures.js.map +1 -0
- package/es/molecule/external-content-button/test/fixtures.js +19 -0
- package/es/molecule/external-content-button/test/fixtures.js.map +1 -0
- package/es/molecule/external-content-viewer/test/fixtures.js +27 -0
- package/es/molecule/external-content-viewer/test/fixtures.js.map +1 -0
- package/es/molecule/feedback/test/fixtures.js +27 -0
- package/es/molecule/feedback/test/fixtures.js.map +1 -0
- package/es/molecule/filters/test/fixtures.js +33 -0
- package/es/molecule/filters/test/fixtures.js.map +1 -0
- package/es/molecule/forum/forum-comment/test/fixtures.js +17 -0
- package/es/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
- package/es/molecule/forum/forum-post/test/fixtures.js +31 -0
- package/es/molecule/forum/forum-post/test/fixtures.js.map +1 -0
- package/es/molecule/forum/forum-thread/test/fixtures.js +17 -0
- package/es/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
- package/es/molecule/hero/test/fixtures.js +15 -0
- package/es/molecule/hero/test/fixtures.js.map +1 -0
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js +15 -0
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +1 -0
- package/es/molecule/list-badges/test/fixtures.js +19 -0
- package/es/molecule/list-badges/test/fixtures.js.map +1 -0
- package/es/molecule/login-alert/test/fixtures.js +13 -0
- package/es/molecule/login-alert/test/fixtures.js.map +1 -0
- package/es/molecule/menu-list/test/fixtures.js +13 -0
- package/es/molecule/menu-list/test/fixtures.js.map +1 -0
- package/es/molecule/message-popin/test/fixtures.js +13 -0
- package/es/molecule/message-popin/test/fixtures.js.map +1 -0
- package/es/molecule/modal/test/fixtures.js +13 -0
- package/es/molecule/modal/test/fixtures.js.map +1 -0
- package/es/molecule/module-bubble/test/fixtures.js +17 -0
- package/es/molecule/module-bubble/test/fixtures.js.map +1 -0
- package/es/molecule/module-card/test/fixtures.js +17 -0
- package/es/molecule/module-card/test/fixtures.js.map +1 -0
- package/es/molecule/news/test/fixtures.js +23 -0
- package/es/molecule/news/test/fixtures.js.map +1 -0
- package/es/molecule/notification-banner/test/fixtures.js +17 -0
- package/es/molecule/notification-banner/test/fixtures.js.map +1 -0
- package/es/molecule/pagination/test/fixtures.js +15 -0
- package/es/molecule/pagination/test/fixtures.js.map +1 -0
- package/es/molecule/payment-form/test/fixtures.js +17 -0
- package/es/molecule/payment-form/test/fixtures.js.map +1 -0
- package/es/molecule/pdf/test/fixtures.js +13 -0
- package/es/molecule/pdf/test/fixtures.js.map +1 -0
- package/es/molecule/popin/test/fixtures.js +21 -0
- package/es/molecule/popin/test/fixtures.js.map +1 -0
- package/es/molecule/product-card/test/fixtures.js +13 -0
- package/es/molecule/product-card/test/fixtures.js.map +1 -0
- package/es/molecule/progress-bar/test/fixtures.js +15 -0
- package/es/molecule/progress-bar/test/fixtures.js.map +1 -0
- package/es/molecule/questions/drop-down/test/fixtures.js +15 -0
- package/es/molecule/questions/drop-down/test/fixtures.js.map +1 -0
- package/es/molecule/questions/free-text/test/fixtures.js +17 -0
- package/es/molecule/questions/free-text/test/fixtures.js.map +1 -0
- package/es/molecule/questions/qcm/test/fixtures.js +19 -0
- package/es/molecule/questions/qcm/test/fixtures.js.map +1 -0
- package/es/molecule/questions/qcm-drag/test/fixtures.js +15 -0
- package/es/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
- package/es/molecule/questions/qcm-graphic/test/fixtures.js +15 -0
- package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
- package/es/molecule/questions/question-range/test/fixtures.js +13 -0
- package/es/molecule/questions/question-range/test/fixtures.js.map +1 -0
- package/es/molecule/questions/template/test/fixtures.js +15 -0
- package/es/molecule/questions/template/test/fixtures.js.map +1 -0
- package/es/molecule/quick-access-card/test/fixtures.js +21 -0
- package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
- package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
- package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
- package/es/molecule/resource-player/test/fixtures.js +25 -0
- package/es/molecule/resource-player/test/fixtures.js.map +1 -0
- package/es/molecule/review-correction-popin/test/fixtures.js +15 -0
- package/es/molecule/review-correction-popin/test/fixtures.js.map +1 -0
- package/es/molecule/review-header-steps/test/fixtures.js +23 -0
- package/es/molecule/review-header-steps/test/fixtures.js.map +1 -0
- package/es/molecule/scope-content/test/fixtures.js +27 -0
- package/es/molecule/scope-content/test/fixtures.js.map +1 -0
- package/es/molecule/scope-tabs/test/fixtures.js +17 -0
- package/es/molecule/scope-tabs/test/fixtures.js.map +1 -0
- package/es/molecule/search-form/test/fixtures.js +13 -0
- package/es/molecule/search-form/test/fixtures.js.map +1 -0
- package/es/molecule/select-multiple/test/fixtures.js +31 -0
- package/es/molecule/select-multiple/test/fixtures.js.map +1 -0
- package/es/molecule/setup-cohort-item/test/fixtures.js +19 -0
- package/es/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
- package/es/molecule/setup-section/test/fixtures.js +25 -0
- package/es/molecule/setup-section/test/fixtures.js.map +1 -0
- package/es/molecule/setup-sections/test/fixtures.js +19 -0
- package/es/molecule/setup-sections/test/fixtures.js.map +1 -0
- package/es/molecule/setup-slide/test/fixtures.js +25 -0
- package/es/molecule/setup-slide/test/fixtures.js.map +1 -0
- package/es/molecule/setup-slider/test/fixtures.js +15 -0
- package/es/molecule/setup-slider/test/fixtures.js.map +1 -0
- package/es/molecule/share/test/fixtures.js +13 -0
- package/es/molecule/share/test/fixtures.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures.js +19 -0
- package/es/molecule/skill-card/test/fixtures.js.map +1 -0
- package/es/molecule/ssmenu-list/test/fixtures.js +19 -0
- package/es/molecule/ssmenu-list/test/fixtures.js.map +1 -0
- package/es/molecule/subscription-freemium/test/fixtures.js +13 -0
- package/es/molecule/subscription-freemium/test/fixtures.js.map +1 -0
- package/es/molecule/subscription-premium/test/fixtures.js +15 -0
- package/es/molecule/subscription-premium/test/fixtures.js.map +1 -0
- package/es/molecule/table/test/fixtures.js +19 -0
- package/es/molecule/table/test/fixtures.js.map +1 -0
- package/es/molecule/teams-popin/test/fixtures/loading-background.js +1 -1
- package/es/molecule/teams-popin/test/fixtures/loading-background.js.map +1 -1
- package/es/molecule/teams-popin/test/fixtures/login-background.js +1 -1
- package/es/molecule/teams-popin/test/fixtures/login-background.js.map +1 -1
- package/es/molecule/teams-popin/test/fixtures.js +29 -0
- package/es/molecule/teams-popin/test/fixtures.js.map +1 -0
- package/es/molecule/theme-image/test/fixtures.js +13 -0
- package/es/molecule/theme-image/test/fixtures.js.map +1 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js +19 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +1 -0
- package/es/molecule/titled-checkbox/test/fixtures.js +17 -0
- package/es/molecule/titled-checkbox/test/fixtures.js.map +1 -0
- package/es/molecule/unsubscribe/test/fixtures.js +15 -0
- package/es/molecule/unsubscribe/test/fixtures.js.map +1 -0
- package/es/molecule/vertical-tabs/test/fixtures.js +17 -0
- package/es/molecule/vertical-tabs/test/fixtures.js.map +1 -0
- package/es/molecule/video-iframe/test/fixtures.js +25 -0
- package/es/molecule/video-iframe/test/fixtures.js.map +1 -0
- package/es/molecule/video-player/test/fixtures.js +29 -0
- package/es/molecule/video-player/test/fixtures.js.map +1 -0
- package/es/molecule/wizard-summary/style.css +2 -1
- package/es/molecule/wizard-summary/test/fixtures.js +23 -0
- package/es/molecule/wizard-summary/test/fixtures.js.map +1 -0
- package/es/organism/accordion/container/test/fixtures.js +17 -0
- package/es/organism/accordion/container/test/fixtures.js.map +1 -0
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js +17 -0
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
- package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
- package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
- package/es/organism/accordion/part/test/fixtures.js +15 -0
- package/es/organism/accordion/part/test/fixtures.js.map +1 -0
- package/es/organism/accordion/toggler/test/fixtures.js +17 -0
- package/es/organism/accordion/toggler/test/fixtures.js.map +1 -0
- package/es/organism/brand-analytics/test/fixtures.js +23 -0
- package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
- package/es/organism/brand-dashboard/test/fixtures.js +15 -0
- package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
- package/es/organism/brand-form/test/fixtures.js +37 -0
- package/es/organism/brand-form/test/fixtures.js.map +1 -0
- package/es/organism/brand-table/test/fixtures.js +19 -0
- package/es/organism/brand-table/test/fixtures.js.map +1 -0
- package/es/organism/brand-upload/test/fixtures.js +15 -0
- package/es/organism/brand-upload/test/fixtures.js.map +1 -0
- package/es/organism/cards-grid/test/fixtures.js +19 -0
- package/es/organism/cards-grid/test/fixtures.js.map +1 -0
- package/es/organism/cart/test/fixtures.js +13 -0
- package/es/organism/cart/test/fixtures.js.map +1 -0
- package/es/organism/content-translation/test/fixtures.js +15 -0
- package/es/organism/content-translation/test/fixtures.js.map +1 -0
- package/es/organism/course-selection/test/fixtures.js +25 -0
- package/es/organism/course-selection/test/fixtures.js.map +1 -0
- package/es/organism/discussion/test/fixtures.js +19 -0
- package/es/organism/discussion/test/fixtures.js.map +1 -0
- package/es/organism/get-the-app/test/fixtures.js +13 -0
- package/es/organism/get-the-app/test/fixtures.js.map +1 -0
- package/es/organism/grid-list/test/fixtures.js +13 -0
- package/es/organism/grid-list/test/fixtures.js.map +1 -0
- package/es/organism/header/test/fixtures.js +13 -0
- package/es/organism/header/test/fixtures.js.map +1 -0
- package/es/organism/hero/test/fixtures.js +17 -0
- package/es/organism/hero/test/fixtures.js.map +1 -0
- package/es/organism/list-item/test/fixtures.js +19 -0
- package/es/organism/list-item/test/fixtures.js.map +1 -0
- package/es/organism/list-items/test/fixtures.js +17 -0
- package/es/organism/list-items/test/fixtures.js.map +1 -0
- package/es/organism/mooc/image-slider/test/fixtures.js +15 -0
- package/es/organism/mooc/image-slider/test/fixtures.js.map +1 -0
- package/es/organism/mooc-footer/test/fixtures.js +23 -0
- package/es/organism/mooc-footer/test/fixtures.js.map +1 -0
- package/es/organism/mooc-header/test/fixtures.js +31 -0
- package/es/organism/mooc-header/test/fixtures.js.map +1 -0
- package/es/organism/popin/test/fixtures.js +13 -0
- package/es/organism/popin/test/fixtures.js.map +1 -0
- package/es/organism/resource-browser/test/fixtures.js +37 -0
- package/es/organism/resource-browser/test/fixtures.js.map +1 -0
- package/es/organism/review-header/test/fixtures.js +23 -0
- package/es/organism/review-header/test/fixtures.js.map +1 -0
- package/es/organism/review-skills/test/fixtures.js +17 -0
- package/es/organism/review-skills/test/fixtures.js.map +1 -0
- package/es/organism/rewards-form/test/fixtures.js +19 -0
- package/es/organism/rewards-form/test/fixtures.js.map +1 -0
- package/es/organism/search-and-chips-results/test/fixtures.js +23 -0
- package/es/organism/search-and-chips-results/test/fixtures.js.map +1 -0
- package/es/organism/settings/test/fixtures.js +19 -0
- package/es/organism/settings/test/fixtures.js.map +1 -0
- package/es/organism/setup-header/test/fixtures.js +15 -0
- package/es/organism/setup-header/test/fixtures.js.map +1 -0
- package/es/organism/sidebar/test/fixtures.js +23 -0
- package/es/organism/sidebar/test/fixtures.js.map +1 -0
- package/es/organism/slider/test/fixtures.js +15 -0
- package/es/organism/slider/test/fixtures.js.map +1 -0
- package/es/organism/user-preferences/test/fixtures.js +13 -0
- package/es/organism/user-preferences/test/fixtures.js.map +1 -0
- package/es/organism/wizard-contents/test/fixtures.js +27 -0
- package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
- package/es/template/activity/test/fixtures.js +21 -0
- package/es/template/activity/test/fixtures.js.map +1 -0
- package/es/template/app-player/loading/test/fixtures.js +13 -0
- package/es/template/app-player/loading/test/fixtures.js.map +1 -0
- package/es/template/app-player/player/slides/footer/test/fixtures.js +29 -0
- package/es/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
- package/es/template/app-player/player/slides/header/test/fixtures.js +23 -0
- package/es/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
- package/es/template/app-player/player/slides/test/fixtures.js +79 -0
- package/es/template/app-player/player/slides/test/fixtures.js.map +1 -0
- package/es/template/app-player/player/test/fixtures.js +55 -0
- package/es/template/app-player/player/test/fixtures.js.map +1 -0
- package/es/template/app-player/popin-correction/test/fixtures.js +47 -0
- package/es/template/app-player/popin-correction/test/fixtures.js.map +1 -0
- package/es/template/app-player/popin-end/test/fixtures.js +51 -0
- package/es/template/app-player/popin-end/test/fixtures.js.map +1 -0
- package/es/template/app-player/popin-header/test/fixtures.js +29 -0
- package/es/template/app-player/popin-header/test/fixtures.js.map +1 -0
- package/es/template/back-office/brand-create/test/fixtures.js +19 -0
- package/es/template/back-office/brand-create/test/fixtures.js.map +1 -0
- package/es/template/back-office/brand-list/test/fixtures.js +17 -0
- package/es/template/back-office/brand-list/test/fixtures.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures.js +89 -0
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -0
- package/es/template/back-office/dashboard-preview/test/fixtures.js +23 -0
- package/es/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
- package/es/template/battle-requests/test/fixtures.js +13 -0
- package/es/template/battle-requests/test/fixtures.js.map +1 -0
- package/es/template/cockpit/jw-uploader/test/fixtures.js +13 -0
- package/es/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
- package/es/template/common/authors/test/fixtures.js +15 -0
- package/es/template/common/authors/test/fixtures.js.map +1 -0
- package/es/template/common/coorp-header/test/fixtures.js +15 -0
- package/es/template/common/coorp-header/test/fixtures.js.map +1 -0
- package/es/template/common/dashboard/test/fixtures.js +17 -0
- package/es/template/common/dashboard/test/fixtures.js.map +1 -0
- package/es/template/common/discipline/test/fixtures.js +47 -0
- package/es/template/common/discipline/test/fixtures.js.map +1 -0
- package/es/template/common/search-page/test/fixtures.js +17 -0
- package/es/template/common/search-page/test/fixtures.js.map +1 -0
- package/es/template/external-course/test/fixtures.js +35 -0
- package/es/template/external-course/test/fixtures.js.map +1 -0
- package/es/template/review-dashboard-skills/test/fixtures.js +17 -0
- package/es/template/review-dashboard-skills/test/fixtures.js.map +1 -0
- package/es/template/teams-dashboard/test/fixtures.js +17 -0
- package/es/template/teams-dashboard/test/fixtures.js.map +1 -0
- package/lib/atom/autocomplete/test/fixtures.js +31 -0
- package/lib/atom/autocomplete/test/fixtures.js.map +1 -0
- package/lib/atom/avatar/test/fixtures.js +22 -0
- package/lib/atom/avatar/test/fixtures.js.map +1 -0
- package/lib/atom/button/test/fixtures.js +43 -0
- package/lib/atom/button/test/fixtures.js.map +1 -0
- package/lib/atom/button-link/test/fixtures.js +49 -0
- package/lib/atom/button-link/test/fixtures.js.map +1 -0
- package/lib/atom/button-link-icon-only/test/fixtures.js +37 -0
- package/lib/atom/button-link-icon-only/test/fixtures.js.map +1 -0
- package/lib/atom/button-menu/test/fixtures.js +25 -0
- package/lib/atom/button-menu/test/fixtures.js.map +1 -0
- package/lib/atom/card-image-preview/test/fixtures.js +25 -0
- package/lib/atom/card-image-preview/test/fixtures.js.map +1 -0
- package/lib/atom/catalog-section/test/fixtures.js +25 -0
- package/lib/atom/catalog-section/test/fixtures.js.map +1 -0
- package/lib/atom/centered-text/test/fixtures.js +22 -0
- package/lib/atom/centered-text/test/fixtures.js.map +1 -0
- package/lib/atom/checkbox/test/fixtures.js +31 -0
- package/lib/atom/checkbox/test/fixtures.js.map +1 -0
- package/lib/atom/checkbox-with-title/test/fixtures.js +25 -0
- package/lib/atom/checkbox-with-title/test/fixtures.js.map +1 -0
- package/lib/atom/chips/test/fixtures.js +28 -0
- package/lib/atom/chips/test/fixtures.js.map +1 -0
- package/lib/atom/clue/test/fixtures.js +28 -0
- package/lib/atom/clue/test/fixtures.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures.js +46 -0
- package/lib/atom/content-badge/test/fixtures.js.map +1 -0
- package/lib/atom/cta/test/fixtures.js +58 -0
- package/lib/atom/cta/test/fixtures.js.map +1 -0
- package/lib/atom/difficulty-level/test/fixtures.js +31 -0
- package/lib/atom/difficulty-level/test/fixtures.js.map +1 -0
- package/lib/atom/drag-and-drop/test/fixtures.js +49 -0
- package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -0
- package/lib/atom/empty-search-result/test/fixtures.js +22 -0
- package/lib/atom/empty-search-result/test/fixtures.js.map +1 -0
- package/lib/atom/image-upload/test/fixtures.js +49 -0
- package/lib/atom/image-upload/test/fixtures.js.map +1 -0
- package/lib/atom/input-checkbox/test/fixtures.js +40 -0
- package/lib/atom/input-checkbox/test/fixtures.js.map +1 -0
- package/lib/atom/input-color/test/fixtures.js +31 -0
- package/lib/atom/input-color/test/fixtures.js.map +1 -0
- package/lib/atom/input-doublestep/test/fixtures.js +34 -0
- package/lib/atom/input-doublestep/test/fixtures.js.map +1 -0
- package/lib/atom/input-html/test/fixtures.js +28 -0
- package/lib/atom/input-html/test/fixtures.js.map +1 -0
- package/lib/atom/input-readonly/test/fixtures.js +22 -0
- package/lib/atom/input-readonly/test/fixtures.js.map +1 -0
- package/lib/atom/input-search/test/fixtures.js +31 -0
- package/lib/atom/input-search/test/fixtures.js.map +1 -0
- package/lib/atom/input-switch/test/fixtures.js +52 -0
- package/lib/atom/input-switch/test/fixtures.js.map +1 -0
- package/lib/atom/input-text/test/fixtures.js +43 -0
- package/lib/atom/input-text/test/fixtures.js.map +1 -0
- package/lib/atom/input-text-with-title/test/fixtures.js +25 -0
- package/lib/atom/input-text-with-title/test/fixtures.js.map +1 -0
- package/lib/atom/input-textarea/test/fixtures.js +34 -0
- package/lib/atom/input-textarea/test/fixtures.js.map +1 -0
- package/lib/atom/label/test/fixtures.js +25 -0
- package/lib/atom/label/test/fixtures.js.map +1 -0
- package/lib/atom/life/test/fixtures.js +40 -0
- package/lib/atom/life/test/fixtures.js.map +1 -0
- package/lib/atom/link/test/fixtures.js +28 -0
- package/lib/atom/link/test/fixtures.js.map +1 -0
- package/lib/atom/loader/test/fixtures.js +25 -0
- package/lib/atom/loader/test/fixtures.js.map +1 -0
- package/lib/atom/lottie-wrapper/index.js +184 -0
- package/lib/atom/lottie-wrapper/index.js.map +1 -0
- package/lib/atom/lottie-wrapper/style.css +15 -0
- package/lib/atom/lottie-wrapper/test/fixtures/confetti.js +24 -0
- package/lib/atom/lottie-wrapper/test/fixtures/confetti.js.map +1 -0
- package/lib/atom/lottie-wrapper/test/fixtures/controls.js +19 -0
- package/lib/atom/lottie-wrapper/test/fixtures/controls.js.map +1 -0
- package/lib/atom/lottie-wrapper/test/fixtures/default.js +24 -0
- package/lib/atom/lottie-wrapper/test/fixtures/default.js.map +1 -0
- package/lib/atom/lottie-wrapper/test/fixtures/rank.js +20 -0
- package/lib/atom/lottie-wrapper/test/fixtures/rank.js.map +1 -0
- package/lib/atom/lottie-wrapper/test/fixtures.js +31 -0
- package/lib/atom/lottie-wrapper/test/fixtures.js.map +1 -0
- package/lib/atom/lottie-wrapper/test/lottie.js +136 -0
- package/lib/atom/lottie-wrapper/test/lottie.js.map +1 -0
- package/lib/atom/notification/test/fixtures.js +28 -0
- package/lib/atom/notification/test/fixtures.js.map +1 -0
- package/lib/atom/picture/test/fixtures.js +31 -0
- package/lib/atom/picture/test/fixtures.js.map +1 -0
- package/lib/atom/picture-background/test/fixtures.js +31 -0
- package/lib/atom/picture-background/test/fixtures.js.map +1 -0
- package/lib/atom/promo-code/test/fixtures.js +28 -0
- package/lib/atom/promo-code/test/fixtures.js.map +1 -0
- package/lib/atom/provider/test/fixtures.js +22 -0
- package/lib/atom/provider/test/fixtures.js.map +1 -0
- package/lib/atom/radio-group/test/fixtures.js +28 -0
- package/lib/atom/radio-group/test/fixtures.js.map +1 -0
- package/lib/atom/range/test/fixtures.js +25 -0
- package/lib/atom/range/test/fixtures.js.map +1 -0
- package/lib/atom/resource-miniature/test/fixtures.js +34 -0
- package/lib/atom/resource-miniature/test/fixtures.js.map +1 -0
- package/lib/atom/review-background/test/fixtures.js +22 -0
- package/lib/atom/review-background/test/fixtures.js.map +1 -0
- package/lib/atom/review-header-step-item/test/fixtures.js +31 -0
- package/lib/atom/review-header-step-item/test/fixtures.js.map +1 -0
- package/lib/atom/review-presentation/test/fixtures.js +22 -0
- package/lib/atom/review-presentation/test/fixtures.js.map +1 -0
- package/lib/atom/select/test/fixtures.js +73 -0
- package/lib/atom/select/test/fixtures.js.map +1 -0
- package/lib/atom/slide/test/fixtures.js +34 -0
- package/lib/atom/slide/test/fixtures.js.map +1 -0
- package/lib/atom/social-link/test/fixtures.js +28 -0
- package/lib/atom/social-link/test/fixtures.js.map +1 -0
- package/lib/atom/spinner/test/fixtures.js +22 -0
- package/lib/atom/spinner/test/fixtures.js.map +1 -0
- package/lib/atom/tab/test/fixtures.js +22 -0
- package/lib/atom/tab/test/fixtures.js.map +1 -0
- package/lib/atom/tab-content/test/fixtures.js +25 -0
- package/lib/atom/tab-content/test/fixtures.js.map +1 -0
- package/lib/atom/tag/test/fixtures.js +34 -0
- package/lib/atom/tag/test/fixtures.js.map +1 -0
- package/lib/atom/title/test/fixtures.js +28 -0
- package/lib/atom/title/test/fixtures.js.map +1 -0
- package/lib/atom/video-upload/test/fixtures.js +34 -0
- package/lib/atom/video-upload/test/fixtures.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures.js +28 -0
- package/lib/atom/wizard-steps/test/fixtures.js.map +1 -0
- package/lib/hoc/animation/test/fixtures.js +25 -0
- package/lib/hoc/animation/test/fixtures.js.map +1 -0
- package/lib/hoc/animation-scheduler/test/fixtures.js +25 -0
- package/lib/hoc/animation-scheduler/test/fixtures.js.map +1 -0
- package/lib/hoc/swapper/test/fixtures.js +22 -0
- package/lib/hoc/swapper/test/fixtures.js.map +1 -0
- package/lib/hoc/transition/test/fixtures.js +22 -0
- package/lib/hoc/transition/test/fixtures.js.map +1 -0
- package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
- package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
- package/lib/molecule/answer/test/fixtures.js +55 -0
- package/lib/molecule/answer/test/fixtures.js.map +1 -0
- package/lib/molecule/audio/test/fixtures.js +25 -0
- package/lib/molecule/audio/test/fixtures.js.map +1 -0
- package/lib/molecule/banner/test/fixtures.js +37 -0
- package/lib/molecule/banner/test/fixtures.js.map +1 -0
- package/lib/molecule/battle-request/test/fixtures.js +25 -0
- package/lib/molecule/battle-request/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-card/test/fixtures.js +25 -0
- package/lib/molecule/brand-card/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-card-create/test/fixtures.js +22 -0
- package/lib/molecule/brand-card-create/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-create-form/test/fixtures.js +31 -0
- package/lib/molecule/brand-create-form/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-download-box/test/fixtures.js +28 -0
- package/lib/molecule/brand-download-box/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-form-group/test/fixtures.js +58 -0
- package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-tabs/test/fixtures.js +46 -0
- package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-upload-box/test/fixtures.js +28 -0
- package/lib/molecule/brand-upload-box/test/fixtures.js.map +1 -0
- package/lib/molecule/breadcrumbs/test/fixtures.js +22 -0
- package/lib/molecule/breadcrumbs/test/fixtures.js.map +1 -0
- package/lib/molecule/bullet-point-menu-button/test/fixtures.js +25 -0
- package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +1 -0
- package/lib/molecule/card/test/fixtures.js +70 -0
- package/lib/molecule/card/test/fixtures.js.map +1 -0
- package/lib/molecule/card-content/test/fixtures.js +43 -0
- package/lib/molecule/card-content/test/fixtures.js.map +1 -0
- package/lib/molecule/card-with-button/test/fixtures.js +28 -0
- package/lib/molecule/card-with-button/test/fixtures.js.map +1 -0
- package/lib/molecule/cm-popin/test/fixtures.js +28 -0
- package/lib/molecule/cm-popin/test/fixtures.js.map +1 -0
- package/lib/molecule/cookie-banner/test/fixtures.js +22 -0
- package/lib/molecule/cookie-banner/test/fixtures.js.map +1 -0
- package/lib/molecule/coorp-manager-roles/test/fixtures.js +22 -0
- package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
- package/lib/molecule/course-section/test/fixtures.js +34 -0
- package/lib/molecule/course-section/test/fixtures.js.map +1 -0
- package/lib/molecule/course-sections/test/fixtures.js +28 -0
- package/lib/molecule/course-sections/test/fixtures.js.map +1 -0
- package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +25 -0
- package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +1 -0
- package/lib/molecule/dashboard/cards-list/index.js +7 -3
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures.js +37 -0
- package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +1 -0
- package/lib/molecule/dashboard/news-list/test/fixtures.js +28 -0
- package/lib/molecule/dashboard/news-list/test/fixtures.js.map +1 -0
- package/lib/molecule/dashboard/review-banner/test/fixtures.js +22 -0
- package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +1 -0
- package/lib/molecule/dashboard/start-battle/test/fixtures.js +25 -0
- package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +1 -0
- package/lib/molecule/discipline-cta/test/fixtures.js +25 -0
- package/lib/molecule/discipline-cta/test/fixtures.js.map +1 -0
- package/lib/molecule/discipline-header/test/fixtures.js +43 -0
- package/lib/molecule/discipline-header/test/fixtures.js.map +1 -0
- package/lib/molecule/discipline-partners/test/fixtures.js +34 -0
- package/lib/molecule/discipline-partners/test/fixtures.js.map +1 -0
- package/lib/molecule/discipline-scope/test/fixtures.js +43 -0
- package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -0
- package/lib/molecule/drag-and-drop/test/fixtures.js +40 -0
- package/lib/molecule/drag-and-drop/test/fixtures.js.map +1 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +28 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -0
- package/lib/molecule/draggable/test/fixtures.js +22 -0
- package/lib/molecule/draggable/test/fixtures.js.map +1 -0
- package/lib/molecule/draggable-list/test/fixtures.js +25 -0
- package/lib/molecule/draggable-list/test/fixtures.js.map +1 -0
- package/lib/molecule/external-content-button/test/fixtures.js +31 -0
- package/lib/molecule/external-content-button/test/fixtures.js.map +1 -0
- package/lib/molecule/external-content-viewer/test/fixtures.js +43 -0
- package/lib/molecule/external-content-viewer/test/fixtures.js.map +1 -0
- package/lib/molecule/feedback/test/fixtures.js +43 -0
- package/lib/molecule/feedback/test/fixtures.js.map +1 -0
- package/lib/molecule/filters/test/fixtures.js +52 -0
- package/lib/molecule/filters/test/fixtures.js.map +1 -0
- package/lib/molecule/forum/forum-comment/test/fixtures.js +28 -0
- package/lib/molecule/forum/forum-comment/test/fixtures.js.map +1 -0
- package/lib/molecule/forum/forum-post/test/fixtures.js +49 -0
- package/lib/molecule/forum/forum-post/test/fixtures.js.map +1 -0
- package/lib/molecule/forum/forum-thread/test/fixtures.js +28 -0
- package/lib/molecule/forum/forum-thread/test/fixtures.js.map +1 -0
- package/lib/molecule/hero/test/fixtures.js +25 -0
- package/lib/molecule/hero/test/fixtures.js.map +1 -0
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js +25 -0
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +1 -0
- package/lib/molecule/list-badges/test/fixtures.js +31 -0
- package/lib/molecule/list-badges/test/fixtures.js.map +1 -0
- package/lib/molecule/login-alert/test/fixtures.js +22 -0
- package/lib/molecule/login-alert/test/fixtures.js.map +1 -0
- package/lib/molecule/menu-list/test/fixtures.js +22 -0
- package/lib/molecule/menu-list/test/fixtures.js.map +1 -0
- package/lib/molecule/message-popin/test/fixtures.js +22 -0
- package/lib/molecule/message-popin/test/fixtures.js.map +1 -0
- package/lib/molecule/modal/test/fixtures.js +22 -0
- package/lib/molecule/modal/test/fixtures.js.map +1 -0
- package/lib/molecule/module-bubble/test/fixtures.js +28 -0
- package/lib/molecule/module-bubble/test/fixtures.js.map +1 -0
- package/lib/molecule/module-card/test/fixtures.js +28 -0
- package/lib/molecule/module-card/test/fixtures.js.map +1 -0
- package/lib/molecule/news/test/fixtures.js +37 -0
- package/lib/molecule/news/test/fixtures.js.map +1 -0
- package/lib/molecule/notification-banner/test/fixtures.js +28 -0
- package/lib/molecule/notification-banner/test/fixtures.js.map +1 -0
- package/lib/molecule/pagination/test/fixtures.js +25 -0
- package/lib/molecule/pagination/test/fixtures.js.map +1 -0
- package/lib/molecule/payment-form/test/fixtures.js +28 -0
- package/lib/molecule/payment-form/test/fixtures.js.map +1 -0
- package/lib/molecule/pdf/test/fixtures.js +22 -0
- package/lib/molecule/pdf/test/fixtures.js.map +1 -0
- package/lib/molecule/popin/test/fixtures.js +34 -0
- package/lib/molecule/popin/test/fixtures.js.map +1 -0
- package/lib/molecule/product-card/test/fixtures.js +22 -0
- package/lib/molecule/product-card/test/fixtures.js.map +1 -0
- package/lib/molecule/progress-bar/test/fixtures.js +25 -0
- package/lib/molecule/progress-bar/test/fixtures.js.map +1 -0
- package/lib/molecule/questions/drop-down/test/fixtures.js +25 -0
- package/lib/molecule/questions/drop-down/test/fixtures.js.map +1 -0
- package/lib/molecule/questions/free-text/test/fixtures.js +28 -0
- package/lib/molecule/questions/free-text/test/fixtures.js.map +1 -0
- package/lib/molecule/questions/qcm/test/fixtures.js +31 -0
- package/lib/molecule/questions/qcm/test/fixtures.js.map +1 -0
- package/lib/molecule/questions/qcm-drag/test/fixtures.js +25 -0
- package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +1 -0
- package/lib/molecule/questions/qcm-graphic/test/fixtures.js +25 -0
- package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +1 -0
- package/lib/molecule/questions/question-range/test/fixtures.js +22 -0
- package/lib/molecule/questions/question-range/test/fixtures.js.map +1 -0
- package/lib/molecule/questions/template/test/fixtures.js +25 -0
- package/lib/molecule/questions/template/test/fixtures.js.map +1 -0
- package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
- package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
- package/lib/molecule/resource-player/test/fixtures.js +40 -0
- package/lib/molecule/resource-player/test/fixtures.js.map +1 -0
- package/lib/molecule/review-correction-popin/test/fixtures.js +25 -0
- package/lib/molecule/review-correction-popin/test/fixtures.js.map +1 -0
- package/lib/molecule/review-header-steps/test/fixtures.js +37 -0
- package/lib/molecule/review-header-steps/test/fixtures.js.map +1 -0
- package/lib/molecule/scope-content/test/fixtures.js +43 -0
- package/lib/molecule/scope-content/test/fixtures.js.map +1 -0
- package/lib/molecule/scope-tabs/test/fixtures.js +28 -0
- package/lib/molecule/scope-tabs/test/fixtures.js.map +1 -0
- package/lib/molecule/search-form/test/fixtures.js +22 -0
- package/lib/molecule/search-form/test/fixtures.js.map +1 -0
- package/lib/molecule/select-multiple/test/fixtures.js +49 -0
- package/lib/molecule/select-multiple/test/fixtures.js.map +1 -0
- package/lib/molecule/setup-cohort-item/test/fixtures.js +31 -0
- package/lib/molecule/setup-cohort-item/test/fixtures.js.map +1 -0
- package/lib/molecule/setup-section/test/fixtures.js +40 -0
- package/lib/molecule/setup-section/test/fixtures.js.map +1 -0
- package/lib/molecule/setup-sections/test/fixtures.js +31 -0
- package/lib/molecule/setup-sections/test/fixtures.js.map +1 -0
- package/lib/molecule/setup-slide/test/fixtures.js +40 -0
- package/lib/molecule/setup-slide/test/fixtures.js.map +1 -0
- package/lib/molecule/setup-slider/test/fixtures.js +25 -0
- package/lib/molecule/setup-slider/test/fixtures.js.map +1 -0
- package/lib/molecule/share/test/fixtures.js +22 -0
- package/lib/molecule/share/test/fixtures.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures.js +31 -0
- package/lib/molecule/skill-card/test/fixtures.js.map +1 -0
- package/lib/molecule/ssmenu-list/test/fixtures.js +31 -0
- package/lib/molecule/ssmenu-list/test/fixtures.js.map +1 -0
- package/lib/molecule/subscription-freemium/test/fixtures.js +22 -0
- package/lib/molecule/subscription-freemium/test/fixtures.js.map +1 -0
- package/lib/molecule/subscription-premium/test/fixtures.js +25 -0
- package/lib/molecule/subscription-premium/test/fixtures.js.map +1 -0
- package/lib/molecule/table/test/fixtures.js +31 -0
- package/lib/molecule/table/test/fixtures.js.map +1 -0
- package/lib/molecule/teams-popin/test/fixtures/loading-background.js +1 -1
- package/lib/molecule/teams-popin/test/fixtures/loading-background.js.map +1 -1
- package/lib/molecule/teams-popin/test/fixtures/login-background.js +1 -1
- package/lib/molecule/teams-popin/test/fixtures/login-background.js.map +1 -1
- package/lib/molecule/teams-popin/test/fixtures.js +46 -0
- package/lib/molecule/teams-popin/test/fixtures.js.map +1 -0
- package/lib/molecule/theme-image/test/fixtures.js +22 -0
- package/lib/molecule/theme-image/test/fixtures.js.map +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js +31 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +1 -0
- package/lib/molecule/titled-checkbox/test/fixtures.js +28 -0
- package/lib/molecule/titled-checkbox/test/fixtures.js.map +1 -0
- package/lib/molecule/unsubscribe/test/fixtures.js +25 -0
- package/lib/molecule/unsubscribe/test/fixtures.js.map +1 -0
- package/lib/molecule/vertical-tabs/test/fixtures.js +28 -0
- package/lib/molecule/vertical-tabs/test/fixtures.js.map +1 -0
- package/lib/molecule/video-iframe/test/fixtures.js +40 -0
- package/lib/molecule/video-iframe/test/fixtures.js.map +1 -0
- package/lib/molecule/video-player/test/fixtures.js +46 -0
- package/lib/molecule/video-player/test/fixtures.js.map +1 -0
- package/lib/molecule/wizard-summary/style.css +2 -1
- package/lib/molecule/wizard-summary/test/fixtures.js +37 -0
- package/lib/molecule/wizard-summary/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/container/test/fixtures.js +28 -0
- package/lib/organism/accordion/container/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +28 -0
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
- package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/part/test/fixtures.js +25 -0
- package/lib/organism/accordion/part/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/toggler/test/fixtures.js +28 -0
- package/lib/organism/accordion/toggler/test/fixtures.js.map +1 -0
- package/lib/organism/brand-analytics/test/fixtures.js +37 -0
- package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
- package/lib/organism/brand-dashboard/test/fixtures.js +25 -0
- package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
- package/lib/organism/brand-form/test/fixtures.js +58 -0
- package/lib/organism/brand-form/test/fixtures.js.map +1 -0
- package/lib/organism/brand-table/test/fixtures.js +31 -0
- package/lib/organism/brand-table/test/fixtures.js.map +1 -0
- package/lib/organism/brand-upload/test/fixtures.js +25 -0
- package/lib/organism/brand-upload/test/fixtures.js.map +1 -0
- package/lib/organism/cards-grid/test/fixtures.js +31 -0
- package/lib/organism/cards-grid/test/fixtures.js.map +1 -0
- package/lib/organism/cart/test/fixtures.js +22 -0
- package/lib/organism/cart/test/fixtures.js.map +1 -0
- package/lib/organism/content-translation/test/fixtures.js +25 -0
- package/lib/organism/content-translation/test/fixtures.js.map +1 -0
- package/lib/organism/course-selection/test/fixtures.js +40 -0
- package/lib/organism/course-selection/test/fixtures.js.map +1 -0
- package/lib/organism/discussion/test/fixtures.js +31 -0
- package/lib/organism/discussion/test/fixtures.js.map +1 -0
- package/lib/organism/get-the-app/test/fixtures.js +22 -0
- package/lib/organism/get-the-app/test/fixtures.js.map +1 -0
- package/lib/organism/grid-list/test/fixtures.js +22 -0
- package/lib/organism/grid-list/test/fixtures.js.map +1 -0
- package/lib/organism/header/test/fixtures.js +22 -0
- package/lib/organism/header/test/fixtures.js.map +1 -0
- package/lib/organism/hero/test/fixtures.js +28 -0
- package/lib/organism/hero/test/fixtures.js.map +1 -0
- package/lib/organism/list-item/test/fixtures.js +31 -0
- package/lib/organism/list-item/test/fixtures.js.map +1 -0
- package/lib/organism/list-items/test/fixtures.js +28 -0
- package/lib/organism/list-items/test/fixtures.js.map +1 -0
- package/lib/organism/mooc/image-slider/test/fixtures.js +25 -0
- package/lib/organism/mooc/image-slider/test/fixtures.js.map +1 -0
- package/lib/organism/mooc-footer/test/fixtures.js +37 -0
- package/lib/organism/mooc-footer/test/fixtures.js.map +1 -0
- package/lib/organism/mooc-header/test/fixtures.js +49 -0
- package/lib/organism/mooc-header/test/fixtures.js.map +1 -0
- package/lib/organism/popin/test/fixtures.js +22 -0
- package/lib/organism/popin/test/fixtures.js.map +1 -0
- package/lib/organism/resource-browser/test/fixtures.js +58 -0
- package/lib/organism/resource-browser/test/fixtures.js.map +1 -0
- package/lib/organism/review-header/test/fixtures.js +37 -0
- package/lib/organism/review-header/test/fixtures.js.map +1 -0
- package/lib/organism/review-skills/test/fixtures.js +28 -0
- package/lib/organism/review-skills/test/fixtures.js.map +1 -0
- package/lib/organism/rewards-form/test/fixtures.js +31 -0
- package/lib/organism/rewards-form/test/fixtures.js.map +1 -0
- package/lib/organism/search-and-chips-results/test/fixtures.js +37 -0
- package/lib/organism/search-and-chips-results/test/fixtures.js.map +1 -0
- package/lib/organism/settings/test/fixtures.js +31 -0
- package/lib/organism/settings/test/fixtures.js.map +1 -0
- package/lib/organism/setup-header/test/fixtures.js +25 -0
- package/lib/organism/setup-header/test/fixtures.js.map +1 -0
- package/lib/organism/sidebar/test/fixtures.js +37 -0
- package/lib/organism/sidebar/test/fixtures.js.map +1 -0
- package/lib/organism/slider/test/fixtures.js +25 -0
- package/lib/organism/slider/test/fixtures.js.map +1 -0
- package/lib/organism/user-preferences/test/fixtures.js +22 -0
- package/lib/organism/user-preferences/test/fixtures.js.map +1 -0
- package/lib/organism/wizard-contents/test/fixtures.js +43 -0
- package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
- package/lib/template/activity/test/fixtures.js +34 -0
- package/lib/template/activity/test/fixtures.js.map +1 -0
- package/lib/template/app-player/loading/test/fixtures.js +22 -0
- package/lib/template/app-player/loading/test/fixtures.js.map +1 -0
- package/lib/template/app-player/player/slides/footer/test/fixtures.js +46 -0
- package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +1 -0
- package/lib/template/app-player/player/slides/header/test/fixtures.js +37 -0
- package/lib/template/app-player/player/slides/header/test/fixtures.js.map +1 -0
- package/lib/template/app-player/player/slides/test/fixtures.js +121 -0
- package/lib/template/app-player/player/slides/test/fixtures.js.map +1 -0
- package/lib/template/app-player/player/test/fixtures.js +85 -0
- package/lib/template/app-player/player/test/fixtures.js.map +1 -0
- package/lib/template/app-player/popin-correction/test/fixtures.js +73 -0
- package/lib/template/app-player/popin-correction/test/fixtures.js.map +1 -0
- package/lib/template/app-player/popin-end/test/fixtures.js +79 -0
- package/lib/template/app-player/popin-end/test/fixtures.js.map +1 -0
- package/lib/template/app-player/popin-header/test/fixtures.js +46 -0
- package/lib/template/app-player/popin-header/test/fixtures.js.map +1 -0
- package/lib/template/back-office/brand-create/test/fixtures.js +31 -0
- package/lib/template/back-office/brand-create/test/fixtures.js.map +1 -0
- package/lib/template/back-office/brand-list/test/fixtures.js +28 -0
- package/lib/template/back-office/brand-list/test/fixtures.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures.js +136 -0
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -0
- package/lib/template/back-office/dashboard-preview/test/fixtures.js +37 -0
- package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +1 -0
- package/lib/template/battle-requests/test/fixtures.js +22 -0
- package/lib/template/battle-requests/test/fixtures.js.map +1 -0
- package/lib/template/cockpit/jw-uploader/test/fixtures.js +22 -0
- package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +1 -0
- package/lib/template/common/authors/test/fixtures.js +25 -0
- package/lib/template/common/authors/test/fixtures.js.map +1 -0
- package/lib/template/common/coorp-header/test/fixtures.js +25 -0
- package/lib/template/common/coorp-header/test/fixtures.js.map +1 -0
- package/lib/template/common/dashboard/test/fixtures.js +28 -0
- package/lib/template/common/dashboard/test/fixtures.js.map +1 -0
- package/lib/template/common/discipline/test/fixtures.js +73 -0
- package/lib/template/common/discipline/test/fixtures.js.map +1 -0
- package/lib/template/common/search-page/test/fixtures.js +28 -0
- package/lib/template/common/search-page/test/fixtures.js.map +1 -0
- package/lib/template/external-course/test/fixtures.js +55 -0
- package/lib/template/external-course/test/fixtures.js.map +1 -0
- package/lib/template/review-dashboard-skills/test/fixtures.js +28 -0
- package/lib/template/review-dashboard-skills/test/fixtures.js.map +1 -0
- package/lib/template/teams-dashboard/test/fixtures.js +28 -0
- package/lib/template/teams-dashboard/test/fixtures.js.map +1 -0
- package/package.json +7 -4
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _cmDefault = _interopRequireDefault(require("./fixtures/cm-default"));
|
|
12
|
+
|
|
13
|
+
var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
14
|
+
|
|
15
|
+
var _disabled = _interopRequireDefault(require("./fixtures/disabled"));
|
|
16
|
+
|
|
17
|
+
var _empty = _interopRequireDefault(require("./fixtures/empty"));
|
|
18
|
+
|
|
19
|
+
var _error = _interopRequireDefault(require("./fixtures/error"));
|
|
20
|
+
|
|
21
|
+
var _modified = _interopRequireDefault(require("./fixtures/modified"));
|
|
22
|
+
|
|
23
|
+
var _notitle = _interopRequireDefault(require("./fixtures/notitle"));
|
|
24
|
+
|
|
25
|
+
var _required = _interopRequireDefault(require("./fixtures/required"));
|
|
26
|
+
|
|
27
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
|
+
|
|
29
|
+
(0, _ava.default)('Atom › AtomInputText > should have valid propTypes', t => {
|
|
30
|
+
t.pass();
|
|
31
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
32
|
+
t.not(value, undefined, `PropType for "Atom.AtomInputText.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
(0, _ava.default)('Atom › AtomInputText › CmDefault › should be rendered', _renderComponent.default, _.default, _cmDefault.default);
|
|
36
|
+
(0, _ava.default)('Atom › AtomInputText › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
37
|
+
(0, _ava.default)('Atom › AtomInputText › Disabled › should be rendered', _renderComponent.default, _.default, _disabled.default);
|
|
38
|
+
(0, _ava.default)('Atom › AtomInputText › Empty › should be rendered', _renderComponent.default, _.default, _empty.default);
|
|
39
|
+
(0, _ava.default)('Atom › AtomInputText › Error › should be rendered', _renderComponent.default, _.default, _error.default);
|
|
40
|
+
(0, _ava.default)('Atom › AtomInputText › Modified › should be rendered', _renderComponent.default, _.default, _modified.default);
|
|
41
|
+
(0, _ava.default)('Atom › AtomInputText › Notitle › should be rendered', _renderComponent.default, _.default, _notitle.default);
|
|
42
|
+
(0, _ava.default)('Atom › AtomInputText › Required › should be rendered', _renderComponent.default, _.default, _required.default);
|
|
43
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/input-text/test/fixtures.js"],"names":["t","pass","AtomInputText","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCmDefault","fixtureDefault","fixtureDisabled","fixtureEmpty","fixtureError","fixtureModified","fixtureNotitle","fixtureRequired"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,oDAAL,EAA2DA,CAAC,IAAI;AAC9DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAcC,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8CAA6CF,GAAI,mEAA1E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAmGO,kBAAnG;AACA,kBAAK,qDAAL,EAA4DD,wBAA5D,EAAkFN,SAAlF,EAAiGQ,gBAAjG;AACA,kBAAK,sDAAL,EAA6DF,wBAA7D,EAAmFN,SAAnF,EAAkGS,iBAAlG;AACA,kBAAK,mDAAL,EAA0DH,wBAA1D,EAAgFN,SAAhF,EAA+FU,cAA/F;AACA,kBAAK,mDAAL,EAA0DJ,wBAA1D,EAAgFN,SAAhF,EAA+FW,cAA/F;AACA,kBAAK,sDAAL,EAA6DL,wBAA7D,EAAmFN,SAAnF,EAAkGY,iBAAlG;AACA,kBAAK,qDAAL,EAA4DN,wBAA5D,EAAkFN,SAAlF,EAAiGa,gBAAjG;AACA,kBAAK,sDAAL,EAA6DP,wBAA7D,EAAmFN,SAAnF,EAAkGc,iBAAlG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputText from '..';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\nimport fixtureNotitle from './fixtures/notitle';\nimport fixtureRequired from './fixtures/required';\n\ntest('Atom › AtomInputText > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputText.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputText.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputText › CmDefault › should be rendered', renderComponentMacro, AtomInputText, fixtureCmDefault);\ntest('Atom › AtomInputText › Default › should be rendered', renderComponentMacro, AtomInputText, fixtureDefault);\ntest('Atom › AtomInputText › Disabled › should be rendered', renderComponentMacro, AtomInputText, fixtureDisabled);\ntest('Atom › AtomInputText › Empty › should be rendered', renderComponentMacro, AtomInputText, fixtureEmpty);\ntest('Atom › AtomInputText › Error › should be rendered', renderComponentMacro, AtomInputText, fixtureError);\ntest('Atom › AtomInputText › Modified › should be rendered', renderComponentMacro, AtomInputText, fixtureModified);\ntest('Atom › AtomInputText › Notitle › should be rendered', renderComponentMacro, AtomInputText, fixtureNotitle);\ntest('Atom › AtomInputText › Required › should be rendered', renderComponentMacro, AtomInputText, fixtureRequired);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
12
|
+
|
|
13
|
+
var _error = _interopRequireDefault(require("./fixtures/error"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
|
|
17
|
+
(0, _ava.default)('Atom › AtomInputTextWithTitle > should have valid propTypes', t => {
|
|
18
|
+
t.pass();
|
|
19
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
20
|
+
t.not(value, undefined, `PropType for "Atom.AtomInputTextWithTitle.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
(0, _ava.default)('Atom › AtomInputTextWithTitle › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
24
|
+
(0, _ava.default)('Atom › AtomInputTextWithTitle › Error › should be rendered', _renderComponent.default, _.default, _error.default);
|
|
25
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/input-text-with-title/test/fixtures.js"],"names":["t","pass","AtomInputTextWithTitle","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureError"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,6DAAL,EAAoEA,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAuBC,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,8DAAL,EAAqEG,wBAArE,EAA2FN,SAA3F,EAAmHO,gBAAnH;AACA,kBAAK,4DAAL,EAAmED,wBAAnE,EAAyFN,SAAzF,EAAiHQ,cAAjH","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputTextWithTitle from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\n\ntest('Atom › AtomInputTextWithTitle > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputTextWithTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputTextWithTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputTextWithTitle › Default › should be rendered', renderComponentMacro, AtomInputTextWithTitle, fixtureDefault);\ntest('Atom › AtomInputTextWithTitle › Error › should be rendered', renderComponentMacro, AtomInputTextWithTitle, fixtureError);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _cmDefault = _interopRequireDefault(require("./fixtures/cm-default"));
|
|
12
|
+
|
|
13
|
+
var _cmEmpty = _interopRequireDefault(require("./fixtures/cm-empty"));
|
|
14
|
+
|
|
15
|
+
var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
16
|
+
|
|
17
|
+
var _empty = _interopRequireDefault(require("./fixtures/empty"));
|
|
18
|
+
|
|
19
|
+
var _error = _interopRequireDefault(require("./fixtures/error"));
|
|
20
|
+
|
|
21
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
+
|
|
23
|
+
(0, _ava.default)('Atom › AtomInputTextarea > should have valid propTypes', t => {
|
|
24
|
+
t.pass();
|
|
25
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
26
|
+
t.not(value, undefined, `PropType for "Atom.AtomInputTextarea.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
(0, _ava.default)('Atom › AtomInputTextarea › CmDefault › should be rendered', _renderComponent.default, _.default, _cmDefault.default);
|
|
30
|
+
(0, _ava.default)('Atom › AtomInputTextarea › CmEmpty › should be rendered', _renderComponent.default, _.default, _cmEmpty.default);
|
|
31
|
+
(0, _ava.default)('Atom › AtomInputTextarea › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
32
|
+
(0, _ava.default)('Atom › AtomInputTextarea › Empty › should be rendered', _renderComponent.default, _.default, _empty.default);
|
|
33
|
+
(0, _ava.default)('Atom › AtomInputTextarea › Error › should be rendered', _renderComponent.default, _.default, _error.default);
|
|
34
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/input-textarea/test/fixtures.js"],"names":["t","pass","AtomInputTextarea","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCmDefault","fixtureCmEmpty","fixtureDefault","fixtureEmpty","fixtureError"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,wDAAL,EAA+DA,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAkBC,SAA1B,EAAqC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,2DAAL,EAAkEG,wBAAlE,EAAwFN,SAAxF,EAA2GO,kBAA3G;AACA,kBAAK,yDAAL,EAAgED,wBAAhE,EAAsFN,SAAtF,EAAyGQ,gBAAzG;AACA,kBAAK,yDAAL,EAAgEF,wBAAhE,EAAsFN,SAAtF,EAAyGS,gBAAzG;AACA,kBAAK,uDAAL,EAA8DH,wBAA9D,EAAoFN,SAApF,EAAuGU,cAAvG;AACA,kBAAK,uDAAL,EAA8DJ,wBAA9D,EAAoFN,SAApF,EAAuGW,cAAvG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputTextarea from '..';\nimport fixtureCmDefault from './fixtures/cm-default';\nimport fixtureCmEmpty from './fixtures/cm-empty';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\n\ntest('Atom › AtomInputTextarea > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputTextarea.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputTextarea.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputTextarea › CmDefault › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmDefault);\ntest('Atom › AtomInputTextarea › CmEmpty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureCmEmpty);\ntest('Atom › AtomInputTextarea › Default › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureDefault);\ntest('Atom › AtomInputTextarea › Empty › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureEmpty);\ntest('Atom › AtomInputTextarea › Error › should be rendered', renderComponentMacro, AtomInputTextarea, fixtureError);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _oneChild = _interopRequireDefault(require("./fixtures/one-child"));
|
|
12
|
+
|
|
13
|
+
var _twoChildren = _interopRequireDefault(require("./fixtures/two-children"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
|
|
17
|
+
(0, _ava.default)('Atom › AtomLabel > should have valid propTypes', t => {
|
|
18
|
+
t.pass();
|
|
19
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
20
|
+
t.not(value, undefined, `PropType for "Atom.AtomLabel.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
(0, _ava.default)('Atom › AtomLabel › OneChild › should be rendered', _renderComponent.default, _.default, _oneChild.default);
|
|
24
|
+
(0, _ava.default)('Atom › AtomLabel › TwoChildren › should be rendered', _renderComponent.default, _.default, _twoChildren.default);
|
|
25
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/label/test/fixtures.js"],"names":["t","pass","AtomLabel","propTypes","value","key","not","undefined","renderComponentMacro","fixtureOneChild","fixtureTwoChildren"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,gDAAL,EAAuDA,CAAC,IAAI;AAC1DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAUC,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0CAAyCF,GAAI,mEAAtE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,kDAAL,EAAyDG,wBAAzD,EAA+EN,SAA/E,EAA0FO,iBAA1F;AACA,kBAAK,qDAAL,EAA4DD,wBAA5D,EAAkFN,SAAlF,EAA6FQ,oBAA7F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLabel from '..';\nimport fixtureOneChild from './fixtures/one-child';\nimport fixtureTwoChildren from './fixtures/two-children';\n\ntest('Atom › AtomLabel > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLabel.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLabel.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLabel › OneChild › should be rendered', renderComponentMacro, AtomLabel, fixtureOneChild);\ntest('Atom › AtomLabel › TwoChildren › should be rendered', renderComponentMacro, AtomLabel, fixtureTwoChildren);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _animatedExtraLife = _interopRequireDefault(require("./fixtures/animated-extra-life"));
|
|
12
|
+
|
|
13
|
+
var _animatedFail = _interopRequireDefault(require("./fixtures/animated-fail"));
|
|
14
|
+
|
|
15
|
+
var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
16
|
+
|
|
17
|
+
var _fail = _interopRequireDefault(require("./fixtures/fail"));
|
|
18
|
+
|
|
19
|
+
var _null = _interopRequireDefault(require("./fixtures/null"));
|
|
20
|
+
|
|
21
|
+
var _overlayedExtraLife = _interopRequireDefault(require("./fixtures/overlayed-extra-life"));
|
|
22
|
+
|
|
23
|
+
var _small = _interopRequireDefault(require("./fixtures/small"));
|
|
24
|
+
|
|
25
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
|
+
|
|
27
|
+
(0, _ava.default)('Atom › AtomLife > should have valid propTypes', t => {
|
|
28
|
+
t.pass();
|
|
29
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
30
|
+
t.not(value, undefined, `PropType for "Atom.AtomLife.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
(0, _ava.default)('Atom › AtomLife › AnimatedExtraLife › should be rendered', _renderComponent.default, _.default, _animatedExtraLife.default);
|
|
34
|
+
(0, _ava.default)('Atom › AtomLife › AnimatedFail › should be rendered', _renderComponent.default, _.default, _animatedFail.default);
|
|
35
|
+
(0, _ava.default)('Atom › AtomLife › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
36
|
+
(0, _ava.default)('Atom › AtomLife › Fail › should be rendered', _renderComponent.default, _.default, _fail.default);
|
|
37
|
+
(0, _ava.default)('Atom › AtomLife › Null › should be rendered', _renderComponent.default, _.default, _null.default);
|
|
38
|
+
(0, _ava.default)('Atom › AtomLife › OverlayedExtraLife › should be rendered', _renderComponent.default, _.default, _overlayedExtraLife.default);
|
|
39
|
+
(0, _ava.default)('Atom › AtomLife › Small › should be rendered', _renderComponent.default, _.default, _small.default);
|
|
40
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/life/test/fixtures.js"],"names":["t","pass","AtomLife","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnimatedExtraLife","fixtureAnimatedFail","fixtureDefault","fixtureFail","fixtureNull","fixtureOverlayedExtraLife","fixtureSmall"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+CAAL,EAAsDA,CAAC,IAAI;AACzDA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAASC,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC1CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yCAAwCF,GAAI,mEAArE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,0DAAL,EAAiEG,wBAAjE,EAAuFN,SAAvF,EAAiGO,0BAAjG;AACA,kBAAK,qDAAL,EAA4DD,wBAA5D,EAAkFN,SAAlF,EAA4FQ,qBAA5F;AACA,kBAAK,gDAAL,EAAuDF,wBAAvD,EAA6EN,SAA7E,EAAuFS,gBAAvF;AACA,kBAAK,6CAAL,EAAoDH,wBAApD,EAA0EN,SAA1E,EAAoFU,aAApF;AACA,kBAAK,6CAAL,EAAoDJ,wBAApD,EAA0EN,SAA1E,EAAoFW,aAApF;AACA,kBAAK,2DAAL,EAAkEL,wBAAlE,EAAwFN,SAAxF,EAAkGY,2BAAlG;AACA,kBAAK,8CAAL,EAAqDN,wBAArD,EAA2EN,SAA3E,EAAqFa,cAArF","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLife from '..';\nimport fixtureAnimatedExtraLife from './fixtures/animated-extra-life';\nimport fixtureAnimatedFail from './fixtures/animated-fail';\nimport fixtureDefault from './fixtures/default';\nimport fixtureFail from './fixtures/fail';\nimport fixtureNull from './fixtures/null';\nimport fixtureOverlayedExtraLife from './fixtures/overlayed-extra-life';\nimport fixtureSmall from './fixtures/small';\n\ntest('Atom › AtomLife > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLife.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLife.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLife › AnimatedExtraLife › should be rendered', renderComponentMacro, AtomLife, fixtureAnimatedExtraLife);\ntest('Atom › AtomLife › AnimatedFail › should be rendered', renderComponentMacro, AtomLife, fixtureAnimatedFail);\ntest('Atom › AtomLife › Default › should be rendered', renderComponentMacro, AtomLife, fixtureDefault);\ntest('Atom › AtomLife › Fail › should be rendered', renderComponentMacro, AtomLife, fixtureFail);\ntest('Atom › AtomLife › Null › should be rendered', renderComponentMacro, AtomLife, fixtureNull);\ntest('Atom › AtomLife › OverlayedExtraLife › should be rendered', renderComponentMacro, AtomLife, fixtureOverlayedExtraLife);\ntest('Atom › AtomLife › Small › should be rendered', renderComponentMacro, AtomLife, fixtureSmall);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _download = _interopRequireDefault(require("./fixtures/download"));
|
|
12
|
+
|
|
13
|
+
var _href = _interopRequireDefault(require("./fixtures/href"));
|
|
14
|
+
|
|
15
|
+
var _styledLink = _interopRequireDefault(require("./fixtures/styled-link"));
|
|
16
|
+
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
+
|
|
19
|
+
(0, _ava.default)('Atom › AtomLink > should have valid propTypes', t => {
|
|
20
|
+
t.pass();
|
|
21
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
22
|
+
t.not(value, undefined, `PropType for "Atom.AtomLink.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
(0, _ava.default)('Atom › AtomLink › Download › should be rendered', _renderComponent.default, _.default, _download.default);
|
|
26
|
+
(0, _ava.default)('Atom › AtomLink › Href › should be rendered', _renderComponent.default, _.default, _href.default);
|
|
27
|
+
(0, _ava.default)('Atom › AtomLink › StyledLink › should be rendered', _renderComponent.default, _.default, _styledLink.default);
|
|
28
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/link/test/fixtures.js"],"names":["t","pass","AtomLink","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDownload","fixtureHref","fixtureStyledLink"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+CAAL,EAAsDA,CAAC,IAAI;AACzDA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAASC,SAAjB,EAA4B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC1CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yCAAwCF,GAAI,mEAArE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,iDAAL,EAAwDG,wBAAxD,EAA8EN,SAA9E,EAAwFO,iBAAxF;AACA,kBAAK,6CAAL,EAAoDD,wBAApD,EAA0EN,SAA1E,EAAoFQ,aAApF;AACA,kBAAK,mDAAL,EAA0DF,wBAA1D,EAAgFN,SAAhF,EAA0FS,mBAA1F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLink from '..';\nimport fixtureDownload from './fixtures/download';\nimport fixtureHref from './fixtures/href';\nimport fixtureStyledLink from './fixtures/styled-link';\n\ntest('Atom › AtomLink > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLink.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLink.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLink › Download › should be rendered', renderComponentMacro, AtomLink, fixtureDownload);\ntest('Atom › AtomLink › Href › should be rendered', renderComponentMacro, AtomLink, fixtureHref);\ntest('Atom › AtomLink › StyledLink › should be rendered', renderComponentMacro, AtomLink, fixtureStyledLink);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _ava = _interopRequireDefault(require("ava"));
|
|
4
|
+
|
|
5
|
+
var _forEach = _interopRequireDefault(require("lodash/forEach"));
|
|
6
|
+
|
|
7
|
+
var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require(".."));
|
|
10
|
+
|
|
11
|
+
var _coorpmanager = _interopRequireDefault(require("./fixtures/coorpmanager"));
|
|
12
|
+
|
|
13
|
+
var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
|
|
17
|
+
(0, _ava.default)('Atom › AtomLoader > should have valid propTypes', t => {
|
|
18
|
+
t.pass();
|
|
19
|
+
(0, _forEach.default)(_.default.propTypes, (value, key) => {
|
|
20
|
+
t.not(value, undefined, `PropType for "Atom.AtomLoader.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
(0, _ava.default)('Atom › AtomLoader › Coorpmanager › should be rendered', _renderComponent.default, _.default, _coorpmanager.default);
|
|
24
|
+
(0, _ava.default)('Atom › AtomLoader › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
25
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/loader/test/fixtures.js"],"names":["t","pass","AtomLoader","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCoorpmanager","fixtureDefault"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,iDAAL,EAAwDA,CAAC,IAAI;AAC3DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAWC,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC5CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2CAA0CF,GAAI,mEAAvE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uDAAL,EAA8DG,wBAA9D,EAAoFN,SAApF,EAAgGO,qBAAhG;AACA,kBAAK,kDAAL,EAAyDD,wBAAzD,EAA+EN,SAA/E,EAA2FQ,gBAA3F","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomLoader from '..';\nimport fixtureCoorpmanager from './fixtures/coorpmanager';\nimport fixtureDefault from './fixtures/default';\n\ntest('Atom › AtomLoader > should have valid propTypes', t => {\n t.pass();\n forEach(AtomLoader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomLoader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomLoader › Coorpmanager › should be rendered', renderComponentMacro, AtomLoader, fixtureCoorpmanager);\ntest('Atom › AtomLoader › Default › should be rendered', renderComponentMacro, AtomLoader, fixtureDefault);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.fetchAndLoadAnimation = exports.ANIMATION_CONTROL = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _lottieWeb = _interopRequireDefault(require("lottie-web"));
|
|
13
|
+
|
|
14
|
+
var _get = _interopRequireDefault(require("lodash/fp/get"));
|
|
15
|
+
|
|
16
|
+
var _has = _interopRequireDefault(require("lodash/fp/has"));
|
|
17
|
+
|
|
18
|
+
var _includes = _interopRequireDefault(require("lodash/fp/includes"));
|
|
19
|
+
|
|
20
|
+
var _keys = _interopRequireDefault(require("lodash/fp/keys"));
|
|
21
|
+
|
|
22
|
+
var _omit = _interopRequireDefault(require("lodash/fp/omit"));
|
|
23
|
+
|
|
24
|
+
var _isomorphicUnfetch = _interopRequireDefault(require("isomorphic-unfetch"));
|
|
25
|
+
|
|
26
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
31
|
+
|
|
32
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
|
|
33
|
+
|
|
34
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
|
+
|
|
36
|
+
const ANIMATION_CONTROL = {
|
|
37
|
+
play: 'play',
|
|
38
|
+
pause: 'pause',
|
|
39
|
+
stop: 'stop',
|
|
40
|
+
loading: 'loading'
|
|
41
|
+
};
|
|
42
|
+
exports.ANIMATION_CONTROL = ANIMATION_CONTROL;
|
|
43
|
+
|
|
44
|
+
const isIE11 = () => {
|
|
45
|
+
if (typeof window === 'undefined') return;
|
|
46
|
+
const userAgent = (0, _get.default)('navigator.userAgent', window);
|
|
47
|
+
const hasMsCrypto = (0, _has.default)('msCrypto', window);
|
|
48
|
+
const hasRevision = (0, _includes.default)('rv:', userAgent);
|
|
49
|
+
const hasTrident = (0, _includes.default)('Trident/', userAgent);
|
|
50
|
+
return hasMsCrypto || hasRevision && hasTrident;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const fetchAndLoadAnimation = async (_lottie, _fetch, animationSrc, containerRef, loop, animationClassnames, hideOnTransparent, autoplay) => {
|
|
54
|
+
const animationUrl = new URL(animationSrc).toString();
|
|
55
|
+
const fetchResult = await _fetch(animationUrl, {
|
|
56
|
+
headers: {
|
|
57
|
+
'X-Requested-With': 'XMLHttpRequest',
|
|
58
|
+
'Content-Type': 'application/json'
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const animationData = await fetchResult.json();
|
|
62
|
+
|
|
63
|
+
const animation = _lottie.loadAnimation({
|
|
64
|
+
container: containerRef.current,
|
|
65
|
+
// the dom element that will contain the animation
|
|
66
|
+
renderer: 'svg',
|
|
67
|
+
autoplay,
|
|
68
|
+
loop,
|
|
69
|
+
animationData,
|
|
70
|
+
rendererSettings: {
|
|
71
|
+
className: animationClassnames,
|
|
72
|
+
hideOnTransparent,
|
|
73
|
+
preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
return animation;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.fetchAndLoadAnimation = fetchAndLoadAnimation;
|
|
82
|
+
|
|
83
|
+
const LottieWrapper = props => {
|
|
84
|
+
const {
|
|
85
|
+
className,
|
|
86
|
+
'data-name': dataName,
|
|
87
|
+
'aria-label': ariaLabel,
|
|
88
|
+
animationSrc,
|
|
89
|
+
loop = false,
|
|
90
|
+
rendererSettings = {},
|
|
91
|
+
width,
|
|
92
|
+
height,
|
|
93
|
+
ie11ImageBackup,
|
|
94
|
+
backupImageClassName,
|
|
95
|
+
autoplay = true,
|
|
96
|
+
animationControl
|
|
97
|
+
} = props;
|
|
98
|
+
const {
|
|
99
|
+
className: animationClassName,
|
|
100
|
+
hideOnTransparent = true
|
|
101
|
+
} = rendererSettings;
|
|
102
|
+
const containerRef = (0, _react.useRef)(null); // lottie's animation instance
|
|
103
|
+
|
|
104
|
+
const [animationItem, setAnimationItem] = (0, _react.useState)(null);
|
|
105
|
+
const [isAnimationVisible, setIsAnimationVisible] = (0, _react.useState)(autoplay);
|
|
106
|
+
|
|
107
|
+
const _isIE11 = (0, _react.useMemo)(() => isIE11(), []);
|
|
108
|
+
|
|
109
|
+
const wrapperClassName = (0, _react.useMemo)(() => (0, _classnames.default)(className, _style.default.lottieContainer), [className]);
|
|
110
|
+
const lottieAnimationClassName = (0, _react.useMemo)(() => (0, _classnames.default)(animationClassName, _style.default.animation), [animationClassName]);
|
|
111
|
+
const ie11BackupImageClassName = (0, _react.useMemo)(() => (0, _classnames.default)(backupImageClassName, _style.default.backupImage), [backupImageClassName]);
|
|
112
|
+
(0, _react.useEffect)(() => {
|
|
113
|
+
// enzyme does not handle well the state update after an async useEffect in tests
|
|
114
|
+
// to remove when the migration towards @testing-library/react is done
|
|
115
|
+
|
|
116
|
+
/* istanbul ignore next */
|
|
117
|
+
if (animationItem && (0, _includes.default)(animationControl, (0, _keys.default)((0, _omit.default)('loading', ANIMATION_CONTROL))) && !autoplay) {
|
|
118
|
+
setIsAnimationVisible(true);
|
|
119
|
+
animationItem[animationControl]();
|
|
120
|
+
if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);
|
|
121
|
+
}
|
|
122
|
+
}, [animationControl, animationItem, autoplay]);
|
|
123
|
+
(0, _react.useEffect)(() => {
|
|
124
|
+
const loadAnimation = async () => {
|
|
125
|
+
if (!_isIE11 && !animationItem) {
|
|
126
|
+
/* istanbul ignore else */
|
|
127
|
+
if (typeof window !== 'undefined') {
|
|
128
|
+
window.lottie = _lottieWeb.default;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const animation = await fetchAndLoadAnimation(_lottieWeb.default, _isomorphicUnfetch.default, animationSrc, containerRef, loop, lottieAnimationClassName, hideOnTransparent, autoplay);
|
|
132
|
+
/* istanbul ignore next */
|
|
133
|
+
|
|
134
|
+
setAnimationItem(animation);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
loadAnimation();
|
|
139
|
+
return () => animationItem &&
|
|
140
|
+
/* istanbul ignore next */
|
|
141
|
+
_lottieWeb.default.destroy(animationItem.name);
|
|
142
|
+
}, [lottieAnimationClassName, containerRef, hideOnTransparent, loop, animationSrc, _isIE11, animationItem, autoplay]);
|
|
143
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
+
ref: containerRef,
|
|
145
|
+
"aria-label": ariaLabel,
|
|
146
|
+
"data-name": dataName,
|
|
147
|
+
className: wrapperClassName,
|
|
148
|
+
style: _extends(_extends(_extends({}, width && {
|
|
149
|
+
width: `${width}px`,
|
|
150
|
+
maxWidth: `${width}px`
|
|
151
|
+
}), height && {
|
|
152
|
+
height: `${height}px`,
|
|
153
|
+
maxHeight: `${height}px`
|
|
154
|
+
}), {}, {
|
|
155
|
+
opacity: isAnimationVisible ? 1 : 0,
|
|
156
|
+
transition: 'opacity 0.25s ease-in'
|
|
157
|
+
})
|
|
158
|
+
}, _isIE11 ? /*#__PURE__*/_react.default.createElement("img", {
|
|
159
|
+
src: ie11ImageBackup,
|
|
160
|
+
className: ie11BackupImageClassName,
|
|
161
|
+
"data-name": "ie11-backup-image"
|
|
162
|
+
}) : null);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
LottieWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
166
|
+
'aria-label': _propTypes.default.string.isRequired,
|
|
167
|
+
'data-name': _propTypes.default.string,
|
|
168
|
+
animationSrc: _propTypes.default.string.isRequired,
|
|
169
|
+
loop: _propTypes.default.bool,
|
|
170
|
+
rendererSettings: _propTypes.default.shape({
|
|
171
|
+
hideOnTransparent: _propTypes.default.bool,
|
|
172
|
+
className: _propTypes.default.string
|
|
173
|
+
}),
|
|
174
|
+
height: _propTypes.default.number,
|
|
175
|
+
width: _propTypes.default.number,
|
|
176
|
+
className: _propTypes.default.string,
|
|
177
|
+
ie11ImageBackup: _propTypes.default.string.isRequired,
|
|
178
|
+
backupImageClassName: _propTypes.default.string,
|
|
179
|
+
autoplay: _propTypes.default.bool,
|
|
180
|
+
animationControl: _propTypes.default.oneOf((0, _keys.default)(ANIMATION_CONTROL))
|
|
181
|
+
} : {};
|
|
182
|
+
var _default = LottieWrapper;
|
|
183
|
+
exports.default = _default;
|
|
184
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/lottie-wrapper/index.js"],"names":["ANIMATION_CONTROL","play","pause","stop","loading","isIE11","window","userAgent","hasMsCrypto","hasRevision","hasTrident","fetchAndLoadAnimation","_lottie","_fetch","animationSrc","containerRef","loop","animationClassnames","hideOnTransparent","autoplay","animationUrl","URL","toString","fetchResult","headers","animationData","json","animation","loadAnimation","container","current","renderer","rendererSettings","className","preserveAspectRatio","LottieWrapper","props","dataName","ariaLabel","width","height","ie11ImageBackup","backupImageClassName","animationControl","animationClassName","animationItem","setAnimationItem","isAnimationVisible","setIsAnimationVisible","_isIE11","wrapperClassName","style","lottieContainer","lottieAnimationClassName","ie11BackupImageClassName","backupImage","lottie","unfetch","destroy","name","maxWidth","maxHeight","opacity","transition","propTypes","PropTypes","string","isRequired","bool","shape","number","oneOf"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEO,MAAMA,iBAAiB,GAAG;AAC/BC,EAAAA,IAAI,EAAE,MADyB;AAE/BC,EAAAA,KAAK,EAAE,OAFwB;AAG/BC,EAAAA,IAAI,EAAE,MAHyB;AAI/BC,EAAAA,OAAO,EAAE;AAJsB,CAA1B;;;AAOP,MAAMC,MAAM,GAAG,MAAM;AACnB,MAAI,OAAOC,MAAP,KAAkB,WAAtB,EAAmC;AACnC,QAAMC,SAAS,GAAG,kBAAI,qBAAJ,EAA2BD,MAA3B,CAAlB;AACA,QAAME,WAAW,GAAG,kBAAI,UAAJ,EAAgBF,MAAhB,CAApB;AACA,QAAMG,WAAW,GAAG,uBAAS,KAAT,EAAgBF,SAAhB,CAApB;AACA,QAAMG,UAAU,GAAG,uBAAS,UAAT,EAAqBH,SAArB,CAAnB;AAEA,SAAOC,WAAW,IAAKC,WAAW,IAAIC,UAAtC;AACD,CARD;;AAUO,MAAMC,qBAAqB,GAAG,OACnCC,OADmC,EAEnCC,MAFmC,EAGnCC,YAHmC,EAInCC,YAJmC,EAKnCC,IALmC,EAMnCC,mBANmC,EAOnCC,iBAPmC,EAQnCC,QARmC,KAShC;AACH,QAAMC,YAAY,GAAG,IAAIC,GAAJ,CAAQP,YAAR,EAAsBQ,QAAtB,EAArB;AACA,QAAMC,WAAW,GAAG,MAAMV,MAAM,CAACO,YAAD,EAAe;AAC7CI,IAAAA,OAAO,EAAE;AACP,0BAAoB,gBADb;AAEP,sBAAgB;AAFT;AADoC,GAAf,CAAhC;AAOA,QAAMC,aAAa,GAAG,MAAMF,WAAW,CAACG,IAAZ,EAA5B;;AAEA,QAAMC,SAAS,GAAGf,OAAO,CAACgB,aAAR,CAAsB;AACtCC,IAAAA,SAAS,EAAEd,YAAY,CAACe,OADc;AACL;AACjCC,IAAAA,QAAQ,EAAE,KAF4B;AAGtCZ,IAAAA,QAHsC;AAItCH,IAAAA,IAJsC;AAKtCS,IAAAA,aALsC;AAMtCO,IAAAA,gBAAgB,EAAE;AAChBC,MAAAA,SAAS,EAAEhB,mBADK;AAEhBC,MAAAA,iBAFgB;AAGhBgB,MAAAA,mBAAmB,EAAE,eAHL,CAGqB;;AAHrB;AANoB,GAAtB,CAAlB;;AAYA,SAAOP,SAAP;AACD,CAjCM;;;;AAmCP,MAAMQ,aAAa,GAAGC,KAAK,IAAI;AAC7B,QAAM;AACJH,IAAAA,SADI;AAEJ,iBAAaI,QAFT;AAGJ,kBAAcC,SAHV;AAIJxB,IAAAA,YAJI;AAKJE,IAAAA,IAAI,GAAG,KALH;AAMJgB,IAAAA,gBAAgB,GAAG,EANf;AAOJO,IAAAA,KAPI;AAQJC,IAAAA,MARI;AASJC,IAAAA,eATI;AAUJC,IAAAA,oBAVI;AAWJvB,IAAAA,QAAQ,GAAG,IAXP;AAYJwB,IAAAA;AAZI,MAaFP,KAbJ;AAeA,QAAM;AAACH,IAAAA,SAAS,EAAEW,kBAAZ;AAAgC1B,IAAAA,iBAAiB,GAAG;AAApD,MAA4Dc,gBAAlE;AAEA,QAAMjB,YAAY,GAAG,mBAAO,IAAP,CAArB,CAlB6B,CAoB7B;;AACA,QAAM,CAAC8B,aAAD,EAAgBC,gBAAhB,IAAoC,qBAAS,IAAT,CAA1C;AAEA,QAAM,CAACC,kBAAD,EAAqBC,qBAArB,IAA8C,qBAAS7B,QAAT,CAApD;;AAEA,QAAM8B,OAAO,GAAG,oBAAQ,MAAM5C,MAAM,EAApB,EAAwB,EAAxB,CAAhB;;AAEA,QAAM6C,gBAAgB,GAAG,oBAAQ,MAAM,yBAAWjB,SAAX,EAAsBkB,eAAMC,eAA5B,CAAd,EAA4D,CAACnB,SAAD,CAA5D,CAAzB;AAEA,QAAMoB,wBAAwB,GAAG,oBAAQ,MAAM,yBAAWT,kBAAX,EAA+BO,eAAMxB,SAArC,CAAd,EAA+D,CAC9FiB,kBAD8F,CAA/D,CAAjC;AAIA,QAAMU,wBAAwB,GAAG,oBAC/B,MAAM,yBAAWZ,oBAAX,EAAiCS,eAAMI,WAAvC,CADyB,EAE/B,CAACb,oBAAD,CAF+B,CAAjC;AAKA,wBAAU,MAAM;AACd;AACA;;AACA;AACA,QACEG,aAAa,IACb,uBAASF,gBAAT,EAA2B,mBAAK,mBAAK,SAAL,EAAgB3C,iBAAhB,CAAL,CAA3B,CADA,IAEA,CAACmB,QAHH,EAIE;AACA6B,MAAAA,qBAAqB,CAAC,IAAD,CAArB;AACAH,MAAAA,aAAa,CAACF,gBAAD,CAAb;AACA,UAAIA,gBAAgB,KAAK3C,iBAAiB,CAACG,IAA3C,EAAiD6C,qBAAqB,CAAC,KAAD,CAArB;AAClD;AACF,GAbD,EAaG,CAACL,gBAAD,EAAmBE,aAAnB,EAAkC1B,QAAlC,CAbH;AAeA,wBAAU,MAAM;AACd,UAAMS,aAAa,GAAG,YAAY;AAChC,UAAI,CAACqB,OAAD,IAAY,CAACJ,aAAjB,EAAgC;AAC9B;AACA,YAAI,OAAOvC,MAAP,KAAkB,WAAtB,EAAmC;AACjCA,UAAAA,MAAM,CAACkD,MAAP,GAAgBA,kBAAhB;AACD;;AACD,cAAM7B,SAAS,GAAG,MAAMhB,qBAAqB,CAC3C6C,kBAD2C,EAE3CC,0BAF2C,EAG3C3C,YAH2C,EAI3CC,YAJ2C,EAK3CC,IAL2C,EAM3CqC,wBAN2C,EAO3CnC,iBAP2C,EAQ3CC,QAR2C,CAA7C;AAWA;;AACA2B,QAAAA,gBAAgB,CAACnB,SAAD,CAAhB;AACD;AACF,KApBD;;AAsBAC,IAAAA,aAAa;AACb,WAAO,MAAMiB,aAAa;AAAI;AAA2BW,uBAAOE,OAAP,CAAeb,aAAa,CAACc,IAA7B,CAAzD;AACD,GAzBD,EAyBG,CACDN,wBADC,EAEDtC,YAFC,EAGDG,iBAHC,EAIDF,IAJC,EAKDF,YALC,EAMDmC,OANC,EAODJ,aAPC,EAQD1B,QARC,CAzBH;AAoCA,sBACE;AACE,IAAA,GAAG,EAAEJ,YADP;AAEE,kBAAYuB,SAFd;AAGE,iBAAWD,QAHb;AAIE,IAAA,SAAS,EAAEa,gBAJb;AAKE,IAAA,KAAK,iCACCX,KAAK,IAAI;AACXA,MAAAA,KAAK,EAAG,GAAEA,KAAM,IADL;AAEXqB,MAAAA,QAAQ,EAAG,GAAErB,KAAM;AAFR,KADV,GAKCC,MAAM,IAAI;AACZA,MAAAA,MAAM,EAAG,GAAEA,MAAO,IADN;AAEZqB,MAAAA,SAAS,EAAG,GAAErB,MAAO;AAFT,KALX;AASHsB,MAAAA,OAAO,EAAEf,kBAAkB,GAAG,CAAH,GAAO,CAT/B;AAUHgB,MAAAA,UAAU,EAAE;AAVT;AALP,KAkBGd,OAAO,gBACN;AACE,IAAA,GAAG,EAAER,eADP;AAEE,IAAA,SAAS,EAAEa,wBAFb;AAGE,iBAAU;AAHZ,IADM,GAMJ,IAxBN,CADF;AA4BD,CArHD;;AAuHAnB,aAAa,CAAC6B,SAAd,2CAA0B;AACxB,gBAAcC,mBAAUC,MAAV,CAAiBC,UADP;AAExB,eAAaF,mBAAUC,MAFC;AAGxBpD,EAAAA,YAAY,EAAEmD,mBAAUC,MAAV,CAAiBC,UAHP;AAIxBnD,EAAAA,IAAI,EAAEiD,mBAAUG,IAJQ;AAKxBpC,EAAAA,gBAAgB,EAAEiC,mBAAUI,KAAV,CAAgB;AAChCnD,IAAAA,iBAAiB,EAAE+C,mBAAUG,IADG;AAEhCnC,IAAAA,SAAS,EAAEgC,mBAAUC;AAFW,GAAhB,CALM;AASxB1B,EAAAA,MAAM,EAAEyB,mBAAUK,MATM;AAUxB/B,EAAAA,KAAK,EAAE0B,mBAAUK,MAVO;AAWxBrC,EAAAA,SAAS,EAAEgC,mBAAUC,MAXG;AAYxBzB,EAAAA,eAAe,EAAEwB,mBAAUC,MAAV,CAAiBC,UAZV;AAaxBzB,EAAAA,oBAAoB,EAAEuB,mBAAUC,MAbR;AAcxB/C,EAAAA,QAAQ,EAAE8C,mBAAUG,IAdI;AAexBzB,EAAAA,gBAAgB,EAAEsB,mBAAUM,KAAV,CAAgB,mBAAKvE,iBAAL,CAAhB;AAfM,CAA1B;eAkBemC,a","sourcesContent":["import React, {useMemo, useRef, useEffect, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport lottie from 'lottie-web';\nimport get from 'lodash/fp/get';\nimport has from 'lodash/fp/has';\nimport includes from 'lodash/fp/includes';\nimport keys from 'lodash/fp/keys';\nimport omit from 'lodash/fp/omit';\nimport unfetch from 'isomorphic-unfetch';\nimport style from './style.css';\n\nexport const ANIMATION_CONTROL = {\n play: 'play',\n pause: 'pause',\n stop: 'stop',\n loading: 'loading'\n};\n\nconst isIE11 = () => {\n if (typeof window === 'undefined') return;\n const userAgent = get('navigator.userAgent', window);\n const hasMsCrypto = has('msCrypto', window);\n const hasRevision = includes('rv:', userAgent);\n const hasTrident = includes('Trident/', userAgent);\n\n return hasMsCrypto || (hasRevision && hasTrident);\n};\n\nexport const fetchAndLoadAnimation = async (\n _lottie,\n _fetch,\n animationSrc,\n containerRef,\n loop,\n animationClassnames,\n hideOnTransparent,\n autoplay\n) => {\n const animationUrl = new URL(animationSrc).toString();\n const fetchResult = await _fetch(animationUrl, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json'\n }\n });\n\n const animationData = await fetchResult.json();\n\n const animation = _lottie.loadAnimation({\n container: containerRef.current, // the dom element that will contain the animation\n renderer: 'svg',\n autoplay,\n loop,\n animationData,\n rendererSettings: {\n className: animationClassnames,\n hideOnTransparent,\n preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop\n }\n });\n return animation;\n};\n\nconst LottieWrapper = props => {\n const {\n className,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n animationSrc,\n loop = false,\n rendererSettings = {},\n width,\n height,\n ie11ImageBackup,\n backupImageClassName,\n autoplay = true,\n animationControl\n } = props;\n\n const {className: animationClassName, hideOnTransparent = true} = rendererSettings;\n\n const containerRef = useRef(null);\n\n // lottie's animation instance\n const [animationItem, setAnimationItem] = useState(null);\n\n const [isAnimationVisible, setIsAnimationVisible] = useState(autoplay);\n\n const _isIE11 = useMemo(() => isIE11(), []);\n\n const wrapperClassName = useMemo(() => classnames(className, style.lottieContainer), [className]);\n\n const lottieAnimationClassName = useMemo(() => classnames(animationClassName, style.animation), [\n animationClassName\n ]);\n\n const ie11BackupImageClassName = useMemo(\n () => classnames(backupImageClassName, style.backupImage),\n [backupImageClassName]\n );\n\n useEffect(() => {\n // enzyme does not handle well the state update after an async useEffect in tests\n // to remove when the migration towards @testing-library/react is done\n /* istanbul ignore next */\n if (\n animationItem &&\n includes(animationControl, keys(omit('loading', ANIMATION_CONTROL))) &&\n !autoplay\n ) {\n setIsAnimationVisible(true);\n animationItem[animationControl]();\n if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);\n }\n }, [animationControl, animationItem, autoplay]);\n\n useEffect(() => {\n const loadAnimation = async () => {\n if (!_isIE11 && !animationItem) {\n /* istanbul ignore else */\n if (typeof window !== 'undefined') {\n window.lottie = lottie;\n }\n const animation = await fetchAndLoadAnimation(\n lottie,\n unfetch,\n animationSrc,\n containerRef,\n loop,\n lottieAnimationClassName,\n hideOnTransparent,\n autoplay\n );\n\n /* istanbul ignore next */\n setAnimationItem(animation);\n }\n };\n\n loadAnimation();\n return () => animationItem && /* istanbul ignore next */ lottie.destroy(animationItem.name);\n }, [\n lottieAnimationClassName,\n containerRef,\n hideOnTransparent,\n loop,\n animationSrc,\n _isIE11,\n animationItem,\n autoplay\n ]);\n\n return (\n <div\n ref={containerRef}\n aria-label={ariaLabel}\n data-name={dataName}\n className={wrapperClassName}\n style={{\n ...(width && {\n width: `${width}px`,\n maxWidth: `${width}px`\n }),\n ...(height && {\n height: `${height}px`,\n maxHeight: `${height}px`\n }),\n opacity: isAnimationVisible ? 1 : 0,\n transition: 'opacity 0.25s ease-in'\n }}\n >\n {_isIE11 ? (\n <img\n src={ie11ImageBackup}\n className={ie11BackupImageClassName}\n data-name=\"ie11-backup-image\"\n />\n ) : null}\n </div>\n );\n};\n\nLottieWrapper.propTypes = {\n 'aria-label': PropTypes.string.isRequired,\n 'data-name': PropTypes.string,\n animationSrc: PropTypes.string.isRequired,\n loop: PropTypes.bool,\n rendererSettings: PropTypes.shape({\n hideOnTransparent: PropTypes.bool,\n className: PropTypes.string\n }),\n height: PropTypes.number,\n width: PropTypes.number,\n className: PropTypes.string,\n ie11ImageBackup: PropTypes.string.isRequired,\n backupImageClassName: PropTypes.string,\n autoplay: PropTypes.bool,\n animationControl: PropTypes.oneOf(keys(ANIMATION_CONTROL))\n};\n\nexport default LottieWrapper;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
props: {
|
|
7
|
+
'aria-label': 'aria lottie',
|
|
8
|
+
'data-name': 'default-lottie',
|
|
9
|
+
className: undefined,
|
|
10
|
+
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',
|
|
11
|
+
loop: undefined,
|
|
12
|
+
autoplay: true,
|
|
13
|
+
rendererSettings: {
|
|
14
|
+
hideOnTransparent: false,
|
|
15
|
+
animationClassName: ''
|
|
16
|
+
},
|
|
17
|
+
height: 600,
|
|
18
|
+
width: 1000,
|
|
19
|
+
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',
|
|
20
|
+
animationControl: undefined
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.default = _default;
|
|
24
|
+
//# sourceMappingURL=confetti.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/confetti.js"],"names":["props","className","undefined","animationSrc","loop","autoplay","rendererSettings","hideOnTransparent","animationClassName","height","width","ie11ImageBackup","animationControl"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc,aADT;AAEL,iBAAa,gBAFR;AAGLC,IAAAA,SAAS,EAAEC,SAHN;AAILC,IAAAA,YAAY,EAAE,yEAJT;AAKLC,IAAAA,IAAI,EAAEF,SALD;AAMLG,IAAAA,QAAQ,EAAE,IANL;AAOLC,IAAAA,gBAAgB,EAAE;AAChBC,MAAAA,iBAAiB,EAAE,KADH;AAEhBC,MAAAA,kBAAkB,EAAE;AAFJ,KAPb;AAWLC,IAAAA,MAAM,EAAE,GAXH;AAYLC,IAAAA,KAAK,EAAE,IAZF;AAaLC,IAAAA,eAAe,EACb,iFAdG;AAeLC,IAAAA,gBAAgB,EAAEV;AAfb;AADM,C","sourcesContent":["export default {\n props: {\n 'aria-label': 'aria lottie',\n 'data-name': 'default-lottie',\n className: undefined,\n animationSrc: 'https://static-staging.coorpacademy.com/animations/review/confetti.json',\n loop: undefined,\n autoplay: true,\n rendererSettings: {\n hideOnTransparent: false,\n animationClassName: ''\n },\n height: 600,\n width: 1000,\n ie11ImageBackup:\n 'https://static-staging.coorpacademy.com/animations/review/conffeti_congrats.svg',\n animationControl: undefined\n }\n};\n"],"file":"confetti.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _default2 = _interopRequireDefault(require("./default"));
|
|
7
|
+
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
|
|
10
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
|
+
|
|
12
|
+
var _default = {
|
|
13
|
+
props: _extends(_extends({}, _default2.default.props), {}, {
|
|
14
|
+
autoplay: false,
|
|
15
|
+
animationControl: 'loading'
|
|
16
|
+
})
|
|
17
|
+
};
|
|
18
|
+
exports.default = _default;
|
|
19
|
+
//# sourceMappingURL=controls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/controls.js"],"names":["props","defaultProps","autoplay","animationControl"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,wBACAC,kBAAaD,KADb;AAEHE,IAAAA,QAAQ,EAAE,KAFP;AAGHC,IAAAA,gBAAgB,EAAE;AAHf;AADQ,C","sourcesContent":["import defaultProps from './default';\n\nexport default {\n props: {\n ...defaultProps.props,\n autoplay: false,\n animationControl: 'loading'\n }\n};\n"],"file":"controls.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
props: {
|
|
7
|
+
'aria-label': 'aria lottie',
|
|
8
|
+
'data-name': 'default-lottie',
|
|
9
|
+
className: undefined,
|
|
10
|
+
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',
|
|
11
|
+
loop: false,
|
|
12
|
+
autoplay: undefined,
|
|
13
|
+
rendererSettings: {
|
|
14
|
+
hideOnTransparent: false,
|
|
15
|
+
animationClassName: ''
|
|
16
|
+
},
|
|
17
|
+
height: 200,
|
|
18
|
+
width: 200,
|
|
19
|
+
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg',
|
|
20
|
+
animationControl: undefined
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.default = _default;
|
|
24
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/default.js"],"names":["props","className","undefined","animationSrc","loop","autoplay","rendererSettings","hideOnTransparent","animationClassName","height","width","ie11ImageBackup","animationControl"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc,aADT;AAEL,iBAAa,gBAFR;AAGLC,IAAAA,SAAS,EAAEC,SAHN;AAILC,IAAAA,YAAY,EAAE,qEAJT;AAKLC,IAAAA,IAAI,EAAE,KALD;AAMLC,IAAAA,QAAQ,EAAEH,SANL;AAOLI,IAAAA,gBAAgB,EAAE;AAChBC,MAAAA,iBAAiB,EAAE,KADH;AAEhBC,MAAAA,kBAAkB,EAAE;AAFJ,KAPb;AAWLC,IAAAA,MAAM,EAAE,GAXH;AAYLC,IAAAA,KAAK,EAAE,GAZF;AAaLC,IAAAA,eAAe,EACb,mFAdG;AAeLC,IAAAA,gBAAgB,EAAEV;AAfb;AADM,C","sourcesContent":["export default {\n props: {\n 'aria-label': 'aria lottie',\n 'data-name': 'default-lottie',\n className: undefined,\n animationSrc: 'https://static-staging.coorpacademy.com/animations/review/star.json',\n loop: false,\n autoplay: undefined,\n rendererSettings: {\n hideOnTransparent: false,\n animationClassName: ''\n },\n height: 200,\n width: 200,\n ie11ImageBackup:\n 'https://static-staging.coorpacademy.com/animations/review/stars_icon_congrats.svg',\n animationControl: undefined\n }\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
props: {
|
|
7
|
+
'aria-label': 'aria lottie',
|
|
8
|
+
'data-name': 'default-lottie',
|
|
9
|
+
className: undefined,
|
|
10
|
+
animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',
|
|
11
|
+
loop: true,
|
|
12
|
+
autoplay: true,
|
|
13
|
+
height: 200,
|
|
14
|
+
width: 200,
|
|
15
|
+
ie11ImageBackup: 'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg',
|
|
16
|
+
animationControl: undefined
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.default = _default;
|
|
20
|
+
//# sourceMappingURL=rank.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/atom/lottie-wrapper/test/fixtures/rank.js"],"names":["props","className","undefined","animationSrc","loop","autoplay","height","width","ie11ImageBackup","animationControl"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACL,kBAAc,aADT;AAEL,iBAAa,gBAFR;AAGLC,IAAAA,SAAS,EAAEC,SAHN;AAILC,IAAAA,YAAY,EAAE,qEAJT;AAKLC,IAAAA,IAAI,EAAE,IALD;AAMLC,IAAAA,QAAQ,EAAE,IANL;AAOLC,IAAAA,MAAM,EAAE,GAPH;AAQLC,IAAAA,KAAK,EAAE,GARF;AASLC,IAAAA,eAAe,EACb,kFAVG;AAWLC,IAAAA,gBAAgB,EAAEP;AAXb;AADM,C","sourcesContent":["export default {\n props: {\n 'aria-label': 'aria lottie',\n 'data-name': 'default-lottie',\n className: undefined,\n animationSrc: 'https://static-staging.coorpacademy.com/animations/review/rank.json',\n loop: true,\n autoplay: true,\n height: 200,\n width: 200,\n ie11ImageBackup:\n 'https://static-staging.coorpacademy.com/animations/review/rank_icon_congrats.svg',\n animationControl: undefined\n }\n};\n"],"file":"rank.js"}
|