@coorpacademy/components 11.35.2-forcedeploy2.15 → 11.35.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 (263) hide show
  1. package/es/atom/button-link/index.js +1 -1
  2. package/es/atom/button-link/index.js.map +1 -1
  3. package/es/atom/button-link/style.css +2 -2
  4. package/es/atom/icon/index.d.ts +17 -35
  5. package/es/atom/icon/index.d.ts.map +1 -1
  6. package/es/atom/icon/index.js +15 -32
  7. package/es/atom/icon/index.js.map +1 -1
  8. package/es/atom/radio-with-title/index.d.ts +3 -13
  9. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  10. package/es/atom/radio-with-title/types.d.ts +2 -13
  11. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  12. package/es/atom/status-item/index.native.js +1 -1
  13. package/es/atom/status-item/index.native.js.map +1 -1
  14. package/es/atom/tag/index.d.ts +1 -12
  15. package/es/atom/tag/style.css +0 -1
  16. package/es/atom/title/index.d.ts +2 -13
  17. package/es/molecule/banner/style.css +0 -1
  18. package/es/molecule/base-modal/style.css +1 -0
  19. package/es/molecule/bulk-progress-bar/index.js +2 -2
  20. package/es/molecule/bulk-progress-bar/index.js.map +1 -1
  21. package/es/molecule/certification-card/index.js +1 -1
  22. package/es/molecule/certification-card/index.js.map +1 -1
  23. package/es/molecule/cm-popin/types.d.ts +7 -28
  24. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  25. package/es/molecule/cm-popin/types.js +1 -1
  26. package/es/molecule/cm-popin/types.js.map +1 -1
  27. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  28. package/es/molecule/dashboard/cards-list/index.js +0 -2
  29. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  30. package/es/molecule/learner-skill-card/index.js +8 -10
  31. package/es/molecule/learner-skill-card/index.js.map +1 -1
  32. package/es/molecule/learner-skill-card/style.css +0 -1
  33. package/es/molecule/learning-priority-modal/style.css +2 -3
  34. package/es/molecule/progress-wrapper/index.js +1 -1
  35. package/es/molecule/progress-wrapper/index.js.map +1 -1
  36. package/es/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  37. package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  38. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -13
  39. package/es/molecule/title-radio-wrapper/index.d.ts +3 -13
  40. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  41. package/es/molecule/title-radio-wrapper/types.d.ts +2 -13
  42. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  43. package/es/molecule/translation-modal/index.d.ts +1 -0
  44. package/es/molecule/translation-modal/index.d.ts.map +1 -1
  45. package/es/molecule/translation-modal/index.js +7 -24
  46. package/es/molecule/translation-modal/index.js.map +1 -1
  47. package/es/organism/cards-grid/index.d.ts +10 -48
  48. package/es/organism/cards-grid/index.d.ts.map +1 -1
  49. package/es/organism/cards-grid/index.js +2 -3
  50. package/es/organism/cards-grid/index.js.map +1 -1
  51. package/es/organism/content-skill-modal/index.d.ts +3 -13
  52. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  53. package/es/organism/content-skill-modal/types.d.ts +2 -12
  54. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  55. package/es/organism/list-item/index.js +5 -5
  56. package/es/organism/list-item/index.js.map +1 -1
  57. package/es/organism/list-item/style.css +17 -23
  58. package/es/organism/list-items/index.d.ts +2 -13
  59. package/es/organism/list-items/style.css +0 -1
  60. package/es/organism/rewards-form/index.d.ts +2 -13
  61. package/es/organism/select-opponents/index.d.ts +3 -13
  62. package/es/organism/select-opponents/index.d.ts.map +1 -1
  63. package/es/organism/select-opponents/types.d.ts +2 -13
  64. package/es/organism/select-opponents/types.d.ts.map +1 -1
  65. package/es/organism/sidebar/index.d.ts +2 -2
  66. package/es/organism/skill-edition/index.d.ts +52 -1261
  67. package/es/organism/skill-edition/index.d.ts.map +1 -1
  68. package/es/organism/skill-edition/index.js +224 -3
  69. package/es/organism/skill-edition/index.js.map +1 -1
  70. package/es/organism/skill-edition/types.d.ts +117 -1268
  71. package/es/organism/skill-edition/types.d.ts.map +1 -1
  72. package/es/organism/skill-edition/types.js +59 -7
  73. package/es/organism/skill-edition/types.js.map +1 -1
  74. package/es/organism/title-and-input/index.d.ts +5 -25
  75. package/es/organism/title-and-input/index.d.ts.map +1 -1
  76. package/es/organism/title-and-input/types.d.ts +4 -24
  77. package/es/organism/title-and-input/types.d.ts.map +1 -1
  78. package/es/organism/wizard-contents/index.d.ts +2 -13
  79. package/es/template/app-player/loading/index.d.ts +6 -27
  80. package/es/template/app-player/player/index.d.ts +12 -53
  81. package/es/template/app-player/player/slides/index.d.ts +6 -27
  82. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  83. package/es/template/app-player/popin-correction/index.d.ts +6 -26
  84. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  85. package/es/template/app-player/popin-end/index.d.ts +6 -27
  86. package/es/template/app-review/index.d.ts +7 -27
  87. package/es/template/app-review/index.d.ts.map +1 -1
  88. package/es/template/app-review/player/prop-types.d.ts +6 -27
  89. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  90. package/es/template/app-review/prop-types.d.ts +6 -27
  91. package/es/template/app-review/prop-types.d.ts.map +1 -1
  92. package/es/template/back-office/brand-update/index.d.ts +1113 -1713
  93. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  94. package/es/template/back-office/brand-update/index.js +12 -0
  95. package/es/template/back-office/brand-update/index.js.map +1 -1
  96. package/es/template/back-office/brand-update/utils.d.ts +1 -1
  97. package/es/template/common/dashboard/index.d.ts +12 -53
  98. package/es/template/common/search-page/index.d.ts +6 -27
  99. package/es/template/external-course/index.d.ts +6 -27
  100. package/es/template/skill-detail/all-courses.css +2 -3
  101. package/es/template/skill-detail/all-courses.d.ts +17 -52
  102. package/es/template/skill-detail/all-courses.d.ts.map +1 -1
  103. package/es/template/skill-detail/all-courses.js +11 -12
  104. package/es/template/skill-detail/all-courses.js.map +1 -1
  105. package/es/template/skill-detail/continue-learning.css +2 -7
  106. package/es/template/skill-detail/continue-learning.d.ts +12 -25
  107. package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
  108. package/es/template/skill-detail/continue-learning.js.map +1 -1
  109. package/es/template/skill-detail/index.d.ts +71 -89
  110. package/es/template/skill-detail/index.d.ts.map +1 -1
  111. package/es/template/skill-detail/index.js +55 -95
  112. package/es/template/skill-detail/index.js.map +1 -1
  113. package/es/template/skill-detail/style.css +39 -97
  114. package/es/variables/colors.css +0 -2
  115. package/es/variables/colors.d.ts +2 -3
  116. package/es/variables/colors.d.ts.map +1 -1
  117. package/es/variables/colors.js +3 -4
  118. package/es/variables/colors.js.map +1 -1
  119. package/es/variables/theme.native.js +1 -1
  120. package/es/variables/theme.native.js.map +1 -1
  121. package/lib/atom/button-link/index.js +1 -1
  122. package/lib/atom/button-link/index.js.map +1 -1
  123. package/lib/atom/button-link/style.css +2 -2
  124. package/lib/atom/icon/index.d.ts +17 -35
  125. package/lib/atom/icon/index.d.ts.map +1 -1
  126. package/lib/atom/icon/index.js +18 -34
  127. package/lib/atom/icon/index.js.map +1 -1
  128. package/lib/atom/radio-with-title/index.d.ts +3 -13
  129. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  130. package/lib/atom/radio-with-title/types.d.ts +2 -13
  131. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  132. package/lib/atom/status-item/index.native.js +1 -1
  133. package/lib/atom/status-item/index.native.js.map +1 -1
  134. package/lib/atom/tag/index.d.ts +1 -12
  135. package/lib/atom/tag/style.css +0 -1
  136. package/lib/atom/title/index.d.ts +2 -13
  137. package/lib/molecule/banner/style.css +0 -1
  138. package/lib/molecule/base-modal/style.css +1 -0
  139. package/lib/molecule/bulk-progress-bar/index.js +2 -2
  140. package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
  141. package/lib/molecule/certification-card/index.js +1 -1
  142. package/lib/molecule/certification-card/index.js.map +1 -1
  143. package/lib/molecule/cm-popin/types.d.ts +7 -28
  144. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  145. package/lib/molecule/cm-popin/types.js +1 -1
  146. package/lib/molecule/cm-popin/types.js.map +1 -1
  147. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  148. package/lib/molecule/dashboard/cards-list/index.js +0 -2
  149. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  150. package/lib/molecule/learner-skill-card/index.js +8 -10
  151. package/lib/molecule/learner-skill-card/index.js.map +1 -1
  152. package/lib/molecule/learner-skill-card/style.css +0 -1
  153. package/lib/molecule/learning-priority-modal/style.css +2 -3
  154. package/lib/molecule/progress-wrapper/index.js +1 -1
  155. package/lib/molecule/progress-wrapper/index.js.map +1 -1
  156. package/lib/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  157. package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  158. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -13
  159. package/lib/molecule/title-radio-wrapper/index.d.ts +3 -13
  160. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  161. package/lib/molecule/title-radio-wrapper/types.d.ts +2 -13
  162. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  163. package/lib/molecule/translation-modal/index.d.ts +1 -0
  164. package/lib/molecule/translation-modal/index.d.ts.map +1 -1
  165. package/lib/molecule/translation-modal/index.js +6 -23
  166. package/lib/molecule/translation-modal/index.js.map +1 -1
  167. package/lib/organism/cards-grid/index.d.ts +10 -48
  168. package/lib/organism/cards-grid/index.d.ts.map +1 -1
  169. package/lib/organism/cards-grid/index.js +2 -3
  170. package/lib/organism/cards-grid/index.js.map +1 -1
  171. package/lib/organism/content-skill-modal/index.d.ts +3 -13
  172. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  173. package/lib/organism/content-skill-modal/types.d.ts +2 -12
  174. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  175. package/lib/organism/list-item/index.js +5 -5
  176. package/lib/organism/list-item/index.js.map +1 -1
  177. package/lib/organism/list-item/style.css +17 -23
  178. package/lib/organism/list-items/index.d.ts +2 -13
  179. package/lib/organism/list-items/style.css +0 -1
  180. package/lib/organism/rewards-form/index.d.ts +2 -13
  181. package/lib/organism/select-opponents/index.d.ts +3 -13
  182. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  183. package/lib/organism/select-opponents/types.d.ts +2 -13
  184. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  185. package/lib/organism/sidebar/index.d.ts +2 -2
  186. package/lib/organism/skill-edition/index.d.ts +52 -1261
  187. package/lib/organism/skill-edition/index.d.ts.map +1 -1
  188. package/lib/organism/skill-edition/index.js +224 -3
  189. package/lib/organism/skill-edition/index.js.map +1 -1
  190. package/lib/organism/skill-edition/types.d.ts +117 -1268
  191. package/lib/organism/skill-edition/types.d.ts.map +1 -1
  192. package/lib/organism/skill-edition/types.js +59 -7
  193. package/lib/organism/skill-edition/types.js.map +1 -1
  194. package/lib/organism/title-and-input/index.d.ts +5 -25
  195. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  196. package/lib/organism/title-and-input/types.d.ts +4 -24
  197. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  198. package/lib/organism/wizard-contents/index.d.ts +2 -13
  199. package/lib/template/app-player/loading/index.d.ts +6 -27
  200. package/lib/template/app-player/player/index.d.ts +12 -53
  201. package/lib/template/app-player/player/slides/index.d.ts +6 -27
  202. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  203. package/lib/template/app-player/popin-correction/index.d.ts +6 -26
  204. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  205. package/lib/template/app-player/popin-end/index.d.ts +6 -27
  206. package/lib/template/app-review/index.d.ts +7 -27
  207. package/lib/template/app-review/index.d.ts.map +1 -1
  208. package/lib/template/app-review/player/prop-types.d.ts +6 -27
  209. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  210. package/lib/template/app-review/prop-types.d.ts +6 -27
  211. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  212. package/lib/template/back-office/brand-update/index.d.ts +1113 -1713
  213. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  214. package/lib/template/back-office/brand-update/index.js +12 -0
  215. package/lib/template/back-office/brand-update/index.js.map +1 -1
  216. package/lib/template/back-office/brand-update/utils.d.ts +1 -1
  217. package/lib/template/common/dashboard/index.d.ts +12 -53
  218. package/lib/template/common/search-page/index.d.ts +6 -27
  219. package/lib/template/external-course/index.d.ts +6 -27
  220. package/lib/template/skill-detail/all-courses.css +2 -3
  221. package/lib/template/skill-detail/all-courses.d.ts +17 -52
  222. package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
  223. package/lib/template/skill-detail/all-courses.js +11 -11
  224. package/lib/template/skill-detail/all-courses.js.map +1 -1
  225. package/lib/template/skill-detail/continue-learning.css +2 -7
  226. package/lib/template/skill-detail/continue-learning.d.ts +12 -25
  227. package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
  228. package/lib/template/skill-detail/continue-learning.js.map +1 -1
  229. package/lib/template/skill-detail/index.d.ts +71 -89
  230. package/lib/template/skill-detail/index.d.ts.map +1 -1
  231. package/lib/template/skill-detail/index.js +55 -95
  232. package/lib/template/skill-detail/index.js.map +1 -1
  233. package/lib/template/skill-detail/style.css +39 -97
  234. package/lib/variables/colors.css +0 -2
  235. package/lib/variables/colors.d.ts +2 -3
  236. package/lib/variables/colors.d.ts.map +1 -1
  237. package/lib/variables/colors.js +3 -4
  238. package/lib/variables/colors.js.map +1 -1
  239. package/lib/variables/theme.native.js +1 -1
  240. package/lib/variables/theme.native.js.map +1 -1
  241. package/locales/bs/global.json +1 -0
  242. package/locales/de/global.json +1 -0
  243. package/locales/es/global.json +1 -0
  244. package/locales/et/global.json +1 -0
  245. package/locales/fi/global.json +1 -0
  246. package/locales/fr/global.json +1 -0
  247. package/locales/hu/global.json +1 -0
  248. package/locales/hy/global.json +1 -0
  249. package/locales/ja/global.json +1 -0
  250. package/locales/nl/global.json +1 -0
  251. package/locales/pl/global.json +1 -0
  252. package/locales/pt/global.json +1 -0
  253. package/locales/ro/global.json +1 -0
  254. package/locales/sk/global.json +1 -0
  255. package/locales/sl/global.json +1 -0
  256. package/locales/sv/global.json +1 -0
  257. package/locales/tl/global.json +1 -0
  258. package/locales/tr/global.json +1 -0
  259. package/locales/uk/global.json +1 -0
  260. package/locales/vi/global.json +1 -0
  261. package/locales/zh/global.json +1 -0
  262. package/locales/zh_TW/global.json +1 -0
  263. package/package.json +2 -2
