@coorpacademy/components 11.32.11 → 11.32.12-alpha.3

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 (112) hide show
  1. package/es/atom/button-link/style.css +1 -0
  2. package/es/atom/select/index.d.ts.map +1 -1
  3. package/es/atom/select/index.js +2 -1
  4. package/es/atom/select/index.js.map +1 -1
  5. package/es/atom/select/style.css +28 -0
  6. package/es/molecule/cm-popin/types.d.ts +1 -0
  7. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  8. package/es/molecule/dashboard/cards-list/index.d.ts +2 -1
  9. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  10. package/es/molecule/dashboard/cards-list/index.js +8 -3
  11. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  12. package/es/molecule/dashboard/cards-list/prop-types.d.ts +3 -1
  13. package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  14. package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  15. package/es/molecule/dashboard/cards-list/style.css +4 -0
  16. package/es/organism/cards-grid/index.d.ts +1 -0
  17. package/es/organism/cards-grid/index.js +6 -1
  18. package/es/organism/cards-grid/index.js.map +1 -1
  19. package/es/organism/cards-grid/style.css +0 -1
  20. package/es/template/app-player/loading/index.d.ts +1 -0
  21. package/es/template/app-player/player/index.d.ts +2 -0
  22. package/es/template/app-player/player/slides/index.d.ts +1 -0
  23. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  24. package/es/template/app-player/popin-correction/index.d.ts +1 -0
  25. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  26. package/es/template/app-player/popin-end/index.d.ts +3 -1
  27. package/es/template/app-player/popin-end/summary.d.ts +2 -1
  28. package/es/template/app-review/index.d.ts +1 -0
  29. package/es/template/app-review/index.d.ts.map +1 -1
  30. package/es/template/app-review/player/prop-types.d.ts +1 -0
  31. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  32. package/es/template/app-review/prop-types.d.ts +1 -0
  33. package/es/template/app-review/prop-types.d.ts.map +1 -1
  34. package/es/template/back-office/brand-update/index.d.ts +1 -0
  35. package/es/template/common/authors/index.d.ts +1 -0
  36. package/es/template/common/authors/index.d.ts.map +1 -1
  37. package/es/template/common/dashboard/index.d.ts +2 -0
  38. package/es/template/common/search-page/index.d.ts +4 -1
  39. package/es/template/external-course/index.d.ts +1 -0
  40. package/es/template/skill-detail/all-courses.css +128 -0
  41. package/es/template/skill-detail/all-courses.d.ts +77 -0
  42. package/es/template/skill-detail/all-courses.d.ts.map +1 -0
  43. package/es/template/skill-detail/all-courses.js +179 -0
  44. package/es/template/skill-detail/all-courses.js.map +1 -0
  45. package/es/template/skill-detail/continue-learning.css +21 -0
  46. package/es/template/skill-detail/continue-learning.d.ts +37 -0
  47. package/es/template/skill-detail/continue-learning.d.ts.map +1 -0
  48. package/es/template/skill-detail/continue-learning.js +43 -0
  49. package/es/template/skill-detail/continue-learning.js.map +1 -0
  50. package/es/template/skill-detail/index.d.ts +95 -0
  51. package/es/template/skill-detail/index.d.ts.map +1 -0
  52. package/es/template/skill-detail/index.js +219 -0
  53. package/es/template/skill-detail/index.js.map +1 -0
  54. package/es/template/skill-detail/style.css +174 -0
  55. package/es/template/teams-dashboard/index.d.ts +2 -1
  56. package/lib/atom/button-link/style.css +1 -0
  57. package/lib/atom/select/index.d.ts.map +1 -1
  58. package/lib/atom/select/index.js +2 -1
  59. package/lib/atom/select/index.js.map +1 -1
  60. package/lib/atom/select/style.css +28 -0
  61. package/lib/molecule/cm-popin/types.d.ts +1 -0
  62. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  63. package/lib/molecule/dashboard/cards-list/index.d.ts +2 -1
  64. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  65. package/lib/molecule/dashboard/cards-list/index.js +8 -4
  66. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  67. package/lib/molecule/dashboard/cards-list/prop-types.d.ts +3 -1
  68. package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  69. package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  70. package/lib/molecule/dashboard/cards-list/style.css +4 -0
  71. package/lib/organism/cards-grid/index.d.ts +1 -0
  72. package/lib/organism/cards-grid/index.js +6 -1
  73. package/lib/organism/cards-grid/index.js.map +1 -1
  74. package/lib/organism/cards-grid/style.css +0 -1
  75. package/lib/template/app-player/loading/index.d.ts +1 -0
  76. package/lib/template/app-player/player/index.d.ts +2 -0
  77. package/lib/template/app-player/player/slides/index.d.ts +1 -0
  78. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  79. package/lib/template/app-player/popin-correction/index.d.ts +1 -0
  80. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  81. package/lib/template/app-player/popin-end/index.d.ts +3 -1
  82. package/lib/template/app-player/popin-end/summary.d.ts +2 -1
  83. package/lib/template/app-review/index.d.ts +1 -0
  84. package/lib/template/app-review/index.d.ts.map +1 -1
  85. package/lib/template/app-review/player/prop-types.d.ts +1 -0
  86. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  87. package/lib/template/app-review/prop-types.d.ts +1 -0
  88. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  89. package/lib/template/back-office/brand-update/index.d.ts +1 -0
  90. package/lib/template/common/authors/index.d.ts +1 -0
  91. package/lib/template/common/authors/index.d.ts.map +1 -1
  92. package/lib/template/common/dashboard/index.d.ts +2 -0
  93. package/lib/template/common/search-page/index.d.ts +4 -1
  94. package/lib/template/external-course/index.d.ts +1 -0
  95. package/lib/template/skill-detail/all-courses.css +128 -0
  96. package/lib/template/skill-detail/all-courses.d.ts +77 -0
  97. package/lib/template/skill-detail/all-courses.d.ts.map +1 -0
  98. package/lib/template/skill-detail/all-courses.js +198 -0
  99. package/lib/template/skill-detail/all-courses.js.map +1 -0
  100. package/lib/template/skill-detail/continue-learning.css +21 -0
  101. package/lib/template/skill-detail/continue-learning.d.ts +37 -0
  102. package/lib/template/skill-detail/continue-learning.d.ts.map +1 -0
  103. package/lib/template/skill-detail/continue-learning.js +56 -0
  104. package/lib/template/skill-detail/continue-learning.js.map +1 -0
  105. package/lib/template/skill-detail/index.d.ts +95 -0
  106. package/lib/template/skill-detail/index.d.ts.map +1 -0
  107. package/lib/template/skill-detail/index.js +241 -0
  108. package/lib/template/skill-detail/index.js.map +1 -0
  109. package/lib/template/skill-detail/style.css +174 -0
  110. package/lib/template/teams-dashboard/index.d.ts +2 -1
  111. package/locales/en/global.json +7 -0
  112. package/package.json +2 -2
