@coorpacademy/components 11.32.43 → 11.32.44-alpha.55

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 (175) hide show
  1. package/es/atom/button-link/index.d.ts.map +1 -1
  2. package/es/atom/button-link/index.js +12 -6
  3. package/es/atom/button-link/index.js.map +1 -1
  4. package/es/atom/cta/index.js +2 -2
  5. package/es/atom/cta/index.js.map +1 -1
  6. package/es/atom/icon/index.d.ts +1 -0
  7. package/es/atom/icon/index.d.ts.map +1 -1
  8. package/es/atom/icon/index.js +8 -1
  9. package/es/atom/icon/index.js.map +1 -1
  10. package/es/atom/input-file-draggable/index.js +2 -2
  11. package/es/atom/input-file-draggable/index.js.map +1 -1
  12. package/es/atom/link/index.d.ts +2 -2
  13. package/es/atom/link/index.d.ts.map +1 -1
  14. package/es/atom/link/index.js +38 -46
  15. package/es/atom/link/index.js.map +1 -1
  16. package/es/molecule/banner/index.js +3 -3
  17. package/es/molecule/banner/index.js.map +1 -1
  18. package/es/molecule/certification-card/index.d.ts +4 -0
  19. package/es/molecule/certification-card/index.d.ts.map +1 -1
  20. package/es/molecule/certification-card/index.js +14 -10
  21. package/es/molecule/certification-card/index.js.map +1 -1
  22. package/es/molecule/cm-popin/types.d.ts +14 -2
  23. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  24. package/es/molecule/draggable-list/index.d.ts +12 -0
  25. package/es/molecule/progress-wrapper/index.d.ts.map +1 -1
  26. package/es/molecule/progress-wrapper/index.js +21 -11
  27. package/es/molecule/progress-wrapper/index.js.map +1 -1
  28. package/es/organism/accordion/coorp-manager/part/index.js +2 -1
  29. package/es/organism/accordion/coorp-manager/part/index.js.map +1 -1
  30. package/es/organism/brand-learning-priorities/index.d.ts +12 -0
  31. package/es/organism/list-item/index.d.ts +16 -1
  32. package/es/organism/list-item/index.d.ts.map +1 -1
  33. package/es/organism/list-item/index.js +58 -9
  34. package/es/organism/list-item/index.js.map +1 -1
  35. package/es/organism/list-item/style.css +25 -11
  36. package/es/organism/list-items/index.d.ts +12 -0
  37. package/es/organism/mooc-header/index.d.ts.map +1 -1
  38. package/es/organism/mooc-header/index.js +2 -3
  39. package/es/organism/mooc-header/index.js.map +1 -1
  40. package/es/organism/sidebar/index.d.ts +28 -3
  41. package/es/organism/sidebar/index.d.ts.map +1 -1
  42. package/es/organism/sidebar/index.js +7 -3
  43. package/es/organism/sidebar/index.js.map +1 -1
  44. package/es/template/app-player/loading/index.d.ts +14 -2
  45. package/es/template/app-player/player/index.d.ts +28 -4
  46. package/es/template/app-player/player/slides/index.d.ts +14 -2
  47. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  48. package/es/template/app-player/popin-correction/index.d.ts +18 -6
  49. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  50. package/es/template/app-player/popin-end/index.d.ts +16 -4
  51. package/es/template/app-player/popin-end/summary.d.ts +2 -2
  52. package/es/template/app-player/popin-header/index.d.ts +2 -2
  53. package/es/template/app-review/index.d.ts +14 -2
  54. package/es/template/app-review/index.d.ts.map +1 -1
  55. package/es/template/app-review/player/prop-types.d.ts +14 -2
  56. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  57. package/es/template/app-review/prop-types.d.ts +14 -2
  58. package/es/template/app-review/prop-types.d.ts.map +1 -1
  59. package/es/template/back-office/brand-update/index.d.ts +38 -2
  60. package/es/template/certification-detail/index.d.ts +1 -0
  61. package/es/template/certification-detail/index.d.ts.map +1 -1
  62. package/es/template/certification-detail/index.js +3 -1
  63. package/es/template/certification-detail/index.js.map +1 -1
  64. package/es/template/certifications/index.d.ts +6 -0
  65. package/es/template/certifications/index.d.ts.map +1 -1
  66. package/es/template/certifications/index.js +26 -12
  67. package/es/template/certifications/index.js.map +1 -1
  68. package/es/template/common/dashboard/index.d.ts +28 -4
  69. package/es/template/common/search-page/index.d.ts +14 -2
  70. package/es/template/external-course/index.d.ts +14 -2
  71. package/es/template/skill-detail/index.d.ts +1 -1
  72. package/es/template/skill-detail/index.d.ts.map +1 -1
  73. package/es/template/skill-detail/index.js +5 -5
  74. package/es/template/skill-detail/index.js.map +1 -1
  75. package/lib/atom/button-link/index.d.ts.map +1 -1
  76. package/lib/atom/button-link/index.js +12 -6
  77. package/lib/atom/button-link/index.js.map +1 -1
  78. package/lib/atom/cta/index.js +2 -2
  79. package/lib/atom/cta/index.js.map +1 -1
  80. package/lib/atom/icon/index.d.ts +1 -0
  81. package/lib/atom/icon/index.d.ts.map +1 -1
  82. package/lib/atom/icon/index.js +12 -2
  83. package/lib/atom/icon/index.js.map +1 -1
  84. package/lib/atom/input-file-draggable/index.js.map +1 -1
  85. package/lib/atom/link/index.d.ts +2 -2
  86. package/lib/atom/link/index.d.ts.map +1 -1
  87. package/lib/atom/link/index.js +38 -47
  88. package/lib/atom/link/index.js.map +1 -1
  89. package/lib/molecule/banner/index.js.map +1 -1
  90. package/lib/molecule/certification-card/index.d.ts +4 -0
  91. package/lib/molecule/certification-card/index.d.ts.map +1 -1
  92. package/lib/molecule/certification-card/index.js +14 -10
  93. package/lib/molecule/certification-card/index.js.map +1 -1
  94. package/lib/molecule/cm-popin/types.d.ts +14 -2
  95. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  96. package/lib/molecule/draggable-list/index.d.ts +12 -0
  97. package/lib/molecule/progress-wrapper/index.d.ts.map +1 -1
  98. package/lib/molecule/progress-wrapper/index.js +25 -12
  99. package/lib/molecule/progress-wrapper/index.js.map +1 -1
  100. package/lib/organism/accordion/coorp-manager/part/index.js +3 -1
  101. package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
  102. package/lib/organism/brand-learning-priorities/index.d.ts +12 -0
  103. package/lib/organism/list-item/index.d.ts +16 -1
  104. package/lib/organism/list-item/index.d.ts.map +1 -1
  105. package/lib/organism/list-item/index.js +56 -5
  106. package/lib/organism/list-item/index.js.map +1 -1
  107. package/lib/organism/list-item/style.css +25 -11
  108. package/lib/organism/list-items/index.d.ts +12 -0
  109. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  110. package/lib/organism/mooc-header/index.js +2 -3
  111. package/lib/organism/mooc-header/index.js.map +1 -1
  112. package/lib/organism/sidebar/index.d.ts +28 -3
  113. package/lib/organism/sidebar/index.d.ts.map +1 -1
  114. package/lib/organism/sidebar/index.js +7 -3
  115. package/lib/organism/sidebar/index.js.map +1 -1
  116. package/lib/template/app-player/loading/index.d.ts +14 -2
  117. package/lib/template/app-player/player/index.d.ts +28 -4
  118. package/lib/template/app-player/player/slides/index.d.ts +14 -2
  119. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  120. package/lib/template/app-player/popin-correction/index.d.ts +18 -6
  121. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  122. package/lib/template/app-player/popin-end/index.d.ts +16 -4
  123. package/lib/template/app-player/popin-end/summary.d.ts +2 -2
  124. package/lib/template/app-player/popin-header/index.d.ts +2 -2
  125. package/lib/template/app-review/index.d.ts +14 -2
  126. package/lib/template/app-review/index.d.ts.map +1 -1
  127. package/lib/template/app-review/player/prop-types.d.ts +14 -2
  128. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  129. package/lib/template/app-review/prop-types.d.ts +14 -2
  130. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  131. package/lib/template/back-office/brand-update/index.d.ts +38 -2
  132. package/lib/template/certification-detail/index.d.ts +1 -0
  133. package/lib/template/certification-detail/index.d.ts.map +1 -1
  134. package/lib/template/certification-detail/index.js +3 -1
  135. package/lib/template/certification-detail/index.js.map +1 -1
  136. package/lib/template/certifications/index.d.ts +6 -0
  137. package/lib/template/certifications/index.d.ts.map +1 -1
  138. package/lib/template/certifications/index.js +28 -14
  139. package/lib/template/certifications/index.js.map +1 -1
  140. package/lib/template/common/dashboard/index.d.ts +28 -4
  141. package/lib/template/common/search-page/index.d.ts +14 -2
  142. package/lib/template/external-course/index.d.ts +14 -2
  143. package/lib/template/skill-detail/index.d.ts +1 -1
  144. package/lib/template/skill-detail/index.d.ts.map +1 -1
  145. package/lib/template/skill-detail/index.js +5 -5
  146. package/lib/template/skill-detail/index.js.map +1 -1
  147. package/locales/bs/global.json +10 -10
  148. package/locales/cs/global.json +10 -10
  149. package/locales/de/global.json +10 -10
  150. package/locales/en/global.json +1 -1
  151. package/locales/es/global.json +10 -10
  152. package/locales/et/global.json +10 -10
  153. package/locales/fi/global.json +10 -10
  154. package/locales/fr/global.json +10 -10
  155. package/locales/hr/global.json +10 -10
  156. package/locales/hu/global.json +10 -10
  157. package/locales/hy/global.json +10 -10
  158. package/locales/it/global.json +10 -10
  159. package/locales/ja/global.json +10 -10
  160. package/locales/ko/global.json +10 -10
  161. package/locales/nl/global.json +10 -10
  162. package/locales/pl/global.json +10 -10
  163. package/locales/pt/global.json +10 -10
  164. package/locales/ro/global.json +10 -10
  165. package/locales/ru/global.json +10 -10
  166. package/locales/sk/global.json +10 -10
  167. package/locales/sl/global.json +10 -10
  168. package/locales/sv/global.json +10 -10
  169. package/locales/tl/global.json +8 -8
  170. package/locales/tr/global.json +10 -10
  171. package/locales/uk/global.json +10 -10
  172. package/locales/vi/global.json +10 -10
  173. package/locales/zh/global.json +10 -10
  174. package/locales/zh_TW/global.json +10 -10
  175. package/package.json +2 -2
