@coorpacademy/components 11.40.2-alpha.11.12 → 11.40.2-alpha.14.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 (101) hide show
  1. package/es/molecule/certification-card/index.d.ts +2 -1
  2. package/es/molecule/certification-card/index.d.ts.map +1 -1
  3. package/es/molecule/certification-card/index.js +3 -0
  4. package/es/molecule/certification-card/index.js.map +1 -1
  5. package/es/molecule/cm-popin/types.d.ts +1 -1
  6. package/es/molecule/learner-skill-card/index.d.ts +24 -25
  7. package/es/molecule/learner-skill-card/index.d.ts.map +1 -1
  8. package/es/molecule/learner-skill-card/index.js +28 -10
  9. package/es/molecule/learner-skill-card/index.js.map +1 -1
  10. package/es/molecule/playlist-card/index.d.ts +2 -1
  11. package/es/molecule/playlist-card/index.d.ts.map +1 -1
  12. package/es/molecule/playlist-card/index.js +3 -0
  13. package/es/molecule/playlist-card/index.js.map +1 -1
  14. package/es/molecule/skills-chart-side-information-item/index.d.ts.map +1 -1
  15. package/es/molecule/skills-chart-side-information-item/index.js +6 -1
  16. package/es/molecule/skills-chart-side-information-item/index.js.map +1 -1
  17. package/es/molecule/skills-chart-side-information-item/style.css +3 -0
  18. package/es/organism/cards-grid/index.d.ts +29 -1
  19. package/es/organism/cards-grid/index.d.ts.map +1 -1
  20. package/es/organism/cards-grid/index.js +23 -8
  21. package/es/organism/cards-grid/index.js.map +1 -1
  22. package/es/template/app-player/loading/index.d.ts +1 -1
  23. package/es/template/app-player/player/index.d.ts +2 -2
  24. package/es/template/app-player/player/slides/index.d.ts +1 -1
  25. package/es/template/app-player/popin-correction/index.d.ts +1 -1
  26. package/es/template/app-player/popin-end/index.d.ts +1 -1
  27. package/es/template/app-review/index.d.ts +1 -1
  28. package/es/template/app-review/player/prop-types.d.ts +1 -1
  29. package/es/template/app-review/prop-types.d.ts +1 -1
  30. package/es/template/back-office/brand-update/index.d.ts +1 -1
  31. package/es/template/certification-detail/index.d.ts +1 -1
  32. package/es/template/common/authors/index.d.ts +1 -1
  33. package/es/template/common/dashboard/index.d.ts +2 -2
  34. package/es/template/common/search-page/index.d.ts +49 -46
  35. package/es/template/common/search-page/style.css +3 -3
  36. package/es/template/external-course/index.d.ts +1 -1
  37. package/es/template/my-learning/index.d.ts.map +1 -1
  38. package/es/template/my-learning/index.js +6 -4
  39. package/es/template/my-learning/index.js.map +1 -1
  40. package/es/template/playlist-detail/index.d.ts +1 -1
  41. package/es/template/skill-detail/all-courses.d.ts +1 -1
  42. package/es/template/skill-detail/continue-learning.d.ts +1 -1
  43. package/es/template/skill-detail/index.d.ts +2 -2
  44. package/es/template/skill-detail/index.d.ts.map +1 -1
  45. package/es/template/skill-detail/index.js +3 -1
  46. package/es/template/skill-detail/index.js.map +1 -1
  47. package/lib/molecule/certification-card/index.d.ts +2 -1
  48. package/lib/molecule/certification-card/index.d.ts.map +1 -1
  49. package/lib/molecule/certification-card/index.js +3 -0
  50. package/lib/molecule/certification-card/index.js.map +1 -1
  51. package/lib/molecule/cm-popin/types.d.ts +1 -1
  52. package/lib/molecule/learner-skill-card/index.d.ts +24 -25
  53. package/lib/molecule/learner-skill-card/index.d.ts.map +1 -1
  54. package/lib/molecule/learner-skill-card/index.js +28 -10
  55. package/lib/molecule/learner-skill-card/index.js.map +1 -1
  56. package/lib/molecule/playlist-card/index.d.ts +2 -1
  57. package/lib/molecule/playlist-card/index.d.ts.map +1 -1
  58. package/lib/molecule/playlist-card/index.js +3 -0
  59. package/lib/molecule/playlist-card/index.js.map +1 -1
  60. package/lib/molecule/skills-chart-side-information-item/index.d.ts.map +1 -1
  61. package/lib/molecule/skills-chart-side-information-item/index.js +6 -1
  62. package/lib/molecule/skills-chart-side-information-item/index.js.map +1 -1
  63. package/lib/molecule/skills-chart-side-information-item/style.css +3 -0
  64. package/lib/organism/cards-grid/index.d.ts +29 -1
  65. package/lib/organism/cards-grid/index.d.ts.map +1 -1
  66. package/lib/organism/cards-grid/index.js +23 -8
  67. package/lib/organism/cards-grid/index.js.map +1 -1
  68. package/lib/template/app-player/loading/index.d.ts +1 -1
  69. package/lib/template/app-player/player/index.d.ts +2 -2
  70. package/lib/template/app-player/player/slides/index.d.ts +1 -1
  71. package/lib/template/app-player/popin-correction/index.d.ts +1 -1
  72. package/lib/template/app-player/popin-end/index.d.ts +1 -1
  73. package/lib/template/app-review/index.d.ts +1 -1
  74. package/lib/template/app-review/player/prop-types.d.ts +1 -1
  75. package/lib/template/app-review/prop-types.d.ts +1 -1
  76. package/lib/template/back-office/brand-update/index.d.ts +1 -1
  77. package/lib/template/certification-detail/index.d.ts +1 -1
  78. package/lib/template/common/authors/index.d.ts +1 -1
  79. package/lib/template/common/dashboard/index.d.ts +2 -2
  80. package/lib/template/common/search-page/index.d.ts +49 -46
  81. package/lib/template/common/search-page/style.css +3 -3
  82. package/lib/template/external-course/index.d.ts +1 -1
  83. package/lib/template/my-learning/index.d.ts.map +1 -1
  84. package/lib/template/my-learning/index.js +6 -4
  85. package/lib/template/my-learning/index.js.map +1 -1
  86. package/lib/template/playlist-detail/index.d.ts +1 -1
  87. package/lib/template/skill-detail/all-courses.d.ts +1 -1
  88. package/lib/template/skill-detail/continue-learning.d.ts +1 -1
  89. package/lib/template/skill-detail/index.d.ts +2 -2
  90. package/lib/template/skill-detail/index.d.ts.map +1 -1
  91. package/lib/template/skill-detail/index.js +3 -1
  92. package/lib/template/skill-detail/index.js.map +1 -1
  93. package/package.json +2 -2
  94. package/es/molecule/learner-skill-card/prop-types.d.ts +0 -37
  95. package/es/molecule/learner-skill-card/prop-types.d.ts.map +0 -1
  96. package/es/molecule/learner-skill-card/prop-types.js +0 -20
  97. package/es/molecule/learner-skill-card/prop-types.js.map +0 -1
  98. package/lib/molecule/learner-skill-card/prop-types.d.ts +0 -37
  99. package/lib/molecule/learner-skill-card/prop-types.d.ts.map +0 -1
  100. package/lib/molecule/learner-skill-card/prop-types.js +0 -25
  101. package/lib/molecule/learner-skill-card/prop-types.js.map +0 -1