@@ -6,19 +6,18 @@ var _isNil2 = _interopRequireDefault(require("lodash/fp/isNil"));
6
6
  var _get2 = _interopRequireDefault(require("lodash/fp/get"));
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _cssColorFunction = require("css-color-function");
9
10
  var _classnames = _interopRequireDefault(require("classnames"));
10
11
  var _markdownToJsx = _interopRequireDefault(require("markdown-to-jsx"));
11
- var _cssColorFunction = require("css-color-function");
12
12
  var _provider = _interopRequireDefault(require("../../atom/provider"));
13
+ var _select = _interopRequireWildcard(require("../../atom/select"));
14
+ var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
13
15
  var _buttonLinkIcon = _interopRequireDefault(require("../../atom/button-link-icon"));
14
16
  var _icon = _interopRequireDefault(require("../../atom/icon"));
15
- var _iconPreview = _interopRequireDefault(require("../../molecule/icon-preview"));
16
- var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
17
17
  var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
18
18
  var _colors = require("../../variables/colors");
19
- var _select = require("../../atom/select");
20
- var _allCourses = _interopRequireDefault(require("./all-courses"));
21
19
  var _style = _interopRequireDefault(require("./style.css"));
20
+ var _allCourses = _interopRequireDefault(require("./all-courses"));
22
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
23
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
23
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -32,7 +31,7 @@ const ContinueLearningButton = (props, context) => {
32
31
  translate
33
32
  } = context;
