@coorpacademy/components 10.13.12 → 10.13.13
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/molecule/skill-card/index.js +87 -0
- package/es/molecule/skill-card/index.js.map +1 -0
- package/es/molecule/skill-card/style.css +60 -0
- package/es/molecule/skill-card/test/fixtures/custom-skill.js +10 -0
- package/es/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/default.js +15 -0
- package/es/molecule/skill-card/test/fixtures/default.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/no-aria-labels.js +12 -0
- package/es/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/short-skill-title.js +10 -0
- package/es/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
- package/es/molecule/skill-card/test/skill-card.js +90 -0
- package/es/molecule/skill-card/test/skill-card.js.map +1 -0
- package/es/variables/colors.css +1 -0
- package/lib/molecule/skill-card/index.js +105 -0
- package/lib/molecule/skill-card/index.js.map +1 -0
- package/lib/molecule/skill-card/style.css +60 -0
- package/lib/molecule/skill-card/test/fixtures/custom-skill.js +17 -0
- package/lib/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/default.js +21 -0
- package/lib/molecule/skill-card/test/fixtures/default.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js +18 -0
- package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/short-skill-title.js +17 -0
- package/lib/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
- package/lib/molecule/skill-card/test/skill-card.js +102 -0
- package/lib/molecule/skill-card/test/skill-card.js.map +1 -0
- package/lib/variables/colors.css +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/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/clue/test/fixtures.js +0 -17
- package/es/atom/clue/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 -23
- package/es/atom/drag-and-drop/test/fixtures.js.map +0 -1
- package/es/atom/image-upload/test/fixtures.js +0 -29
- package/es/atom/image-upload/test/fixtures.js.map +0 -1
- package/es/atom/input-checkbox/test/fixtures.js +0 -23
- 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-switch/test/fixtures.js +0 -23
- package/es/atom/input-switch/test/fixtures.js.map +0 -1
- package/es/atom/input-text/test/fixtures.js +0 -25
- package/es/atom/input-text/test/fixtures.js.map +0 -1
- package/es/atom/input-textarea/test/fixtures.js +0 -17
- 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 -13
- package/es/atom/loader/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/select/test/fixtures.js +0 -43
- 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/title/test/fixtures.js +0 -13
- 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/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/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 -33
- 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/card/test/fixtures.js +0 -39
- 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/cockpit-popin/test/fixtures.js +0 -17
- package/es/molecule/cockpit-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/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/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/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/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/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 -15
- 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/resource-player/test/fixtures.js +0 -25
- package/es/molecule/resource-player/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/test/fixtures.js +0 -15
- package/es/molecule/search/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 -23
- 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 -23
- 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/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/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/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/organism/accordion/container/test/fixtures.js +0 -17
- package/es/organism/accordion/container/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-dashboard/test/fixtures.js +0 -23
- package/es/organism/brand-dashboard/test/fixtures.js.map +0 -1
- package/es/organism/brand-form/test/fixtures.js +0 -31
- 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/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/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 -25
- 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/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/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 -49
- 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 -65
- 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 -31
- package/es/template/external-course/test/fixtures.js.map +0 -1
- package/es/template/teams-dashboard/test/fixtures.js +0 -15
- 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/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/clue/test/fixtures.js +0 -28
- package/lib/atom/clue/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 -37
- package/lib/atom/drag-and-drop/test/fixtures.js.map +0 -1
- package/lib/atom/image-upload/test/fixtures.js +0 -46
- package/lib/atom/image-upload/test/fixtures.js.map +0 -1
- package/lib/atom/input-checkbox/test/fixtures.js +0 -37
- 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-switch/test/fixtures.js +0 -37
- package/lib/atom/input-switch/test/fixtures.js.map +0 -1
- package/lib/atom/input-text/test/fixtures.js +0 -40
- package/lib/atom/input-text/test/fixtures.js.map +0 -1
- package/lib/atom/input-textarea/test/fixtures.js +0 -28
- 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 -22
- package/lib/atom/loader/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/select/test/fixtures.js +0 -67
- 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/title/test/fixtures.js +0 -22
- 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/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/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 -52
- 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/card/test/fixtures.js +0 -61
- 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/cockpit-popin/test/fixtures.js +0 -28
- package/lib/molecule/cockpit-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/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/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/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/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/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 -25
- 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/resource-player/test/fixtures.js +0 -40
- package/lib/molecule/resource-player/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/test/fixtures.js +0 -25
- package/lib/molecule/search/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 -37
- 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 -37
- 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/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/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/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/organism/accordion/container/test/fixtures.js +0 -28
- package/lib/organism/accordion/container/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-dashboard/test/fixtures.js +0 -37
- package/lib/organism/brand-dashboard/test/fixtures.js.map +0 -1
- package/lib/organism/brand-form/test/fixtures.js +0 -49
- 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/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/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 -40
- 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/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/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 -76
- 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 -100
- 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 -49
- package/lib/template/external-course/test/fixtures.js.map +0 -1
- package/lib/template/teams-dashboard/test/fixtures.js +0 -25
- package/lib/template/teams-dashboard/test/fixtures.js.map +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React, { useCallback, useState, useMemo } from 'react';
|
|
2
|
+
import { convert } from 'css-color-function';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon } from '@coorpacademy/nova-icons';
|
|
5
|
+
import getOr from 'lodash/fp/getOr';
|
|
6
|
+
import ButtonLink from '../../atom/button-link';
|
|
7
|
+
import style from './style.css';
|
|
8
|
+
|
|
9
|
+
const getGradientBackground = baseColor => {
|
|
10
|
+
const gradients = [convert(`color(${baseColor} lightness(30%))`), convert(`color(${baseColor} lightness(47%))`), convert(`color(${baseColor} lightness(55%))`)];
|
|
11
|
+
return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${convert(`color(${gradients[0]} a(0))`)} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${convert(`color(${gradients[1]} a(0))`)} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${convert(`color(${gradients[2]} a(0))`)} 100%), ${baseColor}`;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const SkillCard = (props, context) => {
|
|
15
|
+
const {
|
|
16
|
+
'aria-label': ariaLabel,
|
|
17
|
+
skillTitle,
|
|
18
|
+
skillAriaLabel,
|
|
19
|
+
buttonLabel,
|
|
20
|
+
buttonAriaLabel,
|
|
21
|
+
reviseLabel,
|
|
22
|
+
reviseAriaLabel,
|
|
23
|
+
onClick,
|
|
24
|
+
isCustom = false
|
|
25
|
+
} = props;
|
|
26
|
+
const {
|
|
27
|
+
skin
|
|
28
|
+
} = context;
|
|
29
|
+
const [hovered, setHovered] = useState(false);
|
|
30
|
+
const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);
|
|
31
|
+
const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);
|
|
32
|
+
const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);
|
|
33
|
+
const buttonProps = {
|
|
34
|
+
customStyle: {
|
|
35
|
+
backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),
|
|
36
|
+
color: hovered ? '#FFFFFF' : primarySkinColor,
|
|
37
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
38
|
+
},
|
|
39
|
+
onClick,
|
|
40
|
+
'aria-label': buttonAriaLabel,
|
|
41
|
+
label: buttonLabel,
|
|
42
|
+
'data-name': 'skill-card-button'
|
|
43
|
+
};
|
|
44
|
+
const titleBackgroundColor = useMemo(() => isCustom ? '#128C72' : primarySkinColor, [isCustom, primarySkinColor]);
|
|
45
|
+
const titleBackground = useMemo(() => getGradientBackground(titleBackgroundColor), [titleBackgroundColor]);
|
|
46
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: style.skillCardWrapper,
|
|
48
|
+
"data-name": "skill-card-wrapper",
|
|
49
|
+
"aria-label": ariaLabel
|
|
50
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
"data-name": "skill-title",
|
|
52
|
+
className: style.skillTitle,
|
|
53
|
+
"aria-label": skillAriaLabel || skillTitle,
|
|
54
|
+
style: {
|
|
55
|
+
background: titleBackground
|
|
56
|
+
}
|
|
57
|
+
}, skillTitle), /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
"data-name": "card-content-wrapper"
|
|
59
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: style.questionReviseText,
|
|
61
|
+
"data-name": "questions-to-revise-label",
|
|
62
|
+
"aria-label": reviseAriaLabel || reviseLabel
|
|
63
|
+
}, /*#__PURE__*/React.createElement(QuestionIcon, {
|
|
64
|
+
className: style.questionReviseIcon,
|
|
65
|
+
width: 16,
|
|
66
|
+
height: 16
|
|
67
|
+
}), reviseLabel), /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: style.buttonWrapper,
|
|
69
|
+
onMouseOver: handleMouseOver,
|
|
70
|
+
onMouseLeave: handleMouseLeave,
|
|
71
|
+
"data-name": "button-wrapper"
|
|
72
|
+
}, /*#__PURE__*/React.createElement(ButtonLink, buttonProps))));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
SkillCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
76
|
+
'aria-label': PropTypes.string.isRequired,
|
|
77
|
+
skillTitle: PropTypes.string,
|
|
78
|
+
skillAriaLabel: PropTypes.string,
|
|
79
|
+
buttonLabel: PropTypes.string,
|
|
80
|
+
buttonAriaLabel: PropTypes.string,
|
|
81
|
+
reviseLabel: PropTypes.string,
|
|
82
|
+
reviseAriaLabel: PropTypes.string,
|
|
83
|
+
isCustom: PropTypes.bool,
|
|
84
|
+
onClick: PropTypes.func
|
|
85
|
+
} : {};
|
|
86
|
+
export default SkillCard;
|
|
87
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/skill-card/index.js"],"names":["React","useCallback","useState","useMemo","convert","PropTypes","NovaSolidInterfaceFeedbackInterfaceQuestionMark","QuestionIcon","getOr","ButtonLink","style","getGradientBackground","baseColor","gradients","SkillCard","props","context","ariaLabel","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","onClick","isCustom","skin","hovered","setHovered","primarySkinColor","handleMouseOver","handleMouseLeave","buttonProps","customStyle","backgroundColor","color","transition","label","titleBackgroundColor","titleBackground","skillCardWrapper","background","questionReviseText","questionReviseIcon","buttonWrapper","propTypes","string","isRequired","bool","func"],"mappings":"AAAA,OAAOA,KAAP,IAAeC,WAAf,EAA4BC,QAA5B,EAAsCC,OAAtC,QAAoD,OAApD;AACA,SAAQC,OAAR,QAAsB,oBAAtB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,+CAA+C,IAAIC,YAA3D,QAA8E,0BAA9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AK,EAAE,EAA1D;AAA8D,IAAA,MAAM,EAAE;AAAtE,IALF,EAMGrB,WANH,CADF,eASE;AACE,IAAA,SAAS,EAAEZ,KAAK,CAACkC,aADnB;AAEE,IAAA,WAAW,EAAEd,eAFf;AAGE,IAAA,YAAY,EAAEC,gBAHhB;AAIE,iBAAU;AAJZ,kBAME,oBAAC,UAAD,EAAgBC,WAAhB,CANF,CATF,CAXF,CADF;AAgCD,CAzED;;AA2EAlB,SAAS,CAAC+B,SAAV,2CAAsB;AACpB,gBAAcxC,SAAS,CAACyC,MAAV,CAAiBC,UADX;AAEpB7B,EAAAA,UAAU,EAAEb,SAAS,CAACyC,MAFF;AAGpB3B,EAAAA,cAAc,EAAEd,SAAS,CAACyC,MAHN;AAIpB1B,EAAAA,WAAW,EAAEf,SAAS,CAACyC,MAJH;AAKpBzB,EAAAA,eAAe,EAAEhB,SAAS,CAACyC,MALP;AAMpBxB,EAAAA,WAAW,EAAEjB,SAAS,CAACyC,MANH;AAOpBvB,EAAAA,eAAe,EAAElB,SAAS,CAACyC,MAPP;AAQpBrB,EAAAA,QAAQ,EAAEpB,SAAS,CAAC2C,IARA;AASpBxB,EAAAA,OAAO,EAAEnB,SAAS,CAAC4C;AATC,CAAtB;AAYA,eAAenC,SAAf","sourcesContent":["import React, {useCallback, useState, useMemo} from 'react';\nimport {convert} from 'css-color-function';\nimport PropTypes from 'prop-types';\nimport {NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon} from '@coorpacademy/nova-icons';\nimport getOr from 'lodash/fp/getOr';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst getGradientBackground = baseColor => {\n const gradients = [\n convert(`color(${baseColor} lightness(30%))`),\n convert(`color(${baseColor} lightness(47%))`),\n convert(`color(${baseColor} lightness(55%))`)\n ];\n\n return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${convert(\n `color(${gradients[0]} a(0))`\n )} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${convert(\n `color(${gradients[1]} a(0))`\n )} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${convert(\n `color(${gradients[2]} a(0))`\n )} 100%), ${baseColor}`;\n};\n\nconst SkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n buttonLabel,\n buttonAriaLabel,\n reviseLabel,\n reviseAriaLabel,\n onClick,\n isCustom = false\n } = props;\n const {skin} = context;\n const [hovered, setHovered] = useState(false);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const buttonProps = {\n customStyle: {\n backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),\n color: hovered ? '#FFFFFF' : primarySkinColor,\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n onClick,\n 'aria-label': buttonAriaLabel,\n label: buttonLabel,\n 'data-name': 'skill-card-button'\n };\n\n const titleBackgroundColor = useMemo(() => (isCustom ? '#128C72' : primarySkinColor), [\n isCustom,\n primarySkinColor\n ]);\n\n const titleBackground = useMemo(() => getGradientBackground(titleBackgroundColor), [\n titleBackgroundColor\n ]);\n\n return (\n <div className={style.skillCardWrapper} data-name=\"skill-card-wrapper\" aria-label={ariaLabel}>\n <div\n data-name=\"skill-title\"\n className={style.skillTitle}\n aria-label={skillAriaLabel || skillTitle}\n style={{\n background: titleBackground\n }}\n >\n {skillTitle}\n </div>\n <div data-name=\"card-content-wrapper\">\n <div\n className={style.questionReviseText}\n data-name=\"questions-to-revise-label\"\n aria-label={reviseAriaLabel || reviseLabel}\n >\n <QuestionIcon className={style.questionReviseIcon} width={16} height={16} />\n {reviseLabel}\n </div>\n <div\n className={style.buttonWrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n data-name=\"button-wrapper\"\n >\n <ButtonLink {...buttonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nSkillCard.propTypes = {\n 'aria-label': PropTypes.string.isRequired,\n skillTitle: PropTypes.string,\n skillAriaLabel: PropTypes.string,\n buttonLabel: PropTypes.string,\n buttonAriaLabel: PropTypes.string,\n reviseLabel: PropTypes.string,\n reviseAriaLabel: PropTypes.string,\n isCustom: PropTypes.bool,\n onClick: PropTypes.func\n};\n\nexport default SkillCard;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_400 from colors;
|
|
3
|
+
@value white from colors;
|
|
4
|
+
@value box_shadow_light_dark from colors;
|
|
5
|
+
@value box_shadow_medium_dark from colors;
|
|
6
|
+
|
|
7
|
+
.textBase {
|
|
8
|
+
font-family: "Gilroy";
|
|
9
|
+
font-style: normal;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.skillCardWrapper {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
max-width: 353px;
|
|
16
|
+
min-width: 245px;
|
|
17
|
+
height: 242px;
|
|
18
|
+
box-shadow: 0px 4px 16px box_shadow_light_dark;
|
|
19
|
+
transition: box-shadow 0.15s ease-in-out;
|
|
20
|
+
border-radius: 8px 8px 12px 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.skillCardWrapper:hover {
|
|
24
|
+
box-shadow: 0px 4px 48px box_shadow_medium_dark;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.skillTitle {
|
|
28
|
+
composes: textBase;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
font-size: 20px;
|
|
31
|
+
line-height: 28px;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
height: 112px;
|
|
35
|
+
border-radius: 8px 8px 0px 0px;
|
|
36
|
+
color: white;
|
|
37
|
+
padding: 0px 24px;
|
|
38
|
+
user-select: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.questionReviseIcon {
|
|
42
|
+
padding-right : 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.questionReviseText {
|
|
46
|
+
composes: textBase;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items : center;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
line-height: 22px;
|
|
52
|
+
color: cm_grey_400;
|
|
53
|
+
padding: 16px 24px 24px;
|
|
54
|
+
user-select: none;
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.buttonWrapper {
|
|
59
|
+
padding: 0px 24px;
|
|
60
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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); }
|
|
2
|
+
|
|
3
|
+
import { defaultProps } from './default';
|
|
4
|
+
export default {
|
|
5
|
+
props: _extends(_extends({}, defaultProps), {}, {
|
|
6
|
+
skillTitle: 'This is a custom skill',
|
|
7
|
+
isCustom: true
|
|
8
|
+
})
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=custom-skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/custom-skill.js"],"names":["defaultProps","props","skillTitle","isCustom"],"mappings":";;AAAA,SAAQA,YAAR,QAA2B,WAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,wBAAMD,YAAN;AAAoBE,IAAAA,UAAU,EAAE,wBAAhC;AAA0DC,IAAAA,QAAQ,EAAE;AAApE;AADQ,CAAf","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'This is a custom skill', isCustom: true}\n};\n"],"file":"custom-skill.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const defaultProps = {
|
|
2
|
+
'aria-label': 'Skill Card',
|
|
3
|
+
skillTitle: 'Critical thinking and analysis',
|
|
4
|
+
skillAriaLabel: 'Skill aria label',
|
|
5
|
+
buttonLabel: 'Revise this skill',
|
|
6
|
+
buttonAriaLabel: 'Button aria label',
|
|
7
|
+
reviseLabel: '75 questions to revise',
|
|
8
|
+
reviseAriaLabel: 'revise aria label',
|
|
9
|
+
isCustom: undefined,
|
|
10
|
+
onClick: () => console.log('revise')
|
|
11
|
+
};
|
|
12
|
+
export default {
|
|
13
|
+
props: defaultProps
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/default.js"],"names":["defaultProps","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","isCustom","undefined","onClick","console","log","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,cAAc,EAAE,kBAHU;AAI1BC,EAAAA,WAAW,EAAE,mBAJa;AAK1BC,EAAAA,eAAe,EAAE,mBALS;AAM1BC,EAAAA,WAAW,EAAE,wBANa;AAO1BC,EAAAA,eAAe,EAAE,mBAPS;AAQ1BC,EAAAA,QAAQ,EAAEC,SARgB;AAS1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AATW,CAArB;AAYP,eAAe;AACbC,EAAAA,KAAK,EAAEZ;AADM,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n skillAriaLabel: 'Skill aria label',\n buttonLabel: 'Revise this skill',\n buttonAriaLabel: 'Button aria label',\n reviseLabel: '75 questions to revise',\n reviseAriaLabel: 'revise aria label',\n isCustom: undefined,\n onClick: () => console.log('revise')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const defaultProps = {
|
|
2
|
+
'aria-label': 'Skill Card',
|
|
3
|
+
skillTitle: 'Critical thinking and analysis',
|
|
4
|
+
buttonLabel: 'Revise this skill',
|
|
5
|
+
reviseLabel: '75 questions to revise',
|
|
6
|
+
isCustom: undefined,
|
|
7
|
+
onClick: () => console.log('revise - no aria')
|
|
8
|
+
};
|
|
9
|
+
export default {
|
|
10
|
+
props: defaultProps
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=no-aria-labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/no-aria-labels.js"],"names":["defaultProps","skillTitle","buttonLabel","reviseLabel","isCustom","undefined","onClick","console","log","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,WAAW,EAAE,mBAHa;AAI1BC,EAAAA,WAAW,EAAE,wBAJa;AAK1BC,EAAAA,QAAQ,EAAEC,SALgB;AAM1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AANW,CAArB;AASP,eAAe;AACbC,EAAAA,KAAK,EAAET;AADM,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n buttonLabel: 'Revise this skill',\n reviseLabel: '75 questions to revise',\n isCustom: undefined,\n onClick: () => console.log('revise - no aria')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"no-aria-labels.js"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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); }
|
|
2
|
+
|
|
3
|
+
import { defaultProps } from './default';
|
|
4
|
+
export default {
|
|
5
|
+
props: _extends(_extends({}, defaultProps), {}, {
|
|
6
|
+
skillTitle: 'Agility',
|
|
7
|
+
isCustom: false
|
|
8
|
+
})
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=short-skill-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/short-skill-title.js"],"names":["defaultProps","props","skillTitle","isCustom"],"mappings":";;AAAA,SAAQA,YAAR,QAA2B,WAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,wBAAMD,YAAN;AAAoBE,IAAAA,UAAU,EAAE,SAAhC;AAA2CC,IAAAA,QAAQ,EAAE;AAArD;AADQ,CAAf","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'Agility', isCustom: false}\n};\n"],"file":"short-skill-title.js"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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); }
|
|
2
|
+
|
|
3
|
+
import browserEnv from 'browser-env';
|
|
4
|
+
import test from 'ava';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { mount, configure } from 'enzyme';
|
|
7
|
+
import Adapter from 'enzyme-adapter-react-16';
|
|
8
|
+
import SkillCard from '..';
|
|
9
|
+
import customSkillFixture from './fixtures/custom-skill';
|
|
10
|
+
import noAriaLabelsFixtures from './fixtures/no-aria-labels';
|
|
11
|
+
browserEnv();
|
|
12
|
+
configure({
|
|
13
|
+
adapter: new Adapter()
|
|
14
|
+
});
|
|
15
|
+
test('onClick should be reachable, should match given aria-label', t => {
|
|
16
|
+
let buttonWasClicked = false;
|
|
17
|
+
customSkillFixture.props = _extends(_extends({}, customSkillFixture.props), {}, {
|
|
18
|
+
onClick: () => {
|
|
19
|
+
buttonWasClicked = true;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, customSkillFixture.props));
|
|
23
|
+
const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
24
|
+
t.true(cardWrapper.at(0).exists());
|
|
25
|
+
t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');
|
|
26
|
+
const skillTitle = cardWrapper.find('[data-name="skill-title"]');
|
|
27
|
+
t.true(skillTitle.at(0).exists());
|
|
28
|
+
t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');
|
|
29
|
+
const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
|
|
30
|
+
t.true(questionsLabel.at(0).exists());
|
|
31
|
+
t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');
|
|
32
|
+
const buttonLink = cardWrapper.find('[data-name="skill-card-button"]');
|
|
33
|
+
t.true(buttonLink.at(0).exists());
|
|
34
|
+
t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');
|
|
35
|
+
buttonLink.at(0).simulate('click', {});
|
|
36
|
+
t.true(buttonWasClicked);
|
|
37
|
+
t.pass();
|
|
38
|
+
});
|
|
39
|
+
test('onHover should change button text color && backgroundColor', t => {
|
|
40
|
+
const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, customSkillFixture.props));
|
|
41
|
+
const expectedStyleNoHover = {
|
|
42
|
+
backgroundColor: 'rgba(0, 176, 255, 0.07)',
|
|
43
|
+
color: '#00B0FF',
|
|
44
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
45
|
+
};
|
|
46
|
+
const expectedStyleOnHover = {
|
|
47
|
+
backgroundColor: '#00B0FF',
|
|
48
|
+
color: '#FFFFFF',
|
|
49
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
50
|
+
};
|
|
51
|
+
let cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
52
|
+
t.true(cardWrapper.at(0).exists());
|
|
53
|
+
let buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
|
|
54
|
+
t.true(buttonWrapper.at(0).exists());
|
|
55
|
+
let buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
|
|
56
|
+
t.true(buttonLink.at(0).exists());
|
|
57
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover); // hover
|
|
58
|
+
|
|
59
|
+
buttonWrapper.simulate('mouseover');
|
|
60
|
+
wrapper.update();
|
|
61
|
+
cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
62
|
+
buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
|
|
63
|
+
t.true(buttonWrapper.at(0).exists());
|
|
64
|
+
buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
|
|
65
|
+
t.true(buttonLink.at(0).exists());
|
|
66
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover); // leave hover
|
|
67
|
+
|
|
68
|
+
buttonWrapper.simulate('mouseleave');
|
|
69
|
+
wrapper.update();
|
|
70
|
+
buttonLink = wrapper.find('[data-name="skill-card-button"] button');
|
|
71
|
+
t.true(buttonLink.at(0).exists());
|
|
72
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);
|
|
73
|
+
t.pass();
|
|
74
|
+
});
|
|
75
|
+
test('should use default aria-labels if aria-label props are not provided', t => {
|
|
76
|
+
const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, noAriaLabelsFixtures.props));
|
|
77
|
+
const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
78
|
+
t.true(cardWrapper.at(0).exists());
|
|
79
|
+
const skillTitle = cardWrapper.find('[data-name="skill-title"]');
|
|
80
|
+
t.true(skillTitle.at(0).exists());
|
|
81
|
+
t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');
|
|
82
|
+
const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
|
|
83
|
+
t.true(questionsLabel.at(0).exists());
|
|
84
|
+
t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');
|
|
85
|
+
const buttonLink = cardWrapper.find('[data-name="skill-card-button"] button');
|
|
86
|
+
t.true(buttonLink.at(0).exists());
|
|
87
|
+
t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');
|
|
88
|
+
t.pass();
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=skill-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/skill-card/test/skill-card.js"],"names":["browserEnv","test","React","mount","configure","Adapter","SkillCard","customSkillFixture","noAriaLabelsFixtures","adapter","t","buttonWasClicked","props","onClick","wrapper","cardWrapper","find","true","at","exists","is","skillTitle","questionsLabel","buttonLink","simulate","pass","expectedStyleNoHover","backgroundColor","color","transition","expectedStyleOnHover","buttonWrapper","deepEqual","style","update"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,KAAR,EAAeC,SAAf,QAA+B,QAA/B;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,SAAP,MAAsB,IAAtB;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AAEAR,UAAU;AACVI,SAAS,CAAC;AAACK,EAAAA,OAAO,EAAE,IAAIJ,OAAJ;AAAV,CAAD,CAAT;AAEAJ,IAAI,CAAC,4DAAD,EAA+DS,CAAC,IAAI;AACtE,MAAIC,gBAAgB,GAAG,KAAvB;AACAJ,EAAAA,kBAAkB,CAACK,KAAnB,yBACKL,kBAAkB,CAACK,KADxB;AAEEC,IAAAA,OAAO,EAAE,MAAM;AACbF,MAAAA,gBA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AAW,CAACG,EAAZ,CAAe,CAAf,EAAkBC,MAAlB,EAAP;AAEA,QAAME,UAAU,GAAGN,WAAW,CAACC,IAAZ,CAAiB,2BAAjB,CAAnB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOI,UAAU,CAACH,EAAX,CAAc,CAAd,EAAiBC,MAAjB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAKC,UAAU,CAACH,EAAX,CAAc,CAAd,EAAiBN,KAAjB,GAAyB,YAAzB,CAAL,EAA6C,gCAA7C;AAEA,QAAMU,cAAc,GAAGP,WAAW,CAACC,IAAZ,CAAiB,yCAAjB,CAAvB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOK,cAAc,CAACJ,EAAf,CAAkB,CAAlB,EAAqBC,MAArB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAKE,cAAc,CAACJ,EAAf,CAAkB,CAAlB,EAAqBN,KAArB,GAA6B,YAA7B,CAAL,EAAiD,wBAAjD;AAEA,QAAMW,UAAU,GAAGR,WAAW,CAACC,IAAZ,CAAiB,wCAAjB,CAAnB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOM,UAAU,CAACL,EAAX,CAAc,CAAd,EAAiBC,MAAjB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAKG,UAAU,CAACL,EAAX,CAAc,CAAd,EAAiBN,KAAjB,GAAyB,YAAzB,CAAL,EAA6C,mBAA7C;AAEAF,EAAAA,CAAC,CAACe,IAAF;AACD,CAnBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport SkillCard from '..';\nimport customSkillFixture from './fixtures/custom-skill';\nimport noAriaLabelsFixtures from './fixtures/no-aria-labels';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('onClick should be reachable, should match given aria-label', t => {\n let buttonWasClicked = false;\n customSkillFixture.props = {\n ...customSkillFixture.props,\n onClick: () => {\n buttonWasClicked = true;\n }\n };\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"]');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');\n buttonLink.at(0).simulate('click', {});\n t.true(buttonWasClicked);\n\n t.pass();\n});\n\ntest('onHover should change button text color && backgroundColor', t => {\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const expectedStyleNoHover = {\n backgroundColor: 'rgba(0, 176, 255, 0.07)',\n color: '#00B0FF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n const expectedStyleOnHover = {\n backgroundColor: '#00B0FF',\n color: '#FFFFFF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n let cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n let buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n let buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n // hover\n buttonWrapper.simulate('mouseover');\n\n wrapper.update();\n cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover);\n\n // leave hover\n buttonWrapper.simulate('mouseleave');\n\n wrapper.update();\n\n buttonLink = wrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n t.pass();\n});\n\ntest('should use default aria-labels if aria-label props are not provided', t => {\n const wrapper = mount(<SkillCard {...noAriaLabelsFixtures.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');\n\n t.pass();\n});\n"],"file":"skill-card.js"}
|
package/es/variables/colors.css
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
@value cm_red_video: #E8335E;
|
|
63
63
|
@value cm_violet_podcast: #432ba7;
|
|
64
64
|
@value cm_warning_50: rgba(255, 192, 67, 0.13);
|
|
65
|
+
@value box_shadow_medium_dark: rgba(0, 0, 0, 0.15);
|
|
65
66
|
@value box_shadow_light_dark: rgba(0, 0, 0, 0.12);
|
|
66
67
|
@value box_shadow_medium_dark: rgba(0, 0, 0, 0.2);
|
|
67
68
|
@value box_shadow_orange_700: rgba(255, 84, 31, 0.15);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
var _cssColorFunction = require("css-color-function");
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
13
|
+
|
|
14
|
+
var _getOr = _interopRequireDefault(require("lodash/fp/getOr"));
|
|
15
|
+
|
|
16
|
+
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
17
|
+
|
|
18
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
const getGradientBackground = baseColor => {
|
|
27
|
+
const gradients = [(0, _cssColorFunction.convert)(`color(${baseColor} lightness(30%))`), (0, _cssColorFunction.convert)(`color(${baseColor} lightness(47%))`), (0, _cssColorFunction.convert)(`color(${baseColor} lightness(55%))`)];
|
|
28
|
+
return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${(0, _cssColorFunction.convert)(`color(${gradients[0]} a(0))`)} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${(0, _cssColorFunction.convert)(`color(${gradients[1]} a(0))`)} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${(0, _cssColorFunction.convert)(`color(${gradients[2]} a(0))`)} 100%), ${baseColor}`;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const SkillCard = (props, context) => {
|
|
32
|
+
const {
|
|
33
|
+
'aria-label': ariaLabel,
|
|
34
|
+
skillTitle,
|
|
35
|
+
skillAriaLabel,
|
|
36
|
+
buttonLabel,
|
|
37
|
+
buttonAriaLabel,
|
|
38
|
+
reviseLabel,
|
|
39
|
+
reviseAriaLabel,
|
|
40
|
+
onClick,
|
|
41
|
+
isCustom = false
|
|
42
|
+
} = props;
|
|
43
|
+
const {
|
|
44
|
+
skin
|
|
45
|
+
} = context;
|
|
46
|
+
const [hovered, setHovered] = (0, _react.useState)(false);
|
|
47
|
+
const primarySkinColor = (0, _getOr.default)('#00B0FF', 'common.primary', skin);
|
|
48
|
+
const handleMouseOver = (0, _react.useCallback)(() => setHovered(true), [setHovered]);
|
|
49
|
+
const handleMouseLeave = (0, _react.useCallback)(() => setHovered(false), [setHovered]);
|
|
50
|
+
const buttonProps = {
|
|
51
|
+
customStyle: {
|
|
52
|
+
backgroundColor: hovered ? primarySkinColor : (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
|
|
53
|
+
color: hovered ? '#FFFFFF' : primarySkinColor,
|
|
54
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
55
|
+
},
|
|
56
|
+
onClick,
|
|
57
|
+
'aria-label': buttonAriaLabel,
|
|
58
|
+
label: buttonLabel,
|
|
59
|
+
'data-name': 'skill-card-button'
|
|
60
|
+
};
|
|
61
|
+
const titleBackgroundColor = (0, _react.useMemo)(() => isCustom ? '#128C72' : primarySkinColor, [isCustom, primarySkinColor]);
|
|
62
|
+
const titleBackground = (0, _react.useMemo)(() => getGradientBackground(titleBackgroundColor), [titleBackgroundColor]);
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
+
className: _style.default.skillCardWrapper,
|
|
65
|
+
"data-name": "skill-card-wrapper",
|
|
66
|
+
"aria-label": ariaLabel
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
68
|
+
"data-name": "skill-title",
|
|
69
|
+
className: _style.default.skillTitle,
|
|
70
|
+
"aria-label": skillAriaLabel || skillTitle,
|
|
71
|
+
style: {
|
|
72
|
+
background: titleBackground
|
|
73
|
+
}
|
|
74
|
+
}, skillTitle), /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
+
"data-name": "card-content-wrapper"
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
+
className: _style.default.questionReviseText,
|
|
78
|
+
"data-name": "questions-to-revise-label",
|
|
79
|
+
"aria-label": reviseAriaLabel || reviseLabel
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidInterfaceFeedbackInterfaceQuestionMark, {
|
|
81
|
+
className: _style.default.questionReviseIcon,
|
|
82
|
+
width: 16,
|
|
83
|
+
height: 16
|
|
84
|
+
}), reviseLabel), /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
+
className: _style.default.buttonWrapper,
|
|
86
|
+
onMouseOver: handleMouseOver,
|
|
87
|
+
onMouseLeave: handleMouseLeave,
|
|
88
|
+
"data-name": "button-wrapper"
|
|
89
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonProps))));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
SkillCard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
93
|
+
'aria-label': _propTypes.default.string.isRequired,
|
|
94
|
+
skillTitle: _propTypes.default.string,
|
|
95
|
+
skillAriaLabel: _propTypes.default.string,
|
|
96
|
+
buttonLabel: _propTypes.default.string,
|
|
97
|
+
buttonAriaLabel: _propTypes.default.string,
|
|
98
|
+
reviseLabel: _propTypes.default.string,
|
|
99
|
+
reviseAriaLabel: _propTypes.default.string,
|
|
100
|
+
isCustom: _propTypes.default.bool,
|
|
101
|
+
onClick: _propTypes.default.func
|
|
102
|
+
} : {};
|
|
103
|
+
var _default = SkillCard;
|
|
104
|
+
exports.default = _default;
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/skill-card/index.js"],"names":["getGradientBackground","baseColor","gradients","SkillCard","props","context","ariaLabel","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","onClick","isCustom","skin","hovered","setHovered","primarySkinColor","handleMouseOver","handleMouseLeave","buttonProps","customStyle","backgroundColor","color","transition","label","titleBackgroundColor","titleBackground","style","skillCardWrapper","background","questionReviseText","questionReviseIcon","buttonWrapper","propTypes","PropTypes","string","isRequired","bool","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,qBAAqB,GAAGC,SAAS,IAAI;AACzC,QAAMC,SAAS,GAAG,CAChB,+BAAS,SAAQD,SAAU,kBAA3B,CADgB,EAEhB,+BAAS,SAAQA,SAAU,kBAA3B,CAFgB,EAGhB,+BAAS,SAAQA,SAAU,kBAA3B,CAHgB,CAAlB;AAMA,SAAQ,+CAA8CC,SAAS,CAAC,CAAD,CAAI,QAAO,+BACvE,SAAQA,SAAS,CAAC,CAAD,CAAI,QADkD,CAExE,4DAA2DA,SAAS,CAAC,CAAD,CAAI,QAAO,+BAC9E,SAAQA,SAAS,CAAC,CAAD,CAAI,QADyD,CAE/E,2DAA0DA,SAAS,CAAC,CAAD,CAAI,QAAO,+BAC7E,SAA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UG,IARA;AASpB1B,EAAAA,OAAO,EAAEuB,mBAAUI;AATC,CAAtB;eAYerC,S","sourcesContent":["import React, {useCallback, useState, useMemo} from 'react';\nimport {convert} from 'css-color-function';\nimport PropTypes from 'prop-types';\nimport {NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon} from '@coorpacademy/nova-icons';\nimport getOr from 'lodash/fp/getOr';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst getGradientBackground = baseColor => {\n const gradients = [\n convert(`color(${baseColor} lightness(30%))`),\n convert(`color(${baseColor} lightness(47%))`),\n convert(`color(${baseColor} lightness(55%))`)\n ];\n\n return `radial-gradient(62.12% 56.45% at 0% 77.29%, ${gradients[0]} 0%, ${convert(\n `color(${gradients[0]} a(0))`\n )} 100%), radial-gradient(113.85% 103.46% at 93.27% 7.88%, ${gradients[1]} 0%, ${convert(\n `color(${gradients[1]} a(0))`\n )} 100%), radial-gradient(49.66% 49.63% at 78.65% 86.26%, ${gradients[2]} 0%, ${convert(\n `color(${gradients[2]} a(0))`\n )} 100%), ${baseColor}`;\n};\n\nconst SkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n buttonLabel,\n buttonAriaLabel,\n reviseLabel,\n reviseAriaLabel,\n onClick,\n isCustom = false\n } = props;\n const {skin} = context;\n const [hovered, setHovered] = useState(false);\n const primarySkinColor = getOr('#00B0FF', 'common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const buttonProps = {\n customStyle: {\n backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),\n color: hovered ? '#FFFFFF' : primarySkinColor,\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n onClick,\n 'aria-label': buttonAriaLabel,\n label: buttonLabel,\n 'data-name': 'skill-card-button'\n };\n\n const titleBackgroundColor = useMemo(() => (isCustom ? '#128C72' : primarySkinColor), [\n isCustom,\n primarySkinColor\n ]);\n\n const titleBackground = useMemo(() => getGradientBackground(titleBackgroundColor), [\n titleBackgroundColor\n ]);\n\n return (\n <div className={style.skillCardWrapper} data-name=\"skill-card-wrapper\" aria-label={ariaLabel}>\n <div\n data-name=\"skill-title\"\n className={style.skillTitle}\n aria-label={skillAriaLabel || skillTitle}\n style={{\n background: titleBackground\n }}\n >\n {skillTitle}\n </div>\n <div data-name=\"card-content-wrapper\">\n <div\n className={style.questionReviseText}\n data-name=\"questions-to-revise-label\"\n aria-label={reviseAriaLabel || reviseLabel}\n >\n <QuestionIcon className={style.questionReviseIcon} width={16} height={16} />\n {reviseLabel}\n </div>\n <div\n className={style.buttonWrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n data-name=\"button-wrapper\"\n >\n <ButtonLink {...buttonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nSkillCard.propTypes = {\n 'aria-label': PropTypes.string.isRequired,\n skillTitle: PropTypes.string,\n skillAriaLabel: PropTypes.string,\n buttonLabel: PropTypes.string,\n buttonAriaLabel: PropTypes.string,\n reviseLabel: PropTypes.string,\n reviseAriaLabel: PropTypes.string,\n isCustom: PropTypes.bool,\n onClick: PropTypes.func\n};\n\nexport default SkillCard;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_400 from colors;
|
|
3
|
+
@value white from colors;
|
|
4
|
+
@value box_shadow_light_dark from colors;
|
|
5
|
+
@value box_shadow_medium_dark from colors;
|
|
6
|
+
|
|
7
|
+
.textBase {
|
|
8
|
+
font-family: "Gilroy";
|
|
9
|
+
font-style: normal;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.skillCardWrapper {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
max-width: 353px;
|
|
16
|
+
min-width: 245px;
|
|
17
|
+
height: 242px;
|
|
18
|
+
box-shadow: 0px 4px 16px box_shadow_light_dark;
|
|
19
|
+
transition: box-shadow 0.15s ease-in-out;
|
|
20
|
+
border-radius: 8px 8px 12px 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.skillCardWrapper:hover {
|
|
24
|
+
box-shadow: 0px 4px 48px box_shadow_medium_dark;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.skillTitle {
|
|
28
|
+
composes: textBase;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
font-size: 20px;
|
|
31
|
+
line-height: 28px;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
height: 112px;
|
|
35
|
+
border-radius: 8px 8px 0px 0px;
|
|
36
|
+
color: white;
|
|
37
|
+
padding: 0px 24px;
|
|
38
|
+
user-select: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.questionReviseIcon {
|
|
42
|
+
padding-right : 8px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.questionReviseText {
|
|
46
|
+
composes: textBase;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items : center;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
line-height: 22px;
|
|
52
|
+
color: cm_grey_400;
|
|
53
|
+
padding: 16px 24px 24px;
|
|
54
|
+
user-select: none;
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.buttonWrapper {
|
|
59
|
+
padding: 0px 24px;
|
|
60
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _default2 = require("./default");
|
|
7
|
+
|
|
8
|
+
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); }
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
props: _extends(_extends({}, _default2.defaultProps), {}, {
|
|
12
|
+
skillTitle: 'This is a custom skill',
|
|
13
|
+
isCustom: true
|
|
14
|
+
})
|
|
15
|
+
};
|
|
16
|
+
exports.default = _default;
|
|
17
|
+
//# sourceMappingURL=custom-skill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/custom-skill.js"],"names":["props","defaultProps","skillTitle","isCustom"],"mappings":";;;;;AAAA;;;;eAEe;AACbA,EAAAA,KAAK,wBAAMC,sBAAN;AAAoBC,IAAAA,UAAU,EAAE,wBAAhC;AAA0DC,IAAAA,QAAQ,EAAE;AAApE;AADQ,C","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'This is a custom skill', isCustom: true}\n};\n"],"file":"custom-skill.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.defaultProps = void 0;
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
'aria-label': 'Skill Card',
|
|
7
|
+
skillTitle: 'Critical thinking and analysis',
|
|
8
|
+
skillAriaLabel: 'Skill aria label',
|
|
9
|
+
buttonLabel: 'Revise this skill',
|
|
10
|
+
buttonAriaLabel: 'Button aria label',
|
|
11
|
+
reviseLabel: '75 questions to revise',
|
|
12
|
+
reviseAriaLabel: 'revise aria label',
|
|
13
|
+
isCustom: undefined,
|
|
14
|
+
onClick: () => console.log('revise')
|
|
15
|
+
};
|
|
16
|
+
exports.defaultProps = defaultProps;
|
|
17
|
+
var _default = {
|
|
18
|
+
props: defaultProps
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/default.js"],"names":["defaultProps","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","isCustom","undefined","onClick","console","log","props"],"mappings":";;;;AAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,cAAc,EAAE,kBAHU;AAI1BC,EAAAA,WAAW,EAAE,mBAJa;AAK1BC,EAAAA,eAAe,EAAE,mBALS;AAM1BC,EAAAA,WAAW,EAAE,wBANa;AAO1BC,EAAAA,eAAe,EAAE,mBAPS;AAQ1BC,EAAAA,QAAQ,EAAEC,SARgB;AAS1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AATW,CAArB;;eAYQ;AACbC,EAAAA,KAAK,EAAEZ;AADM,C","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n skillAriaLabel: 'Skill aria label',\n buttonLabel: 'Revise this skill',\n buttonAriaLabel: 'Button aria label',\n reviseLabel: '75 questions to revise',\n reviseAriaLabel: 'revise aria label',\n isCustom: undefined,\n onClick: () => console.log('revise')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.defaultProps = void 0;
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
'aria-label': 'Skill Card',
|
|
7
|
+
skillTitle: 'Critical thinking and analysis',
|
|
8
|
+
buttonLabel: 'Revise this skill',
|
|
9
|
+
reviseLabel: '75 questions to revise',
|
|
10
|
+
isCustom: undefined,
|
|
11
|
+
onClick: () => console.log('revise - no aria')
|
|
12
|
+
};
|
|
13
|
+
exports.defaultProps = defaultProps;
|
|
14
|
+
var _default = {
|
|
15
|
+
props: defaultProps
|
|
16
|
+
};
|
|
17
|
+
exports.default = _default;
|
|
18
|
+
//# sourceMappingURL=no-aria-labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/no-aria-labels.js"],"names":["defaultProps","skillTitle","buttonLabel","reviseLabel","isCustom","undefined","onClick","console","log","props"],"mappings":";;;;AAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,WAAW,EAAE,mBAHa;AAI1BC,EAAAA,WAAW,EAAE,wBAJa;AAK1BC,EAAAA,QAAQ,EAAEC,SALgB;AAM1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AANW,CAArB;;eASQ;AACbC,EAAAA,KAAK,EAAET;AADM,C","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n buttonLabel: 'Revise this skill',\n reviseLabel: '75 questions to revise',\n isCustom: undefined,\n onClick: () => console.log('revise - no aria')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"no-aria-labels.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _default2 = require("./default");
|
|
7
|
+
|
|
8
|
+
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); }
|
|
9
|
+
|
|
10
|
+
var _default = {
|
|
11
|
+
props: _extends(_extends({}, _default2.defaultProps), {}, {
|
|
12
|
+
skillTitle: 'Agility',
|
|
13
|
+
isCustom: false
|
|
14
|
+
})
|
|
15
|
+
};
|
|
16
|
+
exports.default = _default;
|
|
17
|
+
//# sourceMappingURL=short-skill-title.js.map
|