@@ -1 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,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,WAAW,CAAC,EAAE;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,SAAS;YAAW,cAAc;;;;;;;;CAqCvC,CAAC;AAgBF,eAAe,SAAS,CAAC"}
@@ -2,11 +2,15 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
+ var _uniqueId2 = _interopRequireDefault(require("lodash/fp/uniqueId"));
5
6
  var _map2 = _interopRequireDefault(require("lodash/fp/map"));
6
7
  var _react = _interopRequireDefault(require("react"));
7
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
9
  var _card = _interopRequireDefault(require("../../molecule/card"));
9
10
  var _loader = _interopRequireDefault(require("../../atom/loader"));
11
+ var _certificationCard = _interopRequireDefault(require("../../molecule/certification-card"));
12
+ var _playlistCard = _interopRequireDefault(require("../../molecule/playlist-card"));
13
+ var _learnerSkillCard = _interopRequireDefault(require("../../molecule/learner-skill-card"));
10
14
  var _style = _interopRequireDefault(require("./style.css"));
11
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
16
  const CardsGrid = props => {
@@ -18,21 +22,32 @@ const CardsGrid = props => {
18
22
  const loader = loading ? /*#__PURE__*/_react.default.createElement("div", {
19
23
  className: _style.default.loader
20
24
  }, /*#__PURE__*/_react.default.createElement(_loader.default, null)) : null;
21
- const cards = (0, _map2.default)(cardProps => {
22
- return /*#__PURE__*/_react.default.createElement("div", {
23
- "data-name": "cardGrid",
24
- className: _style.default.card,
25
- key: cardProps.key
26
- }, /*#__PURE__*/_react.default.createElement(_card.default, cardProps));
27
- }, list);
25
+ const renderCardByType = cardProps => {
26
+ switch (cardProps.type) {
27
+ case 'skill':
28
+ return /*#__PURE__*/_react.default.createElement(_learnerSkillCard.default, cardProps);
29
+ case 'certification':
30
+ return /*#__PURE__*/_react.default.createElement(_certificationCard.default, cardProps);
31
+ case 'playlist':
32
+ return /*#__PURE__*/_react.default.createElement(_playlistCard.default, cardProps);
33
+ default:
34
+ return /*#__PURE__*/_react.default.createElement(_card.default, cardProps);
35
+ }
36
+ };
37
+ const cards = (0, _map2.default)(cardProps => /*#__PURE__*/_react.default.createElement("div", {
38
+ "data-name": "cardGrid",
39
+ className: _style.default.card,
40
+ key: (0, _uniqueId2.default)('card')
41
+ }, renderCardByType(cardProps)), list);
28
42
  return /*#__PURE__*/_react.default.createElement("div", {
29
43
  className: _style.default.defaultStyle,
30
44
  style: customStyle
31
45
  }, cards, loader);
32
46
  };
33
47
  CardsGrid.propTypes = process.env.NODE_ENV !== "production" ? {
48
+ list: _propTypes.default.arrayOf(_propTypes.default.oneOfType([
34
49
  // @ts-expect-error component is not typed & wrapped into memo
35
- list: _propTypes.default.arrayOf(_propTypes.default.shape(_card.default.propTypes)),
50
+ _propTypes.default.shape(_card.default.propTypes), _propTypes.default.shape(_learnerSkillCard.default.propTypes), _propTypes.default.shape(_certificationCard.default.propTypes), _propTypes.default.shape(_playlistCard.default.propTypes)])),
36
51
  customStyle: _propTypes.default.objectOf(_propTypes.default.string),
37
52
  loading: _propTypes.default.bool
38
53
  } : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_card","_loader","_style","e","__esModule","default","CardsGrid","props","list","customStyle","loading","loader","createElement","className","style","cards","_map2","cardProps","card","key","defaultStyle","propTypes","process","env","NODE_ENV","PropTypes","arrayOf","shape","Card","objectOf","string","bool","_default","exports"],"sources":["../../../src/organism/cards-grid/index.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Card from '../../molecule/card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nexport interface CardProps {\n key?: React.Key;\n badge?: string;\n image?: string;\n disabled?: boolean;\n adaptiv?: boolean;\n type?: string;\n title?: string;\n author?: string;\n certifiedAuthor?: boolean;\n customer?: Record<string, unknown>;\n progress: number;\n favorite?: boolean;\n addFavoriteToolTip?: string;\n removeFavoriteToolTip?: string;\n onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;\n onFavoriteClick?: () => void;\n isSelected?: boolean;\n notification?: Record<string, unknown>;\n badgeCategory?: string;\n badgeLabel?: string;\n theme?: 'default' | 'coorpmanager';\n disabledContent?: string;\n 'aria-label'?: string;\n 'background-aria-label'?: string;\n 'favorite-aria-label'?: string;\n 'selectable-aria-label'?: string;\n 'customer-aria-label'?: string;\n 'badge-aria-label'?: string;\n 'disabled-aria-label'?: string;\n 'card-content-aria-label'?: string;\n}\n\nexport interface CardsGridProps {\n list: CardProps[];\n customStyle?: Record<string, string>;\n loading?: boolean;\n}\n\nconst CardsGrid = (props: CardsGridProps) => {\n const {list = [], customStyle = {}, loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div data-name=\"cardGrid\" className={style.card} key={cardProps.key}>\n <Card {...cardProps} />\n </div>\n );\n }, list);\n\n return (\n <div className={style.defaultStyle} style={customStyle}>\n {cards}\n {loader}\n </div>\n );\n};\n\nCardsGrid.propTypes = {\n // @ts-expect-error component is not typed & wrapped into memo\n list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n customStyle: PropTypes.objectOf(PropTypes.string),\n loading: PropTypes.bool\n};\n\nexport default CardsGrid;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;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AACE,KAAK,CAACC,aAAI,CAACP,SAAS,CAAC,CAAC;EACxDZ,WAAW,EAAEgB,kBAAS,CAACI,QAAQ,CAACJ,kBAAS,CAACK,MAAM,CAAC;EACjDpB,OAAO,EAAEe,kBAAS,CAACM;AACrB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA5B,OAAA,GAEaC,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_card","_loader","_certificationCard","_playlistCard","_learnerSkillCard","_style","e","__esModule","default","CardsGrid","props","list","customStyle","loading","loader","createElement","className","style","renderCardByType","cardProps","type","cards","_map2","card","key","_uniqueId2","defaultStyle","propTypes","process","env","NODE_ENV","PropTypes","arrayOf","oneOfType","shape","Card","LearnerSkillCard","CertificationCard","PlaylistCard","objectOf","string","bool","_default","exports"],"sources":["../../../src/organism/cards-grid/index.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, uniqueId} from 'lodash/fp';\nimport Card from '../../molecule/card';\nimport Loader from '../../atom/loader';\nimport CertificationCard from '../../molecule/certification-card';\nimport PlaylistCard from '../../molecule/playlist-card';\nimport LearnerSkillCard from '../../molecule/learner-skill-card';\nimport style from './style.css';\n\nexport interface CardProps {\n key?: React.Key;\n badge?: string;\n image?: string;\n disabled?: boolean;\n adaptiv?: boolean;\n type?: string;\n title?: string;\n author?: string;\n certifiedAuthor?: boolean;\n customer?: Record<string, unknown>;\n progress: number;\n favorite?: boolean;\n addFavoriteToolTip?: string;\n removeFavoriteToolTip?: string;\n onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;\n onFavoriteClick?: () => void;\n isSelected?: boolean;\n notification?: Record<string, unknown>;\n badgeCategory?: string;\n badgeLabel?: string;\n theme?: 'default' | 'coorpmanager';\n disabledContent?: string;\n 'aria-label'?: string;\n 'background-aria-label'?: string;\n 'favorite-aria-label'?: string;\n 'selectable-aria-label'?: string;\n 'customer-aria-label'?: string;\n 'badge-aria-label'?: string;\n 'disabled-aria-label'?: string;\n 'card-content-aria-label'?: string;\n cardIndex?: number;\n focus?: boolean;\n metrics?: {\n content?: number;\n questionsToReview?: number;\n };\n icon?: {\n color: string;\n name: string;\n };\n label?: string;\n goal?: {\n title?: string;\n condition?: {\n nbDone?: number;\n };\n };\n imgUrl?: string;\n locales?: {\n conditionDescriptionProgress?: string;\n tag?: string;\n playlistTag?: string;\n coursesLabel?: string;\n };\n coverImages?: {\n url: string;\n title: string;\n }[];\n}\n\nexport interface CardsGridProps {\n list: CardProps[];\n customStyle?: Record<string, string>;\n loading?: boolean;\n}\n\nconst CardsGrid = (props: CardsGridProps) => {\n const {list = [], customStyle = {}, loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const renderCardByType = (cardProps: any) => {\n switch (cardProps.type) {\n case 'skill':\n return <LearnerSkillCard {...cardProps} />;\n case 'certification':\n return <CertificationCard {...cardProps} />;\n case 'playlist':\n return <PlaylistCard {...cardProps} />;\n default:\n return <Card {...cardProps} />;\n }\n };\n\n const cards = map(\n cardProps => (\n <div data-name=\"cardGrid\" className={style.card} key={uniqueId('card')}>\n {renderCardByType(cardProps)}\n </div>\n ),\n list\n );\n\n return (\n <div className={style.defaultStyle} style={customStyle}>\n {cards}\n {loader}\n </div>\n );\n};\n\nCardsGrid.propTypes = {\n list: PropTypes.arrayOf(\n PropTypes.oneOfType([\n // @ts-expect-error component is not typed & wrapped into memo\n PropTypes.shape(Card.propTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes)\n ])\n ),\n customStyle: PropTypes.objectOf(PropTypes.string),\n loading: PropTypes.bool\n};\n\nexport default CardsGrid;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,KAAA,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SAAY,CAAC;IAClC;EACF,CAAC;EAED,MAAME,KAAK,GAAG,IAAAC,KAAA,CAAAd,OAAA,EACZW,SAAS,iBACPvB,MAAA,CAAAY,OAAA,CAAAO,aAAA;IAAK,aAAU,UAAU;IAACC,SAAS,EAAEC,cAAK,CAACM,IAAK;IAACC,GAAG,EAAE,IAAAC,UAAA,CAAAjB,OAAA,EAAS,MAAM;EAAE,GACpEU,gBAAgB,CAACC,SAAS,CACxB,CACN,EACDR,IACF,CAAC;EAED,oBACEf,MAAA,CAAAY,OAAA,CAAAO,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAACS,YAAa;IAACT,KAAK,EAAEL;EAAY,GACpDS,KAAK,EACLP,MACE,CAAC;AAEV,CAAC;AAEDL,SAAS,CAACkB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACpBnB,IAAI,EAAEoB,kBAAS,CAACC,OAAO,CACrBD,kBAAS,CAACE,SAAS,CAAC;EAClB;EACAF,kBAAS,CAACG,KAAK,CAACC,aAAI,CAACR,SAAS,CAAC,EAC/BI,kBAAS,CAACG,KAAK,CAACE,yBAAgB,CAACT,SAAS,CAAC,EAC3CI,kBAAS,CAACG,KAAK,CAACG,0BAAiB,CAACV,SAAS,CAAC,EAC5CI,kBAAS,CAACG,KAAK,CAACI,qBAAY,CAACX,SAAS,CAAC,CACxC,CACH,CAAC;EACDf,WAAW,EAAEmB,kBAAS,CAACQ,QAAQ,CAACR,kBAAS,CAACS,MAAM,CAAC;EACjD3B,OAAO,EAAEkB,kBAAS,CAACU;AACrB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAnC,OAAA,GAEaC,SAAS","ignoreList":[]}
@@ -155,7 +155,7 @@ declare namespace PlayerLoading {
155
155
  items: PropTypes.Requireable<PropTypes.InferProps<{
156
156
  type: PropTypes.Requireable<string>;
157
157
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
158
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
158
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
159
159
  customStyle: PropTypes.Requireable<{
160
160
  [x: string]: string | null | undefined;
161
161
  }>;
@@ -206,7 +206,7 @@ declare namespace SlidePlayer {
206
206
  items: PropTypes.Requireable<PropTypes.InferProps<{
207
207
  type: PropTypes.Requireable<string>;
208
208
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
209
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
209
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
210
210
  customStyle: PropTypes.Requireable<{
211
211
  [x: string]: string | null | undefined;
212
212
  }>;
@@ -1014,7 +1014,7 @@ declare namespace SlidePlayer {
1014
1014
  items: PropTypes.Requireable<PropTypes.InferProps<{
1015
1015
  type: PropTypes.Requireable<string>;
1016
1016
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
1017
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
1017
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
1018
1018
  customStyle: PropTypes.Requireable<{
1019
1019
  [x: string]: string | null | undefined;
1020
1020
  }>;
@@ -212,7 +212,7 @@ declare namespace SlidesPlayer {
212
212
  items: PropTypes.Requireable<PropTypes.InferProps<{
213
213
  type: PropTypes.Requireable<string>;
214
214
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
215
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
215
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
216
216
  customStyle: PropTypes.Requireable<{
217
217
  [x: string]: string | null | undefined;
218
218
  }>;
@@ -242,7 +242,7 @@ declare class PopinCorrection extends React.Component<any, any, any> {
242
242
  items: PropTypes.Requireable<PropTypes.InferProps<{
243
243
  type: PropTypes.Requireable<string>;
244
244
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
245
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
245
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
246
246
  customStyle: PropTypes.Requireable<{
247
247
  [x: string]: string | null | undefined;
248
248
  }>;
@@ -342,7 +342,7 @@ declare namespace PopinEnd {
342
342
  items: PropTypes.Requireable<PropTypes.InferProps<{
343
343
  type: PropTypes.Requireable<string>;
344
344
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
345
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
345
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
346
346
  customStyle: PropTypes.Requireable<{
347
347
  [x: string]: string | null | undefined;
348
348
  }>;
@@ -663,7 +663,7 @@ declare const AppReview: {
663
663
  items: import("prop-types").Requireable<import("prop-types").InferProps<{
664
664
  type: import("prop-types").Requireable<string>;
665
665
  list: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
666
- list: import("prop-types").Requireable<(import("prop-types").InferProps<any> | null | undefined)[]>;
666
+ list: import("prop-types").Requireable<((import("prop-types").InferPropsInner<Pick<any, any>> & Partial<import("prop-types").InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
667
667
  customStyle: import("prop-types").Requireable<{
668
668
  [x: string]: string | null | undefined;
669
669
  }>;
@@ -664,7 +664,7 @@ declare const propTypes: {
664
664
  items: PropTypes.Requireable<PropTypes.InferProps<{
665
665
  type: PropTypes.Requireable<string>;
666
666
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
667
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
667
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
668
668
  customStyle: PropTypes.Requireable<{
669
669
  [x: string]: string | null | undefined;
670
670
  }>;
@@ -668,7 +668,7 @@ declare const propTypes: {
668
668
  items: PropTypes.Requireable<PropTypes.InferProps<{
669
669
  type: PropTypes.Requireable<string>;
670
670
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
671
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
671
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
672
672
  customStyle: PropTypes.Requireable<{
673
673
  [x: string]: string | null | undefined;
674
674
  }>;
@@ -1885,7 +1885,7 @@ declare namespace BrandUpdate {
1885
1885
  items: PropTypes.Requireable<PropTypes.InferProps<{
1886
1886
  type: PropTypes.Requireable<string>;
1887
1887
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
1888
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
1888
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
1889
1889
  customStyle: PropTypes.Requireable<{
1890
1890
  [x: string]: string | null | undefined;
1891
1891
  }>;
@@ -42,7 +42,7 @@ declare namespace CertificationDetail {
42
42
  const badgeUrl: PropTypes.Requireable<string>;
43
43
  const ongoingCoursesAvailable: PropTypes.Requireable<boolean>;
44
44
  const certificationCourses: PropTypes.Requireable<PropTypes.InferProps<{
45
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
45
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
46
46
  customStyle: PropTypes.Requireable<{
47
47
  [x: string]: string | null | undefined;
48
48
  }>;
@@ -2,7 +2,7 @@ export default Authors;
2
2
  declare class Authors extends React.Component<any, any, any> {
3
3
  static propTypes: {
4
4
  cards: PropTypes.Requireable<PropTypes.InferProps<{
5
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
5
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
6
6
  customStyle: PropTypes.Requireable<{
7
7
  [x: string]: string | null | undefined;
8
8
  }>;
@@ -159,7 +159,7 @@ declare namespace Dashboard {
159
159
  items: PropTypes.Requireable<PropTypes.InferProps<{
160
160
  type: PropTypes.Requireable<string>;
161
161
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
162
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
162
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
163
163
  customStyle: PropTypes.Requireable<{
164
164
  [x: string]: string | null | undefined;
165
165
  }>;
@@ -970,7 +970,7 @@ declare namespace Dashboard {
970
970
  items: PropTypes.Requireable<PropTypes.InferProps<{
971
971
  type: PropTypes.Requireable<string>;
972
972
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
973
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
973
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
974
974
  customStyle: PropTypes.Requireable<{
975
975
  [x: string]: string | null | undefined;
976
976
  }>;
@@ -79,7 +79,7 @@ declare namespace SearchPage {
79
79
  sortAriaLabel: PropTypes.Requireable<string>;
80
80
  }>>;
81
81
  const cards: PropTypes.Requireable<PropTypes.InferProps<{
82
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
82
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
83
83
  customStyle: PropTypes.Requireable<{
84
84
  [x: string]: string | null | undefined;
85
85
  }>;
@@ -342,7 +342,7 @@ declare namespace SearchPage {
342
342
  items: PropTypes.Requireable<PropTypes.InferProps<{
343
343
  type: PropTypes.Requireable<string>;
344
344
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
345
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
345
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
346
346
  customStyle: PropTypes.Requireable<{
347
347
  [x: string]: string | null | undefined;
348
348
  }>;
@@ -1002,6 +1002,53 @@ declare namespace SearchPage {
1002
1002
  [x: string]: PropTypes.InferProps<{
1003
1003
  title: PropTypes.Requireable<string>;
1004
1004
  cards: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
1005
+ type: PropTypes.Validator<string>;
1006
+ title: PropTypes.Validator<string>;
1007
+ label: PropTypes.Requireable<string>;
1008
+ 'aria-label': PropTypes.Requireable<string>;
1009
+ cardIndex: PropTypes.Requireable<number>;
1010
+ focus: PropTypes.Requireable<boolean>;
1011
+ progress: PropTypes.Requireable<number>;
1012
+ metrics: PropTypes.Requireable<PropTypes.InferProps<{
1013
+ content: PropTypes.Requireable<number>;
1014
+ questionsToReview: PropTypes.Requireable<number>;
1015
+ }>>;
1016
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
1017
+ color: PropTypes.Requireable<string>;
1018
+ name: PropTypes.Requireable<string>;
1019
+ }>>;
1020
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
1021
+ }> | PropTypes.InferProps<{
1022
+ type: PropTypes.Validator<string>;
1023
+ label: PropTypes.Requireable<string>;
1024
+ goal: PropTypes.Requireable<PropTypes.InferProps<{
1025
+ title: PropTypes.Requireable<string>;
1026
+ condition: PropTypes.Requireable<PropTypes.InferProps<{
1027
+ nbDone: PropTypes.Requireable<number>;
1028
+ }>>;
1029
+ }>>;
1030
+ progress: PropTypes.Requireable<number>;
1031
+ imgUrl: PropTypes.Requireable<string>;
1032
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
1033
+ locales: PropTypes.Requireable<PropTypes.InferProps<{
1034
+ conditionDescriptionProgress: PropTypes.Requireable<string>;
1035
+ tag: PropTypes.Requireable<string>;
1036
+ }>>;
1037
+ }> | PropTypes.InferProps<{
1038
+ type: PropTypes.Validator<string>;
1039
+ label: PropTypes.Requireable<string>;
1040
+ title: PropTypes.Validator<string>;
1041
+ progress: PropTypes.Requireable<number>;
1042
+ coverImages: PropTypes.Validator<(PropTypes.InferProps<{
1043
+ type: PropTypes.Requireable<string>;
1044
+ image: PropTypes.Requireable<string>;
1045
+ }> | null | undefined)[]>;
1046
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
1047
+ locales: PropTypes.Requireable<PropTypes.InferProps<{
1048
+ playlistTag: PropTypes.Requireable<string>;
1049
+ coursesLabel: PropTypes.Requireable<string>;
1050
+ }>>;
1051
+ }> | PropTypes.InferProps<{
1005
1052
  badge: PropTypes.Requireable<string>;
1006
1053
  image: PropTypes.Requireable<string>;
1007
1054
  disabled: PropTypes.Requireable<boolean>;
@@ -1057,50 +1104,6 @@ declare namespace SearchPage {
1057
1104
  tagLabel: PropTypes.Requireable<string>;
1058
1105
  progression: PropTypes.Requireable<number>;
1059
1106
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
1060
- }> | PropTypes.InferProps<{
1061
- label: PropTypes.Requireable<string>;
1062
- goal: PropTypes.Requireable<PropTypes.InferProps<{
1063
- title: PropTypes.Requireable<string>;
1064
- condition: PropTypes.Requireable<PropTypes.InferProps<{
1065
- nbDone: PropTypes.Requireable<number>;
1066
- }>>;
1067
- }>>;
1068
- progress: PropTypes.Requireable<number>;
1069
- imgUrl: PropTypes.Requireable<string>;
1070
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
1071
- locales: PropTypes.Requireable<PropTypes.InferProps<{
1072
- conditionDescriptionProgress: PropTypes.Requireable<string>;
1073
- tag: PropTypes.Requireable<string>;
1074
- }>>;
1075
- }> | PropTypes.InferProps<{
1076
- 'aria-label': PropTypes.Requireable<string>;
1077
- cardIndex: PropTypes.Requireable<number>;
1078
- skillTitle: PropTypes.Requireable<string>;
1079
- skillAriaLabel: PropTypes.Requireable<string>;
1080
- focus: PropTypes.Requireable<boolean>;
1081
- metrics: PropTypes.Requireable<PropTypes.InferProps<{
1082
- content: PropTypes.Requireable<number>;
1083
- score: PropTypes.Requireable<number>;
1084
- questionsToReview: PropTypes.Requireable<number>;
1085
- }>>;
1086
- icon: PropTypes.Requireable<PropTypes.InferProps<{
1087
- color: PropTypes.Requireable<string>;
1088
- name: PropTypes.Requireable<string>;
1089
- }>>;
1090
- onExploreClick: PropTypes.Requireable<(...args: any[]) => any>;
1091
- }> | PropTypes.InferProps<{
1092
- label: PropTypes.Requireable<string>;
1093
- title: PropTypes.Validator<string>;
1094
- progress: PropTypes.Requireable<number>;
1095
- coverImages: PropTypes.Validator<(PropTypes.InferProps<{
1096
- type: PropTypes.Requireable<string>;
1097
- image: PropTypes.Requireable<string>;
1098
- }> | null | undefined)[]>;
1099
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
1100
- locales: PropTypes.Requireable<PropTypes.InferProps<{
1101
- playlistTag: PropTypes.Requireable<string>;
1102
- coursesLabel: PropTypes.Requireable<string>;
1103
- }>>;
1104
1107
  }> | null | undefined> | null | undefined)[]>;
1105
1108
  showMore: PropTypes.Requireable<string>;
1106
1109
  onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
@@ -80,7 +80,7 @@
80
80
  }
81
81
 
82
82
  .sectionHeader {
83
- max-width: 1080px;
83
+ max-width: 1100px;
84
84
  margin: auto;
85
85
  padding: 16px 30px 8px;
86
86
  box-sizing: border-box;
@@ -105,14 +105,14 @@
105
105
  .contentSection .sectionHeader {
106
106
  padding: 0;
107
107
  margin: 16px auto 8px auto;
108
- max-width: 1080px;
108
+ max-width: 1100px;
109
109
  display: flex;
110
110
  line-height: 20px;
111
111
  align-items: start;
112
112
  }
113
113
 
114
114
  .contentGrid {
115
- max-width: 1090px;
115
+ max-width: 1100px;
116
116
  width: 100%;
117
117
  margin: auto 0 auto -8px;
118
118
  box-sizing: border-box;
@@ -177,7 +177,7 @@ declare namespace ExternalCourse {
177
177
  items: PropTypes.Requireable<PropTypes.InferProps<{
178
178
  type: PropTypes.Requireable<string>;
179
179
  list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
180
- list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
180
+ list: PropTypes.Requireable<((PropTypes.InferPropsInner<Pick<any, any>> & Partial<PropTypes.InferPropsInner<Pick<any, never>>>) | null | undefined)[]>;
181
181
  customStyle: PropTypes.Requireable<{
182
182
  [x: string]: string | null | undefined;
183
183
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-learning/index.js"],"names":[],"mappings":";AAqHA,mEAwZC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-learning/index.js"],"names":[],"mappings":";AAqHA,mEA0ZC"}
@@ -179,7 +179,9 @@ const MyLearning = (props, context) => {
179
179
  backgroundColor: _colors.COLORS.pink_100
180
180
  }
181
181
  }, {
182
- title: translate('skill_chart_side_panel_questions_to_review'),
182
+ title: translate('skill_chart_side_panel_questions_to_review', {
183
+ count: ''
184
+ }),
183
185
  value: `${questionsToReviewData}`,
184
186
  legend: skillChartPaneLegends,
185
187
  icon: {
@@ -403,11 +405,11 @@ const MyLearning = (props, context) => {
403
405
  return /*#__PURE__*/_react.default.createElement("div", {
404
406
  key: index
405
407
  }, /*#__PURE__*/_react.default.createElement(_learnerSkillCard.default, {
406
- skillTitle: skillsLocales[skill],
408
+ title: skillsLocales[skill],
407
409
  cardIndex: index,
408
410
  focus: selectedSkills.includes(skill),
411
+ progress: score,
409
412
  metrics: {
410
- score,
411
413
  content,
412
414
  questionsToReview
413
415
  },
@@ -415,7 +417,7 @@ const MyLearning = (props, context) => {
415
417
  color,
416
418
  name
417
419
  },
418
- onExploreClick: handleExploreSkill
420
+ onClick: handleExploreSkill
419
421
  }));
420
422
  }))));
421
423
  };