@coorpacademy/components 10.14.7 → 10.16.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.
Files changed (128) hide show
  1. package/es/atom/button-link-icon-only/test/fixtures.js +0 -2
  2. package/es/atom/button-link-icon-only/test/fixtures.js.map +1 -1
  3. package/es/atom/review-background/index.js +35 -0
  4. package/es/atom/review-background/index.js.map +1 -0
  5. package/es/atom/review-background/style.css +234 -0
  6. package/es/atom/review-background/test/fixtures/default.js +6 -0
  7. package/es/atom/review-background/test/fixtures/default.js.map +1 -0
  8. package/es/atom/review-presentation/index.js +3 -1
  9. package/es/atom/review-presentation/index.js.map +1 -1
  10. package/es/atom/review-presentation/style.css +7 -4
  11. package/es/molecule/brand-form-group/test/fixtures.js +0 -2
  12. package/es/molecule/brand-form-group/test/fixtures.js.map +1 -1
  13. package/es/molecule/course-section/test/fixtures.js +0 -6
  14. package/es/molecule/course-section/test/fixtures.js.map +1 -1
  15. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -2
  16. package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -1
  17. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js +15 -0
  18. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
  19. package/es/molecule/search/test/fixtures.js +15 -0
  20. package/es/molecule/search/test/fixtures.js.map +1 -0
  21. package/es/molecule/skill-card/style.css +7 -8
  22. package/es/organism/brand-form/index.js +11 -3
  23. package/es/organism/brand-form/index.js.map +1 -1
  24. package/es/organism/brand-form/style.css +13 -0
  25. package/es/organism/brand-form/test/fixtures/loading.js +19 -0
  26. package/es/organism/brand-form/test/fixtures/loading.js.map +1 -0
  27. package/es/organism/brand-form/test/fixtures.js +0 -2
  28. package/es/organism/brand-form/test/fixtures.js.map +1 -1
  29. package/es/organism/playlist-translation/test/fixtures.js +15 -0
  30. package/es/organism/playlist-translation/test/fixtures.js.map +1 -0
  31. package/es/organism/review-skills/style.css +21 -8
  32. package/es/organism/review-skills/test/fixtures/many-skills.js +39 -0
  33. package/es/organism/review-skills/test/fixtures/many-skills.js.map +1 -1
  34. package/es/organism/wizard-contents/test/fixtures.js +0 -4
  35. package/es/organism/wizard-contents/test/fixtures.js.map +1 -1
  36. package/es/template/back-office/brand-update/test/fixtures.js +0 -2
  37. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  38. package/es/template/external-course/test/fixtures.js +0 -4
  39. package/es/template/external-course/test/fixtures.js.map +1 -1
  40. package/es/template/review-dashboard-skills/index.js +29 -0
  41. package/es/template/review-dashboard-skills/index.js.map +1 -0
  42. package/es/template/review-dashboard-skills/style.css +60 -0
  43. package/es/template/review-dashboard-skills/test/fixtures/loading.js +10 -0
  44. package/es/template/review-dashboard-skills/test/fixtures/loading.js.map +1 -0
  45. package/es/template/review-dashboard-skills/test/fixtures/many-skills.js +10 -0
  46. package/es/template/review-dashboard-skills/test/fixtures/many-skills.js.map +1 -0
  47. package/es/template/review-dashboard-skills/test/fixtures/no-skills.js +10 -0
  48. package/es/template/review-dashboard-skills/test/fixtures/no-skills.js.map +1 -0
  49. package/lib/atom/button-link-icon-only/test/fixtures.js +0 -3
  50. package/lib/atom/button-link-icon-only/test/fixtures.js.map +1 -1
  51. package/lib/atom/review-background/index.js +45 -0
  52. package/lib/atom/review-background/index.js.map +1 -0
  53. package/lib/atom/review-background/style.css +234 -0
  54. package/lib/atom/review-background/test/fixtures/default.js +11 -0
  55. package/lib/atom/review-background/test/fixtures/default.js.map +1 -0
  56. package/lib/atom/review-presentation/index.js +3 -1
  57. package/lib/atom/review-presentation/index.js.map +1 -1
  58. package/lib/atom/review-presentation/style.css +7 -4
  59. package/lib/molecule/brand-form-group/test/fixtures.js +0 -3
  60. package/lib/molecule/brand-form-group/test/fixtures.js.map +1 -1
  61. package/lib/molecule/course-section/test/fixtures.js +0 -9
  62. package/lib/molecule/course-section/test/fixtures.js.map +1 -1
  63. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +0 -3
  64. package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -1
  65. package/lib/molecule/{input-text-with-titled-checkbox → input-text-with-titeled-checkbox}/test/fixtures.js +4 -4
  66. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
  67. package/lib/molecule/search/test/fixtures.js +25 -0
  68. package/lib/molecule/search/test/fixtures.js.map +1 -0
  69. package/lib/molecule/skill-card/style.css +7 -8
  70. package/lib/organism/brand-form/index.js +12 -3
  71. package/lib/organism/brand-form/index.js.map +1 -1
  72. package/lib/organism/brand-form/style.css +13 -0
  73. package/lib/organism/brand-form/test/fixtures/loading.js +24 -0
  74. package/lib/organism/brand-form/test/fixtures/loading.js.map +1 -0
  75. package/lib/organism/brand-form/test/fixtures.js +0 -3
  76. package/lib/organism/brand-form/test/fixtures.js.map +1 -1
  77. package/lib/organism/playlist-translation/test/fixtures.js +25 -0
  78. package/lib/organism/playlist-translation/test/fixtures.js.map +1 -0
  79. package/lib/organism/review-skills/style.css +21 -8
  80. package/lib/organism/review-skills/test/fixtures/many-skills.js +39 -0
  81. package/lib/organism/review-skills/test/fixtures/many-skills.js.map +1 -1
  82. package/lib/organism/wizard-contents/test/fixtures.js +0 -6
  83. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -1
  84. package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
  85. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  86. package/lib/template/external-course/test/fixtures.js +0 -6
  87. package/lib/template/external-course/test/fixtures.js.map +1 -1
  88. package/lib/template/review-dashboard-skills/index.js +41 -0
  89. package/lib/template/review-dashboard-skills/index.js.map +1 -0
  90. package/lib/template/review-dashboard-skills/style.css +60 -0
  91. package/lib/template/review-dashboard-skills/test/fixtures/loading.js +20 -0
  92. package/lib/template/review-dashboard-skills/test/fixtures/loading.js.map +1 -0
  93. package/lib/template/review-dashboard-skills/test/fixtures/many-skills.js +20 -0
  94. package/lib/template/review-dashboard-skills/test/fixtures/many-skills.js.map +1 -0
  95. package/lib/template/review-dashboard-skills/test/fixtures/no-skills.js +20 -0
  96. package/lib/template/review-dashboard-skills/test/fixtures/no-skills.js.map +1 -0
  97. package/package.json +2 -2
  98. package/es/atom/review-presentation/test/fixtures.js +0 -13
  99. package/es/atom/review-presentation/test/fixtures.js.map +0 -1
  100. package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js +0 -15
  101. package/es/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
  102. package/es/molecule/list-badges/test/fixtures.js +0 -19
  103. package/es/molecule/list-badges/test/fixtures.js.map +0 -1
  104. package/es/molecule/skill-card/test/fixtures.js +0 -19
  105. package/es/molecule/skill-card/test/fixtures.js.map +0 -1
  106. package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -19
  107. package/es/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
  108. package/es/organism/review-header/test/fixtures.js +0 -23
  109. package/es/organism/review-header/test/fixtures.js.map +0 -1
  110. package/es/organism/review-skills/test/fixtures.js +0 -17
  111. package/es/organism/review-skills/test/fixtures.js.map +0 -1
  112. package/es/organism/rewards-form/test/fixtures.js +0 -19
  113. package/es/organism/rewards-form/test/fixtures.js.map +0 -1
  114. package/lib/atom/review-presentation/test/fixtures.js +0 -22
  115. package/lib/atom/review-presentation/test/fixtures.js.map +0 -1
  116. package/lib/molecule/input-text-with-titled-checkbox/test/fixtures.js.map +0 -1
  117. package/lib/molecule/list-badges/test/fixtures.js +0 -31
  118. package/lib/molecule/list-badges/test/fixtures.js.map +0 -1
  119. package/lib/molecule/skill-card/test/fixtures.js +0 -31
  120. package/lib/molecule/skill-card/test/fixtures.js.map +0 -1
  121. package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js +0 -31
  122. package/lib/molecule/title-and-checkbox-wrapper/test/fixtures.js.map +0 -1
  123. package/lib/organism/review-header/test/fixtures.js +0 -37
  124. package/lib/organism/review-header/test/fixtures.js.map +0 -1
  125. package/lib/organism/review-skills/test/fixtures.js +0 -28
  126. package/lib/organism/review-skills/test/fixtures.js.map +0 -1
  127. package/lib/organism/rewards-form/test/fixtures.js +0 -31
  128. package/lib/organism/rewards-form/test/fixtures.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/search/test/fixtures.js"],"names":["t","pass","MoleculeSearch","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureWithValue"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,yDAAL,EAAgEA,CAAC,IAAI;AACnEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAeC,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,mDAAkDF,GAAI,mEAA/E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,0DAAL,EAAiEG,wBAAjE,EAAuFN,SAAvF,EAAuGO,gBAAvG;AACA,kBAAK,4DAAL,EAAmED,wBAAnE,EAAyFN,SAAzF,EAAyGQ,kBAAzG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSearch from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithValue from './fixtures/with-value';\n\ntest('Molecule › MoleculeSearch > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSearch.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSearch.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSearch › Default › should be rendered', renderComponentMacro, MoleculeSearch, fixtureDefault);\ntest('Molecule › MoleculeSearch › WithValue › should be rendered', renderComponentMacro, MoleculeSearch, fixtureWithValue);\n"],"file":"fixtures.js"}
