@coorpacademy/components 11.35.2-alpha.4 → 11.35.2-forcedeploy2.15

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 (282) 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 +35 -17
  5. package/es/atom/icon/index.d.ts.map +1 -1
  6. package/es/atom/icon/index.js +32 -15
  7. package/es/atom/icon/index.js.map +1 -1
  8. package/es/atom/radio-with-title/index.d.ts +13 -3
  9. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  10. package/es/atom/radio-with-title/types.d.ts +13 -2
  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 +12 -1
  15. package/es/atom/tag/style.css +1 -0
  16. package/es/atom/title/index.d.ts +13 -2
  17. package/es/molecule/banner/style.css +1 -0
  18. package/es/molecule/base-modal/style.css +0 -1
  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 +28 -7
  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 +2 -0
  29. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  30. package/es/molecule/learner-skill-card/index.d.ts +25 -40
  31. package/es/molecule/learner-skill-card/index.d.ts.map +1 -1
  32. package/es/molecule/learner-skill-card/index.js +95 -96
  33. package/es/molecule/learner-skill-card/index.js.map +1 -1
  34. package/es/molecule/learner-skill-card/prop-types.d.ts +37 -0
  35. package/es/molecule/learner-skill-card/prop-types.d.ts.map +1 -0
  36. package/es/molecule/learner-skill-card/prop-types.js +20 -0
  37. package/es/molecule/learner-skill-card/prop-types.js.map +1 -0
  38. package/es/molecule/learner-skill-card/style.css +62 -41
  39. package/es/molecule/learning-priority-modal/style.css +3 -2
  40. package/es/molecule/progress-wrapper/index.js +1 -1
  41. package/es/molecule/progress-wrapper/index.js.map +1 -1
  42. package/es/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  43. package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  44. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +13 -2
  45. package/es/molecule/title-radio-wrapper/index.d.ts +13 -3
  46. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  47. package/es/molecule/title-radio-wrapper/types.d.ts +13 -2
  48. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  49. package/es/organism/cards-grid/index.d.ts +48 -10
  50. package/es/organism/cards-grid/index.d.ts.map +1 -1
  51. package/es/organism/cards-grid/index.js +3 -2
  52. package/es/organism/cards-grid/index.js.map +1 -1
  53. package/es/organism/content-skill-modal/index.d.ts +13 -3
  54. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  55. package/es/organism/content-skill-modal/types.d.ts +12 -2
  56. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  57. package/es/organism/header-with-actions/index.d.ts +8 -22
  58. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  59. package/es/organism/header-with-actions/index.js +7 -85
  60. package/es/organism/header-with-actions/index.js.map +1 -1
  61. package/es/organism/header-with-actions/types.d.ts +13 -44
  62. package/es/organism/header-with-actions/types.d.ts.map +1 -1
  63. package/es/organism/header-with-actions/types.js +6 -22
  64. package/es/organism/header-with-actions/types.js.map +1 -1
  65. package/es/organism/list-item/index.js +5 -5
  66. package/es/organism/list-item/index.js.map +1 -1
  67. package/es/organism/list-item/style.css +23 -17
  68. package/es/organism/list-items/index.d.ts +13 -2
  69. package/es/organism/mooc-header/index.d.ts.map +1 -1
  70. package/es/organism/mooc-header/index.js +9 -7
  71. package/es/organism/mooc-header/index.js.map +1 -1
  72. package/es/organism/mooc-header/style.css +22 -18
  73. package/es/organism/rewards-form/index.d.ts +13 -2
  74. package/es/organism/select-opponents/index.d.ts +13 -3
  75. package/es/organism/select-opponents/index.d.ts.map +1 -1
  76. package/es/organism/select-opponents/types.d.ts +13 -2
  77. package/es/organism/select-opponents/types.d.ts.map +1 -1
  78. package/es/organism/sidebar/index.d.ts +2 -2
  79. package/es/organism/skill-edition/index.d.ts +37 -7
  80. package/es/organism/skill-edition/index.d.ts.map +1 -1
  81. package/es/organism/skill-edition/types.d.ts +37 -6
  82. package/es/organism/skill-edition/types.d.ts.map +1 -1
  83. package/es/organism/title-and-input/index.d.ts +25 -5
  84. package/es/organism/title-and-input/index.d.ts.map +1 -1
  85. package/es/organism/title-and-input/types.d.ts +24 -4
  86. package/es/organism/title-and-input/types.d.ts.map +1 -1
  87. package/es/organism/wizard-contents/index.d.ts +13 -2
  88. package/es/template/app-player/loading/index.d.ts +27 -6
  89. package/es/template/app-player/player/index.d.ts +53 -12
  90. package/es/template/app-player/player/slides/index.d.ts +27 -6
  91. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  92. package/es/template/app-player/popin-correction/index.d.ts +26 -6
  93. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  94. package/es/template/app-player/popin-end/index.d.ts +27 -6
  95. package/es/template/app-review/index.d.ts +27 -7
  96. package/es/template/app-review/index.d.ts.map +1 -1
  97. package/es/template/app-review/player/prop-types.d.ts +27 -6
  98. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  99. package/es/template/app-review/prop-types.d.ts +27 -6
  100. package/es/template/app-review/prop-types.d.ts.map +1 -1
  101. package/es/template/back-office/brand-update/index.d.ts +95 -38
  102. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  103. package/es/template/back-office/brand-update/index.js +2 -4
  104. package/es/template/back-office/brand-update/index.js.map +1 -1
  105. package/es/template/back-office/brand-update/style.css +1 -4
  106. package/es/template/back-office/brand-update/utils.d.ts +11 -39
  107. package/es/template/back-office/brand-update/utils.js +0 -19
  108. package/es/template/back-office/brand-update/utils.js.map +1 -1
  109. package/es/template/common/dashboard/index.d.ts +53 -12
  110. package/es/template/common/search-page/index.d.ts +27 -6
  111. package/es/template/external-course/index.d.ts +27 -6
  112. package/es/template/my-learning/index.d.ts +0 -1
  113. package/es/template/my-learning/index.d.ts.map +1 -1
  114. package/es/template/my-learning/index.js +26 -22
  115. package/es/template/my-learning/index.js.map +1 -1
  116. package/es/template/my-learning/style.css +9 -6
  117. package/es/template/skill-detail/all-courses.css +3 -2
  118. package/es/template/skill-detail/all-courses.d.ts +52 -17
  119. package/es/template/skill-detail/all-courses.d.ts.map +1 -1
  120. package/es/template/skill-detail/all-courses.js +12 -11
  121. package/es/template/skill-detail/all-courses.js.map +1 -1
  122. package/es/template/skill-detail/continue-learning.css +7 -2
  123. package/es/template/skill-detail/continue-learning.d.ts +25 -12
  124. package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
  125. package/es/template/skill-detail/continue-learning.js.map +1 -1
  126. package/es/template/skill-detail/index.d.ts +89 -71
  127. package/es/template/skill-detail/index.d.ts.map +1 -1
  128. package/es/template/skill-detail/index.js +99 -58
  129. package/es/template/skill-detail/index.js.map +1 -1
  130. package/es/template/skill-detail/style.css +97 -39
  131. package/es/variables/colors.css +10 -1
  132. package/es/variables/colors.d.ts +13 -3
  133. package/es/variables/colors.d.ts.map +1 -1
  134. package/es/variables/colors.js +13 -3
  135. package/es/variables/colors.js.map +1 -1
  136. package/es/variables/theme.native.js +1 -1
  137. package/es/variables/theme.native.js.map +1 -1
  138. package/lib/atom/button-link/index.js +1 -1
  139. package/lib/atom/button-link/index.js.map +1 -1
  140. package/lib/atom/button-link/style.css +2 -2
  141. package/lib/atom/icon/index.d.ts +35 -17
  142. package/lib/atom/icon/index.d.ts.map +1 -1
  143. package/lib/atom/icon/index.js +34 -18
  144. package/lib/atom/icon/index.js.map +1 -1
  145. package/lib/atom/radio-with-title/index.d.ts +13 -3
  146. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  147. package/lib/atom/radio-with-title/types.d.ts +13 -2
  148. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  149. package/lib/atom/status-item/index.native.js +1 -1
  150. package/lib/atom/status-item/index.native.js.map +1 -1
  151. package/lib/atom/tag/index.d.ts +12 -1
  152. package/lib/atom/tag/style.css +1 -0
  153. package/lib/atom/title/index.d.ts +13 -2
  154. package/lib/molecule/banner/style.css +1 -0
  155. package/lib/molecule/base-modal/style.css +0 -1
  156. package/lib/molecule/bulk-progress-bar/index.js +2 -2
  157. package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
  158. package/lib/molecule/certification-card/index.js +1 -1
  159. package/lib/molecule/certification-card/index.js.map +1 -1
  160. package/lib/molecule/cm-popin/types.d.ts +28 -7
  161. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  162. package/lib/molecule/cm-popin/types.js +1 -1
  163. package/lib/molecule/cm-popin/types.js.map +1 -1
  164. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  165. package/lib/molecule/dashboard/cards-list/index.js +2 -0
  166. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  167. package/lib/molecule/learner-skill-card/index.d.ts +25 -40
  168. package/lib/molecule/learner-skill-card/index.d.ts.map +1 -1
  169. package/lib/molecule/learner-skill-card/index.js +98 -96
  170. package/lib/molecule/learner-skill-card/index.js.map +1 -1
  171. package/lib/molecule/learner-skill-card/prop-types.d.ts +37 -0
  172. package/lib/molecule/learner-skill-card/prop-types.d.ts.map +1 -0
  173. package/lib/molecule/learner-skill-card/prop-types.js +25 -0
  174. package/lib/molecule/learner-skill-card/prop-types.js.map +1 -0
  175. package/lib/molecule/learner-skill-card/style.css +62 -41
  176. package/lib/molecule/learning-priority-modal/style.css +3 -2
  177. package/lib/molecule/progress-wrapper/index.js +1 -1
  178. package/lib/molecule/progress-wrapper/index.js.map +1 -1
  179. package/lib/molecule/skills-chart-side-information-item/index.d.ts +1 -1
  180. package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
  181. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +13 -2
  182. package/lib/molecule/title-radio-wrapper/index.d.ts +13 -3
  183. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  184. package/lib/molecule/title-radio-wrapper/types.d.ts +13 -2
  185. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  186. package/lib/organism/cards-grid/index.d.ts +48 -10
  187. package/lib/organism/cards-grid/index.d.ts.map +1 -1
  188. package/lib/organism/cards-grid/index.js +3 -2
  189. package/lib/organism/cards-grid/index.js.map +1 -1
  190. package/lib/organism/content-skill-modal/index.d.ts +13 -3
  191. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  192. package/lib/organism/content-skill-modal/types.d.ts +12 -2
  193. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  194. package/lib/organism/header-with-actions/index.d.ts +8 -22
  195. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  196. package/lib/organism/header-with-actions/index.js +7 -85
  197. package/lib/organism/header-with-actions/index.js.map +1 -1
  198. package/lib/organism/header-with-actions/types.d.ts +13 -44
  199. package/lib/organism/header-with-actions/types.d.ts.map +1 -1
  200. package/lib/organism/header-with-actions/types.js +6 -22
  201. package/lib/organism/header-with-actions/types.js.map +1 -1
  202. package/lib/organism/list-item/index.js +5 -5
  203. package/lib/organism/list-item/index.js.map +1 -1
  204. package/lib/organism/list-item/style.css +23 -17
  205. package/lib/organism/list-items/index.d.ts +13 -2
  206. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  207. package/lib/organism/mooc-header/index.js +8 -6
  208. package/lib/organism/mooc-header/index.js.map +1 -1
  209. package/lib/organism/mooc-header/style.css +22 -18
  210. package/lib/organism/rewards-form/index.d.ts +13 -2
  211. package/lib/organism/select-opponents/index.d.ts +13 -3
  212. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  213. package/lib/organism/select-opponents/types.d.ts +13 -2
  214. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  215. package/lib/organism/sidebar/index.d.ts +2 -2
  216. package/lib/organism/skill-edition/index.d.ts +37 -7
  217. package/lib/organism/skill-edition/index.d.ts.map +1 -1
  218. package/lib/organism/skill-edition/types.d.ts +37 -6
  219. package/lib/organism/skill-edition/types.d.ts.map +1 -1
  220. package/lib/organism/title-and-input/index.d.ts +25 -5
  221. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  222. package/lib/organism/title-and-input/types.d.ts +24 -4
  223. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  224. package/lib/organism/wizard-contents/index.d.ts +13 -2
  225. package/lib/template/app-player/loading/index.d.ts +27 -6
  226. package/lib/template/app-player/player/index.d.ts +53 -12
  227. package/lib/template/app-player/player/slides/index.d.ts +27 -6
  228. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  229. package/lib/template/app-player/popin-correction/index.d.ts +26 -6
  230. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  231. package/lib/template/app-player/popin-end/index.d.ts +27 -6
  232. package/lib/template/app-review/index.d.ts +27 -7
  233. package/lib/template/app-review/index.d.ts.map +1 -1
  234. package/lib/template/app-review/player/prop-types.d.ts +27 -6
  235. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  236. package/lib/template/app-review/prop-types.d.ts +27 -6
  237. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  238. package/lib/template/back-office/brand-update/index.d.ts +95 -38
  239. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  240. package/lib/template/back-office/brand-update/index.js +2 -4
  241. package/lib/template/back-office/brand-update/index.js.map +1 -1
  242. package/lib/template/back-office/brand-update/style.css +1 -4
  243. package/lib/template/back-office/brand-update/utils.d.ts +11 -39
  244. package/lib/template/back-office/brand-update/utils.js +0 -19
  245. package/lib/template/back-office/brand-update/utils.js.map +1 -1
  246. package/lib/template/common/dashboard/index.d.ts +53 -12
  247. package/lib/template/common/search-page/index.d.ts +27 -6
  248. package/lib/template/external-course/index.d.ts +27 -6
  249. package/lib/template/my-learning/index.d.ts +0 -1
  250. package/lib/template/my-learning/index.d.ts.map +1 -1
  251. package/lib/template/my-learning/index.js +26 -22
  252. package/lib/template/my-learning/index.js.map +1 -1
  253. package/lib/template/my-learning/style.css +9 -6
  254. package/lib/template/skill-detail/all-courses.css +3 -2
  255. package/lib/template/skill-detail/all-courses.d.ts +52 -17
  256. package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
  257. package/lib/template/skill-detail/all-courses.js +11 -11
  258. package/lib/template/skill-detail/all-courses.js.map +1 -1
  259. package/lib/template/skill-detail/continue-learning.css +7 -2
  260. package/lib/template/skill-detail/continue-learning.d.ts +25 -12
  261. package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
  262. package/lib/template/skill-detail/continue-learning.js.map +1 -1
  263. package/lib/template/skill-detail/index.d.ts +89 -71
  264. package/lib/template/skill-detail/index.d.ts.map +1 -1
  265. package/lib/template/skill-detail/index.js +99 -58
  266. package/lib/template/skill-detail/index.js.map +1 -1
  267. package/lib/template/skill-detail/style.css +97 -39
  268. package/lib/variables/colors.css +10 -1
  269. package/lib/variables/colors.d.ts +13 -3
  270. package/lib/variables/colors.d.ts.map +1 -1
  271. package/lib/variables/colors.js +13 -3
  272. package/lib/variables/colors.js.map +1 -1
  273. package/lib/variables/theme.native.js +1 -1
  274. package/lib/variables/theme.native.js.map +1 -1
  275. package/locales/cs/global.json +1 -0
  276. package/locales/en/global.json +1 -0
  277. package/locales/hr/global.json +1 -0
  278. package/locales/it/global.json +1 -0
  279. package/locales/ko/global.json +1 -0
  280. package/locales/ru/global.json +1 -0
  281. package/package.json +2 -2
  282. package/locales/.mtslconfig.json +0 -1
