@coorpacademy/components 10.12.0 → 10.13.2

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 (143) hide show
  1. package/es/{molecule → atom}/checkbox-with-title/index.js +0 -0
  2. package/es/atom/checkbox-with-title/index.js.map +1 -0
  3. package/es/{molecule → atom}/checkbox-with-title/style.css +0 -0
  4. package/es/{molecule → atom}/checkbox-with-title/test/fixtures/checked.js +0 -0
  5. package/es/atom/checkbox-with-title/test/fixtures/checked.js.map +1 -0
  6. package/es/{molecule → atom}/checkbox-with-title/test/fixtures/unchecked.js +0 -0
  7. package/es/atom/checkbox-with-title/test/fixtures/unchecked.js.map +1 -0
  8. package/es/atom/checkbox-with-title/test/fixtures.js +15 -0
  9. package/es/atom/checkbox-with-title/test/fixtures.js.map +1 -0
  10. package/es/atom/input-text/index.js +9 -3
  11. package/es/atom/input-text/index.js.map +1 -1
  12. package/es/atom/input-text-with-title/index.js +35 -0
  13. package/es/atom/input-text-with-title/index.js.map +1 -0
  14. package/es/atom/input-text-with-title/style.css +24 -0
  15. package/es/atom/input-text-with-title/test/fixtures/default.js +12 -0
  16. package/es/atom/input-text-with-title/test/fixtures/default.js.map +1 -0
  17. package/es/atom/input-text-with-title/test/fixtures/error.js +13 -0
  18. package/es/atom/input-text-with-title/test/fixtures/error.js.map +1 -0
  19. package/es/atom/input-text-with-title/test/fixtures.js +15 -0
  20. package/es/atom/input-text-with-title/test/fixtures.js.map +1 -0
  21. package/es/atom/review-header-step-item/index.js +55 -0
  22. package/es/atom/review-header-step-item/index.js.map +1 -0
  23. package/es/atom/review-header-step-item/style.css +71 -0
  24. package/es/atom/review-header-step-item/test/fixtures/current.js +8 -0
  25. package/es/atom/review-header-step-item/test/fixtures/current.js.map +1 -0
  26. package/es/atom/review-header-step-item/test/fixtures/default.js +8 -0
  27. package/es/atom/review-header-step-item/test/fixtures/default.js.map +1 -0
  28. package/es/atom/review-header-step-item/test/fixtures/right.js +8 -0
  29. package/es/atom/review-header-step-item/test/fixtures/right.js.map +1 -0
  30. package/es/atom/review-header-step-item/test/fixtures/wrong.js +8 -0
  31. package/es/atom/review-header-step-item/test/fixtures/wrong.js.map +1 -0
  32. package/es/atom/select/style.css +1 -0
  33. package/es/molecule/course-sections/index.js +16 -3
  34. package/es/molecule/course-sections/index.js.map +1 -1
  35. package/es/molecule/course-sections/style.css +4 -0
  36. package/es/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js +11 -0
  37. package/es/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js.map +1 -0
  38. package/es/molecule/course-sections/test/fixtures.js +2 -0
  39. package/es/molecule/course-sections/test/fixtures.js.map +1 -1
  40. package/es/molecule/input-text-with-titeled-checkbox/index.js +63 -0
  41. package/es/molecule/input-text-with-titeled-checkbox/index.js.map +1 -0
  42. package/es/molecule/input-text-with-titeled-checkbox/style.css +3 -0
  43. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js +16 -0
  44. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js.map +1 -0
  45. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js +18 -0
  46. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js.map +1 -0
  47. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js +15 -0
  48. package/es/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
  49. package/es/molecule/review-header-steps/index.js +26 -0
  50. package/es/molecule/review-header-steps/index.js.map +1 -0
  51. package/es/molecule/review-header-steps/style.css +6 -0
  52. package/es/molecule/review-header-steps/test/fixtures/all-questions-ok.js +26 -0
  53. package/es/molecule/review-header-steps/test/fixtures/all-questions-ok.js.map +1 -0
  54. package/es/molecule/review-header-steps/test/fixtures/current-question-no-aswered.js +26 -0
  55. package/es/molecule/review-header-steps/test/fixtures/current-question-no-aswered.js.map +1 -0
  56. package/es/molecule/review-header-steps/test/fixtures/current-question-wrong.js +26 -0
  57. package/es/molecule/review-header-steps/test/fixtures/current-question-wrong.js.map +1 -0
  58. package/es/molecule/review-header-steps/test/fixtures/first-question-current-right.js +26 -0
  59. package/es/molecule/review-header-steps/test/fixtures/first-question-current-right.js.map +1 -0
  60. package/es/molecule/review-header-steps/test/fixtures/no-answered-question.js +26 -0
  61. package/es/molecule/review-header-steps/test/fixtures/no-answered-question.js.map +1 -0
  62. package/es/molecule/review-header-steps/test/fixtures/question-to-repeat.js +26 -0
  63. package/es/molecule/review-header-steps/test/fixtures/question-to-repeat.js.map +1 -0
  64. package/es/organism/wizard-contents/style.css +0 -1
  65. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +1 -1
  66. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
  67. package/lib/{molecule → atom}/checkbox-with-title/index.js +0 -0
  68. package/lib/atom/checkbox-with-title/index.js.map +1 -0
  69. package/lib/{molecule → atom}/checkbox-with-title/style.css +0 -0
  70. package/lib/{molecule → atom}/checkbox-with-title/test/fixtures/checked.js +0 -0
  71. package/lib/atom/checkbox-with-title/test/fixtures/checked.js.map +1 -0
  72. package/lib/{molecule → atom}/checkbox-with-title/test/fixtures/unchecked.js +0 -0
  73. package/lib/atom/checkbox-with-title/test/fixtures/unchecked.js.map +1 -0
  74. package/lib/atom/checkbox-with-title/test/fixtures.js +25 -0
  75. package/lib/atom/checkbox-with-title/test/fixtures.js.map +1 -0
  76. package/lib/atom/input-text/index.js +9 -3
  77. package/lib/atom/input-text/index.js.map +1 -1
  78. package/lib/atom/input-text-with-title/index.js +46 -0
  79. package/lib/atom/input-text-with-title/index.js.map +1 -0
  80. package/lib/atom/input-text-with-title/style.css +24 -0
  81. package/lib/atom/input-text-with-title/test/fixtures/default.js +21 -0
  82. package/lib/atom/input-text-with-title/test/fixtures/default.js.map +1 -0
  83. package/lib/atom/input-text-with-title/test/fixtures/error.js +22 -0
  84. package/lib/atom/input-text-with-title/test/fixtures/error.js.map +1 -0
  85. package/lib/atom/input-text-with-title/test/fixtures.js +25 -0
  86. package/lib/atom/input-text-with-title/test/fixtures.js.map +1 -0
  87. package/lib/atom/review-header-step-item/index.js +67 -0
  88. package/lib/atom/review-header-step-item/index.js.map +1 -0
  89. package/lib/atom/review-header-step-item/style.css +71 -0
  90. package/lib/atom/review-header-step-item/test/fixtures/current.js +13 -0
  91. package/lib/atom/review-header-step-item/test/fixtures/current.js.map +1 -0
  92. package/lib/atom/review-header-step-item/test/fixtures/default.js +13 -0
  93. package/lib/atom/review-header-step-item/test/fixtures/default.js.map +1 -0
  94. package/lib/atom/review-header-step-item/test/fixtures/right.js +13 -0
  95. package/lib/atom/review-header-step-item/test/fixtures/right.js.map +1 -0
  96. package/lib/atom/review-header-step-item/test/fixtures/wrong.js +13 -0
  97. package/lib/atom/review-header-step-item/test/fixtures/wrong.js.map +1 -0
  98. package/lib/atom/select/style.css +1 -0
  99. package/lib/molecule/course-sections/index.js +17 -3
  100. package/lib/molecule/course-sections/index.js.map +1 -1
  101. package/lib/molecule/course-sections/style.css +4 -0
  102. package/lib/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js +21 -0
  103. package/lib/molecule/course-sections/test/fixtures/with-mandatory-courses-input.js.map +1 -0
  104. package/lib/molecule/course-sections/test/fixtures.js +3 -0
  105. package/lib/molecule/course-sections/test/fixtures.js.map +1 -1
  106. package/lib/molecule/input-text-with-titeled-checkbox/index.js +75 -0
  107. package/lib/molecule/input-text-with-titeled-checkbox/index.js.map +1 -0
  108. package/lib/molecule/input-text-with-titeled-checkbox/style.css +3 -0
  109. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js +21 -0
  110. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/checked.js.map +1 -0
  111. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js +23 -0
  112. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures/unchecked.js.map +1 -0
  113. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js +25 -0
  114. package/lib/molecule/input-text-with-titeled-checkbox/test/fixtures.js.map +1 -0
  115. package/lib/molecule/review-header-steps/index.js +38 -0
  116. package/lib/molecule/review-header-steps/index.js.map +1 -0
  117. package/lib/molecule/review-header-steps/style.css +6 -0
  118. package/lib/molecule/review-header-steps/test/fixtures/all-questions-ok.js +31 -0
  119. package/lib/molecule/review-header-steps/test/fixtures/all-questions-ok.js.map +1 -0
  120. package/lib/molecule/review-header-steps/test/fixtures/current-question-no-aswered.js +31 -0
  121. package/lib/molecule/review-header-steps/test/fixtures/current-question-no-aswered.js.map +1 -0
  122. package/lib/molecule/review-header-steps/test/fixtures/current-question-wrong.js +31 -0
  123. package/lib/molecule/review-header-steps/test/fixtures/current-question-wrong.js.map +1 -0
  124. package/lib/molecule/review-header-steps/test/fixtures/first-question-current-right.js +31 -0
  125. package/lib/molecule/review-header-steps/test/fixtures/first-question-current-right.js.map +1 -0
  126. package/lib/molecule/review-header-steps/test/fixtures/no-answered-question.js +31 -0
  127. package/lib/molecule/review-header-steps/test/fixtures/no-answered-question.js.map +1 -0
  128. package/lib/molecule/review-header-steps/test/fixtures/question-to-repeat.js +31 -0
  129. package/lib/molecule/review-header-steps/test/fixtures/question-to-repeat.js.map +1 -0
  130. package/lib/organism/wizard-contents/style.css +0 -1
  131. package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +2 -2
  132. package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -1
  133. package/package.json +2 -2
  134. package/es/molecule/checkbox-with-title/index.js.map +0 -1
  135. package/es/molecule/checkbox-with-title/test/fixtures/checked.js.map +0 -1
  136. package/es/molecule/checkbox-with-title/test/fixtures/unchecked.js.map +0 -1
  137. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  138. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  139. package/lib/molecule/checkbox-with-title/index.js.map +0 -1
  140. package/lib/molecule/checkbox-with-title/test/fixtures/checked.js.map +0 -1
  141. package/lib/molecule/checkbox-with-title/test/fixtures/unchecked.js.map +0 -1
  142. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  143. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
