@coorpacademy/components 10.5.5 → 10.5.7-alpha.6.5

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 (117) hide show
  1. package/es/atom/range/handle.css +18 -2
  2. package/es/atom/range/handle.js +7 -3
  3. package/es/atom/range/handle.js.map +1 -1
  4. package/es/atom/range/style.css +2 -2
  5. package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
  6. package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  7. package/es/molecule/course-section/index.js +5 -3
  8. package/es/molecule/course-section/index.js.map +1 -1
  9. package/es/molecule/course-section/style.css +2 -1
  10. package/es/molecule/course-section/test/fixtures/chapter.js +2 -1
  11. package/es/molecule/course-section/test/fixtures/chapter.js.map +1 -1
  12. package/es/molecule/course-section/test/fixtures/course.js +2 -1
  13. package/es/molecule/course-section/test/fixtures/course.js.map +1 -1
  14. package/es/molecule/course-sections/index.js +40 -0
  15. package/es/molecule/course-sections/index.js.map +1 -0
  16. package/es/molecule/course-sections/style.css +3 -0
  17. package/es/molecule/course-sections/test/fixtures/default.js +149 -0
  18. package/es/molecule/course-sections/test/fixtures/default.js.map +1 -0
  19. package/es/molecule/course-sections/test/fixtures/loading.js +9 -0
  20. package/es/molecule/course-sections/test/fixtures/loading.js.map +1 -0
  21. package/es/molecule/draggable/index.js +1 -1
  22. package/es/molecule/draggable/index.js.map +1 -1
  23. package/es/molecule/draggable/style.css +1 -5
  24. package/es/molecule/draggable-list/index.js +6 -4
  25. package/es/molecule/draggable-list/index.js.map +1 -1
  26. package/es/molecule/draggable-list/test/fixtures/course-sections.js +20 -0
  27. package/es/molecule/draggable-list/test/fixtures/course-sections.js.map +1 -0
  28. package/es/molecule/draggable-list/test/on-drop.js +13 -13
  29. package/es/molecule/draggable-list/test/on-drop.js.map +1 -1
  30. package/es/molecule/questions/qcm/index.js +37 -25
  31. package/es/molecule/questions/qcm/index.js.map +1 -1
  32. package/es/molecule/questions/qcm/style.css +48 -14
  33. package/es/molecule/questions/qcm/test/fixtures/default.js +8 -0
  34. package/es/molecule/questions/qcm/test/fixtures/default.js.map +1 -1
  35. package/es/molecule/questions/qcm/test/qcm.js +103 -0
  36. package/es/molecule/questions/qcm/test/qcm.js.map +1 -0
  37. package/es/molecule/questions/qcm-graphic/index.js +35 -17
  38. package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
  39. package/es/molecule/questions/qcm-graphic/style.css +64 -13
  40. package/es/molecule/questions/qcm-graphic/test/qcm-graphic.js +65 -0
  41. package/es/molecule/questions/qcm-graphic/test/qcm-graphic.js.map +1 -0
  42. package/es/molecule/questions/question-range/style.css +9 -8
  43. package/es/molecule/setup-section/style.css +1 -0
  44. package/es/molecule/wizard-summary/test/fixtures/organize-courses.js +106 -0
  45. package/es/molecule/wizard-summary/test/fixtures/organize-courses.js.map +1 -0
  46. package/es/organism/wizard-contents/index.js +6 -0
  47. package/es/organism/wizard-contents/index.js.map +1 -1
  48. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +45 -0
  49. package/es/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -0
  50. package/es/template/back-office/brand-update/test/fixtures/wizard-organize-courses-playlist.js +22 -0
  51. package/es/template/back-office/brand-update/test/fixtures/wizard-organize-courses-playlist.js.map +1 -0
  52. package/es/util/get-shadow-box-color-from-primary.js +4 -0
  53. package/es/util/get-shadow-box-color-from-primary.js.map +1 -0
  54. package/es/util/test/get-shadow-box-color-from-primary.js +33 -0
  55. package/es/util/test/get-shadow-box-color-from-primary.js.map +1 -0
  56. package/es/variables/colors.css +3 -0
  57. package/lib/atom/range/handle.css +18 -2
  58. package/lib/atom/range/handle.js +8 -3
  59. package/lib/atom/range/handle.js.map +1 -1
  60. package/lib/atom/range/style.css +2 -2
  61. package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
  62. package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
  63. package/lib/molecule/course-section/index.js +5 -3
  64. package/lib/molecule/course-section/index.js.map +1 -1
  65. package/lib/molecule/course-section/style.css +2 -1
  66. package/lib/molecule/course-section/test/fixtures/chapter.js +2 -1
  67. package/lib/molecule/course-section/test/fixtures/chapter.js.map +1 -1
  68. package/lib/molecule/course-section/test/fixtures/course.js +2 -1
  69. package/lib/molecule/course-section/test/fixtures/course.js.map +1 -1
  70. package/lib/molecule/course-sections/index.js +54 -0
  71. package/lib/molecule/course-sections/index.js.map +1 -0
  72. package/lib/molecule/course-sections/style.css +3 -0
  73. package/lib/molecule/course-sections/test/fixtures/default.js +154 -0
  74. package/lib/molecule/course-sections/test/fixtures/default.js.map +1 -0
  75. package/lib/molecule/course-sections/test/fixtures/loading.js +14 -0
  76. package/lib/molecule/course-sections/test/fixtures/loading.js.map +1 -0
  77. package/lib/molecule/draggable/index.js +1 -1
  78. package/lib/molecule/draggable/index.js.map +1 -1
  79. package/lib/molecule/draggable/style.css +1 -5
  80. package/lib/molecule/draggable-list/index.js +7 -4
  81. package/lib/molecule/draggable-list/index.js.map +1 -1
  82. package/lib/molecule/draggable-list/test/fixtures/course-sections.js +29 -0
  83. package/lib/molecule/draggable-list/test/fixtures/course-sections.js.map +1 -0
  84. package/lib/molecule/draggable-list/test/on-drop.js +13 -13
  85. package/lib/molecule/draggable-list/test/on-drop.js.map +1 -1
  86. package/lib/molecule/questions/qcm/index.js +44 -23
  87. package/lib/molecule/questions/qcm/index.js.map +1 -1
  88. package/lib/molecule/questions/qcm/style.css +48 -14
  89. package/lib/molecule/questions/qcm/test/fixtures/default.js +8 -0
  90. package/lib/molecule/questions/qcm/test/fixtures/default.js.map +1 -1
  91. package/lib/molecule/questions/qcm/test/qcm.js +115 -0
  92. package/lib/molecule/questions/qcm/test/qcm.js.map +1 -0
  93. package/lib/molecule/questions/qcm-graphic/index.js +33 -15
  94. package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
  95. package/lib/molecule/questions/qcm-graphic/style.css +64 -13
  96. package/lib/molecule/questions/qcm-graphic/test/qcm-graphic.js +76 -0
  97. package/lib/molecule/questions/qcm-graphic/test/qcm-graphic.js.map +1 -0
  98. package/lib/molecule/questions/question-range/style.css +9 -8
  99. package/lib/molecule/setup-section/style.css +1 -0
  100. package/lib/molecule/wizard-summary/test/fixtures/organize-courses.js +111 -0
  101. package/lib/molecule/wizard-summary/test/fixtures/organize-courses.js.map +1 -0
  102. package/lib/organism/wizard-contents/index.js +7 -0
  103. package/lib/organism/wizard-contents/index.js.map +1 -1
  104. package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js +54 -0
  105. package/lib/organism/wizard-contents/test/fixtures/playlist-organize-courses.js.map +1 -0
  106. package/lib/template/back-office/brand-update/test/fixtures/wizard-organize-courses-playlist.js +32 -0
  107. package/lib/template/back-office/brand-update/test/fixtures/wizard-organize-courses-playlist.js.map +1 -0
  108. package/lib/util/get-shadow-box-color-from-primary.js +12 -0
  109. package/lib/util/get-shadow-box-color-from-primary.js.map +1 -0
  110. package/lib/util/test/get-shadow-box-color-from-primary.js +40 -0
  111. package/lib/util/test/get-shadow-box-color-from-primary.js.map +1 -0
  112. package/lib/variables/colors.css +3 -0
  113. package/package.json +2 -2
  114. package/es/molecule/draggable-list/test/fixtures.js +0 -13
  115. package/es/molecule/draggable-list/test/fixtures.js.map +0 -1
  116. package/lib/molecule/draggable-list/test/fixtures.js +0 -22
  117. package/lib/molecule/draggable-list/test/fixtures.js.map +0 -1
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _organizeCourses = _interopRequireDefault(require("../../../../molecule/wizard-summary/test/fixtures/organize-courses"));
7
+
8
+ var _default2 = _interopRequireDefault(require("../../../../molecule/course-sections/test/fixtures/default"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ 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); }
13
+
14
+ var _default = {
15
+ props: {
16
+ isLoading: false,
17
+ wizardHeader: {
18
+ title: 'Create a new custom playlist',
19
+ onClick: () => console.log('Close')
20
+ },
21
+ steps: [{
22
+ title: 'General Informations',
23
+ done: true
24
+ }, {
25
+ title: 'Translations',
26
+ done: true
27
+ }, {
28
+ title: 'Assign populations',
29
+ done: true
30
+ }, {
31
+ title: 'Add courses',
32
+ done: true
33
+ }, {
34
+ title: 'Organize courses',
35
+ done: false,
36
+ current: true
37
+ }],
38
+ summary: _organizeCourses.default.props,
39
+ content: _extends(_extends({}, _default2.default.props), {}, {
40
+ type: 'organize-courses'
41
+ }),
42
+ previousStep: {
43
+ label: 'Previous Step',
44
+ onClick: () => console.log('Previous Step')
45
+ },
46
+ nextStep: {
47
+ type: 'publish',
48
+ label: 'Publish',
49
+ onClick: () => console.log('Next Step')
50
+ }
51
+ }
52
+ };
53
+ exports.default = _default;
54
+ //# sourceMappingURL=playlist-organize-courses.js.map
@@ -0,0 +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"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _playlistOrganizeCourses = _interopRequireDefault(require("../../../../../organism/wizard-contents/test/fixtures/playlist-organize-courses"));
7
+
8
+ var _default2 = _interopRequireDefault(require("./default"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ 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); }
13
+
14
+ const {
15
+ header,
16
+ items
17
+ } = _default2.default.props;
18
+ const form = _playlistOrganizeCourses.default.props;
19
+ var _default = {
20
+ props: {
21
+ header,
22
+ items,
23
+ notifications: [],
24
+ content: _extends(_extends({}, form), {}, {
25
+ isLoading: false,
26
+ key: 'add-courses',
27
+ type: 'wizard'
28
+ })
29
+ }
30
+ };
31
+ exports.default = _default;
32
+ //# sourceMappingURL=wizard-organize-courses-playlist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-organize-courses-playlist.js"],"names":["header","items","headerAndMenu","props","form","WizardForm","notifications","content","isLoading","key","type"],"mappings":";;;;;AAAA;;AACA;;;;;;AAEA,MAAM;AAACA,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBC,kBAAcC,KAAtC;AACA,MAAMC,IAAI,GAAGC,iCAAWF,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLH,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLK,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFH,IADE;AAELI,MAAAA,SAAS,EAAE,KAFN;AAGLC,MAAAA,GAAG,EAAE,aAHA;AAILC,MAAAA,IAAI,EAAE;AAJD;AAJF;AADM,C","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-organize-courses';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n isLoading: false,\n key: 'add-courses',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-organize-courses-playlist.js"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getShadowBoxColorFromPrimary = void 0;
5
+
6
+ var _cssColorFunction = require("css-color-function");
7
+
8
+ // darken the color down to 35% && apply alpha of 25%
9
+ const getShadowBoxColorFromPrimary = primaryColor => (0, _cssColorFunction.convert)(`color(${primaryColor} lightness(35%) a(25%))`);
10
+
11
+ exports.getShadowBoxColorFromPrimary = getShadowBoxColorFromPrimary;
12
+ //# sourceMappingURL=get-shadow-box-color-from-primary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/util/get-shadow-box-color-from-primary.js"],"names":["getShadowBoxColorFromPrimary","primaryColor"],"mappings":";;;;;AAAA;;AAEA;AACO,MAAMA,4BAA4B,GAAGC,YAAY,IACtD,+BAAS,SAAQA,YAAa,yBAA9B,CADK","sourcesContent":["import {convert} from 'css-color-function';\n\n// darken the color down to 35% && apply alpha of 25%\nexport const getShadowBoxColorFromPrimary = primaryColor =>\n convert(`color(${primaryColor} lightness(35%) a(25%))`);\n"],"file":"get-shadow-box-color-from-primary.js"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ var _ava = _interopRequireDefault(require("ava"));
4
+
5
+ var _forEach = _interopRequireDefault(require("lodash/fp/forEach"));
6
+
7
+ var _getShadowBoxColorFromPrimary = require("../get-shadow-box-color-from-primary");
8
+
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+
11
+ (0, _ava.default)('should return transformed colors', t => {
12
+ t.plan(13);
13
+ const expectedOrange = 'rgba(179, 42, 0, 0.25)';
14
+ const expectedRed = 'rgba(179, 0, 0, 0.25)';
15
+ const expectedYellow = 'rgba(179, 140, 0, 0.25)';
16
+ const expectedBlue = 'rgba(0, 68, 179, 0.25)'; // a set of possible primary/brand colors
17
+
18
+ const primaryColors = {
19
+ orange: ['#ff6f43', expectedOrange],
20
+ // original, expected
21
+ orangeRGB: ['rgb(255, 111, 67)', expectedOrange],
22
+ orangeRGBA: ['rgba(255, 111, 67, 0)', expectedOrange],
23
+ red: ['#FF0A0A', expectedRed],
24
+ redRGB: ['rgb(255, 10, 10)', expectedRed],
25
+ redRGBA: ['rgba(255, 10, 10, 0)', expectedRed],
26
+ yellow: ['#ffca0a', expectedYellow],
27
+ yellowRGB: ['rgb(255, 202, 10)', expectedYellow],
28
+ yellowRGBA: ['rgba(255, 202, 10, 0)', expectedYellow],
29
+ blue: ['#0061FF', expectedBlue],
30
+ blueRGB: ['rgb(0, 97, 255)', expectedBlue],
31
+ blueRGBA: ['rgba(0, 97, 255, 1)', expectedBlue]
32
+ };
33
+ (0, _forEach.default)(color => {
34
+ const [original, expected] = color;
35
+ const boxShadowColor = (0, _getShadowBoxColorFromPrimary.getShadowBoxColorFromPrimary)(original);
36
+ t.is(boxShadowColor, expected);
37
+ }, primaryColors);
38
+ t.pass();
39
+ });
40
+ //# sourceMappingURL=get-shadow-box-color-from-primary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/util/test/get-shadow-box-color-from-primary.js"],"names":["t","plan","expectedOrange","expectedRed","expectedYellow","expectedBlue","primaryColors","orange","orangeRGB","orangeRGBA","red","redRGB","redRGBA","yellow","yellowRGB","yellowRGBA","blue","blueRGB","blueRGBA","color","original","expected","boxShadowColor","is","pass"],"mappings":";;AAAA;;AACA;;AAEA;;;;AAEA,kBAAK,kCAAL,EAAyCA,CAAC,IAAI;AAC5CA,EAAAA,CAAC,CAACC,IAAF,CAAO,EAAP;AACA,QAAMC,cAAc,GAAG,wBAAvB;AACA,QAAMC,WAAW,GAAG,uBAApB;AACA,QAAMC,cAAc,GAAG,yBAAvB;AACA,QAAMC,YAAY,GAAG,wBAArB,CAL4C,CAM5C;;AACA,QAAMC,aAAa,GAAG;AACpBC,IAAAA,MAAM,EAAE,CAAC,SAAD,EAAYL,cAAZ,CADY;AACiB;AACrCM,IAAAA,SAAS,EAAE,CAAC,mBAAD,EAAsBN,cAAtB,CAFS;AAGpBO,IAAAA,UAAU,EAAE,CAAC,uBAAD,EAA0BP,cAA1B,CAHQ;AAIpBQ,IAAAA,GAAG,EAAE,CAAC,SAAD,EAAYP,WAAZ,CAJe;AAKpBQ,IAAAA,MAAM,EAAE,CAAC,kBAAD,EAAqBR,WAArB,CALY;AAMpBS,IAAAA,OAAO,EAAE,CAAC,sBAAD,EAAyBT,WAAzB,CANW;AAOpBU,IAAAA,MAAM,EAAE,CAAC,SAAD,EAAYT,cAAZ,CAPY;AAQpBU,IAAAA,SAAS,EAAE,CAAC,mBAAD,EAAsBV,cAAtB,CARS;AASpBW,IAAAA,UAAU,EAAE,CAAC,uBAAD,EAA0BX,cAA1B,CATQ;AAUpBY,IAAAA,IAAI,EAAE,CAAC,SAAD,EAAYX,YAAZ,CAVc;AAWpBY,IAAAA,OAAO,EAAE,CAAC,iBAAD,EAAoBZ,YAApB,CAXW;AAYpBa,IAAAA,QAAQ,EAAE,CAAC,qBAAD,EAAwBb,YAAxB;AAZU,GAAtB;AAeA,wBAAQc,KAAK,IAAI;AACf,UAAM,CAACC,QAAD,EAAWC,QAAX,IAAuBF,KAA7B;AACA,UAAMG,cAAc,GAAG,gEAA6BF,QAA7B,CAAvB;AACApB,IAAAA,CAAC,CAACuB,EAAF,CAAKD,cAAL,EAAqBD,QAArB;AACD,GAJD,EAIGf,aAJH;AAMAN,EAAAA,CAAC,CAACwB,IAAF;AACD,CA7BD","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/fp/forEach';\n\nimport {getShadowBoxColorFromPrimary} from '../get-shadow-box-color-from-primary';\n\ntest('should return transformed colors', t => {\n t.plan(13);\n const expectedOrange = 'rgba(179, 42, 0, 0.25)';\n const expectedRed = 'rgba(179, 0, 0, 0.25)';\n const expectedYellow = 'rgba(179, 140, 0, 0.25)';\n const expectedBlue = 'rgba(0, 68, 179, 0.25)';\n // a set of possible primary/brand colors\n const primaryColors = {\n orange: ['#ff6f43', expectedOrange], // original, expected\n orangeRGB: ['rgb(255, 111, 67)', expectedOrange],\n orangeRGBA: ['rgba(255, 111, 67, 0)', expectedOrange],\n red: ['#FF0A0A', expectedRed],\n redRGB: ['rgb(255, 10, 10)', expectedRed],\n redRGBA: ['rgba(255, 10, 10, 0)', expectedRed],\n yellow: ['#ffca0a', expectedYellow],\n yellowRGB: ['rgb(255, 202, 10)', expectedYellow],\n yellowRGBA: ['rgba(255, 202, 10, 0)', expectedYellow],\n blue: ['#0061FF', expectedBlue],\n blueRGB: ['rgb(0, 97, 255)', expectedBlue],\n blueRGBA: ['rgba(0, 97, 255, 1)', expectedBlue]\n };\n\n forEach(color => {\n const [original, expected] = color;\n const boxShadowColor = getShadowBoxColorFromPrimary(original);\n t.is(boxShadowColor, expected);\n }, primaryColors);\n\n t.pass();\n});\n"],"file":"get-shadow-box-color-from-primary.js"}
@@ -30,8 +30,10 @@
30
30
  @value cm_blue_50: #f1f6fe;
