@coorpacademy/components 10.13.11 → 10.13.14
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-text-with-title/index.js +2 -2
- package/es/atom/input-text-with-title/index.js.map +1 -1
- package/es/molecule/brand-form-group/index.js +4 -0
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/test/fixtures/title-and-checkbox-wrapper.js +16 -0
- package/es/molecule/brand-form-group/test/fixtures/title-and-checkbox-wrapper.js.map +1 -0
- package/es/molecule/brand-form-group/test/fixtures.js +2 -0
- package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
- package/es/molecule/course-sections/index.js +15 -8
- package/es/molecule/course-sections/index.js.map +1 -1
- package/es/molecule/course-sections/style.css +0 -4
- package/es/molecule/drag-and-drop-wrapper/index.js +1 -4
- package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/style.css +0 -4
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/without-checkbox.js +11 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/without-checkbox.js.map +1 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +2 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -1
- package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js +15 -0
- package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
- package/es/molecule/search/test/fixtures.js +15 -0
- package/es/molecule/search/test/fixtures.js.map +1 -0
- package/es/molecule/skill-card/index.js +87 -0
- package/es/molecule/skill-card/index.js.map +1 -0
- package/es/molecule/skill-card/style.css +60 -0
- package/es/molecule/skill-card/test/fixtures/custom-skill.js +10 -0
- package/es/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/default.js +15 -0
- package/es/molecule/skill-card/test/fixtures/default.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/no-aria-labels.js +12 -0
- package/es/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures/short-skill-title.js +10 -0
- package/es/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
- package/es/molecule/skill-card/test/fixtures.js +19 -0
- package/es/molecule/skill-card/test/fixtures.js.map +1 -0
- package/es/molecule/skill-card/test/skill-card.js +90 -0
- package/es/molecule/skill-card/test/skill-card.js.map +1 -0
- package/es/molecule/title-and-checkbox-wrapper/index.js +41 -0
- package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -0
- package/es/molecule/title-and-checkbox-wrapper/style.css +6 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/default.js +11 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/default.js.map +1 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-checkbox.js +13 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-checkbox.js.map +1 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-without-title.js +11 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-without-title.js.map +1 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/input-text-title.js +14 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures/input-text-title.js.map +1 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js +19 -0
- package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +1 -0
- package/es/organism/brand-form/test/fixtures/wizard-certification.js +57 -0
- package/es/organism/brand-form/test/fixtures/wizard-certification.js.map +1 -0
- package/es/organism/brand-form/test/fixtures.js +2 -0
- package/es/organism/brand-form/test/fixtures.js.map +1 -1
- package/es/organism/playlist-translation/test/fixtures.js +15 -0
- package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/es/organism/rewards-form/index.js +6 -14
- package/es/organism/rewards-form/index.js.map +1 -1
- package/es/organism/rewards-form/test/fixtures/default.js +24 -8
- package/es/organism/rewards-form/test/fixtures/default.js.map +1 -1
- package/es/organism/rewards-form/test/fixtures/one-reward.js +5 -3
- package/es/organism/rewards-form/test/fixtures/one-reward.js.map +1 -1
- package/es/organism/rewards-form/test/fixtures/two-rewards.js +10 -6
- package/es/organism/rewards-form/test/fixtures/two-rewards.js.map +1 -1
- package/es/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js +37 -0
- package/es/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js.map +1 -0
- package/es/organism/wizard-contents/test/fixtures.js +2 -0
- package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
- package/es/template/app-player/popin-correction/index.js +3 -3
- package/es/template/app-player/popin-correction/index.js.map +1 -1
- package/es/template/app-player/popin-correction/style.css +0 -4
- package/es/variables/colors.css +1 -0
- package/lib/atom/input-text-with-title/index.js +2 -2
- package/lib/atom/input-text-with-title/index.js.map +1 -1
- package/lib/molecule/brand-form-group/index.js +5 -0
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/test/fixtures/title-and-checkbox-wrapper.js +25 -0
- package/lib/molecule/brand-form-group/test/fixtures/title-and-checkbox-wrapper.js.map +1 -0
- package/lib/molecule/brand-form-group/test/fixtures.js +3 -0
- package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
- package/lib/molecule/course-sections/index.js +16 -8
- package/lib/molecule/course-sections/index.js.map +1 -1
- package/lib/molecule/course-sections/style.css +0 -4
- package/lib/molecule/drag-and-drop-wrapper/index.js +1 -4
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/style.css +0 -4
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/without-checkbox.js +20 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/without-checkbox.js.map +1 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +3 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -1
- package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js +25 -0
- package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
- package/lib/molecule/search/test/fixtures.js +25 -0
- package/lib/molecule/search/test/fixtures.js.map +1 -0
- package/lib/molecule/skill-card/index.js +105 -0
- package/lib/molecule/skill-card/index.js.map +1 -0
- package/lib/molecule/skill-card/style.css +60 -0
- package/lib/molecule/skill-card/test/fixtures/custom-skill.js +17 -0
- package/lib/molecule/skill-card/test/fixtures/custom-skill.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/default.js +21 -0
- package/lib/molecule/skill-card/test/fixtures/default.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js +18 -0
- package/lib/molecule/skill-card/test/fixtures/no-aria-labels.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures/short-skill-title.js +17 -0
- package/lib/molecule/skill-card/test/fixtures/short-skill-title.js.map +1 -0
- package/lib/molecule/skill-card/test/fixtures.js +31 -0
- package/lib/molecule/skill-card/test/fixtures.js.map +1 -0
- package/lib/molecule/skill-card/test/skill-card.js +102 -0
- package/lib/molecule/skill-card/test/skill-card.js.map +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.js +56 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/style.css +6 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/default.js +20 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/default.js.map +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-checkbox.js +23 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-checkbox.js.map +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-without-title.js +20 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-without-title.js.map +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/input-text-title.js +23 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures/input-text-title.js.map +1 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js +31 -0
- package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +1 -0
- package/lib/organism/brand-form/test/fixtures/wizard-certification.js +66 -0
- package/lib/organism/brand-form/test/fixtures/wizard-certification.js.map +1 -0
- package/lib/organism/brand-form/test/fixtures.js +3 -0
- package/lib/organism/brand-form/test/fixtures.js.map +1 -1
- package/lib/organism/playlist-translation/test/fixtures.js +25 -0
- package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
- package/lib/organism/rewards-form/index.js +6 -16
- package/lib/organism/rewards-form/index.js.map +1 -1
- package/lib/organism/rewards-form/test/fixtures/default.js +25 -8
- package/lib/organism/rewards-form/test/fixtures/default.js.map +1 -1
- package/lib/organism/rewards-form/test/fixtures/one-reward.js +5 -3
- package/lib/organism/rewards-form/test/fixtures/one-reward.js.map +1 -1
- package/lib/organism/rewards-form/test/fixtures/two-rewards.js +10 -6
- package/lib/organism/rewards-form/test/fixtures/two-rewards.js.map +1 -1
- package/lib/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js +46 -0
- package/lib/organism/wizard-contents/test/fixtures/certification-general-settings-edit.js.map +1 -0
- package/lib/organism/wizard-contents/test/fixtures.js +3 -0
- package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
- package/lib/template/app-player/popin-correction/index.js +3 -3
- package/lib/template/app-player/popin-correction/index.js.map +1 -1
- package/lib/template/app-player/popin-correction/style.css +0 -4
- package/lib/variables/colors.css +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/default.js"],"names":["defaultProps","skillTitle","skillAriaLabel","buttonLabel","buttonAriaLabel","reviseLabel","reviseAriaLabel","isCustom","undefined","onClick","console","log","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,cAAc,EAAE,kBAHU;AAI1BC,EAAAA,WAAW,EAAE,mBAJa;AAK1BC,EAAAA,eAAe,EAAE,mBALS;AAM1BC,EAAAA,WAAW,EAAE,wBANa;AAO1BC,EAAAA,eAAe,EAAE,mBAPS;AAQ1BC,EAAAA,QAAQ,EAAEC,SARgB;AAS1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,QAAZ;AATW,CAArB;AAYP,eAAe;AACbC,EAAAA,KAAK,EAAEZ;AADM,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n skillAriaLabel: 'Skill aria label',\n buttonLabel: 'Revise this skill',\n buttonAriaLabel: 'Button aria label',\n reviseLabel: '75 questions to revise',\n reviseAriaLabel: 'revise aria label',\n isCustom: undefined,\n onClick: () => console.log('revise')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const defaultProps = {
|
|
2
|
+
'aria-label': 'Skill Card',
|
|
3
|
+
skillTitle: 'Critical thinking and analysis',
|
|
4
|
+
buttonLabel: 'Revise this skill',
|
|
5
|
+
reviseLabel: '75 questions to revise',
|
|
6
|
+
isCustom: undefined,
|
|
7
|
+
onClick: () => console.log('revise - no aria')
|
|
8
|
+
};
|
|
9
|
+
export default {
|
|
10
|
+
props: defaultProps
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=no-aria-labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/no-aria-labels.js"],"names":["defaultProps","skillTitle","buttonLabel","reviseLabel","isCustom","undefined","onClick","console","log","props"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;AAC1B,gBAAc,YADY;AAE1BC,EAAAA,UAAU,EAAE,gCAFc;AAG1BC,EAAAA,WAAW,EAAE,mBAHa;AAI1BC,EAAAA,WAAW,EAAE,wBAJa;AAK1BC,EAAAA,QAAQ,EAAEC,SALgB;AAM1BC,EAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,kBAAZ;AANW,CAArB;AASP,eAAe;AACbC,EAAAA,KAAK,EAAET;AADM,CAAf","sourcesContent":["export const defaultProps = {\n 'aria-label': 'Skill Card',\n skillTitle: 'Critical thinking and analysis',\n buttonLabel: 'Revise this skill',\n reviseLabel: '75 questions to revise',\n isCustom: undefined,\n onClick: () => console.log('revise - no aria')\n};\n\nexport default {\n props: defaultProps\n};\n"],"file":"no-aria-labels.js"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import { defaultProps } from './default';
|
|
4
|
+
export default {
|
|
5
|
+
props: _extends(_extends({}, defaultProps), {}, {
|
|
6
|
+
skillTitle: 'Agility',
|
|
7
|
+
isCustom: false
|
|
8
|
+
})
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=short-skill-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/skill-card/test/fixtures/short-skill-title.js"],"names":["defaultProps","props","skillTitle","isCustom"],"mappings":";;AAAA,SAAQA,YAAR,QAA2B,WAA3B;AAEA,eAAe;AACbC,EAAAA,KAAK,wBAAMD,YAAN;AAAoBE,IAAAA,UAAU,EAAE,SAAhC;AAA2CC,IAAAA,QAAQ,EAAE;AAArD;AADQ,CAAf","sourcesContent":["import {defaultProps} from './default';\n\nexport default {\n props: {...defaultProps, skillTitle: 'Agility', isCustom: false}\n};\n"],"file":"short-skill-title.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeSkillCard from '..';
|
|
5
|
+
import fixtureCustomSkill from './fixtures/custom-skill';
|
|
6
|
+
import fixtureDefault from './fixtures/default';
|
|
7
|
+
import fixtureNoAriaLabels from './fixtures/no-aria-labels';
|
|
8
|
+
import fixtureShortSkillTitle from './fixtures/short-skill-title';
|
|
9
|
+
test('Molecule › MoleculeSkillCard > should have valid propTypes', t => {
|
|
10
|
+
t.pass();
|
|
11
|
+
forEach(MoleculeSkillCard.propTypes, (value, key) => {
|
|
12
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeSkillCard.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
test('Molecule › MoleculeSkillCard › CustomSkill › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureCustomSkill);
|
|
16
|
+
test('Molecule › MoleculeSkillCard › Default › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureDefault);
|
|
17
|
+
test('Molecule › MoleculeSkillCard › NoAriaLabels › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureNoAriaLabels);
|
|
18
|
+
test('Molecule › MoleculeSkillCard › ShortSkillTitle › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureShortSkillTitle);
|
|
19
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/skill-card/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeSkillCard","fixtureCustomSkill","fixtureDefault","fixtureNoAriaLabels","fixtureShortSkillTitle","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,iBAAP,MAA8B,IAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,mBAAP,MAAgC,2BAAhC;AACA,OAAOC,sBAAP,MAAmC,8BAAnC;AAEAP,IAAI,CAAC,4DAAD,EAA+DQ,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,iBAAiB,CAACO,SAAnB,EAA8B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,iEAAD,EAAoEE,oBAApE,EAA0FC,iBAA1F,EAA6GC,kBAA7G,CAAJ;AACAJ,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,iBAAtF,EAAyGE,cAAzG,CAAJ;AACAL,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,iBAA3F,EAA8GG,mBAA9G,CAAJ;AACAN,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,iBAA9F,EAAiHI,sBAAjH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSkillCard from '..';\nimport fixtureCustomSkill from './fixtures/custom-skill';\nimport fixtureDefault from './fixtures/default';\nimport fixtureNoAriaLabels from './fixtures/no-aria-labels';\nimport fixtureShortSkillTitle from './fixtures/short-skill-title';\n\ntest('Molecule › MoleculeSkillCard > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSkillCard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSkillCard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSkillCard › CustomSkill › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureCustomSkill);\ntest('Molecule › MoleculeSkillCard › Default › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureDefault);\ntest('Molecule › MoleculeSkillCard › NoAriaLabels › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureNoAriaLabels);\ntest('Molecule › MoleculeSkillCard › ShortSkillTitle › should be rendered', renderComponentMacro, MoleculeSkillCard, fixtureShortSkillTitle);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import browserEnv from 'browser-env';
|
|
4
|
+
import test from 'ava';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { mount, configure } from 'enzyme';
|
|
7
|
+
import Adapter from 'enzyme-adapter-react-16';
|
|
8
|
+
import SkillCard from '..';
|
|
9
|
+
import customSkillFixture from './fixtures/custom-skill';
|
|
10
|
+
import noAriaLabelsFixtures from './fixtures/no-aria-labels';
|
|
11
|
+
browserEnv();
|
|
12
|
+
configure({
|
|
13
|
+
adapter: new Adapter()
|
|
14
|
+
});
|
|
15
|
+
test('onClick should be reachable, should match given aria-label', t => {
|
|
16
|
+
let buttonWasClicked = false;
|
|
17
|
+
customSkillFixture.props = _extends(_extends({}, customSkillFixture.props), {}, {
|
|
18
|
+
onClick: () => {
|
|
19
|
+
buttonWasClicked = true;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, customSkillFixture.props));
|
|
23
|
+
const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
24
|
+
t.true(cardWrapper.at(0).exists());
|
|
25
|
+
t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');
|
|
26
|
+
const skillTitle = cardWrapper.find('[data-name="skill-title"]');
|
|
27
|
+
t.true(skillTitle.at(0).exists());
|
|
28
|
+
t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');
|
|
29
|
+
const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
|
|
30
|
+
t.true(questionsLabel.at(0).exists());
|
|
31
|
+
t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');
|
|
32
|
+
const buttonLink = cardWrapper.find('[data-name="skill-card-button"]');
|
|
33
|
+
t.true(buttonLink.at(0).exists());
|
|
34
|
+
t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');
|
|
35
|
+
buttonLink.at(0).simulate('click', {});
|
|
36
|
+
t.true(buttonWasClicked);
|
|
37
|
+
t.pass();
|
|
38
|
+
});
|
|
39
|
+
test('onHover should change button text color && backgroundColor', t => {
|
|
40
|
+
const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, customSkillFixture.props));
|
|
41
|
+
const expectedStyleNoHover = {
|
|
42
|
+
backgroundColor: 'rgba(0, 176, 255, 0.07)',
|
|
43
|
+
color: '#00B0FF',
|
|
44
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
45
|
+
};
|
|
46
|
+
const expectedStyleOnHover = {
|
|
47
|
+
backgroundColor: '#00B0FF',
|
|
48
|
+
color: '#FFFFFF',
|
|
49
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
50
|
+
};
|
|
51
|
+
let cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
52
|
+
t.true(cardWrapper.at(0).exists());
|
|
53
|
+
let buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
|
|
54
|
+
t.true(buttonWrapper.at(0).exists());
|
|
55
|
+
let buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
|
|
56
|
+
t.true(buttonLink.at(0).exists());
|
|
57
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover); // hover
|
|
58
|
+
|
|
59
|
+
buttonWrapper.simulate('mouseover');
|
|
60
|
+
wrapper.update();
|
|
61
|
+
cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
62
|
+
buttonWrapper = cardWrapper.find('[data-name="button-wrapper"]');
|
|
63
|
+
t.true(buttonWrapper.at(0).exists());
|
|
64
|
+
buttonLink = buttonWrapper.find('[data-name="skill-card-button"] button');
|
|
65
|
+
t.true(buttonLink.at(0).exists());
|
|
66
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover); // leave hover
|
|
67
|
+
|
|
68
|
+
buttonWrapper.simulate('mouseleave');
|
|
69
|
+
wrapper.update();
|
|
70
|
+
buttonLink = wrapper.find('[data-name="skill-card-button"] button');
|
|
71
|
+
t.true(buttonLink.at(0).exists());
|
|
72
|
+
t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);
|
|
73
|
+
t.pass();
|
|
74
|
+
});
|
|
75
|
+
test('should use default aria-labels if aria-label props are not provided', t => {
|
|
76
|
+
const wrapper = mount( /*#__PURE__*/React.createElement(SkillCard, noAriaLabelsFixtures.props));
|
|
77
|
+
const cardWrapper = wrapper.find('[data-name="skill-card-wrapper"]');
|
|
78
|
+
t.true(cardWrapper.at(0).exists());
|
|
79
|
+
const skillTitle = cardWrapper.find('[data-name="skill-title"]');
|
|
80
|
+
t.true(skillTitle.at(0).exists());
|
|
81
|
+
t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');
|
|
82
|
+
const questionsLabel = cardWrapper.find('[data-name="questions-to-revise-label"]');
|
|
83
|
+
t.true(questionsLabel.at(0).exists());
|
|
84
|
+
t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');
|
|
85
|
+
const buttonLink = cardWrapper.find('[data-name="skill-card-button"] button');
|
|
86
|
+
t.true(buttonLink.at(0).exists());
|
|
87
|
+
t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');
|
|
88
|
+
t.pass();
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=skill-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/skill-card/test/skill-card.js"],"names":["browserEnv","test","React","mount","configure","Adapter","SkillCard","customSkillFixture","noAriaLabelsFixtures","adapter","t","buttonWasClicked","props","onClick","wrapper","cardWrapper","find","true","at","exists","is","skillTitle","questionsLabel","buttonLink","simulate","pass","expectedStyleNoHover","backgroundColor","color","transition","expectedStyleOnHover","buttonWrapper","deepEqual","style","update"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,aAAvB;AACA,OAAOC,IAAP,MAAiB,KAAjB;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,KAAR,EAAeC,SAAf,QAA+B,QAA/B;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,SAAP,MAAsB,IAAtB;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,oBAAP,MAAiC,2BAAjC;AAEAR,UAAU;AACVI,SAAS,CAAC;AAACK,EAAAA,OAAO,EAAE,IAAIJ,OAAJ;AAAV,CAAD,CAAT;AAEAJ,IAAI,CAAC,4DAAD,EAA+DS,CAAC,IAAI;AACtE,MAAIC,gBAAgB,GAAG,KAAvB;AACAJ,EAAAA,kBAAkB,CAACK,KAAnB,yBACKL,kBAAkB,CAACK,KADxB;AAEEC,IAAAA,OAAO,EAAE,MAAM;AACbF,MAAAA,gBAAgB,GAAG,IAAnB;AACD;AAJH;AAMA,QAAMG,OAAO,GAAGX,KAAK,eAAC,oBAAC,SAAD,EAAeI,kBAAkB,CAACK,KAAlC,CAAD,CAArB;AAEA,QAAMG,WAAW,GAAGD,OAAO,CAACE,IAAR,CAAa,kCAAb,CAApB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOF,WAAW,CAACG,EAAZ,CAAe,CAAf,EAAkBC,MAAlB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAK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,EAA6C,gCAA7C;AAEA,QAAMU,cAAc,GAAGP,WAAW,CAACC,IAAZ,CAAiB,yCAAjB,CAAvB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOK,cAAc,CAACJ,EAAf,CAAkB,CAAlB,EAAqBC,MAArB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAKE,cAAc,CAACJ,EAAf,CAAkB,CAAlB,EAAqBN,KAArB,GAA6B,YAA7B,CAAL,EAAiD,wBAAjD;AAEA,QAAMW,UAAU,GAAGR,WAAW,CAACC,IAAZ,CAAiB,wCAAjB,CAAnB;AACAN,EAAAA,CAAC,CAACO,IAAF,CAAOM,UAAU,CAACL,EAAX,CAAc,CAAd,EAAiBC,MAAjB,EAAP;AACAT,EAAAA,CAAC,CAACU,EAAF,CAAKG,UAAU,CAACL,EAAX,CAAc,CAAd,EAAiBN,KAAjB,GAAyB,YAAzB,CAAL,EAA6C,mBAA7C;AAEAF,EAAAA,CAAC,CAACe,IAAF;AACD,CAnBG,CAAJ","sourcesContent":["import browserEnv from 'browser-env';\nimport test from 'ava';\nimport React from 'react';\nimport {mount, configure} from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\nimport SkillCard from '..';\nimport customSkillFixture from './fixtures/custom-skill';\nimport noAriaLabelsFixtures from './fixtures/no-aria-labels';\n\nbrowserEnv();\nconfigure({adapter: new Adapter()});\n\ntest('onClick should be reachable, should match given aria-label', t => {\n let buttonWasClicked = false;\n customSkillFixture.props = {\n ...customSkillFixture.props,\n onClick: () => {\n buttonWasClicked = true;\n }\n };\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n t.is(cardWrapper.at(0).props()['aria-label'], 'Skill Card');\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Skill aria label');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], 'revise aria label');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"]');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Button aria label');\n buttonLink.at(0).simulate('click', {});\n t.true(buttonWasClicked);\n\n t.pass();\n});\n\ntest('onHover should change button text color && backgroundColor', t => {\n const wrapper = mount(<SkillCard {...customSkillFixture.props} />);\n\n const expectedStyleNoHover = {\n backgroundColor: 'rgba(0, 176, 255, 0.07)',\n color: '#00B0FF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n const expectedStyleOnHover = {\n backgroundColor: '#00B0FF',\n color: '#FFFFFF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n };\n\n let cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n let buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n let buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n // hover\n buttonWrapper.simulate('mouseover');\n\n wrapper.update();\n cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n buttonWrapper = cardWrapper.find('[data-name=\"button-wrapper\"]');\n t.true(buttonWrapper.at(0).exists());\n buttonLink = buttonWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleOnHover);\n\n // leave hover\n buttonWrapper.simulate('mouseleave');\n\n wrapper.update();\n\n buttonLink = wrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.deepEqual(buttonLink.at(0).props().style, expectedStyleNoHover);\n\n t.pass();\n});\n\ntest('should use default aria-labels if aria-label props are not provided', t => {\n const wrapper = mount(<SkillCard {...noAriaLabelsFixtures.props} />);\n\n const cardWrapper = wrapper.find('[data-name=\"skill-card-wrapper\"]');\n t.true(cardWrapper.at(0).exists());\n\n const skillTitle = cardWrapper.find('[data-name=\"skill-title\"]');\n t.true(skillTitle.at(0).exists());\n t.is(skillTitle.at(0).props()['aria-label'], 'Critical thinking and analysis');\n\n const questionsLabel = cardWrapper.find('[data-name=\"questions-to-revise-label\"]');\n t.true(questionsLabel.at(0).exists());\n t.is(questionsLabel.at(0).props()['aria-label'], '75 questions to revise');\n\n const buttonLink = cardWrapper.find('[data-name=\"skill-card-button\"] button');\n t.true(buttonLink.at(0).exists());\n t.is(buttonLink.at(0).props()['aria-label'], 'Revise this skill');\n\n t.pass();\n});\n"],"file":"skill-card.js"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import InputTextWithTitle from '../../atom/input-text-with-title';
|
|
6
|
+
import CheckboxWithTitle from '../../atom/checkbox-with-title';
|
|
7
|
+
import Title from '../../atom/title';
|
|
8
|
+
import DragAndDropWrapper from '../drag-and-drop-wrapper';
|
|
9
|
+
import style from './style.css';
|
|
10
|
+
const CHILD = {
|
|
11
|
+
'input-text': InputTextWithTitle,
|
|
12
|
+
'drag-and-drop-wrapper': DragAndDropWrapper
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const TitleAndCheckBoxWrapper = props => {
|
|
16
|
+
const {
|
|
17
|
+
checkboxWithTitle,
|
|
18
|
+
child,
|
|
19
|
+
sectionTitle
|
|
20
|
+
} = props;
|
|
21
|
+
const Child = CHILD[child.childType];
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", null, checkboxWithTitle ? /*#__PURE__*/React.createElement(CheckboxWithTitle, checkboxWithTitle) : null, sectionTitle ? /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: style.sectionTitle
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Title, _extends({}, sectionTitle, {
|
|
25
|
+
type: 'form-group'
|
|
26
|
+
}))) : null, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: checkboxWithTitle || sectionTitle ? style.child : null
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Child, child)));
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
TitleAndCheckBoxWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
32
|
+
checkboxWithTitle: PropTypes.shape(CheckboxWithTitle.propTypes),
|
|
33
|
+
sectionTitle: PropTypes.shape(Title.propTypes),
|
|
34
|
+
child: PropTypes.oneOfType([PropTypes.shape(_extends(_extends({}, InputTextWithTitle.propTypes), {}, {
|
|
35
|
+
childType: PropTypes.oneOf(['input-text'])
|
|
36
|
+
})), PropTypes.shape(_extends(_extends({}, DragAndDropWrapper.propTypes), {}, {
|
|
37
|
+
childType: PropTypes.oneOf(['drag-and-drop-wrapper'])
|
|
38
|
+
}))])
|
|
39
|
+
} : {};
|
|
40
|
+
export default TitleAndCheckBoxWrapper;
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/molecule/title-and-checkbox-wrapper/index.js"],"names":["React","PropTypes","InputTextWithTitle","CheckboxWithTitle","Title","DragAndDropWrapper","style","CHILD","TitleAndCheckBoxWrapper","props","checkboxWithTitle","child","sectionTitle","Child","childType","propTypes","shape","oneOfType","oneOf"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OA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B,CAACU,SADxB;AAEED,IAAAA,SAAS,EAAEb,SAAS,CAACiB,KAAV,CAAgB,CAAC,uBAAD,CAAhB;AAFb,KALyB,CAApB;AAH2B,CAApC;AAcA,eAAeV,uBAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport InputTextWithTitle from '../../atom/input-text-with-title';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport Title from '../../atom/title';\nimport DragAndDropWrapper from '../drag-and-drop-wrapper';\nimport style from './style.css';\n\nconst CHILD = {\n 'input-text': InputTextWithTitle,\n 'drag-and-drop-wrapper': DragAndDropWrapper\n};\nconst TitleAndCheckBoxWrapper = props => {\n const {checkboxWithTitle, child, sectionTitle} = props;\n\n const Child = CHILD[child.childType];\n return (\n <div>\n {checkboxWithTitle ? <CheckboxWithTitle {...checkboxWithTitle} /> : null}\n {sectionTitle ? (\n <div className={style.sectionTitle}>\n <Title {...sectionTitle} type={'form-group'} />\n </div>\n ) : null}\n <div className={checkboxWithTitle || sectionTitle ? style.child : null}>\n <Child {...child} />\n </div>\n </div>\n );\n};\n\nTitleAndCheckBoxWrapper.propTypes = {\n checkboxWithTitle: PropTypes.shape(CheckboxWithTitle.propTypes),\n sectionTitle: PropTypes.shape(Title.propTypes),\n child: PropTypes.oneOfType([\n PropTypes.shape({\n ...InputTextWithTitle.propTypes,\n childType: PropTypes.oneOf(['input-text'])\n }),\n PropTypes.shape({\n ...DragAndDropWrapper.propTypes,\n childType: PropTypes.oneOf(['drag-and-drop-wrapper'])\n })\n ])\n};\nexport default TitleAndCheckBoxWrapper;\n"],"file":"index.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import InputTextwithTitle from '../../../../atom/input-text-with-title/test/fixtures/error';
|
|
4
|
+
export default {
|
|
5
|
+
props: {
|
|
6
|
+
child: _extends(_extends({}, InputTextwithTitle.props), {}, {
|
|
7
|
+
childType: 'input-text'
|
|
8
|
+
})
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/title-and-checkbox-wrapper/test/fixtures/default.js"],"names":["InputTextwithTitle","props","child","childType"],"mappings":";;AAAA,OAAOA,kBAAP,MAA+B,4DAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,wBACAF,kBAAkB,CAACC,KADnB;AAEHE,MAAAA,SAAS,EAAE;AAFR;AADA;AADM,CAAf","sourcesContent":["import InputTextwithTitle from '../../../../atom/input-text-with-title/test/fixtures/error';\n\nexport default {\n props: {\n child: {\n ...InputTextwithTitle.props,\n childType: 'input-text'\n }\n }\n};\n"],"file":"default.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import DragDrop from '../../../drag-and-drop-wrapper/test/fixtures/two-drag-and-drops';
|
|
4
|
+
import CheckboxWithTitle from '../../../../atom/checkbox-with-title/test/fixtures/checked';
|
|
5
|
+
export default {
|
|
6
|
+
props: {
|
|
7
|
+
checkboxWithTitle: CheckboxWithTitle.props,
|
|
8
|
+
child: _extends(_extends({}, DragDrop.props), {}, {
|
|
9
|
+
childType: 'drag-and-drop-wrapper'
|
|
10
|
+
})
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=drag-drop-checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-checkbox.js"],"names":["DragDrop","CheckboxWithTitle","props","checkboxWithTitle","child","childType"],"mappings":";;AAAA,OAAOA,QAAP,MAAqB,iEAArB;AACA,OAAOC,iBAAP,MAA8B,4DAA9B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,iBAAiB,EAAEF,iBAAiB,CAACC,KADhC;AAELE,IAAAA,KAAK,wBACAJ,QAAQ,CAACE,KADT;AAEHG,MAAAA,SAAS,EAAE;AAFR;AAFA;AADM,CAAf","sourcesContent":["import DragDrop from '../../../drag-and-drop-wrapper/test/fixtures/two-drag-and-drops';\nimport CheckboxWithTitle from '../../../../atom/checkbox-with-title/test/fixtures/checked';\n\nexport default {\n props: {\n checkboxWithTitle: CheckboxWithTitle.props,\n child: {\n ...DragDrop.props,\n childType: 'drag-and-drop-wrapper'\n }\n }\n};\n"],"file":"drag-drop-checkbox.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import DragDrop from '../../../drag-and-drop-wrapper/test/fixtures/default';
|
|
4
|
+
export default {
|
|
5
|
+
props: {
|
|
6
|
+
child: _extends(_extends({}, DragDrop.props), {}, {
|
|
7
|
+
childType: 'drag-and-drop-wrapper'
|
|
8
|
+
})
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=drag-drop-without-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-without-title.js"],"names":["DragDrop","props","child","childType"],"mappings":";;AAAA,OAAOA,QAAP,MAAqB,sDAArB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,wBACAF,QAAQ,CAACC,KADT;AAEHE,MAAAA,SAAS,EAAE;AAFR;AADA;AADM,CAAf","sourcesContent":["import DragDrop from '../../../drag-and-drop-wrapper/test/fixtures/default';\n\nexport default {\n props: {\n child: {\n ...DragDrop.props,\n childType: 'drag-and-drop-wrapper'\n }\n }\n};\n"],"file":"drag-drop-without-title.js"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import InputText from '../../../../atom/input-text-with-title/test/fixtures/error';
|
|
4
|
+
export default {
|
|
5
|
+
props: {
|
|
6
|
+
sectionTitle: {
|
|
7
|
+
title: 'This is title'
|
|
8
|
+
},
|
|
9
|
+
child: _extends(_extends({}, InputText.props), {}, {
|
|
10
|
+
childType: 'input-text'
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=input-text-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/title-and-checkbox-wrapper/test/fixtures/input-text-title.js"],"names":["InputText","props","sectionTitle","title","child","childType"],"mappings":";;AAAA,OAAOA,SAAP,MAAsB,4DAAtB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AAACC,MAAAA,KAAK,EAAE;AAAR,KADT;AAELC,IAAAA,KAAK,wBACAJ,SAAS,CAACC,KADV;AAEHI,MAAAA,SAAS,EAAE;AAFR;AAFA;AADM,CAAf","sourcesContent":["import InputText from '../../../../atom/input-text-with-title/test/fixtures/error';\n\nexport default {\n props: {\n sectionTitle: {title: 'This is title'},\n child: {\n ...InputText.props,\n childType: 'input-text'\n }\n }\n};\n"],"file":"input-text-title.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import MoleculeTitleAndCheckboxWrapper from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureDragDropCheckbox from './fixtures/drag-drop-checkbox';
|
|
7
|
+
import fixtureDragDropWithoutTitle from './fixtures/drag-drop-without-title';
|
|
8
|
+
import fixtureInputTextTitle from './fixtures/input-text-title';
|
|
9
|
+
test('Molecule › MoleculeTitleAndCheckboxWrapper > should have valid propTypes', t => {
|
|
10
|
+
t.pass();
|
|
11
|
+
forEach(MoleculeTitleAndCheckboxWrapper.propTypes, (value, key) => {
|
|
12
|
+
t.not(value, undefined, `PropType for "Molecule.MoleculeTitleAndCheckboxWrapper.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
test('Molecule › MoleculeTitleAndCheckboxWrapper › Default › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureDefault);
|
|
16
|
+
test('Molecule › MoleculeTitleAndCheckboxWrapper › DragDropCheckbox › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureDragDropCheckbox);
|
|
17
|
+
test('Molecule › MoleculeTitleAndCheckboxWrapper › DragDropWithoutTitle › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureDragDropWithoutTitle);
|
|
18
|
+
test('Molecule › MoleculeTitleAndCheckboxWrapper › InputTextTitle › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureInputTextTitle);
|
|
19
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/title-and-checkbox-wrapper/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeTitleAndCheckboxWrapper","fixtureDefault","fixtureDragDropCheckbox","fixtureDragDropWithoutTitle","fixtureInputTextTitle","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,+BAAP,MAA4C,IAA5C;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,2BAAP,MAAwC,oCAAxC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AAEAP,IAAI,CAAC,0EAAD,EAA6EQ,CAAC,IAAI;AACpFA,EAAAA,CAAC,CAACC,IAAF;AACAR,EAAAA,OAAO,CAACE,+BAA+B,CAACO,SAAjC,EAA4C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACjEJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,oEAAmEF,GAAI,mEAAhG;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAZ,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,+BAApG,EAAqIC,cAArI,CAAJ;AACAJ,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,+BAA7G,EAA8IE,uBAA9I,CAAJ;AACAL,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,+BAAjH,EAAkJG,2BAAlJ,CAAJ;AACAN,IAAI,CAAC,kFAAD,EAAqFE,oBAArF,EAA2GC,+BAA3G,EAA4II,qBAA5I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeTitleAndCheckboxWrapper from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDragDropCheckbox from './fixtures/drag-drop-checkbox';\nimport fixtureDragDropWithoutTitle from './fixtures/drag-drop-without-title';\nimport fixtureInputTextTitle from './fixtures/input-text-title';\n\ntest('Molecule › MoleculeTitleAndCheckboxWrapper > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeTitleAndCheckboxWrapper.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeTitleAndCheckboxWrapper.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeTitleAndCheckboxWrapper › Default › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureDefault);\ntest('Molecule › MoleculeTitleAndCheckboxWrapper › DragDropCheckbox › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureDragDropCheckbox);\ntest('Molecule › MoleculeTitleAndCheckboxWrapper › DragDropWithoutTitle › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureDragDropWithoutTitle);\ntest('Molecule › MoleculeTitleAndCheckboxWrapper › InputTextTitle › should be rendered', renderComponentMacro, MoleculeTitleAndCheckboxWrapper, fixtureInputTextTitle);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import SetupSlider from '../../../../molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-without-title';
|
|
4
|
+
export default {
|
|
5
|
+
props: {
|
|
6
|
+
groups: [{
|
|
7
|
+
fields: [{
|
|
8
|
+
type: 'selectMultiple',
|
|
9
|
+
title: 'Languages',
|
|
10
|
+
placeholder: 'Language selection',
|
|
11
|
+
description: 'The name and description of your certification will be displayed in the selected language. Only the selected language will be saved. You can translate during step 2 "Translations".',
|
|
12
|
+
theme: 'coorpmanager',
|
|
13
|
+
hint: '15 / 30 characters',
|
|
14
|
+
size: 'default',
|
|
15
|
+
options: [{
|
|
16
|
+
name: '🇬🇧 English',
|
|
17
|
+
value: 'en',
|
|
18
|
+
selected: true
|
|
19
|
+
}, {
|
|
20
|
+
name: '🇩🇪 German',
|
|
21
|
+
value: 'de',
|
|
22
|
+
selected: false
|
|
23
|
+
}, {
|
|
24
|
+
name: '🇹🇭 Thai',
|
|
25
|
+
value: 'th',
|
|
26
|
+
selected: false
|
|
27
|
+
}, {
|
|
28
|
+
name: '🇪🇸 Spanish',
|
|
29
|
+
value: 'es',
|
|
30
|
+
selected: false
|
|
31
|
+
}],
|
|
32
|
+
multiple: false
|
|
33
|
+
}, {
|
|
34
|
+
type: 'text',
|
|
35
|
+
title: 'Playlist name',
|
|
36
|
+
placeholder: 'Playlist name',
|
|
37
|
+
description: 'This is the tooltip text',
|
|
38
|
+
theme: 'coorpmanager',
|
|
39
|
+
hint: '15 / 30 characters',
|
|
40
|
+
value: 'Marketing expert',
|
|
41
|
+
size: 'default'
|
|
42
|
+
}, {
|
|
43
|
+
type: 'textarea',
|
|
44
|
+
title: 'Description',
|
|
45
|
+
placeholder: 'Description',
|
|
46
|
+
description: 'This is the tooltip text',
|
|
47
|
+
theme: 'coorpmanager',
|
|
48
|
+
hint: '80 / 200 characters',
|
|
49
|
+
size: 'medium',
|
|
50
|
+
value: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis fermentum sem ac fermentum luctus. Integer eu dui magna. Donec ut tristique dui. Vestibulum non accumsan tellus. Donec luctus erat vitae aliquet viverra. Mauris malesuada tortor quis viverra vestibulum. Nullam laoreet porta massa vitae porta.'
|
|
51
|
+
}, _extends(_extends({}, SetupSlider.props), {}, {
|
|
52
|
+
type: 'titleAndCheckBoxWrapper'
|
|
53
|
+
})]
|
|
54
|
+
}]
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=wizard-certification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/brand-form/test/fixtures/wizard-certification.js"],"names":["SetupSlider","props","groups","fields","type","title","placeholder","description","theme","hint","size","options","name","value","selected","multiple"],"mappings":";;AAAA,OAAOA,WAAP,MAAwB,uFAAxB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,MAAM,EAAE,CACN;AACEC,QAAAA,IAAI,EAAE,gBADR;AAEEC,QAAAA,KAAK,EAAE,WAFT;AAGEC,QAAAA,WAAW,EAAE,oBAHf;AAIEC,QAAAA,WAAW,EACT,sLALJ;AAMEC,QAAAA,KAAK,EAAE,cANT;AAOEC,QAAAA,IAAI,EAAE,oBAPR;AAQEC,QAAAA,IAAI,EAAE,SARR;AASEC,QAAAA,OAAO,EAAE,CACP;AACEC,UAAAA,IAAI,EAAE,cADR;AAEEC,UAAAA,KAAK,EAAE,IAFT;AAGEC,UAAAA,QAAQ,EAAE;AAHZ,SADO,EAMP;AACEF,UAAAA,IAAI,EAAE,aADR;AAEEC,UAAAA,KAAK,EAAE,IAFT;AAGEC,UAAAA,QAAQ,EAAE;AAHZ,SANO,EAWP;AACEF,UAAAA,IAAI,EAAE,WADR;AAEEC,UAAAA,KAAK,EAAE,IAFT;AAGEC,UAAAA,QAAQ,EAAE;AAHZ,SAXO,EAgBP;AACEF,UAAAA,IAAI,EAAE,cADR;AAEEC,UAAAA,KAAK,EAAE,IAFT;AAGEC,UAAAA,QAAQ,EAAE;AAHZ,SAhBO,CATX;AA+BEC,QAAAA,QAAQ,EAAE;AA/BZ,OADM,EAkCN;AACEX,QAAAA,IAAI,EAAE,MADR;AAEEC,QAAAA,KAAK,EAAE,eAFT;AAGEC,QAAAA,WAAW,EAAE,eAHf;AAIEC,QAAAA,WAAW,EAAE,0BAJf;AAKEC,QAAAA,KAAK,EAAE,cALT;AAMEC,QAAAA,IAAI,EAAE,oBANR;AAOEI,QAAAA,KAAK,EAAE,kBAPT;AAQEH,QAAAA,IAAI,EAAE;AARR,OAlCM,EA4CN;AACEN,QAAAA,IAAI,EAAE,UADR;AAEEC,QAAAA,KAAK,EAAE,aAFT;AAGEC,QAAAA,WAAW,EAAE,aAHf;AAIEC,QAAAA,WAAW,EAAE,0BAJf;AAKEC,QAAAA,KAAK,EAAE,cALT;AAMEC,QAAAA,IAAI,EAAE,qBANR;AAOEC,QAAAA,IAAI,EAAE,QAPR;AAQEG,QAAAA,KAAK,EACH;AATJ,OA5CM,wBAwDDb,WAAW,CAACC,KAxDX;AAyDJG,QAAAA,IAAI,EAAE;AAzDF;AADV,KADM;AADH;AADM,CAAf","sourcesContent":["import SetupSlider from '../../../../molecule/title-and-checkbox-wrapper/test/fixtures/drag-drop-without-title';\n\nexport default {\n props: {\n groups: [\n {\n fields: [\n {\n type: 'selectMultiple',\n title: 'Languages',\n placeholder: 'Language selection',\n description:\n 'The name and description of your certification will be displayed in the selected language. Only the selected language will be saved. You can translate during step 2 \"Translations\".',\n theme: 'coorpmanager',\n hint: '15 / 30 characters',\n size: 'default',\n options: [\n {\n name: '🇬🇧 English',\n value: 'en',\n selected: true\n },\n {\n name: '🇩🇪 German',\n value: 'de',\n selected: false\n },\n {\n name: '🇹🇭 Thai',\n value: 'th',\n selected: false\n },\n {\n name: '🇪🇸 Spanish',\n value: 'es',\n selected: false\n }\n ],\n multiple: false\n },\n {\n type: 'text',\n title: 'Playlist name',\n placeholder: 'Playlist name',\n description: 'This is the tooltip text',\n theme: 'coorpmanager',\n hint: '15 / 30 characters',\n value: 'Marketing expert',\n size: 'default'\n },\n {\n type: 'textarea',\n title: 'Description',\n placeholder: 'Description',\n description: 'This is the tooltip text',\n theme: 'coorpmanager',\n hint: '80 / 200 characters',\n size: 'medium',\n value:\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis fermentum sem ac fermentum luctus. Integer eu dui magna. Donec ut tristique dui. Vestibulum non accumsan tellus. Donec luctus erat vitae aliquet viverra. Mauris malesuada tortor quis viverra vestibulum. Nullam laoreet porta massa vitae porta.'\n },\n {\n ...SetupSlider.props,\n type: 'titleAndCheckBoxWrapper'\n }\n ]\n }\n ]\n }\n};\n"],"file":"wizard-certification.js"}
|
|
@@ -12,6 +12,7 @@ import fixtureLms from './fixtures/lms';
|
|
|
12
12
|
import fixtureLookandfeel from './fixtures/lookandfeel';
|
|
13
13
|
import fixtureManageusersEdit from './fixtures/manageusers-edit';
|
|
14
14
|
import fixtureSso from './fixtures/sso';
|
|
15
|
+
import fixtureWizardCertification from './fixtures/wizard-certification';
|
|
15
16
|
import fixtureWizardPlaylists from './fixtures/wizard-playlists';
|
|
16
17
|
test('Organism › OrganismBrandForm > should have valid propTypes', t => {
|
|
17
18
|
t.pass();
|
|
@@ -29,5 +30,6 @@ test('Organism › OrganismBrandForm › Lms › should be rendered', renderComp
|
|
|
29
30
|
test('Organism › OrganismBrandForm › Lookandfeel › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLookandfeel);
|
|
30
31
|
test('Organism › OrganismBrandForm › ManageusersEdit › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureManageusersEdit);
|
|
31
32
|
test('Organism › OrganismBrandForm › Sso › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureSso);
|
|
33
|
+
test('Organism › OrganismBrandForm › WizardCertification › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardCertification);
|
|
32
34
|
test('Organism › OrganismBrandForm › WizardPlaylists › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardPlaylists);
|
|
33
35
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/organism/brand-form/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandForm","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettings","fixtureLms","fixtureLookandfeel","fixtureManageusersEdit","fixtureSso","fixtureWizardPlaylists","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,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/brand-form/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandForm","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettings","fixtureLms","fixtureLookandfeel","fixtureManageusersEdit","fixtureSso","fixtureWizardCertification","fixtureWizardPlaylists","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,iBAAP,MAA8B,IAA9B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,O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C,iBAAlG,EAAqHW,0BAArH,CAAJ;AACAd,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,iBAA9F,EAAiHY,sBAAjH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandForm from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureSso from './fixtures/sso';\nimport fixtureWizardCertification from './fixtures/wizard-certification';\nimport fixtureWizardPlaylists from './fixtures/wizard-playlists';\n\ntest('Organism › OrganismBrandForm > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandForm.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandForm.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandForm › Analytics › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnalytics);\ntest('Organism › OrganismBrandForm › Animations › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureAnimations);\ntest('Organism › OrganismBrandForm › Cohort › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureCohort);\ntest('Organism › OrganismBrandForm › Dashboard › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDashboard);\ntest('Organism › OrganismBrandForm › Default › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureDefault);\ntest('Organism › OrganismBrandForm › GeneralSettings › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureGeneralSettings);\ntest('Organism › OrganismBrandForm › Lms › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLms);\ntest('Organism › OrganismBrandForm › Lookandfeel › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureLookandfeel);\ntest('Organism › OrganismBrandForm › ManageusersEdit › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureManageusersEdit);\ntest('Organism › OrganismBrandForm › Sso › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureSso);\ntest('Organism › OrganismBrandForm › WizardCertification › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardCertification);\ntest('Organism › OrganismBrandForm › WizardPlaylists › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardPlaylists);\n"],"file":"fixtures.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import OrganismPlaylistTranslation from '..';
|
|
5
|
+
import fixtureDefault from './fixtures/default';
|
|
6
|
+
import fixtureDelete from './fixtures/delete';
|
|
7
|
+
test('Organism › OrganismPlaylistTranslation > should have valid propTypes', t => {
|
|
8
|
+
t.pass();
|
|
9
|
+
forEach(OrganismPlaylistTranslation.propTypes, (value, key) => {
|
|
10
|
+
t.not(value, undefined, `PropType for "Organism.OrganismPlaylistTranslation.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
test('Organism › OrganismPlaylistTranslation › Default › should be rendered', renderComponentMacro, OrganismPlaylistTranslation, fixtureDefault);
|
|
14
|
+
test('Organism › OrganismPlaylistTranslation › Delete › should be rendered', renderComponentMacro, OrganismPlaylistTranslation, fixtureDelete);
|
|
15
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/playlist-translation/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismPlaylistTranslation","fixtureDefault","fixtureDelete","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,2BAAP,MAAwC,IAAxC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AAEAL,IAAI,CAAC,sEAAD,EAAyEM,CAAC,IAAI;AAChFA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,2BAA2B,CAACK,SAA7B,EAAwC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC7DJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gEAA+DF,GAAI,mEAA5F;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,2BAAhG,EAA6HC,cAA7H,CAAJ;AACAJ,IAAI,CAAC,sEAAD,EAAyEE,oBAAzE,EAA+FC,2BAA/F,EAA4HE,aAA5H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismPlaylistTranslation from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDelete from './fixtures/delete';\n\ntest('Organism › OrganismPlaylistTranslation > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismPlaylistTranslation.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismPlaylistTranslation.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismPlaylistTranslation › Default › should be rendered', renderComponentMacro, OrganismPlaylistTranslation, fixtureDefault);\ntest('Organism › OrganismPlaylistTranslation › Delete › should be rendered', renderComponentMacro, OrganismPlaylistTranslation, fixtureDelete);\n"],"file":"fixtures.js"}
|
|
@@ -1,33 +1,25 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
2
|
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
7
5
|
import classnames from 'classnames';
|
|
8
|
-
import
|
|
9
|
-
import DragAndDropWrapper from '../../molecule/drag-and-drop-wrapper';
|
|
6
|
+
import TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';
|
|
10
7
|
import style from './style.css';
|
|
11
|
-
const ITEM = {
|
|
12
|
-
'input-text': InputTextWithTitledCheckbox,
|
|
13
|
-
'drag-and-drop': DragAndDropWrapper
|
|
14
|
-
};
|
|
15
8
|
|
|
16
9
|
const RewardsForm = ({
|
|
17
10
|
items
|
|
18
11
|
}) => {
|
|
19
12
|
const itemsView = items.map((_ref, index) => {
|
|
20
13
|
let {
|
|
21
|
-
|
|
14
|
+
childType
|
|
22
15
|
} = _ref,
|
|
23
|
-
item = _objectWithoutPropertiesLoose(_ref, ["
|
|
16
|
+
item = _objectWithoutPropertiesLoose(_ref, ["childType"]);
|
|
24
17
|
|
|
25
|
-
const Component = ITEM[type];
|
|
26
18
|
return /*#__PURE__*/React.createElement("li", {
|
|
27
19
|
key: index,
|
|
28
|
-
className: classnames(style.item,
|
|
20
|
+
className: classnames(style.item, childType === 'input-text' && style.inputText),
|
|
29
21
|
"data-name": `reward-${index}`
|
|
30
|
-
}, /*#__PURE__*/React.createElement(
|
|
22
|
+
}, /*#__PURE__*/React.createElement(TitleAndCheckBoxWrapper, item));
|
|
31
23
|
});
|
|
32
24
|
return /*#__PURE__*/React.createElement("ul", {
|
|
33
25
|
className: style.list
|
|
@@ -35,7 +27,7 @@ const RewardsForm = ({
|
|
|
35
27
|
};
|
|
36
28
|
|
|
37
29
|
RewardsForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
38
|
-
items: PropTypes.arrayOf(PropTypes.
|
|
30
|
+
items: PropTypes.arrayOf(PropTypes.shape(TitleAndCheckBoxWrapper.propTypes))
|
|
39
31
|
} : {};
|
|
40
32
|
export default RewardsForm;
|
|
41
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/organism/rewards-form/index.js"],"names":["React","PropTypes","classnames","
|
|
1
|
+
{"version":3,"sources":["../../../src/organism/rewards-form/index.js"],"names":["React","PropTypes","classnames","TitleAndCheckBoxWrapper","style","RewardsForm","items","itemsView","map","index","childType","item","inputText","list","propTypes","arrayOf","shape"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,uBAAP,MAAoC,2CAApC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAAC;AAACC,EAAAA;AAAD,CAAD,KAAa;AAC/B,QAAMC,SAAS,GAAGD,KAAK,CAACE,GAAN,CAAU,OAAuBC,KAAvB,KAAiC;AAAA,QAAhC;AAACC,MAAAA;AAAD,KAAgC;AAAA,QAAjBC,IAAiB;;AAC3D,wBACE;AACE,MAAA,GAAG,EAAEF,KADP;AAEE,MAAA,SAAS,EAAEP,UAAU,CAACE,KAAK,CAACO,IAAP,EAAaD,SAAS,KAAK,YAAd,IAA8BN,KAAK,CAACQ,SAAjD,CAFvB;AAGE,mBAAY,UAASH,KAAM;AAH7B,oBAKE,oBAAC,uBAAD,EAA6BE,IAA7B,CALF,CADF;AASD,GAViB,CAAlB;AAWA,sBAAO;AAAI,IAAA,SAAS,EAAEP,KAAK,CAACS;AAArB,KAA4BN,SAA5B,CAAP;AACD,CAbD;;AAeAF,WAAW,CAACS,SAAZ,2CAAwB;AACtBR,EAAAA,KAAK,EAAEL,SAAS,CAACc,OAAV,CAAkBd,SAAS,CAACe,KAAV,CAAgBb,uBAAuB,CAACW,SAAxC,CAAlB;AADe,CAAxB;AAIA,eAAeT,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';\nimport style from './style.css';\n\nconst RewardsForm = ({items}) => {\n const itemsView = items.map(({childType, ...item}, index) => {\n return (\n <li\n key={index}\n className={classnames(style.item, childType === 'input-text' && style.inputText)}\n data-name={`reward-${index}`}\n >\n <TitleAndCheckBoxWrapper {...item} />\n </li>\n );\n });\n return <ul className={style.list}>{itemsView}</ul>;\n};\n\nRewardsForm.propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(TitleAndCheckBoxWrapper.propTypes))\n};\n\nexport default RewardsForm;\n"],"file":"index.js"}
|
|
@@ -1,17 +1,33 @@
|
|
|
1
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
2
|
|
|
3
|
-
import
|
|
3
|
+
import inputText from '../../../../atom/input-text-with-title/test/fixtures/error';
|
|
4
|
+
import CheckboxWithTitle from '../../../../atom/checkbox-with-title/test/fixtures/checked';
|
|
4
5
|
import singleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/default';
|
|
5
6
|
import doubleDragAndDrop from '../../../../molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops';
|
|
6
7
|
export default {
|
|
7
8
|
props: {
|
|
8
|
-
items: [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
9
|
+
items: [{
|
|
10
|
+
child: _extends(_extends({}, inputText.props), {}, {
|
|
11
|
+
childType: 'input-text',
|
|
12
|
+
title: undefined
|
|
13
|
+
}),
|
|
14
|
+
checkboxWithTitle: CheckboxWithTitle.props
|
|
15
|
+
}, {
|
|
16
|
+
child: _extends(_extends({}, singleDragAndDrop.props), {}, {
|
|
17
|
+
childType: 'drag-and-drop-wrapper',
|
|
18
|
+
title: 'Create badge'
|
|
19
|
+
}),
|
|
20
|
+
sectionTitle: {
|
|
21
|
+
title: 'Create badge'
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
child: _extends(_extends({}, doubleDragAndDrop.props), {}, {
|
|
25
|
+
childType: 'drag-and-drop-wrapper'
|
|
26
|
+
}),
|
|
27
|
+
sectionTitle: {
|
|
28
|
+
title: 'Create diploma'
|
|
29
|
+
}
|
|
30
|
+
}]
|
|
15
31
|
}
|
|
16
32
|
};
|
|
17
33
|
//# sourceMappingURL=default.js.map
|