@@ -13,15 +13,15 @@
13
13
  display: flex;
14
14
  flex-direction: column;
15
15
  max-width: 353px;
16
- min-width: 245px;
17
- height: 242px;
18
- box-shadow: 0px 4px 16px box_shadow_light_dark;
16
+ width: 100%;
17
+ min-height: 242px;
18
+ box-shadow: 0 4px 16px box_shadow_light_dark;
19
19
  transition: box-shadow 0.15s ease-in-out;
20
20
  border-radius: 8px 8px 12px 12px;
21
21
  }
22
22
 
23
23
  .skillCardWrapper:hover {
24
- box-shadow: 0px 4px 48px box_shadow_medium_dark;
24
+ box-shadow: 0 4px 48px box_shadow_medium_dark;
25
25
  }
26
26
 
27
27
  .skillTitle {
@@ -32,9 +32,9 @@
32
32
  display: flex;
33
33
  align-items: center;
34
34
  height: 112px;
35
- border-radius: 8px 8px 0px 0px;
35
+ border-radius: 8px 8px 0 0;
36
36
  color: white;
37
- padding: 0px 24px;
37
+ padding: 0 24px;
38
38
  user-select: none;
39
39
  }
40
40
 
@@ -52,9 +52,8 @@
52
52
  color: cm_grey_400;
53
53
  padding: 16px 24px 24px;
54
54
  user-select: none;
55
-
56
55
  }
57
56
 
58
57
  .buttonWrapper {
59
- padding: 0px 24px;
58
+ padding: 0 24px 24px;
60
59
  }
@@ -21,6 +21,8 @@ var _button = _interopRequireDefault(require("../../atom/button"));
21
21
 
22
22
  var _link = _interopRequireDefault(require("../../atom/link"));
23
23
 
24
+ var _loader = _interopRequireDefault(require("../../atom/loader"));
25
+
24
26
  var _style = _interopRequireDefault(require("./style.css"));
25
27
 
26
28
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
@@ -76,7 +78,8 @@ function BrandForm(props, context) {
76
78
  onReset,
77
79
  resetValue,
78
80
  back,
79
- tooltip
81
+ tooltip,
82
+ isLoading
80
83
  } = props;
81
84
  const {
82
85
  skin
@@ -106,7 +109,12 @@ function BrandForm(props, context) {
106
109
  e.preventDefault();
107
110
  return onReset(e);
108
111
  }, [onReset]);