34
33
  const primarySkinColor = (0, _get2.default)('common.primary', skin);
35
- return /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
34
+ return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
36
35
  label: ongoingCoursesAvailable ? translate('continue_learning') : translate('start_learning'),
37
36
  type: "primary",
38
37
  customStyle: {
@@ -47,11 +46,11 @@ const ContinueLearningButton = (props, context) => {
47
46
  faIcon: {
48
47
  name: 'play',
49
48
  color: _colors.COLORS.white,
50
- size: 14
49
+ size: 16
51
50
  }
52
51
  },
53
52
  onClick: onClick
54
- });
53
+ }));
55
54
  };
56
55
  exports.ContinueLearningButton = ContinueLearningButton;
57
56
  ContinueLearningButton.contextTypes = {
@@ -65,10 +64,6 @@ ContinueLearningButton.propTypes = process.env.NODE_ENV !== "production" ? {
65
64
  const SkillDetail = (props, context) => {
66
65
  const {
67
66
  title,
68
- icon: {
69
- color: iconColor,
70
- name: iconName
71
- },
72
67
  skillRef,
73
68
  description,
74
69
  metrics = {},
@@ -77,27 +72,29 @@ const SkillDetail = (props, context) => {
77
72
  ongoingCoursesAvailable,
78
73
  skillIncludedCourses,
79
74
  filters,
75
+ sorting,
80
76
  onBackClick,
81
77
  onReviewClick,
82
78
  onContinueLearningClick,
83
79
  search,
84
- bannerMicrolearning
80
+ bannerMicrolearning = {}
85
81
  } = props;
82
+ const descriptionRef = (0, _react.useRef)(null);
86
83
  const {
87
84
  score = 0,
88
- questionsToReview = 0,
89
- totalContents = 0
85
+ questionsToReview,
86
+ totalContents
90
87
  } = metrics;
91
88
  const {
92
89
  translate
93
90
  } = context;
94
- const bannerMicrolearningAction = bannerMicrolearning?.action;
95
- const descriptionRef = (0, _react.useRef)(null);
91
+ const {
92
+ action: bannerMicrolearningAction,
93
+ oldSwitchValue
94
+ } = bannerMicrolearning;
96
95
  const [isDescriptionTruncated, setIsDescriptionTruncated] = (0, _react.useState)(false);
97
96
  const [showMore, setShowMore] = (0, _react.useState)(false);
98
- const handleShowMore = (0, _react.useCallback)(() => {
99
- setShowMore(!showMore);
100
- }, [showMore]);
97
+ const handleShowMore = (0, _react.useCallback)(() => setShowMore(!showMore), [setShowMore, showMore]);
101
98
  (0, _react.useEffect)(() => {
102
99
  if (descriptionRef.current) {
103
100
  const {
@@ -111,39 +108,29 @@ const SkillDetail = (props, context) => {
111
108
  return /*#__PURE__*/_react.default.createElement("div", {
112
109
  ref: descriptionRef,
113
110
  className: (0, _classnames.default)(_style.default.description, !showMore && _style.default.truncate)
114
- }, description ? /*#__PURE__*/_react.default.createElement(_markdownToJsx.default, null, description) : null);
111
+ }, /*#__PURE__*/_react.default.createElement(_markdownToJsx.default, null, description));
115
112
  }, [showMore, description]);
116
113
  const ProgressBar = (0, _react.useCallback)(() => {
117
- if (typeof score !== 'number') return null;
118
- const progressBarColor = _colors.COLORS.cm_positive_500;
119
- const inlineProgressStyle = {
114
+ if (score === undefined) return null;
115
+ const progressBarColor = '#3EC483';
116
+ const inlineProgressValueStyle = {
120
117
  backgroundColor: progressBarColor,
121
118
  width: `${score}%`
122
119
  };
123
120
  return /*#__PURE__*/_react.default.createElement("div", {
124
- className: _style.default.progressBarRow
125
- }, /*#__PURE__*/_react.default.createElement("div", {
126
121
  className: _style.default.progressBarWrapper
127
122
  }, /*#__PURE__*/_react.default.createElement("div", {
128
123
  "data-name": "progress",
129
124
  className: _style.default.progress,
130
- style: inlineProgressStyle,
131
- role: "progressbar",
132
- "aria-valuenow": score,
133
- "aria-valuemin": 0,
134
- "aria-valuemax": 100
135
- })), /*#__PURE__*/_react.default.createElement("span", {
136
- className: _style.default.progressInformationNumber
137
- }, score.toFixed(1), "%"));
125
+ style: inlineProgressValueStyle,
126
+ role: "progressbar"
127
+ }));
138
128
  }, [score]);
139
- const hasDescription = Boolean(description && description.trim().length > 0);
140
129
  return /*#__PURE__*/_react.default.createElement("div", {
141
130
  className: _style.default.backgroundContainer
142
131
  }, /*#__PURE__*/_react.default.createElement("div", {
143
132
  className: _style.default.container,
144
133
  "data-name": skillRef
145
- }, /*#__PURE__*/_react.default.createElement("div", {
146
- className: _style.default.topSection
147
134
  }, !(0, _isNil2.default)(onBackClick) ? /*#__PURE__*/_react.default.createElement(_buttonLinkIcon.default, {
148
135
  faIcon: "arrow-left",
149
136
  "data-name": "back-button",
@@ -151,19 +138,9 @@ const SkillDetail = (props, context) => {
151
138
  onClick: onBackClick,
152
139
  className: _style.default.backButton,
153
140
  tooltipPlacement: "right"
154
- }) : null), /*#__PURE__*/_react.default.createElement("div", {
155
- className: _style.default.mainSection
156
- }, /*#__PURE__*/_react.default.createElement("div", {
157
- className: _style.default.leftSide
158
- }, /*#__PURE__*/_react.default.createElement(_iconPreview.default, {
159
- icon: {
160
- name: iconName,
161
- color: iconColor
162
- },
163
- title: title
164
- })), /*#__PURE__*/_react.default.createElement("div", {
165
- className: _style.default.rightSide
166
- }, focused ? /*#__PURE__*/_react.default.createElement("div", {
141
+ }) : null, /*#__PURE__*/_react.default.createElement("div", {
142
+ className: _style.default.ctaContainer
143
+ }, /*#__PURE__*/_react.default.createElement("div", null, focused ? /*#__PURE__*/_react.default.createElement("div", {
167
144
  className: _style.default.skillFocusBadge
168
145
  }, /*#__PURE__*/_react.default.createElement(_icon.default, {
169
146
  iconName: "bullseye-arrow",
@@ -172,77 +149,59 @@ const SkillDetail = (props, context) => {
172
149
  faSize: 10,
173
150
  wrapperSize: 16
174
151
  }
175
- }), translate('skill_focus')) : /*#__PURE__*/_react.default.createElement("div", {
176
- className: _style.default.skillBadge
177
- }, /*#__PURE__*/_react.default.createElement(_icon.default, {
178
- iconName: "shapes",
179
- backgroundColor: _colors.COLORS.gray,
180
- size: {
181
- faSize: 10,
182
- wrapperSize: 16
183
- }
184
- }), translate('skill')), /*#__PURE__*/_react.default.createElement("h2", {
152
+ }), translate('skill_focus')) : null, /*#__PURE__*/_react.default.createElement("div", {
185
153
  className: _style.default.title
186
- }, title), description && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Description, null), isDescriptionTruncated ? /*#__PURE__*/_react.default.createElement("div", {
154
+ }, title), description ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Description, null), isDescriptionTruncated ? /*#__PURE__*/_react.default.createElement("div", {
187
155
  className: _style.default.showMoreWrapper,
188
156
  onClick: handleShowMore
189
157
  }, showMore ? translate('Show less') : translate('Show more'), /*#__PURE__*/_react.default.createElement(_icon.default, {
190
158
  iconName: showMore ? 'chevron-up' : 'chevron-down',
191
159
  size: {
192
160
  faSize: 14,
193
- wrapperSize: 14
194
- },
195
- customStyle: {
196
- padding: '8px'
161
+ wrapperSize: 16
197
162
  }
198
- })) : null), questionsToReview > 0 ? /*#__PURE__*/_react.default.createElement("div", {
199
- className: _style.default.skillInformation
200
- }, /*#__PURE__*/_react.default.createElement("span", null, questionsToReview), "\xA0", translate('skill_chart_side_panel_questions_to_review')) : null, /*#__PURE__*/_react.default.createElement("div", {
201
- className: (0, _classnames.default)(_style.default.progressContainer, !hasDescription && _style.default.noDescriptionSpacing)
202
- }, /*#__PURE__*/_react.default.createElement(ProgressBar, null)), /*#__PURE__*/_react.default.createElement("div", {
163
+ })) : null) : null), /*#__PURE__*/_react.default.createElement("div", {
203
164
  className: _style.default.ctaWrapper
204
- }, /*#__PURE__*/_react.default.createElement(ContinueLearningButton, {
205
- ongoingCoursesAvailable: ongoingCoursesAvailable,
206
- onClick: onContinueLearningClick
207
- }), /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
165
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
208
166
  type: "secondary",
167
+ onClick: onReviewClick,
209
168
  label: translate('review_this_skill'),
210
169
  disabled: !availableForReview,
211
- onClick: onReviewClick,
212
- icon: {
213
- position: 'left',
214
- faIcon: {
215
- name: 'rotate-right',
216
- color: _colors.COLORS.cm_grey_700,
217
- size: 14
218
- }
219
- },
220
170
  customStyle: {
221
- borderRadius: '12px',
222
- width: 'fit-content'
171
+ width: 'fit-content',
172
+ borderRadius: '12px'
223
173
  }
224
- })))), /*#__PURE__*/_react.default.createElement(_allCourses.default, {
174
+ }), /*#__PURE__*/_react.default.createElement(ContinueLearningButton, {
175
+ ongoingCoursesAvailable: ongoingCoursesAvailable,
176
+ onClick: onContinueLearningClick
177
+ }))), questionsToReview > 0 ? /*#__PURE__*/_react.default.createElement("div", {
178
+ className: _style.default.skillInformation,
179
+ "data-name": "skill-questions"
180
+ }, /*#__PURE__*/_react.default.createElement("span", {
181
+ className: _style.default.skillInformationNumber
182
+ }, questionsToReview), "\xA0", translate('skill_chart_side_panel_questions_to_review')) : null, /*#__PURE__*/_react.default.createElement("div", {
183
+ className: _style.default.progressContainer
184
+ }, /*#__PURE__*/_react.default.createElement(ProgressBar, null), /*#__PURE__*/_react.default.createElement("span", {
185
+ className: _style.default.progressInformationNumber
186
+ }, score.toFixed(1), "%")), /*#__PURE__*/_react.default.createElement(_allCourses.default, {
225
187
  content: skillIncludedCourses,
226
188
  filters: filters,
189
+ sorting: sorting,
227
190
  totalContents: totalContents,
228
- bannerMicrolearning: bannerMicrolearning && bannerMicrolearningAction ? {
191
+ bannerMicrolearning: bannerMicrolearningAction ? {
229
192
  type: 'skill',
230
193
  action: bannerMicrolearningAction,
231
- oldSwitchValue: bannerMicrolearning.oldSwitchValue
232
- } : undefined,
194
+ oldSwitchValue
195
+ } : {},
233
196
  search: search
234
197
  })));
