@coorpacademy/components 10.0.45-alpha.0 → 10.0.47
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/difficulty-level/index.js +2 -1
- package/es/atom/difficulty-level/index.js.map +1 -1
- package/es/atom/input-checkbox/test/fixtures.js +0 -2
- package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
- package/es/atom/title/test/fixtures.js +2 -6
- package/es/atom/title/test/fixtures.js.map +1 -1
- package/es/molecule/brand-card/index.js +1 -1
- package/es/molecule/brand-card/index.js.map +1 -1
- package/es/molecule/card/index.js +1 -1
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/notification.js +1 -1
- package/es/molecule/card/notification.js.map +1 -1
- package/es/molecule/drag-and-drop/index.js +1 -1
- package/es/molecule/drag-and-drop/index.js.map +1 -1
- package/es/molecule/drag-and-drop/upload-report.js +2 -1
- package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/es/molecule/external-content-viewer/index.js +4 -3
- package/es/molecule/external-content-viewer/index.js.map +1 -1
- package/es/molecule/quick-access-card/index.js +14 -11
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/quick-access-card/style.css +4 -0
- package/es/molecule/quick-access-card/test/fixtures/analytics.js +1 -1
- package/es/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -1
- package/es/molecule/quick-access-card/test/fixtures/default.js +2 -2
- package/es/molecule/quick-access-card/test/fixtures/default.js.map +1 -1
- package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js +1 -1
- package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -1
- package/es/molecule/quick-access-card/test/fixtures/massive-battle.js +1 -1
- package/es/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -1
- package/es/molecule/quick-access-card/test/fixtures/upload-users.js +1 -1
- package/es/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -1
- package/es/organism/brand-dashboard/test/fixtures.js +10 -2
- package/es/organism/brand-dashboard/test/fixtures.js.map +1 -1
- package/es/organism/mooc-footer/style.css +1 -2
- package/es/organism/mooc-header/test/fixtures.js +0 -6
- package/es/organism/mooc-header/test/fixtures.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures.js +0 -2
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/es/template/common/discipline/test/fixtures.js +0 -6
- package/es/template/common/discipline/test/fixtures.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures.js +0 -2
- package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
- package/lib/atom/difficulty-level/index.js +3 -1
- package/lib/atom/difficulty-level/index.js.map +1 -1
- package/lib/atom/input-checkbox/test/fixtures.js +0 -3
- package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
- package/lib/atom/title/test/fixtures.js +2 -8
- package/lib/atom/title/test/fixtures.js.map +1 -1
- package/lib/molecule/brand-card/index.js +1 -1
- package/lib/molecule/brand-card/index.js.map +1 -1
- package/lib/molecule/card/index.js +1 -1
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/notification.js +1 -1
- package/lib/molecule/card/notification.js.map +1 -1
- package/lib/molecule/drag-and-drop/index.js +1 -1
- package/lib/molecule/drag-and-drop/index.js.map +1 -1
- package/lib/molecule/drag-and-drop/upload-report.js +3 -1
- package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
- package/lib/molecule/external-content-viewer/index.js +6 -4
- package/lib/molecule/external-content-viewer/index.js.map +1 -1
- package/lib/molecule/quick-access-card/index.js +15 -15
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-card/style.css +4 -0
- package/lib/molecule/quick-access-card/test/fixtures/analytics.js +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/default.js +2 -2
- package/lib/molecule/quick-access-card/test/fixtures/default.js.map +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/massive-battle.js +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/upload-users.js +1 -1
- package/lib/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -1
- package/lib/organism/brand-dashboard/test/fixtures.js +14 -2
- package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -1
- package/lib/organism/mooc-footer/style.css +1 -2
- package/lib/organism/mooc-header/test/fixtures.js +0 -9
- package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures.js +0 -9
- package/lib/template/common/discipline/test/fixtures.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures.js +0 -3
- package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
- package/package.json +3 -3
- 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/popin/test/fixtures.js +0 -21
- package/es/molecule/popin/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/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/brand-analytics/test/fixtures.js +0 -23
- package/es/organism/brand-analytics/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/popin/test/fixtures.js +0 -34
- package/lib/molecule/popin/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/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/brand-analytics/test/fixtures.js +0 -37
- package/lib/organism/brand-analytics/test/fixtures.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/default.js"],"names":["props","title","description","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/default.js"],"names":["props","title","description","openInNewTab","feature","href"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,eADF;AAELC,IAAAA,WAAW,EAAE,qCAFR;AAGLC,IAAAA,YAAY,EAAE,IAHT;AAILC,IAAAA,OAAO,EAAE,SAJJ;AAKLC,IAAAA,IAAI,EAAE;AALD;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Create course',\n description: 'Access to cockpit to create courses',\n openInNewTab: true,\n feature: 'cockpit',\n href: 'https://cockpit.coorpacademy.com'\n }\n};\n"],"file":"default.js"}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
title: 'Edit look & feel',
|
|
4
4
|
description: 'Edit logos and colors of your platform',
|
|
5
5
|
feature: 'look_and_feel',
|
|
6
|
-
|
|
6
|
+
href: 'https://setup.coorpacademy.com'
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=look-and-feel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/look-and-feel.js"],"names":["props","title","description","feature","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/look-and-feel.js"],"names":["props","title","description","feature","href"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,kBADF;AAELC,IAAAA,WAAW,EAAE,wCAFR;AAGLC,IAAAA,OAAO,EAAE,eAHJ;AAILC,IAAAA,IAAI,EAAE;AAJD;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Edit look & feel',\n description: 'Edit logos and colors of your platform',\n feature: 'look_and_feel',\n href: 'https://setup.coorpacademy.com'\n }\n};\n"],"file":"look-and-feel.js"}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
title: 'Massive battle',
|
|
4
4
|
description: 'To engage your users send a "Massive Battle" to several of them',
|
|
5
5
|
feature: 'massive_battle',
|
|
6
|
-
|
|
6
|
+
href: 'https://setup.coorpacademy.com'
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=massive-battle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/massive-battle.js"],"names":["props","title","description","feature","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/massive-battle.js"],"names":["props","title","description","feature","href"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,gBADF;AAELC,IAAAA,WAAW,EAAE,iEAFR;AAGLC,IAAAA,OAAO,EAAE,gBAHJ;AAILC,IAAAA,IAAI,EAAE;AAJD;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Massive battle',\n description: 'To engage your users send a \"Massive Battle\" to several of them',\n feature: 'massive_battle',\n href: 'https://setup.coorpacademy.com'\n }\n};\n"],"file":"massive-battle.js"}
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
title: 'Upload Users',
|
|
4
4
|
description: 'Upload new users on your learning platform',
|
|
5
5
|
feature: 'upload_users',
|
|
6
|
-
|
|
6
|
+
href: 'https://setup.coorpacademy.com'
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=upload-users.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/upload-users.js"],"names":["props","title","description","feature","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-card/test/fixtures/upload-users.js"],"names":["props","title","description","feature","href"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,cADF;AAELC,IAAAA,WAAW,EAAE,4CAFR;AAGLC,IAAAA,OAAO,EAAE,cAHJ;AAILC,IAAAA,IAAI,EAAE;AAJD;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Upload Users',\n description: 'Upload new users on your learning platform',\n feature: 'upload_users',\n href: 'https://setup.coorpacademy.com'\n }\n};\n"],"file":"upload-users.js"}
|
|
@@ -3,7 +3,11 @@ import forEach from 'lodash/forEach';
|
|
|
3
3
|
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
4
|
import OrganismBrandDashboard from '..';
|
|
5
5
|
import fixtureDefault from './fixtures/default';
|
|
6
|
-
import
|
|
6
|
+
import fixtureError from './fixtures/error';
|
|
7
|
+
import fixtureLoading from './fixtures/loading';
|
|
8
|
+
import fixtureSelectedError from './fixtures/selected-error';
|
|
9
|
+
import fixtureSelectedLoading from './fixtures/selected-loading';
|
|
10
|
+
import fixtureSelected from './fixtures/selected';
|
|
7
11
|
test('Organism › OrganismBrandDashboard > should have valid propTypes', t => {
|
|
8
12
|
t.pass();
|
|
9
13
|
forEach(OrganismBrandDashboard.propTypes, (value, key) => {
|
|
@@ -11,5 +15,9 @@ test('Organism › OrganismBrandDashboard > should have valid propTypes', t => {
|
|
|
11
15
|
});
|
|
12
16
|
});
|
|
13
17
|
test('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);
|
|
14
|
-
test('Organism › OrganismBrandDashboard ›
|
|
18
|
+
test('Organism › OrganismBrandDashboard › Error › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureError);
|
|
19
|
+
test('Organism › OrganismBrandDashboard › Loading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureLoading);
|
|
20
|
+
test('Organism › OrganismBrandDashboard › SelectedError › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedError);
|
|
21
|
+
test('Organism › OrganismBrandDashboard › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedLoading);
|
|
22
|
+
test('Organism › OrganismBrandDashboard › Selected › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelected);
|
|
15
23
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organism/brand-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandDashboard","fixtureDefault","
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/brand-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandDashboard","fixtureDefault","fixtureError","fixtureLoading","fixtureSelectedError","fixtureSelectedLoading","fixtureSelected","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AAEAT,IAAI,CAAC,iEAAD,EAAoEU,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAV,EAAAA,OAAO,CAACE,sBAAsB,CAACS,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAd,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,sBAAzF,EAAiHE,YAAjH,CAAJ;AACAL,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHG,cAAnH,CAAJ;AACAN,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,sBAAjG,EAAyHI,oBAAzH,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,sBAAnG,EAA2HK,sBAA3H,CAAJ;AACAR,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,sBAA5F,EAAoHM,eAApH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandDashboard from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureError from './fixtures/error';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureSelectedError from './fixtures/selected-error';\nimport fixtureSelectedLoading from './fixtures/selected-loading';\nimport fixtureSelected from './fixtures/selected';\n\ntest('Organism › OrganismBrandDashboard > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandDashboard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandDashboard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);\ntest('Organism › OrganismBrandDashboard › Error › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureError);\ntest('Organism › OrganismBrandDashboard › Loading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureLoading);\ntest('Organism › OrganismBrandDashboard › SelectedError › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedError);\ntest('Organism › OrganismBrandDashboard › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelectedLoading);\ntest('Organism › OrganismBrandDashboard › Selected › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureSelected);\n"],"file":"fixtures.js"}
|
|
@@ -6,9 +6,6 @@ import fixtureDefault from './fixtures/default';
|
|
|
6
6
|
import fixtureLinkOnly from './fixtures/link-only';
|
|
7
7
|
import fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';
|
|
8
8
|
import fixtureLogged from './fixtures/logged';
|
|
9
|
-
import fixtureMobileSmallLogoFormat from './fixtures/mobile-small-logo-format';
|
|
10
|
-
import fixtureMobileWideLogoFormat from './fixtures/mobile-wide-logo-format';
|
|
11
|
-
import fixtureOnHeaderActionHandlers from './fixtures/on-header-action-handlers';
|
|
12
9
|
import fixtureTeamsFrench from './fixtures/teams-french';
|
|
13
10
|
import fixtureTeams from './fixtures/teams';
|
|
14
11
|
import fixtureUserChangePassword from './fixtures/user-change-password';
|
|
@@ -22,9 +19,6 @@ test('Organism › OrganismMoocHeader › Default › should be rendered', rende
|
|
|
22
19
|
test('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);
|
|
23
20
|
test('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);
|
|
24
21
|
test('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);
|
|
25
|
-
test('Organism › OrganismMoocHeader › MobileSmallLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileSmallLogoFormat);
|
|
26
|
-
test('Organism › OrganismMoocHeader › MobileWideLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileWideLogoFormat);
|
|
27
|
-
test('Organism › OrganismMoocHeader › OnHeaderActionHandlers › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureOnHeaderActionHandlers);
|
|
28
22
|
test('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);
|
|
29
23
|
test('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);
|
|
30
24
|
test('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","fixtureTeamsFrench","fixtureTeams","fixtureUserChangePassword","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,kBAAP,MAA+B,IAA/B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AAEAV,IAAI,CAAC,6DAAD,EAAgEW,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAX,EAAAA,OAAO,CAACE,kBAAkB,CAACU,SAApB,EAA+B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAf,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,kBAAvF,EAA2GC,cAA3G,CAAJ;AACAJ,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,kBAAxF,EAA4GE,eAA5G,CAAJ;AACAL,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,kBAA7G,EAAiIG,oCAAjI,CAAJ;AACAN,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,kBAAtF,EAA0GI,aAA1G,CAAJ;AACAP,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,kBAA3F,EAA+GK,kBAA/G,CAAJ;AACAR,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,kBAArF,EAAyGM,YAAzG,CAAJ;AACAT,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,kBAAlG,EAAsHO,yBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismMoocHeader from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLinkOnly from './fixtures/link-only';\nimport fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';\nimport fixtureLogged from './fixtures/logged';\nimport fixtureTeamsFrench from './fixtures/teams-french';\nimport fixtureTeams from './fixtures/teams';\nimport fixtureUserChangePassword from './fixtures/user-change-password';\n\ntest('Organism › OrganismMoocHeader > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismMoocHeader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismMoocHeader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismMoocHeader › Default › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureDefault);\ntest('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);\ntest('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);\ntest('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);\ntest('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);\ntest('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);\ntest('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);\n"],"file":"fixtures.js"}
|
|
@@ -24,7 +24,6 @@ import fixtureLookandfeel from './fixtures/lookandfeel';
|
|
|
24
24
|
import fixtureManageusersEdit from './fixtures/manageusers-edit';
|
|
25
25
|
import fixtureManageusersList from './fixtures/manageusers-list';
|
|
26
26
|
import fixtureManageusers from './fixtures/manageusers';
|
|
27
|
-
import fixtureQuickAccess from './fixtures/quick-access';
|
|
28
27
|
import fixtureSsoActivate from './fixtures/sso-activate';
|
|
29
28
|
import fixtureSso from './fixtures/sso';
|
|
30
29
|
import fixtureUploadusersLoading from './fixtures/uploadusers-loading';
|
|
@@ -58,7 +57,6 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › s
|
|
|
58
57
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);
|
|
59
58
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);
|
|
60
59
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);
|
|
61
|
-
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);
|
|
62
60
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);
|
|
63
61
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);
|
|
64
62
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureManageusers","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,uBAAP,MAAoC,8BAApC;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,yBAAP,MAAsC,gCAAtC;AACA,OAAOC,yBAAP,MAAsC,gCAAtC;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,yBAAP,MAAsC,gCAAtC;AACA,OAAOC,4BAAP,MAAyC,mCAAzC;A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E,oBAAjG,EAAuHC,6BAAvH,EAAsJ0B,yBAAtJ,CAAJ;AACA7B,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ2B,4BAAzJ,CAAJ;AACA9B,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I4B,kBAA/I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\n"],"file":"fixtures.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureManageusers","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C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uBAApJ,CAAJ;AACAlB,IAAI,CAAC,+FAAD,EAAkGE,oBAAlG,EAAwHC,6BAAxH,EAAuJgB,0BAAvJ,CAAJ;AACAnB,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJiB,yBAAtJ,CAAJ;AACApB,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJkB,yBAAtJ,CAAJ;AACArB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+ImB,kBAA/I,CAAJ;AACAtB,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,6BAApH,EAAmJoB,sBAAnJ,CAAJ;AACAvB,IAAI,CAAC,2FAAD,EAA8FE,oBAA9F,EAAoHC,6BAApH,EAAmJqB,sBAAnJ,CAAJ;AACAxB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IsB,kBAA/I,CAAJ;AACAzB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IuB,kBAA/I,CAAJ;AACA1B,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,6BAAxG,EAAuIwB,UAAvI,CAAJ;AACA3B,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJyB,yBAAtJ,CAAJ;AACA5B,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ0B,4BAAzJ,CAAJ;AACA7B,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I2B,kBAA/I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\n"],"file":"fixtures.js"}
|
|
@@ -5,9 +5,6 @@ import TemplateCommonDiscipline from '..';
|
|
|
5
5
|
import fixtureAddToMyList from './fixtures/add-to-my-list';
|
|
6
6
|
import fixtureArabic from './fixtures/arabic';
|
|
7
7
|
import fixtureDefault from './fixtures/default';
|
|
8
|
-
import fixtureDisableAddToMyList from './fixtures/disable-add-to-my-list';
|
|
9
|
-
import fixtureDisableShareAndAddToMyList from './fixtures/disable-share-and-add-to-my-list';
|
|
10
|
-
import fixtureDisableShare from './fixtures/disable-share';
|
|
11
8
|
import fixtureDoubleAuthor from './fixtures/double-author';
|
|
12
9
|
import fixtureEmpty from './fixtures/empty';
|
|
13
10
|
import fixtureExternalCourseWithVideo from './fixtures/external-course-with-video';
|
|
@@ -29,9 +26,6 @@ test('TemplateCommon › TemplateCommonDiscipline > should have valid propTypes'
|
|
|
29
26
|
test('TemplateCommon › TemplateCommonDiscipline › AddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureAddToMyList);
|
|
30
27
|
test('TemplateCommon › TemplateCommonDiscipline › Arabic › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureArabic);
|
|
31
28
|
test('TemplateCommon › TemplateCommonDiscipline › Default › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDefault);
|
|
32
|
-
test('TemplateCommon › TemplateCommonDiscipline › DisableAddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableAddToMyList);
|
|
33
|
-
test('TemplateCommon › TemplateCommonDiscipline › DisableShareAndAddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableShareAndAddToMyList);
|
|
34
|
-
test('TemplateCommon › TemplateCommonDiscipline › DisableShare › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableShare);
|
|
35
29
|
test('TemplateCommon › TemplateCommonDiscipline › DoubleAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDoubleAuthor);
|
|
36
30
|
test('TemplateCommon › TemplateCommonDiscipline › Empty › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureEmpty);
|
|
37
31
|
test('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithVideo);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/template/common/discipline/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateCommonDiscipline","fixtureAddToMyList","fixtureArabic","fixtureDefault","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/common/discipline/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateCommonDiscipline","fixtureAddToMyList","fixtureArabic","fixtureDefault","fixtureDoubleAuthor","fixtureEmpty","fixtureExternalCourseWithVideo","fixtureExternalCourseWithoutImage","fixtureExternalCourse","fixtureJwplayer","fixtureLoading","fixtureNoAuthor","fixtureNoVideo","fixtureShare","fixtureVimeo","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,wBAAP,MAAqC,IAArC;AACA,OAAOC,kBAAP,MAA+B,2BAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,8BAAP,MAA2C,uCAA3C;AACA,OAAOC,iCAAP,MAA8C,0CAA9C;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,cAAP,MAA2B,qBAA3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Ab,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,wBAApG,EAA8HW,eAA9H,CAAJ;AACAd,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,wBAAnG,EAA6HY,cAA7H,CAAJ;AACAf,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,wBAAjG,EAA2Ha,YAA3H,CAAJ;AACAhB,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,wBAAjG,EAA2Hc,YAA3H,CAAJ;AACAjB,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,wBAAvG,EAAiIe,kBAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateCommonDiscipline from '..';\nimport fixtureAddToMyList from './fixtures/add-to-my-list';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDoubleAuthor from './fixtures/double-author';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalCourseWithVideo from './fixtures/external-course-with-video';\nimport fixtureExternalCourseWithoutImage from './fixtures/external-course-without-image';\nimport fixtureExternalCourse from './fixtures/external-course';\nimport fixtureJwplayer from './fixtures/jwplayer';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureNoAuthor from './fixtures/no-author';\nimport fixtureNoVideo from './fixtures/no-video';\nimport fixtureShare from './fixtures/share';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('TemplateCommon › TemplateCommonDiscipline > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateCommonDiscipline.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateCommon.TemplateCommonDiscipline.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateCommon › TemplateCommonDiscipline › AddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureAddToMyList);\ntest('TemplateCommon › TemplateCommonDiscipline › Arabic › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureArabic);\ntest('TemplateCommon › TemplateCommonDiscipline › Default › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDefault);\ntest('TemplateCommon › TemplateCommonDiscipline › DoubleAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDoubleAuthor);\ntest('TemplateCommon › TemplateCommonDiscipline › Empty › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureEmpty);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithVideo);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithoutImage › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithoutImage);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourse › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourse);\ntest('TemplateCommon › TemplateCommonDiscipline › Jwplayer › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureJwplayer);\ntest('TemplateCommon › TemplateCommonDiscipline › Loading › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureLoading);\ntest('TemplateCommon › TemplateCommonDiscipline › NoAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoAuthor);\ntest('TemplateCommon › TemplateCommonDiscipline › NoVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoVideo);\ntest('TemplateCommon › TemplateCommonDiscipline › Share › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureShare);\ntest('TemplateCommon › TemplateCommonDiscipline › Vimeo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureVimeo);\ntest('TemplateCommon › TemplateCommonDiscipline › WithOnclick › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureWithOnclick);\n"],"file":"fixtures.js"}
|
|
@@ -4,7 +4,6 @@ import renderComponentMacro from '../../../test/helpers/render-component';
|
|
|
4
4
|
import TemplateTeamsDashboard from '..';
|
|
5
5
|
import fixtureDefault from './fixtures/default';
|
|
6
6
|
import fixtureIsLoading from './fixtures/is-loading';
|
|
7
|
-
import fixtureMobile from './fixtures/mobile';
|
|
8
7
|
test('Template › TemplateTeamsDashboard > should have valid propTypes', t => {
|
|
9
8
|
t.pass();
|
|
10
9
|
forEach(TemplateTeamsDashboard.propTypes, (value, key) => {
|
|
@@ -13,5 +12,4 @@ test('Template › TemplateTeamsDashboard > should have valid propTypes', t => {
|
|
|
13
12
|
});
|
|
14
13
|
test('Template › TemplateTeamsDashboard › Default › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureDefault);
|
|
15
14
|
test('Template › TemplateTeamsDashboard › IsLoading › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureIsLoading);
|
|
16
|
-
test('Template › TemplateTeamsDashboard › Mobile › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureMobile);
|
|
17
15
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/template/teams-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateTeamsDashboard","fixtureDefault","fixtureIsLoading","
|
|
1
|
+
{"version":3,"sources":["../../../../src/template/teams-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateTeamsDashboard","fixtureDefault","fixtureIsLoading","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAL,IAAI,CAAC,iEAAD,EAAoEM,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,sBAAsB,CAACK,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,sBAA7F,EAAqHE,gBAArH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport TemplateTeamsDashboard from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureIsLoading from './fixtures/is-loading';\n\ntest('Template › TemplateTeamsDashboard > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateTeamsDashboard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Template.TemplateTeamsDashboard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Template › TemplateTeamsDashboard › Default › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureDefault);\ntest('Template › TemplateTeamsDashboard › IsLoading › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureIsLoading);\n"],"file":"fixtures.js"}
|
|
@@ -9,6 +9,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
|
|
12
|
+
var _includes = _interopRequireDefault(require("lodash/fp/includes"));
|
|
13
|
+
|
|
12
14
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
13
15
|
|
|
14
16
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
@@ -56,7 +58,7 @@ const DifficultyLevel = ({
|
|
|
56
58
|
className: _style.default.inlineContainer
|
|
57
59
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
58
60
|
className: (0, _classnames.default)({
|
|
59
|
-
[_style.default.unknownContainer]: ![1, 2, 3]
|
|
61
|
+
[_style.default.unknownContainer]: !(0, _includes.default)(level, [1, 2, 3]),
|
|
60
62
|
[_style.default.easyContainer]: level === 1,
|
|
61
63
|
[_style.default.normalContainer]: level === 2,
|
|
62
64
|
[_style.default.hardContainer]: level === 3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/atom/difficulty-level/index.js"],"names":["Icon","level","style","icon","propTypes","PropTypes","oneOf","DifficultyLevel","children","inlineContainer","unknownContainer","
|
|
1
|
+
{"version":3,"sources":["../../../src/atom/difficulty-level/index.js"],"names":["Icon","level","style","icon","propTypes","PropTypes","oneOf","DifficultyLevel","children","inlineContainer","unknownContainer","easyContainer","normalContainer","hardContainer","text","string"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAMA;;;;AAEA,MAAMA,IAAI,GAAG,CAAC;AAACC,EAAAA,KAAK,GAAG;AAAT,CAAD,KAAiB;AAC5B,UAAQA,KAAR;AACE,SAAK,CAAL;AACE,0BAAO,6BAAC,4CAAD;AAAmC,QAAA,SAAS,EAAEC,eAAMC,IAApD;AAA0D,QAAA,KAAK,EAAC;AAAhE,QAAP;;AACF,SAAK,CAAL;AACE,0BAAO,6BAAC,4CAAD;AAAmC,QAAA,SAAS,EAAED,eAAMC,IAApD;AAA0D,QAAA,KAAK,EAAC;AAAhE,QAAP;;AACF,SAAK,CAAL;AACE,0BAAO,6BAAC,4CAAD;AAAmC,QAAA,SAAS,EAAED,eAAMC,IAApD;AAA0D,QAAA,KAAK,EAAC;AAAhE,QAAP;;AACF;AACE,0BAAO,6BAAC,4CAAD;AAAmC,QAAA,SAAS,EAAED,eAAMC,IAApD;AAA0D,QAAA,KAAK,EAAC;AAAhE,QAAP;AARJ;AAUD,CAXD;;AAaAH,IAAI,CAACI,SAAL,2CAAiB;AACfH,EAAAA,KAAK,EAAEI,mBAAUC,KAAV,CAAgB,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,CAAhB;AADQ,CAAjB;;AAIA,MAAMC,eAAe,GAAG,CAAC;AAACN,EAAAA,KAAD;AAAQO,EAAAA;AAAR,CAAD,kBACtB;AAAK,EAAA,SAAS,EAAEN,eAAMO;AAAtB,gBACE;AACE,EAAA,SAAS,EAAE,yBAAW;AACpB,KAACP,eAAMQ,gBAAP,GAA0B,CAAC,uBAAST,KAAT,EAAgB,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,CAAhB,CADP;AAEpB,KAACC,eAAMS,aAAP,GAAuBV,KAAK,KAAK,CAFb;AAGpB,KAACC,eAAMU,eAAP,GAAyBX,KAAK,KAAK,CAHf;AAIpB,KAACC,eAAMW,aAAP,GAAuBZ,KAAK,KAAK;AAJb,GAAX;AADb,gBAQE,6BAAC,IAAD;AAAM,EAAA,KAAK,EAAEA;AAAb,EARF,eASE;AAAM,EAAA,SAAS,EAAEC,eAAMY;AAAvB,GAA8BN,QAA9B,CATF,CADF,CADF;;AAgBAD,eAAe,CAACH,SAAhB,2CAA4B;AAC1BH,EAAAA,KAAK,EAAED,IAAI,CAACI,SAAL,CAAeH,KADI;AAE1BO,EAAAA,QAAQ,EAAEH,mBAAUU;AAFM,CAA5B;eAKeR,e","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport includes from 'lodash/fp/includes';\nimport {\n NovaCompositionCoorpacademyLevel0,\n NovaCompositionCoorpacademyLevel1,\n NovaCompositionCoorpacademyLevel2,\n NovaCompositionCoorpacademyLevel3\n} from '@coorpacademy/nova-icons';\nimport style from './style.css';\n\nconst Icon = ({level = 0}) => {\n switch (level) {\n case 1:\n return <NovaCompositionCoorpacademyLevel1 className={style.icon} color=\"#fff\" />;\n case 2:\n return <NovaCompositionCoorpacademyLevel2 className={style.icon} color=\"#fff\" />;\n case 3:\n return <NovaCompositionCoorpacademyLevel3 className={style.icon} color=\"#fff\" />;\n default:\n return <NovaCompositionCoorpacademyLevel0 className={style.icon} color=\"#fff\" />;\n }\n};\n\nIcon.propTypes = {\n level: PropTypes.oneOf([1, 2, 3])\n};\n\nconst DifficultyLevel = ({level, children}) => (\n <div className={style.inlineContainer}>\n <div\n className={classnames({\n [style.unknownContainer]: !includes(level, [1, 2, 3]),\n [style.easyContainer]: level === 1,\n [style.normalContainer]: level === 2,\n [style.hardContainer]: level === 3\n })}\n >\n <Icon level={level} />\n <span className={style.text}>{children}</span>\n </div>\n </div>\n);\n\nDifficultyLevel.propTypes = {\n level: Icon.propTypes.level,\n children: PropTypes.string\n};\n\nexport default DifficultyLevel;\n"],"file":"index.js"}
|
|
@@ -8,8 +8,6 @@ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/ren
|
|
|
8
8
|
|
|
9
9
|
var _ = _interopRequireDefault(require(".."));
|
|
10
10
|
|
|
11
|
-
var _checkedDisabled = _interopRequireDefault(require("./fixtures/checked-disabled"));
|
|
12
|
-
|
|
13
11
|
var _checked = _interopRequireDefault(require("./fixtures/checked"));
|
|
14
12
|
|
|
15
13
|
var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
@@ -30,7 +28,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
30
28
|
t.not(value, undefined, `PropType for "Atom.AtomInputCheckbox.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
31
29
|
});
|
|
32
30
|
});
|
|
33
|
-
(0, _ava.default)('Atom › AtomInputCheckbox › CheckedDisabled › should be rendered', _renderComponent.default, _.default, _checkedDisabled.default);
|
|
34
31
|
(0, _ava.default)('Atom › AtomInputCheckbox › Checked › should be rendered', _renderComponent.default, _.default, _checked.default);
|
|
35
32
|
(0, _ava.default)('Atom › AtomInputCheckbox › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
36
33
|
(0, _ava.default)('Atom › AtomInputCheckbox › Disabled › should be rendered', _renderComponent.default, _.default, _disabled.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/atom/input-checkbox/test/fixtures.js"],"names":["t","pass","AtomInputCheckbox","propTypes","value","key","not","undefined","renderComponentMacro","
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/input-checkbox/test/fixtures.js"],"names":["t","pass","AtomInputCheckbox","propTypes","value","key","not","undefined","renderComponentMacro","fixtureChecked","fixtureDefault","fixtureDisabled","fixtureError","fixtureModified","fixtureRequired"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,wDAAL,EAA+DA,CAAC,IAAI;AAClEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAkBC,SAA1B,EAAqC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kDAAiDF,GAAI,mEAA9E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,yDAAL,EAAgEG,wBAAhE,EAAsFN,SAAtF,EAAyGO,gBAAzG;AACA,kBAAK,yDAAL,EAAgED,wBAAhE,EAAsFN,SAAtF,EAAyGQ,gBAAzG;AACA,kBAAK,0DAAL,EAAiEF,wBAAjE,EAAuFN,SAAvF,EAA0GS,iBAA1G;AACA,kBAAK,uDAAL,EAA8DH,wBAA9D,EAAoFN,SAApF,EAAuGU,cAAvG;AACA,kBAAK,0DAAL,EAAiEJ,wBAAjE,EAAuFN,SAAvF,EAA0GW,iBAA1G;AACA,kBAAK,0DAAL,EAAiEL,wBAAjE,EAAuFN,SAAvF,EAA0GY,iBAA1G","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomInputCheckbox from '..';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisabled from './fixtures/disabled';\nimport fixtureError from './fixtures/error';\nimport fixtureModified from './fixtures/modified';\nimport fixtureRequired from './fixtures/required';\n\ntest('Atom › AtomInputCheckbox > should have valid propTypes', t => {\n t.pass();\n forEach(AtomInputCheckbox.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomInputCheckbox.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomInputCheckbox › Checked › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureChecked);\ntest('Atom › AtomInputCheckbox › Default › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDefault);\ntest('Atom › AtomInputCheckbox › Disabled › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureDisabled);\ntest('Atom › AtomInputCheckbox › Error › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureError);\ntest('Atom › AtomInputCheckbox › Modified › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureModified);\ntest('Atom › AtomInputCheckbox › Required › should be rendered', renderComponentMacro, AtomInputCheckbox, fixtureRequired);\n"],"file":"fixtures.js"}
|
|
@@ -8,11 +8,7 @@ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/ren
|
|
|
8
8
|
|
|
9
9
|
var _ = _interopRequireDefault(require(".."));
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
var _formGroupTitle = _interopRequireDefault(require("./fixtures/form-group-title"));
|
|
14
|
-
|
|
15
|
-
var _pageTitle = _interopRequireDefault(require("./fixtures/page-title"));
|
|
11
|
+
var _fixture = _interopRequireDefault(require("./fixtures/fixture"));
|
|
16
12
|
|
|
17
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
14
|
|
|
@@ -22,7 +18,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
22
18
|
t.not(value, undefined, `PropType for "Atom.AtomTitle.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
23
19
|
});
|
|
24
20
|
});
|
|
25
|
-
(0, _ava.default)('Atom › AtomTitle ›
|
|
26
|
-
(0, _ava.default)('Atom › AtomTitle › FormGroupTitle › should be rendered', _renderComponent.default, _.default, _formGroupTitle.default);
|
|
27
|
-
(0, _ava.default)('Atom › AtomTitle › PageTitle › should be rendered', _renderComponent.default, _.default, _pageTitle.default);
|
|
21
|
+
(0, _ava.default)('Atom › AtomTitle › Fixture › should be rendered', _renderComponent.default, _.default, _fixture.default);
|
|
28
22
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/atom/title/test/fixtures.js"],"names":["t","pass","AtomTitle","propTypes","value","key","not","undefined","renderComponentMacro","
|
|
1
|
+
{"version":3,"sources":["../../../../src/atom/title/test/fixtures.js"],"names":["t","pass","AtomTitle","propTypes","value","key","not","undefined","renderComponentMacro","fixtureFixture"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,gDAAL,EAAuDA,CAAC,IAAI;AAC1DA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAUC,SAAlB,EAA6B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC3CL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0CAAyCF,GAAI,mEAAtE;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,iDAAL,EAAwDG,wBAAxD,EAA8EN,SAA9E,EAAyFO,gBAAzF","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport AtomTitle from '..';\nimport fixtureFixture from './fixtures/fixture';\n\ntest('Atom › AtomTitle > should have valid propTypes', t => {\n t.pass();\n forEach(AtomTitle.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Atom.AtomTitle.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Atom › AtomTitle › Fixture › should be rendered', renderComponentMacro, AtomTitle, fixtureFixture);\n"],"file":"fixtures.js"}
|
|
@@ -33,7 +33,7 @@ const BrandCard = props => {
|
|
|
33
33
|
} = props;
|
|
34
34
|
const maintenanceView = maintenance ? /*#__PURE__*/_react.default.createElement("div", {
|
|
35
35
|
className: _style.default.lockWrapper
|
|
36
|
-
}, /*#__PURE__*/_react.default.createElement(_novaIcons.
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidLoginLocked, {
|
|
37
37
|
className: _style.default.lockIcon,
|
|
38
38
|
height: 80
|
|
39
39
|
})) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/brand-card/index.js"],"names":["BrandCard","props","title","edit","editHref","onEditClick","see","seeHref","image","description","maintenance","maintenanceView","style","lockWrapper","lockIcon","wrapper","picture","descriptionWrapper","information","propTypes","PropTypes","string","isRequired","func","bool"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAGC,KAAK,IAAI;AACzB,QAAM;AACJC,IAAAA,KADI;AAEJC,IAAAA,IAFI;AAGJC,IAAAA,QAHI;AAIJC,IAAAA,WAJI;AAKJC,IAAAA,GALI;AAMJC,IAAAA,OANI;AAOJC,IAAAA,KAPI;AAQJC,IAAAA,WARI;AASJC,IAAAA,WAAW,GAAG;AATV,MAUFT,KAVJ;AAWA,QAAMU,eAAe,GAAGD,WAAW,gBACjC;AAAK,IAAA,SAAS,EAAEE,eAAMC;AAAtB,kBACE,6BAAC,+BAAD;AAAU,IAAA,SAAS,EAAED,eAAME,QAA3B;AAAqC,IAAA,MAAM,EAAE;AAA7C,IADF,CADiC,GAI/B,IAJJ;AAKA,sBACE;AAAK,IAAA,SAAS,EAAEF,eAAMG;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEH,eAAMJ;AAAtB,kBACE,6BAAC,gBA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ropTypes from 'prop-types';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/brand-card/index.js"],"names":["BrandCard","props","title","edit","editHref","onEditClick","see","seeHref","image","description","maintenance","maintenanceView","style","lockWrapper","lockIcon","wrapper","picture","descriptionWrapper","information","propTypes","PropTypes","string","isRequired","func","bool"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAGC,KAAK,IAAI;AACzB,QAAM;AACJC,IAAAA,KADI;AAEJC,IAAAA,IAFI;AAGJC,IAAAA,QAHI;AAIJC,IAAAA,WAJI;AAKJC,IAAAA,GALI;AAMJC,IAAAA,OANI;AAOJC,IAAAA,KAPI;AAQJC,IAAAA,WARI;AASJC,IAAAA,WAAW,GAAG;AATV,MAUFT,KAVJ;AAWA,QAAMU,eAAe,GAAGD,WAAW,gBACjC;AAAK,IAAA,SAAS,EAAEE,eAAMC;AAAtB,kBACE,6BAAC,+BAAD;AAAU,IAAA,SAAS,EAAED,eAAME,QAA3B;AAAqC,IAAA,MAAM,EAAE;AAA7C,IADF,CADiC,GAI/B,IAJJ;AAKA,sBACE;AAAK,IAAA,SAAS,EAAEF,eAAMG;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEH,eAAMJ;AAAtB,kBACE,6BAAC,gBAAD;AAAS,IAAA,SAAS,EAAEI,eAAMI,OAA1B;AAAmC,IAAA,GAAG,EAAER;AAAxC,IADF,EAEGG,eAFH,eAGE,6BAAC,oBAAD;AAAa,IAAA,WAAW,EAAEF,WAA1B;AAAuC,IAAA,SAAS,EAAEG,eAAMK;AAAxD,IAHF,CADF,eAME;AAAK,IAAA,SAAS,EAAEL,eAAMM,WAAtB;AAAmC,iBAAY,QAAOhB,KAAM;AAA5D,kBACE,yCAAKA,KAAL,CADF,eAEE;AAAK,IAAA,SAAS,EAAEU,eAAMT;AAAtB,kBACE,6BAAC,aAAD;AAAM,IAAA,IAAI,EAAEC,QAAZ;AAAsB,IAAA,OAAO,EAAEC,WAA/B;AAA4C,iBAAY,QAAOH,KAAM;AAArE,KACGC,IADH,CADF,CAFF,eAOE;AAAK,IAAA,SAAS,EAAES,eAAMN,GAAtB;AAA2B,iBAAY,OAAMJ,KAAM;AAAnD,kBACE,6BAAC,aAAD;AAAM,IAAA,MAAM,EAAC,QAAb;AAAsB,IAAA,IAAI,EAAEK;AAA5B,KACGD,GADH,CADF,CAPF,CANF,CADF;AAsBD,CAvCD;;AAyCAN,SAAS,CAACmB,SAAV,2CAAsB;AACpBjB,EAAAA,KAAK,EAAEkB,mBAAUC,MAAV,CAAiBC,UADJ;AAEpBb,EAAAA,WAAW,EAAEW,mBAAUC,MAFH;AAGpBlB,EAAAA,IAAI,EAAEiB,mBAAUC,MAAV,CAAiBC,UAHH;AAIpBlB,EAAAA,QAAQ,EAAEgB,mBAAUC,MAJA;AAKpBhB,EAAAA,WAAW,EAAEe,mBAAUG,IALH;AAMpBjB,EAAAA,GAAG,EAAEc,mBAAUC,MAAV,CAAiBC,UANF;AAOpBf,EAAAA,OAAO,EAAEa,mBAAUC,MAPC;AAQpBb,EAAAA,KAAK,EAAEY,mBAAUC,MAAV,CAAiBC,UARJ;AASpBZ,EAAAA,WAAW,EAAEU,mBAAUI;AATH,CAAtB;eAWexB,S","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {NovaSolidLoginLocked as LockIcon} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport Picture from '../../atom/picture';\nimport Description from './description';\nimport style from './style.css';\n\nconst BrandCard = props => {\n const {\n title,\n edit,\n editHref,\n onEditClick,\n see,\n seeHref,\n image,\n description,\n maintenance = false\n } = props;\n const maintenanceView = maintenance ? (\n <div className={style.lockWrapper}>\n <LockIcon className={style.lockIcon} height={80} />\n </div>\n ) : null;\n return (\n <div className={style.wrapper}>\n <div className={style.image}>\n <Picture className={style.picture} src={image} />\n {maintenanceView}\n <Description description={description} className={style.descriptionWrapper} />\n </div>\n <div className={style.information} data-name={`info-${title}`}>\n <h3>{title}</h3>\n <div className={style.edit}>\n <Link href={editHref} onClick={onEditClick} data-name={`edit-${title}`}>\n {edit}\n </Link>\n </div>\n <div className={style.see} data-name={`see-${title}`}>\n <Link target=\"_blank\" href={seeHref}>\n {see}\n </Link>\n </div>\n </div>\n </div>\n );\n};\n\nBrandCard.propTypes = {\n title: PropTypes.string.isRequired,\n description: PropTypes.string,\n edit: PropTypes.string.isRequired,\n editHref: PropTypes.string,\n onEditClick: PropTypes.func,\n see: PropTypes.string.isRequired,\n seeHref: PropTypes.string,\n image: PropTypes.string.isRequired,\n maintenance: PropTypes.bool\n};\nexport default BrandCard;\n"],"file":"index.js"}
|
|
@@ -146,7 +146,7 @@ const Card = (0, _react.memo)(function Card(props, context) {
|
|
|
146
146
|
const whiteColor = (0, _get2.default)('common.white', skin);
|
|
147
147
|
const cardStyle = (0, _classnames.default)(type === 'chapter' ? _style.default.chapter : _style.default.course, title ? null : _style.default.lazy, _style.default.grid, empty ? _style.default.empty : null);
|
|
148
148
|
const handleClick = (0, _react.useMemo)(() => e => !disabled && onClick(e), [onClick]);
|
|
149
|
-
const lock = disabled ? /*#__PURE__*/_react.default.createElement(_novaIcons.
|
|
149
|
+
const lock = disabled ? /*#__PURE__*/_react.default.createElement(_novaIcons.NovaSolidLoginLocked, {
|
|
150
150
|
className: _style.default.lockIcon,
|
|
151
151
|
color: whiteColor,
|
|
152
152
|
height: 40
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","style","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","notification","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","chapterCustomer","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,cAAc,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,KAAP;AAAcC,EAAAA;AAAd,CAAD,EAAuB;AAACC,EAAAA;AAAD,CAAvB,KAAkC;AACvD,QAAMC,eAAe,GAAG,wCAAkBJ,IAAlB,CAAxB;AACA,QAAMK,YAAY,GAAG,mBAAI,gBAAJ,EAAsBF,IAAtB,CAArB;AACA,QAAMG,UAAU,GAAG,mBAAI,cAAJ,EAAoBH,IAApB,CAAnB;;AAEA,MAAIC,eAAe,IAAIG,wCAAuBP,IAAvB,CAAvB,EAAqD;AACnD,UAAMQ,QAAQ,GAAGD,wCAAuBP,IAAvB,EAA6BS,IAA9C;AACA,UAAMC,SAAS,GAAGH,wCAAuBP,IAAvB,EAA6BW,KAA/C;;AACA,UAAMC,cAAc,gBAClB;AAAK,MAAA,SAAS,EAAEC,eAAMC;AAAtB,oBACE,6BAAC,QAAD;AAAU,MAAA,SAAS,EAAED,eAAME;AAA3B,MADF,CADF;;AAMA,QAAId,KAAJ,EAAW;AACT,YAAMe,eAAe,gBACnB;AACE,QAAA,SAAS,EAAE,yBACTH,eAAMC,yBADG,EAETD,eAAMI,kCAFG,CADb;AAKE,QAAA,KAAK,EAAE;AACLC,UAAAA,eAAe,EAAER;AADZ;AALT,sBASE,6BAAC,QAAD;AAAU,QAAA,SAAS,EAAEG,eAAMM;AAA3B,QATF,CADF;;AAcA,0BACE;AAAK,QAAA,SAAS,EAAEN,eAAMO;AAAtB,sBACE;AACE,qBA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UC,MAblB;AAcfgB,EAAAA,OAAO,EAAEjB,mBAAUuC,IAdJ;AAefrB,EAAAA,eAAe,EAAElB,mBAAUuC,IAfZ;AAgBfpB,EAAAA,YAAY,EAAEnB,mBAAUoC,KAAV,CAAgBI,sBAAazC,SAA7B;AAhBC,CAAjB;eAkBeI,I","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick} from 'lodash/fp';\nimport {\n NovaSolidLocksLock11 as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Notification from './notification';\nimport style from './style.css';\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n notification\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [onClick]);\n\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {!isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n className={classnames(style.customer, type === 'chapter' ? style.chapterCustomer : null)}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n notification: PropTypes.shape(Notification.propTypes)\n};\nexport default Card;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/card/index.js"],"names":["CardBackground","type","image","empty","skin","externalContent","primaryColor","whiteColor","EXTERNAL_CONTENT_ICONS","IconType","icon","iconColor","color","backgroundIcon","style","externalIconCircleWrapper","externalIcon","_backgroundIcon","externalIconCircleWithImageWrapper","backgroundColor","externalIconWithImage","imageWrapper","backgroundImage","externalContentHeader","externalBackground","emptyIcon","chapterImageWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","Card","props","context","badge","adaptiv","disabled","title","author","customer","certifiedAuthor","progress","favorite","addFavoriteToolTip","removeFavoriteToolTip","onClick","onFavoriteClick","notification","cardStyle","chapter","course","lazy","grid","handleClick","e","lock","lockIcon","inlineBadgeStyle","getType","contentType","chapterCustomer","MODES","CARD","lockWrapper","shape","Customer","number","func","Notification"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,cAAc,GAAG,CAAC;AAACC,EAAAA,IAAD;AAAOC,EAAAA,KAAP;AAAcC,EAAAA;AAAd,CAAD,EAAuB;AAACC,EAAAA;AAAD,CAAvB,KAAkC;AACvD,QAAMC,eAAe,GAAG,wCAAkBJ,IAAlB,CAAxB;AACA,QAAMK,YAAY,GAAG,mBAAI,gBAAJ,EAAsBF,IAAtB,CAArB;AACA,QAAMG,UAAU,GAAG,mBAAI,cAAJ,EAAoBH,IAApB,CAAnB;;AAEA,MAAIC,eAAe,IAAIG,wCAAuBP,IAAvB,CAAvB,EAAqD;AACnD,UAAMQ,QAAQ,GAAGD,wCAAuBP,IAAvB,EAA6BS,IAA9C;AACA,UAAMC,SAAS,GAAGH,wCAAuBP,IAAvB,EAA6BW,KAA/C;;AACA,UAAMC,cAAc,gBAClB;AAAK,MAAA,SAAS,EAAEC,eAAMC;AAAtB,oBACE,6BAAC,QAAD;AAAU,MAAA,SAAS,EAAED,eAAME;AAA3B,MADF,CADF;;AAMA,QAAId,KAAJ,EAAW;AACT,YAAMe,eAAe,gBACnB;AACE,QAAA,SAAS,EAAE,yBACTH,eAAMC,yBADG,EAETD,eAAMI,kCAFG,CADb;AAKE,QAAA,KAAK,EAAE;AACLC,UAAAA,eAAe,EAAER;AADZ;AALT,sBASE,6BAAC,QAAD;AAAU,QAAA,SAAS,EAAEG,eAAMM;AAA3B,QATF,CADF;;AAcA,0BACE;AAAK,QAAA,SAAS,EAAEN,eAAMO;AAAtB,sBACE;AACE,qBAAU,OADZ;AAEE,QAAA,KAAK,EAAE;AACLF,UAAAA,eAAe,EAAER,SADZ;AAELW,UAAAA,eAAe,EAAG,QAAOpB,KAAM;AAF1B,SAFT;AAME,QAAA,SAAS,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AAUoC,KAAV,CAAgBI,sBAAazC,SAA7B;AAhBC,CAAjB;eAkBeI,I","sourcesContent":["import React, {useMemo, memo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isEmpty, isUndefined, pick} from 'lodash/fp';\nimport {\n NovaSolidLoginLocked as LockIcon,\n NovaCompositionCoorpacademyPictures as PicturesIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport CardContentInfo, {MODES} from '../card-content';\nimport Customer from './customer';\nimport Favorite from './favorite';\nimport Notification from './notification';\nimport style from './style.css';\n\nconst CardBackground = ({type, image, empty}, {skin}) => {\n const externalContent = isExternalContent(type);\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const IconType = EXTERNAL_CONTENT_ICONS[type].icon;\n const iconColor = EXTERNAL_CONTENT_ICONS[type].color;\n const backgroundIcon = (\n <div className={style.externalIconCircleWrapper}>\n <IconType className={style.externalIcon} />\n </div>\n );\n\n if (image) {\n const _backgroundIcon = (\n <div\n className={classnames(\n style.externalIconCircleWrapper,\n style.externalIconCircleWithImageWrapper\n )}\n style={{\n backgroundColor: iconColor\n }}\n >\n <IconType className={style.externalIconWithImage} />\n </div>\n );\n\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor,\n backgroundImage: `url('${image}')`\n }}\n className={classnames(style.externalContentHeader, style.externalBackground)}\n >\n {_backgroundIcon}\n </div>\n </div>\n );\n }\n return (\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n style={{\n backgroundColor: iconColor\n }}\n className={style.externalContentHeader}\n >\n {backgroundIcon}\n </div>\n </div>\n );\n }\n\n const emptyIcon = empty ? <PicturesIcon className={style.emptyIcon} color={whiteColor} /> : null;\n return (\n <div\n className={classnames(\n style.imageWrapper,\n type === 'chapter' ? style.chapterImageWrapper : null\n )}\n >\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n >\n {emptyIcon}\n </div>\n </div>\n );\n};\n\nCardBackground.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCardBackground.propTypes = {\n type: PropTypes.string,\n image: PropTypes.string,\n empty: PropTypes.bool\n};\n\nconst Card = memo(function Card(props, context) {\n const {skin} = context;\n const {\n image,\n badge,\n adaptiv,\n disabled = false,\n type = 'course',\n title,\n author,\n customer,\n certifiedAuthor,\n progress,\n favorite,\n addFavoriteToolTip,\n removeFavoriteToolTip,\n onClick,\n onFavoriteClick,\n notification\n } = props;\n const empty = isEmpty(pick(['title', 'type', 'author', 'image'], props));\n const primaryColor = get('common.primary', skin);\n const whiteColor = get('common.white', skin);\n const cardStyle = classnames(\n type === 'chapter' ? style.chapter : style.course,\n title ? null : style.lazy,\n style.grid,\n empty ? style.empty : null\n );\n const handleClick = useMemo(() => e => !disabled && onClick(e), [onClick]);\n\n const lock = disabled ? (\n <LockIcon className={style.lockIcon} color={whiteColor} height={40} />\n ) : null;\n const inlineBadgeStyle = {color: primaryColor};\n const getType = contentType => {\n switch (contentType) {\n case 'chapter':\n return 'microlearning';\n case 'course':\n return 'learner';\n default:\n return contentType;\n }\n };\n return (\n <div\n className={cardStyle}\n data-name=\"card\"\n data-lock={disabled}\n data-type={getType(type)}\n disabled={disabled}\n onClick={handleClick}\n >\n <CardBackground type={type} image={image} empty={empty} />\n {!isUndefined(favorite) ? (\n <Favorite\n className={style.favorite}\n favorite={favorite}\n disabled={disabled}\n onFavoriteClick={onFavoriteClick}\n addFavoriteToolTip={addFavoriteToolTip}\n removeFavoriteToolTip={removeFavoriteToolTip}\n />\n ) : null}\n {notification ? <Notification {...notification} /> : null}\n {customer ? (\n <Customer\n {...customer}\n className={classnames(style.customer, type === 'chapter' ? style.chapterCustomer : null)}\n />\n ) : null}\n <CardContentInfo\n mode={MODES.CARD}\n adaptiv={adaptiv}\n author={author}\n certifiedAuthor={certifiedAuthor}\n disabled={disabled}\n empty={empty}\n progress={progress}\n title={title}\n type={type}\n />\n {badge ? (\n <div className={style.badge} style={inlineBadgeStyle}>\n {badge}\n </div>\n ) : null}\n {disabled ? <div className={style.lockWrapper}>{lock}</div> : null}\n </div>\n );\n});\n\nCard.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nCard.propTypes = {\n badge: PropTypes.string,\n image: PropTypes.string,\n disabled: PropTypes.bool,\n adaptiv: PropTypes.bool,\n type: PropTypes.string,\n title: PropTypes.string,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n customer: PropTypes.shape(Customer.propTypes),\n progress: PropTypes.number,\n favorite: PropTypes.bool,\n addFavoriteToolTip: PropTypes.string,\n removeFavoriteToolTip: PropTypes.string,\n onClick: PropTypes.func,\n onFavoriteClick: PropTypes.func,\n notification: PropTypes.shape(Notification.propTypes)\n};\nexport default Card;\n"],"file":"index.js"}
|
|
@@ -22,7 +22,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
22
22
|
const NOTIFICATION_ICON = {
|
|
23
23
|
addFavorite: _novaIcons.NovaCompositionCoorpacademyCheck,
|
|
24
24
|
removeFavorite: _novaIcons.NovaCompositionNavigationMore,
|
|
25
|
-
lock: _novaIcons.
|
|
25
|
+
lock: _novaIcons.NovaSolidLoginLocked,
|
|
26
26
|
unlock: _novaIcons.NovaSolidLocksLockUnlock1
|
|
27
27
|
};
|
|
28
28
|
|