@@ -649,6 +649,7 @@ declare const propTypes: {
649
649
  items: PropTypes.Requireable<(PropTypes.InferProps<{
650
650
  title: PropTypes.Validator<string>;
651
651
  subtitle: PropTypes.Requireable<string>;
652
+ provider: PropTypes.Requireable<string>;
652
653
  selected: PropTypes.Requireable<boolean>;
653
654
  selectedColor: PropTypes.Requireable<string>;
654
655
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -701,6 +702,17 @@ declare const propTypes: {
701
702
  'aria-label': PropTypes.Requireable<string>;
702
703
  contentType: PropTypes.Requireable<string>;
703
704
  id: PropTypes.Requireable<string>;
705
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
706
+ iconName: PropTypes.Requireable<string>;
707
+ iconColor: PropTypes.Requireable<string>;
708
+ backgroundColor: PropTypes.Requireable<string>;
709
+ borderRadius: PropTypes.Requireable<string>;
710
+ preset: PropTypes.Requireable<string>;
711
+ gradientBackground: PropTypes.Requireable<boolean>;
712
+ size: PropTypes.Requireable<number>;
713
+ wrapperSize: PropTypes.Requireable<number>;
714
+ }>>;
715
+ editAsIcon: PropTypes.Requireable<boolean>;
704
716
  }> | null | undefined)[]>;
705
717
  type: PropTypes.Requireable<string>;
706
718
  itemType: PropTypes.Requireable<string>;
@@ -798,11 +810,11 @@ declare const propTypes: {
798
810
  'aria-label': PropTypes.Requireable<string>;
799
811
  title: PropTypes.Requireable<string>;
800
812
  target: PropTypes.Requireable<string>;
801
- skinHover: PropTypes.Requireable<boolean>;
802
813
  hoverColor: PropTypes.Requireable<string>;
814
+ hoverBackgroundColor: PropTypes.Requireable<string>;
803
815
  download: PropTypes.Requireable<boolean>;
804
816
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
805
- onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
817
+ onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
806
818
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
807
819
  useButtonTag: PropTypes.Requireable<boolean>;
808
820
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ferProps<{
369
369
  title: PropTypes.Validator<string>;
370
370
  subtitle: PropTypes.Requireable<string>;
371
+ provider: PropTypes.Requireable<string>;
371
372
  selected: PropTypes.Requireable<boolean>;
372
373
  selectedColor: PropTypes.Requireable<string>;
373
374
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -420,6 +421,17 @@ declare namespace BrandUpdate {
420
421
  'aria-label': PropTypes.Requireable<string>;
421
422
  contentType: PropTypes.Requireable<string>;
422
423
  id: PropTypes.Requireable<string>;
424
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
425
+ iconName: PropTypes.Requireable<string>;
426
+ iconColor: PropTypes.Requireable<string>;
427
+ backgroundColor: PropTypes.Requireable<string>;
428
+ borderRadius: PropTypes.Requireable<string>;
429
+ preset: PropTypes.Requireable<string>;
430
+ gradientBackground: PropTypes.Requireable<boolean>;
431
+ size: PropTypes.Requireable<number>;
432
+ wrapperSize: PropTypes.Requireable<number>;
433
+ }>>;
434
+ editAsIcon: PropTypes.Requireable<boolean>;
423
435
  }> | null | undefined)[]>;
424
436
  type: PropTypes.Requireable<string>;
425
437
  itemType: PropTypes.Requireable<string>;
@@ -804,6 +816,7 @@ declare namespace BrandUpdate {
804
816
  }> | PropTypes.InferProps<{
805
817
  title: PropTypes.Validator<string>;
806
818
  subtitle: PropTypes.Requireable<string>;
819
+ provider: PropTypes.Requireable<string>;
807
820
  selected: PropTypes.Requireable<boolean>;
808
821
  selectedColor: PropTypes.Requireable<string>;
809
822
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -856,6 +869,17 @@ declare namespace BrandUpdate {
856
869
  'aria-label': PropTypes.Requireable<string>;
857
870
  contentType: PropTypes.Requireable<string>;
858
871
  id: PropTypes.Requireable<string>;
872
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
873
+ iconName: PropTypes.Requireable<string>;
874
+ iconColor: PropTypes.Requireable<string>;
875
+ backgroundColor: PropTypes.Requireable<string>;
876
+ borderRadius: PropTypes.Requireable<string>;
877
+ preset: PropTypes.Requireable<string>;
878
+ gradientBackground: PropTypes.Requireable<boolean>;
879
+ size: PropTypes.Requireable<number>;
880
+ wrapperSize: PropTypes.Requireable<number>;
881
+ }>>;
882
+ editAsIcon: PropTypes.Requireable<boolean>;
859
883
  }> | PropTypes.InferProps<{
860
884
  'aria-label': PropTypes.Requireable<string>;
861
885
  id: PropTypes.Requireable<string>;
@@ -1022,6 +1046,7 @@ declare namespace BrandUpdate {
1022
1046
  items: PropTypes.Requireable<(PropTypes.InferProps<{
1023
1047
  title: PropTypes.Validator<string>;
1024
1048
  subtitle: PropTypes.Requireable<string>;
1049
+ provider: PropTypes.Requireable<string>;
1025
1050
  selected: PropTypes.Requireable<boolean>;
1026
1051
  selectedColor: PropTypes.Requireable<string>;
1027
1052
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -1074,6 +1099,17 @@ declare namespace BrandUpdate {
1074
1099
  'aria-label': PropTypes.Requireable<string>;
1075
1100
  contentType: PropTypes.Requireable<string>;
1076
1101
  id: PropTypes.Requireable<string>;
1102
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
1103
+ iconName: PropTypes.Requireable<string>;
1104
+ iconColor: PropTypes.Requireable<string>;
1105
+ backgroundColor: PropTypes.Requireable<string>;
1106
+ borderRadius: PropTypes.Requireable<string>;
1107
+ preset: PropTypes.Requireable<string>;
1108
+ gradientBackground: PropTypes.Requireable<boolean>;
1109
+ size: PropTypes.Requireable<number>;
1110
+ wrapperSize: PropTypes.Requireable<number>;
1111
+ }>>;
1112
+ editAsIcon: PropTypes.Requireable<boolean>;
1077
1113
  }> | null | undefined)[]>;
1078
1114
  type: PropTypes.Requireable<string>;
1079
1115
  itemType: PropTypes.Requireable<string>;
@@ -1171,11 +1207,11 @@ declare namespace BrandUpdate {
1171
1207
  'aria-label': PropTypes.Requireable<string>;
1172
1208
  title: PropTypes.Requireable<string>;
1173
1209
  target: PropTypes.Requireable<string>;
1174
- skinHover: PropTypes.Requireable<boolean>;
1175
1210
  hoverColor: PropTypes.Requireable<string>;
1211
+ hoverBackgroundColor: PropTypes.Requireable<string>;
1176
1212
  download: PropTypes.Requireable<boolean>;
1177
1213
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
1178
- onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
1214
+ onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
1179
1215
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
1180
1216
  useButtonTag: PropTypes.Requireable<boolean>;
1181
1217
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
@@ -27,6 +27,7 @@ declare namespace CertificationDetail {
27
27
  }
28
28
  namespace propTypes {
29
29
  const title: PropTypes.Validator<string>;
30
+ const tag: PropTypes.Requireable<string>;
30
31
  const certificationRef: PropTypes.Validator<string>;
31
32
  const description: PropTypes.Validator<string>;
32
33
  const logoUrl: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certification-detail/index.js"],"names":[],"mappings":";AAgBA,4EAuHC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certification-detail/index.js"],"names":[],"mappings":";AAgBA,4EAyHC"}
@@ -49,6 +49,7 @@ const CertificationDetail = (props, context) => {
49
49
  const {
50
50
  certificationRef,
51
51
  title,
52
+ tag,
52
53
  description,
53
54
  certificationCourses,
54
55
  ongoingCoursesAvailable,
@@ -109,7 +110,7 @@ const CertificationDetail = (props, context) => {
109
110
  className: _style.default.logo,
110
111
  src: logoUrl
111
112
  })), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_tag.default, {
112
- label: translate('certification')
113
+ label: tag
113
114
  }), /*#__PURE__*/_react.default.createElement("div", {
114
115
  className: _style.default.title
115
116
  }, title), description ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Description, null), isDescriptionTruncated ? /*#__PURE__*/_react.default.createElement("div", {
@@ -155,6 +156,7 @@ CertificationDetail.contextTypes = {
155
156
  };
156
157
  CertificationDetail.propTypes = process.env.NODE_ENV !== "production" ? {
157
158
  title: _propTypes.default.string.isRequired,
159
+ tag: _propTypes.default.string,
158
160
  certificationRef: _propTypes.default.string.isRequired,
159
161
  description: _propTypes.default.string.isRequired,
160
162
  logoUrl: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["CertificationDetail","props","context","certificationRef","title","description","certificationCourses","ongoingCoursesAvailable","filters","onBackClick","onContinueLearningClick","metrics","logoUrl","diplomaUrl","badgeUrl","descriptionRef","useRef","translate","progression","mandatoryModules","stars","totalModules","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","classnames","style","truncate","completedModules","useMemo","backgroundContainer","container","backButton","ctaContainer","logoContainer","logo","showMoreWrapper","faSize","wrapperSize","contentStats","type","downloadUrl","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","number","bool","CardsGrid","onChange","func","options","arrayOf","SelectOptionPropTypes"],"sources":["../../../src/template/certification-detail/index.js"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, lowerCase, round, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport AllCourses from '../skill-detail/all-courses';\nimport {ContinueLearningButton} from '../skill-detail';\nimport ProgressWrapper from '../../molecule/progress-wrapper';\nimport style from './style.css';\n\nconst CertificationDetail = (props, context) => {\n const {\n certificationRef,\n title,\n description,\n certificationCourses,\n ongoingCoursesAvailable,\n filters,\n onBackClick,\n onContinueLearningClick,\n metrics,\n logoUrl,\n diplomaUrl,\n badgeUrl\n } = props;\n const descriptionRef = useRef(null);\n const {translate} = context;\n const {progression, mandatoryModules, stars, totalModules} = metrics;\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 completedModules = useMemo(\n () => round((mandatoryModules * progression) / 100),\n [mandatoryModules, progression]\n );\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\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 className={style.logoContainer}>\n <img className={style.logo} src={logoUrl} />\n </div>\n <div>\n <Tag label={translate('certification')} />\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {isDescriptionTruncated ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {translate(showMore ? 'Show less' : 'Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 14, wrapperSize: 16}}\n />\n </div>\n ) : null}\n </>\n ) : null}\n <div className={style.contentStats}>\n <span>{`${totalModules} ${lowerCase(translate('modules'))}`}</span>\n </div>\n <ContinueLearningButton\n ongoingCoursesAvailable={ongoingCoursesAvailable}\n onClick={onContinueLearningClick}\n />\n </div>\n </div>\n <ProgressWrapper\n title={translate('your_progress')}\n subtitle={translate('certification_progress_wrapper_subtitle')}\n progression={progression}\n completedModules={completedModules}\n mandatoryModules={mandatoryModules}\n sections={compact([\n {\n type: 'diploma',\n downloadUrl: diplomaUrl\n },\n badgeUrl && {\n type: 'badge',\n downloadUrl: badgeUrl\n },\n {\n type: 'stars',\n stars\n }\n ])}\n />\n <AllCourses\n content={certificationCourses}\n filters={filters}\n data-name=\"certification-courses\"\n />\n </div>\n </div>\n );\n};\n\nCertificationDetail.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nCertificationDetail.propTypes = {\n title: PropTypes.string.isRequired,\n certificationRef: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n mandatoryModules: PropTypes.number,\n totalModules: PropTypes.number\n }),\n diplomaUrl: PropTypes.string,\n badgeUrl: PropTypes.string,\n ongoingCoursesAvailable: PropTypes.bool,\n certificationCourses: 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 onContinueLearningClick: PropTypes.func\n};\n\nexport default CertificationDetail;\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,mBAAmB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC9C,MAAM;IACJC,gBADI;IAEJC,KAFI;IAGJC,WAHI;IAIJC,oBAJI;IAKJC,uBALI;IAMJC,OANI;IAOJC,WAPI;IAQJC,uBARI;IASJC,OATI;IAUJC,OAVI;IAWJC,UAXI;IAYJC;EAZI,IAaFb,KAbJ;EAcA,MAAMc,cAAc,GAAG,IAAAC,aAAA,EAAO,IAAP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XQ;EAY9B3C,QAAQ,EAAE0C,kBAAA,CAAUC,MAZU;EAa9BlD,uBAAuB,EAAEiD,kBAAA,CAAUK,IAbL;EAc9BvD,oBAAoB,EAAEkD,kBAAA,CAAUG,KAAV,CAAgBG,kBAAA,CAAUP,SAA1B,CAdQ;EAe9B/C,OAAO,EAAEgD,kBAAA,CAAUG,KAAV,CAAgB;IACvBI,QAAQ,EAAEP,kBAAA,CAAUQ,IADG;IAEvBC,OAAO,EAAET,kBAAA,CAAUU,OAAV,CAAkBV,kBAAA,CAAUG,KAAV,CAAgBQ,6BAAhB,CAAlB;EAFc,CAAhB,CAfqB;EAmB9B1D,WAAW,EAAE+C,kBAAA,CAAUQ,IAnBO;EAoB9BtD,uBAAuB,EAAE8C,kBAAA,CAAUQ;AApBL,CAAhC;eAuBehE,mB"}
1
+ {"version":3,"file":"index.js","names":["CertificationDetail","props","context","certificationRef","title","tag","description","certificationCourses","ongoingCoursesAvailable","filters","onBackClick","onContinueLearningClick","metrics","logoUrl","diplomaUrl","badgeUrl","descriptionRef","useRef","translate","progression","mandatoryModules","stars","totalModules","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","classnames","style","truncate","completedModules","useMemo","backgroundContainer","container","backButton","ctaContainer","logoContainer","logo","showMoreWrapper","faSize","wrapperSize","contentStats","type","downloadUrl","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","number","bool","CardsGrid","onChange","func","options","arrayOf","SelectOptionPropTypes"],"sources":["../../../src/template/certification-detail/index.js"],"sourcesContent":["import React, {useCallback, useEffect, useRef, useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, lowerCase, round, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport AllCourses from '../skill-detail/all-courses';\nimport {ContinueLearningButton} from '../skill-detail';\nimport ProgressWrapper from '../../molecule/progress-wrapper';\nimport style from './style.css';\n\nconst CertificationDetail = (props, context) => {\n const {\n certificationRef,\n title,\n tag,\n description,\n certificationCourses,\n ongoingCoursesAvailable,\n filters,\n onBackClick,\n onContinueLearningClick,\n metrics,\n logoUrl,\n diplomaUrl,\n badgeUrl\n } = props;\n const descriptionRef = useRef(null);\n const {translate} = context;\n\n const {progression, mandatoryModules, stars, totalModules} = metrics;\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 completedModules = useMemo(\n () => round((mandatoryModules * progression) / 100),\n [mandatoryModules, progression]\n );\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\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 className={style.logoContainer}>\n <img className={style.logo} src={logoUrl} />\n </div>\n <div>\n <Tag label={tag} />\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {isDescriptionTruncated ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {translate(showMore ? 'Show less' : 'Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 14, wrapperSize: 16}}\n />\n </div>\n ) : null}\n </>\n ) : null}\n <div className={style.contentStats}>\n <span>{`${totalModules} ${lowerCase(translate('modules'))}`}</span>\n </div>\n <ContinueLearningButton\n ongoingCoursesAvailable={ongoingCoursesAvailable}\n onClick={onContinueLearningClick}\n />\n </div>\n </div>\n <ProgressWrapper\n title={translate('your_progress')}\n subtitle={translate('certification_progress_wrapper_subtitle')}\n progression={progression}\n completedModules={completedModules}\n mandatoryModules={mandatoryModules}\n sections={compact([\n {\n type: 'diploma',\n downloadUrl: diplomaUrl\n },\n badgeUrl && {\n type: 'badge',\n downloadUrl: badgeUrl\n },\n {\n type: 'stars',\n stars\n }\n ])}\n />\n <AllCourses\n content={certificationCourses}\n filters={filters}\n data-name=\"certification-courses\"\n />\n </div>\n </div>\n );\n};\n\nCertificationDetail.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nCertificationDetail.propTypes = {\n title: PropTypes.string.isRequired,\n tag: PropTypes.string,\n certificationRef: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n mandatoryModules: PropTypes.number,\n totalModules: PropTypes.number\n }),\n diplomaUrl: PropTypes.string,\n badgeUrl: PropTypes.string,\n ongoingCoursesAvailable: PropTypes.bool,\n certificationCourses: 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 onContinueLearningClick: PropTypes.func\n};\n\nexport default CertificationDetail;\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,mBAAmB,GAAG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C,kBAAA,CAAUC,MALW;EAM9B9C,OAAO,EAAE6C,kBAAA,CAAUG,KAAV,CAAgB;IACvBzC,WAAW,EAAEsC,kBAAA,CAAUI,MADA;IAEvBxC,KAAK,EAAEoC,kBAAA,CAAUI,MAFM;IAGvBzC,gBAAgB,EAAEqC,kBAAA,CAAUI,MAHL;IAIvBvC,YAAY,EAAEmC,kBAAA,CAAUI;EAJD,CAAhB,CANqB;EAY9B/C,UAAU,EAAE2C,kBAAA,CAAUC,MAZQ;EAa9B3C,QAAQ,EAAE0C,kBAAA,CAAUC,MAbU;EAc9BlD,uBAAuB,EAAEiD,kBAAA,CAAUK,IAdL;EAe9BvD,oBAAoB,EAAEkD,kBAAA,CAAUG,KAAV,CAAgBG,kBAAA,CAAUP,SAA1B,CAfQ;EAgB9B/C,OAAO,EAAEgD,kBAAA,CAAUG,KAAV,CAAgB;IACvBI,QAAQ,EAAEP,kBAAA,CAAUQ,IADG;IAEvBC,OAAO,EAAET,kBAAA,CAAUU,OAAV,CAAkBV,kBAAA,CAAUG,KAAV,CAAgBQ,6BAAhB,CAAlB;EAFc,CAAhB,CAhBqB;EAoB9B1D,WAAW,EAAE+C,kBAAA,CAAUQ,IApBO;EAqB9BtD,uBAAuB,EAAE8C,kBAAA,CAAUQ;AArBL,CAAhC;eAwBejE,mB"}
@@ -5,6 +5,9 @@ declare namespace Certifications {
5
5
  const translate: PropTypes.Requireable<(...args: any[]) => any>;
6
6
  }
7
7
  namespace propTypes {
8
+ const title: PropTypes.Requireable<string>;
9
+ const subtitle: PropTypes.Requireable<string>;
10
+ const tag: PropTypes.Requireable<string>;
8
11
  const certifications: PropTypes.Requireable<(PropTypes.InferProps<{
9
12
  label: PropTypes.Requireable<string>;
10
13
  goal: PropTypes.Requireable<PropTypes.InferProps<{
@@ -16,6 +19,9 @@ declare namespace Certifications {
16
19
  progress: PropTypes.Requireable<number>;
17
20
  imgUrl: PropTypes.Requireable<string>;
18
21
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
22
+ locales: PropTypes.Requireable<PropTypes.InferProps<{
23
+ conditionDescriptionProgress: PropTypes.Requireable<string>;
24
+ }>>;
19
25
  }> | null | undefined)[]>;
20
26
  const sorting: PropTypes.Requireable<PropTypes.InferProps<{
21
27
  title: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certifications/index.js"],"names":[],"mappings":";AASA,uEAsEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certifications/index.js"],"names":[],"mappings":";AAUA,uEAoEC"}
@@ -3,6 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
+ var _map2 = _interopRequireDefault(require("lodash/fp/map"));
7
+
6
8
  var _react = _interopRequireWildcard(require("react"));
7
9
 
8
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -19,16 +21,19 @@ var _certificationCard = _interopRequireDefault(require("../../molecule/certific
19
21
 
20
22
  var _style = _interopRequireDefault(require("./style.css"));
21
23
 
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
24
  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); }
25
25
 
26
26
  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; }
27
27
 
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+
28
30
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
31
 
30
32
  const Certifications = (props, context) => {
31
33
  const {
34
+ title,
35
+ subtitle,
36
+ tag,
32
37
  certifications,
33
38
  sorting
34
39
  } = props;
@@ -50,8 +55,8 @@ const Certifications = (props, context) => {
50
55
  className: _style.default.container,
51
56
  "data-name": "Certifications"
52
57
  }, /*#__PURE__*/_react.default.createElement(_title.default, {
53
- title: translate('certificates'),
54
- subtitle: translate('certificates_subtitle'),
58
+ title: title,
59
+ subtitle: subtitle,
55
60
  type: "form-group",
56
61
  titleSize: "standard-light-weight",
57
62
  subtitleSize: "standard-without-margin",
@@ -65,7 +70,7 @@ const Certifications = (props, context) => {
65
70
  className: _style.default.sortSectionWrapper
66
71
  }, /*#__PURE__*/_react.default.createElement("div", {
67
72
  className: _style.default.certificatesCount
68
- }, `${certifications.length} ${translate('certificate(s)')}`), /*#__PURE__*/_react.default.createElement("div", {
73
+ }, `${certifications.length} ${title}`), /*#__PURE__*/_react.default.createElement("div", {
69
74
  className: _style.default.sortSection
70
75
  }, /*#__PURE__*/_react.default.createElement(_inputSwitch.default, {
71
76
  id: 'show-completed-courses-switch',
@@ -79,21 +84,27 @@ const Certifications = (props, context) => {
79
84
  className: _style.default.sortWrapper
80
85
  }, translate('sort_by'), sortView) : null)), /*#__PURE__*/_react.default.createElement("div", {
81
86
  className: _style.default.certificateList
82
- }, certifications.map(certification => {
83
- if (!showCompleted && certification.progress === 100) {
84
- return null;
85
- }
86
-
87
+ }, (0, _map2.default)(certification => {
88
+ const {
89
+ label,
90
+ progress
91
+ } = certification;
92
+ if (!showCompleted && progress === 100) return null;
87
93
  return /*#__PURE__*/_react.default.createElement("div", {
88
- key: certification.label
89
- }, /*#__PURE__*/_react.default.createElement(_certificationCard.default, certification));
90
- }))));
94
+ key: label
95
+ }, /*#__PURE__*/_react.default.createElement(_certificationCard.default, _extends({}, certification, {
96
+ tag: tag
97
+ })));
98
+ }, certifications))));
91
99
  };
92
100
 
93
101
  Certifications.contextTypes = {
94
102
  translate: _provider.default.childContextTypes.translate
95
103
  };
96
104
  Certifications.propTypes = process.env.NODE_ENV !== "production" ? {
105
+ title: _propTypes.default.string,
106
+ subtitle: _propTypes.default.string,
107
+ tag: _propTypes.default.string,
97
108
  certifications: _propTypes.default.arrayOf(_propTypes.default.shape({
98
109
  label: _propTypes.default.string,
99
110
  goal: _propTypes.default.shape({
@@ -104,7 +115,10 @@ Certifications.propTypes = process.env.NODE_ENV !== "production" ? {
104
115
  }),
105
116
  progress: _propTypes.default.number,
106
117
  imgUrl: _propTypes.default.string,
107
- onClick: _propTypes.default.func
118
+ onClick: _propTypes.default.func,
119
+ locales: _propTypes.default.shape({
120
+ conditionDescriptionProgress: _propTypes.default.string
121
+ })
108
122
  })),
109
123
  sorting: _propTypes.default.shape(_select.default.propTypes)
110
124
  } : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Certifications","props","context","certifications","sorting","translate","showCompleted","setShowCompleted","useState","sortView","undefined","handleShowCompletedToggle","useCallback","style","backgroudnContainer","container","iconName","iconColor","borderRadius","backgroundColor","sortSectionWrapper","certificatesCount","length","sortSection","sortWrapper","certificateList","map","certification","progress","label","contextTypes","Provider","childContextTypes","propTypes","PropTypes","arrayOf","shape","string","goal","title","condition","nbDone","number","imgUrl","onClick","func","Select"],"sources":["../../../src/template/certifications/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../../atom/provider';\nimport Title from '../../atom/title';\nimport Select from '../../atom/select';\nimport InputSwitch from '../../atom/input-switch';\nimport CertificationCard from '../../molecule/certification-card';\nimport style from './style.css';\n\nconst Certifications = (props, context) => {\n const {certifications, sorting} = props;\n const {translate} = context;\n\n const [showCompleted, setShowCompleted] = useState(true);\n\n const sortView =\n sorting !== undefined ? (\n <div data-name=\"choice\">\n <Select {...sorting} aria-label=\"All courses sort\" />\n </div>\n ) : null;\n\n const handleShowCompletedToggle = useCallback(() => {\n setShowCompleted(!showCompleted);\n }, [showCompleted, setShowCompleted]);\n\n return (\n <div className={style.backgroudnContainer}>\n <div className={style.container} data-name=\"Certifications\">\n <Title\n title={translate('certificates')}\n subtitle={translate('certificates_subtitle')}\n type=\"form-group\"\n titleSize=\"standard-light-weight\"\n subtitleSize=\"standard-without-margin\"\n icon={{\n iconName: 'wreath-laurel',\n iconColor: '#B87A00',\n borderRadius: '12px',\n backgroundColor: '#FFEECC'\n }}\n />\n <div className={style.sortSectionWrapper}>\n <div className={style.certificatesCount}>\n {`${certifications.length} ${translate('certificate(s)')}`}\n </div>\n <div className={style.sortSection}>\n <InputSwitch\n id={'show-completed-courses-switch'}\n type=\"switch\"\n name={translate('show_completed')}\n title={translate('show_completed')}\n aria-label={'Show completed courses aria label'}\n value={showCompleted}\n onChange={handleShowCompletedToggle}\n />\n {sorting ? (\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n {sortView}\n </div>\n ) : null}\n </div>\n </div>\n <div className={style.certificateList}>\n {certifications.map(certification => {\n if (!showCompleted && certification.progress === 100) {\n return null;\n }\n return (\n <div key={certification.label}>\n <CertificationCard {...certification} />\n </div>\n );\n })}\n </div>\n </div>\n </div>\n );\n};\n\nCertifications.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nCertifications.propTypes = {\n certifications: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n goal: PropTypes.shape({\n title: PropTypes.string,\n condition: PropTypes.shape({\n nbDone: PropTypes.number\n })\n }),\n progress: PropTypes.number,\n imgUrl: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n sorting: PropTypes.shape(Select.propTypes)\n};\n\nexport default Certifications;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,cAAc,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACzC,MAAM;IAACC,cAAD;IAAiBC;EAAjB,IAA4BH,KAAlC;EACA,MAAM;IAACI;EAAD,IAAcH,OAApB;EAEA,MAAM,CAACI,aAAD,EAAgBC,gBAAhB,IAAoC,IAAAC,eAAA,EAAS,IAAT,CAA1C;EAEA,MAAMC,QAAQ,GACZL,OAAO,KAAKM,SAAZ,gBACE;IAAK,aAAU;EAAf,gBACE,6BAAC,eAAD,eAAYN,OAAZ;IAAqB,cAAW;EAAhC,GADF,CADF,GAII,IALN;EAOA,MAAMO,yBAAyB,GAAG,IAAAC,kBAAA,EAAY,MAAM;IAClDL,gBAAgB,CAAC,CAACD,aAAF,CAAhB;EACD,CAFiC,EAE/B,CAACA,aAAD,EAAgBC,gBAAhB,CAF+B,CAAlC;EAIA,oBACE;IAAK,SAAS,EAAEM,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAME,SAAtB;IAAiC,aAAU;EAA3C,gBACE,6BAAC,cAAD;IACE,KAAK,EAAEV,SAAS,CAAC,cAAD,CADlB;IAEE,QAAQ,EAAEA,SAAS,CAAC,uBAAD,CAFrB;IAGE,IAAI,EAAC,YAHP;IAIE,SAAS,EAAC,uBAJZ;IAKE,YAAY,EAAC,yBALf;IAME,IAAI,EAAE;MACJW,QAAQ,EAAE,eADN;MAEJC,SAAS,EAAE,SAFP;MAGJC,YAAY,EAAE,MAHV;MAIJC,eAAe,EAAE;IAJb;EANR,EADF,eAcE;IAAK,SAAS,EAAEN,cAAA,CAAMO;EAAtB,gBACE;IAAK,SAAS,EAAEP,cAAA,CAAMQ;EAAtB,GACI,GAAElB,cAAc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;MADO,CAAhB;IAFS,CAAhB,CAFQ;IAQdd,QAAQ,EAAEM,kBAAA,CAAUQ,MARN;IASdC,MAAM,EAAET,kBAAA,CAAUG,MATJ;IAUdO,OAAO,EAAEV,kBAAA,CAAUW;EAVL,CAAhB,CADc,CADS;EAezBzC,OAAO,EAAE8B,kBAAA,CAAUE,KAAV,CAAgBU,eAAA,CAAOb,SAAvB;AAfgB,CAA3B;eAkBejC,c"}
1
+ {"version":3,"file":"index.js","names":["Certifications","props","context","title","subtitle","tag","certifications","sorting","translate","showCompleted","setShowCompleted","useState","sortView","undefined","handleShowCompletedToggle","useCallback","style","backgroudnContainer","container","iconName","iconColor","borderRadius","backgroundColor","sortSectionWrapper","certificatesCount","length","sortSection","sortWrapper","certificateList","certification","label","progress","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","arrayOf","shape","goal","condition","nbDone","number","imgUrl","onClick","func","locales","conditionDescriptionProgress","Select"],"sources":["../../../src/template/certifications/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Title from '../../atom/title';\nimport Select from '../../atom/select';\nimport InputSwitch from '../../atom/input-switch';\nimport CertificationCard from '../../molecule/certification-card';\nimport style from './style.css';\n\nconst Certifications = (props, context) => {\n const {title, subtitle, tag, certifications, sorting} = props;\n const {translate} = context;\n\n const [showCompleted, setShowCompleted] = useState(true);\n\n const sortView =\n sorting !== undefined ? (\n <div data-name=\"choice\">\n <Select {...sorting} aria-label=\"All courses sort\" />\n </div>\n ) : null;\n\n const handleShowCompletedToggle = useCallback(() => {\n setShowCompleted(!showCompleted);\n }, [showCompleted, setShowCompleted]);\n\n return (\n <div className={style.backgroudnContainer}>\n <div className={style.container} data-name=\"Certifications\">\n <Title\n title={title}\n subtitle={subtitle}\n type=\"form-group\"\n titleSize=\"standard-light-weight\"\n subtitleSize=\"standard-without-margin\"\n icon={{\n iconName: 'wreath-laurel',\n iconColor: '#B87A00',\n borderRadius: '12px',\n backgroundColor: '#FFEECC'\n }}\n />\n <div className={style.sortSectionWrapper}>\n <div className={style.certificatesCount}>{`${certifications.length} ${title}`}</div>\n <div className={style.sortSection}>\n <InputSwitch\n id={'show-completed-courses-switch'}\n type=\"switch\"\n name={translate('show_completed')}\n title={translate('show_completed')}\n aria-label={'Show completed courses aria label'}\n value={showCompleted}\n onChange={handleShowCompletedToggle}\n />\n {sorting ? (\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n {sortView}\n </div>\n ) : null}\n </div>\n </div>\n <div className={style.certificateList}>\n {map(certification => {\n const {label, progress} = certification;\n if (!showCompleted && progress === 100) return null;\n\n return (\n <div key={label}>\n <CertificationCard {...certification} tag={tag} />\n </div>\n );\n }, certifications)}\n </div>\n </div>\n </div>\n );\n};\n\nCertifications.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nCertifications.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n tag: PropTypes.string,\n certifications: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n goal: PropTypes.shape({\n title: PropTypes.string,\n condition: PropTypes.shape({\n nbDone: PropTypes.number\n })\n }),\n progress: PropTypes.number,\n imgUrl: PropTypes.string,\n onClick: PropTypes.func,\n locales: PropTypes.shape({\n conditionDescriptionProgress: PropTypes.string\n })\n })\n ),\n sorting: PropTypes.shape(Select.propTypes)\n};\n\nexport default Certifications;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,cAAc,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACzC,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,GAAlB;IAAuBC,cAAvB;IAAuCC;EAAvC,IAAkDN,KAAxD;EACA,MAAM;IAACO;EAAD,IAAcN,OAApB;EAEA,MAAM,CAACO,aAAD,EAAgBC,gBAAhB,IAAoC,IAAAC,eAAA,EAAS,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AJS;EAqBzB9B,OAAO,EAAE6B,kBAAA,CAAUG,KAAV,CAAgBU,eAAA,CAAOd,SAAvB;AArBgB,CAA3B;eAwBenC,c"}
@@ -141,6 +141,7 @@ declare namespace Dashboard {
141
141
  items: PropTypes.Requireable<(PropTypes.InferProps<{
142
142
  title: PropTypes.Validator<string>;
143
143
  subtitle: PropTypes.Requireable<string>;
144
+ provider: PropTypes.Requireable<string>;
144
145
  selected: PropTypes.Requireable<boolean>;
145
146
  selectedColor: PropTypes.Requireable<string>;
146
147
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -193,6 +194,17 @@ declare namespace Dashboard {
193
194
  'aria-label': PropTypes.Requireable<string>;
194
195
  contentType: PropTypes.Requireable<string>;
195
196
  id: PropTypes.Requireable<string>;
197
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
198
+ iconName: PropTypes.Requireable<string>;
199
+ iconColor: PropTypes.Requireable<string>;
200
+ backgroundColor: PropTypes.Requireable<string>;
201
+ borderRadius: PropTypes.Requireable<string>;
202
+ preset: PropTypes.Requireable<string>;
203
+ gradientBackground: PropTypes.Requireable<boolean>;
204
+ size: PropTypes.Requireable<number>;
205
+ wrapperSize: PropTypes.Requireable<number>;
206
+ }>>;
207
+ editAsIcon: PropTypes.Requireable<boolean>;
196
208
  }> | null | undefined)[]>;
197
209
  type: PropTypes.Requireable<string>;
198
210
  itemType: PropTypes.Requireable<string>;
@@ -290,11 +302,11 @@ declare namespace Dashboard {
290
302
  'aria-label': PropTypes.Requireable<string>;
291
303
  title: PropTypes.Requireable<string>;
292
304
  target: PropTypes.Requireable<string>;
293
- skinHover: PropTypes.Requireable<boolean>;
294
305
  hoverColor: PropTypes.Requireable<string>;
306
+ hoverBackgroundColor: PropTypes.Requireable<string>;
295
307
  download: PropTypes.Requireable<boolean>;
296
308
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
297
- onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
309
+ onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
298
310
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
299
311
  useButtonTag: PropTypes.Requireable<boolean>;
300
312
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
@@ -438,6 +450,7 @@ declare namespace Dashboard {
438
450
  items: PropTypes.Requireable<(PropTypes.InferProps<{
439
451
  title: PropTypes.Validator<string>;
440
452
  subtitle: PropTypes.Requireable<string>;
453
+ provider: PropTypes.Requireable<string>;
441
454
  selected: PropTypes.Requireable<boolean>;
442
455
  selectedColor: PropTypes.Requireable<string>;
443
456
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -490,6 +503,17 @@ declare namespace Dashboard {
490
503
  'aria-label': PropTypes.Requireable<string>;
491
504
  contentType: PropTypes.Requireable<string>;
492
505
  id: PropTypes.Requireable<string>;
506
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
507
+ iconName: PropTypes.Requireable<string>;
508
+ iconColor: PropTypes.Requireable<string>;
509
+ backgroundColor: PropTypes.Requireable<string>;
510
+ borderRadius: PropTypes.Requireable<string>;
511
+ preset: PropTypes.Requireable<string>;
512
+ gradientBackground: PropTypes.Requireable<boolean>;
513
+ size: PropTypes.Requireable<number>;
514
+ wrapperSize: PropTypes.Requireable<number>;
515
+ }>>;
516
+ editAsIcon: PropTypes.Requireable<boolean>;
493
517
  }> | null | undefined)[]>;
494
518
  type: PropTypes.Requireable<string>;
495
519
  itemType: PropTypes.Requireable<string>;
@@ -587,11 +611,11 @@ declare namespace Dashboard {
587
611
  'aria-label': PropTypes.Requireable<string>;
588
612
  title: PropTypes.Requireable<string>;
589
613
  target: PropTypes.Requireable<string>;
590
- skinHover: PropTypes.Requireable<boolean>;
591
614
  hoverColor: PropTypes.Requireable<string>;
615
+ hoverBackgroundColor: PropTypes.Requireable<string>;
592
616
  download: PropTypes.Requireable<boolean>;
593
617
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
594
- onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
618
+ onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
595
619
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
596
620
  useButtonTag: PropTypes.Requireable<boolean>;
597
621
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
@@ -322,6 +322,7 @@ declare namespace SearchPage {
322
322
  items: PropTypes.Requireable<(PropTypes.InferProps<{
323
323
  title: PropTypes.Validator<string>;
324
324
  subtitle: PropTypes.Requireable<string>;
325
+ provider: PropTypes.Requireable<string>;
325
326
  selected: PropTypes.Requireable<boolean>;
326
327
  selectedColor: PropTypes.Requireable<string>;
327
328
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -374,6 +375,17 @@ declare namespace SearchPage {
374
375
  'aria-label': PropTypes.Requireable<string>;
375
376
  contentType: PropTypes.Requireable<string>;
376
377
  id: PropTypes.Requireable<string>;
378
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
379
+ iconName: PropTypes.Requireable<string>;
380
+ iconColor: PropTypes.Requireable<string>;
381
+ backgroundColor: PropTypes.Requireable<string>;
382
+ borderRadius: PropTypes.Requireable<string>;
383
+ preset: PropTypes.Requireable<string>;
384
+ gradientBackground: PropTypes.Requireable<boolean>;
385
+ size: PropTypes.Requireable<number>;
386
+ wrapperSize: PropTypes.Requireable<number>;
387
+ }>>;
388
+ editAsIcon: PropTypes.Requireable<boolean>;
377
389
  }> | null | undefined)[]>;
378
390
  type: PropTypes.Requireable<string>;
379
391
  itemType: PropTypes.Requireable<string>;
@@ -471,11 +483,11 @@ declare namespace SearchPage {
471
483
  'aria-label': PropTypes.Requireable<string>;
472
484
  title: PropTypes.Requireable<string>;
473
485
  target: PropTypes.Requireable<string>;
474
- skinHover: PropTypes.Requireable<boolean>;
475
486
  hoverColor: PropTypes.Requireable<string>;
487
+ hoverBackgroundColor: PropTypes.Requireable<string>;
476
488
  download: PropTypes.Requireable<boolean>;
477
489
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
478
- onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
490
+ onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
479
491
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
480
492
  useButtonTag: PropTypes.Requireable<boolean>;
481
493
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
@@ -159,6 +159,7 @@ declare namespace ExternalCourse {
159
159
  items: PropTypes.Requireable<(PropTypes.InferProps<{
160
160
  title: PropTypes.Validator<string>;
161
161
  subtitle: PropTypes.Requireable<string>;
162
+ provider: PropTypes.Requireable<string>;
162
163
  selected: PropTypes.Requireable<boolean>;
163
164
  selectedColor: PropTypes.Requireable<string>;
164
165
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -211,6 +212,17 @@ declare namespace ExternalCourse {
211
212
  'aria-label': PropTypes.Requireable<string>;
212
213
  contentType: PropTypes.Requireable<string>;
213
214
  id: PropTypes.Requireable<string>;
215
+ leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
216
+ iconName: PropTypes.Requireable<string>;
217
+ iconColor: PropTypes.Requireable<string>;
218
+ backgroundColor: PropTypes.Requireable<string>;
219
+ borderRadius: PropTypes.Requireable<string>;
220
+ preset: PropTypes.Requireable<string>;
221
+ gradientBackground: PropTypes.Requireable<boolean>;
222
+ size: PropTypes.Requireable<number>;
223
+ wrapperSize: PropTypes.Requireable<number>;
224
+ }>>;
225
+ editAsIcon: PropTypes.Requireable<boolean>;
214
226
  }> | null | undefined)[]>;
215
227
  type: PropTypes.Requireable<string>;
216
228
  itemType: PropTypes.Requireable<string>;
@@ -308,11 +320,11 @@ declare namespace ExternalCourse {
308
320
  'aria-label': PropTypes.Requireable<string>;
309
321
  title: PropTypes.Requireable<string>;
310
322
  target: PropTypes.Requireable<string>;
311
- skinHover: PropTypes.Requireable<boolean>;
312
323
  hoverColor: PropTypes.Requireable<string>;
324
+ hoverBackgroundColor: PropTypes.Requireable<string>;
313
325
  download: PropTypes.Requireable<boolean>;
314
326
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
315
- onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
327
+ onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
316
328
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
317
329
  useButtonTag: PropTypes.Requireable<boolean>;
318
330
  style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
@@ -67,12 +67,12 @@ declare namespace SkillDetail {
67
67
  export const metrics: PropTypes.Requireable<PropTypes.InferProps<{
68
68
  score: PropTypes.Requireable<number>;
69
69
  questionsToReview: PropTypes.Requireable<number>;
70
+ totalContents: PropTypes.Requireable<number>;
70
71
  }>>;
71
72
  export const focused: PropTypes.Requireable<boolean>;
72
73
  export const availableForReview: PropTypes.Requireable<boolean>;
73
74
  const ongoingCoursesAvailable_1: PropTypes.Requireable<boolean>;
74
75
  export { ongoingCoursesAvailable_1 as ongoingCoursesAvailable };
75
- export const totalCourses: PropTypes.Requireable<number>;
76
76
  export const skillIncludedCourses: PropTypes.Requireable<PropTypes.InferProps<{
77
77
  list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
78
78
  customStyle: PropTypes.Requireable<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/index.js"],"names":[],"mappings":"AAeO,8EA+BN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYD,oEAoJC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/index.js"],"names":[],"mappings":"AAeO,8EA+BN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYD,oEAmJC"}
@@ -90,7 +90,6 @@ const SkillDetail = (props, context) => {
90
90
  focused,
91
91
  availableForReview,
92
92
  ongoingCoursesAvailable,
93
- totalCourses,
94
93
  skillIncludedCourses,
95
94
  filters,
96
95
  sorting,
@@ -101,7 +100,8 @@ const SkillDetail = (props, context) => {
101
100
  const descriptionRef = (0, _react.useRef)(null);
102
101
  const {
103
102
  score = 0,
104
- questionsToReview
103
+ questionsToReview,
104
+ totalContents
105
105
  } = metrics;
106
106
  const {
107
107
  translate
@@ -201,7 +201,7 @@ const SkillDetail = (props, context) => {
201
201
  content: skillIncludedCourses,
202
202
  filters: filters,
203
203
  sorting: sorting,
204
- totalContents: totalCourses
204
+ totalContents: totalContents
205
205
  })));
206
206
  };
207
207
 
@@ -215,12 +215,12 @@ SkillDetail.propTypes = process.env.NODE_ENV !== "production" ? {
215
215
  description: _propTypes.default.string,
216
216
  metrics: _propTypes.default.shape({
217
217
  score: _propTypes.default.number,
218
- questionsToReview: _propTypes.default.number
218
+ questionsToReview: _propTypes.default.number,
219
+ totalContents: _propTypes.default.number
219
220
  }),
220
221
  focused: _propTypes.default.bool,
221
222
  availableForReview: _propTypes.default.bool,
222
223
  ongoingCoursesAvailable: _propTypes.default.bool,
223
- totalCourses: _propTypes.default.number,
224
224
  skillIncludedCourses: _propTypes.default.shape(_cardsGrid.default.propTypes),
225
225
  filters: _propTypes.default.shape({
226
226
  onChange: _propTypes.default.func,