@coorpacademy/components 10.0.50 → 10.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/autocomplete/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/index.js +3 -1
- package/es/atom/button/index.js.map +1 -1
- package/es/atom/button/test/fixtures.js +27 -0
- package/es/atom/button/test/fixtures.js.map +1 -0
- package/es/atom/button-link/index.js +106 -0
- package/es/atom/button-link/index.js.map +1 -0
- package/es/atom/button-link/style.css +97 -0
- package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js +10 -0
- package/es/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
- package/es/atom/button-link/test/fixtures/button-primary-icon-left.js +14 -0
- package/es/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
- package/es/atom/button-link/test/fixtures/button-primary-no-icon.js +10 -0
- package/es/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
- package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +11 -0
- package/es/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
- package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js +14 -0
- package/es/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
- package/es/atom/button-link/test/fixtures/icon-button.js +13 -0
- package/es/atom/button-link/test/fixtures/icon-button.js.map +1 -0
- package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +17 -0
- package/es/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
- package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js +20 -0
- package/es/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
- package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js +16 -0
- package/es/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
- package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +17 -0
- package/es/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
- package/es/atom/button-link/test/fixtures/link-text-no-icon-download.js +13 -0
- package/es/atom/button-link/test/fixtures/link-text-no-icon-download.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/chips/index.js +36 -0
- package/es/atom/chips/index.js.map +1 -0
- package/es/atom/chips/style.css +66 -0
- package/es/atom/chips/test/fixtures/default.js +9 -0
- package/es/atom/chips/test/fixtures/default.js.map +1 -0
- package/es/atom/chips/test/fixtures/non-selected.js +9 -0
- package/es/atom/chips/test/fixtures/non-selected.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/index.js +21 -0
- package/es/atom/content-badge/index.js.map +1 -0
- package/es/atom/content-badge/style.css +59 -0
- package/es/atom/content-badge/test/fixtures/advanced.js +7 -0
- package/es/atom/content-badge/test/fixtures/advanced.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/article.js +7 -0
- package/es/atom/content-badge/test/fixtures/article.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/chapter.js +7 -0
- package/es/atom/content-badge/test/fixtures/chapter.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/coach.js +7 -0
- package/es/atom/content-badge/test/fixtures/coach.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/default.js +7 -0
- package/es/atom/content-badge/test/fixtures/default.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/podcast.js +7 -0
- package/es/atom/content-badge/test/fixtures/podcast.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/scorm.js +7 -0
- package/es/atom/content-badge/test/fixtures/scorm.js.map +1 -0
- package/es/atom/content-badge/test/fixtures/video.js +7 -0
- package/es/atom/content-badge/test/fixtures/video.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 +23 -0
- package/es/atom/drag-and-drop/test/fixtures.js.map +1 -0
- package/es/atom/image-upload/test/fixtures.js +29 -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/index.js +65 -0
- package/es/atom/input-search/index.js.map +1 -0
- package/es/atom/input-search/style.css +201 -0
- package/es/{molecule/search → atom/input-search}/test/change.js +0 -0
- package/es/atom/input-search/test/change.js.map +1 -0
- package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js +14 -0
- package/es/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
- package/es/atom/input-search/test/fixtures/coorpmanager.js +13 -0
- package/es/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
- package/es/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
- package/es/atom/input-search/test/fixtures/default.js.map +1 -0
- package/es/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
- package/es/atom/input-search/test/fixtures/with-value.js.map +1 -0
- package/es/atom/input-switch/test/fixtures.js +23 -0
- package/es/atom/input-switch/test/fixtures.js.map +1 -0
- package/es/atom/input-text/index.js +34 -6
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text/style.css +229 -1
- package/es/atom/input-text/test/fixtures/cm-default.js +17 -0
- package/es/atom/input-text/test/fixtures/cm-default.js.map +1 -0
- package/es/atom/input-text/test/fixtures.js +25 -0
- package/es/atom/input-text/test/fixtures.js.map +1 -0
- package/es/atom/input-textarea/index.js +36 -11
- package/es/atom/input-textarea/index.js.map +1 -1
- package/es/atom/input-textarea/style.css +265 -0
- package/es/atom/input-textarea/test/fixtures/cm-default.js +17 -0
- package/es/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
- package/es/atom/input-textarea/test/fixtures/cm-empty.js +17 -0
- package/es/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
- package/es/atom/input-textarea/test/fixtures.js +17 -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 +13 -0
- package/es/atom/loader/test/fixtures.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/select/test/fixtures.js +43 -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/index.js +27 -0
- package/es/atom/tag/index.js.map +1 -0
- package/es/atom/tag/style.css +38 -0
- package/es/atom/tag/test/fixtures/archived.js +7 -0
- package/es/atom/tag/test/fixtures/archived.js.map +1 -0
- package/es/atom/tag/test/fixtures/default.js +7 -0
- package/es/atom/tag/test/fixtures/default.js.map +1 -0
- package/es/atom/tag/test/fixtures/published.js +7 -0
- package/es/atom/tag/test/fixtures/published.js.map +1 -0
- package/es/atom/tag/test/fixtures/revision.js +7 -0
- package/es/atom/tag/test/fixtures/revision.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/index.js +38 -0
- package/es/atom/wizard-steps/index.js.map +1 -0
- package/es/atom/wizard-steps/style.css +150 -0
- package/es/atom/wizard-steps/test/fixtures/default.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/default.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures/first-step.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
- package/es/atom/wizard-steps/test/fixtures/last-step.js +28 -0
- package/es/atom/wizard-steps/test/fixtures/last-step.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/index.js +46 -0
- package/es/molecule/banner/index.js.map +1 -0
- package/es/molecule/banner/style.css +63 -0
- package/es/molecule/banner/test/fixtures/default.js +11 -0
- package/es/molecule/banner/test/fixtures/default.js.map +1 -0
- package/es/molecule/banner/test/fixtures/error-banner.js +7 -0
- package/es/molecule/banner/test/fixtures/error-banner.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/cm-default.js +51 -0
- package/es/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
- package/es/molecule/brand-form-group/test/fixtures/default.js +12 -3
- package/es/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures.js +33 -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/card/index.js +16 -5
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/selectable.css +71 -0
- package/es/molecule/card/selectable.js +32 -0
- package/es/molecule/card/selectable.js.map +1 -0
- package/es/molecule/card/test/fixtures/default.js +1 -0
- package/es/molecule/card/test/fixtures/default.js.map +1 -1
- package/es/molecule/card/test/fixtures/selectable-false.js +16 -0
- package/es/molecule/card/test/fixtures/selectable-false.js.map +1 -0
- package/es/molecule/card/test/fixtures/selectable-true.js +17 -0
- package/es/molecule/card/test/fixtures/selectable-true.js.map +1 -0
- package/es/molecule/card/test/fixtures.js +39 -0
- package/es/molecule/card/test/fixtures.js.map +1 -0
- package/es/molecule/card-content/index.js +13 -3
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-content/style.css +13 -3
- 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/index.js +82 -0
- package/es/molecule/cm-popin/index.js.map +1 -0
- package/es/molecule/cm-popin/style.css +115 -0
- package/es/molecule/cm-popin/test/fixtures/dangerous.js +19 -0
- package/es/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
- package/es/molecule/cm-popin/test/fixtures/default.js +19 -0
- package/es/molecule/cm-popin/test/fixtures/default.js.map +1 -0
- package/es/molecule/cm-popin/test/fixtures/warning-with-close.js +20 -0
- package/es/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
- package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
- package/es/molecule/cockpit-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/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/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/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/index.js +5 -2
- package/es/molecule/discipline-partners/index.js.map +1 -1
- 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/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 +29 -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/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 +15 -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/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/test/fixtures.js +15 -0
- package/es/molecule/search/test/fixtures.js.map +1 -0
- package/es/molecule/search-form/index.js +1 -1
- package/es/molecule/search-form/index.js.map +1 -1
- 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 +23 -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 +23 -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/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.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/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/index.js +51 -0
- package/es/molecule/vertical-tabs/index.js.map +1 -0
- package/es/molecule/vertical-tabs/style.css +69 -0
- package/es/molecule/vertical-tabs/test/fixtures/default.js +41 -0
- package/es/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
- package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.js +81 -0
- package/es/molecule/vertical-tabs/test/fixtures/with-selected-item.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/index.js +195 -0
- package/es/molecule/wizard-summary/index.js.map +1 -0
- package/es/molecule/wizard-summary/style.css +230 -0
- package/es/molecule/wizard-summary/test/fixtures/default.js +124 -0
- package/es/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/one-section.js +23 -0
- package/es/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js +118 -0
- package/es/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js +42 -0
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
- package/es/molecule/wizard-summary/test/fixtures/two-sections.js +35 -0
- package/es/molecule/wizard-summary/test/fixtures/two-sections.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 +31 -0
- package/es/organism/brand-form/test/fixtures.js.map +1 -0
- package/es/organism/brand-table/index.js +1 -1
- package/es/organism/brand-table/index.js.map +1 -1
- 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/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/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/index.js +1 -1
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures/default.js +1 -1
- package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- 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/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/style.css +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/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/index.js +6 -2
- package/es/template/back-office/brand-list/index.js.map +1 -1
- package/es/template/back-office/brand-list/style.css +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 +67 -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 +31 -0
- package/es/template/external-course/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/es/variables/colors.css +18 -2
- 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/index.js +3 -1
- package/lib/atom/button/index.js.map +1 -1
- package/lib/atom/button/test/fixtures.js +43 -0
- package/lib/atom/button/test/fixtures.js.map +1 -0
- package/lib/atom/button-link/index.js +123 -0
- package/lib/atom/button-link/index.js.map +1 -0
- package/lib/atom/button-link/style.css +97 -0
- package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js +15 -0
- package/lib/atom/button-link/test/fixtures/button-dangerous-no-icon.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js +19 -0
- package/lib/atom/button-link/test/fixtures/button-primary-icon-left.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js +15 -0
- package/lib/atom/button-link/test/fixtures/button-primary-no-icon.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js +16 -0
- package/lib/atom/button-link/test/fixtures/button-secondary-no-icon-disabled.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js +19 -0
- package/lib/atom/button-link/test/fixtures/button-tertiary-icon-left.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/icon-button.js +18 -0
- package/lib/atom/button-link/test/fixtures/icon-button.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js +22 -0
- package/lib/atom/button-link/test/fixtures/link-primary-disabled-icon-right.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js +25 -0
- package/lib/atom/button-link/test/fixtures/link-secondary-icon-right.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js +21 -0
- package/lib/atom/button-link/test/fixtures/link-tertiary-no-icon.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js +22 -0
- package/lib/atom/button-link/test/fixtures/link-text-icon-right-target-blank.js.map +1 -0
- package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.js +18 -0
- package/lib/atom/button-link/test/fixtures/link-text-no-icon-download.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/chips/index.js +52 -0
- package/lib/atom/chips/index.js.map +1 -0
- package/lib/atom/chips/style.css +66 -0
- package/lib/atom/chips/test/fixtures/default.js +14 -0
- package/lib/atom/chips/test/fixtures/default.js.map +1 -0
- package/lib/atom/chips/test/fixtures/non-selected.js +14 -0
- package/lib/atom/chips/test/fixtures/non-selected.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/index.js +32 -0
- package/lib/atom/content-badge/index.js.map +1 -0
- package/lib/atom/content-badge/style.css +59 -0
- package/lib/atom/content-badge/test/fixtures/advanced.js +12 -0
- package/lib/atom/content-badge/test/fixtures/advanced.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/article.js +12 -0
- package/lib/atom/content-badge/test/fixtures/article.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/chapter.js +12 -0
- package/lib/atom/content-badge/test/fixtures/chapter.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/coach.js +12 -0
- package/lib/atom/content-badge/test/fixtures/coach.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/default.js +12 -0
- package/lib/atom/content-badge/test/fixtures/default.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/podcast.js +12 -0
- package/lib/atom/content-badge/test/fixtures/podcast.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/scorm.js +12 -0
- package/lib/atom/content-badge/test/fixtures/scorm.js.map +1 -0
- package/lib/atom/content-badge/test/fixtures/video.js +12 -0
- package/lib/atom/content-badge/test/fixtures/video.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 +37 -0
- package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -0
- package/lib/atom/image-upload/test/fixtures.js +46 -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/{molecule/search → atom/input-search}/index.js +29 -18
- package/lib/atom/input-search/index.js.map +1 -0
- package/lib/atom/input-search/style.css +201 -0
- package/lib/{molecule/search → atom/input-search}/test/change.js +0 -0
- package/lib/atom/input-search/test/change.js.map +1 -0
- package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js +19 -0
- package/lib/atom/input-search/test/fixtures/coorpmanager-with-value.js.map +1 -0
- package/lib/atom/input-search/test/fixtures/coorpmanager.js +18 -0
- package/lib/atom/input-search/test/fixtures/coorpmanager.js.map +1 -0
- package/lib/{molecule/search → atom/input-search}/test/fixtures/default.js +0 -0
- package/lib/atom/input-search/test/fixtures/default.js.map +1 -0
- package/lib/{molecule/search → atom/input-search}/test/fixtures/with-value.js +0 -0
- package/lib/atom/input-search/test/fixtures/with-value.js.map +1 -0
- package/lib/atom/input-switch/test/fixtures.js +37 -0
- package/lib/atom/input-switch/test/fixtures.js.map +1 -0
- package/lib/atom/input-text/index.js +36 -6
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text/style.css +229 -1
- package/lib/atom/input-text/test/fixtures/cm-default.js +22 -0
- package/lib/atom/input-text/test/fixtures/cm-default.js.map +1 -0
- package/lib/atom/input-text/test/fixtures.js +40 -0
- package/lib/atom/input-text/test/fixtures.js.map +1 -0
- package/lib/atom/input-textarea/index.js +38 -11
- package/lib/atom/input-textarea/index.js.map +1 -1
- package/lib/atom/input-textarea/style.css +265 -0
- package/lib/atom/input-textarea/test/fixtures/cm-default.js +22 -0
- package/lib/atom/input-textarea/test/fixtures/cm-default.js.map +1 -0
- package/lib/atom/input-textarea/test/fixtures/cm-empty.js +22 -0
- package/lib/atom/input-textarea/test/fixtures/cm-empty.js.map +1 -0
- package/lib/atom/input-textarea/test/fixtures.js +28 -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 +22 -0
- package/lib/atom/loader/test/fixtures.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/select/test/fixtures.js +67 -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/index.js +39 -0
- package/lib/atom/tag/index.js.map +1 -0
- package/lib/atom/tag/style.css +38 -0
- package/lib/atom/tag/test/fixtures/archived.js +12 -0
- package/lib/atom/tag/test/fixtures/archived.js.map +1 -0
- package/lib/atom/tag/test/fixtures/default.js +12 -0
- package/lib/atom/tag/test/fixtures/default.js.map +1 -0
- package/lib/atom/tag/test/fixtures/published.js +12 -0
- package/lib/atom/tag/test/fixtures/published.js.map +1 -0
- package/lib/atom/tag/test/fixtures/revision.js +12 -0
- package/lib/atom/tag/test/fixtures/revision.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/index.js +49 -0
- package/lib/atom/wizard-steps/index.js.map +1 -0
- package/lib/atom/wizard-steps/style.css +150 -0
- package/lib/atom/wizard-steps/test/fixtures/default.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/default.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures/first-step.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/first-step.js.map +1 -0
- package/lib/atom/wizard-steps/test/fixtures/last-step.js +33 -0
- package/lib/atom/wizard-steps/test/fixtures/last-step.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/index.js +59 -0
- package/lib/molecule/banner/index.js.map +1 -0
- package/lib/molecule/banner/style.css +63 -0
- package/lib/molecule/banner/test/fixtures/default.js +16 -0
- package/lib/molecule/banner/test/fixtures/default.js.map +1 -0
- package/lib/molecule/banner/test/fixtures/error-banner.js +12 -0
- package/lib/molecule/banner/test/fixtures/error-banner.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/cm-default.js +56 -0
- package/lib/molecule/brand-form-group/test/fixtures/cm-default.js.map +1 -0
- package/lib/molecule/brand-form-group/test/fixtures/default.js +12 -3
- package/lib/molecule/brand-form-group/test/fixtures/default.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures.js +52 -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/card/index.js +17 -5
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/selectable.css +71 -0
- package/lib/molecule/card/selectable.js +45 -0
- package/lib/molecule/card/selectable.js.map +1 -0
- package/lib/molecule/card/test/fixtures/default.js +1 -0
- package/lib/molecule/card/test/fixtures/default.js.map +1 -1
- package/lib/molecule/card/test/fixtures/selectable-false.js +26 -0
- package/lib/molecule/card/test/fixtures/selectable-false.js.map +1 -0
- package/lib/molecule/card/test/fixtures/selectable-true.js +27 -0
- package/lib/molecule/card/test/fixtures/selectable-true.js.map +1 -0
- package/lib/molecule/card/test/fixtures.js +61 -0
- package/lib/molecule/card/test/fixtures.js.map +1 -0
- package/lib/molecule/card-content/index.js +14 -3
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-content/style.css +13 -3
- 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/index.js +94 -0
- package/lib/molecule/cm-popin/index.js.map +1 -0
- package/lib/molecule/cm-popin/style.css +115 -0
- package/lib/molecule/cm-popin/test/fixtures/dangerous.js +24 -0
- package/lib/molecule/cm-popin/test/fixtures/dangerous.js.map +1 -0
- package/lib/molecule/cm-popin/test/fixtures/default.js +24 -0
- package/lib/molecule/cm-popin/test/fixtures/default.js.map +1 -0
- package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js +25 -0
- package/lib/molecule/cm-popin/test/fixtures/warning-with-close.js.map +1 -0
- package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
- package/lib/molecule/cockpit-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/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/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/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/index.js +5 -2
- package/lib/molecule/discipline-partners/index.js.map +1 -1
- 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/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 +46 -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/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 +25 -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/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/test/fixtures.js +25 -0
- package/lib/molecule/search/test/fixtures.js.map +1 -0
- package/lib/molecule/search-form/index.js +3 -3
- package/lib/molecule/search-form/index.js.map +1 -1
- 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 +37 -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 +37 -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/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.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/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/index.js +66 -0
- package/lib/molecule/vertical-tabs/index.js.map +1 -0
- package/lib/molecule/vertical-tabs/style.css +69 -0
- package/lib/molecule/vertical-tabs/test/fixtures/default.js +46 -0
- package/lib/molecule/vertical-tabs/test/fixtures/default.js.map +1 -0
- package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.js +86 -0
- package/lib/molecule/vertical-tabs/test/fixtures/with-selected-item.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/index.js +213 -0
- package/lib/molecule/wizard-summary/index.js.map +1 -0
- package/lib/molecule/wizard-summary/style.css +230 -0
- package/lib/molecule/wizard-summary/test/fixtures/default.js +129 -0
- package/lib/molecule/wizard-summary/test/fixtures/default.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/one-section.js +28 -0
- package/lib/molecule/wizard-summary/test/fixtures/one-section.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js +123 -0
- package/lib/molecule/wizard-summary/test/fixtures/tablet-closed.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +47 -0
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -0
- package/lib/molecule/wizard-summary/test/fixtures/two-sections.js +40 -0
- package/lib/molecule/wizard-summary/test/fixtures/two-sections.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 +49 -0
- package/lib/organism/brand-form/test/fixtures.js.map +1 -0
- package/lib/organism/brand-table/index.js +3 -3
- package/lib/organism/brand-table/index.js.map +1 -1
- 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/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/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/index.js +2 -2
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
- package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
- 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/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/style.css +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/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/index.js +7 -3
- package/lib/template/back-office/brand-list/index.js.map +1 -1
- package/lib/template/back-office/brand-list/style.css +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 +103 -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 +49 -0
- package/lib/template/external-course/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/lib/variables/colors.css +18 -2
- package/package.json +3 -3
- package/es/molecule/search/index.js +0 -57
- package/es/molecule/search/index.js.map +0 -1
- package/es/molecule/search/style.css +0 -86
- package/es/molecule/search/test/change.js.map +0 -1
- package/es/molecule/search/test/fixtures/default.js.map +0 -1
- package/es/molecule/search/test/fixtures/with-value.js.map +0 -1
- package/lib/molecule/search/index.js.map +0 -1
- package/lib/molecule/search/style.css +0 -86
- package/lib/molecule/search/test/change.js.map +0 -1
- package/lib/molecule/search/test/fixtures/default.js.map +0 -1
- package/lib/molecule/search/test/fixtures/with-value.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","innerHTML","style","MODES","HERO","CARD","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","bool","string","CardTitle","title","empty","courseContent","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","number"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,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["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isNil} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport {innerHTML} from '../../atom/label/style.css';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon height={40} width={40} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div data-name=\"progress\" className={style.progress} style={inlineProgressValueStyle} />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n {adaptiveIcon}\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nexport default ContentInfo;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/card-content/index.js"],"names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","ContentBadge","innerHTML","style","MODES","HERO","CARD","ContentTypeInfo","mode","type","externalContent","context","translate","microLearningIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","bool","string","CardTitle","title","empty","courseContent","lightTitle","darkTitle","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","progressWrapper","hideProgressBar","adaptiveIcon","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","number","category","label"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,SACEC,mCAAmC,IAAIC,WADzC,EAEEC,2BAA2B,IAAIC,SAFjC,EAGEC,gCAAgC,IAAIC,SAHtC,QAIO,0BAJP;AAKA,SAAQC,iBAAR,EAA2BC,sBAA3B,QAAwD,6BAAxD;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,YAAP,MAAyB,0BAAzB;AACA,SAAQC,SA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mB,EAAAA,aAAa,EAAEzC,YAAY,CAACoB,SAAb,CAAuBwC,QAVhB;AAWtBlB,EAAAA,UAAU,EAAE1C,YAAY,CAACoB,SAAb,CAAuByC;AAXb,CAAxB;AAcA,eAAexB,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {isNil} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport {innerHTML} from '../../atom/label/style.css';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon height={40} width={40} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon\n className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)}\n color=\"inherit\"\n />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div data-name=\"progress\" className={style.progress} style={inlineProgressValueStyle} />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label\n};\n\nexport default ContentInfo;\n"],"file":"index.js"}
|
|
@@ -13,20 +13,23 @@
|
|
|
13
13
|
.microLearningCardInfo {
|
|
14
14
|
flex: 1 0 auto;
|
|
15
15
|
}
|
|
16
|
+
|
|
16
17
|
.microLearningIcon {
|
|
17
18
|
display: flex;
|
|
18
19
|
flex-direction: column;
|
|
19
20
|
align-self: center;
|
|
20
21
|
margin-top: 53px;
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
.microLearningIcon svg {
|
|
23
25
|
background:white;
|
|
24
26
|
border-radius: 50%;
|
|
25
|
-
margin:
|
|
27
|
+
margin: 0 auto;
|
|
26
28
|
padding: 3px;
|
|
27
29
|
box-sizing: content-box;
|
|
28
30
|
color: lightBlack;
|
|
29
31
|
}
|
|
32
|
+
|
|
30
33
|
.microLearninglabel {
|
|
31
34
|
font-family: 'Open Sans';
|
|
32
35
|
font-size: 10px;
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
color: lightBlack;
|
|
35
38
|
text-transform: uppercase;
|
|
36
39
|
}
|
|
40
|
+
|
|
37
41
|
.infoWrapper {
|
|
38
42
|
display: flex;
|
|
39
43
|
flex-direction: column;
|
|
@@ -60,7 +64,7 @@
|
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
.darkTitle {
|
|
63
|
-
color: lightBlack
|
|
67
|
+
color: lightBlack;
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
.darkAuthorTitle {
|
|
@@ -138,8 +142,13 @@
|
|
|
138
142
|
font-size: 5px;
|
|
139
143
|
width: 25px;
|
|
140
144
|
height: 25px;
|
|
141
|
-
margin-top: -25px;
|
|
142
145
|
color: lightBlack;
|
|
146
|
+
margin-right: 5px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.iconWrapper {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
143
152
|
}
|
|
144
153
|
|
|
145
154
|
.authorIcon {
|
|
@@ -183,6 +192,7 @@
|
|
|
183
192
|
font-size: 10px;
|
|
184
193
|
font-weight: 700;
|
|
185
194
|
}
|
|
195
|
+
|
|
186
196
|
.externalContent .cardInfo {
|
|
187
197
|
flex-grow: 2;
|
|
188
198
|
max-height: 115px;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeCardContent from '..';
|
|
5
|
+
import fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';
|
|
6
|
+
import fixtureAdaptiv from './fixtures/adaptiv';
|
|
7
|
+
import fixtureArabicHero from './fixtures/arabic-hero';
|
|
8
|
+
import fixtureCardNoProgressBar from './fixtures/card-no-progress-bar';
|
|
9
|
+
import fixtureCard from './fixtures/card';
|
|
10
|
+
import fixtureDisabled from './fixtures/disabled';
|
|
11
|
+
import fixtureEmpty from './fixtures/empty';
|
|
12
|
+
import fixtureHero from './fixtures/hero';
|
|
13
|
+
test('Molecule › MoleculeCardContent > should have valid propTypes', t => {
|
|
14
|
+
t.pass();
|
|
15
|
+
forEach(MoleculeCardContent.propTypes, (value, key) => {
|
|
16
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeCardContent.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
test('Molecule › MoleculeCardContent › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureAdaptivAndDisabled);
|
|
20
|
+
test('Molecule › MoleculeCardContent › Adaptiv › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureAdaptiv);
|
|
21
|
+
test('Molecule › MoleculeCardContent › ArabicHero › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureArabicHero);
|
|
22
|
+
test('Molecule › MoleculeCardContent › CardNoProgressBar › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureCardNoProgressBar);
|
|
23
|
+
test('Molecule › MoleculeCardContent › Card › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureCard);
|
|
24
|
+
test('Molecule › MoleculeCardContent › Disabled › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureDisabled);
|
|
25
|
+
test('Molecule › MoleculeCardContent › Empty › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureEmpty);
|
|
26
|
+
test('Molecule › MoleculeCardContent › Hero › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureHero);
|
|
27
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/card-content/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCardContent","fixtureAdaptivAndDisabled","fixtureAdaptiv","fixtureArabicHero","fixtureCardNoProgressBar","fixtureCard","fixtureDisabled","fixtureEmpty","fixtureHero","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAA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;AACAV,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,mBAArF,EAA0GQ,WAA1G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCardContent from '..';\nimport fixtureAdaptivAndDisabled from './fixtures/adaptiv-and-disabled';\nimport fixtureAdaptiv from './fixtures/adaptiv';\nimport fixtureArabicHero from './fixtures/arabic-hero';\nimport fixtureCardNoProgressBar from './fixtures/card-no-progress-bar';\nimport fixtureCard from './fixtures/card';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureHero from './fixtures/hero';\n\ntest('Molecule › MoleculeCardContent > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCardContent.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCardContent.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCardContent › AdaptivAndDisabled › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureAdaptivAndDisabled);\ntest('Molecule › MoleculeCardContent › Adaptiv › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureAdaptiv);\ntest('Molecule › MoleculeCardContent › ArabicHero › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureArabicHero);\ntest('Molecule › MoleculeCardContent › CardNoProgressBar › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureCardNoProgressBar);\ntest('Molecule › MoleculeCardContent › Card › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureCard);\ntest('Molecule › MoleculeCardContent › Disabled › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureDisabled);\ntest('Molecule › MoleculeCardContent › Empty › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureEmpty);\ntest('Molecule › MoleculeCardContent › Hero › should be rendered', renderComponentMacro, MoleculeCardContent, fixtureHero);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeCardWithButton from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureWithAvatar from './fixtures/with-avatar';
|
|
7
|
+
import fixtureWithoutLabel from './fixtures/without-label';
|
|
8
|
+
test('Molecule › MoleculeCardWithButton > should have valid propTypes', t => {
|
|
9
|
+
t.pass();
|
|
10
|
+
forEach(MoleculeCardWithButton.propTypes, (value, key) => {
|
|
11
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeCardWithButton.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
test('Molecule › MoleculeCardWithButton › Default › should be rendered', renderComponentMacro, MoleculeCardWithButton, fixtureDefault);
|
|
15
|
+
test('Molecule › MoleculeCardWithButton › WithAvatar › should be rendered', renderComponentMacro, MoleculeCardWithButton, fixtureWithAvatar);
|
|
16
|
+
test('Molecule › MoleculeCardWithButton › WithoutLabel › should be rendered', renderComponentMacro, MoleculeCardWithButton, fixtureWithoutLabel);
|
|
17
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/card-with-button/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCardWithButton","fixtureDefault","fixtureWithAvatar","fixtureWithoutLabel","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AAEAN,IAAI,CAAC,iEAAD,EAAoEO,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,sBAAsB,CAACM,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,sBAA9F,EAAsHE,iBAAtH,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,sBAAhG,EAAwHG,mBAAxH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCardWithButton from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithAvatar from './fixtures/with-avatar';\nimport fixtureWithoutLabel from './fixtures/without-label';\n\ntest('Molecule › MoleculeCardWithButton > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCardWithButton.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCardWithButton.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCardWithButton › Default › should be rendered', renderComponentMacro, MoleculeCardWithButton, fixtureDefault);\ntest('Molecule › MoleculeCardWithButton › WithAvatar › should be rendered', renderComponentMacro, MoleculeCardWithButton, fixtureWithAvatar);\ntest('Molecule › MoleculeCardWithButton › WithoutLabel › should be rendered', renderComponentMacro, MoleculeCardWithButton, fixtureWithoutLabel);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond, NovaSolidApplicationsWindowUpload3 as WindowUpload, NovaSolidStatusClose as Close } from '@coorpacademy/nova-icons';
|
|
4
|
+
import Cta from '../../atom/button-link';
|
|
5
|
+
import style from './style.css';
|
|
6
|
+
|
|
7
|
+
const CMPopin = props => {
|
|
8
|
+
const {
|
|
9
|
+
content,
|
|
10
|
+
firstButton,
|
|
11
|
+
secondButton,
|
|
12
|
+
onClose,
|
|
13
|
+
icon
|
|
14
|
+
} = props;
|
|
15
|
+
const logo = {
|
|
16
|
+
AlertDiamond,
|
|
17
|
+
WindowUpload
|
|
18
|
+
};
|
|
19
|
+
const LogoComponent = logo[icon];
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: style.background
|
|
22
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: style.popin
|
|
24
|
+
}, /*#__PURE__*/React.createElement("header", {
|
|
25
|
+
className: style.popinHeader
|
|
26
|
+
}, onClose ? /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: style.headerCloseIconContainer,
|
|
28
|
+
onClick: onClose,
|
|
29
|
+
"data-name": 'close-icon'
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Close, {
|
|
31
|
+
className: style.headerCloseIcon
|
|
32
|
+
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: style.contentSection
|
|
34
|
+
}, LogoComponent ? /*#__PURE__*/React.createElement(LogoComponent, {
|
|
35
|
+
className: style.icon
|
|
36
|
+
}) : null, /*#__PURE__*/React.createElement("p", {
|
|
37
|
+
className: style.content,
|
|
38
|
+
"data-name": `cm-popin-content` // eslint-disable-next-line react/no-danger
|
|
39
|
+
,
|
|
40
|
+
dangerouslySetInnerHTML: {
|
|
41
|
+
__html: content
|
|
42
|
+
}
|
|
43
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: style.buttonContainer
|
|
45
|
+
}, firstButton ? /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: style.button
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Cta, {
|
|
48
|
+
label: firstButton.label,
|
|
49
|
+
onClick: firstButton.handleOnclick,
|
|
50
|
+
"data-name": `cm-popin-cta`,
|
|
51
|
+
"aria-lable": firstButton.ariaLabel,
|
|
52
|
+
type: firstButton.type
|
|
53
|
+
})) : null, secondButton ? /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
className: style.button
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Cta, {
|
|
56
|
+
label: secondButton.label,
|
|
57
|
+
onClick: secondButton.handleOnclick,
|
|
58
|
+
"data-name": `cm-popin-cta-${secondButton.type}`,
|
|
59
|
+
"aria-lable": firstButton.ariaLabel,
|
|
60
|
+
type: secondButton.type
|
|
61
|
+
})) : null)), ")");
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
CMPopin.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
65
|
+
content: PropTypes.string,
|
|
66
|
+
firstButton: PropTypes.shape({
|
|
67
|
+
label: PropTypes.string,
|
|
68
|
+
handleOnclick: PropTypes.func,
|
|
69
|
+
ariaLabel: PropTypes.string,
|
|
70
|
+
type: PropTypes.string
|
|
71
|
+
}),
|
|
72
|
+
secondButton: PropTypes.shape({
|
|
73
|
+
label: PropTypes.string,
|
|
74
|
+
handleOnclick: PropTypes.func,
|
|
75
|
+
type: PropTypes.oneOf(['dangerous', 'primary']),
|
|
76
|
+
ariaLabel: PropTypes.string
|
|
77
|
+
}),
|
|
78
|
+
onClose: PropTypes.func,
|
|
79
|
+
icon: PropTypes.string
|
|
80
|
+
} : {};
|
|
81
|
+
export default CMPopin;
|
|
82
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/cm-popin/index.js"],"names":["React","PropTypes","NovaSolidInterfaceFeedbackInterfaceAlertDiamond","AlertDiamond","NovaSolidApplicationsWindowUpload3","WindowUpload","NovaSolidStatusClose","Close","Cta","style","CMPopin","props","content","firstButton","secondButton","onClose","icon","logo","LogoComponent","background","popin","popinHeader","headerCloseIconContainer","headerCloseIcon","contentSection","__html","buttonContainer","button","label","handleOnclick","ariaLabel","type","propTypes","string","shape","func","oneOf"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SACEC,+CAA+C,IAAIC,YADrD,EAEEC,kCAAkC,IAAIC,YAFxC,EAGEC,oBAAoB,IAAIC,KAH1B,QAIO,0BAJP;AAKA,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,OAAO,GAAGC,KAAK,IAAI;AACvB,QAAM;AAACC,IAAAA,OAAD;AAAUC,IAAAA,WAAV;AAAuBC,IAAAA,YAAvB;AAAqCC,IAAAA,OAArC;AAA8CC,IAAAA;AAA9C,MAAsDL,KAA5D;AAEA,QAAMM,IAAI,GAAG;AACXd,IAAAA,YADW;AAEXE,IAAAA;AAFW,GAAb;AAIA,QAAMa,aAAa,GAAGD,IAAI,CAACD,IAAD,CAA1B;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEP,KAAK,CAACU;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEV,KAAK,CAACW;AAAtB,kBACE;AAAQ,IAAA,SAAS,EAAEX,KAAK,CAACY;AAAzB,KACGN,OAAO,gBACN;AACE,IAAA,SAAS,EAAEN,KAAK,CAACa,wBADnB;AAEE,IAAA,OAAO,EAAEP,OAFX;AAGE,iBAAW;AAHb,kBAKE,oBAAC,KAAD;AAAO,IAAA,SAAS,EAAEN,KAAK,CAACc;AAAxB,IALF,CADM,GAQJ,IATN,CADF,eAYE;AAAK,IAAA,SAAS,EAAEd,KAAK,CAACe;AAAtB,KACGN,aAAa,gBAAG,oBAAC,aAAD;AAAe,IAAA,SAAS,EAAET,KAAK,CAACO;AAAhC,IAAH,G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QlBnB,EAAAA,YAAY,EAAEb,SAAS,CAACiC,KAAV,CAAgB;AAC5BN,IAAAA,KAAK,EAAE3B,SAAS,CAACgC,MADW;AAE5BJ,IAAAA,aAAa,EAAE5B,SAAS,CAACkC,IAFG;AAG5BJ,IAAAA,IAAI,EAAE9B,SAAS,CAACmC,KAAV,CAAgB,CAAC,WAAD,EAAc,SAAd,CAAhB,CAHsB;AAI5BN,IAAAA,SAAS,EAAE7B,SAAS,CAACgC;AAJO,GAAhB,CARI;AAclBlB,EAAAA,OAAO,EAAEd,SAAS,CAACkC,IAdD;AAelBnB,EAAAA,IAAI,EAAEf,SAAS,CAACgC;AAfE,CAApB;AAkBA,eAAevB,OAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n NovaSolidInterfaceFeedbackInterfaceAlertDiamond as AlertDiamond,\n NovaSolidApplicationsWindowUpload3 as WindowUpload,\n NovaSolidStatusClose as Close\n} from '@coorpacademy/nova-icons';\nimport Cta from '../../atom/button-link';\nimport style from './style.css';\n\nconst CMPopin = props => {\n const {content, firstButton, secondButton, onClose, icon} = props;\n\n const logo = {\n AlertDiamond,\n WindowUpload\n };\n const LogoComponent = logo[icon];\n\n return (\n <div className={style.background}>\n <div className={style.popin}>\n <header className={style.popinHeader}>\n {onClose ? (\n <div\n className={style.headerCloseIconContainer}\n onClick={onClose}\n data-name={'close-icon'}\n >\n <Close className={style.headerCloseIcon} />\n </div>\n ) : null}\n </header>\n <div className={style.contentSection}>\n {LogoComponent ? <LogoComponent className={style.icon} /> : null}\n <p\n className={style.content}\n data-name={`cm-popin-content`}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n </div>\n\n <div className={style.buttonContainer}>\n {firstButton ? (\n <div className={style.button}>\n <Cta\n label={firstButton.label}\n onClick={firstButton.handleOnclick}\n data-name={`cm-popin-cta`}\n aria-lable={firstButton.ariaLabel}\n type={firstButton.type}\n />\n </div>\n ) : null}\n {secondButton ? (\n <div className={style.button}>\n <Cta\n label={secondButton.label}\n onClick={secondButton.handleOnclick}\n data-name={`cm-popin-cta-${secondButton.type}`}\n aria-lable={firstButton.ariaLabel}\n type={secondButton.type}\n />\n </div>\n ) : null}\n </div>\n </div>\n )\n </div>\n );\n};\n\nCMPopin.propTypes = {\n content: PropTypes.string,\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n ariaLabel: PropTypes.string,\n type: PropTypes.string\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary']),\n ariaLabel: PropTypes.string\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string\n};\n\nexport default CMPopin;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value dark from colors;
|
|
3
|
+
@value brand from colors;
|
|
4
|
+
@value light from colors;
|
|
5
|
+
@value black from colors;
|
|
6
|
+
@value cm_grey_800 from colors;
|
|
7
|
+
@value negative from colors;
|
|
8
|
+
@value lightGreen from colors;
|
|
9
|
+
@value cm_grey_50 from colors;
|
|
10
|
+
@value cm_negative_100 from colors;
|
|
11
|
+
@value cm_negative_200 from colors;
|
|
12
|
+
@value cm_primary_blue from colors;
|
|
13
|
+
@value cm_grey_100 from colors;
|
|
14
|
+
@value cm_grey_200 from colors;
|
|
15
|
+
@value cm_blue_600 from colors;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
.background {
|
|
19
|
+
top: 0px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 15% 25%;
|
|
24
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
display: flex;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.popin {
|
|
33
|
+
position: absolute;
|
|
34
|
+
overflow: auto;
|
|
35
|
+
width: 500px;
|
|
36
|
+
height: 414px;
|
|
37
|
+
flex-grow: 0;
|
|
38
|
+
margin: 16px;
|
|
39
|
+
padding: 16px 16px 20px 16px;
|
|
40
|
+
border-radius: 20px;
|
|
41
|
+
background-color: cm_grey_50;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.contentSection {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
width: 65%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.content {
|
|
57
|
+
font-family: Gilroy;
|
|
58
|
+
font-size: 20px;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
font-stretch: normal;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
line-height: 1.4;
|
|
63
|
+
letter-spacing: normal;
|
|
64
|
+
text-align: center;
|
|
65
|
+
color: cm_grey_800;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.buttonContainer {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 80px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.button {
|
|
77
|
+
width: 160px;
|
|
78
|
+
padding: 8px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.icon {
|
|
82
|
+
width: 60px;
|
|
83
|
+
height: 60px;
|
|
84
|
+
color: cm_grey_800;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.headerCloseIconContainer {
|
|
88
|
+
width: 44px;
|
|
89
|
+
height: 44px;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
align-items: center;
|
|
94
|
+
margin-top: 16px;
|
|
95
|
+
margin-right: 16px;
|
|
96
|
+
border-radius: 7px;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
background-color: cm_grey_100;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.headerCloseIconContainer:hover {
|
|
102
|
+
background-color: cm_grey_200;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.headerCloseIcon {
|
|
106
|
+
width: 18px;
|
|
107
|
+
height: 18px;
|
|
108
|
+
color: cm_grey_800;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.popinHeader {
|
|
112
|
+
width: 100%;
|
|
113
|
+
display: flex;
|
|
114
|
+
justify-content: flex-end;
|
|
115
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
props: {
|
|
3
|
+
content: 'Are you sure to undo this changes? This will be permanent',
|
|
4
|
+
icon: 'AlertDiamond',
|
|
5
|
+
firstButton: {
|
|
6
|
+
label: 'Cancel',
|
|
7
|
+
type: 'secondary',
|
|
8
|
+
'aria-lable': 'Cancel this operation',
|
|
9
|
+
handleOnClick: () => {}
|
|
10
|
+
},
|
|
11
|
+
secondButton: {
|
|
12
|
+
label: 'Undo',
|
|
13
|
+
type: 'dangerous',
|
|
14
|
+
'aria-lable': 'Undo this operation',
|
|
15
|
+
handleOnClick: () => {}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=dangerous.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/dangerous.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,2DADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,QADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGX,oBAAc,uBAHH;AAIXC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJZ,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,IAAI,EAAE,WAFM;AAGZ,oBAAc,qBAHF;AAIZC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJX;AATT;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Are you sure to undo this changes? This will be permanent',\n icon: 'AlertDiamond',\n firstButton: {\n label: 'Cancel',\n type: 'secondary',\n 'aria-lable': 'Cancel this operation',\n handleOnClick: () => {}\n },\n secondButton: {\n label: 'Undo',\n type: 'dangerous',\n 'aria-lable': 'Undo this operation',\n handleOnClick: () => {}\n }\n }\n};\n"],"file":"dangerous.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
props: {
|
|
3
|
+
content: 'Do you want to publish the custom playlist?',
|
|
4
|
+
icon: 'WindowUpload',
|
|
5
|
+
firstButton: {
|
|
6
|
+
label: 'Cancel',
|
|
7
|
+
type: 'secondary',
|
|
8
|
+
handleOnClick: () => {},
|
|
9
|
+
'aria-lable': 'Cancel this operation'
|
|
10
|
+
},
|
|
11
|
+
secondButton: {
|
|
12
|
+
label: 'Undo',
|
|
13
|
+
type: 'primary',
|
|
14
|
+
handleOnClick: () => {},
|
|
15
|
+
'aria-lable': 'Undo this operation'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/default.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,6CADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,QADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGXC,MAAAA,aAAa,EAAE,MAAM,CAAE,CAHZ;AAIX,oBAAc;AAJH,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,IAAI,EAAE,SAFM;AAGZC,MAAAA,aAAa,EAAE,MAAM,CAAE,CAHX;AAIZ,oBAAc;AAJF;AATT;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Do you want to publish the custom playlist?',\n icon: 'WindowUpload',\n firstButton: {\n label: 'Cancel',\n type: 'secondary',\n handleOnClick: () => {},\n 'aria-lable': 'Cancel this operation'\n },\n secondButton: {\n label: 'Undo',\n type: 'primary',\n handleOnClick: () => {},\n 'aria-lable': 'Undo this operation'\n }\n }\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
props: {
|
|
3
|
+
content: 'Do you want to save changes before quiting?',
|
|
4
|
+
icon: 'AlertDiamond',
|
|
5
|
+
firstButton: {
|
|
6
|
+
label: 'Quit without saving',
|
|
7
|
+
type: 'secondary',
|
|
8
|
+
'aria-lable': 'Quit this operation without saving',
|
|
9
|
+
handleOnClick: () => {}
|
|
10
|
+
},
|
|
11
|
+
secondButton: {
|
|
12
|
+
label: 'Save & Quit',
|
|
13
|
+
type: 'primary',
|
|
14
|
+
'aria-lable': 'Save and quit',
|
|
15
|
+
handleOnClick: () => {}
|
|
16
|
+
},
|
|
17
|
+
onClose: () => console.log('onClose')
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=warning-with-close.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/cm-popin/test/fixtures/warning-with-close.js"],"names":["props","content","icon","firstButton","label","type","handleOnClick","secondButton","onClose","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,6CADJ;AAELC,IAAAA,IAAI,EAAE,cAFD;AAGLC,IAAAA,WAAW,EAAE;AACXC,MAAAA,KAAK,EAAE,qBADI;AAEXC,MAAAA,IAAI,EAAE,WAFK;AAGX,oBAAc,oCAHH;AAIXC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJZ,KAHR;AASLC,IAAAA,YAAY,EAAE;AACZH,MAAAA,KAAK,EAAE,aADK;AAEZC,MAAAA,IAAI,EAAE,SAFM;AAGZ,oBAAc,eAHF;AAIZC,MAAAA,aAAa,EAAE,MAAM,CAAE;AAJX,KATT;AAeLE,IAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,SAAZ;AAfV;AADM,CAAf","sourcesContent":["export default {\n props: {\n content: 'Do you want to save changes before quiting?',\n icon: 'AlertDiamond',\n firstButton: {\n label: 'Quit without saving',\n type: 'secondary',\n 'aria-lable': 'Quit this operation without saving',\n handleOnClick: () => {}\n },\n secondButton: {\n label: 'Save & Quit',\n type: 'primary',\n 'aria-lable': 'Save and quit',\n handleOnClick: () => {}\n },\n onClose: () => console.log('onClose')\n }\n};\n"],"file":"warning-with-close.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeCockpitPopin from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureLoading from './fixtures/loading';
|
|
7
|
+
import fixtureVideoTranslate from './fixtures/video-translate';
|
|
8
|
+
test('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {
|
|
9
|
+
t.pass();
|
|
10
|
+
forEach(MoleculeCockpitPopin.propTypes, (value, key) => {
|
|
11
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeCockpitPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
test('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);
|
|
15
|
+
test('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);
|
|
16
|
+
test('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);
|
|
17
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/cockpit-popin/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCockpitPopin","fixtureDefault","fixtureLoading","fixtureVideoTranslate","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AAEAN,IAAI,CAAC,+DAAD,EAAkEO,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,oBAAoB,CAACM,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GC,cAA/G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,oBAAhG,EAAsHG,qBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCockpitPopin from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureVideoTranslate from './fixtures/video-translate';\n\ntest('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCockpitPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCockpitPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);\ntest('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);\ntest('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeCookieBanner from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
test('Molecule › MoleculeCookieBanner > should have valid propTypes', t => {
|
|
7
|
+
t.pass();
|
|
8
|
+
forEach(MoleculeCookieBanner.propTypes, (value, key) => {
|
|
9
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeCookieBanner.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
test('Molecule › MoleculeCookieBanner › Default › should be rendered', renderComponentMacro, MoleculeCookieBanner, fixtureDefault);
|
|
13
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/cookie-banner/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCookieBanner","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,+DAAD,EAAkEK,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,oBAAoB,CAACI,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GC,cAA/G,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCookieBanner from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Molecule › MoleculeCookieBanner > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCookieBanner.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCookieBanner.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCookieBanner › Default › should be rendered', renderComponentMacro, MoleculeCookieBanner, fixtureDefault);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeCoorpManagerRoles from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
test('Molecule › MoleculeCoorpManagerRoles > should have valid propTypes', t => {
|
|
7
|
+
t.pass();
|
|
8
|
+
forEach(MoleculeCoorpManagerRoles.propTypes, (value, key) => {
|
|
9
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeCoorpManagerRoles.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
test('Molecule › MoleculeCoorpManagerRoles › Default › should be rendered', renderComponentMacro, MoleculeCoorpManagerRoles, fixtureDefault);
|
|
13
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/coorp-manager-roles/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCoorpManagerRoles","fixtureDefault","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,yBAAP,MAAsC,IAAtC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,oEAAD,EAAuEK,CAAC,IAAI;AAC9EA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,yBAAyB,CAACI,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,8DAA6DF,GAAI,mEAA1F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,yBAA9F,EAAyHC,cAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCoorpManagerRoles from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('Molecule › MoleculeCoorpManagerRoles > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCoorpManagerRoles.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCoorpManagerRoles.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCoorpManagerRoles › Default › should be rendered', renderComponentMacro, MoleculeCoorpManagerRoles, fixtureDefault);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeDashboardBattleRequestList from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureEmpty from './fixtures/empty';
|
|
7
|
+
test('MoleculeDashboard › MoleculeDashboardBattleRequestList > should have valid propTypes', t => {
|
|
8
|
+
t.pass();
|
|
9
|
+
forEach(MoleculeDashboardBattleRequestList.propTypes, (value, key) => {
|
|
10
|
+
t.not(value, undefined, `PropType for "MoleculeDashboard.MoleculeDashboardBattleRequestList.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
test('MoleculeDashboard › MoleculeDashboardBattleRequestList › Default › should be rendered', renderComponentMacro, MoleculeDashboardBattleRequestList, fixtureDefault);
|
|
14
|
+
test('MoleculeDashboard › MoleculeDashboardBattleRequestList › Empty › should be rendered', renderComponentMacro, MoleculeDashboardBattleRequestList, fixtureEmpty);
|
|
15
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/dashboard/battle-request-list/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDashboardBattleRequestList","fixtureDefault","fixtureEmpty","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,kCAAP,MAA+C,IAA/C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEAL,IAAI,CAAC,sFAAD,EAAyFM,CAAC,IAAI;AAChGA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,kCAAkC,CAACK,SAApC,EAA+C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpEJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gFAA+EF,GAAI,mEAA5G;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,kCAAhH,EAAoJC,cAApJ,CAAJ;AACAJ,IAAI,CAAC,qFAAD,EAAwFE,oBAAxF,EAA8GC,kCAA9G,EAAkJE,YAAlJ,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeDashboardBattleRequestList from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\n\ntest('MoleculeDashboard › MoleculeDashboardBattleRequestList > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDashboardBattleRequestList.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeDashboard.MoleculeDashboardBattleRequestList.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeDashboard › MoleculeDashboardBattleRequestList › Default › should be rendered', renderComponentMacro, MoleculeDashboardBattleRequestList, fixtureDefault);\ntest('MoleculeDashboard › MoleculeDashboardBattleRequestList › Empty › should be rendered', renderComponentMacro, MoleculeDashboardBattleRequestList, fixtureEmpty);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeDashboardCardsList from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureManyEmpty from './fixtures/many-empty';
|
|
7
|
+
import fixtureMany from './fixtures/many';
|
|
8
|
+
import fixtureMicrolearning from './fixtures/microlearning';
|
|
9
|
+
import fixtureNoIcon from './fixtures/no-icon';
|
|
10
|
+
import fixturePerformance from './fixtures/performance';
|
|
11
|
+
test('MoleculeDashboard › MoleculeDashboardCardsList > should have valid propTypes', t => {
|
|
12
|
+
t.pass();
|
|
13
|
+
forEach(MoleculeDashboardCardsList.propTypes, (value, key) => {
|
|
14
|
+
t.not(value, undefined, `PropType for "MoleculeDashboard.MoleculeDashboardCardsList.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
test('MoleculeDashboard › MoleculeDashboardCardsList › Default › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureDefault);
|
|
18
|
+
test('MoleculeDashboard › MoleculeDashboardCardsList › ManyEmpty › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureManyEmpty);
|
|
19
|
+
test('MoleculeDashboard › MoleculeDashboardCardsList › Many › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureMany);
|
|
20
|
+
test('MoleculeDashboard › MoleculeDashboardCardsList › Microlearning › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureMicrolearning);
|
|
21
|
+
test('MoleculeDashboard › MoleculeDashboardCardsList › NoIcon › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureNoIcon);
|
|
22
|
+
test('MoleculeDashboard › MoleculeDashboardCardsList › Performance › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixturePerformance);
|
|
23
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/dashboard/cards-list/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDashboardCardsList","fixtureDefault","fixtureManyEmpty","fixtureMany","fixtureMicrolearning","fixtureNoIcon","fixturePerformance","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,0BAAP,MAAuC,IAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,oBAAP,MAAiC,0BAAjC;AACA,OAAOC,aAAP,MAA0B,oBAA1B;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AAEAT,IAAI,CAAC,8EAAD,EAAiFU,CAAC,IAAI;AACxFA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,0BAA0B,CAACS,SAA5B,EAAuC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC5DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,wEAAuEF,GAAI,mEAApG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,0BAAxG,EAAoIC,cAApI,CAAJ;AACAJ,IAAI,CAAC,iFAAD,EAAoFE,oBAApF,EAA0GC,0BAA1G,EAAsIE,gBAAtI,CAAJ;AACAL,IAAI,CAAC,4EAAD,EAA+EE,oBAA/E,EAAqGC,0BAArG,EAAiIG,WAAjI,CAAJ;AACAN,IAAI,CAAC,qFAAD,EAAwFE,oBAAxF,EAA8GC,0BAA9G,EAA0II,oBAA1I,CAAJ;AACAP,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,0BAAvG,EAAmIK,aAAnI,CAAJ;AACAR,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,0BAA5G,EAAwIM,kBAAxI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport MoleculeDashboardCardsList from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureManyEmpty from './fixtures/many-empty';\nimport fixtureMany from './fixtures/many';\nimport fixtureMicrolearning from './fixtures/microlearning';\nimport fixtureNoIcon from './fixtures/no-icon';\nimport fixturePerformance from './fixtures/performance';\n\ntest('MoleculeDashboard › MoleculeDashboardCardsList > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDashboardCardsList.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"MoleculeDashboard.MoleculeDashboardCardsList.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('MoleculeDashboard › MoleculeDashboardCardsList › Default › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureDefault);\ntest('MoleculeDashboard › MoleculeDashboardCardsList › ManyEmpty › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureManyEmpty);\ntest('MoleculeDashboard › MoleculeDashboardCardsList › Many › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureMany);\ntest('MoleculeDashboard › MoleculeDashboardCardsList › Microlearning › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureMicrolearning);\ntest('MoleculeDashboard › MoleculeDashboardCardsList › NoIcon › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixtureNoIcon);\ntest('MoleculeDashboard › MoleculeDashboardCardsList › Performance › should be rendered', renderComponentMacro, MoleculeDashboardCardsList, fixturePerformance);\n"],"file":"fixtures.js"}
|