@@ -0,0 +1,95 @@
1
+ export default SkillDetail;
2
+ declare function SkillDetail(props: any, context: any): JSX.Element;
3
+ declare namespace SkillDetail {
4
+ namespace contextTypes {
5
+ const skin: PropTypes.Requireable<PropTypes.InferProps<{
6
+ common: PropTypes.Requireable<{
7
+ [x: string]: any;
8
+ }>;
9
+ images: PropTypes.Requireable<PropTypes.InferProps<{
10
+ 'logo-mobile': PropTypes.Requireable<any>;
11
+ logo: PropTypes.Requireable<any>;
12
+ 'logo-email': PropTypes.Requireable<any>;
13
+ login: PropTypes.Requireable<any>;
14
+ }>>;
15
+ icons: PropTypes.Requireable<{
16
+ [x: string]: any;
17
+ }>;
18
+ mod: PropTypes.Requireable<{
19
+ [x: string]: any;
20
+ }>;
21
+ courses: PropTypes.Requireable<any[]>;
22
+ texts: PropTypes.Requireable<{
23
+ [x: string]: any;
24
+ }>;
25
+ }>>;
26
+ const translate: PropTypes.Requireable<(...args: any[]) => any>;
27
+ }
28
+ namespace propTypes {
29
+ const title: PropTypes.Validator<string>;
30
+ const description: PropTypes.Requireable<string>;
31
+ const metrics: PropTypes.Requireable<PropTypes.InferProps<{
32
+ score: PropTypes.Requireable<number>;
33
+ content: PropTypes.Requireable<number>;
34
+ questionsToReview: PropTypes.Requireable<number>;
35
+ contentCompleted: PropTypes.Requireable<number>;
36
+ }>>;
37
+ const focused: PropTypes.Requireable<boolean>;
38
+ const availableForReview: PropTypes.Requireable<boolean>;
39
+ const ongoingCourses: PropTypes.Requireable<PropTypes.InferProps<{
40
+ list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
41
+ justifyContent: PropTypes.Requireable<string>;
42
+ loading: PropTypes.Requireable<boolean>;
43
+ }>>;
44
+ const skillIncludedCourses: PropTypes.Requireable<PropTypes.InferProps<{
45
+ list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
46
+ justifyContent: PropTypes.Requireable<string>;
47
+ loading: PropTypes.Requireable<boolean>;
48
+ }>>;
49
+ const filters: PropTypes.Requireable<PropTypes.InferProps<{
50
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
51
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
52
+ name: PropTypes.Validator<string>;
53
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
54
+ selected: PropTypes.Requireable<boolean>;
55
+ validOption: PropTypes.Requireable<boolean>;
56
+ }> | null | undefined)[]>;
57
+ }>>;
58
+ const sorting: PropTypes.Requireable<PropTypes.InferProps<{
59
+ title: PropTypes.Requireable<string>;
60
+ name: PropTypes.Requireable<string>;
61
+ className: PropTypes.Requireable<string>;
62
+ borderClassName: PropTypes.Requireable<string>;
63
+ disabled: PropTypes.Requireable<boolean>;
64
+ multiple: PropTypes.Requireable<boolean>;
65
+ description: PropTypes.Requireable<string>;
66
+ required: PropTypes.Requireable<boolean>;
67
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
68
+ theme: PropTypes.Requireable<string>;
69
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
70
+ name: PropTypes.Validator<string>;
71
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
72
+ selected: PropTypes.Requireable<boolean>;
73
+ validOption: PropTypes.Requireable<boolean>;
74
+ }> | null | undefined)[]>;
75
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
76
+ label: PropTypes.Validator<string>;
77
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
78
+ name: PropTypes.Validator<string>;
79
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
80
+ selected: PropTypes.Requireable<boolean>;
81
+ validOption: PropTypes.Requireable<boolean>;
82
+ }> | null | undefined)[]>;
83
+ }> | null | undefined)[]>;
84
+ modified: PropTypes.Requireable<boolean>;
85
+ error: PropTypes.Requireable<boolean>;
86
+ 'aria-label': PropTypes.Requireable<string>;
87
+ 'aria-labelledby': PropTypes.Requireable<string>;
88
+ }>>;
89
+ const onBackClick: PropTypes.Requireable<(...args: any[]) => any>;
90
+ const onReviewClick: PropTypes.Requireable<(...args: any[]) => any>;
91
+ const onContinueLearningClick: PropTypes.Requireable<(...args: any[]) => any>;
92
+ }
93
+ }
94
+ import PropTypes from "prop-types";
95
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/index.js"],"names":[],"mappings":";AA2DA,oEAuJC"}
@@ -0,0 +1,241 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _get2 = _interopRequireDefault(require("lodash/fp/get"));
7
+
8
+ var _react = _interopRequireWildcard(require("react"));
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ var _cssColorFunction = require("css-color-function");
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ var _provider = _interopRequireDefault(require("../../atom/provider"));
17
+
18
+ var _select = _interopRequireWildcard(require("../../atom/select"));
19
+
20
+ var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
21
+
22
+ var _icon = _interopRequireDefault(require("../../atom/icon"));
23
+
24
+ var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
25
+
26
+ var _style = _interopRequireDefault(require("./style.css"));
27
+
28
+ var _allCourses = _interopRequireDefault(require("./all-courses"));
29
+
30
+ var _continueLearning = _interopRequireDefault(require("./continue-learning"));
31
+
32
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33
+
34
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
+
36
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
+
38
+ const ContinueLearningButton = (props, context) => {
39
+ const [hovered, setHovered] = (0, _react.useState)(false);
40
+ const {
41
+ onClick
42
+ } = props;
43
+ const {
44
+ skin,
45
+ translate
46
+ } = context;
47
+ const primarySkinColor = (0, _get2.default)('common.primary', skin);
48
+ const handleMouseOver = (0, _react.useCallback)(() => setHovered(true), [setHovered]);
49
+ const handleMouseLeave = (0, _react.useCallback)(() => setHovered(false), [setHovered]);
50
+ return /*#__PURE__*/_react.default.createElement("div", {
51
+ onMouseOver: handleMouseOver,
52
+ onMouseLeave: handleMouseLeave
53
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
54
+ label: translate('continue_learning'),
55
+ type: "primary",
56
+ customStyle: {
57
+ width: 'fit-content',
58
+ borderRadius: '12px',
59
+ backgroundColor: hovered ? (0, _cssColorFunction.convert)(`hsl(from ${primarySkinColor} h s calc(l*(1 - 0.08)))`) : primarySkinColor
60
+ },
61
+ icon: {
62
+ position: 'left',
63
+ faIcon: {
64
+ name: 'play',
65
+ color: '#FFFFFF',
66
+ size: 16
67
+ }
68
+ },
69
+ onClick: onClick
70
+ }));
71
+ };
72
+
73
+ ContinueLearningButton.contextTypes = {
74
+ skin: _provider.default.childContextTypes.skin,
75
+ translate: _provider.default.childContextTypes.translate
76
+ };
77
+ ContinueLearningButton.propTypes = process.env.NODE_ENV !== "production" ? {
78
+ onClick: _propTypes.default.func
79
+ } : {};
80
+
81
+ const SkillDetail = (props, context) => {
82
+ const {
83
+ title,
84
+ description,
85
+ metrics,
86
+ focused,
87
+ availableForReview,
88
+ ongoingCourses,
89
+ skillIncludedCourses,
90
+ filters,
91
+ sorting,
92
+ onBackClick,
93
+ onReviewClick,
94
+ onContinueLearningClick
95
+ } = props;
96
+ const {
97
+ score,
98
+ content,
99
+ questionsToReview,
100
+ contentCompleted = 0
101
+ } = metrics;
102
+ const {
103
+ translate
104
+ } = context;
105
+ const [showMore, setShowMore] = (0, _react.useState)(false);
106
+ const handleShowMore = (0, _react.useCallback)(() => setShowMore(!showMore), [setShowMore, showMore]);
107
+ const Description = (0, _react.useCallback)(() => {
108
+ return /*#__PURE__*/_react.default.createElement("div", {
109
+ className: (0, _classnames.default)(_style.default.description, !showMore && _style.default.truncate)
110
+ }, description);
111
+ });
112
+ const ProgressBar = (0, _react.useCallback)(() => {
113
+ if (score === undefined) return null;
114
+ const progressBarColor = '#3EC483';
115
+ const inlineProgressValueStyle = {
116
+ backgroundColor: progressBarColor,
117
+ width: `${score}%`
118
+ };
119
+ return /*#__PURE__*/_react.default.createElement("div", {
120
+ className: _style.default.progressBarWrapper
121
+ }, /*#__PURE__*/_react.default.createElement("div", {
122
+ "data-name": "progress",
123
+ className: _style.default.progress,
124
+ style: inlineProgressValueStyle,
125
+ role: "progressbar"
126
+ }));
127
+ }, [score]);
128
+ return /*#__PURE__*/_react.default.createElement("div", {
129
+ className: _style.default.backgroundContainer
130
+ }, /*#__PURE__*/_react.default.createElement("div", {
131
+ className: _style.default.container
132
+ }, /*#__PURE__*/_react.default.createElement("div", {
133
+ className: _style.default.backButtonWrapper,
134
+ onClick: onBackClick
135
+ }, /*#__PURE__*/_react.default.createElement(_icon.default, {
136
+ iconName: "arrow-left",
137
+ size: {
138
+ faSize: 14,
139
+ wrapperSize: 14
140
+ }
141
+ })), /*#__PURE__*/_react.default.createElement("div", {
142
+ className: _style.default.ctaContainer
143
+ }, /*#__PURE__*/_react.default.createElement("div", null, focused ? /*#__PURE__*/_react.default.createElement("div", {
144
+ className: _style.default.skillFocusBadge
145
+ }, /*#__PURE__*/_react.default.createElement(_icon.default, {
146
+ iconName: "bullseye-arrow",
147
+ backgroundColor: "#DDD1FF",
148
+ size: {
149
+ faSize: 10,
150
+ wrapperSize: 16
151
+ }
152
+ }), translate('skill_focus')) : null, /*#__PURE__*/_react.default.createElement("div", {
153
+ className: _style.default.title
154
+ }, title), description ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Description, null), description.length >= 226 ? /*#__PURE__*/_react.default.createElement("div", {
155
+ className: _style.default.showMoreWrapper,
156
+ onClick: handleShowMore
157
+ }, showMore ? translate('Show less') : translate('Show more'), /*#__PURE__*/_react.default.createElement(_icon.default, {
158
+ iconName: showMore ? 'chevron-up' : 'chevron-down',
159
+ size: {
160
+ faSize: 14,
161
+ wrapperSize: 16
162
+ }
163
+ })) : null) : null), /*#__PURE__*/_react.default.createElement("div", {
164
+ className: _style.default.ctaWrapper
165
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
166
+ type: "secondary",
167
+ onClick: onReviewClick,
168
+ label: translate('review_this_skill'),
169
+ disabled: !availableForReview,
170
+ customStyle: {
171
+ width: 'fit-content',
172
+ borderRadius: '12px'
173
+ }
174
+ }), /*#__PURE__*/_react.default.createElement(ContinueLearningButton, {
175
+ onClick: onContinueLearningClick
176
+ }))), /*#__PURE__*/_react.default.createElement("div", {
177
+ className: _style.default.progressInformationsWrapper
178
+ }, /*#__PURE__*/_react.default.createElement("div", {
179
+ className: _style.default.progressTitle
180
+ }, translate('your_progress')), /*#__PURE__*/_react.default.createElement("div", {
181
+ className: _style.default.skillCoursesAndQuestionsWrapper
182
+ }, content ? /*#__PURE__*/_react.default.createElement("div", {
183
+ className: _style.default.skillInformation,
184
+ "data-name": "skill-courses"
185
+ }, /*#__PURE__*/_react.default.createElement("span", {
186
+ className: _style.default.skillInformationNumber
187
+ }, content), ' ', translate('courses')) : null, questionsToReview ? /*#__PURE__*/_react.default.createElement("div", {
188
+ className: _style.default.skillInformation,
189
+ "data-name": "skill-questions"
190
+ }, /*#__PURE__*/_react.default.createElement("span", {
191
+ className: _style.default.skillInformationNumber
192
+ }, questionsToReview), "\xA0", translate('questions')) : null), /*#__PURE__*/_react.default.createElement(ProgressBar, null), /*#__PURE__*/_react.default.createElement("div", {
193
+ className: _style.default.progressInformations
194
+ }, content && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
195
+ className: _style.default.progressInformation,
196
+ "data-name": "skill-completed-courses"
197
+ }, /*#__PURE__*/_react.default.createElement("span", {
198
+ className: _style.default.progressInformationNumber
199
+ }, contentCompleted), ` ${translate('courses_completed')}`), /*#__PURE__*/_react.default.createElement("div", {
200
+ className: _style.default.progressInformation,
201
+ "data-name": "completed-percentage"
202
+ }, /*#__PURE__*/_react.default.createElement("span", {
203
+ className: _style.default.progressInformationNumber
204
+ }, score, "%"))))), /*#__PURE__*/_react.default.createElement(_continueLearning.default, {
205
+ ongoingCourses: ongoingCourses
206
+ }), /*#__PURE__*/_react.default.createElement(_allCourses.default, {
207
+ skillIncludedCourses: skillIncludedCourses,
208
+ filters: filters,
209
+ sorting: sorting
210
+ })));
211
+ };
212
+
213
+ SkillDetail.contextTypes = {
214
+ skin: _provider.default.childContextTypes.skin,
215
+ translate: _provider.default.childContextTypes.translate
216
+ };
217
+ SkillDetail.propTypes = process.env.NODE_ENV !== "production" ? {
218
+ title: _propTypes.default.string.isRequired,
219
+ description: _propTypes.default.string,
220
+ metrics: _propTypes.default.shape({
221
+ score: _propTypes.default.number,
222
+ content: _propTypes.default.number,
223
+ questionsToReview: _propTypes.default.number,
224
+ contentCompleted: _propTypes.default.number
225
+ }),
226
+ focused: _propTypes.default.bool,
227
+ availableForReview: _propTypes.default.bool,
228
+ ongoingCourses: _propTypes.default.shape(_cardsGrid.default.propTypes),
229
+ skillIncludedCourses: _propTypes.default.shape(_cardsGrid.default.propTypes),
230
+ filters: _propTypes.default.shape({
231
+ onChange: _propTypes.default.func,
232
+ options: _propTypes.default.arrayOf(_propTypes.default.shape(_select.SelectOptionPropTypes))
233
+ }),
234
+ sorting: _propTypes.default.shape(_select.default.propTypes),
235
+ onBackClick: _propTypes.default.func,
236
+ onReviewClick: _propTypes.default.func,
237
+ onContinueLearningClick: _propTypes.default.func
238
+ } : {};
239
+ var _default = SkillDetail;
240
+ exports.default = _default;
241
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["ContinueLearningButton","props","context","hovered","setHovered","useState","onClick","skin","translate","primarySkinColor","handleMouseOver","useCallback","handleMouseLeave","width","borderRadius","backgroundColor","convert","position","faIcon","name","color","size","contextTypes","Provider","childContextTypes","propTypes","PropTypes","func","SkillDetail","title","description","metrics","focused","availableForReview","ongoingCourses","skillIncludedCourses","filters","sorting","onBackClick","onReviewClick","onContinueLearningClick","score","content","questionsToReview","contentCompleted","showMore","setShowMore","handleShowMore","Description","classnames","style","truncate","ProgressBar","undefined","progressBarColor","inlineProgressValueStyle","progressBarWrapper","progress","backgroundContainer","container","backButtonWrapper","faSize","wrapperSize","ctaContainer","skillFocusBadge","length","showMoreWrapper","ctaWrapper","progressInformationsWrapper","progressTitle","skillCoursesAndQuestionsWrapper","skillInformation","skillInformationNumber","progressInformations","progressInformation","progressInformationNumber","string","isRequired","shape","number","bool","CardsGrid","onChange","options","arrayOf","SelectOptionPropTypes","Select"],"sources":["../../../src/template/skill-detail/index.js"],"sourcesContent":["import React, {useCallback, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Select, {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLink from '../../atom/button-link';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport style from './style.css';\nimport AllCourses from './all-courses';\nimport ContinueLearning from './continue-learning';\n\nconst ContinueLearningButton = (props, context) => {\n const [hovered, setHovered] = useState(false);\n const {onClick} = props;\n const {skin, translate} = context;\n const primarySkinColor = get('common.primary', skin);\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n return (\n <div onMouseOver={handleMouseOver} onMouseLeave={handleMouseLeave}>\n <ButtonLink\n label={translate('continue_learning')}\n type=\"primary\"\n customStyle={{\n width: 'fit-content',\n borderRadius: '12px',\n backgroundColor: hovered\n ? convert(`hsl(from ${primarySkinColor} h s calc(l*(1 - 0.08)))`)\n : primarySkinColor\n }}\n icon={{\n position: 'left',\n faIcon: {\n name: 'play',\n color: '#FFFFFF',\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 onClick: PropTypes.func\n};\n\nconst SkillDetail = (props, context) => {\n const {\n title,\n description,\n metrics,\n focused,\n availableForReview,\n ongoingCourses,\n skillIncludedCourses,\n filters,\n sorting,\n onBackClick,\n onReviewClick,\n onContinueLearningClick\n } = props;\n const {score, content, questionsToReview, contentCompleted = 0} = metrics;\n const {translate} = context;\n\n const [showMore, setShowMore] = useState(false);\n\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n const Description = useCallback(() => {\n return (\n <div className={classnames(style.description, !showMore && style.truncate)}>\n {description}\n </div>\n );\n });\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}>\n <div className={style.backButtonWrapper} onClick={onBackClick}>\n <Icon\n iconName=\"arrow-left\"\n size={{\n faSize: 14,\n wrapperSize: 14\n }}\n />\n </div>\n <div className={style.ctaContainer}>\n <div>\n {focused ? (\n <div className={style.skillFocusBadge}>\n <Icon\n iconName=\"bullseye-arrow\"\n backgroundColor=\"#DDD1FF\"\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 {description.length >= 226 ? (\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 onClick={onContinueLearningClick} />\n </div>\n </div>\n <div className={style.progressInformationsWrapper}>\n <div className={style.progressTitle}>{translate('your_progress')}</div>\n <div className={style.skillCoursesAndQuestionsWrapper}>\n {content ? (\n <div className={style.skillInformation} data-name=\"skill-courses\">\n <span className={style.skillInformationNumber}>{content}</span>{' '}\n {translate('courses')}\n </div>\n ) : null}\n {questionsToReview ? (\n <div className={style.skillInformation} data-name=\"skill-questions\">\n <span className={style.skillInformationNumber}>{questionsToReview}</span>\n &nbsp;{translate('questions')}\n </div>\n ) : null}\n </div>\n <ProgressBar />\n <div className={style.progressInformations}>\n {content && (\n <>\n <div className={style.progressInformation} data-name=\"skill-completed-courses\">\n <span className={style.progressInformationNumber}>{contentCompleted}</span>\n {` ${translate('courses_completed')}`}\n </div>\n <div className={style.progressInformation} data-name=\"completed-percentage\">\n <span className={style.progressInformationNumber}>{score}%</span>\n </div>\n </>\n )}\n </div>\n </div>\n <ContinueLearning ongoingCourses={ongoingCourses} />\n <AllCourses\n skillIncludedCourses={skillIncludedCourses}\n filters={filters}\n sorting={sorting}\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 description: PropTypes.string,\n metrics: PropTypes.shape({\n score: PropTypes.number,\n content: PropTypes.number,\n questionsToReview: PropTypes.number,\n contentCompleted: PropTypes.number\n }),\n focused: PropTypes.bool,\n availableForReview: PropTypes.bool,\n ongoingCourses: PropTypes.shape(CardsGrid.propTypes),\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};\n\nexport default SkillDetail;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,sBAAsB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACjD,MAAM,CAACC,OAAD,EAAUC,UAAV,IAAwB,IAAAC,eAAA,EAAS,KAAT,CAA9B;EACA,MAAM;IAACC;EAAD,I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AAV,CAAgBQ,eAAA,CAAO7D,SAAvB,CAjBa;EAkBtBa,WAAW,EAAEZ,kBAAA,CAAUC,IAlBD;EAmBtBY,aAAa,EAAEb,kBAAA,CAAUC,IAnBH;EAoBtBa,uBAAuB,EAAEd,kBAAA,CAAUC;AApBb,CAAxB;eAuBeC,W"}
@@ -0,0 +1,174 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value breakpoints: "../../variables/breakpoints.css";
3
+ @value tablet from breakpoints;
4
+ @value mobile from breakpoints;
5
+ @value xtraLightGrey from colors;
6
+ @value cm_grey_100 from colors;
7
+ @value cm_grey_200 from colors;
8
+ @value cm_grey_400 from colors;
9
+
10
+ .textBase {
11
+ font-family: "Gilroy";
12
+ font-style: normal;
13
+ }
14
+
15
+ .backgroundContainer {
16
+ background-color: white;
17
+ min-height: 100%;
18
+ width: 100%;
19
+ }
20
+
21
+ .container {
22
+ composes: textBase;
23
+ background-color: white;
24
+ font-family: "Gilroy";
25
+ font-style: normal;
26
+ margin-top: 48px;
27
+ margin-bottom: 48px;
28
+ margin-left: auto;
29
+ margin-right: auto;
30
+ padding: 0 16px;
31
+ position: relative;
32
+ box-sizing: border-box;
33
+ min-height: 100%;
34
+ width: 100%;
35
+ max-width: calc(1080px + 40px);
36
+ }
37
+
38
+ .backButtonWrapper {
39
+ margin-bottom: 16px;
40
+ background-color: cm_grey_100;
41
+ border-radius: 8px;
42
+ width: fit-content;
43
+ padding: 8px;
44
+ cursor: pointer;
45
+ }
46
+
47
+ .ctaContainer {
48
+ display: flex;
49
+ width: 100%;
50
+ justify-content: space-between;
51
+ }
52
+
53
+ .skillFocusBadge {
54
+ display: flex;
55
+ height: 12px;
56
+ width: fit-content;
57
+ align-items: center;
58
+ background-color: #DDD1FF;
59
+ border-radius: 24px;
60
+ padding: 4px 8px;
61
+ font-size: 12px;
62
+ line-height: 16px;
63
+ font-weight: 600;
64
+ color: #3900D6;
65
+ margin-bottom: 16px;
66
+ }
67
+
68
+ .ctaWrapper,
69
+ .showMoreWrapper {
70
+ display: flex;
71
+ gap: 8px;
72
+ }
73
+
74
+ .showMoreWrapper {
75
+ align-items: center;
76
+ margin-top: 8px;
77
+ font-weight: 600;
78
+ cursor: pointer;
79
+ }
80
+
81
+ .title {
82
+ font-size: 24px;
83
+ font-weight: 700;
84
+ line-height: 32px;
85
+ }
86
+
87
+ .description {
88
+ margin-top: 8px;
89
+ max-width: 734px;
90
+ font-size: 14px;
91
+ font-weight: 500;
92
+ line-height: 20px;
93
+ color: cm_grey_400;
94
+ }
95
+
96
+ .truncate {
97
+ display: -webkit-box;
98
+ -webkit-line-clamp: 2;
99
+ -webkit-box-orient: vertical;
100
+ overflow: hidden;
101
+ text-overflow: ellipsis;
102
+ }
103
+
104
+ .progressInformationsWrapper {
105
+ margin-top: 40px;
106
+ background-color: xtraLightGrey;
107
+ border-radius: 16px;
108
+ padding: 24px;
109
+ }
110
+
111
+ .progressTitle {
112
+ font-size: 16px;
113
+ font-weight: 600;
114
+ line-height: 22px;
115
+ margin-bottom: 16px;
116
+ }
117
+
118
+ .skillCoursesAndQuestionsWrapper,
119
+ .progressInformations {
120
+ display: flex;
121
+ justify-content: space-between;
122
+ margin-bottom: 8px;
123
+ }
124
+
125
+ .skillInformation,
126
+ .progressInformation {
127
+ composes: textBase;
128
+ font-weight: 600;
129
+ font-size: 14px;
130
+ line-height: 20px;
131
+ color: cm_grey_400;
132
+ }
133
+
134
+ .skillInformationNumber,
135
+ .progressInformationNumber {
136
+ color: #000;
137
+ }
138
+
139
+ .progressBarWrapper {
140
+ position: relative;
141
+ left: 0;
142
+ width: 100%;
143
+ height: 4px;
144
+ border-radius: 2px;
145
+ overflow: hidden;
146
+ background-color: cm_grey_100;
147
+ margin: 16px 0;
148
+ }
149
+
150
+ .progress {
151
+ display: block;
152
+ height: 8px;
153
+ animation: progressbar 2s ease-in-out;
154
+ }
155
+
156
+ @media tablet {
157
+ .ctaContainer {
158
+ flex-direction: column;
159
+ }
160
+
161
+ .ctaWrapper {
162
+ margin-top: 32px;
163
+ }
164
+ }
165
+
166
+ @media mobile {
167
+ .ctaWrapper {
168
+ flex-direction: column;
169
+
170
+ button {
171
+ width: 100% !important;
172
+ }
173
+ }
174
+ }
@@ -37,7 +37,7 @@ declare namespace TeamsDashboard {
37
37
  const sections: PropTypes.Requireable<(PropTypes.InferProps<{
38
38
  contentType: PropTypes.Requireable<string>;
39
39
  dataName: PropTypes.Requireable<string>;
40
- title: PropTypes.Requireable<string>;
40
+ title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
41
41
  showMore: PropTypes.Requireable<string>;
42
42
  cards: PropTypes.Requireable<(PropTypes.InferProps<{
43
43
  badge: PropTypes.Requireable<string>;
@@ -91,6 +91,7 @@ declare namespace TeamsDashboard {
91
91
  adaptive: PropTypes.Requireable<string>;
92
92
  }>>;
93
93
  }> | null | undefined)[]>;
94
+ customStyle: PropTypes.Requireable<object>;
94
95
  onScroll: PropTypes.Requireable<(...args: any[]) => any>;
95
96
  onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
96
97
  'arrows-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "all": "All",
3
+ "all_courses": "All courses",
3
4
  "accepted_cards": "Credit or debit card",
4
5
  "An Error Occurred": "An Error Occurred",
5
6
  "Answer": "Answer",
@@ -22,6 +23,7 @@
22
23
  "Create a new cohort": "Create a new cohort",
23
24
  "courses": "Courses",
24
25
  "courses_completed": "Courses completed",
26
+ "continue_learning": "Continue learning",
25
27
  "skills_change_focus": "Change skill focus",
26
28
  "skills_choose_focus": "Choose your focus",
27
29
  "cancel": "Cancel",
@@ -59,6 +61,7 @@
59
61
  "product_desc_culture": "Digital culture: All levels completed",
60
62
  "product_desc_forum": "Forum",
61
63
  "product_desc_partnership": "All training courses of our partners",
64
+ "your_progress": "Your progress",
62
65
  "Put back": "Put back",
63
66
  "Reject": "Reject",
64
67
  "Reload": "Reload",
@@ -66,12 +69,15 @@
66
69
  "Review lesson": "Review lesson",
67
70
  "search_place_holder": "Search...",
68
71
  "secured_payment": "Secure server",
72
+ "sort_by": "Sort by:",
69
73
  "See clue": "See clue",
70
74
  "See less": "See less",
71
75
  "See lesson": "See lesson",
72
76
  "Select a dashboard in the Sidebar": "Select a dashboard in the Sidebar",
73
77
  "Show more": "Show more",
78
+ "Show less": "Show less",
74
79
  "Show": "Show",
80
+ "show_completed": "Show completed",
75
81
  "Start battle": "Start battle",
76
82
  "skills_section_title": "Skills",
77
83
  "skills_section_description": "Explore or review skills",
@@ -127,6 +133,7 @@
127
133
  "invalid_scorm": "scorm file is not valid",
128
134
  "show_errors": "show errors"
129
135
  },
136
+ "review_this_skill": "Review this skill",
130
137
  "review_skill_empty": "You have no skill to revise yet",
131
138
  "review_skill_empty_description": "First you need to complete courses before you can review different skills.",
132
139
  "close_button_ariaLabel": "Close review slide",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.32.11",
3
+ "version": "11.32.12-alpha.3+11e5344eb",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -177,5 +177,5 @@
177
177
  "last 2 versions",
178
178
  "IE 11"
179
179
  ],
180
- "gitHead": "fc105a306cf838f85f8f6c58210257db27c51b32"
180
+ "gitHead": "11e5344eb7e2585740c7ba6f87410cf103d7093a"
181
181
  }