@@ -19,7 +19,7 @@ declare namespace Dashboard {
19
19
  'data-name': PropTypes.Requireable<string>;
20
20
  titleSize: PropTypes.Requireable<string>;
21
21
  subtitleSize: PropTypes.Requireable<string>;
22
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
22
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
23
23
  tag: PropTypes.Requireable<PropTypes.InferProps<{
24
24
  label: PropTypes.Requireable<string>;
25
25
  type: PropTypes.Requireable<string>;
@@ -27,7 +27,17 @@ declare namespace Dashboard {
27
27
  customStyle: PropTypes.Requireable<{
28
28
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
29
29
  }>;
30
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
30
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
31
+ position: PropTypes.Requireable<string>;
32
+ iconName?: React.Validator<string> | undefined;
33
+ iconColor?: React.Validator<string | null | undefined> | undefined;
34
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
35
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
36
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
37
+ preset?: React.Validator<string | null | undefined> | undefined;
38
+ size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
39
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
40
+ }>>;
31
41
  }>>;
32
42
  button: PropTypes.Requireable<PropTypes.InferProps<{
33
43
  type: PropTypes.Requireable<string>;
@@ -114,8 +124,8 @@ declare namespace Dashboard {
114
124
  borderRadius: PropTypes.Requireable<string>;
115
125
  preset: PropTypes.Requireable<string>;
116
126
  size: PropTypes.Requireable<PropTypes.InferProps<{
117
- faSize: PropTypes.Requireable<number>;
118
- wrapperSize: PropTypes.Requireable<number>;
127
+ faSize: PropTypes.Validator<number>;
128
+ wrapperSize: PropTypes.Validator<number>;
119
129
  }>>;
120
130
  customStyle: PropTypes.Requireable<{
121
131
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
@@ -553,7 +563,7 @@ declare namespace Dashboard {
553
563
  'data-name': PropTypes.Requireable<string>;
554
564
  titleSize: PropTypes.Requireable<string>;
555
565
  subtitleSize: PropTypes.Requireable<string>;
556
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
566
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
557
567
  tag: PropTypes.Requireable<PropTypes.InferProps<{
558
568
  label: PropTypes.Requireable<string>;
559
569
  type: PropTypes.Requireable<string>;
@@ -561,7 +571,17 @@ declare namespace Dashboard {
561
571
  customStyle: PropTypes.Requireable<{
562
572
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
563
573
  }>;
564
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
574
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
575
+ position: PropTypes.Requireable<string>;
576
+ iconName?: React.Validator<string> | undefined;
577
+ iconColor?: React.Validator<string | null | undefined> | undefined;
578
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
579
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
580
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
581
+ preset?: React.Validator<string | null | undefined> | undefined;
582
+ size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
583
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
584
+ }>>;
565
585
  }>>;
566
586
  button: PropTypes.Requireable<PropTypes.InferProps<{
567
587
  type: PropTypes.Requireable<string>;
@@ -776,7 +796,7 @@ declare namespace Dashboard {
776
796
  'data-name': PropTypes.Requireable<string>;
777
797
  titleSize: PropTypes.Requireable<string>;
778
798
  subtitleSize: PropTypes.Requireable<string>;
779
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
799
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
780
800
  tag: PropTypes.Requireable<PropTypes.InferProps<{
781
801
  label: PropTypes.Requireable<string>;
782
802
  type: PropTypes.Requireable<string>;
@@ -784,7 +804,17 @@ declare namespace Dashboard {
784
804
  customStyle: PropTypes.Requireable<{
785
805
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
786
806
  }>;
787
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
807
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
808
+ position: PropTypes.Requireable<string>;
809
+ iconName?: React.Validator<string> | undefined;
810
+ iconColor?: React.Validator<string | null | undefined> | undefined;
811
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
812
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
813
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
814
+ preset?: React.Validator<string | null | undefined> | undefined;
815
+ size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
816
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
817
+ }>>;
788
818
  }>>;
789
819
  button: PropTypes.Requireable<PropTypes.InferProps<{
790
820
  type: PropTypes.Requireable<string>;
@@ -871,8 +901,8 @@ declare namespace Dashboard {
871
901
  borderRadius: PropTypes.Requireable<string>;
872
902
  preset: PropTypes.Requireable<string>;
873
903
  size: PropTypes.Requireable<PropTypes.InferProps<{
874
- faSize: PropTypes.Requireable<number>;
875
- wrapperSize: PropTypes.Requireable<number>;
904
+ faSize: PropTypes.Validator<number>;
905
+ wrapperSize: PropTypes.Validator<number>;
876
906
  }>>;
877
907
  customStyle: PropTypes.Requireable<{
878
908
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
@@ -1310,7 +1340,7 @@ declare namespace Dashboard {
1310
1340
  'data-name': PropTypes.Requireable<string>;
1311
1341
  titleSize: PropTypes.Requireable<string>;
1312
1342
  subtitleSize: PropTypes.Requireable<string>;
1313
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
1343
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
1314
1344
  tag: PropTypes.Requireable<PropTypes.InferProps<{
1315
1345
  label: PropTypes.Requireable<string>;
1316
1346
  type: PropTypes.Requireable<string>;
@@ -1318,7 +1348,17 @@ declare namespace Dashboard {
1318
1348
  customStyle: PropTypes.Requireable<{
1319
1349
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1320
1350
  }>;
1321
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
1351
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
1352
+ position: PropTypes.Requireable<string>;
1353
+ iconName?: React.Validator<string> | undefined;
1354
+ iconColor?: React.Validator<string | null | undefined> | undefined;
1355
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
1356
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
1357
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
1358
+ preset?: React.Validator<string | null | undefined> | undefined;
1359
+ size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
1360
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
1361
+ }>>;
1322
1362
  }>>;
1323
1363
  button: PropTypes.Requireable<PropTypes.InferProps<{
1324
1364
  type: PropTypes.Requireable<string>;
@@ -1521,4 +1561,5 @@ declare namespace Dashboard {
1521
1561
  };
1522
1562
  }
1523
1563
  import PropTypes from "prop-types";
1564
+ import React from "react";
1524
1565
  //# sourceMappingURL=index.d.ts.map
@@ -200,7 +200,7 @@ declare namespace SearchPage {
200
200
  'data-name': PropTypes.Requireable<string>;
201
201
  titleSize: PropTypes.Requireable<string>;
202
202
  subtitleSize: PropTypes.Requireable<string>;
203
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
203
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
204
204
  tag: PropTypes.Requireable<PropTypes.InferProps<{
205
205
  label: PropTypes.Requireable<string>;
206
206
  type: PropTypes.Requireable<string>;
@@ -208,7 +208,17 @@ declare namespace SearchPage {
208
208
  customStyle: PropTypes.Requireable<{
209
209
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
210
210
  }>;
211
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
211
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
212
+ position: PropTypes.Requireable<string>;
213
+ iconName?: React.Validator<string> | undefined;
214
+ iconColor?: React.Validator<string | null | undefined> | undefined;
215
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
216
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
217
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
218
+ preset?: React.Validator<string | null | undefined> | undefined;
219
+ size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
220
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
221
+ }>>;
212
222
  }>>;
213
223
  button: PropTypes.Requireable<PropTypes.InferProps<{
214
224
  type: PropTypes.Requireable<string>;
@@ -295,8 +305,8 @@ declare namespace SearchPage {
295
305
  borderRadius: PropTypes.Requireable<string>;
296
306
  preset: PropTypes.Requireable<string>;
297
307
  size: PropTypes.Requireable<PropTypes.InferProps<{
298
- faSize: PropTypes.Requireable<number>;
299
- wrapperSize: PropTypes.Requireable<number>;
308
+ faSize: PropTypes.Validator<number>;
309
+ wrapperSize: PropTypes.Validator<number>;
300
310
  }>>;
301
311
  customStyle: PropTypes.Requireable<{
302
312
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
@@ -734,7 +744,7 @@ declare namespace SearchPage {
734
744
  'data-name': PropTypes.Requireable<string>;
735
745
  titleSize: PropTypes.Requireable<string>;
736
746
  subtitleSize: PropTypes.Requireable<string>;
737
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
747
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
738
748
  tag: PropTypes.Requireable<PropTypes.InferProps<{
739
749
  label: PropTypes.Requireable<string>;
740
750
  type: PropTypes.Requireable<string>;
@@ -742,7 +752,17 @@ declare namespace SearchPage {
742
752
  customStyle: PropTypes.Requireable<{
743
753
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
744
754
  }>;
745
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
755
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
756
+ position: PropTypes.Requireable<string>;
757
+ iconName?: React.Validator<string> | undefined;
758
+ iconColor?: React.Validator<string | null | undefined> | undefined;
759
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
760
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
761
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
762
+ preset?: React.Validator<string | null | undefined> | undefined;
763
+ size?: React.Validator<import("../../../atom/icon").IconSize | null | undefined> | undefined;
764
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
765
+ }>>;
746
766
  }>>;
747
767
  button: PropTypes.Requireable<PropTypes.InferProps<{
748
768
  type: PropTypes.Requireable<string>;
@@ -945,4 +965,5 @@ declare namespace SearchPage {
945
965
  }
946
966
  }
947
967
  import PropTypes from "prop-types";
968
+ import React from "react";
948
969
  //# sourceMappingURL=index.d.ts.map
@@ -37,7 +37,7 @@ declare namespace ExternalCourse {
37
37
  'data-name': PropTypes.Requireable<string>;
38
38
  titleSize: PropTypes.Requireable<string>;
39
39
  subtitleSize: PropTypes.Requireable<string>;
40
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
40
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
41
41
  tag: PropTypes.Requireable<PropTypes.InferProps<{
42
42
  label: PropTypes.Requireable<string>;
43
43
  type: PropTypes.Requireable<string>;
@@ -45,7 +45,17 @@ declare namespace ExternalCourse {
45
45
  customStyle: PropTypes.Requireable<{
46
46
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
47
47
  }>;
48
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
48
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
49
+ position: PropTypes.Requireable<string>;
50
+ iconName?: React.Validator<string> | undefined;
51
+ iconColor?: React.Validator<string | null | undefined> | undefined;
52
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
53
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
54
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
55
+ preset?: React.Validator<string | null | undefined> | undefined;
56
+ size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
57
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
58
+ }>>;
49
59
  }>>;
50
60
  button: PropTypes.Requireable<PropTypes.InferProps<{
51
61
  type: PropTypes.Requireable<string>;
@@ -132,8 +142,8 @@ declare namespace ExternalCourse {
132
142
  borderRadius: PropTypes.Requireable<string>;
133
143
  preset: PropTypes.Requireable<string>;
134
144
  size: PropTypes.Requireable<PropTypes.InferProps<{
135
- faSize: PropTypes.Requireable<number>;
136
- wrapperSize: PropTypes.Requireable<number>;
145
+ faSize: PropTypes.Validator<number>;
146
+ wrapperSize: PropTypes.Validator<number>;
137
147
  }>>;
138
148
  customStyle: PropTypes.Requireable<{
139
149
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
@@ -571,7 +581,7 @@ declare namespace ExternalCourse {
571
581
  'data-name': PropTypes.Requireable<string>;
572
582
  titleSize: PropTypes.Requireable<string>;
573
583
  subtitleSize: PropTypes.Requireable<string>;
574
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
584
+ icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
575
585
  tag: PropTypes.Requireable<PropTypes.InferProps<{
576
586
  label: PropTypes.Requireable<string>;
577
587
  type: PropTypes.Requireable<string>;
@@ -579,7 +589,17 @@ declare namespace ExternalCourse {
579
589
  customStyle: PropTypes.Requireable<{
580
590
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
581
591
  }>;
582
- icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
592
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
593
+ position: PropTypes.Requireable<string>;
594
+ iconName?: React.Validator<string> | undefined;
595
+ iconColor?: React.Validator<string | null | undefined> | undefined;
596
+ backgroundColor?: React.Validator<string | null | undefined> | undefined;
597
+ gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
598
+ borderRadius?: React.Validator<string | null | undefined> | undefined;
599
+ preset?: React.Validator<string | null | undefined> | undefined;
600
+ size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
601
+ customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
602
+ }>>;
583
603
  }>>;
584
604
  button: PropTypes.Requireable<PropTypes.InferProps<{
585
605
  type: PropTypes.Requireable<string>;
@@ -805,4 +825,5 @@ declare namespace ExternalCourse {
805
825
  }
806
826
  }
807
827
  import PropTypes from "prop-types";
828
+ import React from "react";
808
829
  //# sourceMappingURL=index.d.ts.map
@@ -46,7 +46,6 @@ declare namespace MyLearning {
46
46
  const learnerFeature: PropTypes.Requireable<boolean>;
47
47
  const isLoading: PropTypes.Requireable<boolean>;
48
48
  const onSkillFocusConfirm: PropTypes.Requireable<(...args: any[]) => any>;
49
- const onReviewSkill: PropTypes.Requireable<(...args: any[]) => any>;
50
49
  const onExploreSkill: PropTypes.Requireable<(...args: any[]) => any>;
51
50
  const learningPriorities: PropTypes.Requireable<PropTypes.InferProps<{
52
51
  contentType: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-learning/index.js"],"names":[],"mappings":";AAgHA,mEA+ZC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-learning/index.js"],"names":[],"mappings":";AAmHA,mEAwZC"}
@@ -27,7 +27,9 @@ import searchValueIncluded from '../../util/search-value-included';
27
27
  import { formatMinutes } from '../../util/time-format';
28
28
  import CardsList from '../../molecule/dashboard/cards-list';
29
29
  import Title from '../../atom/title';
30
+ import { COLORS } from '../../variables/colors';
30
31
  import style from './style.css';
32
+ const roundScore = value => Math.round(value * 10) / 10;
31
33
  const ChangeSkillFocusButton = (props, context) => {
32
34
  const {
33
35
  onClick
@@ -46,7 +48,7 @@ const ChangeSkillFocusButton = (props, context) => {
46
48
  transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
47
49
  },
48
50
  hoverBackgroundColor: primarySkinColor,
49
- hoverColor: "#FFFFFF",
51
+ hoverColor: COLORS.white,
50
52
  onClick: onClick,
51
53
  label: translate('skills_change_focus'),
52
54
  "data-name": "change-skill-focus-button",
@@ -82,14 +84,14 @@ const FilterButton = (props, context) => {
82
84
  const Content = useCallback(() => /*#__PURE__*/React.createElement("div", null, filter, /*#__PURE__*/React.createElement("span", {
83
85
  className: active ? style.skillFilterNumber : style.skillFilterNumberInActive,
84
86
  style: {
85
- backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : '#EAEAEB',
86
- color: active ? primarySkinColor : '#515161'
87
+ backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : COLORS.gray,
88
+ color: active ? primarySkinColor : COLORS.cm_grey_500
87
89
  }
88
90
  }, skillTotal)), [filter, skillTotal, active, primarySkinColor]);
89
91
  const buttonProps = {
90
92
  customStyle: {
91
- backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : '#FFFFFF',
92
- color: active ? primarySkinColor : '#9999A8',
93
+ backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : COLORS.white,
94
+ color: active ? primarySkinColor : COLORS.cm_grey_400,
93
95
  transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',
94
96
  width: 'fit-content'
95
97
  },
@@ -118,7 +120,6 @@ const MyLearning = (props, context) => {
118
120
  learnerFeature = true,
119
121
  isLoading,
120
122
  onSkillFocusConfirm,
121
- onReviewSkill,
122
123
  onExploreSkill,
123
124
  learningPriorities
124
125
  } = props;
@@ -136,7 +137,7 @@ const MyLearning = (props, context) => {
136
137
  const skillsReviewReady = useMemo(() => {
137
138
  return searchResults.filter(skill => skillsInformation[skill] ? skillsInformation[skill].availableForReview : false);
138
139
  }, [searchResults, skillsInformation]);
139
- const graphDatas = useMemo(() => _pipe(_map(skill => [skill, _getOr(0, [skill, 'stats', 'score'], skillsInformation).toFixed(1)]), _fromPairs)(selectedSkillsList), [selectedSkillsList, skillsInformation]);
140
+ const graphDatas = useMemo(() => _pipe(_map(skill => [skill, roundScore(_getOr(0, [skill, 'stats', 'score'], skillsInformation))]), _fromPairs)(selectedSkillsList), [selectedSkillsList, skillsInformation]);
140
141
  const graphLegends = useMemo(() => _pipe(_map(skill => [skill, skillsLocales[skill]]), _fromPairs)(selectedSkillsList), [selectedSkillsList, skillsLocales]);
141
142
  const filters = useMemo(() => {
142
143
  return {
@@ -160,7 +161,7 @@ const MyLearning = (props, context) => {
160
161
  legend: skillChartPaneLegends,
161
162
  icon: {
162
163
  iconName: 'book-open-cover',
163
- backgroundColor: '#D9F4F7'
164
+ backgroundColor: COLORS.turquoise_100
164
165
  }
165
166
  }, {
166
167
  title: translate('skill_chart_side_panel_learning_hours'),
@@ -168,7 +169,7 @@ const MyLearning = (props, context) => {
168
169
  legend: skillChartPaneLegends,
169
170
  icon: {
170
171
  iconName: 'clock',
171
- backgroundColor: '#FAD6DE'
172
+ backgroundColor: COLORS.pink_100
172
173
  }
173
174
  }, {
174
175
  title: translate('skill_chart_side_panel_questions_to_review'),
@@ -176,7 +177,7 @@ const MyLearning = (props, context) => {
176
177
  legend: skillChartPaneLegends,
177
178
  icon: {
178
179
  iconName: 'circle-question',
179
- backgroundColor: '#FFDCD1'
180
+ backgroundColor: COLORS.orange_100
180
181
  }
181
182
  }];
182
183
  const skillsScore = useMemo(() => _pipe(_map(skill => [skill, _getOr(0, [skill, 'stats', 'score'], skillsInformation)]), _fromPairs)(skills), [skills, skillsInformation]);
@@ -210,9 +211,9 @@ const MyLearning = (props, context) => {
210
211
  subtitle: translate('learning_priorities_description'),
211
212
  icon: {
212
213
  iconName: 'sign-post',
213
- iconColor: '#A32700',
214
+ iconColor: COLORS.cm_orange_800,
214
215
  borderRadius: '12px',
215
- backgroundColor: '#FFDCD1'
216
+ backgroundColor: COLORS.orange_100
216
217
  },
217
218
  tag: {
218
219
  label: `${_size(learningPriorities.cards)}`,
@@ -243,7 +244,7 @@ const MyLearning = (props, context) => {
243
244
  className: style.skillFocusHeaderIcon
244
245
  }, /*#__PURE__*/React.createElement(Icon, {
245
246
  iconName: "bullseye-arrow",
246
- backgroundColor: "#DDD1FF",
247
+ backgroundColor: COLORS.purple_100,
247
248
  borderRadius: "12px",
248
249
  size: {
249
250
  faSize: 20,
@@ -311,7 +312,7 @@ const MyLearning = (props, context) => {
311
312
  className: style.skillListHeaderIcon
312
313
  }, /*#__PURE__*/React.createElement(Icon, {
313
314
  iconName: "dumbbell",
314
- backgroundColor: "#FFF9D1",
315
+ backgroundColor: COLORS.yellow_100,
315
316
  size: {
316
317
  faSize: 20,
317
318
  wrapperSize: 48
@@ -366,7 +367,7 @@ const MyLearning = (props, context) => {
366
367
  onClick: handleSearchReset
367
368
  }, translate('empty_search_result_clear_search'))) : /*#__PURE__*/React.createElement("div", {
368
369
  className: style.skillListContainer
369
- }, activeFilter === 'review_mode_available' && filters[activeFilter].length === 0 ? /*#__PURE__*/React.createElement("div", {
370
+ }, activeFilter === 'review' && filters[activeFilter].length === 0 ? /*#__PURE__*/React.createElement("div", {
370
371
  className: style.skillListEmptyContainer
371
372
  }, /*#__PURE__*/React.createElement(ReviewNoSkills, {
372
373
  titleNoSkills: translate('review_skill_empty'),
@@ -380,9 +381,6 @@ const MyLearning = (props, context) => {
380
381
  contentCompleted: 0,
381
382
  questionsToReview: 0
382
383
  };
383
- function handleReviewSkill() {
384
- onReviewSkill(skill);
385
- }
386
384
  function handleExploreSkill() {
387
385
  onExploreSkill(skill);
388
386
  }
@@ -391,18 +389,25 @@ const MyLearning = (props, context) => {
391
389
  content,
392
390
  questionsToReview
393
391
  } = skillsInformation[skill] ? skillsInformation[skill].stats : defaultStats;
392
+ const {
393
+ color,
394
+ name
395
+ } = _get([skill, 'icon'], skillsInformation);
394
396
  return /*#__PURE__*/React.createElement("div", {
395
397
  key: index
396
398
  }, /*#__PURE__*/React.createElement(LearnerSkillCard, {
397
399
  skillTitle: skillsLocales[skill],
400
+ cardIndex: index,
398
401
  focus: selectedSkills.includes(skill),
399
402
  metrics: {
400
- score: score.toFixed(1),
403
+ score,
401
404
  content,
402
405
  questionsToReview
403
406
  },
404
- review: skillsInformation[skill] ? skillsInformation[skill].availableForReview : false,
405
- onReviewClick: handleReviewSkill,
407
+ icon: {
408
+ color,
409
+ name
410
+ },
406
411
  onExploreClick: handleExploreSkill
407
412
  }));
408
413
  }))));
@@ -428,7 +433,6 @@ MyLearning.propTypes = process.env.NODE_ENV !== "production" ? {
428
433
  learnerFeature: PropTypes.bool,
429
434
  isLoading: PropTypes.bool,
430
435
  onSkillFocusConfirm: PropTypes.func,
431
- onReviewSkill: PropTypes.func,
432
436
  onExploreSkill: PropTypes.func,
433
437
  learningPriorities: PropTypes.shape(CardsList.propTypes)
434
438
  } : {};