@@ -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 _checked = _interopRequireDefault(require("./fixtures/checked"));
12
+
13
+ var _unchecked = _interopRequireDefault(require("./fixtures/unchecked"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+
17
+ (0, _ava.default)('Molecule › MoleculeInputTextWithTiteledCheckbox > should have valid propTypes', t => {
18
+ t.pass();
19
+ (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
+ t.not(value, undefined, `PropType for "Molecule.MoleculeInputTextWithTiteledCheckbox.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
+ });
22
+ });
23
+ (0, _ava.default)('Molecule › MoleculeInputTextWithTiteledCheckbox › Checked › should be rendered', _renderComponent.default, _.default, _checked.default);
24
+ (0, _ava.default)('Molecule › MoleculeInputTextWithTiteledCheckbox › Unchecked › should be rendered', _renderComponent.default, _.default, _unchecked.default);
25
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/molecule/input-text-with-titeled-checkbox/test/fixtures.js"],"names":["t","pass","MoleculeInputTextWithTiteledCheckbox","propTypes","value","key","not","undefined","renderComponentMacro","fixtureChecked","fixtureUnchecked"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+EAAL,EAAsFA,CAAC,IAAI;AACzFA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAqCC,SAA7C,EAAwD,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtEL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yEAAwEF,GAAI,mEAArG;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,gFAAL,EAAuFG,wBAAvF,EAA6GN,SAA7G,EAAmJO,gBAAnJ;AACA,kBAAK,kFAAL,EAAyFD,wBAAzF,EAA+GN,SAA/G,EAAqJQ,kBAArJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeInputTextWithTiteledCheckbox from '..';\nimport fixtureChecked from './fixtures/checked';\nimport fixtureUnchecked from './fixtures/unchecked';\n\ntest('Molecule › MoleculeInputTextWithTiteledCheckbox > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeInputTextWithTiteledCheckbox.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeInputTextWithTiteledCheckbox.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeInputTextWithTiteledCheckbox › Checked › should be rendered', renderComponentMacro, MoleculeInputTextWithTiteledCheckbox, fixtureChecked);\ntest('Molecule › MoleculeInputTextWithTiteledCheckbox › Unchecked › should be rendered', renderComponentMacro, MoleculeInputTextWithTiteledCheckbox, fixtureUnchecked);\n"],"file":"fixtures.js"}
@@ -0,0 +1,38 @@
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 _map = _interopRequireDefault(require("lodash/fp/map"));
11
+
12
+ var _reviewHeaderStepItem = _interopRequireDefault(require("../../atom/review-header-step-item"));
13
+
14
+ var _style = _interopRequireDefault(require("./style.css"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
+
20
+ const ReviewHeaderStep = props => {
21
+ const {
22
+ steps
23
+ } = props;
24
+ const items = (0, _map.default)(step => /*#__PURE__*/_react.default.createElement(_reviewHeaderStepItem.default, _extends({}, step, {
25
+ key: step.value
26
+ })), steps);
27
+ return /*#__PURE__*/_react.default.createElement("div", {
28
+ className: _style.default.wrapper,
29
+ "data-name": "header-steps"
30
+ }, items);
31
+ };
32
+
33
+ ReviewHeaderStep.propTypes = process.env.NODE_ENV !== "production" ? {
34
+ steps: _propTypes.default.arrayOf(_propTypes.default.shape(_reviewHeaderStepItem.default.props))
35
+ } : {};
36
+ var _default = ReviewHeaderStep;
37
+ exports.default = _default;
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/molecule/review-header-steps/index.js"],"names":["ReviewHeaderStep","props","steps","items","step","value","style","wrapper","propTypes","PropTypes","arrayOf","shape","ReviewHeaderStepItem"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,gBAAgB,GAAGC,KAAK,IAAI;AAChC,QAAM;AAACC,IAAAA;AAAD,MAAUD,KAAhB;AAEA,QAAME,KAAK,GAAG,kBAAIC,IAAI,iBAAI,6BAAC,6BAAD,eAA0BA,IAA1B;AAAgC,IAAA,GAAG,EAAEA,IAAI,CAACC;AAA1C,KAAZ,EAAiEH,KAAjE,CAAd;AAEA,sBACE;AAAK,IAAA,SAAS,EAAEI,eAAMC,OAAtB;AAA+B,iBAAU;AAAzC,KACGJ,KADH,CADF;AAKD,CAVD;;AAYAH,gBAAgB,CAACQ,SAAjB,2CAA6B;AAC3BN,EAAAA,KAAK,EAAEO,mBAAUC,OAAV,CAAkBD,mBAAUE,KAAV,CAAgBC,8BAAqBX,KAArC,CAAlB;AADoB,CAA7B;eAIeD,gB","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport ReviewHeaderStepItem from '../../atom/review-header-step-item';\nimport style from './style.css';\n\nconst ReviewHeaderStep = props => {\n const {steps} = props;\n\n const items = map(step => <ReviewHeaderStepItem {...step} key={step.value} />, steps);\n\n return (\n <div className={style.wrapper} data-name=\"header-steps\">\n {items}\n </div>\n );\n};\n\nReviewHeaderStep.propTypes = {\n steps: PropTypes.arrayOf(PropTypes.shape(ReviewHeaderStepItem.props))\n};\n\nexport default ReviewHeaderStep;\n"],"file":"index.js"}
@@ -0,0 +1,6 @@
1
+ .wrapper {
2
+ width: 264px;
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ steps: [{
8
+ icon: 'right',
9
+ current: false,
10
+ value: '1'
11
+ }, {
12
+ icon: 'right',
13
+ current: false,
14
+ value: '2'
15
+ }, {
16
+ icon: 'right',
17
+ current: true,
18
+ value: '3'
19
+ }, {
20
+ icon: 'right',
21
+ current: false,
22
+ value: '4'
23
+ }, {
24
+ icon: 'right',
25
+ current: false,
26
+ value: '5'
27
+ }]
28
+ }
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=all-questions-ok.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/review-header-steps/test/fixtures/all-questions-ok.js"],"names":["props","steps","icon","current","value"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KADK,EAML;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KANK,EAWL;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,IAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAXK,EAgBL;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAhBK,EAqBL;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KArBK;AADF;AADM,C","sourcesContent":["export default {\n props: {\n steps: [\n {\n icon: 'right',\n current: false,\n value: '1'\n },\n {\n icon: 'right',\n current: false,\n value: '2'\n },\n {\n icon: 'right',\n current: true,\n value: '3'\n },\n {\n icon: 'right',\n current: false,\n value: '4'\n },\n {\n icon: 'right',\n current: false,\n value: '5'\n }\n ]\n }\n};\n"],"file":"all-questions-ok.js"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ steps: [{
8
+ icon: 'right',
9
+ current: false,
10
+ value: '1'
11
+ }, {
12
+ icon: 'wrong',
13
+ current: false,
14
+ value: '2'
15
+ }, {
16
+ icon: null,
17
+ current: true,
18
+ value: '3'
19
+ }, {
20
+ icon: null,
21
+ current: false,
22
+ value: '4'
23
+ }, {
24
+ icon: null,
25
+ current: false,
26
+ value: '5'
27
+ }]
28
+ }
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=current-question-no-aswered.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/review-header-steps/test/fixtures/current-question-no-aswered.js"],"names":["props","steps","icon","current","value"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KADK,EAML;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KANK,EAWL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,IAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAXK,EAgBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAhBK,EAqBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KArBK;AADF;AADM,C","sourcesContent":["export default {\n props: {\n steps: [\n {\n icon: 'right',\n current: false,\n value: '1'\n },\n {\n icon: 'wrong',\n current: false,\n value: '2'\n },\n {\n icon: null,\n current: true,\n value: '3'\n },\n {\n icon: null,\n current: false,\n value: '4'\n },\n {\n icon: null,\n current: false,\n value: '5'\n }\n ]\n }\n};\n"],"file":"current-question-no-aswered.js"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ steps: [{
8
+ icon: 'right',
9
+ current: false,
10
+ value: '1'
11
+ }, {
12
+ icon: 'wrong',
13
+ current: false,
14
+ value: '2'
15
+ }, {
16
+ icon: 'wrong',
17
+ current: true,
18
+ value: '3'
19
+ }, {
20
+ icon: null,
21
+ current: false,
22
+ value: '4'
23
+ }, {
24
+ icon: null,
25
+ current: false,
26
+ value: '5'
27
+ }]
28
+ }
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=current-question-wrong.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/review-header-steps/test/fixtures/current-question-wrong.js"],"names":["props","steps","icon","current","value"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KADK,EAML;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KANK,EAWL;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,IAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAXK,EAgBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAhBK,EAqBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KArBK;AADF;AADM,C","sourcesContent":["export default {\n props: {\n steps: [\n {\n icon: 'right',\n current: false,\n value: '1'\n },\n {\n icon: 'wrong',\n current: false,\n value: '2'\n },\n {\n icon: 'wrong',\n current: true,\n value: '3'\n },\n {\n icon: null,\n current: false,\n value: '4'\n },\n {\n icon: null,\n current: false,\n value: '5'\n }\n ]\n }\n};\n"],"file":"current-question-wrong.js"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ steps: [{
8
+ icon: 'right',
9
+ current: true,
10
+ value: '1'
11
+ }, {
12
+ icon: null,
13
+ current: false,
14
+ value: '2'
15
+ }, {
16
+ icon: null,
17
+ current: false,
18
+ value: '3'
19
+ }, {
20
+ icon: null,
21
+ current: false,
22
+ value: '4'
23
+ }, {
24
+ icon: null,
25
+ current: false,
26
+ value: '5'
27
+ }]
28
+ }
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=first-question-current-right.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/review-header-steps/test/fixtures/first-question-current-right.js"],"names":["props","steps","icon","current","value"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,IAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KADK,EAML;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KANK,EAWL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAXK,EAgBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAhBK,EAqBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KArBK;AADF;AADM,C","sourcesContent":["export default {\n props: {\n steps: [\n {\n icon: 'right',\n current: true,\n value: '1'\n },\n {\n icon: null,\n current: false,\n value: '2'\n },\n {\n icon: null,\n current: false,\n value: '3'\n },\n {\n icon: null,\n current: false,\n value: '4'\n },\n {\n icon: null,\n current: false,\n value: '5'\n }\n ]\n }\n};\n"],"file":"first-question-current-right.js"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ steps: [{
8
+ icon: null,
9
+ current: true,
10
+ value: '1'
11
+ }, {
12
+ icon: null,
13
+ current: false,
14
+ value: '2'
15
+ }, {
16
+ icon: null,
17
+ current: false,
18
+ value: '3'
19
+ }, {
20
+ icon: null,
21
+ current: false,
22
+ value: '4'
23
+ }, {
24
+ icon: null,
25
+ current: false,
26
+ value: '5'
27
+ }]
28
+ }
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=no-answered-question.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/review-header-steps/test/fixtures/no-answered-question.js"],"names":["props","steps","icon","current","value"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,IAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KADK,EAML;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KANK,EAWL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAXK,EAgBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAhBK,EAqBL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KArBK;AADF;AADM,C","sourcesContent":["export default {\n props: {\n steps: [\n {\n icon: null,\n current: true,\n value: '1'\n },\n {\n icon: null,\n current: false,\n value: '2'\n },\n {\n icon: null,\n current: false,\n value: '3'\n },\n {\n icon: null,\n current: false,\n value: '4'\n },\n {\n icon: null,\n current: false,\n value: '5'\n }\n ]\n }\n};\n"],"file":"no-answered-question.js"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _default = {
6
+ props: {
7
+ steps: [{
8
+ icon: 'right',
9
+ current: false,
10
+ value: '1'
11
+ }, {
12
+ icon: 'right',
13
+ current: false,
14
+ value: '2'
15
+ }, {
16
+ icon: null,
17
+ current: true,
18
+ value: '3'
19
+ }, {
20
+ icon: 'right',
21
+ current: false,
22
+ value: '4'
23
+ }, {
24
+ icon: 'right',
25
+ current: false,
26
+ value: '5'
27
+ }]
28
+ }
29
+ };
30
+ exports.default = _default;
31
+ //# sourceMappingURL=question-to-repeat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/molecule/review-header-steps/test/fixtures/question-to-repeat.js"],"names":["props","steps","icon","current","value"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,CACL;AACEC,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KADK,EAML;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KANK,EAWL;AACEF,MAAAA,IAAI,EAAE,IADR;AAEEC,MAAAA,OAAO,EAAE,IAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAXK,EAgBL;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KAhBK,EAqBL;AACEF,MAAAA,IAAI,EAAE,OADR;AAEEC,MAAAA,OAAO,EAAE,KAFX;AAGEC,MAAAA,KAAK,EAAE;AAHT,KArBK;AADF;AADM,C","sourcesContent":["export default {\n props: {\n steps: [\n {\n icon: 'right',\n current: false,\n value: '1'\n },\n {\n icon: 'right',\n current: false,\n value: '2'\n },\n {\n icon: null,\n current: true,\n value: '3'\n },\n {\n icon: 'right',\n current: false,\n value: '4'\n },\n {\n icon: 'right',\n current: false,\n value: '5'\n }\n ]\n }\n};\n"],"file":"question-to-repeat.js"}
@@ -60,7 +60,6 @@
60
60
  .summaryZone {
61
61
  width: 100%;
62
62
  position: relative;
63
- min-height: 500px;
64
63
  display: flex;
65
64
  flex-direction: column;
66
65
  flex-grow: 1;
@@ -5,7 +5,7 @@ exports.default = void 0;
5
5
 
6
6
  var _organizeCourses = _interopRequireDefault(require("../../../../molecule/wizard-summary/test/fixtures/organize-courses"));
7
7
 
8
- var _default2 = _interopRequireDefault(require("../../../../molecule/course-sections/test/fixtures/default"));
8
+ var _withMandatoryCoursesInput = _interopRequireDefault(require("../../../../molecule/course-sections/test/fixtures/with-mandatory-courses-input"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
 
@@ -36,7 +36,7 @@ var _default = {
36
36
  current: true
37
37
  }],
38
38
  summary: _organizeCourses.default.props,
39
- content: _extends(_extends({}, _default2.default.props), {}, {
39
+ content: _extends(_extends({}, _withMandatoryCoursesInput.default.props), {}, {
40
40
  type: 'organize-courses'
41
41
  }),
42
42
  previousStep: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-organize-courses.js"],"names":["props","isLoading","wizardHeader","title","onClick","console","log","steps","done","current","summary","wizardSummaryOrganizeCourses","content","organizeCoursesForm","type","previousStep","label","nextStep"],"mappings":";;;;;AACA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAE,KADN;AAELC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,8BADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KAFT;AAMLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAbK,EAiBL;AACEL,MAAAA,KAAK,EAAE,kBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAjBK,CANF;AA6BLC,IAAAA,OAAO,EAAEC,yBAA6BX,KA7BjC;AA8BLY,IAAAA,OAAO,wBACFC,kBAAoBb,KADlB;AAELc,MAAAA,IAAI,EAAE;AAFD,MA9BF;AAkCLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZZ,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KAlCT;AAsCLW,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,SADE;AAERE,MAAAA,KAAK,EAAE,SAFC;AAGRZ,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAtCL;AADM,C","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummaryOrganizeCourses from '../../../../molecule/wizard-summary/test/fixtures/organize-courses';\nimport organizeCoursesForm from '../../../../molecule/course-sections/test/fixtures/default';\n\nexport default {\n props: {\n isLoading: false,\n wizardHeader: {\n title: 'Create a new custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Add courses',\n done: true\n },\n {\n title: 'Organize courses',\n done: false,\n current: true\n }\n ],\n summary: wizardSummaryOrganizeCourses.props,\n content: {\n ...organizeCoursesForm.props,\n type: 'organize-courses'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'publish',\n label: 'Publish',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-organize-courses.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-organize-courses.js"],"names":["props","isLoading","wizardHeader","title","onClick","console","log","steps","done","current","summary","wizardSummaryOrganizeCourses","content","organizeCoursesForm","type","previousStep","label","nextStep"],"mappings":";;;;;AACA;;AACA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,SAAS,EAAE,KADN;AAELC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,8BADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KAFT;AAMLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KATK,EAaL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAbK,EAiBL;AACEL,MAAAA,KAAK,EAAE,kBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KAjBK,CANF;AA6BLC,IAAAA,OAAO,EAAEC,yBAA6BX,KA7BjC;AA8BLY,IAAAA,OAAO,wBACFC,mCAAoBb,KADlB;AAELc,MAAAA,IAAI,EAAE;AAFD,MA9BF;AAkCLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZZ,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KAlCT;AAsCLW,IAAAA,QAAQ,EAAE;AACRH,MAAAA,IAAI,EAAE,SADE;AAERE,MAAAA,KAAK,EAAE,SAFC;AAGRZ,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAHP;AAtCL;AADM,C","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummaryOrganizeCourses from '../../../../molecule/wizard-summary/test/fixtures/organize-courses';\nimport organizeCoursesForm from '../../../../molecule/course-sections/test/fixtures/with-mandatory-courses-input';\n\nexport default {\n props: {\n isLoading: false,\n wizardHeader: {\n title: 'Create a new custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: true\n },\n {\n title: 'Add courses',\n done: true\n },\n {\n title: 'Organize courses',\n done: false,\n current: true\n }\n ],\n summary: wizardSummaryOrganizeCourses.props,\n content: {\n ...organizeCoursesForm.props,\n type: 'organize-courses'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n type: 'publish',\n label: 'Publish',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-organize-courses.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "10.12.0",
3
+ "version": "10.13.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -119,5 +119,5 @@
119
119
  "webpack-hot-middleware": "^2.25.0"
120
120
  },
121
121
  "author": "CoorpAcademy",
122
- "gitHead": "0cfdfef09b2ebb7376acd34e2eae449570eaf447"
122
+ "gitHead": "ed33f1353a0729baafaf8700ffe462bad97ec437"
123
123
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/molecule/checkbox-with-title/index.js"],"names":["React","useMemo","PropTypes","NovaSolidStatusValidate","CheckIcon","style","CheckboxWithTitle","props","title","name","checked","onChange","dataName","ariaLabel","idCheckbox","handleChange","e","target","container","checkbox","label","icon","propTypes","string","bool","func"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,uBAAuB,IAAIC,SAAnC,QAAmD,0BAAnD;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,iBAAiB,GAAGC,KAAK,IAAI;AACjC,QAAM;AACJC,IAAAA,KADI;AAEJC,IAAAA,IAFI;AAGJC,IAAAA,OAHI;AAIJC,IAAAA,QAAQ,QAJJ;AAKJ,iBAAaC,QALT;AAMJ,kBAAcC;AANV,MAOFN,KAPJ;;AASA,QAAMO,UAAU,GAAG,UAAS,iBAAT,CAAnB;;AACA,QAAMC,YAAY,GAAGd,OAAO,CAAC,MAAMe,CAAC,IAAIL,QAAQ,CAACK,CAAC,CAACC,MAAF,CAASP,OAAV,CAApB,EAAwC,CAACC,QAAD,CAAxC,CAA5B;AAEA,sBACE;AAAO,IAAA,SAAS,EAAEN,KAAK,CAACa,SAAxB;AAAmC,IAAA,OAAO,EAAEJ;AAA5C,kBACE;AACE,IAAA,IAAI,EAAC,UADP;AAEE,IAAA,EAAE,EAAEA,UAFN;AAGE,IAAA,IAAI,EAAEL,IAHR;AAIE,IAAA,QAAQ,EAAEM,YAJZ;AAKE,IAAA,OAAO,EAAEL,OALX;AAME,IAAA,SAAS,EAAEL,KAAK,CAACc,QANnB;AAOE,iBAAWP,QAPb;AAQE,kBAAYC;AARd,IADF,eAWE;AAAK,IAAA,SAAS,EAAER,KAAK,CAACe;AAAtB,kBACE,oBAAC,SAAD;AAAW,IAAA,SAAS,EAAEf,KAAK,CAACgB;AAA5B,IADF,CAXF,eAcE;AAAM,IAAA,SAAS,EAAEhB,KAAK,CAACG;AAAvB,KAA+BA,KAA/B,CAdF,CADF;AAkBD,CA/BD;;AAiCAF,iBAAiB,CAACgB,SAAlB,2CAA8B;AAC5Bd,EAAAA,KAAK,EAAEN,SAAS,CAACqB,MADW;AAE5Bd,EAAAA,IAAI,EAAEP,SAAS,CAACqB,MAFY;AAG5Bb,EAAAA,OAAO,EAAER,SAAS,CAACsB,IAHS;AAI5Bb,EAAAA,QAAQ,EAAET,SAAS,CAACuB,IAJQ;AAK5B,gBAAcvB,SAAS,CAACqB,MALI;AAM5B,eAAarB,SAAS,CAACqB;AANK,CAA9B;AAQA,eAAejB,iBAAf","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport {NovaSolidStatusValidate as CheckIcon} from '@coorpacademy/nova-icons';\nimport style from './style.css';\n\nconst CheckboxWithTitle = props => {\n const {\n title,\n name,\n checked,\n onChange = noop,\n 'data-name': dataName,\n 'aria-label': ariaLabel\n } = props;\n\n const idCheckbox = uniqueId('input-checkbox-');\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n return (\n <label className={style.container} htmlFor={idCheckbox}>\n <input\n type=\"checkbox\"\n id={idCheckbox}\n name={name}\n onChange={handleChange}\n checked={checked}\n className={style.checkbox}\n data-name={dataName}\n aria-label={ariaLabel}\n />\n <div className={style.label}>\n <CheckIcon className={style.icon} />\n </div>\n <span className={style.title}>{title}</span>\n </label>\n );\n};\n\nCheckboxWithTitle.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string\n};\nexport default CheckboxWithTitle;\n"],"file":"index.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/molecule/checkbox-with-title/test/fixtures/checked.js"],"names":["props","title","checked","onChange","value","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,OAAO,EAAE,IAFJ;AAGLC,IAAAA,QAAQ,EAAEC,KAAK,IAAIC,OAAO,CAACC,GAAR,CAAYF,KAAZ;AAHd;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Add stars',\n checked: true,\n onChange: value => console.log(value)\n }\n};\n"],"file":"checked.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/molecule/checkbox-with-title/test/fixtures/unchecked.js"],"names":["props","title","checked","onChange","value","console","log"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,cADF;AAELC,IAAAA,OAAO,EAAE,KAFJ;AAGLC,IAAAA,QAAQ,EAAEC,KAAK,IAAIC,OAAO,CAACC,GAAR,CAAYF,KAAZ;AAHd;AADM,CAAf","sourcesContent":["export default {\n props: {\n title: 'Create badge',\n checked: false,\n onChange: value => console.log(value)\n }\n};\n"],"file":"unchecked.js"}
@@ -1,17 +0,0 @@
1
- import test from 'ava';
2
- import forEach from 'lodash/forEach';
3
- import renderComponentMacro from '../../../test/helpers/render-component';
4
- import MoleculeCockpitPopin from '..';
5
- import fixtureDefault from './fixtures/default';
6
- import fixtureLoading from './fixtures/loading';
7
- import fixtureVideoTranslate from './fixtures/video-translate';
8
- test('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {
9
- t.pass();
10
- forEach(MoleculeCockpitPopin.propTypes, (value, key) => {
11
- t.not(value, undefined, `PropType for "Molecule.MoleculeCockpitPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
- });
13
- });
14
- test('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);
15
- test('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);
16
- test('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);
17
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/cockpit-popin/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCockpitPopin","fixtureDefault","fixtureLoading","fixtureVideoTranslate","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,oBAAP,MAAiC,IAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AAEAN,IAAI,CAAC,+DAAD,EAAkEO,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,oBAAoB,CAACM,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GC,cAA/G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,oBAAhG,EAAsHG,qBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCockpitPopin from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureVideoTranslate from './fixtures/video-translate';\n\ntest('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCockpitPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCockpitPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);\ntest('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);\ntest('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);\n"],"file":"fixtures.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/molecule/checkbox-with-title/index.js"],"names":["CheckboxWithTitle","props","title","name","checked","onChange","dataName","ariaLabel","idCheckbox","handleChange","e","target","style","container","checkbox","label","icon","propTypes","PropTypes","string","bool","func"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,iBAAiB,GAAGC,KAAK,IAAI;AACjC,QAAM;AACJC,IAAAA,KADI;AAEJC,IAAAA,IAFI;AAGJC,IAAAA,OAHI;AAIJC,IAAAA,QAAQ,iBAJJ;AAKJ,iBAAaC,QALT;AAMJ,kBAAcC;AANV,MAOFN,KAPJ;AASA,QAAMO,UAAU,GAAG,wBAAS,iBAAT,CAAnB;AACA,QAAMC,YAAY,GAAG,oBAAQ,MAAMC,CAAC,IAAIL,QAAQ,CAACK,CAAC,CAACC,MAAF,CAASP,OAAV,CAA3B,EAA+C,CAACC,QAAD,CAA/C,CAArB;AAEA,sBACE;AAAO,IAAA,SAAS,EAAEO,eAAMC,SAAxB;AAAmC,IAAA,OAAO,EAAEL;AAA5C,kBACE;AACE,IAAA,IAAI,EAAC,UADP;AAEE,IAAA,EAAE,EAAEA,UAFN;AAGE,IAAA,IAAI,EAAEL,IAHR;AAIE,IAAA,QAAQ,EAAEM,YAJZ;AAKE,IAAA,OAAO,EAAEL,OALX;AAME,IAAA,SAAS,EAAEQ,eAAME,QANnB;AAOE,iBAAWR,QAPb;AAQE,kBAAYC;AARd,IADF,eAWE;AAAK,IAAA,SAAS,EAAEK,eAAMG;AAAtB,kBACE,6BAAC,kCAAD;AAAW,IAAA,SAAS,EAAEH,eAAMI;AAA5B,IADF,CAXF,eAcE;AAAM,IAAA,SAAS,EAAEJ,eAAMV;AAAvB,KAA+BA,KAA/B,CAdF,CADF;AAkBD,CA/BD;;AAiCAF,iBAAiB,CAACiB,SAAlB,2CAA8B;AAC5Bf,EAAAA,KAAK,EAAEgB,mBAAUC,MADW;AAE5BhB,EAAAA,IAAI,EAAEe,mBAAUC,MAFY;AAG5Bf,EAAAA,OAAO,EAAEc,mBAAUE,IAHS;AAI5Bf,EAAAA,QAAQ,EAAEa,mBAAUG,IAJQ;AAK5B,gBAAcH,mBAAUC,MALI;AAM5B,eAAaD,mBAAUC;AANK,CAA9B;eAQenB,iB","sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport {NovaSolidStatusValidate as CheckIcon} from '@coorpacademy/nova-icons';\nimport style from './style.css';\n\nconst CheckboxWithTitle = props => {\n const {\n title,\n name,\n checked,\n onChange = noop,\n 'data-name': dataName,\n 'aria-label': ariaLabel\n } = props;\n\n const idCheckbox = uniqueId('input-checkbox-');\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n return (\n <label className={style.container} htmlFor={idCheckbox}>\n <input\n type=\"checkbox\"\n id={idCheckbox}\n name={name}\n onChange={handleChange}\n checked={checked}\n className={style.checkbox}\n data-name={dataName}\n aria-label={ariaLabel}\n />\n <div className={style.label}>\n <CheckIcon className={style.icon} />\n </div>\n <span className={style.title}>{title}</span>\n </label>\n );\n};\n\nCheckboxWithTitle.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string\n};\nexport default CheckboxWithTitle;\n"],"file":"index.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/molecule/checkbox-with-title/test/fixtures/checked.js"],"names":["props","title","checked","onChange","value","console","log"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,WADF;AAELC,IAAAA,OAAO,EAAE,IAFJ;AAGLC,IAAAA,QAAQ,EAAEC,KAAK,IAAIC,OAAO,CAACC,GAAR,CAAYF,KAAZ;AAHd;AADM,C","sourcesContent":["export default {\n props: {\n title: 'Add stars',\n checked: true,\n onChange: value => console.log(value)\n }\n};\n"],"file":"checked.js"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/molecule/checkbox-with-title/test/fixtures/unchecked.js"],"names":["props","title","checked","onChange","value","console","log"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE,cADF;AAELC,IAAAA,OAAO,EAAE,KAFJ;AAGLC,IAAAA,QAAQ,EAAEC,KAAK,IAAIC,OAAO,CAACC,GAAR,CAAYF,KAAZ;AAHd;AADM,C","sourcesContent":["export default {\n props: {\n title: 'Create badge',\n checked: false,\n onChange: value => console.log(value)\n }\n};\n"],"file":"unchecked.js"}
@@ -1,28 +0,0 @@
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 _loading = _interopRequireDefault(require("./fixtures/loading"));
14
-
15
- var _videoTranslate = _interopRequireDefault(require("./fixtures/video-translate"));
16
-
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
-
19
- (0, _ava.default)('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {
20
- t.pass();
21
- (0, _forEach.default)(_.default.propTypes, (value, key) => {
22
- t.not(value, undefined, `PropType for "Molecule.MoleculeCockpitPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
23
- });
24
- });
25
- (0, _ava.default)('Molecule › MoleculeCockpitPopin › Default › should be rendered', _renderComponent.default, _.default, _default.default);
26
- (0, _ava.default)('Molecule › MoleculeCockpitPopin › Loading › should be rendered', _renderComponent.default, _.default, _loading.default);
27
- (0, _ava.default)('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', _renderComponent.default, _.default, _videoTranslate.default);
28
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/cockpit-popin/test/fixtures.js"],"names":["t","pass","MoleculeCockpitPopin","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureLoading","fixtureVideoTranslate"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+DAAL,EAAsEA,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAqBC,SAA7B,EAAwC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,gEAAL,EAAuEG,wBAAvE,EAA6FN,SAA7F,EAAmHO,gBAAnH;AACA,kBAAK,gEAAL,EAAuED,wBAAvE,EAA6FN,SAA7F,EAAmHQ,gBAAnH;AACA,kBAAK,uEAAL,EAA8EF,wBAA9E,EAAoGN,SAApG,EAA0HS,uBAA1H","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCockpitPopin from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureVideoTranslate from './fixtures/video-translate';\n\ntest('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCockpitPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCockpitPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);\ntest('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);\ntest('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);\n"],"file":"fixtures.js"}