@coorpacademy/components 10.19.2 → 10.20.0-alpha.0
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/button-link-icon-only/test/button-link-icon-only.js +18 -23
- package/es/atom/button-link-icon-only/test/button-link-icon-only.js.map +1 -1
- package/es/atom/checkbox/index.js +25 -41
- package/es/atom/checkbox/index.js.map +1 -1
- package/es/atom/checkbox/test/fixtures/default.js +2 -1
- package/es/atom/checkbox/test/fixtures/default.js.map +1 -1
- package/es/atom/checkbox/test/on-change.js +25 -22
- package/es/atom/checkbox/test/on-change.js.map +1 -1
- package/es/atom/clue/index.js +2 -1
- package/es/atom/clue/index.js.map +1 -1
- package/es/atom/clue/test/see-clue.js +83 -58
- package/es/atom/clue/test/see-clue.js.map +1 -1
- package/es/index.js +2 -1
- package/es/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +3 -7
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/organism/review-congrats/index.js +1 -3
- package/es/organism/review-congrats/index.js.map +1 -1
- package/es/template/app-review/root-view.js +46 -0
- package/es/template/app-review/root-view.js.map +1 -0
- package/es/template/app-review/root-view.modules.css +8 -0
- package/es/template/app-review/root-view.native.js +61 -0
- package/es/template/app-review/root-view.native.js.map +1 -0
- package/es/util/render-with-context.js +35 -0
- package/es/util/render-with-context.js.map +1 -0
- package/es/util/test/render-with-context.js +91 -0
- package/es/util/test/render-with-context.js.map +1 -0
- package/lib/atom/button-link-icon-only/test/button-link-icon-only.js +20 -24
- package/lib/atom/button-link-icon-only/test/button-link-icon-only.js.map +1 -1
- package/lib/atom/checkbox/index.js +29 -41
- package/lib/atom/checkbox/index.js.map +1 -1
- package/lib/atom/checkbox/test/fixtures/default.js +2 -1
- package/lib/atom/checkbox/test/fixtures/default.js.map +1 -1
- package/lib/atom/checkbox/test/on-change.js +29 -23
- package/lib/atom/checkbox/test/on-change.js.map +1 -1
- package/lib/atom/clue/index.js +2 -1
- package/lib/atom/clue/index.js.map +1 -1
- package/lib/atom/clue/test/see-clue.js +88 -59
- package/lib/atom/clue/test/see-clue.js.map +1 -1
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +3 -7
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/organism/review-congrats/index.js +1 -3
- package/lib/organism/review-congrats/index.js.map +1 -1
- package/lib/template/app-review/root-view.js +56 -0
- package/lib/template/app-review/root-view.js.map +1 -0
- package/lib/template/app-review/root-view.modules.css +8 -0
- package/lib/template/app-review/root-view.native.js +75 -0
- package/lib/template/app-review/root-view.native.js.map +1 -0
- package/lib/util/render-with-context.js +49 -0
- package/lib/util/render-with-context.js.map +1 -0
- package/lib/util/test/render-with-context.js +103 -0
- package/lib/util/test/render-with-context.js.map +1 -0
- package/package.json +2 -2
- package/es/atom/autocomplete/test/fixtures.js +0 -19
- package/es/atom/autocomplete/test/fixtures.js.map +0 -1
- package/es/atom/avatar/test/fixtures.js +0 -13
- package/es/atom/avatar/test/fixtures.js.map +0 -1
- package/es/atom/button/test/fixtures.js +0 -27
- package/es/atom/button/test/fixtures.js.map +0 -1
- package/es/atom/button-link/test/fixtures.js +0 -31
- package/es/atom/button-link/test/fixtures.js.map +0 -1
- package/es/atom/button-link-icon-only/test/fixtures.js +0 -23
- package/es/atom/button-link-icon-only/test/fixtures.js.map +0 -1
- package/es/atom/button-menu/test/fixtures.js +0 -15
- package/es/atom/button-menu/test/fixtures.js.map +0 -1
- package/es/atom/card-image-preview/test/fixtures.js +0 -15
- package/es/atom/card-image-preview/test/fixtures.js.map +0 -1
- package/es/atom/catalog-section/test/fixtures.js +0 -15
- package/es/atom/catalog-section/test/fixtures.js.map +0 -1
- package/es/atom/centered-text/test/fixtures.js +0 -13
- package/es/atom/centered-text/test/fixtures.js.map +0 -1
- package/es/atom/checkbox/test/fixtures.js +0 -19
- package/es/atom/checkbox/test/fixtures.js.map +0 -1
- package/es/atom/checkbox-with-title/test/fixtures.js +0 -15
- package/es/atom/checkbox-with-title/test/fixtures.js.map +0 -1
- package/es/atom/chips/test/fixtures.js +0 -17
- package/es/atom/chips/test/fixtures.js.map +0 -1
- package/es/atom/clue/test/fixtures.js +0 -17
- package/es/atom/clue/test/fixtures.js.map +0 -1
- package/es/atom/content-badge/test/fixtures.js +0 -29
- package/es/atom/content-badge/test/fixtures.js.map +0 -1
- package/es/atom/cta/test/fixtures.js +0 -37
- package/es/atom/cta/test/fixtures.js.map +0 -1
- package/es/atom/difficulty-level/test/fixtures.js +0 -19
- package/es/atom/difficulty-level/test/fixtures.js.map +0 -1
- package/es/atom/drag-and-drop/test/fixtures.js +0 -35
- package/es/atom/drag-and-drop/test/fixtures.js.map +0 -1
- package/es/atom/empty-search-result/test/fixtures.js +0 -13
- package/es/atom/empty-search-result/test/fixtures.js.map +0 -1
- package/es/atom/image-upload/test/fixtures.js +0 -33
- package/es/atom/image-upload/test/fixtures.js.map +0 -1
- package/es/atom/input-checkbox/test/fixtures.js +0 -25
- package/es/atom/input-checkbox/test/fixtures.js.map +0 -1
- package/es/atom/input-color/test/fixtures.js +0 -19
- package/es/atom/input-color/test/fixtures.js.map +0 -1
- package/es/atom/input-doublestep/test/fixtures.js +0 -21
- package/es/atom/input-doublestep/test/fixtures.js.map +0 -1
- package/es/atom/input-html/test/fixtures.js +0 -17
- package/es/atom/input-html/test/fixtures.js.map +0 -1
- package/es/atom/input-readonly/test/fixtures.js +0 -13
- package/es/atom/input-readonly/test/fixtures.js.map +0 -1
- package/es/atom/input-search/test/fixtures.js +0 -19
- package/es/atom/input-search/test/fixtures.js.map +0 -1
- package/es/atom/input-switch/test/fixtures.js +0 -33
- package/es/atom/input-switch/test/fixtures.js.map +0 -1
- package/es/atom/input-text/test/fixtures.js +0 -27
- package/es/atom/input-text/test/fixtures.js.map +0 -1
- package/es/atom/input-text-with-title/test/fixtures.js +0 -15
- package/es/atom/input-text-with-title/test/fixtures.js.map +0 -1
- package/es/atom/input-textarea/test/fixtures.js +0 -21
- package/es/atom/input-textarea/test/fixtures.js.map +0 -1
- package/es/atom/label/test/fixtures.js +0 -15
- package/es/atom/label/test/fixtures.js.map +0 -1
- package/es/atom/life/test/fixtures.js +0 -25
- package/es/atom/life/test/fixtures.js.map +0 -1
- package/es/atom/link/test/fixtures.js +0 -17
- package/es/atom/link/test/fixtures.js.map +0 -1
- package/es/atom/loader/test/fixtures.js +0 -15
- package/es/atom/loader/test/fixtures.js.map +0 -1
- package/es/atom/lottie-wrapper/test/fixtures.js +0 -19
- package/es/atom/lottie-wrapper/test/fixtures.js.map +0 -1
- package/es/atom/notification/test/fixtures.js +0 -17
- package/es/atom/notification/test/fixtures.js.map +0 -1
- package/es/atom/picture/test/fixtures.js +0 -19
- package/es/atom/picture/test/fixtures.js.map +0 -1
- package/es/atom/picture-background/test/fixtures.js +0 -19
- package/es/atom/picture-background/test/fixtures.js.map +0 -1
- package/es/atom/promo-code/test/fixtures.js +0 -17
- package/es/atom/promo-code/test/fixtures.js.map +0 -1
- package/es/atom/provider/test/fixtures.js +0 -13
- package/es/atom/provider/test/fixtures.js.map +0 -1
- package/es/atom/radio-group/test/fixtures.js +0 -17
- package/es/atom/radio-group/test/fixtures.js.map +0 -1
- package/es/atom/range/test/fixtures.js +0 -15
- package/es/atom/range/test/fixtures.js.map +0 -1
- package/es/atom/resource-miniature/test/fixtures.js +0 -21
- package/es/atom/resource-miniature/test/fixtures.js.map +0 -1
- package/es/atom/review-background/test/fixtures.js +0 -13
- package/es/atom/review-background/test/fixtures.js.map +0 -1
- package/es/atom/review-header-step-item/test/fixtures.js +0 -19
- package/es/atom/review-header-step-item/test/fixtures.js.map +0 -1
- package/es/atom/review-presentation/test/fixtures.js +0 -13
- package/es/atom/review-presentation/test/fixtures.js.map +0 -1
- package/es/atom/select/test/fixtures.js +0 -47
- package/es/atom/select/test/fixtures.js.map +0 -1
- package/es/atom/slide/test/fixtures.js +0 -21
- package/es/atom/slide/test/fixtures.js.map +0 -1
- package/es/atom/social-link/test/fixtures.js +0 -17
- package/es/atom/social-link/test/fixtures.js.map +0 -1
- package/es/atom/spinner/test/fixtures.js +0 -13
- package/es/atom/spinner/test/fixtures.js.map +0 -1
- package/es/atom/tab/test/fixtures.js +0 -13
- package/es/atom/tab/test/fixtures.js.map +0 -1
- package/es/atom/tab-content/test/fixtures.js +0 -15
- package/es/atom/tab-content/test/fixtures.js.map +0 -1
- package/es/atom/tag/test/fixtures.js +0 -21
- package/es/atom/tag/test/fixtures.js.map +0 -1
- package/es/atom/title/test/fixtures.js +0 -17
- package/es/atom/title/test/fixtures.js.map +0 -1
- package/es/atom/video-upload/test/fixtures.js +0 -21
- package/es/atom/video-upload/test/fixtures.js.map +0 -1
- package/es/atom/wizard-steps/test/fixtures.js +0 -17
- package/es/atom/wizard-steps/test/fixtures.js.map +0 -1
- package/es/hoc/animation/test/fixtures.js +0 -15
- package/es/hoc/animation/test/fixtures.js.map +0 -1
- package/es/hoc/animation-scheduler/test/fixtures.js +0 -15
- package/es/hoc/animation-scheduler/test/fixtures.js.map +0 -1
- package/es/hoc/swapper/test/fixtures.js +0 -13
- package/es/hoc/swapper/test/fixtures.js.map +0 -1
- package/es/hoc/transition/test/fixtures.js +0 -13
- package/es/hoc/transition/test/fixtures.js.map +0 -1
- package/es/molecule/add-to-my-list/test/fixtures.js +0 -15
- package/es/molecule/add-to-my-list/test/fixtures.js.map +0 -1
- package/es/molecule/answer/test/fixtures.js +0 -35
- package/es/molecule/answer/test/fixtures.js.map +0 -1
- package/es/molecule/audio/test/fixtures.js +0 -15
- package/es/molecule/audio/test/fixtures.js.map +0 -1
- package/es/molecule/banner/test/fixtures.js +0 -23
- package/es/molecule/banner/test/fixtures.js.map +0 -1
- package/es/molecule/battle-request/test/fixtures.js +0 -15
- package/es/molecule/battle-request/test/fixtures.js.map +0 -1
- package/es/molecule/brand-card/test/fixtures.js +0 -15
- package/es/molecule/brand-card/test/fixtures.js.map +0 -1
- package/es/molecule/brand-card-create/test/fixtures.js +0 -13
- package/es/molecule/brand-card-create/test/fixtures.js.map +0 -1
- package/es/molecule/brand-create-form/test/fixtures.js +0 -19
- package/es/molecule/brand-create-form/test/fixtures.js.map +0 -1
- package/es/molecule/brand-download-box/test/fixtures.js +0 -17
- package/es/molecule/brand-download-box/test/fixtures.js.map +0 -1
- package/es/molecule/brand-form-group/test/fixtures.js +0 -37
- package/es/molecule/brand-form-group/test/fixtures.js.map +0 -1
- package/es/molecule/brand-tabs/test/fixtures.js +0 -29
- package/es/molecule/brand-tabs/test/fixtures.js.map +0 -1
- package/es/molecule/brand-upload-box/test/fixtures.js +0 -17
- package/es/molecule/brand-upload-box/test/fixtures.js.map +0 -1
- package/es/molecule/breadcrumbs/test/fixtures.js +0 -13
- package/es/molecule/breadcrumbs/test/fixtures.js.map +0 -1
- package/es/molecule/bullet-point-menu-button/test/fixtures.js +0 -15
- package/es/molecule/bullet-point-menu-button/test/fixtures.js.map +0 -1
- package/es/molecule/card/test/fixtures.js +0 -45
- package/es/molecule/card/test/fixtures.js.map +0 -1
- package/es/molecule/card-content/test/fixtures.js +0 -27
- package/es/molecule/card-content/test/fixtures.js.map +0 -1
- package/es/molecule/card-with-button/test/fixtures.js +0 -17
- package/es/molecule/card-with-button/test/fixtures.js.map +0 -1
- package/es/molecule/cm-popin/test/fixtures.js +0 -17
- package/es/molecule/cm-popin/test/fixtures.js.map +0 -1
- package/es/molecule/cookie-banner/test/fixtures.js +0 -13
- package/es/molecule/cookie-banner/test/fixtures.js.map +0 -1
- package/es/molecule/coorp-manager-roles/test/fixtures.js +0 -13
- package/es/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
- package/es/molecule/course-section/test/fixtures.js +0 -21
- package/es/molecule/course-section/test/fixtures.js.map +0 -1
- package/es/molecule/course-sections/test/fixtures.js +0 -17
- package/es/molecule/course-sections/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/battle-request-list/test/fixtures.js +0 -15
- package/es/molecule/dashboard/battle-request-list/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/cards-list/test/fixtures.js +0 -23
- package/es/molecule/dashboard/cards-list/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/news-list/test/fixtures.js +0 -17
- package/es/molecule/dashboard/news-list/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/review-banner/test/fixtures.js +0 -13
- package/es/molecule/dashboard/review-banner/test/fixtures.js.map +0 -1
- package/es/molecule/dashboard/start-battle/test/fixtures.js +0 -15
- package/es/molecule/dashboard/start-battle/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-cta/test/fixtures.js +0 -15
- package/es/molecule/discipline-cta/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-header/test/fixtures.js +0 -27
- package/es/molecule/discipline-header/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-partners/test/fixtures.js +0 -21
- package/es/molecule/discipline-partners/test/fixtures.js.map +0 -1
- package/es/molecule/discipline-scope/test/fixtures.js +0 -27
- package/es/molecule/discipline-scope/test/fixtures.js.map +0 -1
- package/es/molecule/drag-and-drop/test/fixtures.js +0 -25
- package/es/molecule/drag-and-drop/test/fixtures.js.map +0 -1
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -17
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
- package/es/molecule/draggable/test/fixtures.js +0 -13
- package/es/molecule/draggable/test/fixtures.js.map +0 -1
- package/es/molecule/draggable-list/test/fixtures.js +0 -15
- package/es/molecule/draggable-list/test/fixtures.js.map +0 -1
- package/es/molecule/external-content-button/test/fixtures.js +0 -19
- package/es/molecule/external-content-button/test/fixtures.js.map +0 -1
- package/es/molecule/external-content-viewer/test/fixtures.js +0 -27
- package/es/molecule/external-content-viewer/test/fixtures.js.map +0 -1
- package/es/molecule/feedback/test/fixtures.js +0 -27
- package/es/molecule/feedback/test/fixtures.js.map +0 -1
- package/es/molecule/filters/test/fixtures.js +0 -33
- package/es/molecule/filters/test/fixtures.js.map +0 -1
- package/es/molecule/forum/forum-comment/test/fixtures.js +0 -17
- package/es/molecule/forum/forum-comment/test/fixtures.js.map +0 -1
- package/es/molecule/forum/forum-post/test/fixtures.js +0 -31
- package/es/molecule/forum/forum-post/test/fixtures.js.map +0 -1
- package/es/molecule/forum/forum-thread/test/fixtures.js +0 -17
- package/es/molecule/forum/forum-thread/test/fixtures.js.map +0 -1
- package/es/molecule/hero/test/fixtures.js +0 -15
- package/es/molecule/hero/test/fixtures.js.map +0 -1
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js +0 -15
- package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
- package/es/molecule/list-badges/test/fixtures.js +0 -19
- package/es/molecule/list-badges/test/fixtures.js.map +0 -1
- package/es/molecule/login-alert/test/fixtures.js +0 -13
- package/es/molecule/login-alert/test/fixtures.js.map +0 -1
- package/es/molecule/menu-list/test/fixtures.js +0 -13
- package/es/molecule/menu-list/test/fixtures.js.map +0 -1
- package/es/molecule/message-popin/test/fixtures.js +0 -13
- package/es/molecule/message-popin/test/fixtures.js.map +0 -1
- package/es/molecule/modal/test/fixtures.js +0 -13
- package/es/molecule/modal/test/fixtures.js.map +0 -1
- package/es/molecule/module-bubble/test/fixtures.js +0 -17
- package/es/molecule/module-bubble/test/fixtures.js.map +0 -1
- package/es/molecule/module-card/test/fixtures.js +0 -17
- package/es/molecule/module-card/test/fixtures.js.map +0 -1
- package/es/molecule/news/test/fixtures.js +0 -23
- package/es/molecule/news/test/fixtures.js.map +0 -1
- package/es/molecule/notification-banner/test/fixtures.js +0 -17
- package/es/molecule/notification-banner/test/fixtures.js.map +0 -1
- package/es/molecule/pagination/test/fixtures.js +0 -15
- package/es/molecule/pagination/test/fixtures.js.map +0 -1
- package/es/molecule/payment-form/test/fixtures.js +0 -17
- package/es/molecule/payment-form/test/fixtures.js.map +0 -1
- package/es/molecule/pdf/test/fixtures.js +0 -13
- package/es/molecule/pdf/test/fixtures.js.map +0 -1
- package/es/molecule/popin/test/fixtures.js +0 -21
- package/es/molecule/popin/test/fixtures.js.map +0 -1
- package/es/molecule/product-card/test/fixtures.js +0 -13
- package/es/molecule/product-card/test/fixtures.js.map +0 -1
- package/es/molecule/progress-bar/test/fixtures.js +0 -15
- package/es/molecule/progress-bar/test/fixtures.js.map +0 -1
- package/es/molecule/questions/drop-down/test/fixtures.js +0 -15
- package/es/molecule/questions/drop-down/test/fixtures.js.map +0 -1
- package/es/molecule/questions/free-text/test/fixtures.js +0 -17
- package/es/molecule/questions/free-text/test/fixtures.js.map +0 -1
- package/es/molecule/questions/qcm/test/fixtures.js +0 -19
- package/es/molecule/questions/qcm/test/fixtures.js.map +0 -1
- package/es/molecule/questions/qcm-drag/test/fixtures.js +0 -15
- package/es/molecule/questions/qcm-drag/test/fixtures.js.map +0 -1
- package/es/molecule/questions/qcm-graphic/test/fixtures.js +0 -15
- package/es/molecule/questions/qcm-graphic/test/fixtures.js.map +0 -1
- package/es/molecule/questions/question-range/test/fixtures.js +0 -13
- package/es/molecule/questions/question-range/test/fixtures.js.map +0 -1
- package/es/molecule/questions/template/test/fixtures.js +0 -15
- package/es/molecule/questions/template/test/fixtures.js.map +0 -1
- package/es/molecule/quick-access-card/test/fixtures.js +0 -21
- package/es/molecule/quick-access-card/test/fixtures.js.map +0 -1
- package/es/molecule/quick-access-cards-group/test/fixtures.js +0 -21
- package/es/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
- package/es/molecule/resource-player/test/fixtures.js +0 -25
- package/es/molecule/resource-player/test/fixtures.js.map +0 -1
- package/es/molecule/review-card-congrats/test/fixtures.js +0 -15
- package/es/molecule/review-card-congrats/test/fixtures.js.map +0 -1
- package/es/molecule/review-correction-popin/test/fixtures.js +0 -15
- package/es/molecule/review-correction-popin/test/fixtures.js.map +0 -1
- package/es/molecule/review-header-steps/test/fixtures.js +0 -23
- package/es/molecule/review-header-steps/test/fixtures.js.map +0 -1
- package/es/molecule/scope-content/test/fixtures.js +0 -27
- package/es/molecule/scope-content/test/fixtures.js.map +0 -1
- package/es/molecule/scope-tabs/test/fixtures.js +0 -17
- package/es/molecule/scope-tabs/test/fixtures.js.map +0 -1
- package/es/molecule/search-form/test/fixtures.js +0 -13
- package/es/molecule/search-form/test/fixtures.js.map +0 -1
- package/es/molecule/select-multiple/test/fixtures.js +0 -31
- package/es/molecule/select-multiple/test/fixtures.js.map +0 -1
- package/es/molecule/setup-cohort-item/test/fixtures.js +0 -19
- package/es/molecule/setup-cohort-item/test/fixtures.js.map +0 -1
- package/es/molecule/setup-section/test/fixtures.js +0 -25
- package/es/molecule/setup-section/test/fixtures.js.map +0 -1
- package/es/molecule/setup-sections/test/fixtures.js +0 -19
- package/es/molecule/setup-sections/test/fixtures.js.map +0 -1
- package/es/molecule/setup-slide/test/fixtures.js +0 -25
- package/es/molecule/setup-slide/test/fixtures.js.map +0 -1
- package/es/molecule/setup-slider/test/fixtures.js +0 -15
- package/es/molecule/setup-slider/test/fixtures.js.map +0 -1
- package/es/molecule/share/test/fixtures.js +0 -13
- package/es/molecule/share/test/fixtures.js.map +0 -1
- package/es/molecule/skill-card/test/fixtures.js +0 -19
- package/es/molecule/skill-card/test/fixtures.js.map +0 -1
- package/es/molecule/ssmenu-list/test/fixtures.js +0 -19
- package/es/molecule/ssmenu-list/test/fixtures.js.map +0 -1
- package/es/molecule/subscription-freemium/test/fixtures.js +0 -13
- package/es/molecule/subscription-freemium/test/fixtures.js.map +0 -1
- package/es/molecule/subscription-premium/test/fixtures.js +0 -15
- package/es/molecule/subscription-premium/test/fixtures.js.map +0 -1
- package/es/molecule/table/test/fixtures.js +0 -19
- package/es/molecule/table/test/fixtures.js.map +0 -1
- package/es/molecule/teams-popin/test/fixtures.js +0 -29
- package/es/molecule/teams-popin/test/fixtures.js.map +0 -1
- package/es/molecule/theme-image/test/fixtures.js +0 -13
- package/es/molecule/theme-image/test/fixtures.js.map +0 -1
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -19
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
- package/es/molecule/titled-checkbox/test/fixtures.js +0 -17
- package/es/molecule/titled-checkbox/test/fixtures.js.map +0 -1
- package/es/molecule/unsubscribe/test/fixtures.js +0 -15
- package/es/molecule/unsubscribe/test/fixtures.js.map +0 -1
- package/es/molecule/vertical-tabs/test/fixtures.js +0 -17
- package/es/molecule/vertical-tabs/test/fixtures.js.map +0 -1
- package/es/molecule/video-iframe/test/fixtures.js +0 -25
- package/es/molecule/video-iframe/test/fixtures.js.map +0 -1
- package/es/molecule/video-player/test/fixtures.js +0 -29
- package/es/molecule/video-player/test/fixtures.js.map +0 -1
- package/es/molecule/wizard-summary/test/fixtures.js +0 -23
- package/es/molecule/wizard-summary/test/fixtures.js.map +0 -1
- package/es/organism/accordion/container/test/fixtures.js +0 -17
- package/es/organism/accordion/container/test/fixtures.js.map +0 -1
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js +0 -17
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
- package/es/organism/accordion/coorp-manager/test/fixtures.js +0 -13
- package/es/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
- package/es/organism/accordion/part/test/fixtures.js +0 -15
- package/es/organism/accordion/part/test/fixtures.js.map +0 -1
- package/es/organism/accordion/toggler/test/fixtures.js +0 -17
- package/es/organism/accordion/toggler/test/fixtures.js.map +0 -1
- package/es/organism/brand-analytics/test/fixtures.js +0 -23
- package/es/organism/brand-analytics/test/fixtures.js.map +0 -1
- package/es/organism/brand-dashboard/test/fixtures.js +0 -15
- package/es/organism/brand-dashboard/test/fixtures.js.map +0 -1
- package/es/organism/brand-form/test/fixtures.js +0 -37
- package/es/organism/brand-form/test/fixtures.js.map +0 -1
- package/es/organism/brand-table/test/fixtures.js +0 -19
- package/es/organism/brand-table/test/fixtures.js.map +0 -1
- package/es/organism/brand-upload/test/fixtures.js +0 -15
- package/es/organism/brand-upload/test/fixtures.js.map +0 -1
- package/es/organism/cards-grid/test/fixtures.js +0 -19
- package/es/organism/cards-grid/test/fixtures.js.map +0 -1
- package/es/organism/cart/test/fixtures.js +0 -13
- package/es/organism/cart/test/fixtures.js.map +0 -1
- package/es/organism/content-translation/test/fixtures.js +0 -15
- package/es/organism/content-translation/test/fixtures.js.map +0 -1
- package/es/organism/course-selection/test/fixtures.js +0 -25
- package/es/organism/course-selection/test/fixtures.js.map +0 -1
- package/es/organism/discussion/test/fixtures.js +0 -19
- package/es/organism/discussion/test/fixtures.js.map +0 -1
- package/es/organism/get-the-app/test/fixtures.js +0 -13
- package/es/organism/get-the-app/test/fixtures.js.map +0 -1
- package/es/organism/grid-list/test/fixtures.js +0 -13
- package/es/organism/grid-list/test/fixtures.js.map +0 -1
- package/es/organism/header/test/fixtures.js +0 -13
- package/es/organism/header/test/fixtures.js.map +0 -1
- package/es/organism/hero/test/fixtures.js +0 -17
- package/es/organism/hero/test/fixtures.js.map +0 -1
- package/es/organism/list-item/test/fixtures.js +0 -19
- package/es/organism/list-item/test/fixtures.js.map +0 -1
- package/es/organism/list-items/test/fixtures.js +0 -17
- package/es/organism/list-items/test/fixtures.js.map +0 -1
- package/es/organism/mooc/image-slider/test/fixtures.js +0 -15
- package/es/organism/mooc/image-slider/test/fixtures.js.map +0 -1
- package/es/organism/mooc-footer/test/fixtures.js +0 -23
- package/es/organism/mooc-footer/test/fixtures.js.map +0 -1
- package/es/organism/mooc-header/test/fixtures.js +0 -31
- package/es/organism/mooc-header/test/fixtures.js.map +0 -1
- package/es/organism/popin/test/fixtures.js +0 -13
- package/es/organism/popin/test/fixtures.js.map +0 -1
- package/es/organism/resource-browser/test/fixtures.js +0 -37
- package/es/organism/resource-browser/test/fixtures.js.map +0 -1
- package/es/organism/review-congrats/test/fixtures.js +0 -13
- package/es/organism/review-congrats/test/fixtures.js.map +0 -1
- package/es/organism/review-header/test/fixtures.js +0 -25
- package/es/organism/review-header/test/fixtures.js.map +0 -1
- package/es/organism/review-skills/test/fixtures.js +0 -17
- package/es/organism/review-skills/test/fixtures.js.map +0 -1
- package/es/organism/rewards-form/test/fixtures.js +0 -19
- package/es/organism/rewards-form/test/fixtures.js.map +0 -1
- package/es/organism/search-and-chips-results/test/fixtures.js +0 -23
- package/es/organism/search-and-chips-results/test/fixtures.js.map +0 -1
- package/es/organism/settings/test/fixtures.js +0 -19
- package/es/organism/settings/test/fixtures.js.map +0 -1
- package/es/organism/setup-header/test/fixtures.js +0 -15
- package/es/organism/setup-header/test/fixtures.js.map +0 -1
- package/es/organism/sidebar/test/fixtures.js +0 -23
- package/es/organism/sidebar/test/fixtures.js.map +0 -1
- package/es/organism/slider/test/fixtures.js +0 -15
- package/es/organism/slider/test/fixtures.js.map +0 -1
- package/es/organism/user-preferences/test/fixtures.js +0 -13
- package/es/organism/user-preferences/test/fixtures.js.map +0 -1
- package/es/organism/wizard-contents/test/fixtures.js +0 -27
- package/es/organism/wizard-contents/test/fixtures.js.map +0 -1
- package/es/template/activity/test/fixtures.js +0 -21
- package/es/template/activity/test/fixtures.js.map +0 -1
- package/es/template/app-player/loading/test/fixtures.js +0 -13
- package/es/template/app-player/loading/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/slides/footer/test/fixtures.js +0 -29
- package/es/template/app-player/player/slides/footer/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/slides/header/test/fixtures.js +0 -23
- package/es/template/app-player/player/slides/header/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/slides/test/fixtures.js +0 -79
- package/es/template/app-player/player/slides/test/fixtures.js.map +0 -1
- package/es/template/app-player/player/test/fixtures.js +0 -55
- package/es/template/app-player/player/test/fixtures.js.map +0 -1
- package/es/template/app-player/popin-correction/test/fixtures.js +0 -47
- package/es/template/app-player/popin-correction/test/fixtures.js.map +0 -1
- package/es/template/app-player/popin-end/test/fixtures.js +0 -51
- package/es/template/app-player/popin-end/test/fixtures.js.map +0 -1
- package/es/template/app-player/popin-header/test/fixtures.js +0 -29
- package/es/template/app-player/popin-header/test/fixtures.js.map +0 -1
- package/es/template/back-office/brand-create/test/fixtures.js +0 -19
- package/es/template/back-office/brand-create/test/fixtures.js.map +0 -1
- package/es/template/back-office/brand-list/test/fixtures.js +0 -17
- package/es/template/back-office/brand-list/test/fixtures.js.map +0 -1
- package/es/template/back-office/brand-update/test/fixtures.js +0 -89
- package/es/template/back-office/brand-update/test/fixtures.js.map +0 -1
- package/es/template/back-office/dashboard-preview/test/fixtures.js +0 -23
- package/es/template/back-office/dashboard-preview/test/fixtures.js.map +0 -1
- package/es/template/battle-requests/test/fixtures.js +0 -13
- package/es/template/battle-requests/test/fixtures.js.map +0 -1
- package/es/template/cockpit/jw-uploader/test/fixtures.js +0 -13
- package/es/template/cockpit/jw-uploader/test/fixtures.js.map +0 -1
- package/es/template/common/authors/test/fixtures.js +0 -15
- package/es/template/common/authors/test/fixtures.js.map +0 -1
- package/es/template/common/coorp-header/test/fixtures.js +0 -15
- package/es/template/common/coorp-header/test/fixtures.js.map +0 -1
- package/es/template/common/dashboard/test/fixtures.js +0 -17
- package/es/template/common/dashboard/test/fixtures.js.map +0 -1
- package/es/template/common/discipline/test/fixtures.js +0 -47
- package/es/template/common/discipline/test/fixtures.js.map +0 -1
- package/es/template/common/search-page/test/fixtures.js +0 -17
- package/es/template/common/search-page/test/fixtures.js.map +0 -1
- package/es/template/external-course/test/fixtures.js +0 -35
- package/es/template/external-course/test/fixtures.js.map +0 -1
- package/es/template/review-dashboard-skills/test/fixtures.js +0 -17
- package/es/template/review-dashboard-skills/test/fixtures.js.map +0 -1
- package/es/template/slides-review/test/fixtures.js +0 -19
- package/es/template/slides-review/test/fixtures.js.map +0 -1
- package/es/template/teams-dashboard/test/fixtures.js +0 -17
- package/es/template/teams-dashboard/test/fixtures.js.map +0 -1
- package/lib/atom/autocomplete/test/fixtures.js +0 -31
- package/lib/atom/autocomplete/test/fixtures.js.map +0 -1
- package/lib/atom/avatar/test/fixtures.js +0 -22
- package/lib/atom/avatar/test/fixtures.js.map +0 -1
- package/lib/atom/button/test/fixtures.js +0 -43
- package/lib/atom/button/test/fixtures.js.map +0 -1
- package/lib/atom/button-link/test/fixtures.js +0 -49
- package/lib/atom/button-link/test/fixtures.js.map +0 -1
- package/lib/atom/button-link-icon-only/test/fixtures.js +0 -37
- package/lib/atom/button-link-icon-only/test/fixtures.js.map +0 -1
- package/lib/atom/button-menu/test/fixtures.js +0 -25
- package/lib/atom/button-menu/test/fixtures.js.map +0 -1
- package/lib/atom/card-image-preview/test/fixtures.js +0 -25
- package/lib/atom/card-image-preview/test/fixtures.js.map +0 -1
- package/lib/atom/catalog-section/test/fixtures.js +0 -25
- package/lib/atom/catalog-section/test/fixtures.js.map +0 -1
- package/lib/atom/centered-text/test/fixtures.js +0 -22
- package/lib/atom/centered-text/test/fixtures.js.map +0 -1
- package/lib/atom/checkbox/test/fixtures.js +0 -31
- package/lib/atom/checkbox/test/fixtures.js.map +0 -1
- package/lib/atom/checkbox-with-title/test/fixtures.js +0 -25
- package/lib/atom/checkbox-with-title/test/fixtures.js.map +0 -1
- package/lib/atom/chips/test/fixtures.js +0 -28
- package/lib/atom/chips/test/fixtures.js.map +0 -1
- package/lib/atom/clue/test/fixtures.js +0 -28
- package/lib/atom/clue/test/fixtures.js.map +0 -1
- package/lib/atom/content-badge/test/fixtures.js +0 -46
- package/lib/atom/content-badge/test/fixtures.js.map +0 -1
- package/lib/atom/cta/test/fixtures.js +0 -58
- package/lib/atom/cta/test/fixtures.js.map +0 -1
- package/lib/atom/difficulty-level/test/fixtures.js +0 -31
- package/lib/atom/difficulty-level/test/fixtures.js.map +0 -1
- package/lib/atom/drag-and-drop/test/fixtures.js +0 -55
- package/lib/atom/drag-and-drop/test/fixtures.js.map +0 -1
- package/lib/atom/empty-search-result/test/fixtures.js +0 -22
- package/lib/atom/empty-search-result/test/fixtures.js.map +0 -1
- package/lib/atom/image-upload/test/fixtures.js +0 -52
- package/lib/atom/image-upload/test/fixtures.js.map +0 -1
- package/lib/atom/input-checkbox/test/fixtures.js +0 -40
- package/lib/atom/input-checkbox/test/fixtures.js.map +0 -1
- package/lib/atom/input-color/test/fixtures.js +0 -31
- package/lib/atom/input-color/test/fixtures.js.map +0 -1
- package/lib/atom/input-doublestep/test/fixtures.js +0 -34
- package/lib/atom/input-doublestep/test/fixtures.js.map +0 -1
- package/lib/atom/input-html/test/fixtures.js +0 -28
- package/lib/atom/input-html/test/fixtures.js.map +0 -1
- package/lib/atom/input-readonly/test/fixtures.js +0 -22
- package/lib/atom/input-readonly/test/fixtures.js.map +0 -1
- package/lib/atom/input-search/test/fixtures.js +0 -31
- package/lib/atom/input-search/test/fixtures.js.map +0 -1
- package/lib/atom/input-switch/test/fixtures.js +0 -52
- package/lib/atom/input-switch/test/fixtures.js.map +0 -1
- package/lib/atom/input-text/test/fixtures.js +0 -43
- package/lib/atom/input-text/test/fixtures.js.map +0 -1
- package/lib/atom/input-text-with-title/test/fixtures.js +0 -25
- package/lib/atom/input-text-with-title/test/fixtures.js.map +0 -1
- package/lib/atom/input-textarea/test/fixtures.js +0 -34
- package/lib/atom/input-textarea/test/fixtures.js.map +0 -1
- package/lib/atom/label/test/fixtures.js +0 -25
- package/lib/atom/label/test/fixtures.js.map +0 -1
- package/lib/atom/life/test/fixtures.js +0 -40
- package/lib/atom/life/test/fixtures.js.map +0 -1
- package/lib/atom/link/test/fixtures.js +0 -28
- package/lib/atom/link/test/fixtures.js.map +0 -1
- package/lib/atom/loader/test/fixtures.js +0 -25
- package/lib/atom/loader/test/fixtures.js.map +0 -1
- package/lib/atom/lottie-wrapper/test/fixtures.js +0 -31
- package/lib/atom/lottie-wrapper/test/fixtures.js.map +0 -1
- package/lib/atom/notification/test/fixtures.js +0 -28
- package/lib/atom/notification/test/fixtures.js.map +0 -1
- package/lib/atom/picture/test/fixtures.js +0 -31
- package/lib/atom/picture/test/fixtures.js.map +0 -1
- package/lib/atom/picture-background/test/fixtures.js +0 -31
- package/lib/atom/picture-background/test/fixtures.js.map +0 -1
- package/lib/atom/promo-code/test/fixtures.js +0 -28
- package/lib/atom/promo-code/test/fixtures.js.map +0 -1
- package/lib/atom/provider/test/fixtures.js +0 -22
- package/lib/atom/provider/test/fixtures.js.map +0 -1
- package/lib/atom/radio-group/test/fixtures.js +0 -28
- package/lib/atom/radio-group/test/fixtures.js.map +0 -1
- package/lib/atom/range/test/fixtures.js +0 -25
- package/lib/atom/range/test/fixtures.js.map +0 -1
- package/lib/atom/resource-miniature/test/fixtures.js +0 -34
- package/lib/atom/resource-miniature/test/fixtures.js.map +0 -1
- package/lib/atom/review-background/test/fixtures.js +0 -22
- package/lib/atom/review-background/test/fixtures.js.map +0 -1
- package/lib/atom/review-header-step-item/test/fixtures.js +0 -31
- package/lib/atom/review-header-step-item/test/fixtures.js.map +0 -1
- package/lib/atom/review-presentation/test/fixtures.js +0 -22
- package/lib/atom/review-presentation/test/fixtures.js.map +0 -1
- package/lib/atom/select/test/fixtures.js +0 -73
- package/lib/atom/select/test/fixtures.js.map +0 -1
- package/lib/atom/slide/test/fixtures.js +0 -34
- package/lib/atom/slide/test/fixtures.js.map +0 -1
- package/lib/atom/social-link/test/fixtures.js +0 -28
- package/lib/atom/social-link/test/fixtures.js.map +0 -1
- package/lib/atom/spinner/test/fixtures.js +0 -22
- package/lib/atom/spinner/test/fixtures.js.map +0 -1
- package/lib/atom/tab/test/fixtures.js +0 -22
- package/lib/atom/tab/test/fixtures.js.map +0 -1
- package/lib/atom/tab-content/test/fixtures.js +0 -25
- package/lib/atom/tab-content/test/fixtures.js.map +0 -1
- package/lib/atom/tag/test/fixtures.js +0 -34
- package/lib/atom/tag/test/fixtures.js.map +0 -1
- package/lib/atom/title/test/fixtures.js +0 -28
- package/lib/atom/title/test/fixtures.js.map +0 -1
- package/lib/atom/video-upload/test/fixtures.js +0 -34
- package/lib/atom/video-upload/test/fixtures.js.map +0 -1
- package/lib/atom/wizard-steps/test/fixtures.js +0 -28
- package/lib/atom/wizard-steps/test/fixtures.js.map +0 -1
- package/lib/hoc/animation/test/fixtures.js +0 -25
- package/lib/hoc/animation/test/fixtures.js.map +0 -1
- package/lib/hoc/animation-scheduler/test/fixtures.js +0 -25
- package/lib/hoc/animation-scheduler/test/fixtures.js.map +0 -1
- package/lib/hoc/swapper/test/fixtures.js +0 -22
- package/lib/hoc/swapper/test/fixtures.js.map +0 -1
- package/lib/hoc/transition/test/fixtures.js +0 -22
- package/lib/hoc/transition/test/fixtures.js.map +0 -1
- package/lib/molecule/add-to-my-list/test/fixtures.js +0 -25
- package/lib/molecule/add-to-my-list/test/fixtures.js.map +0 -1
- package/lib/molecule/answer/test/fixtures.js +0 -55
- package/lib/molecule/answer/test/fixtures.js.map +0 -1
- package/lib/molecule/audio/test/fixtures.js +0 -25
- package/lib/molecule/audio/test/fixtures.js.map +0 -1
- package/lib/molecule/banner/test/fixtures.js +0 -37
- package/lib/molecule/banner/test/fixtures.js.map +0 -1
- package/lib/molecule/battle-request/test/fixtures.js +0 -25
- package/lib/molecule/battle-request/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-card/test/fixtures.js +0 -25
- package/lib/molecule/brand-card/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-card-create/test/fixtures.js +0 -22
- package/lib/molecule/brand-card-create/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-create-form/test/fixtures.js +0 -31
- package/lib/molecule/brand-create-form/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-download-box/test/fixtures.js +0 -28
- package/lib/molecule/brand-download-box/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-form-group/test/fixtures.js +0 -58
- package/lib/molecule/brand-form-group/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-tabs/test/fixtures.js +0 -46
- package/lib/molecule/brand-tabs/test/fixtures.js.map +0 -1
- package/lib/molecule/brand-upload-box/test/fixtures.js +0 -28
- package/lib/molecule/brand-upload-box/test/fixtures.js.map +0 -1
- package/lib/molecule/breadcrumbs/test/fixtures.js +0 -22
- package/lib/molecule/breadcrumbs/test/fixtures.js.map +0 -1
- package/lib/molecule/bullet-point-menu-button/test/fixtures.js +0 -25
- package/lib/molecule/bullet-point-menu-button/test/fixtures.js.map +0 -1
- package/lib/molecule/card/test/fixtures.js +0 -70
- package/lib/molecule/card/test/fixtures.js.map +0 -1
- package/lib/molecule/card-content/test/fixtures.js +0 -43
- package/lib/molecule/card-content/test/fixtures.js.map +0 -1
- package/lib/molecule/card-with-button/test/fixtures.js +0 -28
- package/lib/molecule/card-with-button/test/fixtures.js.map +0 -1
- package/lib/molecule/cm-popin/test/fixtures.js +0 -28
- package/lib/molecule/cm-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/cookie-banner/test/fixtures.js +0 -22
- package/lib/molecule/cookie-banner/test/fixtures.js.map +0 -1
- package/lib/molecule/coorp-manager-roles/test/fixtures.js +0 -22
- package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +0 -1
- package/lib/molecule/course-section/test/fixtures.js +0 -34
- package/lib/molecule/course-section/test/fixtures.js.map +0 -1
- package/lib/molecule/course-sections/test/fixtures.js +0 -28
- package/lib/molecule/course-sections/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/battle-request-list/test/fixtures.js +0 -25
- package/lib/molecule/dashboard/battle-request-list/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/cards-list/test/fixtures.js +0 -37
- package/lib/molecule/dashboard/cards-list/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/news-list/test/fixtures.js +0 -28
- package/lib/molecule/dashboard/news-list/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/review-banner/test/fixtures.js +0 -22
- package/lib/molecule/dashboard/review-banner/test/fixtures.js.map +0 -1
- package/lib/molecule/dashboard/start-battle/test/fixtures.js +0 -25
- package/lib/molecule/dashboard/start-battle/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-cta/test/fixtures.js +0 -25
- package/lib/molecule/discipline-cta/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-header/test/fixtures.js +0 -43
- package/lib/molecule/discipline-header/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-partners/test/fixtures.js +0 -34
- package/lib/molecule/discipline-partners/test/fixtures.js.map +0 -1
- package/lib/molecule/discipline-scope/test/fixtures.js +0 -43
- package/lib/molecule/discipline-scope/test/fixtures.js.map +0 -1
- package/lib/molecule/drag-and-drop/test/fixtures.js +0 -40
- package/lib/molecule/drag-and-drop/test/fixtures.js.map +0 -1
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -28
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +0 -1
- package/lib/molecule/draggable/test/fixtures.js +0 -22
- package/lib/molecule/draggable/test/fixtures.js.map +0 -1
- package/lib/molecule/draggable-list/test/fixtures.js +0 -25
- package/lib/molecule/draggable-list/test/fixtures.js.map +0 -1
- package/lib/molecule/external-content-button/test/fixtures.js +0 -31
- package/lib/molecule/external-content-button/test/fixtures.js.map +0 -1
- package/lib/molecule/external-content-viewer/test/fixtures.js +0 -43
- package/lib/molecule/external-content-viewer/test/fixtures.js.map +0 -1
- package/lib/molecule/feedback/test/fixtures.js +0 -43
- package/lib/molecule/feedback/test/fixtures.js.map +0 -1
- package/lib/molecule/filters/test/fixtures.js +0 -52
- package/lib/molecule/filters/test/fixtures.js.map +0 -1
- package/lib/molecule/forum/forum-comment/test/fixtures.js +0 -28
- package/lib/molecule/forum/forum-comment/test/fixtures.js.map +0 -1
- package/lib/molecule/forum/forum-post/test/fixtures.js +0 -49
- package/lib/molecule/forum/forum-post/test/fixtures.js.map +0 -1
- package/lib/molecule/forum/forum-thread/test/fixtures.js +0 -28
- package/lib/molecule/forum/forum-thread/test/fixtures.js.map +0 -1
- package/lib/molecule/hero/test/fixtures.js +0 -25
- package/lib/molecule/hero/test/fixtures.js.map +0 -1
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js +0 -25
- package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
- package/lib/molecule/list-badges/test/fixtures.js +0 -31
- package/lib/molecule/list-badges/test/fixtures.js.map +0 -1
- package/lib/molecule/login-alert/test/fixtures.js +0 -22
- package/lib/molecule/login-alert/test/fixtures.js.map +0 -1
- package/lib/molecule/menu-list/test/fixtures.js +0 -22
- package/lib/molecule/menu-list/test/fixtures.js.map +0 -1
- package/lib/molecule/message-popin/test/fixtures.js +0 -22
- package/lib/molecule/message-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/modal/test/fixtures.js +0 -22
- package/lib/molecule/modal/test/fixtures.js.map +0 -1
- package/lib/molecule/module-bubble/test/fixtures.js +0 -28
- package/lib/molecule/module-bubble/test/fixtures.js.map +0 -1
- package/lib/molecule/module-card/test/fixtures.js +0 -28
- package/lib/molecule/module-card/test/fixtures.js.map +0 -1
- package/lib/molecule/news/test/fixtures.js +0 -37
- package/lib/molecule/news/test/fixtures.js.map +0 -1
- package/lib/molecule/notification-banner/test/fixtures.js +0 -28
- package/lib/molecule/notification-banner/test/fixtures.js.map +0 -1
- package/lib/molecule/pagination/test/fixtures.js +0 -25
- package/lib/molecule/pagination/test/fixtures.js.map +0 -1
- package/lib/molecule/payment-form/test/fixtures.js +0 -28
- package/lib/molecule/payment-form/test/fixtures.js.map +0 -1
- package/lib/molecule/pdf/test/fixtures.js +0 -22
- package/lib/molecule/pdf/test/fixtures.js.map +0 -1
- package/lib/molecule/popin/test/fixtures.js +0 -34
- package/lib/molecule/popin/test/fixtures.js.map +0 -1
- package/lib/molecule/product-card/test/fixtures.js +0 -22
- package/lib/molecule/product-card/test/fixtures.js.map +0 -1
- package/lib/molecule/progress-bar/test/fixtures.js +0 -25
- package/lib/molecule/progress-bar/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/drop-down/test/fixtures.js +0 -25
- package/lib/molecule/questions/drop-down/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/free-text/test/fixtures.js +0 -28
- package/lib/molecule/questions/free-text/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/qcm/test/fixtures.js +0 -31
- package/lib/molecule/questions/qcm/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/qcm-drag/test/fixtures.js +0 -25
- package/lib/molecule/questions/qcm-drag/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/qcm-graphic/test/fixtures.js +0 -25
- package/lib/molecule/questions/qcm-graphic/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/question-range/test/fixtures.js +0 -22
- package/lib/molecule/questions/question-range/test/fixtures.js.map +0 -1
- package/lib/molecule/questions/template/test/fixtures.js +0 -25
- package/lib/molecule/questions/template/test/fixtures.js.map +0 -1
- package/lib/molecule/quick-access-card/test/fixtures.js +0 -34
- package/lib/molecule/quick-access-card/test/fixtures.js.map +0 -1
- package/lib/molecule/quick-access-cards-group/test/fixtures.js +0 -34
- package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +0 -1
- package/lib/molecule/resource-player/test/fixtures.js +0 -40
- package/lib/molecule/resource-player/test/fixtures.js.map +0 -1
- package/lib/molecule/review-card-congrats/test/fixtures.js +0 -25
- package/lib/molecule/review-card-congrats/test/fixtures.js.map +0 -1
- package/lib/molecule/review-correction-popin/test/fixtures.js +0 -25
- package/lib/molecule/review-correction-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/review-header-steps/test/fixtures.js +0 -37
- package/lib/molecule/review-header-steps/test/fixtures.js.map +0 -1
- package/lib/molecule/scope-content/test/fixtures.js +0 -43
- package/lib/molecule/scope-content/test/fixtures.js.map +0 -1
- package/lib/molecule/scope-tabs/test/fixtures.js +0 -28
- package/lib/molecule/scope-tabs/test/fixtures.js.map +0 -1
- package/lib/molecule/search-form/test/fixtures.js +0 -22
- package/lib/molecule/search-form/test/fixtures.js.map +0 -1
- package/lib/molecule/select-multiple/test/fixtures.js +0 -49
- package/lib/molecule/select-multiple/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-cohort-item/test/fixtures.js +0 -31
- package/lib/molecule/setup-cohort-item/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-section/test/fixtures.js +0 -40
- package/lib/molecule/setup-section/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-sections/test/fixtures.js +0 -31
- package/lib/molecule/setup-sections/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-slide/test/fixtures.js +0 -40
- package/lib/molecule/setup-slide/test/fixtures.js.map +0 -1
- package/lib/molecule/setup-slider/test/fixtures.js +0 -25
- package/lib/molecule/setup-slider/test/fixtures.js.map +0 -1
- package/lib/molecule/share/test/fixtures.js +0 -22
- package/lib/molecule/share/test/fixtures.js.map +0 -1
- package/lib/molecule/skill-card/test/fixtures.js +0 -31
- package/lib/molecule/skill-card/test/fixtures.js.map +0 -1
- package/lib/molecule/ssmenu-list/test/fixtures.js +0 -31
- package/lib/molecule/ssmenu-list/test/fixtures.js.map +0 -1
- package/lib/molecule/subscription-freemium/test/fixtures.js +0 -22
- package/lib/molecule/subscription-freemium/test/fixtures.js.map +0 -1
- package/lib/molecule/subscription-premium/test/fixtures.js +0 -25
- package/lib/molecule/subscription-premium/test/fixtures.js.map +0 -1
- package/lib/molecule/table/test/fixtures.js +0 -31
- package/lib/molecule/table/test/fixtures.js.map +0 -1
- package/lib/molecule/teams-popin/test/fixtures.js +0 -46
- package/lib/molecule/teams-popin/test/fixtures.js.map +0 -1
- package/lib/molecule/theme-image/test/fixtures.js +0 -22
- package/lib/molecule/theme-image/test/fixtures.js.map +0 -1
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -31
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
- package/lib/molecule/titled-checkbox/test/fixtures.js +0 -28
- package/lib/molecule/titled-checkbox/test/fixtures.js.map +0 -1
- package/lib/molecule/unsubscribe/test/fixtures.js +0 -25
- package/lib/molecule/unsubscribe/test/fixtures.js.map +0 -1
- package/lib/molecule/vertical-tabs/test/fixtures.js +0 -28
- package/lib/molecule/vertical-tabs/test/fixtures.js.map +0 -1
- package/lib/molecule/video-iframe/test/fixtures.js +0 -40
- package/lib/molecule/video-iframe/test/fixtures.js.map +0 -1
- package/lib/molecule/video-player/test/fixtures.js +0 -46
- package/lib/molecule/video-player/test/fixtures.js.map +0 -1
- package/lib/molecule/wizard-summary/test/fixtures.js +0 -37
- package/lib/molecule/wizard-summary/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/container/test/fixtures.js +0 -28
- package/lib/organism/accordion/container/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +0 -28
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/coorp-manager/test/fixtures.js +0 -22
- package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/part/test/fixtures.js +0 -25
- package/lib/organism/accordion/part/test/fixtures.js.map +0 -1
- package/lib/organism/accordion/toggler/test/fixtures.js +0 -28
- package/lib/organism/accordion/toggler/test/fixtures.js.map +0 -1
- package/lib/organism/brand-analytics/test/fixtures.js +0 -37
- package/lib/organism/brand-analytics/test/fixtures.js.map +0 -1
- package/lib/organism/brand-dashboard/test/fixtures.js +0 -25
- package/lib/organism/brand-dashboard/test/fixtures.js.map +0 -1
- package/lib/organism/brand-form/test/fixtures.js +0 -58
- package/lib/organism/brand-form/test/fixtures.js.map +0 -1
- package/lib/organism/brand-table/test/fixtures.js +0 -31
- package/lib/organism/brand-table/test/fixtures.js.map +0 -1
- package/lib/organism/brand-upload/test/fixtures.js +0 -25
- package/lib/organism/brand-upload/test/fixtures.js.map +0 -1
- package/lib/organism/cards-grid/test/fixtures.js +0 -31
- package/lib/organism/cards-grid/test/fixtures.js.map +0 -1
- package/lib/organism/cart/test/fixtures.js +0 -22
- package/lib/organism/cart/test/fixtures.js.map +0 -1
- package/lib/organism/content-translation/test/fixtures.js +0 -25
- package/lib/organism/content-translation/test/fixtures.js.map +0 -1
- package/lib/organism/course-selection/test/fixtures.js +0 -40
- package/lib/organism/course-selection/test/fixtures.js.map +0 -1
- package/lib/organism/discussion/test/fixtures.js +0 -31
- package/lib/organism/discussion/test/fixtures.js.map +0 -1
- package/lib/organism/get-the-app/test/fixtures.js +0 -22
- package/lib/organism/get-the-app/test/fixtures.js.map +0 -1
- package/lib/organism/grid-list/test/fixtures.js +0 -22
- package/lib/organism/grid-list/test/fixtures.js.map +0 -1
- package/lib/organism/header/test/fixtures.js +0 -22
- package/lib/organism/header/test/fixtures.js.map +0 -1
- package/lib/organism/hero/test/fixtures.js +0 -28
- package/lib/organism/hero/test/fixtures.js.map +0 -1
- package/lib/organism/list-item/test/fixtures.js +0 -31
- package/lib/organism/list-item/test/fixtures.js.map +0 -1
- package/lib/organism/list-items/test/fixtures.js +0 -28
- package/lib/organism/list-items/test/fixtures.js.map +0 -1
- package/lib/organism/mooc/image-slider/test/fixtures.js +0 -25
- package/lib/organism/mooc/image-slider/test/fixtures.js.map +0 -1
- package/lib/organism/mooc-footer/test/fixtures.js +0 -37
- package/lib/organism/mooc-footer/test/fixtures.js.map +0 -1
- package/lib/organism/mooc-header/test/fixtures.js +0 -49
- package/lib/organism/mooc-header/test/fixtures.js.map +0 -1
- package/lib/organism/popin/test/fixtures.js +0 -22
- package/lib/organism/popin/test/fixtures.js.map +0 -1
- package/lib/organism/resource-browser/test/fixtures.js +0 -58
- package/lib/organism/resource-browser/test/fixtures.js.map +0 -1
- package/lib/organism/review-congrats/test/fixtures.js +0 -22
- package/lib/organism/review-congrats/test/fixtures.js.map +0 -1
- package/lib/organism/review-header/test/fixtures.js +0 -40
- package/lib/organism/review-header/test/fixtures.js.map +0 -1
- package/lib/organism/review-skills/test/fixtures.js +0 -28
- package/lib/organism/review-skills/test/fixtures.js.map +0 -1
- package/lib/organism/rewards-form/test/fixtures.js +0 -31
- package/lib/organism/rewards-form/test/fixtures.js.map +0 -1
- package/lib/organism/search-and-chips-results/test/fixtures.js +0 -37
- package/lib/organism/search-and-chips-results/test/fixtures.js.map +0 -1
- package/lib/organism/settings/test/fixtures.js +0 -31
- package/lib/organism/settings/test/fixtures.js.map +0 -1
- package/lib/organism/setup-header/test/fixtures.js +0 -25
- package/lib/organism/setup-header/test/fixtures.js.map +0 -1
- package/lib/organism/sidebar/test/fixtures.js +0 -37
- package/lib/organism/sidebar/test/fixtures.js.map +0 -1
- package/lib/organism/slider/test/fixtures.js +0 -25
- package/lib/organism/slider/test/fixtures.js.map +0 -1
- package/lib/organism/user-preferences/test/fixtures.js +0 -22
- package/lib/organism/user-preferences/test/fixtures.js.map +0 -1
- package/lib/organism/wizard-contents/test/fixtures.js +0 -43
- package/lib/organism/wizard-contents/test/fixtures.js.map +0 -1
- package/lib/template/activity/test/fixtures.js +0 -34
- package/lib/template/activity/test/fixtures.js.map +0 -1
- package/lib/template/app-player/loading/test/fixtures.js +0 -22
- package/lib/template/app-player/loading/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/slides/footer/test/fixtures.js +0 -46
- package/lib/template/app-player/player/slides/footer/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/slides/header/test/fixtures.js +0 -37
- package/lib/template/app-player/player/slides/header/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/slides/test/fixtures.js +0 -121
- package/lib/template/app-player/player/slides/test/fixtures.js.map +0 -1
- package/lib/template/app-player/player/test/fixtures.js +0 -85
- package/lib/template/app-player/player/test/fixtures.js.map +0 -1
- package/lib/template/app-player/popin-correction/test/fixtures.js +0 -73
- package/lib/template/app-player/popin-correction/test/fixtures.js.map +0 -1
- package/lib/template/app-player/popin-end/test/fixtures.js +0 -79
- package/lib/template/app-player/popin-end/test/fixtures.js.map +0 -1
- package/lib/template/app-player/popin-header/test/fixtures.js +0 -46
- package/lib/template/app-player/popin-header/test/fixtures.js.map +0 -1
- package/lib/template/back-office/brand-create/test/fixtures.js +0 -31
- package/lib/template/back-office/brand-create/test/fixtures.js.map +0 -1
- package/lib/template/back-office/brand-list/test/fixtures.js +0 -28
- package/lib/template/back-office/brand-list/test/fixtures.js.map +0 -1
- package/lib/template/back-office/brand-update/test/fixtures.js +0 -136
- package/lib/template/back-office/brand-update/test/fixtures.js.map +0 -1
- package/lib/template/back-office/dashboard-preview/test/fixtures.js +0 -37
- package/lib/template/back-office/dashboard-preview/test/fixtures.js.map +0 -1
- package/lib/template/battle-requests/test/fixtures.js +0 -22
- package/lib/template/battle-requests/test/fixtures.js.map +0 -1
- package/lib/template/cockpit/jw-uploader/test/fixtures.js +0 -22
- package/lib/template/cockpit/jw-uploader/test/fixtures.js.map +0 -1
- package/lib/template/common/authors/test/fixtures.js +0 -25
- package/lib/template/common/authors/test/fixtures.js.map +0 -1
- package/lib/template/common/coorp-header/test/fixtures.js +0 -25
- package/lib/template/common/coorp-header/test/fixtures.js.map +0 -1
- package/lib/template/common/dashboard/test/fixtures.js +0 -28
- package/lib/template/common/dashboard/test/fixtures.js.map +0 -1
- package/lib/template/common/discipline/test/fixtures.js +0 -73
- package/lib/template/common/discipline/test/fixtures.js.map +0 -1
- package/lib/template/common/search-page/test/fixtures.js +0 -28
- package/lib/template/common/search-page/test/fixtures.js.map +0 -1
- package/lib/template/external-course/test/fixtures.js +0 -55
- package/lib/template/external-course/test/fixtures.js.map +0 -1
- package/lib/template/review-dashboard-skills/test/fixtures.js +0 -28
- package/lib/template/review-dashboard-skills/test/fixtures.js.map +0 -1
- package/lib/template/slides-review/test/fixtures.js +0 -31
- package/lib/template/slides-review/test/fixtures.js.map +0 -1
- package/lib/template/teams-dashboard/test/fixtures.js +0 -28
- package/lib/template/teams-dashboard/test/fixtures.js.map +0 -1
|
@@ -1,40 +1,35 @@
|
|
|
1
|
-
import _identity from "lodash/fp/identity";
|
|
2
|
-
|
|
3
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
|
|
5
3
|
import browserEnv from 'browser-env';
|
|
6
4
|
import test from 'ava';
|
|
7
5
|
import React from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import Adapter from 'enzyme-adapter-react-16';
|
|
6
|
+
import { render, fireEvent } from '@testing-library/react';
|
|
10
7
|
import ButtonLinkIconOnly from '..';
|
|
11
8
|
import defaultFixture from './fixtures/button-icon-bullet';
|
|
12
9
|
browserEnv();
|
|
13
|
-
configure({
|
|
14
|
-
adapter: new Adapter()
|
|
15
|
-
});
|
|
16
|
-
const translate = _identity;
|
|
17
10
|
test('should launch onClick on click event for ButtonLinkIconOnly', t => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
t.plan(3);
|
|
12
|
+
|
|
13
|
+
const props = _extends(_extends({}, defaultFixture.props), {}, {
|
|
14
|
+
onClick: () => t.pass()
|
|
22
15
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
container
|
|
19
|
+
} = render( /*#__PURE__*/React.createElement(ButtonLinkIconOnly, props));
|
|
20
|
+
const bulletButton = container.querySelector('[data-name="bullet-button"]');
|
|
21
|
+
t.truthy(bulletButton);
|
|
22
|
+
fireEvent.click(bulletButton);
|
|
26
23
|
t.pass();
|
|
27
24
|
});
|
|
28
25
|
test('should mount ButtonLinkIconOnly even if the className does not exist', t => {
|
|
29
|
-
const
|
|
26
|
+
const {
|
|
27
|
+
container
|
|
28
|
+
} = render( /*#__PURE__*/React.createElement(ButtonLinkIconOnly, _extends({}, defaultFixture.props, {
|
|
30
29
|
className: 'noClass'
|
|
31
|
-
}))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
const button = wrapper.find('[data-name="bullet-button"]');
|
|
37
|
-
t.true(button.exists());
|
|
30
|
+
})));
|
|
31
|
+
const bulletButton = container.querySelector('[data-name="bullet-button"]');
|
|
32
|
+
t.truthy(bulletButton);
|
|
38
33
|
t.pass();
|
|
39
34
|
});
|
|
40
35
|
//# sourceMappingURL=button-link-icon-only.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/atom/button-link-icon-only/test/button-link-icon-only.js"],"names":["browserEnv","test","React","
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/button-link-icon-only/test/button-link-icon-only.js"],"names":["browserEnv","test","React","render","fireEvent","ButtonLinkIconOnly","defaultFixture","t","plan","props","onClick","pass","container","bulletButton","querySelector","truthy","click"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,MAAR,EAAgBC,SAAhB,QAAgC,wBAAhC;AACA,OAAOC,kBAAP,MAA+B,IAA/B;AACA,OAAOC,cAAP,MAA2B,+BAA3B;AAEAN,UAAU;AAEVC,IAAI,CAAC,6DAAD,EAAgEM,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF,CAAO,CAAP;;AAEA,QAAMC,KAAK,yBACNH,cAAc,CAACG,KADT;AAETC,IAAAA,OAAO,EAAE,MAAMH,CAAC,CAACI,IAAF;AAFN,IAAX;;AAKA,QAAM;AAACC,IAAAA;AAAD,MAAcT,MAAM,eAAC,oBAAC,kBAAD,EAAwBM,KAAxB,CAAD,CAA1B;AAEA,QAAMI,YAAY,GAAGD,SAAS,CAACE,aAAV,CAAwB,6BAAxB,CAArB;AACAP,EAAAA,CAAC,CAACQ,MAAF,CAASF,YAAT;AAEAT,EAAAA,SAAS,CAACY,KAAV,CAAgBH,YAAhB;AAEAN,EAAAA,CAAC,CAACI,IAAF;AACD,CAhBG,CAAJ;AAkBAV,IAAI,CAAC,sEAAD,EAAyEM,CAAC,IAAI;AAChF,QAAM;AAACK,IAAAA;AAAD,MAAcT,MAAM,eACxB,oBAAC,kBAAD,eAAwBG,cAAc,CAACG,KAAvC;AAA8C,IAAA,SAAS,EAAE;AAAzD,KADwB,CAA1B;AAIA,QAAMI,YAAY,GAAGD,SAAS,CAACE,aAAV,CAAwB,6BAAxB,CAArB;AACAP,EAAAA,CAAC,CAACQ,MAAF,CAASF,YAAT;AAEAN,EAAAA,CAAC,CAACI,IAAF;AACD,CATG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {render, fireEvent} from '@testing-library/react';\nimport ButtonLinkIconOnly from '..';\nimport defaultFixture from './fixtures/button-icon-bullet';\n\nbrowserEnv();\n\ntest('should launch onClick on click event for ButtonLinkIconOnly', t => {\n t.plan(3);\n\n const props = {\n ...defaultFixture.props,\n onClick: () => t.pass()\n };\n\n const {container} = render(<ButtonLinkIconOnly {...props} />);\n\n const bulletButton = container.querySelector('[data-name=\"bullet-button\"]');\n t.truthy(bulletButton);\n\n fireEvent.click(bulletButton);\n\n t.pass();\n});\n\ntest('should mount ButtonLinkIconOnly even if the className does not exist', t => {\n const {container} = render(\n <ButtonLinkIconOnly {...defaultFixture.props} className={'noClass'} />\n );\n\n const bulletButton = container.querySelector('[data-name=\"bullet-button\"]');\n t.truthy(bulletButton);\n\n t.pass();\n});\n"],"file":"button-link-icon-only.js"}
|
|
@@ -2,56 +2,40 @@ import _noop from "lodash/fp/noop";
|
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
|
-
function
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, { useState, useCallback } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
checked
|
|
18
|
-
};
|
|
19
|
-
this.handleChangeBound = this.handleChange.bind(this);
|
|
20
|
-
}
|
|
10
|
+
const Checkbox = props => {
|
|
11
|
+
const {
|
|
12
|
+
checked,
|
|
13
|
+
onChange = _noop,
|
|
14
|
+
type = 'checkbox'
|
|
15
|
+
} = props,
|
|
16
|
+
rest = _objectWithoutPropertiesLoose(props, ["checked", "onChange", "type"]);
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
onChange = _noop
|
|
25
|
-
} = this.props;
|
|
18
|
+
const [_checked, setChecked] = useState(checked);
|
|
19
|
+
const handleChange = useCallback(e => {
|
|
26
20
|
onChange(e.target.checked);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
state,
|
|
36
|
-
'data-name': dataName
|
|
37
|
-
} = this;
|
|
38
|
-
return /*#__PURE__*/React.createElement("input", _extends({}, props, state, {
|
|
39
|
-
type: "checkbox",
|
|
40
|
-
"data-name": dataName,
|
|
41
|
-
onChange: this.handleChangeBound
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
_defineProperty(Checkbox, "defaultProps", {
|
|
48
|
-
onChange: _noop
|
|
49
|
-
});
|
|
21
|
+
setChecked(!_checked);
|
|
22
|
+
}, [_checked, onChange]);
|
|
23
|
+
return /*#__PURE__*/React.createElement("input", _extends({}, rest, {
|
|
24
|
+
checked: _checked,
|
|
25
|
+
type: type,
|
|
26
|
+
onChange: handleChange
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
50
29
|
|
|
51
30
|
Checkbox.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
52
31
|
checked: PropTypes.bool,
|
|
53
32
|
onChange: PropTypes.func,
|
|
54
|
-
|
|
33
|
+
title: PropTypes.string,
|
|
34
|
+
type: PropTypes.string,
|
|
35
|
+
required: PropTypes.bool,
|
|
36
|
+
disabled: PropTypes.bool,
|
|
37
|
+
'data-name': PropTypes.string,
|
|
38
|
+
'aria-label': PropTypes.string
|
|
55
39
|
} : {};
|
|
56
40
|
export default Checkbox;
|
|
57
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/checkbox/index.js"],"names":["React","
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/checkbox/index.js"],"names":["React","useState","useCallback","PropTypes","Checkbox","props","checked","onChange","type","rest","_checked","setChecked","handleChange","e","target","propTypes","bool","func","title","string","required","disabled"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,WAAzB,QAA2C,OAA3C;AACA,OAAOC,SAAP,MAAsB,YAAtB;;AAGA,MAAMC,QAAQ,GAAGC,KAAK,IAAI;AACxB,QAAM;AAACC,IAAAA,OAAD;AAAUC,IAAAA,QAAQ,QAAlB;AAA2BC,IAAAA,IAAI,GAAG;AAAlC,MAAyDH,KAA/D;AAAA,QAAuDI,IAAvD,iCAA+DJ,KAA/D;;AACA,QAAM,CAACK,QAAD,EAAWC,UAAX,IAAyBV,QAAQ,CAACK,OAAD,CAAvC;AAEA,QAAMM,YAAY,GAAGV,WAAW,CAC9BW,CAAC,IAAI;AACHN,IAAAA,QAAQ,CAACM,CAAC,CAACC,MAAF,CAASR,OAAV,CAAR;AACAK,IAAAA,UAAU,CAAC,CAACD,QAAF,CAAV;AACD,GAJ6B,EAK9B,CAACA,QAAD,EAAWH,QAAX,CAL8B,CAAhC;AAQA,sBAAO,0CAAWE,IAAX;AAAiB,IAAA,OAAO,EAAEC,QAA1B;AAAoC,IAAA,IAAI,EAAEF,IAA1C;AAAgD,IAAA,QAAQ,EAAEI;AAA1D,KAAP;AACD,CAbD;;AAeAR,QAAQ,CAACW,SAAT,2CAAqB;AACnBT,EAAAA,OAAO,EAAEH,SAAS,CAACa,IADA;AAEnBT,EAAAA,QAAQ,EAAEJ,SAAS,CAACc,IAFD;AAGnBC,EAAAA,KAAK,EAAEf,SAAS,CAACgB,MAHE;AAInBX,EAAAA,IAAI,EAAEL,SAAS,CAACgB,MAJG;AAKnBC,EAAAA,QAAQ,EAAEjB,SAAS,CAACa,IALD;AAMnBK,EAAAA,QAAQ,EAAElB,SAAS,CAACa,IAND;AAOnB,eAAab,SAAS,CAACgB,MAPJ;AAQnB,gBAAchB,SAAS,CAACgB;AARL,CAArB;AAWA,eAAef,QAAf","sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop} from 'lodash/fp';\n\nconst Checkbox = props => {\n const {checked, onChange = noop, type = 'checkbox', ...rest} = props;\n const [_checked, setChecked] = useState(checked);\n\n const handleChange = useCallback(\n e => {\n onChange(e.target.checked);\n setChecked(!_checked);\n },\n [_checked, onChange]\n );\n\n return <input {...rest} checked={_checked} type={type} onChange={handleChange} />;\n};\n\nCheckbox.propTypes = {\n checked: PropTypes.bool,\n onChange: PropTypes.func,\n title: PropTypes.string,\n type: PropTypes.string,\n required: PropTypes.bool,\n disabled: PropTypes.bool,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string\n};\n\nexport default Checkbox;\n"],"file":"index.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/atom/checkbox/test/fixtures/default.js"],"names":["props","type","title","checked","onChange","value","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,UADD;AAELC,IAAAA,KAAK,EAAE,IAFF;AAGLC,IAAAA,OAAO,EAAE,KAHJ;
|
|
1
|
+
{"version":3,"sources":["../../../../../src/atom/checkbox/test/fixtures/default.js"],"names":["props","type","title","checked","onChange","value","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,UADD;AAELC,IAAAA,KAAK,EAAE,IAFF;AAGLC,IAAAA,OAAO,EAAE,KAHJ;AAIL,kBAAc,qBAJT;AAKLC,IAAAA,QAAQ,EAAEC,KAAK,IAAIC,OAAO,CAACC,GAAR,CAAY,UAAZ,EAAwBF,KAAxB;AALd;AADM,CAAf","sourcesContent":["export default {\n props: {\n type: 'checkbox',\n title: 'OK',\n checked: false,\n 'aria-label': 'checkbox-aria-label',\n onChange: value => console.log('onChange', value)\n }\n};\n"],"file":"default.js"}
|
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
import browserEnv from 'browser-env';
|
|
2
2
|
import test from 'ava';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import Adapter from 'enzyme-adapter-react-16';
|
|
4
|
+
import { render, fireEvent } from '@testing-library/react';
|
|
6
5
|
import Checkbox from '..';
|
|
7
6
|
browserEnv();
|
|
8
|
-
configure({
|
|
9
|
-
adapter: new Adapter()
|
|
10
|
-
});
|
|
11
7
|
test('should call the onChange function and toggle the value on change', t => {
|
|
12
|
-
t.plan(
|
|
8
|
+
t.plan(6);
|
|
13
9
|
const expectedOnChangeValues = [false, true];
|
|
14
10
|
|
|
15
11
|
const onChange = value => {
|
|
16
12
|
t.is(value, expectedOnChangeValues.shift());
|
|
17
13
|
};
|
|
18
14
|
|
|
19
|
-
const
|
|
15
|
+
const dataName = 'check-box';
|
|
16
|
+
const {
|
|
17
|
+
container
|
|
18
|
+
} = render( /*#__PURE__*/React.createElement(Checkbox, {
|
|
20
19
|
checked: true,
|
|
21
|
-
onChange: onChange
|
|
20
|
+
onChange: onChange,
|
|
21
|
+
"data-name": dataName
|
|
22
|
+
}));
|
|
23
|
+
const checkBox = container.querySelector(`[data-name="${dataName}"]`);
|
|
24
|
+
t.truthy(checkBox);
|
|
25
|
+
t.true(checkBox.checked);
|
|
26
|
+
fireEvent.click(checkBox);
|
|
27
|
+
t.false(checkBox.checked);
|
|
28
|
+
fireEvent.click(checkBox);
|
|
29
|
+
t.true(checkBox.checked);
|
|
30
|
+
});
|
|
31
|
+
test('should mount the checkbox with default values', t => {
|
|
32
|
+
const dataName = 'check-box';
|
|
33
|
+
const {
|
|
34
|
+
container
|
|
35
|
+
} = render( /*#__PURE__*/React.createElement(Checkbox, {
|
|
36
|
+
"data-name": dataName
|
|
22
37
|
}));
|
|
23
|
-
const
|
|
24
|
-
t.
|
|
25
|
-
wrapper.find('input').simulate('change', {
|
|
26
|
-
target: {
|
|
27
|
-
checked: false
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
t.false(instance.state.checked);
|
|
31
|
-
wrapper.find('input').simulate('change', {
|
|
32
|
-
target: {
|
|
33
|
-
checked: true
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
t.true(instance.state.checked);
|
|
38
|
+
const checkBox = container.querySelector(`[data-name="${dataName}"]`);
|
|
39
|
+
t.truthy(checkBox);
|
|
37
40
|
});
|
|
38
41
|
//# sourceMappingURL=on-change.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/atom/checkbox/test/on-change.js"],"names":["browserEnv","test","React","
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/checkbox/test/on-change.js"],"names":["browserEnv","test","React","render","fireEvent","Checkbox","t","plan","expectedOnChangeValues","onChange","value","is","shift","dataName","container","checkBox","querySelector","truthy","true","checked","click","false"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,MAAR,EAAgBC,SAAhB,QAAgC,wBAAhC;AACA,OAAOC,QAAP,MAAqB,IAArB;AAEAL,UAAU;AAEVC,IAAI,CAAC,kEAAD,EAAqEK,CAAC,IAAI;AAC5EA,EAAAA,CAAC,CAACC,IAAF,CAAO,CAAP;AACA,QAAMC,sBAAsB,GAAG,CAAC,KAAD,EAAQ,IAAR,CAA/B;;AACA,QAAMC,QAAQ,GAAGC,KAAK,IAAI;AACxBJ,IAAAA,CAAC,CAACK,EAAF,CAAKD,KAAL,EAAYF,sBAAsB,CAACI,KAAvB,EAAZ;AACD,GAFD;;AAGA,QAAMC,QAAQ,GAAG,WAAjB;AACA,QAAM;AAACC,IAAAA;AAAD,MAAcX,MAAM,eAAC,oBAAC,QAAD;AAAU,IAAA,OAAO,MAAjB;AAAkB,IAAA,QAAQ,EAAEM,QAA5B;AAAsC,iBAAWI;AAAjD,IAAD,CAA1B;AAEA,QAAME,QAAQ,GAAGD,SAAS,CAACE,aAAV,CAAyB,eAAcH,QAAS,IAAhD,CAAjB;AACAP,EAAAA,CAAC,CAACW,MAAF,CAASF,QAAT;AAEAT,EAAAA,CAAC,CAACY,IAAF,CAAOH,QAAQ,CAACI,OAAhB;AAEAf,EAAAA,SAAS,CAACgB,KAAV,CAAgBL,QAAhB;AACAT,EAAAA,CAAC,CAACe,KAAF,CAAQN,QAAQ,CAACI,OAAjB;AAEAf,EAAAA,SAAS,CAACgB,KAAV,CAAgBL,QAAhB;AACAT,EAAAA,CAAC,CAACY,IAAF,CAAOH,QAAQ,CAACI,OAAhB;AACD,CAnBG,CAAJ;AAqBAlB,IAAI,CAAC,+CAAD,EAAkDK,CAAC,IAAI;AACzD,QAAMO,QAAQ,GAAG,WAAjB;AACA,QAAM;AAACC,IAAAA;AAAD,MAAcX,MAAM,eAAC,oBAAC,QAAD;AAAU,iBAAWU;AAArB,IAAD,CAA1B;AAEA,QAAME,QAAQ,GAAGD,SAAS,CAACE,aAAV,CAAyB,eAAcH,QAAS,IAAhD,CAAjB;AACAP,EAAAA,CAAC,CAACW,MAAF,CAASF,QAAT;AACD,CANG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {render, fireEvent} from '@testing-library/react';\nimport Checkbox from '..';\n\nbrowserEnv();\n\ntest('should call the onChange function and toggle the value on change', t => {\n t.plan(6);\n const expectedOnChangeValues = [false, true];\n const onChange = value => {\n t.is(value, expectedOnChangeValues.shift());\n };\n const dataName = 'check-box';\n const {container} = render(<Checkbox checked onChange={onChange} data-name={dataName} />);\n\n const checkBox = container.querySelector(`[data-name=\"${dataName}\"]`);\n t.truthy(checkBox);\n\n t.true(checkBox.checked);\n\n fireEvent.click(checkBox);\n t.false(checkBox.checked);\n\n fireEvent.click(checkBox);\n t.true(checkBox.checked);\n});\n\ntest('should mount the checkbox with default values', t => {\n const dataName = 'check-box';\n const {container} = render(<Checkbox data-name={dataName} />);\n\n const checkBox = container.querySelector(`[data-name=\"${dataName}\"]`);\n t.truthy(checkBox);\n});\n"],"file":"on-change.js"}
|
package/es/atom/clue/index.js
CHANGED
|
@@ -97,7 +97,8 @@ class Clue extends React.Component {
|
|
|
97
97
|
className: classnames(style.clueCard, !_isEmpty(text) && style.flip)
|
|
98
98
|
}, /*#__PURE__*/React.createElement("div", {
|
|
99
99
|
className: style.back,
|
|
100
|
-
style: inlineStyle
|
|
100
|
+
style: inlineStyle,
|
|
101
|
+
"data-name": "clue-back-side"
|
|
101
102
|
}, isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, /*#__PURE__*/React.createElement("div", {
|
|
102
103
|
className: classnames(style.backContent, isLoading && style.loading)
|
|
103
104
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/clue/index.js"],"names":["React","PropTypes","classnames","Provider","Loader","Cta","style","LoadedClue","text","clueText","__html","propTypes","string","Clue","Component","getDerivedStateFromProps","props","isLoading","constructor","context","state","handleClick","bind","e","stopPropagation","preventDefault","onClick","setState","render","starsDiff","skin","translate","primaryColor","inlineStyle","backgroundColor","starsToLoose","count","Math","abs","seeClueCta","wrapperClue","clueCard","flip","back","backContent","loading","stars","front","childContextTypes","number"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,MAAP,MAAmB,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;;AAEDW,EAAAA,MAAM,GAAG;AACP,UAAM;AAACpB,MAAAA,IAAD;AAAOqB,MAAAA;AAAP,QAAoB,KAAKb,KAA/B;AACA,UAAM;AAACc,MAAAA,IAAD;AAAOC,MAAAA;AAAP,QAAoB,KAAKZ,OAA/B;AACA,UAAM;AAACF,MAAAA;AAAD,QAAc,KAAKG,KAAzB;;AACA,UAAMY,YAAY,GAAG,KAAI,gBAAJ,EAAsBF,IAAtB,CAArB;;AACA,UAAMG,WAAW,GAAG;AAACC,MAAAA,eAAe,EAAEF;AAAlB,KAApB;AACA,UAAMG,YAAY,GAAGJ,SAAS,CAAC,qBAAD,EAAwB;AAACK,MAAAA,KAAK,EAAEC,IAAI,CAACC,GAAL,CAAST,SAAT;AAAR,KAAxB,CAA9B;AACA,UAAMU,UAAU,GAAGR,SAAS,CAAC,UAAD,CAA5B;AAEA,wBACE;AAAK,mBAAU,MAAf;AAAsB,MAAA,SAAS,EAAEzB,KAAK,CAACkC;AAAvC,oBACE;AAAK,MAAA,SAAS,EAAEtC,UAAU,CAACI,KAAK,CAACmC,QAAP,EAAiB,CAAC,SAAQjC,IAAR,CAAD,IAAkBF,KAAK,CAACoC,IAAzC;AAA1B,oBACE;AAAK,MAAA,SAAS,EAAEpC,KAAK,CAACqC,IAAtB;AAA4B,MAAA,KAAK,EAAEV;
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/clue/index.js"],"names":["React","PropTypes","classnames","Provider","Loader","Cta","style","LoadedClue","text","clueText","__html","propTypes","string","Clue","Component","getDerivedStateFromProps","props","isLoading","constructor","context","state","handleClick","bind","e","stopPropagation","preventDefault","onClick","setState","render","starsDiff","skin","translate","primaryColor","inlineStyle","backgroundColor","starsToLoose","count","Math","abs","seeClueCta","wrapperClue","clueCard","flip","back","backContent","loading","stars","front","childContextTypes","number"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB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MAAvC;AAAwC,MAAA,KAAK,MAA7C;AAA8C,MAAA,OAAO,EAAE,KAAKlB;AAA5D,MAFF,CAFF,CADF,eAQE;AAAK,MAAA,SAAS,EAAEf,KAAK,CAACyC,KAAtB;AAA6B,MAAA,KAAK,EAAEd;AAApC,oBACE,oBAAC,UAAD;AAAY,MAAA,IAAI,EAAEzB;AAAlB,MADF,CARF,CADF,CADF;AAgBD;;AAhEgC;;gBAA7BK,I,kBAOkB;AACpBiB,EAAAA,IAAI,EAAE3B,QAAQ,CAAC6C,iBAAT,CAA2BlB,IADb;AAEpBC,EAAAA,SAAS,EAAE5B,QAAQ,CAAC6C,iBAAT,CAA2BjB;AAFlB,C;;AAPlBlB,I,CACGF,S,2CAAY;AACjBH,EAAAA,IAAI,EAAED,UAAU,CAACI,SAAX,CAAqBH,IADV;AAEjBkB,EAAAA,OAAO,EAAErB,GAAG,CAACM,SAAJ,CAAce,OAFN;AAGjBG,EAAAA,SAAS,EAAE5B,SAAS,CAACgD;AAHJ,C;AAkErB,eAAepC,IAAf","sourcesContent":["import React from 'react';\nimport {get, isEmpty, noop} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider from '../provider';\nimport Loader from '../loader';\nimport Cta from '../cta';\nimport style from './style.css';\n\nconst LoadedClue = ({text}) => {\n return (\n <div data-name=\"text\" className={style.clueText}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: text}}\n />\n </div>\n );\n};\n\nLoadedClue.propTypes = {\n text: PropTypes.string\n};\n\nclass Clue extends React.Component {\n static propTypes = {\n text: LoadedClue.propTypes.text,\n onClick: Cta.propTypes.onClick,\n starsDiff: PropTypes.number\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n };\n\n static getDerivedStateFromProps(props) {\n const {text} = props;\n const isLoading = isEmpty(text);\n\n if (isLoading) return null;\n return {isLoading};\n }\n\n constructor(props, context) {\n super(props, context);\n this.state = {\n isLoading: false\n };\n this.handleClick = this.handleClick.bind(this);\n }\n\n handleClick(e) {\n e.stopPropagation();\n e.preventDefault();\n const {text, onClick = noop} = this.props;\n onClick(e);\n const isLoading = isEmpty(text);\n return this.setState({\n isLoading\n });\n }\n\n render() {\n const {text, starsDiff} = this.props;\n const {skin, translate} = this.context;\n const {isLoading} = this.state;\n const primaryColor = get('common.primary', skin);\n const inlineStyle = {backgroundColor: primaryColor};\n const starsToLoose = translate('clue_stars_to_loose', {count: Math.abs(starsDiff)});\n const seeClueCta = translate('See clue');\n\n return (\n <div data-name=\"clue\" className={style.wrapperClue}>\n <div className={classnames(style.clueCard, !isEmpty(text) && style.flip)}>\n <div className={style.back} style={inlineStyle} data-name=\"clue-back-side\">\n {isLoading ? <Loader /> : null}\n <div className={classnames(style.backContent, isLoading && style.loading)}>\n <div className={style.stars}>{starsToLoose}</div>\n <Cta submitValue={seeClueCta} secondary light onClick={this.handleClick} />\n </div>\n </div>\n <div className={style.front} style={inlineStyle}>\n <LoadedClue text={text} />\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default Clue;\n"],"file":"index.js"}
|
|
@@ -1,70 +1,80 @@
|
|
|
1
|
-
import _replace from "lodash/fp/replace";
|
|
2
|
-
|
|
3
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
2
|
|
|
5
3
|
import browserEnv from 'browser-env';
|
|
6
4
|
import test from 'ava';
|
|
7
5
|
import React from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
6
|
+
import { fireEvent } from '@testing-library/react';
|
|
7
|
+
import forEach from 'lodash/fp/forEach';
|
|
8
|
+
import replace from 'lodash/fp/replace';
|
|
9
|
+
import { renderWithContext } from '../../../util/render-with-context';
|
|
10
10
|
import style from '../style.css'; // eslint-disable-line css-modules/no-unused-class
|
|
11
11
|
|
|
12
12
|
import Clue from '..';
|
|
13
|
-
import Provider from '../../provider';
|
|
14
13
|
import defaultFixture from './fixtures/default';
|
|
15
14
|
browserEnv();
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
|
|
16
|
+
const checkStyles = (stylesToCheck, container, t) => {
|
|
17
|
+
forEach(([styleToCheck, shouldBePresent]) => {
|
|
18
|
+
const styledClue = container.querySelector(styleToCheck);
|
|
19
|
+
shouldBePresent ? t.truthy(styledClue) : t.falsy(styledClue);
|
|
20
|
+
}, stylesToCheck);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const findElementAndCheckText = (container, selector, expectedText, t) => {
|
|
24
|
+
const element = container.querySelector(selector);
|
|
25
|
+
t.is(element.textContent, expectedText);
|
|
26
|
+
};
|
|
27
|
+
|
|
19
28
|
test('should See the clue', t => {
|
|
20
29
|
const context = {
|
|
21
30
|
skin: {},
|
|
22
|
-
translate: key =>
|
|
31
|
+
translate: key => {
|
|
32
|
+
t.pass();
|
|
33
|
+
return key;
|
|
34
|
+
}
|
|
23
35
|
};
|
|
24
|
-
t.plan(
|
|
25
|
-
const clueCardStyle = `.${
|
|
26
|
-
const flipStyle = `.${
|
|
27
|
-
const loadingStyle = `.${
|
|
28
|
-
const backContentStyle = `.${
|
|
29
|
-
const clueTextStyle = `.${
|
|
36
|
+
t.plan(26);
|
|
37
|
+
const clueCardStyle = `.${replace(' ', '.', style.clueCard)}`;
|
|
38
|
+
const flipStyle = `.${replace(' ', '.', style.flip)}`;
|
|
39
|
+
const loadingStyle = `.${replace(' ', '.', style.loading)}`;
|
|
40
|
+
const backContentStyle = `.${replace(' ', '.', style.backContent)}`;
|
|
41
|
+
const clueTextStyle = `.${replace(' ', '.', style.clueText)}`;
|
|
30
42
|
|
|
31
43
|
const onClick = e => {
|
|
32
44
|
t.pass();
|
|
33
45
|
};
|
|
34
46
|
|
|
35
|
-
const
|
|
47
|
+
const {
|
|
48
|
+
container,
|
|
49
|
+
rerender
|
|
50
|
+
} = renderWithContext( /*#__PURE__*/React.createElement(Clue, _extends({}, defaultFixture.props, {
|
|
36
51
|
onClick: onClick
|
|
37
52
|
})), {
|
|
38
53
|
context
|
|
39
54
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
t.is(wrapper.find(clueTextStyle).text(), '');
|
|
64
|
-
wrapper.setProps({
|
|
65
|
-
text: 'This is the new clue ...'
|
|
66
|
-
});
|
|
67
|
-
t.is(wrapper.find(clueTextStyle).text(), 'This is the new clue ...');
|
|
55
|
+
const stylesToCheckPreClick = [[clueCardStyle, true], [flipStyle, false], [loadingStyle, false], [backContentStyle, true]];
|
|
56
|
+
checkStyles(stylesToCheckPreClick, container, t);
|
|
57
|
+
const link = container.querySelector('a');
|
|
58
|
+
fireEvent.click(link);
|
|
59
|
+
const stylesToCheckPostClick = [[clueCardStyle, true], [flipStyle, false], [loadingStyle, true], [backContentStyle, true]];
|
|
60
|
+
checkStyles(stylesToCheckPostClick, container, t);
|
|
61
|
+
rerender( /*#__PURE__*/React.createElement(Clue, _extends({}, defaultFixture.props, {
|
|
62
|
+
text: "This is the clue ...",
|
|
63
|
+
onClick: onClick
|
|
64
|
+
})));
|
|
65
|
+
findElementAndCheckText(container, clueTextStyle, 'This is the clue ...', t);
|
|
66
|
+
const stylesToCheckPostTextChange = [[clueCardStyle, true], [flipStyle, true], [loadingStyle, false], [backContentStyle, true]];
|
|
67
|
+
checkStyles(stylesToCheckPostTextChange, container, t);
|
|
68
|
+
rerender( /*#__PURE__*/React.createElement(Clue, _extends({}, defaultFixture.props, {
|
|
69
|
+
text: "",
|
|
70
|
+
onClick: onClick
|
|
71
|
+
})));
|
|
72
|
+
findElementAndCheckText(container, clueTextStyle, '', t);
|
|
73
|
+
rerender( /*#__PURE__*/React.createElement(Clue, _extends({}, defaultFixture.props, {
|
|
74
|
+
text: "This is the new clue ...",
|
|
75
|
+
onClick: onClick
|
|
76
|
+
})));
|
|
77
|
+
findElementAndCheckText(container, clueTextStyle, 'This is the new clue ...', t);
|
|
68
78
|
});
|
|
69
79
|
test('should clue color is the primary color if color is defined on skin', t => {
|
|
70
80
|
const context = {
|
|
@@ -73,14 +83,23 @@ test('should clue color is the primary color if color is defined on skin', t =>
|
|
|
73
83
|
primary: '#FF0000'
|
|
74
84
|
}
|
|
75
85
|
},
|
|
76
|
-
translate: key =>
|
|
86
|
+
translate: key => {
|
|
87
|
+
t.pass();
|
|
88
|
+
return key;
|
|
89
|
+
}
|
|
77
90
|
};
|
|
78
|
-
t.plan(
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
});
|
|
91
|
+
t.plan(6);
|
|
92
|
+
const {
|
|
93
|
+
container
|
|
94
|
+
} = renderWithContext( /*#__PURE__*/React.createElement(Clue, defaultFixture.props), {
|
|
95
|
+
context
|
|
96
|
+
}); // inline '#FF0000' becomes rgb(255, 0, 0)
|
|
97
|
+
|
|
98
|
+
const cardReverse = container.querySelector('[data-name="clue-back-side"][style="background-color: rgb(255, 0, 0);"]');
|
|
99
|
+
t.truthy(cardReverse);
|
|
100
|
+
const seeClueCta = cardReverse.querySelector('a[data-name="cta"]');
|
|
101
|
+
t.truthy(seeClueCta);
|
|
102
|
+
fireEvent.click(seeClueCta);
|
|
84
103
|
});
|
|
85
104
|
test('should clue color is the fallback primary color if color not defined on skin', t => {
|
|
86
105
|
const context = {
|
|
@@ -89,13 +108,19 @@ test('should clue color is the fallback primary color if color not defined on sk
|
|
|
89
108
|
secondary: '#FF0000'
|
|
90
109
|
}
|
|
91
110
|
},
|
|
92
|
-
translate: key =>
|
|
111
|
+
translate: key => {
|
|
112
|
+
t.pass();
|
|
113
|
+
return key;
|
|
114
|
+
}
|
|
93
115
|
};
|
|
94
|
-
t.plan(
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
});
|
|
116
|
+
t.plan(3);
|
|
117
|
+
const {
|
|
118
|
+
container
|
|
119
|
+
} = renderWithContext( /*#__PURE__*/React.createElement(Clue, defaultFixture.props), {
|
|
120
|
+
context
|
|
121
|
+
}); // inline '#00B0FF' becomes rgb(0, 176, 255)
|
|
122
|
+
|
|
123
|
+
const cardReverse = container.querySelector('[data-name="clue-back-side"][style="background-color: rgb(0, 176, 255);"]');
|
|
124
|
+
t.truthy(cardReverse);
|
|
100
125
|
});
|
|
101
126
|
//# sourceMappingURL=see-clue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/atom/clue/test/see-clue.js"],"names":["browserEnv","test","React","
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/clue/test/see-clue.js"],"names":["browserEnv","test","React","fireEvent","forEach","replace","renderWithContext","style","Clue","defaultFixture","checkStyles","stylesToCheck","container","t","styleToCheck","shouldBePresent","styledClue","querySelector","truthy","falsy","findElementAndCheckText","selector","expectedText","element","is","textContent","context","skin","translate","key","pass","plan","clueCardStyle","clueCard","flipStyle","flip","loadingStyle","loading","backContentStyle","backContent","clueTextStyle","clueText","onClick","e","rerender","props","stylesToCheckPreClick","link","click","stylesToCheckPostClick","stylesToCheckPostTextChange","common","primary","cardReverse","seeClueCta","secondary"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,SAAR,QAAwB,wBAAxB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,SAAQC,iBAAR,QAAgC,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';\nimport React from 'react';\nimport {fireEvent} from '@testing-library/react';\nimport forEach from 'lodash/fp/forEach';\nimport replace from 'lodash/fp/replace';\nimport {renderWithContext} from '../../../util/render-with-context';\nimport style from '../style.css'; // eslint-disable-line css-modules/no-unused-class\nimport Clue from '..';\nimport defaultFixture from './fixtures/default';\n\nbrowserEnv();\n\nconst checkStyles = (stylesToCheck, container, t) => {\n forEach(([styleToCheck, shouldBePresent]) => {\n const styledClue = container.querySelector(styleToCheck);\n shouldBePresent ? t.truthy(styledClue) : t.falsy(styledClue);\n }, stylesToCheck);\n};\n\nconst findElementAndCheckText = (container, selector, expectedText, t) => {\n const element = container.querySelector(selector);\n t.is(element.textContent, expectedText);\n};\n\ntest('should See the clue', t => {\n const context = {\n skin: {},\n translate: key => {\n t.pass();\n return key;\n }\n };\n t.plan(26);\n\n const clueCardStyle = `.${replace(' ', '.', style.clueCard)}`;\n const flipStyle = `.${replace(' ', '.', style.flip)}`;\n\n const loadingStyle = `.${replace(' ', '.', style.loading)}`;\n const backContentStyle = `.${replace(' ', '.', style.backContent)}`;\n\n const clueTextStyle = `.${replace(' ', '.', style.clueText)}`;\n\n const onClick = e => {\n t.pass();\n };\n\n const {container, rerender} = renderWithContext(\n <Clue {...defaultFixture.props} onClick={onClick} />,\n {\n context\n }\n );\n\n const stylesToCheckPreClick = [\n [clueCardStyle, true],\n [flipStyle, false],\n [loadingStyle, false],\n [backContentStyle, true]\n ];\n\n checkStyles(stylesToCheckPreClick, container, t);\n\n const link = container.querySelector('a');\n\n fireEvent.click(link);\n\n const stylesToCheckPostClick = [\n [clueCardStyle, true],\n [flipStyle, false],\n [loadingStyle, true],\n [backContentStyle, true]\n ];\n\n checkStyles(stylesToCheckPostClick, container, t);\n\n rerender(<Clue {...defaultFixture.props} text=\"This is the clue ...\" onClick={onClick} />);\n findElementAndCheckText(container, clueTextStyle, 'This is the clue ...', t);\n\n const stylesToCheckPostTextChange = [\n [clueCardStyle, true],\n [flipStyle, true],\n [loadingStyle, false],\n [backContentStyle, true]\n ];\n\n checkStyles(stylesToCheckPostTextChange, container, t);\n\n rerender(<Clue {...defaultFixture.props} text=\"\" onClick={onClick} />);\n findElementAndCheckText(container, clueTextStyle, '', t);\n\n rerender(<Clue {...defaultFixture.props} text=\"This is the new clue ...\" onClick={onClick} />);\n findElementAndCheckText(container, clueTextStyle, 'This is the new clue ...', t);\n});\n\ntest('should clue color is the primary color if color is defined on skin', t => {\n const context = {\n skin: {\n common: {\n primary: '#FF0000'\n }\n },\n translate: key => {\n t.pass();\n return key;\n }\n };\n t.plan(6);\n\n const {container} = renderWithContext(<Clue {...defaultFixture.props} />, {\n context\n });\n\n // inline '#FF0000' becomes rgb(255, 0, 0)\n const cardReverse = container.querySelector(\n '[data-name=\"clue-back-side\"][style=\"background-color: rgb(255, 0, 0);\"]'\n );\n\n t.truthy(cardReverse);\n\n const seeClueCta = cardReverse.querySelector('a[data-name=\"cta\"]');\n\n t.truthy(seeClueCta);\n\n fireEvent.click(seeClueCta);\n});\n\ntest('should clue color is the fallback primary color if color not defined on skin', t => {\n const context = {\n skin: {\n common: {\n secondary: '#FF0000'\n }\n },\n translate: key => {\n t.pass();\n return key;\n }\n };\n t.plan(3);\n\n const {container} = renderWithContext(<Clue {...defaultFixture.props} />, {\n context\n });\n\n // inline '#00B0FF' becomes rgb(0, 176, 255)\n const cardReverse = container.querySelector(\n '[data-name=\"clue-back-side\"][style=\"background-color: rgb(0, 176, 255);\"]'\n );\n\n t.truthy(cardReverse);\n});\n"],"file":"see-clue.js"}
|
package/es/index.js
CHANGED
|
@@ -3,5 +3,6 @@ import PopinEnd from './template/app-player/popin-end';
|
|
|
3
3
|
import PopinCorrection from './template/app-player/popin-correction';
|
|
4
4
|
import Player from './template/app-player/player';
|
|
5
5
|
import Loading from './template/app-player/loading';
|
|
6
|
-
|
|
6
|
+
import AppReviewRootView from './template/app-review/root-view';
|
|
7
|
+
export { Provider, PopinEnd, PopinCorrection, Loading, Player, AppReviewRootView };
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
package/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["Provider","PopinEnd","PopinCorrection","Player","Loading"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,iBAArB;AACA,OAAOC,QAAP,MAAqB,iCAArB;AACA,OAAOC,eAAP,MAA4B,wCAA5B;AACA,OAAOC,MAAP,MAAmB,8BAAnB;AACA,OAAOC,OAAP,MAAoB,+BAApB;AAEA,
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["Provider","PopinEnd","PopinCorrection","Player","Loading","AppReviewRootView"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,iBAArB;AACA,OAAOC,QAAP,MAAqB,iCAArB;AACA,OAAOC,eAAP,MAA4B,wCAA5B;AACA,OAAOC,MAAP,MAAmB,8BAAnB;AACA,OAAOC,OAAP,MAAoB,+BAApB;AACA,OAAOC,iBAAP,MAA8B,iCAA9B;AAEA,SAAQL,QAAR,EAAkBC,QAAlB,EAA4BC,eAA5B,EAA6CE,OAA7C,EAAsDD,MAAtD,EAA8DE,iBAA9D","sourcesContent":["import Provider from './atom/provider';\nimport PopinEnd from './template/app-player/popin-end';\nimport PopinCorrection from './template/app-player/popin-correction';\nimport Player from './template/app-player/player';\nimport Loading from './template/app-player/loading';\nimport AppReviewRootView from './template/app-review/root-view';\n\nexport {Provider, PopinEnd, PopinCorrection, Loading, Player, AppReviewRootView};\n"],"file":"index.js"}
|