235
198
  };
236
199
  SkillDetail.contextTypes = {
237
- translate: _provider.default.childContextTypes.translate,
238
- skin: _provider.default.childContextTypes.skin
200
+ skin: _provider.default.childContextTypes.skin,
201
+ translate: _provider.default.childContextTypes.translate
239
202
  };
240
203
  SkillDetail.propTypes = process.env.NODE_ENV !== "production" ? {
241
204
  title: _propTypes.default.string.isRequired,
242
- icon: _propTypes.default.shape({
243
- name: _propTypes.default.string,
244
- color: _propTypes.default.string
245
- }).isRequired,
246
205
  skillRef: _propTypes.default.string.isRequired,
247
206
  description: _propTypes.default.string,
248
207
  metrics: _propTypes.default.shape({
@@ -258,6 +217,7 @@ SkillDetail.propTypes = process.env.NODE_ENV !== "production" ? {
258
217
  onChange: _propTypes.default.func,
259
218
  options: _propTypes.default.arrayOf(_propTypes.default.shape(_select.SelectOptionPropTypes))
260
219
  }),
220
+ sorting: _propTypes.default.shape(_select.default.propTypes),
261
221
  onBackClick: _propTypes.default.func,
262
222
  onReviewClick: _propTypes.default.func,
263
223
  onContinueLearningClick: _propTypes.default.func,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_classnames","_markdownToJsx","_cssColorFunction","_provider","_buttonLinkIcon","_icon","_iconPreview","_buttonLink","_cardsGrid","_colors","_select","_allCourses","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ContinueLearningButton","props","context","ongoingCoursesAvailable","onClick","skin","translate","primarySkinColor","_get2","createElement","label","type","customStyle","width","borderRadius","backgroundColor","hoverBackgroundColor","convert","hoverColor","COLORS","white","icon","position","faIcon","name","color","size","exports","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","bool","func","SkillDetail","title","iconColor","iconName","skillRef","description","metrics","focused","availableForReview","skillIncludedCourses","filters","onBackClick","onReviewClick","onContinueLearningClick","search","bannerMicrolearning","score","questionsToReview","totalContents","bannerMicrolearningAction","action","descriptionRef","useRef","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","ref","className","classnames","style","truncate","ProgressBar","progressBarColor","cm_positive_500","inlineProgressStyle","progressBarRow","progressBarWrapper","progress","role","progressInformationNumber","toFixed","hasDescription","Boolean","trim","length","backgroundContainer","container","topSection","_isNil2","backButton","tooltipPlacement","mainSection","leftSide","rightSide","skillFocusBadge","purple_100","faSize","wrapperSize","skillBadge","gray","Fragment","showMoreWrapper","padding","skillInformation","progressContainer","noDescriptionSpacing","ctaWrapper","disabled","cm_grey_700","content","oldSwitchValue","undefined","string","isRequired","shape","number","CardsGrid","onChange","options","arrayOf","SelectOptionPropTypes","oldValue","_default"],"sources":["../../../src/template/skill-detail/index.tsx"],"sourcesContent":["import React, {useCallback, useState, useRef, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\nimport {convert} from 'css-color-function';\nimport Provider from '../../atom/provider';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport IconPreview from '../../molecule/icon-preview';\nimport ButtonLink from '../../atom/button-link';\nimport CardsGrid, {CardsGridProps} from '../../organism/cards-grid';\nimport {COLORS} from '../../variables/colors';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport AllCourses from './all-courses';\nimport style from './style.css';\n\ninterface ContinueLearningButtonProps {\n ongoingCoursesAvailable?: boolean;\n onClick?: () => void;\n}\ninterface ProviderContext {\n skin: {\n common: {\n primary: string;\n secondary: string;\n };\n };\n translate: (key: string) => string;\n}\n\nexport const ContinueLearningButton = (\n props: ContinueLearningButtonProps,\n context: ProviderContext\n) => {\n const {ongoingCoursesAvailable, onClick} = props;\n const {skin, translate} = context;\n const primarySkinColor = get('common.primary', skin);\n\n return (\n <ButtonLink\n label={ongoingCoursesAvailable ? translate('continue_learning') : translate('start_learning')}\n type=\"primary\"\n customStyle={{\n width: 'fit-content',\n borderRadius: '12px',\n backgroundColor: primarySkinColor\n }}\n hoverBackgroundColor={convert(`hsl(from ${primarySkinColor} h s calc(l*(1 - 0.08)))`)}\n hoverColor={COLORS.white}\n icon={{\n position: 'left',\n faIcon: {\n name: 'play',\n color: COLORS.white,\n size: 14\n }\n }}\n onClick={onClick}\n />\n );\n};\n\nContinueLearningButton.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContinueLearningButton.propTypes = {\n ongoingCoursesAvailable: PropTypes.bool,\n onClick: PropTypes.func\n};\n\ninterface Metrics {\n score?: number;\n questionsToReview?: number;\n totalContents?: number;\n}\n\ntype BannerMicrolearning =\n | Record<string, never>\n | {\n action: () => void;\n oldSwitchValue: boolean;\n };\ninterface SkillDetailProps {\n title: string;\n icon: {name: string; color: string};\n skillRef: string;\n description?: string;\n metrics?: Metrics;\n focused?: boolean;\n availableForReview?: boolean;\n ongoingCoursesAvailable?: boolean;\n skillIncludedCourses: CardsGridProps;\n filters: {\n onChange?: () => void;\n options?: unknown[];\n };\n onBackClick?: () => void;\n onReviewClick?: () => void;\n onContinueLearningClick?: () => void;\n search: {\n oldValue: string;\n onChange: () => void;\n };\n bannerMicrolearning?: BannerMicrolearning;\n}\nconst SkillDetail = (props: SkillDetailProps, context: ProviderContext) => {\n const {\n title,\n icon: {color: iconColor, name: iconName},\n skillRef,\n description,\n metrics = {},\n focused,\n availableForReview,\n ongoingCoursesAvailable,\n skillIncludedCourses,\n filters,\n onBackClick,\n onReviewClick,\n onContinueLearningClick,\n search,\n bannerMicrolearning\n } = props;\n\n const {score = 0, questionsToReview = 0, totalContents = 0} = metrics;\n const {translate} = context;\n const bannerMicrolearningAction = bannerMicrolearning?.action;\n const descriptionRef = useRef(null);\n const [isDescriptionTruncated, setIsDescriptionTruncated] = useState(false);\n const [showMore, setShowMore] = useState(false);\n\n const handleShowMore = useCallback(() => {\n setShowMore(!showMore);\n }, [showMore]);\n\n useEffect(() => {\n if (descriptionRef.current) {\n const {clientHeight = 0, scrollHeight = 0} = descriptionRef.current;\n setIsDescriptionTruncated(scrollHeight > clientHeight);\n }\n }, [description]);\n\n const Description = useCallback(() => {\n return (\n <div\n ref={descriptionRef}\n className={classnames(style.description, !showMore && style.truncate)}\n >\n {description ? <Markdown>{description}</Markdown> : null}\n </div>\n );\n }, [showMore, description]);\n\n const ProgressBar = useCallback(() => {\n if (typeof score !== 'number') return null;\n\n const progressBarColor = COLORS.cm_positive_500;\n const inlineProgressStyle = {\n backgroundColor: progressBarColor,\n width: `${score}%`\n };\n\n return (\n <div className={style.progressBarRow}>\n <div className={style.progressBarWrapper}>\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressStyle}\n role=\"progressbar\"\n aria-valuenow={score}\n aria-valuemin={0}\n aria-valuemax={100}\n />\n </div>\n <span className={style.progressInformationNumber}>{score.toFixed(1)}%</span>\n </div>\n );\n }, [score]);\n const hasDescription = Boolean(description && description.trim().length > 0);\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={skillRef}>\n {/* Top section for the back arrow (optional) */}\n <div className={style.topSection}>\n {!isNil(onBackClick) ? (\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label={translate('back')}\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n ) : null}\n </div>\n\n {/* Main section: icon on the left, skill info on the right */}\n <div className={style.mainSection}>\n <div className={style.leftSide}>\n <IconPreview\n icon={{\n name: iconName,\n color: iconColor\n }}\n title={title}\n />\n </div>\n <div className={style.rightSide}>\n {focused ? (\n <div className={style.skillFocusBadge}>\n <Icon\n iconName=\"bullseye-arrow\"\n backgroundColor={COLORS.purple_100}\n size={{faSize: 10, wrapperSize: 16}}\n />\n {translate('skill_focus')}\n </div>\n ) : (\n <div className={style.skillBadge}>\n <Icon\n iconName=\"shapes\"\n backgroundColor={COLORS.gray}\n size={{faSize: 10, wrapperSize: 16}}\n />\n {translate('skill')}\n </div>\n )}\n\n <h2 className={style.title}>{title}</h2>\n\n {description && (\n <>\n <Description />\n {isDescriptionTruncated ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {showMore ? translate('Show less') : translate('Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 14, wrapperSize: 14}}\n customStyle={{padding: '8px'}}\n />\n </div>\n ) : null}\n </>\n )}\n\n {questionsToReview > 0 ? (\n <div className={style.skillInformation}>\n <span>{questionsToReview}</span>\n &nbsp;{translate('skill_chart_side_panel_questions_to_review')}\n </div>\n ) : null}\n\n <div\n className={classnames(\n style.progressContainer,\n !hasDescription && style.noDescriptionSpacing\n )}\n >\n <ProgressBar />\n </div>\n\n <div className={style.ctaWrapper}>\n <ContinueLearningButton\n ongoingCoursesAvailable={ongoingCoursesAvailable}\n onClick={onContinueLearningClick}\n />\n <ButtonLink\n type=\"secondary\"\n label={translate('review_this_skill')}\n disabled={!availableForReview}\n onClick={onReviewClick}\n icon={{\n position: 'left',\n faIcon: {\n name: 'rotate-right',\n color: COLORS.cm_grey_700,\n size: 14\n }\n }}\n customStyle={{borderRadius: '12px', width: 'fit-content'}}\n />\n </div>\n </div>\n </div>\n\n {/* Courses section below */}\n <AllCourses\n content={skillIncludedCourses}\n filters={filters}\n totalContents={totalContents}\n bannerMicrolearning={\n bannerMicrolearning && bannerMicrolearningAction\n ? {\n type: 'skill',\n action: bannerMicrolearningAction,\n oldSwitchValue: bannerMicrolearning.oldSwitchValue\n }\n : undefined\n }\n search={search}\n />\n </div>\n </div>\n );\n};\n\nSkillDetail.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nSkillDetail.propTypes = {\n title: PropTypes.string.isRequired,\n icon: PropTypes.shape({\n name: PropTypes.string,\n color: PropTypes.string\n }).isRequired,\n skillRef: PropTypes.string.isRequired,\n description: PropTypes.string,\n metrics: PropTypes.shape({\n score: PropTypes.number,\n questionsToReview: PropTypes.number,\n totalContents: PropTypes.number\n }),\n focused: PropTypes.bool,\n availableForReview: PropTypes.bool,\n ongoingCoursesAvailable: PropTypes.bool,\n skillIncludedCourses: PropTypes.shape(CardsGrid.propTypes),\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n onBackClick: PropTypes.func,\n onReviewClick: PropTypes.func,\n onContinueLearningClick: PropTypes.func,\n search: PropTypes.shape({\n oldValue: PropTypes.string,\n onChange: PropTypes.func\n }),\n bannerMicrolearning: PropTypes.shape({\n action: PropTypes.func,\n oldSwitchValue: PropTypes.bool\n })\n};\n\nexport default SkillDetail;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,cAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,eAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,YAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,WAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,UAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AACA,IAAAc,WAAA,GAAAZ,sBAAA,CAAAF,OAAA;AACA,IAAAe,MAAA,GAAAb,sBAAA,CAA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EAAEpB,kBAAS,CAACuF,MAAM;IACnClE,aAAa,EAAErB,kBAAS,CAACuF;EAC3B,CAAC,CAAC;EACF7E,OAAO,EAAEV,kBAAS,CAACC,IAAI;EACvBU,kBAAkB,EAAEX,kBAAS,CAACC,IAAI;EAClCjC,uBAAuB,EAAEgC,kBAAS,CAACC,IAAI;EACvCW,oBAAoB,EAAEZ,kBAAS,CAACsF,KAAK,CAACE,kBAAS,CAAC5F,SAAS,CAAC;EAC1DiB,OAAO,EAAEb,kBAAS,CAACsF,KAAK,CAAC;IACvBG,QAAQ,EAAEzF,kBAAS,CAACE,IAAI;IACxBwF,OAAO,EAAE1F,kBAAS,CAAC2F,OAAO,CAAC3F,kBAAS,CAACsF,KAAK,CAACM,6BAAqB,CAAC;EACnE,CAAC,CAAC;EACF9E,WAAW,EAAEd,kBAAS,CAACE,IAAI;EAC3Ba,aAAa,EAAEf,kBAAS,CAACE,IAAI;EAC7Bc,uBAAuB,EAAEhB,kBAAS,CAACE,IAAI;EACvCe,MAAM,EAAEjB,kBAAS,CAACsF,KAAK,CAAC;IACtBO,QAAQ,EAAE7F,kBAAS,CAACoF,MAAM;IAC1BK,QAAQ,EAAEzF,kBAAS,CAACE;EACtB,CAAC,CAAC;EACFgB,mBAAmB,EAAElB,kBAAS,CAACsF,KAAK,CAAC;IACnC/D,MAAM,EAAEvB,kBAAS,CAACE,IAAI;IACtBgF,cAAc,EAAElF,kBAAS,CAACC;EAC5B,CAAC;AACH,CAAC;AAAC,IAAA6F,QAAA,GAAAtG,OAAA,CAAAzC,OAAA,GAEaoD,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_cssColorFunction","_classnames","_markdownToJsx","_provider","_select","_buttonLink","_buttonLinkIcon","_icon","_cardsGrid","_colors","_style","_allCourses","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ContinueLearningButton","props","context","ongoingCoursesAvailable","onClick","skin","translate","primarySkinColor","_get2","createElement","label","type","customStyle","width","borderRadius","backgroundColor","hoverBackgroundColor","convert","hoverColor","COLORS","white","icon","position","faIcon","name","color","size","exports","contextTypes","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","bool","func","SkillDetail","title","skillRef","description","metrics","focused","availableForReview","skillIncludedCourses","filters","sorting","onBackClick","onReviewClick","onContinueLearningClick","search","bannerMicrolearning","descriptionRef","useRef","score","questionsToReview","totalContents","action","bannerMicrolearningAction","oldSwitchValue","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","ref","className","classnames","style","truncate","ProgressBar","undefined","progressBarColor","inlineProgressValueStyle","progressBarWrapper","progress","role","backgroundContainer","container","_isNil2","backButton","tooltipPlacement","ctaContainer","skillFocusBadge","iconName","purple_100","faSize","wrapperSize","Fragment","showMoreWrapper","ctaWrapper","disabled","skillInformation","skillInformationNumber","progressContainer","progressInformationNumber","toFixed","content","string","isRequired","shape","number","CardsGrid","onChange","options","arrayOf","SelectOptionPropTypes","Select","oldValue","_default"],"sources":["../../../src/template/skill-detail/index.js"],"sourcesContent":["import React, {useCallback, useState, useRef, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport {get, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\nimport Provider from '../../atom/provider';\nimport Select, {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport AllCourses from './all-courses';\n\nexport const ContinueLearningButton = (props, context) => {\n const {ongoingCoursesAvailable, onClick} = props;\n const {skin, translate} = context;\n const primarySkinColor = get('common.primary', skin);\n\n return (\n <div>\n <ButtonLink\n label={\n ongoingCoursesAvailable ? translate('continue_learning') : translate('start_learning')\n }\n type=\"primary\"\n customStyle={{\n width: 'fit-content',\n borderRadius: '12px',\n backgroundColor: primarySkinColor\n }}\n hoverBackgroundColor={convert(`hsl(from ${primarySkinColor} h s calc(l*(1 - 0.08)))`)}\n hoverColor={COLORS.white}\n icon={{\n position: 'left',\n faIcon: {\n name: 'play',\n color: COLORS.white,\n size: 16\n }\n }}\n onClick={onClick}\n />\n </div>\n );\n};\n\nContinueLearningButton.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContinueLearningButton.propTypes = {\n ongoingCoursesAvailable: PropTypes.bool,\n onClick: PropTypes.func\n};\n\nconst SkillDetail = (props, context) => {\n const {\n title,\n skillRef,\n description,\n metrics = {},\n focused,\n availableForReview,\n ongoingCoursesAvailable,\n skillIncludedCourses,\n filters,\n sorting,\n onBackClick,\n onReviewClick,\n onContinueLearningClick,\n search,\n bannerMicrolearning = {}\n } = props;\n const descriptionRef = useRef(null);\n const {score = 0, questionsToReview, totalContents} = metrics;\n const {translate} = context;\n const {action: bannerMicrolearningAction, oldSwitchValue} = bannerMicrolearning;\n\n const [isDescriptionTruncated, setIsDescriptionTruncated] = useState(false);\n const [showMore, setShowMore] = useState(false);\n\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n useEffect(() => {\n if (descriptionRef.current) {\n const {clientHeight = 0, scrollHeight = 0} = descriptionRef.current;\n setIsDescriptionTruncated(scrollHeight > clientHeight);\n }\n }, [description]);\n\n const Description = useCallback(() => {\n return (\n <div\n ref={descriptionRef}\n className={classnames(style.description, !showMore && style.truncate)}\n >\n <Markdown>{description}</Markdown>\n </div>\n );\n }, [showMore, description]);\n\n const ProgressBar = useCallback(() => {\n if (score === undefined) return null;\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${score}%`\n };\n\n return (\n <div className={style.progressBarWrapper}>\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n role=\"progressbar\"\n />\n </div>\n );\n }, [score]);\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={skillRef}>\n {!isNil(onBackClick) ? (\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label={translate('back')}\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n ) : null}\n <div className={style.ctaContainer}>\n <div>\n {focused ? (\n <div className={style.skillFocusBadge}>\n <Icon\n iconName=\"bullseye-arrow\"\n backgroundColor={COLORS.purple_100}\n size={{\n faSize: 10,\n wrapperSize: 16\n }}\n />\n {translate('skill_focus')}\n </div>\n ) : null}\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {isDescriptionTruncated ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {showMore ? translate('Show less') : translate('Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{\n faSize: 14,\n wrapperSize: 16\n }}\n />\n </div>\n ) : null}\n </>\n ) : null}\n </div>\n\n <div className={style.ctaWrapper}>\n <ButtonLink\n type=\"secondary\"\n onClick={onReviewClick}\n label={translate('review_this_skill')}\n disabled={!availableForReview}\n customStyle={{\n width: 'fit-content',\n borderRadius: '12px'\n }}\n />\n <ContinueLearningButton\n ongoingCoursesAvailable={ongoingCoursesAvailable}\n onClick={onContinueLearningClick}\n />\n </div>\n </div>\n {questionsToReview > 0 ? (\n <div className={style.skillInformation} data-name=\"skill-questions\">\n <span className={style.skillInformationNumber}>{questionsToReview}</span>\n &nbsp;{translate('skill_chart_side_panel_questions_to_review')}\n </div>\n ) : null}\n <div className={style.progressContainer}>\n <ProgressBar />\n <span className={style.progressInformationNumber}>{score.toFixed(1)}%</span>\n </div>\n <AllCourses\n content={skillIncludedCourses}\n filters={filters}\n sorting={sorting}\n totalContents={totalContents}\n bannerMicrolearning={\n bannerMicrolearningAction\n ? {\n type: 'skill',\n action: bannerMicrolearningAction,\n oldSwitchValue\n }\n : {}\n }\n search={search}\n />\n </div>\n </div>\n );\n};\n\nSkillDetail.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nSkillDetail.propTypes = {\n title: PropTypes.string.isRequired,\n skillRef: PropTypes.string.isRequired,\n description: PropTypes.string,\n metrics: PropTypes.shape({\n score: PropTypes.number,\n questionsToReview: PropTypes.number,\n totalContents: PropTypes.number\n }),\n focused: PropTypes.bool,\n availableForReview: PropTypes.bool,\n ongoingCoursesAvailable: PropTypes.bool,\n skillIncludedCourses: PropTypes.shape(CardsGrid.propTypes),\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n sorting: PropTypes.shape(Select.propTypes),\n onBackClick: PropTypes.func,\n onReviewClick: PropTypes.func,\n onContinueLearningClick: PropTypes.func,\n search: PropTypes.shape({\n oldValue: PropTypes.string,\n onChange: PropTypes.func\n }),\n bannerMicrolearning: PropTypes.shape({\n action: PropTypes.func,\n oldSwitchValue: PropTypes.bool\n })\n};\n\nexport default SkillDetail;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,cAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,SAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,OAAA,GAAAR,uBAAA,CAAAC,OAAA;AACA,IAAAQ,WAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,eAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,KAAA,GAAAR,sBAAA,CAAAF,OAAA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O,EAAER,kBAAS,CAACC,IAAI;EACvBQ,kBAAkB,EAAET,kBAAS,CAACC,IAAI;EAClCjC,uBAAuB,EAAEgC,kBAAS,CAACC,IAAI;EACvCS,oBAAoB,EAAEV,kBAAS,CAACyE,KAAK,CAACE,kBAAS,CAAC/E,SAAS,CAAC;EAC1De,OAAO,EAAEX,kBAAS,CAACyE,KAAK,CAAC;IACvBG,QAAQ,EAAE5E,kBAAS,CAACE,IAAI;IACxB2E,OAAO,EAAE7E,kBAAS,CAAC8E,OAAO,CAAC9E,kBAAS,CAACyE,KAAK,CAACM,6BAAqB,CAAC;EACnE,CAAC,CAAC;EACFnE,OAAO,EAAEZ,kBAAS,CAACyE,KAAK,CAACO,eAAM,CAACpF,SAAS,CAAC;EAC1CiB,WAAW,EAAEb,kBAAS,CAACE,IAAI;EAC3BY,aAAa,EAAEd,kBAAS,CAACE,IAAI;EAC7Ba,uBAAuB,EAAEf,kBAAS,CAACE,IAAI;EACvCc,MAAM,EAAEhB,kBAAS,CAACyE,KAAK,CAAC;IACtBQ,QAAQ,EAAEjF,kBAAS,CAACuE,MAAM;IAC1BK,QAAQ,EAAE5E,kBAAS,CAACE;EACtB,CAAC,CAAC;EACFe,mBAAmB,EAAEjB,kBAAS,CAACyE,KAAK,CAAC;IACnClD,MAAM,EAAEvB,kBAAS,CAACE,IAAI;IACtBuB,cAAc,EAAEzB,kBAAS,CAACC;EAC5B,CAAC;AACH,CAAC;AAAC,IAAAiF,QAAA,GAAA1F,OAAA,CAAAzC,OAAA,GAEaoD,WAAW","ignoreList":[]}
@@ -7,7 +7,6 @@
7
7
  @value cm_grey_200 from colors;
8
8
  @value cm_grey_400 from colors;
9
9
  @value cm_grey_500 from colors;
10
- @value purple_600 from colors;
11
10
 
12
11
  .textBase {
13
12
  font-family: "Gilroy";
@@ -23,7 +22,12 @@
23
22
  .container {
24
23
  composes: textBase;
25
24
  background-color: white;
26
- margin: 48px auto;
25
+ font-family: "Gilroy";
26
+ font-style: normal;
27
+ margin-top: 48px;
28
+ margin-bottom: 48px;
29
+ margin-left: auto;
30
+ margin-right: auto;
27
31
  padding: 0 16px;
28
32
  position: relative;
29
33
  box-sizing: border-box;
@@ -32,48 +36,14 @@
32
36
  max-width: calc(1080px + 40px);
33
37
  }
34
38
 
35
- .topSection {
36
- display: flex;
37
- }
38
-
39
- .mainSection {
40
- display: flex;
41
- align-items: flex-start;
42
- gap: 40px;
43
- }
44
-
45
- .leftSide {
46
- width: 420px;
47
- height: 280px;
48
- display: flex;
49
- flex-direction: column;
50
- gap: 16px;
51
- }
52
-
53
- .rightSide {
54
- max-width: 620px;
55
- height: 280px;
56
- display: flex;
57
- gap: 8px;
58
- flex-direction: column;
59
- }
60
-
61
- .title {
62
- gap: 8px;
63
- margin: 0;
64
- font-size: 24px;
65
- font-weight: 700;
66
- line-height: 32px;
39
+ .backButton {
40
+ margin-bottom: 16px;
67
41
  }
68
42
 
69
- .ctaWrapper {
43
+ .ctaContainer {
70
44
  display: flex;
71
- gap: 8px;
72
- margin-top: 16px;
73
- }
74
-
75
- .backButton {
76
- margin-bottom: 16px;
45
+ width: 100%;
46
+ justify-content: space-between;
77
47
  }
78
48
 
79
49
  .skillFocusBadge {
@@ -87,39 +57,35 @@
87
57
  font-size: 12px;
88
58
  line-height: 16px;
89
59
  font-weight: 600;
90
- color: purple_600;
60
+ color: #3900D6;
61
+ margin-bottom: 16px;
91
62
  }
92
63
 
93
- .skillBadge {
64
+ .ctaWrapper,
65
+ .showMoreWrapper {
94
66
  display: flex;
95
- height: 12px;
96
- width: fit-content;
97
- align-items: center;
98
- background-color: cm_grey_100;
99
- border-radius: 24px;
100
- padding: 4px 8px;
101
- font-size: 12px;
102
- line-height: 12px;
103
- font-weight: 600;
104
- color: cm_grey_500;
67
+ gap: 8px;
105
68
  }
106
69
 
107
70
  .showMoreWrapper {
108
- display: flex;
109
71
  align-items: center;
110
- color: cm_grey_500;
72
+ margin-top: 8px;
111
73
  font-weight: 600;
112
74
  cursor: pointer;
113
- font-size: 14px;
75
+ }
76
+
77
+ .title {
78
+ font-size: 24px;
79
+ font-weight: 700;
80
+ line-height: 32px;
114
81
  }
115
82
 
116
83
  .description {
117
- max-width: 620px;
84
+ margin-top: 8px;
85
+ max-width: 734px;
118
86
  font-size: 14px;
119
87
  font-weight: 500;
120
88
  line-height: 20px;
121
- flex: 1 0 0;
122
- align-self: stretch;
123
89
  color: cm_grey_400;
124
90
  }
125
91
 
@@ -139,37 +105,27 @@
139
105
  color: cm_grey_400;
140
106
  margin-top: 16px;
141
107
  }
142
- .noDescriptionSpacing {
143
- margin-top: 48px ;
144
- }
145
108
 
109
+ .skillInformationNumber {
110
+ color: #000;
111
+ }
146
112
 
147
113
  .progressContainer {
148
114
  display: flex;
149
115
  align-items: center;
150
116
  gap: 8px;
117
+ margin: 16px 0 40px 0;
151
118
  }
152
119
 
153
120
  .progressInformationNumber {
154
- font-size: 14px;
155
- font-weight: 600;
156
121
  color: cm_grey_500;
157
- flex-shrink: 0;
158
- }
159
-
160
- .progressBarRow {
161
- display: flex;
162
- align-items: center;
163
- flex-direction: row;
164
- width: 100%;
165
- gap: 8px;
166
122
  }
167
123
 
168
124
  .progressBarWrapper {
169
125
  position: relative;
170
126
  left: 0;
171
127
  max-width: 300px;
172
- flex: 1;
128
+ width: 100%;
173
129
  height: 4px;
174
130
  border-radius: 2px;
175
131
  overflow: hidden;
@@ -177,41 +133,27 @@
177
133
  }
178
134
 
179
135
  .progress {
180
- display: flex;
136
+ display: block;
181
137
  height: 8px;
182
138
  animation: progressbar 2s ease-in-out;
183
139
  }
184
140
 
185
141
  @media tablet {
186
- .topSection {
187
- flex-direction: row;
188
- align-items: flex-start;
189
- }
190
- .leftSide,
191
- .rightSide {
192
- width: 50%;
193
- }
194
- }
195
-
196
- @media mobile {
197
- .topSection {
142
+ .ctaContainer {
198
143
  flex-direction: column;
199
- align-items: center;
200
144
  }
201
145
 
202
- .leftSide,
203
- .rightSide {
204
- width: 100%;
205
- align-items: center;
146
+ .ctaWrapper {
147
+ margin-top: 32px;
206
148
  }
149
+ }
207
150
 
151
+ @media mobile {
208
152
  .ctaWrapper {
209
153
  flex-direction: column;
210
- gap: 8px;
211
- margin-top: 16px;
212
- }
213
154
 
214
- .ctaWrapper button {
215
- width: 100% !important;
155
+ button {
156
+ width: 100% !important;
157
+ }
216
158
  }
217
159
  }
@@ -99,5 +99,3 @@
99
99
  @value pink_100: '#FAD6DE';
100
100
  @value orange_100: '#FFDCD1';
101
101
  @value primary_100: '#D6E6FF';
102
- @value purple_100: #DDD1FF;
103
- @value purple_600: #3900D6;
@@ -2,12 +2,12 @@ export declare const COLORS: {
2
2
  readonly gray: "#EAEAEB";
3
3
  readonly negative: "#ed3436";
4
4
  readonly cm_negative_200: "#B81400";
5
+ readonly positive: "#35CC7F";
5
6
  readonly cm_positive_200: "#05944F";
6
- readonly white: "#FFFFFF";
7
+ readonly white: "#ffffff";
7
8
  readonly cm_blue_50: "#f1f6fe";
8
9
  readonly cm_grey_400: "#9999A8";
9
10
  readonly cm_grey_800: "#171721";
10
- readonly cm_grey_150: "#E1E1E3";
11
11
  readonly cm_primary_blue: "#0061FF";
12
12
  readonly cm_blue_700: "#0042AD";
13
13
  readonly primary_100: "#D6E6FF";
@@ -32,7 +32,6 @@ export declare const COLORS: {
32
32
  readonly turquoise_100: "#D9F4F7";
33
33
  readonly pink_100: "#FAD6DE";
34
34
  readonly orange_100: "#FFDCD1";
35
- readonly cm_positive_500: "#35CC7F";
36
35
  };
37
36
  export declare type Colors = typeof COLORS;
38
37
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/variables/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCT,CAAC;AAEX,oBAAY,MAAM,GAAG,OAAO,MAAM,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/variables/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCT,CAAC;AAEX,oBAAY,MAAM,GAAG,OAAO,MAAM,CAAC"}
@@ -6,12 +6,12 @@ const COLORS = exports.COLORS = {
6
6
  gray: '#EAEAEB',
7
7
  negative: '#ed3436',
8
8
  cm_negative_200: '#B81400',
9
+ positive: '#35CC7F',
9
10
  cm_positive_200: '#05944F',
10
- white: '#FFFFFF',
11
+ white: '#ffffff',
11
12
  cm_blue_50: '#f1f6fe',
12
13
  cm_grey_400: '#9999A8',
13
14
  cm_grey_800: '#171721',
14
- cm_grey_150: '#E1E1E3',
15
15
  cm_primary_blue: '#0061FF',
16
16
  cm_blue_700: '#0042AD',
17
17
  primary_100: '#D6E6FF',
@@ -35,7 +35,6 @@ const COLORS = exports.COLORS = {
35
35
  purple_100: '#DDD1FF',
36
36
  turquoise_100: '#D9F4F7',
37
37
  pink_100: '#FAD6DE',
38
- orange_100: '#FFDCD1',
39
- cm_positive_500: '#35CC7F'
38
+ orange_100: '#FFDCD1'
40
39
  };
41
40
  //# sourceMappingURL=colors.js.map