109
- return /*#__PURE__*/_react.default.createElement("div", null, backView, /*#__PURE__*/_react.default.createElement("form", {
112
+ return /*#__PURE__*/_react.default.createElement("div", null, backView, isLoading ? /*#__PURE__*/_react.default.createElement("div", {
113
+ className: _style.default.loaderContainer
114
+ }, /*#__PURE__*/_react.default.createElement(_loader.default, {
115
+ className: _style.default.loader,
116
+ theme: "coorpmanager"
117
+ })) : /*#__PURE__*/_react.default.createElement("form", {
110
118
  onSubmit: handleSubmit,
111
119
  onReset: handleReset,
112
120
  className: _style.default.form
@@ -138,7 +146,8 @@ BrandForm.propTypes = process.env.NODE_ENV !== "production" ? {
138
146
  tooltip: _propTypes.default.shape({
139
147
  title: _propTypes.default.string,
140
148
  place: _propTypes.default.string
141
- })
149
+ }),
150
+ isLoading: _propTypes.default.bool
142
151
  } : {};
143
152
  var _default = BrandForm;
144
153
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/organism/brand-form/index.js"],"names":["buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","darkColor","disabledSubmit","submitButton","title","style","saveButton","toolTipContent","place","cancelBackground","backgroundColor","resetButton","buttons","BrandForm","props","context","groups","back","skin","backView","arrowBack","link","backDesc","desc","brandGroups","map","group","index","buttonSection","handleSubmit","e","preventDefault","handleReset","form","contextTypes","Provider","childContextTypes","defaultProps","propTypes","PropTypes","arrayOf","shape","BrandFormGroup","isRequired","bool","func","Button","Link","children","href","string"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CACzBC,QADyB,EAEzBC,WAFyB,EAGzBC,OAHyB,EAIzBC,UAJyB,EAKzBC,OALyB,EAMzBC,QANyB,EAOzBC,UAPyB,EAQzBC,SARyB,EASzBC,SATyB,KAUtB;AACH,MAAI,CAACR,QAAD,IAAa,CAACE,OAAlB,EAA2B;AACzB,WAAO,IAAP;AACD;;AAED,QAAMO,cAAc,GAAGJ,QAAQ,IAAIE,S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NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport ReactTooltip from 'react-tooltip';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Link from '../../atom/link';\nimport style from './style.css';\n\nconst buildButtonSection = (\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor\n) => {\n if (!onSubmit && !onReset) {\n return null;\n }\n\n const disabledSubmit = disabled || isPending || !isModified;\n const submitButton = onSubmit ? (\n <div data-tip={tooltip.title} data-for=\"submitButton\" className={style.saveButton}>\n <ReactTooltip\n type=\"light\"\n effect=\"solid\"\n className={style.toolTipContent}\n place={tooltip.place}\n id=\"submitButton\"\n />\n <Button type=\"submit\" disabled={disabledSubmit} submitValue={submitValue} />\n </div>\n ) : null;\n\n const cancelBackground = {backgroundColor: darkColor};\n\n const resetButton = onReset ? (\n <div className={style.resetButton}>\n <Button type=\"reset\" submitValue={resetValue} style={cancelBackground} />\n </div>\n ) : null;\n\n return (\n <div className={style.buttons}>\n {submitButton}\n {resetButton}\n </div>\n );\n};\n\nfunction BrandForm(props, context) {\n const {\n groups,\n disabled,\n isModified,\n isPending,\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n back,\n tooltip\n } = props;\n const {skin} = context;\n const darkColor = get('common.dark', skin);\n\n const backView = back ? (\n <p className={style.back}>\n <ArrowLeft color={darkColor} className={style.arrowBack} />\n <Link href={back.link} className={style.backDesc}>\n {back.desc}\n </Link>\n </p>\n ) : null;\n\n const brandGroups = groups.map((group, index) => {\n return (\n <div className={style.group} key={index}>\n <BrandFormGroup {...group} />\n </div>\n );\n });\n\n const buttonSection = buildButtonSection(\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor\n );\n\n const handleSubmit = useMemo(\n () => e => {\n e.preventDefault();\n return onSubmit(e);\n },\n [onSubmit]\n );\n\n const handleReset = useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n return (\n <div>\n {backView}\n <form onSubmit={handleSubmit} onReset={handleReset} className={style.form}>\n {brandGroups}\n {buttonSection}\n </form>\n </div>\n );\n}\n\nBrandForm.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBrandForm.defaultProps = {\n tooltip: {\n title: '',\n place: 'top'\n }\n};\n\nBrandForm.propTypes = {\n groups: PropTypes.arrayOf(PropTypes.shape(BrandFormGroup.propTypes)).isRequired,\n disabled: PropTypes.bool,\n isModified: PropTypes.bool,\n isPending: PropTypes.bool,\n onSubmit: PropTypes.func,\n submitValue: Button.propTypes.submitValue,\n onReset: PropTypes.func,\n resetValue: Button.propTypes.submitValue,\n back: PropTypes.shape({\n desc: Link.propTypes.children,\n link: Link.propTypes.href\n }),\n tooltip: PropTypes.shape({\n title: PropTypes.string,\n place: PropTypes.string\n })\n};\n\nexport default BrandForm;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/organism/brand-form/index.js"],"names":["buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","darkColor","disabledSubmit","submitButton","title","style","saveButton","toolTipContent","place","cancelBackground","backgroundColor","resetButton","buttons","BrandForm","props","context","groups","back","isLoading","skin","backView","arrowBack","link","backDesc","desc","brandGroups","map","group","index","buttonSection","handleSubmit","e","preventDefault","handleReset","loaderContainer","loader","form","contextTypes","Provider","childContextTypes","defaultProps","propTypes","PropTypes","arrayOf","shape","BrandFormGroup","isRequired","bool","func","Button","Link","children","href","string"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CACzBC,QADyB,EAEzBC,WAFyB,EAGzBC,OAHyB,EAIzBC,UAJyB,EAKzBC,OALyB,EAMzBC,QANyB,EAOzBC,UAPyB,EAQzBC,SARyB,EASzBC,SATyB,KAU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D;AAEpB7B,IAAAA,IAAI,EAAE4B,cAAKT,SAAL,CAAeW;AAFD,GAAhB,CATc;AAapBvD,EAAAA,OAAO,EAAE6C,mBAAUE,KAAV,CAAgB;AACvBxC,IAAAA,KAAK,EAAEsC,mBAAUW,MADM;AAEvB7C,IAAAA,KAAK,EAAEkC,mBAAUW;AAFM,GAAhB,CAbW;AAiBpBnC,EAAAA,SAAS,EAAEwB,mBAAUK;AAjBD,CAAtB;eAoBelC,S","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport ReactTooltip from 'react-tooltip';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Link from '../../atom/link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildButtonSection = (\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor\n) => {\n if (!onSubmit && !onReset) {\n return null;\n }\n\n const disabledSubmit = disabled || isPending || !isModified;\n const submitButton = onSubmit ? (\n <div data-tip={tooltip.title} data-for=\"submitButton\" className={style.saveButton}>\n <ReactTooltip\n type=\"light\"\n effect=\"solid\"\n className={style.toolTipContent}\n place={tooltip.place}\n id=\"submitButton\"\n />\n <Button type=\"submit\" disabled={disabledSubmit} submitValue={submitValue} />\n </div>\n ) : null;\n\n const cancelBackground = {backgroundColor: darkColor};\n\n const resetButton = onReset ? (\n <div className={style.resetButton}>\n <Button type=\"reset\" submitValue={resetValue} style={cancelBackground} />\n </div>\n ) : null;\n\n return (\n <div className={style.buttons}>\n {submitButton}\n {resetButton}\n </div>\n );\n};\n\nfunction BrandForm(props, context) {\n const {\n groups,\n disabled,\n isModified,\n isPending,\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n back,\n tooltip,\n isLoading\n } = props;\n const {skin} = context;\n const darkColor = get('common.dark', skin);\n\n const backView = back ? (\n <p className={style.back}>\n <ArrowLeft color={darkColor} className={style.arrowBack} />\n <Link href={back.link} className={style.backDesc}>\n {back.desc}\n </Link>\n </p>\n ) : null;\n\n const brandGroups = groups.map((group, index) => {\n return (\n <div className={style.group} key={index}>\n <BrandFormGroup {...group} />\n </div>\n );\n });\n\n const buttonSection = buildButtonSection(\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor\n );\n\n const handleSubmit = useMemo(\n () => e => {\n e.preventDefault();\n return onSubmit(e);\n },\n [onSubmit]\n );\n\n const handleReset = useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n return (\n <div>\n {backView}\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <form onSubmit={handleSubmit} onReset={handleReset} className={style.form}>\n {brandGroups}\n {buttonSection}\n </form>\n )}\n </div>\n );\n}\n\nBrandForm.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBrandForm.defaultProps = {\n tooltip: {\n title: '',\n place: 'top'\n }\n};\n\nBrandForm.propTypes = {\n groups: PropTypes.arrayOf(PropTypes.shape(BrandFormGroup.propTypes)).isRequired,\n disabled: PropTypes.bool,\n isModified: PropTypes.bool,\n isPending: PropTypes.bool,\n onSubmit: PropTypes.func,\n submitValue: Button.propTypes.submitValue,\n onReset: PropTypes.func,\n resetValue: Button.propTypes.submitValue,\n back: PropTypes.shape({\n desc: Link.propTypes.children,\n link: Link.propTypes.href\n }),\n tooltip: PropTypes.shape({\n title: PropTypes.string,\n place: PropTypes.string\n }),\n isLoading: PropTypes.bool\n};\n\nexport default BrandForm;\n"],"file":"index.js"}
@@ -72,3 +72,16 @@
72
72
  color: dark;
73
73
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 8px 3px 10px rgba(0, 0, 0, 0.23);
74
74
  }
75
+
76
+ .loaderContainer {
77
+ width: 100%;
78
+ height: 50vh;
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ }
83
+
84
+ .loader {
85
+ height: 60px;
86
+ width: 60px;
87
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ isLoading: true,
8
+ groups: [{
9
+ title: 'Platform Name',
10
+ fields: []
11
+ }, {
12
+ title: 'Forum',
13
+ fields: [{
14
+ title: 'Activate',
15
+ value: false,
16
+ type: 'switch',
17
+ description: 'Lorem Ipsum dolor sit amet.',
18
+ onChange: () => {}
19
+ }]
20
+ }]
21
+ }
22
+ };
23
+ exports.default = _default;
24
+ //# sourceMappingURL=loading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/organism/brand-form/test/fixtures/loading.js"],"names":["props","isLoading","groups","title","fields","value","type","description","onChange"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAE,IADN;AAELC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,eADT;AAEEC,MAAAA,MAAM,EAAE;AAFV,KADM,EAKN;AACED,MAAAA,KAAK,EAAE,OADT;AAEEC,MAAAA,MAAM,EAAE,CACN;AACED,QAAAA,KAAK,EAAE,UADT;AAEEE,QAAAA,KAAK,EAAE,KAFT;AAGEC,QAAAA,IAAI,EAAE,QAHR;AAIEC,QAAAA,WAAW,EAAE,6BAJf;AAKEC,QAAAA,QAAQ,EAAE,MAAM,CAAE;AALpB,OADM;AAFV,KALM;AAFH;AADM,C","sourcesContent":["export default {\n props: {\n isLoading: true,\n groups: [\n {\n title: 'Platform Name',\n fields: []\n },\n {\n title: 'Forum',\n fields: [\n {\n title: 'Activate',\n value: false,\n type: 'switch',\n description: 'Lorem Ipsum dolor sit amet.',\n onChange: () => {}\n }\n ]\n }\n ]\n }\n};\n"],"file":"loading.js"}
@@ -28,8 +28,6 @@ var _manageusersEdit = _interopRequireDefault(require("./fixtures/manageusers-ed
28
28
 
29
29
  var _sso = _interopRequireDefault(require("./fixtures/sso"));
30
30
 
31
- var _wizardCertification = _interopRequireDefault(require("./fixtures/wizard-certification"));
32
-
33
31
  var _wizardPlaylists = _interopRequireDefault(require("./fixtures/wizard-playlists"));
34
32
 
35
33
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -50,6 +48,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
50
48
  (0, _ava.default)('Organism › OrganismBrandForm › Lookandfeel › should be rendered', _renderComponent.default, _.default, _lookandfeel.default);
51
49
  (0, _ava.default)('Organism › OrganismBrandForm › ManageusersEdit › should be rendered', _renderComponent.default, _.default, _manageusersEdit.default);
52
50
  (0, _ava.default)('Organism › OrganismBrandForm › Sso › should be rendered', _renderComponent.default, _.default, _sso.default);
53
- (0, _ava.default)('Organism › OrganismBrandForm › WizardCertification › should be rendered', _renderComponent.default, _.default, _wizardCertification.default);
54
51
  (0, _ava.default)('Organism › OrganismBrandForm › WizardPlaylists › should be rendered', _renderComponent.default, _.default, _wizardPlaylists.default);
55
52
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/organism/brand-form/test/fixtures.js"],"names":["t","pass","OrganismBrandForm","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettings","fixtureLms","fixtureLookandfeel","fixtureManageusersEdit","fixtureSso","fixtureWizardCertification","fixtureWizardPlaylists"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,4DAAL,EAAmEA,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAkBC,SAA1B,EAAqC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,+DAAL,EAAsEG,wBAAtE,EAA4FN,SAA5F,EAA+GO,kBAA/G;AACA,kBAAK,gEAAL,EAAuED,wBAAvE,EAA6FN,SAA7F,EAAgHQ,mBAAhH;AACA,kBAAK,4DAAL,EAAmEF,wBAAnE,EAAyFN,SAAzF,EAA4GS,eAA5G;AACA,kBAAK,+DAAL,EAAsEH,wBAAtE,EAA4FN,SAA5F,EAA+GU,kBAA/G;AACA,kBAAK,6DAAL,EAAoEJ,wBAApE,EAA0FN,SAA1F,EAA6GW,gBAA7G;AACA,kBAAK,qEAAL,EAA4EL,wBAA5E,EAAkGN,SAAlG,EAAqHY,wBAArH;AACA,kBAAK,yDAAL,EAAgEN,wBAAhE,EAAsFN,SAAtF,EAAyGa,YAAzG;AACA,kBAAK,iEAAL,EAAwEP,wBAAxE,EAA8FN,SAA9F,EAAiHc,oBAAjH;AACA,kBAAK,qEAAL,EAA4ER,wBAA5E,EAAkGN,SAAlG,EAAqHe,wBAArH;AACA,kBAAK,yDAAL,EAAgET,wBAAhE,EAAsFN,SAAtF,EAAyGgB,YAAzG;AACA,kBAAK,yEAAL,EAAgFV,wBAAhF,EAAsGN,SAAtG,EAAyHiB,4BAAzH;AACA,kBAAK,qEAAL,EAA4EX,wBAA5E,EAAkGN,SAAlG,EAAqHkB,wBAArH","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"}
1
+ {"version":3,"sources":["../../../../src/organism/brand-form/test/fixtures.js"],"names":["t","pass","OrganismBrandForm","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettings","fixtureLms","fixtureLookandfeel","fixtureManageusersEdit","fixtureSso","fixtureWizardPlaylists"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,4DAAL,EAAmEA,CAAC,IAAI;AACtEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAkBC,SAA1B,EAAqC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACnDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,sDAAqDF,GAAI,mEAAlF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,+DAAL,EAAsEG,wBAAtE,EAA4FN,SAA5F,EAA+GO,kBAA/G;AACA,kBAAK,gEAAL,EAAuED,wBAAvE,EAA6FN,SAA7F,EAAgHQ,mBAAhH;AACA,kBAAK,4DAAL,EAAmEF,wBAAnE,EAAyFN,SAAzF,EAA4GS,eAA5G;AACA,kBAAK,+DAAL,EAAsEH,wBAAtE,EAA4FN,SAA5F,EAA+GU,kBAA/G;AACA,kBAAK,6DAAL,EAAoEJ,wBAApE,EAA0FN,SAA1F,EAA6GW,gBAA7G;AACA,kBAAK,qEAAL,EAA4EL,wBAA5E,EAAkGN,SAAlG,EAAqHY,wBAArH;AACA,kBAAK,yDAAL,EAAgEN,wBAAhE,EAAsFN,SAAtF,EAAyGa,YAAzG;AACA,kBAAK,iEAAL,EAAwEP,wBAAxE,EAA8FN,SAA9F,EAAiHc,oBAAjH;AACA,kBAAK,qEAAL,EAA4ER,wBAA5E,EAAkGN,SAAlG,EAAqHe,wBAArH;AACA,kBAAK,yDAAL,EAAgET,wBAAhE,EAAsFN,SAAtF,EAAyGgB,YAAzG;AACA,kBAAK,qEAAL,EAA4EV,wBAA5E,EAAkGN,SAAlG,EAAqHiB,wBAArH","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 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 › WizardPlaylists › should be rendered', renderComponentMacro, OrganismBrandForm, fixtureWizardPlaylists);\n"],"file":"fixtures.js"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
+
7
+ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
+
9
+ var _ = _interopRequireDefault(require(".."));
10
+
11
+ var _default = _interopRequireDefault(require("./fixtures/default"));
12
+
13
+ var _delete = _interopRequireDefault(require("./fixtures/delete"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ (0, _ava.default)('Organism › OrganismPlaylistTranslation > should have valid propTypes', t => {
18
+ t.pass();
19
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
+ t.not(value, undefined, `PropType for "Organism.OrganismPlaylistTranslation.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
+ });
22
+ });
23
+ (0, _ava.default)('Organism › OrganismPlaylistTranslation › Default › should be rendered', _renderComponent.default, _.default, _default.default);
24
+ (0, _ava.default)('Organism › OrganismPlaylistTranslation › Delete › should be rendered', _renderComponent.default, _.default, _delete.default);
25
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/playlist-translation/test/fixtures.js"],"names":["t","pass","OrganismPlaylistTranslation","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureDelete"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,sEAAL,EAA6EA,CAAC,IAAI;AAChFA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAA4BC,SAApC,EAA+C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC7DL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,gEAA+DF,GAAI,mEAA5F;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,uEAAL,EAA8EG,wBAA9E,EAAoGN,SAApG,EAAiIO,gBAAjI;AACA,kBAAK,sEAAL,EAA6ED,wBAA7E,EAAmGN,SAAnG,EAAgIQ,eAAhI","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"}
@@ -37,8 +37,11 @@
37
37
  }
38
38
 
39
39
  .skillCardContainer {
40
- margin: 0px 16px 16px 0px;
41
- width: 298px;
40
+ margin: 0 16px 16px 0;
41
+ max-width: 298px;
42
+ min-width: 205px;
43
+ width: 100%;
44
+ flex: 1 0 33%;
42
45
  }
43
46
 
44
47
  .noSkillsContainer {
@@ -70,9 +73,9 @@
70
73
  }
71
74
 
72
75
  .imgNoSkills {
73
- width: 361px;
74
76
  height: 361px;
75
77
  margin-top: 48px;
78
+ width: 361px;
76
79
  }
77
80
 
78
81
  .loaderContainer {
@@ -89,15 +92,25 @@
89
92
  }
90
93
 
91
94
  @media tablet {
92
- .skillCardContainer {
93
- width: 257px;
95
+ .titleNoSkills, .textNoSkills {
96
+ width: 90%;
97
+ }
98
+
99
+ .imgNoSkills {
100
+ max-width: 361px;
101
+ max-height: 361px;
102
+ width: 100%;
103
+ height: 100%;
94
104
  }
95
105
  }
96
106
 
97
- @media mobile {
107
+ @media mobile {
98
108
  .skillCardContainer {
99
- width: 100%;
100
- margin-right: 0px;
109
+ display: flex;
110
+ flex: 1 0 100%;
111
+ justify-content: center;
112
+ margin-right: 0;
113
+ max-width: 100%;
101
114
  }
102
115
 
103
116
  .titleNoSkills,
@@ -24,6 +24,45 @@ const listSkills = [_extends(_extends({}, _default2.default.props), {}, {
24
24
  }), _extends(_extends({}, _default2.default.props), {}, {
25
25
  skillTitle: 'Critical thinking and analysis',
26
26
  isCustom: true
27
+ }), _extends(_extends({}, _default2.default.props), {}, {
28
+ skillTitle: 'Negotiation and powers of persuasion',
29
+ isCustom: true
30
+ }), _extends(_extends({}, _default2.default.props), {}, {
31
+ skillTitle: 'Digital communication',
32
+ isCustom: false
33
+ }), _extends(_extends({}, _default2.default.props), {}, {
34
+ skillTitle: 'Creativity and innovation',
35
+ isCustom: false
36
+ }), _extends(_extends({}, _default2.default.props), {}, {
37
+ skillTitle: 'Agility',
38
+ isCustom: false
39
+ }), _extends(_extends({}, _default2.default.props), {}, {
40
+ skillTitle: 'Sustainable thinking',
41
+ isCustom: false
42
+ }), _extends(_extends({}, _default2.default.props), {}, {
43
+ skillTitle: 'Critical thinking and analysis',
44
+ isCustom: true
45
+ }), _extends(_extends({}, _default2.default.props), {}, {
46
+ skillTitle: 'Negotiation and powers of persuasion',
47
+ isCustom: true
48
+ }), _extends(_extends({}, _default2.default.props), {}, {
49
+ skillTitle: 'Digital communication',
50
+ isCustom: false
51
+ }), _extends(_extends({}, _default2.default.props), {}, {
52
+ skillTitle: 'Creativity and innovation',
53
+ isCustom: false
54
+ }), _extends(_extends({}, _default2.default.props), {}, {
55
+ skillTitle: 'Agility',
56
+ isCustom: false
57
+ }), _extends(_extends({}, _default2.default.props), {}, {
58
+ skillTitle: 'Sustainable thinking',
59
+ isCustom: false
60
+ }), _extends(_extends({}, _default2.default.props), {}, {
61
+ skillTitle: 'Critical thinking and analysis',
62
+ isCustom: true
63
+ }), _extends(_extends({}, _default2.default.props), {}, {
64
+ skillTitle: 'Negotiation and powers of persuasion',
65
+ isCustom: true
27
66
  })];
28
67
  var _default = {
29
68
  props: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/review-skills/test/fixtures/many-skills.js"],"names":["listSkills","cardDefault","props","skillTitle","isCustom","title","titleNoSkills","undefined","textNoSkills","iconSkillAriaLabel"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,UAAU,GAAG,uBACbC,kBAAYC,KADC;AACMC,EAAAA,UAAU,EAAE,uBADlB;AAC2CC,EAAAA,QAAQ,EAAE;AADrD,0BAEbH,kBAAYC,KAFC;AAEMC,EAAAA,UAAU,EAAE,2BAFlB;AAE+CC,EAAAA,QAAQ,EAAE;AAFzD,0BAGbH,kBAAYC,KAHC;AAGMC,EAAAA,UAAU,EAAE,SAHlB;AAG6BC,EAAAA,QAAQ,EAAE;AAHvC,0BAIbH,kBAAYC,KAJC;AAIMC,EAAAA,UAAU,EAAE,sBAJlB;AAI0CC,EAAAA,QAAQ,EAAE;AAJpD,0BAKbH,kBAAYC,KALC;AAKMC,EAAAA,UAAU,EAAE,gCALlB;AAKoDC,EAAAA,QAAQ,EAAE;AAL9D,GAAnB;eAQe;AACbF,EAAAA,KAAK,EAAE;AACL,kBAAc,yBADT;AAELG,IAAAA,KAAK,EAAE,uBAFF;AAGLL,IAAAA,UAHK;AAILM,IAAAA,aAAa,EAAEC,SAJV;AAKLC,IAAAA,YAAY,EAAED,SALT;AAMLE,IAAAA,kBAAkB,EAAEF;AANf;AADM,C","sourcesContent":["import cardDefault from '../../../../molecule/skill-card/test/fixtures/default';\n\nconst listSkills = [\n {...cardDefault.props, skillTitle: 'Digital communication', isCustom: false},\n {...cardDefault.props, skillTitle: 'Creativity and innovation', isCustom: false},\n {...cardDefault.props, skillTitle: 'Agility', isCustom: false},\n {...cardDefault.props, skillTitle: 'Sustainable thinking', isCustom: false},\n {...cardDefault.props, skillTitle: 'Critical thinking and analysis', isCustom: true}\n];\n\nexport default {\n props: {\n 'aria-label': 'Review Skills Container',\n title: 'Skills you can revise',\n listSkills,\n titleNoSkills: undefined,\n textNoSkills: undefined,\n iconSkillAriaLabel: undefined\n }\n};\n"],"file":"many-skills.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/review-skills/test/fixtures/many-skills.js"],"names":["listSkills","cardDefault","props","skillTitle","isCustom","title","titleNoSkills","undefined","textNoSkills","iconSkillAriaLabel"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,UAAU,GAAG,uBACbC,kBAAYC,KADC;AACMC,EAAAA,UAAU,EAAE,uBADlB;AAC2CC,EAAAA,QAAQ,EAAE;AADrD,0BAEbH,kBAAYC,KAFC;AAEMC,EAAAA,UAAU,EAAE,2BAFlB;AAE+CC,EAAAA,QAAQ,EAAE;AAFzD,0BAGbH,kBAAYC,KAHC;AAGMC,EAAAA,UAAU,EAAE,SAHlB;AAG6BC,EAAAA,QAAQ,EAAE;AAHvC,0BAIbH,kBAAYC,KAJC;AAIMC,EAAAA,UAAU,EAAE,sBAJlB;AAI0CC,EAAAA,QAAQ,EAAE;AAJpD,0BAKbH,kBAAYC,KALC;AAKMC,EAAAA,UAAU,EAAE,gCALlB;AAKoDC,EAAAA,QAAQ,EAAE;AAL9D,0BAMbH,kBAAYC,KANC;AAMMC,EAAAA,UAAU,EAAE,sCANlB;AAM0DC,EAAAA,QAAQ,EAAE;AANpE,0BAObH,kBAAYC,KAPC;AAOMC,EAAAA,UAAU,EAAE,uBAPlB;AAO2CC,EAAAA,QAAQ,EAAE;AAPrD,0BAQbH,kBAAYC,KARC;AAQMC,EAAAA,UAAU,EAAE,2BARlB;AAQ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/fixtures/default';\n\nconst listSkills = [\n {...cardDefault.props, skillTitle: 'Digital communication', isCustom: false},\n {...cardDefault.props, skillTitle: 'Creativity and innovation', isCustom: false},\n {...cardDefault.props, skillTitle: 'Agility', isCustom: false},\n {...cardDefault.props, skillTitle: 'Sustainable thinking', isCustom: false},\n {...cardDefault.props, skillTitle: 'Critical thinking and analysis', isCustom: true},\n {...cardDefault.props, skillTitle: 'Negotiation and powers of persuasion', isCustom: true},\n {...cardDefault.props, skillTitle: 'Digital communication', isCustom: false},\n {...cardDefault.props, skillTitle: 'Creativity and innovation', isCustom: false},\n {...cardDefault.props, skillTitle: 'Agility', isCustom: false},\n {...cardDefault.props, skillTitle: 'Sustainable thinking', isCustom: false},\n {...cardDefault.props, skillTitle: 'Critical thinking and analysis', isCustom: true},\n {...cardDefault.props, skillTitle: 'Negotiation and powers of persuasion', isCustom: true},\n {...cardDefault.props, skillTitle: 'Digital communication', isCustom: false},\n {...cardDefault.props, skillTitle: 'Creativity and innovation', isCustom: false},\n {...cardDefault.props, skillTitle: 'Agility', isCustom: false},\n {...cardDefault.props, skillTitle: 'Sustainable thinking', isCustom: false},\n {...cardDefault.props, skillTitle: 'Critical thinking and analysis', isCustom: true},\n {...cardDefault.props, skillTitle: 'Negotiation and powers of persuasion', isCustom: true}\n];\n\nexport default {\n props: {\n 'aria-label': 'Review Skills Container',\n title: 'Skills you can revise',\n listSkills,\n titleNoSkills: undefined,\n textNoSkills: undefined,\n iconSkillAriaLabel: undefined\n }\n};\n"],"file":"many-skills.js"}
@@ -8,10 +8,6 @@ var _renderComponent = _interopRequireDefault(require("../../../test/helpers/ren
8
8
 
9
9
  var _ = _interopRequireDefault(require(".."));
10
10
 
11
- var _certificationGeneralSettingsEdit = _interopRequireDefault(require("./fixtures/certification-general-settings-edit"));
12
-
13
- var _certificationRewards = _interopRequireDefault(require("./fixtures/certification-rewards"));
14
-
15
11
  var _playlistAddCoursesCreate = _interopRequireDefault(require("./fixtures/playlist-add-courses-create"));
16
12
 
17
13
  var _playlistGeneralSettingsCreate = _interopRequireDefault(require("./fixtures/playlist-general-settings-create"));
@@ -32,8 +28,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
32
28
  t.not(value, undefined, `PropType for "Organism.OrganismWizardContents.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
33
29
  });
34
30
  });
35
- (0, _ava.default)('Organism › OrganismWizardContents › CertificationGeneralSettingsEdit › should be rendered', _renderComponent.default, _.default, _certificationGeneralSettingsEdit.default);
36
- (0, _ava.default)('Organism › OrganismWizardContents › CertificationRewards › should be rendered', _renderComponent.default, _.default, _certificationRewards.default);
37
31
  (0, _ava.default)('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', _renderComponent.default, _.default, _playlistAddCoursesCreate.default);
38
32
  (0, _ava.default)('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', _renderComponent.default, _.default, _playlistGeneralSettingsCreate.default);
39
33
  (0, _ava.default)('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', _renderComponent.default, _.default, _playlistGeneralSettingsEdit.default);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["t","pass","OrganismWizardContents","propTypes","value","key","not","undefined","renderComponentMacro","fixtureCertificationGeneralSettingsEdit","fixtureCertificationRewards","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistOrganizeCourses","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,iEAAL,EAAwEA,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAuBC,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,2FAAL,EAAkGG,wBAAlG,EAAwHN,SAAxH,EAAgJO,yCAAhJ;AACA,kBAAK,+EAAL,EAAsFD,wBAAtF,EAA4GN,SAA5G,EAAoIQ,6BAApI;AACA,kBAAK,mFAAL,EAA0FF,wBAA1F,EAAgHN,SAAhH,EAAwIS,iCAAxI;AACA,kBAAK,wFAAL,EAA+FH,wBAA/F,EAAqHN,SAArH,EAA6IU,sCAA7I;AACA,kBAAK,sFAAL,EAA6FJ,wBAA7F,EAAmHN,SAAnH,EAA2IW,oCAA3I;AACA,kBAAK,kFAAL,EAAyFL,wBAAzF,EAA+GN,SAA/G,EAAuIY,gCAAvI;AACA,kBAAK,oFAAL,EAA2FN,wBAA3F,EAAiHN,SAAjH,EAAyIa,kCAAzI;AACA,kBAAK,gFAAL,EAAuFP,wBAAvF,EAA6GN,SAA7G,EAAqIc,8BAArI","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixtureCertificationGeneralSettingsEdit from './fixtures/certification-general-settings-edit';\nimport fixtureCertificationRewards from './fixtures/certification-rewards';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistOrganizeCourses from './fixtures/playlist-organize-courses';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › CertificationGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixtureCertificationGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › CertificationRewards › should be rendered', renderComponentMacro, OrganismWizardContents, fixtureCertificationRewards);\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistOrganizeCourses › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistOrganizeCourses);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["t","pass","OrganismWizardContents","propTypes","value","key","not","undefined","renderComponentMacro","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistOrganizeCourses","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,iEAAL,EAAwEA,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAuBC,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,mFAAL,EAA0FG,wBAA1F,EAAgHN,SAAhH,EAAwIO,iCAAxI;AACA,kBAAK,wFAAL,EAA+FD,wBAA/F,EAAqHN,SAArH,EAA6IQ,sCAA7I;AACA,kBAAK,sFAAL,EAA6FF,wBAA7F,EAAmHN,SAAnH,EAA2IS,oCAA3I;AACA,kBAAK,kFAAL,EAAyFH,wBAAzF,EAA+GN,SAA/G,EAAuIU,gCAAvI;AACA,kBAAK,oFAAL,EAA2FJ,wBAA3F,EAAiHN,SAAjH,EAAyIW,kCAAzI;AACA,kBAAK,gFAAL,EAAuFL,wBAAvF,EAA6GN,SAA7G,EAAqIY,8BAArI","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistOrganizeCourses from './fixtures/playlist-organize-courses';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistOrganizeCourses › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistOrganizeCourses);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\n"],"file":"fixtures.js"}
@@ -82,8 +82,6 @@ var _wizardPopulationsPlaylistWithPopin = _interopRequireDefault(require("./fixt
82
82
 
83
83
  var _wizardPopulationsPlaylist = _interopRequireDefault(require("./fixtures/wizard-populations-playlist"));
84
84
 
85
- var _wizardRewardsCertification = _interopRequireDefault(require("./fixtures/wizard-rewards-certification"));
86
-
87
85
  var _wizardTranslatePlaylist = _interopRequireDefault(require("./fixtures/wizard-translate-playlist"));
88
86
 
89
87
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -131,6 +129,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
131
129
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', _renderComponent.default, _.default, _wizardOrganizeCoursesPlaylist.default);
132
130
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', _renderComponent.default, _.default, _wizardPopulationsPlaylistWithPopin.default);
133
131
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', _renderComponent.default, _.default, _wizardPopulationsPlaylist.default);
134
- (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardRewardsCertification › should be rendered', _renderComponent.default, _.default, _wizardRewardsCertification.default);
135
132
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', _renderComponent.default, _.default, _wizardTranslatePlaylist.default);
136
133
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["t","pass","TemplateBackOfficeBrandUpdate","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardOrganizeCoursesPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardRewardsCertification","fixtureWizardTranslatePlaylist"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kFAAL,EAAyFA,CAAC,IAAI;AAC5FA,EAAAA,CAA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,oGAAL,EAA2GhC,wBAA3G,EAAiIN,SAAjI,EAAgKuC,iCAAhK;AACA,kBAAK,kGAAL,EAAyGjC,wBAAzG,EAA+HN,SAA/H,EAA8JwC,+BAA9J;AACA,kBAAK,yGAAL,EAAgHlC,wBAAhH,EAAsIN,SAAtI,EAAqKyC,sCAArK;AACA,kBAAK,8GAAL,EAAqHnC,wBAArH,EAA2IN,SAA3I,EAA0K0C,2CAA1K;AACA,kBAAK,qGAAL,EAA4GpC,wBAA5G,EAAkIN,SAAlI,EAAiK2C,kCAAjK;AACA,kBAAK,sGAAL,EAA6GrC,wBAA7G,EAAmIN,SAAnI,EAAkK4C,mCAAlK;AACA,kBAAK,mGAAL,EAA0GtC,wBAA1G,EAAgIN,SAAhI,EAA+J6C,gCAA/J","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardRewardsCertification from './fixtures/wizard-rewards-certification';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardRewardsCertification › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardRewardsCertification);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["t","pass","TemplateBackOfficeBrandUpdate","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardOrganizeCoursesPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kFAAL,EAAyFA,CAAC,IAAI;AAC5FA,EAAAA,CAA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,oGAAL,EAA2GhC,wBAA3G,EAAiIN,SAAjI,EAAgKuC,iCAAhK;AACA,kBAAK,kGAAL,EAAyGjC,wBAAzG,EAA+HN,SAA/H,EAA8JwC,+BAA9J;AACA,kBAAK,yGAAL,EAAgHlC,wBAAhH,EAAsIN,SAAtI,EAAqKyC,sCAArK;AACA,kBAAK,8GAAL,EAAqHnC,wBAArH,EAA2IN,SAA3I,EAA0K0C,2CAA1K;AACA,kBAAK,qGAAL,EAA4GpC,wBAA5G,EAAkIN,SAAlI,EAAiK2C,kCAAjK;AACA,kBAAK,mGAAL,EAA0GrC,wBAA1G,EAAgIN,SAAhI,EAA+J4C,gCAA/J","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
@@ -18,10 +18,6 @@ var _h5p = _interopRequireDefault(require("./fixtures/h5p"));
18
18
 
19
19
  var _loading = _interopRequireDefault(require("./fixtures/loading"));
20
20
 
21
- var _pdfMobile = _interopRequireDefault(require("./fixtures/pdf-mobile"));
22
-
23
- var _pdfNoMobile = _interopRequireDefault(require("./fixtures/pdf-no-mobile"));
24
-
25
21
  var _podcastCockpitMode = _interopRequireDefault(require("./fixtures/podcast-cockpit-mode"));
26
22
 
27
23
  var _podcastNoBackground = _interopRequireDefault(require("./fixtures/podcast-no-background"));
@@ -45,8 +41,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
45
41
  (0, _ava.default)('Template › TemplateExternalCourse › Default › should be rendered', _renderComponent.default, _.default, _default.default);
46
42
  (0, _ava.default)('Template › TemplateExternalCourse › H5P › should be rendered', _renderComponent.default, _.default, _h5p.default);
47
43
  (0, _ava.default)('Template › TemplateExternalCourse › Loading › should be rendered', _renderComponent.default, _.default, _loading.default);
48
- (0, _ava.default)('Template › TemplateExternalCourse › PdfMobile › should be rendered', _renderComponent.default, _.default, _pdfMobile.default);
49
- (0, _ava.default)('Template › TemplateExternalCourse › PdfNoMobile › should be rendered', _renderComponent.default, _.default, _pdfNoMobile.default);
50
44
  (0, _ava.default)('Template › TemplateExternalCourse › PodcastCockpitMode › should be rendered', _renderComponent.default, _.default, _podcastCockpitMode.default);
51
45
  (0, _ava.default)('Template › TemplateExternalCourse › PodcastNoBackground › should be rendered', _renderComponent.default, _.default, _podcastNoBackground.default);
52
46
  (0, _ava.default)('Template › TemplateExternalCourse › Podcast › should be rendered', _renderComponent.default, _.default, _podcast.default);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/template/external-course/test/fixtures.js"],"names":["t","pass","TemplateExternalCourse","propTypes","value","key","not","undefined","renderComponentMacro","fixtureArabic","fixtureArticle","fixtureDefault","fixtureH5P","fixtureLoading","fixturePdfMobile","fixturePdfNoMobile","fixturePodcastCockpitMode","fixturePodcastNoBackground","fixturePodcast","fix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forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport TemplateExternalCourse from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureArticle from './fixtures/article';\nimport fixtureDefault from './fixtures/default';\nimport fixtureH5P from './fixtures/h5p';\nimport fixtureLoading from './fixtures/loading';\nimport fixturePdfMobile from './fixtures/pdf-mobile';\nimport fixturePdfNoMobile from './fixtures/pdf-no-mobile';\nimport fixturePodcastCockpitMode from './fixtures/podcast-cockpit-mode';\nimport fixturePodcastNoBackground from './fixtures/podcast-no-background';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureVideo from './fixtures/video';\nimport fixtureYoutubePodcast from './fixtures/youtube-podcast';\n\ntest('Template › TemplateExternalCourse > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateExternalCourse.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Template.TemplateExternalCourse.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Template › TemplateExternalCourse › Arabic › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureArabic);\ntest('Template › TemplateExternalCourse › Article › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureArticle);\ntest('Template › TemplateExternalCourse › Default › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureDefault);\ntest('Template › TemplateExternalCourse › H5P › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureH5P);\ntest('Template › TemplateExternalCourse › Loading › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureLoading);\ntest('Template › TemplateExternalCourse › PdfMobile › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePdfMobile);\ntest('Template › TemplateExternalCourse › PdfNoMobile › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePdfNoMobile);\ntest('Template › TemplateExternalCourse › PodcastCockpitMode › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePodcastCockpitMode);\ntest('Template › TemplateExternalCourse › PodcastNoBackground › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePodcastNoBackground);\ntest('Template › TemplateExternalCourse › Podcast › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePodcast);\ntest('Template › TemplateExternalCourse › Video › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureVideo);\ntest('Template › TemplateExternalCourse › YoutubePodcast › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureYoutubePodcast);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/template/external-course/test/fixtures.js"],"names":["t","pass","TemplateExternalCourse","propTypes","value","key","not","undefined","renderComponentMacro","fixtureArabic","fixtureArticle","fixtureDefault","fixtureH5P","fixtureLoading","fixturePodcastCockpitMode","fixturePodcastNoBackground","fixturePodcast","fixtureVideo","fixtureYoutubePodcast"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,iEAAL,EAAwEA,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAuBC,SAA/B,EAA0C,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,iEAAL,EAAwEG,wBAAxE,EAA8FN,SAA9F,EAAsHO,eAAtH;AACA,kBAAK,kEAAL,EAAyED,wBAAzE,EAA+FN,SAA/F,EAAuHQ,gBAAvH;AACA,kBAAK,kEAAL,EAAyEF,wBAAzE,EAA+FN,SAA/F,EAAuHS,gBAAvH;AACA,kBAAK,8DAAL,EAAqEH,wBAArE,EAA2FN,SAA3F,EAAmHU,YAAnH;AACA,kBAAK,kEAAL,EAAyEJ,wBAAzE,EAA+FN,SAA/F,EAAuHW,gBAAvH;AACA,kBAAK,6EAAL,EAAoFL,wBAApF,EAA0GN,SAA1G,EAAkIY,2BAAlI;AACA,kBAAK,8EAAL,EAAqFN,wBAArF,EAA2GN,SAA3G,EAAmIa,4BAAnI;AACA,kBAAK,kEAAL,EAAyEP,wBAAzE,EAA+FN,SAA/F,EAAuHc,gBAAvH;AACA,kBAAK,gEAAL,EAAuER,wBAAvE,EAA6FN,SAA7F,EAAqHe,cAArH;AACA,kBAAK,yEAAL,EAAgFT,wBAAhF,EAAsGN,SAAtG,EAA8HgB,uBAA9H","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport TemplateExternalCourse from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureArticle from './fixtures/article';\nimport fixtureDefault from './fixtures/default';\nimport fixtureH5P from './fixtures/h5p';\nimport fixtureLoading from './fixtures/loading';\nimport fixturePodcastCockpitMode from './fixtures/podcast-cockpit-mode';\nimport fixturePodcastNoBackground from './fixtures/podcast-no-background';\nimport fixturePodcast from './fixtures/podcast';\nimport fixtureVideo from './fixtures/video';\nimport fixtureYoutubePodcast from './fixtures/youtube-podcast';\n\ntest('Template › TemplateExternalCourse > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateExternalCourse.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Template.TemplateExternalCourse.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Template › TemplateExternalCourse › Arabic › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureArabic);\ntest('Template › TemplateExternalCourse › Article › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureArticle);\ntest('Template › TemplateExternalCourse › Default › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureDefault);\ntest('Template › TemplateExternalCourse › H5P › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureH5P);\ntest('Template › TemplateExternalCourse › Loading › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureLoading);\ntest('Template › TemplateExternalCourse › PodcastCockpitMode › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePodcastCockpitMode);\ntest('Template › TemplateExternalCourse › PodcastNoBackground › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePodcastNoBackground);\ntest('Template › TemplateExternalCourse › Podcast › should be rendered', renderComponentMacro, TemplateExternalCourse, fixturePodcast);\ntest('Template › TemplateExternalCourse › Video › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureVideo);\ntest('Template › TemplateExternalCourse › YoutubePodcast › should be rendered', renderComponentMacro, TemplateExternalCourse, fixtureYoutubePodcast);\n"],"file":"fixtures.js"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _react = _interopRequireDefault(require("react"));
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ var _reviewPresentation = _interopRequireDefault(require("../../atom/review-presentation"));
11
+
12
+ var _reviewSkills = _interopRequireDefault(require("../../organism/review-skills"));
13
+
14
+ var _style = _interopRequireDefault(require("./style.css"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ const ReviewDashboardSkills = props => {
19
+ const {
20
+ 'aria-label': ariaLabel,
21
+ reviewPresentation,
22
+ reviewSkills
23
+ } = props;
24
+ return /*#__PURE__*/_react.default.createElement("div", {
25
+ className: _style.default.reviewDashboardContainer,
26
+ "aria-label": ariaLabel
27
+ }, /*#__PURE__*/_react.default.createElement("div", {
28
+ className: _style.default.reviewPresentationContainer
29
+ }, /*#__PURE__*/_react.default.createElement(_reviewPresentation.default, reviewPresentation)), /*#__PURE__*/_react.default.createElement("div", {
30
+ className: _style.default.reviewSkillsContainer
31
+ }, /*#__PURE__*/_react.default.createElement(_reviewSkills.default, reviewSkills)));
32
+ };
33
+
34
+ ReviewDashboardSkills.propTypes = process.env.NODE_ENV !== "production" ? {
35
+ 'aria-label': _propTypes.default.string,
36
+ reviewPresentation: _propTypes.default.shape(_reviewPresentation.default.propTypes),
37
+ reviewSkills: _propTypes.default.shape(_reviewSkills.default.propTypes)
38
+ } : {};
39
+ var _default = ReviewDashboardSkills;
40
+ exports.default = _default;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/template/review-dashboard-skills/index.js"],"names":["ReviewDashboardSkills","props","ariaLabel","reviewPresentation","reviewSkills","style","reviewDashboardContainer","reviewPresentationContainer","reviewSkillsContainer","propTypes","PropTypes","string","shape","ReviewPresentation","ReviewSkills"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,qBAAqB,GAAGC,KAAK,IAAI;AACrC,QAAM;AAAC,kBAAcC,SAAf;AAA0BC,IAAAA,kBAA1B;AAA8CC,IAAAA;AAA9C,MAA8DH,KAApE;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEI,eAAMC,wBAAtB;AAAgD,kBAAYJ;AAA5D,kBACE;AAAK,IAAA,SAAS,EAAEG,eAAME;AAAtB,kBACE,6BAAC,2BAAD,EAAwBJ,kBAAxB,CADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEE,eAAMG;AAAtB,kBACE,6BAAC,qBAAD,EAAkBJ,YAAlB,CADF,CAJF,CADF;AAUD,CAbD;;AAeAJ,qBAAqB,CAACS,SAAtB,2CAAkC;AAChC,gBAAcC,mBAAUC,MADQ;AAEhCR,EAAAA,kBAAkB,EAAEO,mBAAUE,KAAV,CAAgBC,4BAAmBJ,SAAnC,CAFY;AAGhCL,EAAAA,YAAY,EAAEM,mBAAUE,KAAV,CAAgBE,sBAAaL,SAA7B;AAHkB,CAAlC;eAKeT,qB","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ReviewPresentation from '../../atom/review-presentation';\nimport ReviewSkills from '../../organism/review-skills';\nimport style from './style.css';\n\nconst ReviewDashboardSkills = props => {\n const {'aria-label': ariaLabel, reviewPresentation, reviewSkills} = props;\n\n return (\n <div className={style.reviewDashboardContainer} aria-label={ariaLabel}>\n <div className={style.reviewPresentationContainer}>\n <ReviewPresentation {...reviewPresentation} />\n </div>\n <div className={style.reviewSkillsContainer}>\n <ReviewSkills {...reviewSkills} />\n </div>\n </div>\n );\n};\n\nReviewDashboardSkills.propTypes = {\n 'aria-label': PropTypes.string,\n reviewPresentation: PropTypes.shape(ReviewPresentation.propTypes),\n reviewSkills: PropTypes.shape(ReviewSkills.propTypes)\n};\nexport default ReviewDashboardSkills;\n"],"file":"index.js"}