31
31
  @value cm_blue_200: #74A5F6;
32
32
  @value cm_blue_600: #0051d6;
33
+ @value cm_blue_900: #06265B;
33
34
  @value cm_bleu_article: #365FCD;
34
35
  @value cm_grey_50: #FAFAFA;
36
+ @value cm_grey_75: #F4F4F5;
35
37
  @value cm_grey_100: #EAEAEB;
36
38
  @value cm_grey_150: #E1E1E3;
37
39
  @value cm_grey_200: #d7d7da;
@@ -59,3 +61,4 @@
59
61
  @value cm_red_video: #E8335E;
60
62
  @value cm_violet_podcast: #432ba7;
61
63
  @value cm_warning_50: rgba(255, 192, 67, 0.13);
64
+ @value box_shadow_light_dark: rgba(0, 0, 0, 0.12);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "10.5.5",
3
+ "version": "10.5.7-alpha.6.5+e819098fe",
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": "45f9933696b05b222cc396b735cc637cf4a9db30"
122
+ "gitHead": "e819098fe74068077d221b1eb218579f6d555d76"
123
123
  }
@@ -1,13 +0,0 @@
1
- import test from 'ava';
2
- import forEach from 'lodash/forEach';
3
- import renderComponentMacro from '../../../test/helpers/render-component';
4
- import MoleculeDraggableList from '..';
5
- import fixtureDashboardSections from './fixtures/dashboard-sections';
6
- test('Molecule › MoleculeDraggableList > should have valid propTypes', t => {
7
- t.pass();
8
- forEach(MoleculeDraggableList.propTypes, (value, key) => {
9
- t.not(value, undefined, `PropType for "Molecule.MoleculeDraggableList.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
10
- });
11
- });
12
- test('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureDashboardSections);
13
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/draggable-list/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeDraggableList","fixtureDashboardSections","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,qBAAP,MAAkC,IAAlC;AACA,OAAOC,wBAAP,MAAqC,+BAArC;AAEAJ,IAAI,CAAC,gEAAD,EAAmEK,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACAL,EAAAA,OAAO,CAACE,qBAAqB,CAACI,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAT,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,qBAApG,EAA2HC,wBAA3H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDraggableList from '..';\nimport fixtureDashboardSections from './fixtures/dashboard-sections';\n\ntest('Molecule › MoleculeDraggableList > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDraggableList.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDraggableList.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureDashboardSections);\n"],"file":"fixtures.js"}
@@ -1,22 +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 _dashboardSections = _interopRequireDefault(require("./fixtures/dashboard-sections"));
12
-
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
-
15
- (0, _ava.default)('Molecule › MoleculeDraggableList > should have valid propTypes', t => {
16
- t.pass();
17
- (0, _forEach.default)(_.default.propTypes, (value, key) => {
18
- t.not(value, undefined, `PropType for "Molecule.MoleculeDraggableList.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
19
- });
20
- });
21
- (0, _ava.default)('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', _renderComponent.default, _.default, _dashboardSections.default);
22
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/draggable-list/test/fixtures.js"],"names":["t","pass","MoleculeDraggableList","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDashboardSections"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,gEAAL,EAAuEA,CAAC,IAAI;AAC1EA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAsBC,SAA9B,EAAyC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACvDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,0DAAyDF,GAAI,mEAAtF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,2EAAL,EAAkFG,wBAAlF,EAAwGN,SAAxG,EAA+HO,0BAA/H","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeDraggableList from '..';\nimport fixtureDashboardSections from './fixtures/dashboard-sections';\n\ntest('Molecule › MoleculeDraggableList > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeDraggableList.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeDraggableList.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeDraggableList › DashboardSections › should be rendered', renderComponentMacro, MoleculeDraggableList, fixtureDashboardSections);\n"],"file":"fixtures.js"}