@coorpacademy/components 10.0.40 → 10.0.44-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/input-checkbox/index.js +16 -5
- package/es/atom/input-checkbox/index.js.map +1 -1
- package/es/atom/input-checkbox/style.css +54 -25
- package/es/{template/back-office/brand-update/test/fixtures/home.js → atom/input-checkbox/test/fixtures/checked-disabled.js} +3 -5
- package/es/atom/input-checkbox/test/fixtures/checked-disabled.js.map +1 -0
- package/es/atom/input-checkbox/test/fixtures.js +2 -0
- package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
- package/es/atom/title/index.js +28 -4
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/title/style.css +24 -2
- package/es/atom/title/test/fixtures/form-group-title-without-subtitle.js +7 -0
- package/es/atom/title/test/fixtures/form-group-title-without-subtitle.js.map +1 -0
- package/es/atom/title/test/fixtures/form-group-title.js +8 -0
- package/es/atom/title/test/fixtures/form-group-title.js.map +1 -0
- package/es/atom/title/test/fixtures/{fixture.js → page-title.js} +2 -1
- package/es/atom/title/test/fixtures/page-title.js.map +1 -0
- package/es/atom/title/test/fixtures.js +6 -2
- package/es/atom/title/test/fixtures.js.map +1 -1
- package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
- package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
- package/es/molecule/brand-form-group/index.js +17 -3
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/style.css +38 -22
- package/es/molecule/brand-tabs/test/fixtures.js +2 -0
- package/es/molecule/brand-tabs/test/fixtures.js.map +1 -1
- package/es/molecule/coorp-manager-roles/index.js +31 -0
- package/es/molecule/coorp-manager-roles/index.js.map +1 -0
- package/es/molecule/coorp-manager-roles/style.css +38 -0
- package/es/molecule/coorp-manager-roles/test/default.js +23 -0
- package/es/molecule/coorp-manager-roles/test/default.js.map +1 -0
- package/es/molecule/coorp-manager-roles/test/fixtures.js +11 -0
- package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
- package/es/molecule/discipline-scope/test/fixtures.js +6 -0
- package/es/molecule/discipline-scope/test/fixtures.js.map +1 -1
- package/es/molecule/popin/index.js +1 -1
- package/es/molecule/popin/index.js.map +1 -1
- package/es/molecule/popin/style.css +5 -0
- package/es/molecule/popin/test/fixtures.js +21 -0
- package/es/molecule/popin/test/fixtures.js.map +1 -0
- package/es/molecule/quick-access-card/index.js +9 -7
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/quick-access-card/style.css +20 -7
- 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 +1 -1
- 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 +9 -0
- package/es/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -0
- 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/molecule/quick-access-card/test/fixtures.js +21 -0
- package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
- package/es/molecule/quick-access-cards-group/index.js +35 -0
- package/es/molecule/quick-access-cards-group/index.js.map +1 -0
- package/es/molecule/quick-access-cards-group/style.css +38 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/default.js +12 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/default.js.map +1 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/loading.js +7 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/loading.js.map +1 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/one-card.js +8 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/one-card.js.map +1 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/three-cards.js +10 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/three-cards.js.map +1 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/two-cards.js +9 -0
- package/es/molecule/quick-access-cards-group/test/fixtures/two-cards.js.map +1 -0
- package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
- package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
- package/es/molecule/scope-content/test/fixtures.js +6 -0
- package/es/molecule/scope-content/test/fixtures.js.map +1 -1
- package/es/organism/accordion/coorp-manager/part/test/fixtures/defaut.js +10 -1
- package/es/organism/accordion/coorp-manager/part/test/fixtures/defaut.js.map +1 -1
- package/es/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js +11 -0
- package/es/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js.map +1 -0
- package/es/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js +11 -0
- package/es/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js.map +1 -0
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js +17 -0
- package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
- package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
- package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
- package/es/organism/brand-analytics/test/fixtures.js +23 -0
- package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
- package/es/organism/brand-dashboard/index.js +25 -7
- package/es/organism/brand-dashboard/index.js.map +1 -1
- package/es/organism/brand-dashboard/style.css +17 -20
- package/es/organism/brand-dashboard/test/fixtures/default.js +9 -1
- package/es/organism/brand-dashboard/test/fixtures/default.js.map +1 -1
- package/es/organism/brand-dashboard/test/fixtures/three-cards.js +14 -0
- package/es/organism/brand-dashboard/test/fixtures/three-cards.js.map +1 -0
- package/es/organism/brand-dashboard/test/fixtures.js +15 -0
- package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
- package/es/organism/brand-form/style.css +1 -0
- package/es/organism/brand-form/test/fixtures/manageusers-edit.js +64 -22
- package/es/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
- package/es/organism/mooc-header/test/fixtures.js +6 -0
- package/es/organism/mooc-header/test/fixtures.js.map +1 -1
- package/es/template/app-player/player/test/fixtures.js +2 -0
- package/es/template/app-player/player/test/fixtures.js.map +1 -1
- package/es/template/back-office/brand-update/index.js +1 -1
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js +17 -0
- package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures.js +4 -0
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/es/template/common/discipline/test/fixtures.js +10 -0
- package/es/template/common/discipline/test/fixtures.js.map +1 -1
- package/es/template/teams-dashboard/test/fixtures.js +2 -0
- package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
- package/es/variables/colors.css +6 -1
- package/lib/atom/input-checkbox/index.js +18 -5
- package/lib/atom/input-checkbox/index.js.map +1 -1
- package/lib/atom/input-checkbox/style.css +54 -25
- package/lib/{template/back-office/brand-update/test/fixtures/home.js → atom/input-checkbox/test/fixtures/checked-disabled.js} +3 -5
- package/lib/atom/input-checkbox/test/fixtures/checked-disabled.js.map +1 -0
- package/lib/atom/input-checkbox/test/fixtures.js +3 -0
- package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
- package/lib/atom/title/index.js +28 -4
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/title/style.css +24 -2
- package/lib/atom/title/test/fixtures/form-group-title-without-subtitle.js +12 -0
- package/lib/atom/title/test/fixtures/form-group-title-without-subtitle.js.map +1 -0
- package/lib/atom/title/test/fixtures/form-group-title.js +13 -0
- package/lib/atom/title/test/fixtures/form-group-title.js.map +1 -0
- package/lib/atom/title/test/fixtures/{fixture.js → page-title.js} +2 -1
- package/lib/atom/title/test/fixtures/page-title.js.map +1 -0
- package/lib/atom/title/test/fixtures.js +8 -2
- package/lib/atom/title/test/fixtures.js.map +1 -1
- package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
- package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
- package/lib/molecule/brand-form-group/index.js +20 -3
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/style.css +38 -22
- package/lib/molecule/brand-tabs/test/fixtures.js +3 -0
- package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -1
- package/lib/molecule/coorp-manager-roles/index.js +42 -0
- package/lib/molecule/coorp-manager-roles/index.js.map +1 -0
- package/lib/molecule/coorp-manager-roles/style.css +38 -0
- package/lib/molecule/coorp-manager-roles/test/default.js +28 -0
- package/lib/molecule/coorp-manager-roles/test/default.js.map +1 -0
- package/lib/molecule/coorp-manager-roles/test/fixtures.js +19 -0
- package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
- package/lib/molecule/discipline-scope/test/fixtures.js +9 -0
- package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -1
- package/lib/molecule/popin/index.js +1 -1
- package/lib/molecule/popin/index.js.map +1 -1
- package/lib/molecule/popin/style.css +5 -0
- package/lib/molecule/popin/test/fixtures.js +34 -0
- package/lib/molecule/popin/test/fixtures.js.map +1 -0
- package/lib/molecule/quick-access-card/index.js +9 -11
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-card/style.css +20 -7
- 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 +1 -1
- 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 +14 -0
- package/lib/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -0
- 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/molecule/quick-access-card/test/fixtures.js +34 -0
- package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/index.js +47 -0
- package/lib/molecule/quick-access-cards-group/index.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/style.css +38 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/default.js +25 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/default.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/loading.js +12 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/loading.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/one-card.js +17 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/one-card.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/three-cards.js +21 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/three-cards.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/two-cards.js +19 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures/two-cards.js.map +1 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
- package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
- package/lib/molecule/scope-content/test/fixtures.js +9 -0
- package/lib/molecule/scope-content/test/fixtures.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/part/test/fixtures/defaut.js +10 -1
- package/lib/organism/accordion/coorp-manager/part/test/fixtures/defaut.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js +16 -0
- package/lib/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js.map +1 -0
- package/lib/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js +16 -0
- package/lib/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js.map +1 -0
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +28 -0
- package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
- package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
- package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
- package/lib/organism/brand-analytics/test/fixtures.js +37 -0
- package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
- package/lib/organism/brand-dashboard/index.js +27 -7
- package/lib/organism/brand-dashboard/index.js.map +1 -1
- package/lib/organism/brand-dashboard/style.css +17 -20
- package/lib/organism/brand-dashboard/test/fixtures/default.js +13 -1
- package/lib/organism/brand-dashboard/test/fixtures/default.js.map +1 -1
- package/lib/organism/brand-dashboard/test/fixtures/three-cards.js +23 -0
- package/lib/organism/brand-dashboard/test/fixtures/three-cards.js.map +1 -0
- package/lib/organism/brand-dashboard/test/fixtures.js +25 -0
- package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
- package/lib/organism/brand-form/style.css +1 -0
- package/lib/organism/brand-form/test/fixtures/manageusers-edit.js +64 -22
- package/lib/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
- package/lib/organism/mooc-header/test/fixtures.js +9 -0
- package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
- package/lib/template/app-player/player/test/fixtures.js +3 -0
- package/lib/template/app-player/player/test/fixtures.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js +1 -1
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +27 -0
- package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures.js +6 -0
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/template/common/discipline/test/fixtures.js +15 -0
- package/lib/template/common/discipline/test/fixtures.js.map +1 -1
- package/lib/template/teams-dashboard/test/fixtures.js +3 -0
- package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
- package/lib/variables/colors.css +6 -1
- package/package.json +3 -3
- package/es/atom/title/test/fixtures/fixture.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/quick-access-card/test/fixtures/manage-email.js +0 -9
- package/es/molecule/quick-access-card/test/fixtures/manage-email.js.map +0 -1
- package/es/template/back-office/brand-update/test/fixtures/home.js.map +0 -1
- package/lib/atom/title/test/fixtures/fixture.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/quick-access-card/test/fixtures/manage-email.js +0 -14
- package/lib/molecule/quick-access-card/test/fixtures/manage-email.js.map +0 -1
- package/lib/template/back-office/brand-update/test/fixtures/home.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeQuickAccessCard from '..';
|
|
5
|
+
import fixtureAnalytics from './fixtures/analytics';
|
|
6
|
+
import fixtureDefault from './fixtures/default';
|
|
7
|
+
import fixtureLookAndFeel from './fixtures/look-and-feel';
|
|
8
|
+
import fixtureMassiveBattle from './fixtures/massive-battle';
|
|
9
|
+
import fixtureUploadUsers from './fixtures/upload-users';
|
|
10
|
+
test('Molecule › MoleculeQuickAccessCard > should have valid propTypes', t => {
|
|
11
|
+
t.pass();
|
|
12
|
+
forEach(MoleculeQuickAccessCard.propTypes, (value, key) => {
|
|
13
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeQuickAccessCard.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
test('Molecule › MoleculeQuickAccessCard › Analytics › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureAnalytics);
|
|
17
|
+
test('Molecule › MoleculeQuickAccessCard › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureDefault);
|
|
18
|
+
test('Molecule › MoleculeQuickAccessCard › LookAndFeel › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureLookAndFeel);
|
|
19
|
+
test('Molecule › MoleculeQuickAccessCard › MassiveBattle › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureMassiveBattle);
|
|
20
|
+
test('Molecule › MoleculeQuickAccessCard › UploadUsers › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureUploadUsers);
|
|
21
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/quick-access-card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuickAccessCard","fixtureAnalytics","fixtureDefault","fixtureLookAndFeel","fixtureMassiveBattle","fixtureUploadUsers","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,uBAAP,MAAoC,IAApC;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,0BAA/B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAR,IAAI,CAAC,kEAAD,EAAqES,CAAC,IAAI;AAC5EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,uBAAuB,CAACQ,SAAzB,EAAoC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACzDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4DAA2DF,GAAI,mEAAxF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,uBAA9F,EAAuHC,gBAAvH,CAAJ;AACAJ,IAAI,CAAC,mEAAD,EAAsEE,oBAAtE,EAA4FC,uBAA5F,EAAqHE,cAArH,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,uBAAhG,EAAyHG,kBAAzH,CAAJ;AACAN,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,uBAAlG,EAA2HI,oBAA3H,CAAJ;AACAP,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,uBAAhG,EAAyHK,kBAAzH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeQuickAccessCard from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLookAndFeel from './fixtures/look-and-feel';\nimport fixtureMassiveBattle from './fixtures/massive-battle';\nimport fixtureUploadUsers from './fixtures/upload-users';\n\ntest('Molecule › MoleculeQuickAccessCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuickAccessCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeQuickAccessCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeQuickAccessCard › Analytics › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureAnalytics);\ntest('Molecule › MoleculeQuickAccessCard › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureDefault);\ntest('Molecule › MoleculeQuickAccessCard › LookAndFeel › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureLookAndFeel);\ntest('Molecule › MoleculeQuickAccessCard › MassiveBattle › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureMassiveBattle);\ntest('Molecule › MoleculeQuickAccessCard › UploadUsers › should be rendered', renderComponentMacro, MoleculeQuickAccessCard, fixtureUploadUsers);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _slice from "lodash/fp/slice";
|
|
2
|
+
import _map from "lodash/fp/map";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import QuickAccessCard from '../quick-access-card';
|
|
6
|
+
import Loader from '../../atom/loader';
|
|
7
|
+
import style from './style.css';
|
|
8
|
+
|
|
9
|
+
const QuickAccessCardGroup = props => {
|
|
10
|
+
const {
|
|
11
|
+
list = [],
|
|
12
|
+
loading = false
|
|
13
|
+
} = props;
|
|
14
|
+
const loader = loading ? /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: style.loader
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Loader, null)) : null;
|
|
17
|
+
|
|
18
|
+
const cards = _map(cardProps => {
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: style.card,
|
|
21
|
+
key: `card-${cardProps.feature}`
|
|
22
|
+
}, /*#__PURE__*/React.createElement(QuickAccessCard, cardProps));
|
|
23
|
+
}, _slice(0, 4, list));
|
|
24
|
+
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: style.group
|
|
27
|
+
}, cards, loader);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
QuickAccessCardGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
31
|
+
list: PropTypes.arrayOf(PropTypes.shape(QuickAccessCard.propTypes)),
|
|
32
|
+
loading: PropTypes.bool
|
|
33
|
+
} : {};
|
|
34
|
+
export default QuickAccessCardGroup;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/quick-access-cards-group/index.js"],"names":["React","PropTypes","QuickAccessCard","Loader","style","QuickAccessCardGroup","props","list","loading","loader","cards","cardProps","card","feature","group","propTypes","arrayOf","shape","bool"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,oBAAoB,GAAGC,KAAK,IAAI;AACpC,QAAM;AAACC,IAAAA,IAAI,GAAG,EAAR;AAAYC,IAAAA,OAAO,GAAG;AAAtB,MAA+BF,KAArC;AAEA,QAAMG,MAAM,GAAGD,OAAO,gBACpB;AAAK,IAAA,SAAS,EAAEJ,KAAK,CAACK;AAAtB,kBACE,oBAAC,MAAD,OADF,CADoB,GAIlB,IAJJ;;AAMA,QAAMC,KAAK,GAAG,KAAIC,SAAS,IAAI;AAC7B,wBACE;AAAK,MAAA,SAAS,EAAEP,KAAK,CAACQ,IAAtB;AAA4B,MAAA,GAAG,EAAG,QAAOD,SAAS,CAACE,OAAQ;AAA3D,oBACE,oBAAC,eAAD,EAAqBF,SAArB,CADF,CADF;AAKD,GANa,EAMX,OAAM,CAAN,EAAS,CAAT,EAAYJ,IAAZ,CANW,CAAd;;AAQA,sBACE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACU;AAAtB,KACGJ,KADH,EAEGD,MAFH,CADF;AAMD,CAvBD;;AAyBAJ,oBAAoB,CAACU,SAArB,2CAAiC;AAC/BR,EAAAA,IAAI,EAAEN,SAAS,CAACe,OAAV,CAAkBf,SAAS,CAACgB,KAAV,CAAgBf,eAAe,CAACa,SAAhC,CAAlB,CADyB;AAE/BP,EAAAA,OAAO,EAAEP,SAAS,CAACiB;AAFY,CAAjC;AAKA,eAAeb,oBAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, slice} from 'lodash/fp';\nimport QuickAccessCard from '../quick-access-card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst QuickAccessCardGroup = props => {\n const {list = [], loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div className={style.card} key={`card-${cardProps.feature}`}>\n <QuickAccessCard {...cardProps} />\n </div>\n );\n }, slice(0, 4, list));\n\n return (\n <div className={style.group}>\n {cards}\n {loader}\n </div>\n );\n};\n\nQuickAccessCardGroup.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(QuickAccessCard.propTypes)),\n loading: PropTypes.bool\n};\n\nexport default QuickAccessCardGroup;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
2
|
+
@value cm_tablet from breakpoints;
|
|
3
|
+
@value desktop from breakpoints;
|
|
4
|
+
|
|
5
|
+
.loader {
|
|
6
|
+
position: relative;
|
|
7
|
+
height: 100px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.group {
|
|
12
|
+
width: 100%;
|
|
13
|
+
display: flex;
|
|
14
|
+
overflow-y: inherit;
|
|
15
|
+
align-content: flex-start;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.card {
|
|
20
|
+
width: 24%; /* for ie */
|
|
21
|
+
width: calc(25% - 12px); /* 25% - 16px * 3 space / 4 cards */
|
|
22
|
+
margin: 0 16px 16px 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.card:nth-child(4) {
|
|
26
|
+
margin-right: 0px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media cm_tablet {
|
|
30
|
+
.card {
|
|
31
|
+
width: 48%; /* for ie */
|
|
32
|
+
width: calc(50% - 16px); /* 50% - 16px * 1 space / 2 cards */
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.card:nth-child(2) {
|
|
36
|
+
margin-right: 0px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import cockpit from '../../../quick-access-card/test/fixtures/default';
|
|
2
|
+
import analytics from '../../../quick-access-card/test/fixtures/analytics';
|
|
3
|
+
import lookAndFeel from '../../../quick-access-card/test/fixtures/look-and-feel';
|
|
4
|
+
import massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';
|
|
5
|
+
import uploadUsers from '../../../quick-access-card/test/fixtures/upload-users';
|
|
6
|
+
export default {
|
|
7
|
+
props: {
|
|
8
|
+
list: [cockpit.props, analytics.props, lookAndFeel.props, massiveBattle.props, uploadUsers.props],
|
|
9
|
+
loading: false
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/default.js"],"names":["cockpit","analytics","lookAndFeel","massiveBattle","uploadUsers","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AACA,OAAOC,SAAP,MAAsB,oDAAtB;AACA,OAAOC,WAAP,MAAwB,wDAAxB;AACA,OAAOC,aAAP,MAA0B,yDAA1B;AACA,OAAOC,WAAP,MAAwB,uDAAxB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CACJN,OAAO,CAACK,KADJ,EAEJJ,SAAS,CAACI,KAFN,EAGJH,WAAW,CAACG,KAHR,EAIJF,aAAa,CAACE,KAJV,EAKJD,WAAW,CAACC,KALR,CADD;AAQLE,IAAAA,OAAO,EAAE;AARJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\nimport analytics from '../../../quick-access-card/test/fixtures/analytics';\nimport lookAndFeel from '../../../quick-access-card/test/fixtures/look-and-feel';\nimport massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';\nimport uploadUsers from '../../../quick-access-card/test/fixtures/upload-users';\n\nexport default {\n props: {\n list: [\n cockpit.props,\n analytics.props,\n lookAndFeel.props,\n massiveBattle.props,\n uploadUsers.props\n ],\n loading: false\n }\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/loading.js"],"names":["props","list","loading"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,EADD;AAELC,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["export default {\n props: {\n list: [],\n loading: true\n }\n};\n"],"file":"loading.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/one-card.js"],"names":["cockpit","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CAACF,OAAO,CAACC,KAAT,CADD;AAELE,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\n\nexport default {\n props: {\n list: [cockpit.props],\n loading: false\n }\n};\n"],"file":"one-card.js"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import cockpit from '../../../quick-access-card/test/fixtures/default';
|
|
2
|
+
import analytics from '../../../quick-access-card/test/fixtures/analytics';
|
|
3
|
+
import massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';
|
|
4
|
+
export default {
|
|
5
|
+
props: {
|
|
6
|
+
list: [cockpit.props, analytics.props, massiveBattle.props],
|
|
7
|
+
loading: false
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=three-cards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/three-cards.js"],"names":["cockpit","analytics","massiveBattle","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AACA,OAAOC,SAAP,MAAsB,oDAAtB;AACA,OAAOC,aAAP,MAA0B,yDAA1B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CAACJ,OAAO,CAACG,KAAT,EAAgBF,SAAS,CAACE,KAA1B,EAAiCD,aAAa,CAACC,KAA/C,CADD;AAELE,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\nimport analytics from '../../../quick-access-card/test/fixtures/analytics';\nimport massiveBattle from '../../../quick-access-card/test/fixtures/massive-battle';\n\nexport default {\n props: {\n list: [cockpit.props, analytics.props, massiveBattle.props],\n loading: false\n }\n};\n"],"file":"three-cards.js"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import cockpit from '../../../quick-access-card/test/fixtures/default';
|
|
2
|
+
import analytics from '../../../quick-access-card/test/fixtures/analytics';
|
|
3
|
+
export default {
|
|
4
|
+
props: {
|
|
5
|
+
list: [cockpit.props, analytics.props],
|
|
6
|
+
loading: false
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=two-cards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/quick-access-cards-group/test/fixtures/two-cards.js"],"names":["cockpit","analytics","props","list","loading"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,kDAApB;AACA,OAAOC,SAAP,MAAsB,oDAAtB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,IAAI,EAAE,CAACH,OAAO,CAACE,KAAT,EAAgBD,SAAS,CAACC,KAA1B,CADD;AAELE,IAAAA,OAAO,EAAE;AAFJ;AADM,CAAf","sourcesContent":["import cockpit from '../../../quick-access-card/test/fixtures/default';\nimport analytics from '../../../quick-access-card/test/fixtures/analytics';\n\nexport default {\n props: {\n list: [cockpit.props, analytics.props],\n loading: false\n }\n};\n"],"file":"two-cards.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeQuickAccessCardsGroup from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureLoading from './fixtures/loading';
|
|
7
|
+
import fixtureOneCard from './fixtures/one-card';
|
|
8
|
+
import fixtureThreeCards from './fixtures/three-cards';
|
|
9
|
+
import fixtureTwoCards from './fixtures/two-cards';
|
|
10
|
+
test('Molecule › MoleculeQuickAccessCardsGroup > should have valid propTypes', t => {
|
|
11
|
+
t.pass();
|
|
12
|
+
forEach(MoleculeQuickAccessCardsGroup.propTypes, (value, key) => {
|
|
13
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeQuickAccessCardsGroup.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
test('Molecule › MoleculeQuickAccessCardsGroup › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureDefault);
|
|
17
|
+
test('Molecule › MoleculeQuickAccessCardsGroup › Loading › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureLoading);
|
|
18
|
+
test('Molecule › MoleculeQuickAccessCardsGroup › OneCard › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureOneCard);
|
|
19
|
+
test('Molecule › MoleculeQuickAccessCardsGroup › ThreeCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureThreeCards);
|
|
20
|
+
test('Molecule › MoleculeQuickAccessCardsGroup › TwoCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureTwoCards);
|
|
21
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/quick-access-cards-group/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeQuickAccessCardsGroup","fixtureDefault","fixtureLoading","fixtureOneCard","fixtureThreeCards","fixtureTwoCards","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,6BAAP,MAA0C,IAA1C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AAEAR,IAAI,CAAC,wEAAD,EAA2ES,CAAC,IAAI;AAClFA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,6BAA6B,CAACQ,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,kEAAiEF,GAAI,mEAA9F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIC,cAAjI,CAAJ;AACAJ,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIE,cAAjI,CAAJ;AACAL,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,6BAAlG,EAAiIG,cAAjI,CAAJ;AACAN,IAAI,CAAC,4EAAD,EAA+EE,oBAA/E,EAAqGC,6BAArG,EAAoII,iBAApI,CAAJ;AACAP,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,6BAAnG,EAAkIK,eAAlI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeQuickAccessCardsGroup from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureOneCard from './fixtures/one-card';\nimport fixtureThreeCards from './fixtures/three-cards';\nimport fixtureTwoCards from './fixtures/two-cards';\n\ntest('Molecule › MoleculeQuickAccessCardsGroup > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeQuickAccessCardsGroup.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeQuickAccessCardsGroup.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeQuickAccessCardsGroup › Default › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureDefault);\ntest('Molecule › MoleculeQuickAccessCardsGroup › Loading › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureLoading);\ntest('Molecule › MoleculeQuickAccessCardsGroup › OneCard › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureOneCard);\ntest('Molecule › MoleculeQuickAccessCardsGroup › ThreeCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureThreeCards);\ntest('Molecule › MoleculeQuickAccessCardsGroup › TwoCards › should be rendered', renderComponentMacro, MoleculeQuickAccessCardsGroup, fixtureTwoCards);\n"],"file":"fixtures.js"}
|
|
@@ -3,9 +3,12 @@ import forEach from 'lodash/forEach';
|
|
|
3
3
|
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
4
|
import MoleculeScopeContent from '..';
|
|
5
5
|
import fixtureArabic from './fixtures/arabic';
|
|
6
|
+
import fixtureAudio from './fixtures/audio';
|
|
6
7
|
import fixtureDefault from './fixtures/default';
|
|
7
8
|
import fixtureEmpty from './fixtures/empty';
|
|
8
9
|
import fixtureMedias from './fixtures/medias';
|
|
10
|
+
import fixturePdf from './fixtures/pdf';
|
|
11
|
+
import fixtureVimeo from './fixtures/vimeo';
|
|
9
12
|
import fixtureWithOnclick from './fixtures/with-onclick';
|
|
10
13
|
test('Molecule › MoleculeScopeContent > should have valid propTypes', t => {
|
|
11
14
|
t.pass();
|
|
@@ -14,8 +17,11 @@ test('Molecule › MoleculeScopeContent > should have valid propTypes', t => {
|
|
|
14
17
|
});
|
|
15
18
|
});
|
|
16
19
|
test('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);
|
|
20
|
+
test('Molecule › MoleculeScopeContent › Audio › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureAudio);
|
|
17
21
|
test('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);
|
|
18
22
|
test('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);
|
|
19
23
|
test('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);
|
|
24
|
+
test('Molecule › MoleculeScopeContent › Pdf › should be rendered', renderComponentMacro, MoleculeScopeContent, fixturePdf);
|
|
25
|
+
test('Molecule › MoleculeScopeContent › Vimeo › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureVimeo);
|
|
20
26
|
test('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);
|
|
21
27
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/scope-content/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeScopeContent","fixtureArabic","fixtureDefault","fixtureEmpty","fixtureMedias","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/scope-content/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeScopeContent","fixtureArabic","fixtureAudio","fixtureDefault","fixtureEmpty","fixtureMedias","fixturePdf","fixtureVimeo","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEAX,IAAI,CAAC,+DAAD,EAAkEY,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAZ,EAAAA,OAAO,CAACE,oBAAoB,CAACW,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAhB,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GC,aAA9G,CAAJ;AACAJ,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GE,YAA7G,CAAJ;AACAL,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GG,cAA/G,CAAJ;AACAN,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GI,YAA7G,CAAJ;AACAP,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,oBAAxF,EAA8GK,aAA9G,CAAJ;AACAR,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,oBAArF,EAA2GM,UAA3G,CAAJ;AACAT,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,oBAAvF,EAA6GO,YAA7G,CAAJ;AACAV,IAAI,CAAC,oEAAD,EAAuEE,oBAAvE,EAA6FC,oBAA7F,EAAmHQ,kBAAnH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeScopeContent from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureAudio from './fixtures/audio';\nimport fixtureDefault from './fixtures/default';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureMedias from './fixtures/medias';\nimport fixturePdf from './fixtures/pdf';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('Molecule › MoleculeScopeContent > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeScopeContent.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeScopeContent.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeScopeContent › Arabic › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureArabic);\ntest('Molecule › MoleculeScopeContent › Audio › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureAudio);\ntest('Molecule › MoleculeScopeContent › Default › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureDefault);\ntest('Molecule › MoleculeScopeContent › Empty › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureEmpty);\ntest('Molecule › MoleculeScopeContent › Medias › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureMedias);\ntest('Molecule › MoleculeScopeContent › Pdf › should be rendered', renderComponentMacro, MoleculeScopeContent, fixturePdf);\ntest('Molecule › MoleculeScopeContent › Vimeo › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureVimeo);\ntest('Molecule › MoleculeScopeContent › WithOnclick › should be rendered', renderComponentMacro, MoleculeScopeContent, fixtureWithOnclick);\n"],"file":"fixtures.js"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
props: {
|
|
2
|
+
props: {
|
|
3
|
+
title: 'Analytics',
|
|
4
|
+
key: 'analytics',
|
|
5
|
+
href: '#brand/samsung/analytics',
|
|
6
|
+
open: false,
|
|
7
|
+
selected: false,
|
|
8
|
+
type: 'collapsibleTab',
|
|
9
|
+
isOpen: true,
|
|
10
|
+
content: 'Hello'
|
|
11
|
+
}
|
|
3
12
|
};
|
|
4
13
|
//# sourceMappingURL=defaut.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/defaut.js"],"names":["props"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AADM,CAAf","sourcesContent":["export default {\n props: {}\n};\n"],"file":"defaut.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/defaut.js"],"names":["props","title","key","href","open","selected","type","isOpen","content"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,GAAG,EAAE,WAFA;AAGLC,IAAAA,IAAI,EAAE,0BAHD;AAILC,IAAAA,IAAI,EAAE,KAJD;AAKLC,IAAAA,QAAQ,EAAE,KALL;AAMLC,IAAAA,IAAI,EAAE,gBAND;AAOLC,IAAAA,MAAM,EAAE,IAPH;AAQLC,IAAAA,OAAO,EAAE;AARJ;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'collapsibleTab',\n isOpen: true,\n content: 'Hello'\n }\n};\n"],"file":"defaut.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js"],"names":["props","title","key","href","open","selected","type"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,GAAG,EAAE,WAFA;AAGLC,IAAAA,IAAI,EAAE,0BAHD;AAILC,IAAAA,IAAI,EAAE,KAJD;AAKLC,IAAAA,QAAQ,EAAE,KALL;AAMLC,IAAAA,IAAI,EAAE;AAND;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'iconLink'\n }\n};\n"],"file":"icon-link.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js"],"names":["props","title","key","href","open","selected","type"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,GAAG,EAAE,WAFA;AAGLC,IAAAA,IAAI,EAAE,0BAHD;AAILC,IAAAA,IAAI,EAAE,KAJD;AAKLC,IAAAA,QAAQ,EAAE,KALL;AAMLC,IAAAA,IAAI,EAAE;AAND;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'simpletab'\n }\n};\n"],"file":"simpletab.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../../../test/helpers/render-component';
|
|
4
|
+
import OrganismAccordionCoorpManagerPart from '..';
|
|
5
|
+
import fixtureDefaut from './fixtures/defaut';
|
|
6
|
+
import fixtureIconLink from './fixtures/icon-link';
|
|
7
|
+
import fixtureSimpletab from './fixtures/simpletab';
|
|
8
|
+
test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart > should have valid propTypes', t => {
|
|
9
|
+
t.pass();
|
|
10
|
+
forEach(OrganismAccordionCoorpManagerPart.propTypes, (value, key) => {
|
|
11
|
+
t.not(value, undefined, `PropType for "OrganismAccordionCoorpManager.OrganismAccordionCoorpManagerPart.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Defaut › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureDefaut);
|
|
15
|
+
test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › IconLink › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureIconLink);
|
|
16
|
+
test('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Simpletab › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureSimpletab);
|
|
17
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/organism/accordion/coorp-manager/part/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionCoorpManagerPart","fixtureDefaut","fixtureIconLink","fixtureSimpletab","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,8CAAjC;AACA,OAAOC,iCAAP,MAA8C,IAA9C;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AAEAN,IAAI,CAAC,iGAAD,EAAoGO,CAAC,IAAI;AAC3GA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,iCAAiC,CAACM,SAAnC,EAA8C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnEJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2FAA0FF,GAAI,mEAAvH;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,iCAA1H,EAA6JC,aAA7J,CAAJ;AACAJ,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,iCAA5H,EAA+JE,eAA/J,CAAJ;AACAL,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,iCAA7H,EAAgKG,gBAAhK,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../../test/helpers/render-component';\nimport OrganismAccordionCoorpManagerPart from '..';\nimport fixtureDefaut from './fixtures/defaut';\nimport fixtureIconLink from './fixtures/icon-link';\nimport fixtureSimpletab from './fixtures/simpletab';\n\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionCoorpManagerPart.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordionCoorpManager.OrganismAccordionCoorpManagerPart.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Defaut › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureDefaut);\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › IconLink › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureIconLink);\ntest('OrganismAccordionCoorpManager › OrganismAccordionCoorpManagerPart › Simpletab › should be rendered', renderComponentMacro, OrganismAccordionCoorpManagerPart, fixtureSimpletab);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../../test/helpers/render-component';
|
|
4
|
+
import OrganismAccordionCoorpManager from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
test('OrganismAccordion › OrganismAccordionCoorpManager > should have valid propTypes', t => {
|
|
7
|
+
t.pass();
|
|
8
|
+
forEach(OrganismAccordionCoorpManager.propTypes, (value, key) => {
|
|
9
|
+
t.not(value, undefined, `PropType for "OrganismAccordion.OrganismAccordionCoorpManager.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
test('OrganismAccordion › OrganismAccordionCoorpManager › Default › should be rendered', renderComponentMacro, OrganismAccordionCoorpManager, fixtureDefault);
|
|
13
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/accordion/coorp-manager/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismAccordionCoorpManager","fixtureDefault","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,cAAP,MAA2B,oBAA3B;AAEAJ,IAAI,CAAC,iFAAD,EAAoFK,CAAC,IAAI;AAC3FA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,6BAA6B,CAACI,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2EAA0EF,GAAI,mEAAvG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,6BAA3G,EAA0IC,cAA1I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport OrganismAccordionCoorpManager from '..';\nimport fixtureDefault from './fixtures/default';\n\ntest('OrganismAccordion › OrganismAccordionCoorpManager > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismAccordionCoorpManager.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"OrganismAccordion.OrganismAccordionCoorpManager.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('OrganismAccordion › OrganismAccordionCoorpManager › Default › should be rendered', renderComponentMacro, OrganismAccordionCoorpManager, fixtureDefault);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import OrganismBrandAnalytics from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
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';
|
|
11
|
+
test('Organism › OrganismBrandAnalytics > should have valid propTypes', t => {
|
|
12
|
+
t.pass();
|
|
13
|
+
forEach(OrganismBrandAnalytics.propTypes, (value, key) => {
|
|
14
|
+
t.not(value, undefined, `PropType for "Organism.OrganismBrandAnalytics.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
test('Organism › OrganismBrandAnalytics › Default › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureDefault);
|
|
18
|
+
test('Organism › OrganismBrandAnalytics › Error › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureError);
|
|
19
|
+
test('Organism › OrganismBrandAnalytics › Loading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureLoading);
|
|
20
|
+
test('Organism › OrganismBrandAnalytics › SelectedError › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedError);
|
|
21
|
+
test('Organism › OrganismBrandAnalytics › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedLoading);
|
|
22
|
+
test('Organism › OrganismBrandAnalytics › Selected › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelected);
|
|
23
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/brand-analytics/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandAnalytics","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 OrganismBrandAnalytics 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 › OrganismBrandAnalytics > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandAnalytics.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandAnalytics.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandAnalytics › Default › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureDefault);\ntest('Organism › OrganismBrandAnalytics › Error › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureError);\ntest('Organism › OrganismBrandAnalytics › Loading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureLoading);\ntest('Organism › OrganismBrandAnalytics › SelectedError › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedError);\ntest('Organism › OrganismBrandAnalytics › SelectedLoading › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelectedLoading);\ntest('Organism › OrganismBrandAnalytics › Selected › should be rendered', renderComponentMacro, OrganismBrandAnalytics, fixtureSelected);\n"],"file":"fixtures.js"}
|
|
@@ -1,21 +1,39 @@
|
|
|
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
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import Title from '../../atom/title';
|
|
6
|
+
import QuickAccessCardGroup from '../../molecule/quick-access-cards-group';
|
|
3
7
|
import style from './style.css';
|
|
4
8
|
|
|
5
9
|
const Dashboard = props => {
|
|
6
10
|
const {
|
|
7
|
-
|
|
11
|
+
header,
|
|
12
|
+
quickAccessCards
|
|
8
13
|
} = props;
|
|
9
14
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: style.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
className: style.wrapper
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Title, _extends({}, header, {
|
|
17
|
+
type: 'page'
|
|
18
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: style.sectionWrapper
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
21
|
+
title: quickAccessCards.title,
|
|
22
|
+
type: 'form-group'
|
|
23
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: style.cardsWrapper
|
|
25
|
+
}, /*#__PURE__*/React.createElement(QuickAccessCardGroup, quickAccessCards.cards))));
|
|
15
26
|
};
|
|
16
27
|
|
|
17
28
|
Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
18
|
-
|
|
29
|
+
header: PropTypes.shape({
|
|
30
|
+
title: PropTypes.string,
|
|
31
|
+
subtitle: PropTypes.string
|
|
32
|
+
}),
|
|
33
|
+
quickAccessCards: PropTypes.shape({
|
|
34
|
+
title: PropTypes.string,
|
|
35
|
+
cards: PropTypes.shape(QuickAccessCardGroup.propTypes)
|
|
36
|
+
})
|
|
19
37
|
} : {};
|
|
20
38
|
export default Dashboard;
|
|
21
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/organism/brand-dashboard/index.js"],"names":["React","PropTypes","style","Dashboard","props","
|
|
1
|
+
{"version":3,"sources":["../../../src/organism/brand-dashboard/index.js"],"names":["React","PropTypes","Title","QuickAccessCardGroup","style","Dashboard","props","header","quickAccessCards","wrapper","sectionWrapper","title","cardsWrapper","cards","propTypes","shape","string","subtitle"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,oBAAP,MAAiC,yCAAjC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,SAAS,GAAGC,KAAK,IAAI;AACzB,QAAM;AAACC,IAAAA,MAAD;AAASC,IAAAA;AAAT,MAA6BF,KAAnC;AACA,sBACE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACK;AAAtB,kBACE,8CACE,oBAAC,KAAD,eAAWF,MAAX;AAAmB,IAAA,IAAI,EAAE;AAAzB,KADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEH,KAAK,CAACM;AAAtB,kBACE,oBAAC,KAAD;AAAO,IAAA,KAAK,EAAEF,gBAAgB,CAACG,KAA/B;AAAsC,IAAA,IAAI,EAAE;AAA5C,IADF,eAEE;AAAK,IAAA,SAAS,EAAEP,KAAK,CAACQ;AAAtB,kBACE,oBAAC,oBAAD,EAA0BJ,gBAAgB,CAACK,KAA3C,CADF,CAFF,CAJF,CADF;AAaD,CAfD;;AAiBAR,SAAS,CAACS,SAAV,2CAAsB;AACpBP,EAAAA,MAAM,EAAEN,SAAS,CAACc,KAAV,CAAgB;AACtBJ,IAAAA,KAAK,EAAEV,SAAS,CAACe,MADK;AAEtBC,IAAAA,QAAQ,EAAEhB,SAAS,CAACe;AAFE,GAAhB,CADY;AAKpBR,EAAAA,gBAAgB,EAAEP,SAAS,CAACc,KAAV,CAAgB;AAChCJ,IAAAA,KAAK,EAAEV,SAAS,CAACe,MADe;AAEhCH,IAAAA,KAAK,EAAEZ,SAAS,CAACc,KAAV,CAAgBZ,oBAAoB,CAACW,SAArC;AAFyB,GAAhB;AALE,CAAtB;AAWA,eAAeT,SAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Title from '../../atom/title';\nimport QuickAccessCardGroup from '../../molecule/quick-access-cards-group';\nimport style from './style.css';\n\nconst Dashboard = props => {\n const {header, quickAccessCards} = props;\n return (\n <div className={style.wrapper}>\n <div>\n <Title {...header} type={'page'} />\n </div>\n <div className={style.sectionWrapper}>\n <Title title={quickAccessCards.title} type={'form-group'} />\n <div className={style.cardsWrapper}>\n <QuickAccessCardGroup {...quickAccessCards.cards} />\n </div>\n </div>\n </div>\n );\n};\n\nDashboard.propTypes = {\n header: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string\n }),\n quickAccessCards: PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.shape(QuickAccessCardGroup.propTypes)\n })\n};\n\nexport default Dashboard;\n"],"file":"index.js"}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
@value
|
|
2
|
-
@value
|
|
1
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
2
|
+
@value cm_tablet from breakpoints;
|
|
3
3
|
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-content: center;
|
|
9
|
-
align-items: center;
|
|
4
|
+
.wrapper {
|
|
5
|
+
margin: 0px 64px;
|
|
10
6
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
|
|
8
|
+
.sectionWrapper {
|
|
9
|
+
margin-top: 44px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cardsWrapper {
|
|
13
|
+
margin-top: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media cm_tablet {
|
|
17
|
+
.wrapper {
|
|
18
|
+
margin: 0px 32px;
|
|
19
|
+
}
|
|
23
20
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/default';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
|
-
|
|
4
|
+
header: {
|
|
5
|
+
title: 'Hello Marianna!',
|
|
6
|
+
subtitle: 'Welcome to the coorpmanager dashboard'
|
|
7
|
+
},
|
|
8
|
+
quickAccessCards: {
|
|
9
|
+
title: 'Quick Access',
|
|
10
|
+
cards: QuickAccessCardGroup.props
|
|
11
|
+
}
|
|
4
12
|
}
|
|
5
13
|
};
|
|
6
14
|
//# sourceMappingURL=default.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/organism/brand-dashboard/test/fixtures/default.js"],"names":["props","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/brand-dashboard/test/fixtures/default.js"],"names":["QuickAccessCardGroup","props","header","title","subtitle","quickAccessCards","cards"],"mappings":"AAAA,OAAOA,oBAAP,MAAiC,qEAAjC;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE;AACNC,MAAAA,KAAK,EAAE,iBADD;AAENC,MAAAA,QAAQ,EAAE;AAFJ,KADH;AAKLC,IAAAA,gBAAgB,EAAE;AAChBF,MAAAA,KAAK,EAAE,cADS;AAEhBG,MAAAA,KAAK,EAAEN,oBAAoB,CAACC;AAFZ;AALb;AADM,CAAf","sourcesContent":["import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/default';\n\nexport default {\n props: {\n header: {\n title: 'Hello Marianna!',\n subtitle: 'Welcome to the coorpmanager dashboard'\n },\n quickAccessCards: {\n title: 'Quick Access',\n cards: QuickAccessCardGroup.props\n }\n }\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/three-cards';
|
|
2
|
+
export default {
|
|
3
|
+
props: {
|
|
4
|
+
header: {
|
|
5
|
+
title: 'Hello Marianna!',
|
|
6
|
+
subtitle: 'Welcome to the coorpmanager dashboard'
|
|
7
|
+
},
|
|
8
|
+
quickAccessCards: {
|
|
9
|
+
title: 'Quick Access',
|
|
10
|
+
cards: QuickAccessCardGroup.props
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=three-cards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/brand-dashboard/test/fixtures/three-cards.js"],"names":["QuickAccessCardGroup","props","header","title","subtitle","quickAccessCards","cards"],"mappings":"AAAA,OAAOA,oBAAP,MAAiC,yEAAjC;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE;AACNC,MAAAA,KAAK,EAAE,iBADD;AAENC,MAAAA,QAAQ,EAAE;AAFJ,KADH;AAKLC,IAAAA,gBAAgB,EAAE;AAChBF,MAAAA,KAAK,EAAE,cADS;AAEhBG,MAAAA,KAAK,EAAEN,oBAAoB,CAACC;AAFZ;AALb;AADM,CAAf","sourcesContent":["import QuickAccessCardGroup from '../../../../molecule/quick-access-cards-group/test/fixtures/three-cards';\n\nexport default {\n props: {\n header: {\n title: 'Hello Marianna!',\n subtitle: 'Welcome to the coorpmanager dashboard'\n },\n quickAccessCards: {\n title: 'Quick Access',\n cards: QuickAccessCardGroup.props\n }\n }\n};\n"],"file":"three-cards.js"}
|