@coorpacademy/components 11.32.32 → 11.32.33-alpha.27
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.
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +2 -1
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +1 -0
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/icon/index.d.ts.map +1 -1
- package/es/atom/icon/index.js +7 -3
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +2 -1
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +2 -1
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/tag/index.d.ts +4 -2
- package/es/atom/tag/index.d.ts.map +1 -1
- package/es/atom/tag/index.js +27 -7
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/tag/style.css +7 -0
- package/es/atom/title/index.d.ts +2 -1
- package/es/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/es/molecule/bulk-progress-bar/index.js +2 -1
- package/es/molecule/bulk-progress-bar/index.js.map +1 -1
- package/es/molecule/bulk-progress-bar/style.css +0 -4
- package/es/molecule/cm-popin/types.d.ts +2 -1
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/progress-bar/index.d.ts +1 -0
- package/es/molecule/progress-bar/index.d.ts.map +1 -1
- package/es/molecule/progress-bar/index.js +6 -4
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/progress-wrapper/index.d.ts +29 -0
- package/es/molecule/progress-wrapper/index.d.ts.map +1 -0
- package/es/molecule/progress-wrapper/index.js +200 -0
- package/es/molecule/progress-wrapper/index.js.map +1 -0
- package/es/molecule/progress-wrapper/style.css +185 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/index.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/rewards-form/index.d.ts +2 -1
- package/es/organism/select-opponents/index.d.ts +2 -1
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +2 -1
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +4 -2
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +4 -2
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +2 -1
- package/es/template/activity/progression-item.css +0 -4
- package/es/template/activity/progression-item.d.ts.map +1 -1
- package/es/template/activity/progression-item.js +2 -1
- package/es/template/activity/progression-item.js.map +1 -1
- package/es/template/app-player/loading/index.d.ts +2 -1
- package/es/template/app-player/player/index.d.ts +4 -2
- package/es/template/app-player/player/slides/index.d.ts +2 -1
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +2 -1
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +2 -1
- package/es/template/app-review/index.d.ts +2 -1
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +2 -1
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +2 -1
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +2 -1
- package/es/template/certification-detail/index.d.ts +105 -0
- package/es/template/certification-detail/index.d.ts.map +1 -0
- package/es/template/certification-detail/index.js +158 -0
- package/es/template/certification-detail/index.js.map +1 -0
- package/es/template/certification-detail/style.css +130 -0
- package/es/template/common/dashboard/index.d.ts +4 -2
- package/es/template/common/search-page/index.d.ts +2 -1
- package/es/template/external-course/index.d.ts +2 -1
- package/es/template/playlist-detail/index.d.ts.map +1 -1
- package/es/template/playlist-detail/index.js +4 -2
- package/es/template/playlist-detail/index.js.map +1 -1
- package/es/template/playlist-detail/style.css +5 -0
- package/es/template/skill-detail/all-courses.css +6 -6
- package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/es/template/skill-detail/continue-learning.js +3 -2
- package/es/template/skill-detail/continue-learning.js.map +1 -1
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +2 -1
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +1 -0
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/icon/index.d.ts.map +1 -1
- package/lib/atom/icon/index.js +7 -3
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +2 -1
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +2 -1
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/tag/index.d.ts +4 -2
- package/lib/atom/tag/index.d.ts.map +1 -1
- package/lib/atom/tag/index.js +28 -7
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/tag/style.css +7 -0
- package/lib/atom/title/index.d.ts +2 -1
- package/lib/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/bulk-progress-bar/index.js +2 -1
- package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
- package/lib/molecule/bulk-progress-bar/style.css +0 -4
- package/lib/molecule/cm-popin/types.d.ts +2 -1
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/progress-bar/index.d.ts +1 -0
- package/lib/molecule/progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/progress-bar/index.js +6 -4
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/index.d.ts +29 -0
- package/lib/molecule/progress-wrapper/index.d.ts.map +1 -0
- package/lib/molecule/progress-wrapper/index.js +221 -0
- package/lib/molecule/progress-wrapper/index.js.map +1 -0
- package/lib/molecule/progress-wrapper/style.css +185 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/rewards-form/index.d.ts +2 -1
- package/lib/organism/select-opponents/index.d.ts +2 -1
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +2 -1
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +4 -2
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +4 -2
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +2 -1
- package/lib/template/activity/progression-item.css +0 -4
- package/lib/template/activity/progression-item.d.ts.map +1 -1
- package/lib/template/activity/progression-item.js +2 -1
- package/lib/template/activity/progression-item.js.map +1 -1
- package/lib/template/app-player/loading/index.d.ts +2 -1
- package/lib/template/app-player/player/index.d.ts +4 -2
- package/lib/template/app-player/player/slides/index.d.ts +2 -1
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +2 -1
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +2 -1
- package/lib/template/app-review/index.d.ts +2 -1
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +2 -1
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +2 -1
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +2 -1
- package/lib/template/certification-detail/index.d.ts +105 -0
- package/lib/template/certification-detail/index.d.ts.map +1 -0
- package/lib/template/certification-detail/index.js +186 -0
- package/lib/template/certification-detail/index.js.map +1 -0
- package/lib/template/certification-detail/style.css +130 -0
- package/lib/template/common/dashboard/index.d.ts +4 -2
- package/lib/template/common/search-page/index.d.ts +2 -1
- package/lib/template/external-course/index.d.ts +2 -1
- package/lib/template/playlist-detail/index.d.ts.map +1 -1
- package/lib/template/playlist-detail/index.js +4 -2
- package/lib/template/playlist-detail/index.js.map +1 -1
- package/lib/template/playlist-detail/style.css +5 -0
- package/lib/template/skill-detail/all-courses.css +6 -6
- package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/lib/template/skill-detail/continue-learning.js +3 -2
- package/lib/template/skill-detail/continue-learning.js.map +1 -1
- package/locales/bs/global.json +8 -0
- package/locales/cs/global.json +8 -0
- package/locales/de/global.json +8 -0
- package/locales/en/global.json +8 -0
- package/locales/es/global.json +8 -0
- package/locales/et/global.json +8 -0
- package/locales/fi/global.json +8 -0
- package/locales/fr/global.json +8 -0
- package/locales/hr/global.json +8 -0
- package/locales/hu/global.json +8 -0
- package/locales/hy/global.json +8 -0
- package/locales/it/global.json +8 -0
- package/locales/ja/global.json +8 -0
- package/locales/ko/global.json +8 -0
- package/locales/nl/global.json +8 -0
- package/locales/pl/global.json +8 -0
- package/locales/pt/global.json +8 -0
- package/locales/ro/global.json +8 -0
- package/locales/ru/global.json +8 -0
- package/locales/sk/global.json +8 -0
- package/locales/sl/global.json +8 -0
- package/locales/sv/global.json +8 -0
- package/locales/tl/global.json +8 -0
- package/locales/tr/global.json +8 -0
- package/locales/uk/global.json +8 -0
- package/locales/vi/global.json +8 -0
- package/locales/zh/global.json +8 -0
- package/locales/zh_TW/global.json +8 -0
- package/package.json +2 -2
|
@@ -16,8 +16,9 @@ declare const TitleAndInput: {
|
|
|
16
16
|
type: import("prop-types").Requireable<string>;
|
|
17
17
|
size: import("prop-types").Requireable<string>;
|
|
18
18
|
customStyle: import("prop-types").Requireable<{
|
|
19
|
-
[x: string]: string | null | undefined;
|
|
19
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
20
20
|
}>;
|
|
21
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
|
|
21
22
|
}>>;
|
|
22
23
|
}>>>;
|
|
23
24
|
field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
@@ -80,8 +81,9 @@ declare const TitleAndInput: {
|
|
|
80
81
|
type: import("prop-types").Requireable<string>;
|
|
81
82
|
size: import("prop-types").Requireable<string>;
|
|
82
83
|
customStyle: import("prop-types").Requireable<{
|
|
83
|
-
[x: string]: string | null | undefined;
|
|
84
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
84
85
|
}>;
|
|
86
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
|
|
85
87
|
}>>;
|
|
86
88
|
}>>;
|
|
87
89
|
child: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -17,8 +17,9 @@ declare const propTypes: {
|
|
|
17
17
|
type: PropTypes.Requireable<string>;
|
|
18
18
|
size: PropTypes.Requireable<string>;
|
|
19
19
|
customStyle: PropTypes.Requireable<{
|
|
20
|
-
[x: string]: string | null | undefined;
|
|
20
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
21
21
|
}>;
|
|
22
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
22
23
|
}>>;
|
|
23
24
|
}>>>;
|
|
24
25
|
field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -81,8 +82,9 @@ declare const propTypes: {
|
|
|
81
82
|
type: PropTypes.Requireable<string>;
|
|
82
83
|
size: PropTypes.Requireable<string>;
|
|
83
84
|
customStyle: PropTypes.Requireable<{
|
|
84
|
-
[x: string]: string | null | undefined;
|
|
85
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
85
86
|
}>;
|
|
87
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
86
88
|
}>>;
|
|
87
89
|
}>>;
|
|
88
90
|
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQd,CAAC;AACF,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,EACD,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAC3C,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,GACzC,oBAAoB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -296,8 +296,9 @@ declare namespace WizardContents {
|
|
|
296
296
|
type: PropTypes.Requireable<string>;
|
|
297
297
|
size: PropTypes.Requireable<string>;
|
|
298
298
|
customStyle: PropTypes.Requireable<{
|
|
299
|
-
[x: string]: string | null | undefined;
|
|
299
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
300
300
|
}>;
|
|
301
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
301
302
|
}>>;
|
|
302
303
|
}>>;
|
|
303
304
|
child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progression-item.d.ts","sourceRoot":"","sources":["../../../src/template/activity/progression-item.js"],"names":[],"mappings":";AAmCA,
|
|
1
|
+
{"version":3,"file":"progression-item.d.ts","sourceRoot":"","sources":["../../../src/template/activity/progression-item.js"],"names":[],"mappings":";AAmCA,8EA2FC"}
|
|
@@ -134,7 +134,8 @@ const ProgressionItem = (props, legacyContext) => {
|
|
|
134
134
|
style: {
|
|
135
135
|
backgroundColor: primary,
|
|
136
136
|
borderRadius: 0
|
|
137
|
-
}
|
|
137
|
+
},
|
|
138
|
+
displayInfo: false
|
|
138
139
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
139
140
|
className: _progressionItem.default.state
|
|
140
141
|
}, link, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progression-item.js","names":["ICONS","chapter","TimerIcon","course","LearnerIcon","battle","BoltIcon","certification","CertificationIcon","article","ArticleIcon","scorm","ScormIcon","video","VideoIcon","podcast","PodcastIcon","review","RevisionIcon","ProgressionItem","props","legacyContext","skin","GetSkinFromContext","disabled","adaptive","completion","label","level","onClick","stars","maxStars","state","type","steps","adaptiveAriaLabel","dark","primary","white","IconType","adaptiveIcon","style","backgroundColor","color","handleCTAClick","useMemo","e","stopPropagation","preventDefault","link","cta","classnames","progressionItem","wrapperTitle","iconType","innerHTML","__html","smallStars","iconStar","borderRadius","propTypes","PropTypes","number","isRequired","bool","string","func","contextTypes","Provider","childContextTypes"],"sources":["../../../src/template/activity/progression-item.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationArrowRight as ArrowRightIcon,\n NovaCompositionCoorpacademyStar as StarIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon,\n NovaCompositionCoorpacademyBolt as BoltIcon,\n NovaSolidSchoolScienceGraduationHat as CertificationIcon,\n NovaCompositionCoorpacademyAdaptive as AdaptiveIcon,\n NovaSolidContentContentBook1 as LearnerIcon,\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon,\n NovaCompositionCoorpacademyRevision as RevisionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\nimport ProgressBar from '../../molecule/progress-bar';\nimport Link from '../../atom/link';\nimport style from './progression-item.css';\n\nconst ICONS = {\n chapter: TimerIcon,\n course: LearnerIcon,\n battle: BoltIcon,\n certification: CertificationIcon,\n article: ArticleIcon,\n scorm: ScormIcon,\n video: VideoIcon,\n podcast: PodcastIcon,\n review: RevisionIcon\n};\n\nconst ProgressionItem = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const {\n disabled = false,\n adaptive,\n completion,\n label,\n level,\n onClick = noop,\n stars,\n maxStars,\n state,\n type,\n steps = 0,\n adaptiveAriaLabel\n } = props;\n\n const dark = get('common.dark', skin);\n const primary = get('common.primary', skin);\n const white = get('common.white', skin);\n const IconType = ICONS[type];\n\n const adaptiveIcon = adaptive ? (\n <div\n className={style.adaptiveIcon}\n style={{\n backgroundColor: primary\n }}\n >\n <AdaptiveIcon style={{color: white}} height={14} aria-label={adaptiveAriaLabel} />\n </div>\n ) : null;\n\n const handleCTAClick = useMemo(\n () => e => {\n e.stopPropagation();\n e.preventDefault();\n onClick(e);\n },\n [onClick]\n );\n\n const link = disabled ? null : (\n <Link style={{color: primary}} onClick={handleCTAClick} data-progression-state={state}>\n <span className={style.cta}>\n {state} <ArrowRightIcon style={{color: primary}} height={12} width={20} />\n </span>\n </Link>\n );\n\n return (\n <div className={classnames(style.progressionItem, disabled ? style.disabled : '')}>\n <div className={style.wrapperTitle}>\n <IconType className={style.iconType} style={{color: dark}} />\n <div data-name=\"activityLabel\" className={style.label} title={label}>\n <div\n className={style.innerHTML}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: label}}\n />\n {adaptiveIcon}\n </div>\n\n <div\n data-name=\"activityStars\"\n role=\"progressbar\"\n className={style.stars}\n style={{\n color: primary\n }}\n >\n {stars}\n {maxStars ? ' /' : null}\n {maxStars ? <span className={style.smallStars}>{maxStars}</span> : null}{' '}\n <StarIcon className={style.iconStar} style={{color: primary}} />\n </div>\n </div>\n <ProgressBar\n className={style.completion}\n value={completion * 100}\n max={100}\n steps={steps}\n style={{backgroundColor: primary, borderRadius: 0}}\n />\n <div className={style.state}>\n {link}\n <span className={style.level}>{level}</span>\n </div>\n </div>\n );\n};\n\nProgressionItem.propTypes = {\n completion: PropTypes.number.isRequired,\n stars: PropTypes.number.isRequired,\n maxStars: PropTypes.number,\n steps: PropTypes.number,\n disabled: PropTypes.bool,\n label: PropTypes.string.isRequired,\n level: PropTypes.string.isRequired,\n state: PropTypes.string.isRequired,\n adaptiveAriaLabel: PropTypes.string,\n type: PropTypes.string.isRequired,\n adaptive: PropTypes.bool.isRequired,\n onClick: PropTypes.func\n};\n\nProgressionItem.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default ProgressionItem;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAcA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,OAAO,EAAEC,2CADG;EAEZC,MAAM,EAAEC,uCAFI;EAGZC,MAAM,EAAEC,0CAHI;EAIZC,aAAa,EAAEC,8CAJH;EAKZC,OAAO,EAAEC,6CALG;EAMZC,KAAK,EAAEC,2CANK;EAOZC,KAAK,EAAEC,2CAPK;EAQZC,OAAO,EAAEC,gDARG;EASZC,MAAM,EAAEC;AATI,CAAd;;AAYA,MAAMC,eAAe,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;EAChD,MAAMC,IAAI,GAAG,IAAAC,4BAAA,EAAmBF,aAAnB,CAAb;EACA,MAAM;IACJG,QAAQ,GAAG,KADP;IAEJC,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":["ICONS","chapter","TimerIcon","course","LearnerIcon","battle","BoltIcon","certification","CertificationIcon","article","ArticleIcon","scorm","ScormIcon","video","VideoIcon","podcast","PodcastIcon","review","RevisionIcon","ProgressionItem","props","legacyContext","skin","GetSkinFromContext","disabled","adaptive","completion","label","level","onClick","stars","maxStars","state","type","steps","adaptiveAriaLabel","dark","primary","white","IconType","adaptiveIcon","style","backgroundColor","color","handleCTAClick","useMemo","e","stopPropagation","preventDefault","link","cta","classnames","progressionItem","wrapperTitle","iconType","innerHTML","__html","smallStars","iconStar","borderRadius","propTypes","PropTypes","number","isRequired","bool","string","func","contextTypes","Provider","childContextTypes"],"sources":["../../../src/template/activity/progression-item.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, noop} from 'lodash/fp';\nimport {\n NovaCompositionNavigationArrowRight as ArrowRightIcon,\n NovaCompositionCoorpacademyStar as StarIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon,\n NovaCompositionCoorpacademyBolt as BoltIcon,\n NovaSolidSchoolScienceGraduationHat as CertificationIcon,\n NovaCompositionCoorpacademyAdaptive as AdaptiveIcon,\n NovaSolidContentContentBook1 as LearnerIcon,\n NovaCompositionCoorpacademyScorm as ScormIcon,\n NovaCompositionCoorpacademyArticle as ArticleIcon,\n NovaCompositionCoorpacademyVideo as VideoIcon,\n NovaCompositionCoorpacademyMicrophone as PodcastIcon,\n NovaCompositionCoorpacademyRevision as RevisionIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\nimport ProgressBar from '../../molecule/progress-bar';\nimport Link from '../../atom/link';\nimport style from './progression-item.css';\n\nconst ICONS = {\n chapter: TimerIcon,\n course: LearnerIcon,\n battle: BoltIcon,\n certification: CertificationIcon,\n article: ArticleIcon,\n scorm: ScormIcon,\n video: VideoIcon,\n podcast: PodcastIcon,\n review: RevisionIcon\n};\n\nconst ProgressionItem = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const {\n disabled = false,\n adaptive,\n completion,\n label,\n level,\n onClick = noop,\n stars,\n maxStars,\n state,\n type,\n steps = 0,\n adaptiveAriaLabel\n } = props;\n\n const dark = get('common.dark', skin);\n const primary = get('common.primary', skin);\n const white = get('common.white', skin);\n const IconType = ICONS[type];\n\n const adaptiveIcon = adaptive ? (\n <div\n className={style.adaptiveIcon}\n style={{\n backgroundColor: primary\n }}\n >\n <AdaptiveIcon style={{color: white}} height={14} aria-label={adaptiveAriaLabel} />\n </div>\n ) : null;\n\n const handleCTAClick = useMemo(\n () => e => {\n e.stopPropagation();\n e.preventDefault();\n onClick(e);\n },\n [onClick]\n );\n\n const link = disabled ? null : (\n <Link style={{color: primary}} onClick={handleCTAClick} data-progression-state={state}>\n <span className={style.cta}>\n {state} <ArrowRightIcon style={{color: primary}} height={12} width={20} />\n </span>\n </Link>\n );\n\n return (\n <div className={classnames(style.progressionItem, disabled ? style.disabled : '')}>\n <div className={style.wrapperTitle}>\n <IconType className={style.iconType} style={{color: dark}} />\n <div data-name=\"activityLabel\" className={style.label} title={label}>\n <div\n className={style.innerHTML}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: label}}\n />\n {adaptiveIcon}\n </div>\n\n <div\n data-name=\"activityStars\"\n role=\"progressbar\"\n className={style.stars}\n style={{\n color: primary\n }}\n >\n {stars}\n {maxStars ? ' /' : null}\n {maxStars ? <span className={style.smallStars}>{maxStars}</span> : null}{' '}\n <StarIcon className={style.iconStar} style={{color: primary}} />\n </div>\n </div>\n <ProgressBar\n className={style.completion}\n value={completion * 100}\n max={100}\n steps={steps}\n style={{backgroundColor: primary, borderRadius: 0}}\n displayInfo={false}\n />\n <div className={style.state}>\n {link}\n <span className={style.level}>{level}</span>\n </div>\n </div>\n );\n};\n\nProgressionItem.propTypes = {\n completion: PropTypes.number.isRequired,\n stars: PropTypes.number.isRequired,\n maxStars: PropTypes.number,\n steps: PropTypes.number,\n disabled: PropTypes.bool,\n label: PropTypes.string.isRequired,\n level: PropTypes.string.isRequired,\n state: PropTypes.string.isRequired,\n adaptiveAriaLabel: PropTypes.string,\n type: PropTypes.string.isRequired,\n adaptive: PropTypes.bool.isRequired,\n onClick: PropTypes.func\n};\n\nProgressionItem.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default ProgressionItem;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAcA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,OAAO,EAAEC,2CADG;EAEZC,MAAM,EAAEC,uCAFI;EAGZC,MAAM,EAAEC,0CAHI;EAIZC,aAAa,EAAEC,8CAJH;EAKZC,OAAO,EAAEC,6CALG;EAMZC,KAAK,EAAEC,2CANK;EAOZC,KAAK,EAAEC,2CAPK;EAQZC,OAAO,EAAEC,gDARG;EASZC,MAAM,EAAEC;AATI,CAAd;;AAYA,MAAMC,eAAe,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;EAChD,MAAMC,IAAI,GAAG,IAAAC,4BAAA,EAAmBF,aAAnB,CAAb;EACA,MAAM;IACJG,QAAQ,GAAG,KADP;IAEJC,QAFI;IAGJC,UAHI;IAIJC,KAJI;IAKJC,KALI;IAMJC,OAAO,iBANH;IAOJC,KAPI;IAQJC,QARI;IASJC,KATI;IAUJC,IAVI;IAWJC,KAAK,GAAG,CAXJ;IAYJC;EAZI,IAaFf,KAbJ;EAeA,MAAMgB,IAAI,GAAG,mBAAI,aAAJ,EAAmBd,IAAnB,CAAb;EACA,MAAMe,OAAO,GAAG,mBAAI,gBAAJ,EAAsBf,IAAtB,CAAhB;EACA,MAAMgB,KAAK,GAAG,mBAAI,cAAJ,EAAoBhB,IAApB,CAAd;EACA,MAAMiB,QAAQ,GAAGvC,KAAK,CAACiC,IAAD,CAAtB;EAEA,MAAMO,YAAY,GAAGf,QAAQ,gBAC3B;IACE,SAAS,EAAEgB,wBAAA,CAAMD,YADnB;IAEE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UANE;EAO1BnC,KAAK,EAAEiC,kBAAA,CAAUI,MAAV,CAAiBF,UAPE;EAQ1B/B,KAAK,EAAE6B,kBAAA,CAAUI,MAAV,CAAiBF,UARE;EAS1B5B,iBAAiB,EAAE0B,kBAAA,CAAUI,MATH;EAU1BhC,IAAI,EAAE4B,kBAAA,CAAUI,MAAV,CAAiBF,UAVG;EAW1BtC,QAAQ,EAAEoC,kBAAA,CAAUG,IAAV,CAAeD,UAXC;EAY1BlC,OAAO,EAAEgC,kBAAA,CAAUK;AAZO,CAA5B;AAeA/C,eAAe,CAACgD,YAAhB,GAA+B;EAC7B7C,IAAI,EAAE8C,iBAAA,CAASC,iBAAT,CAA2B/C;AADJ,CAA/B;eAIeH,e"}
|
|
@@ -21,8 +21,9 @@ declare namespace PlayerLoading {
|
|
|
21
21
|
type: PropTypes.Requireable<string>;
|
|
22
22
|
size: PropTypes.Requireable<string>;
|
|
23
23
|
customStyle: PropTypes.Requireable<{
|
|
24
|
-
[x: string]: string | null | undefined;
|
|
24
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
25
25
|
}>;
|
|
26
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
26
27
|
}>>;
|
|
27
28
|
}>>;
|
|
28
29
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -72,8 +72,9 @@ declare namespace SlidePlayer {
|
|
|
72
72
|
type: PropTypes.Requireable<string>;
|
|
73
73
|
size: PropTypes.Requireable<string>;
|
|
74
74
|
customStyle: PropTypes.Requireable<{
|
|
75
|
-
[x: string]: string | null | undefined;
|
|
75
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
76
76
|
}>;
|
|
77
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
77
78
|
}>>;
|
|
78
79
|
}>>;
|
|
79
80
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -365,8 +366,9 @@ declare namespace SlidePlayer {
|
|
|
365
366
|
type: PropTypes.Requireable<string>;
|
|
366
367
|
size: PropTypes.Requireable<string>;
|
|
367
368
|
customStyle: PropTypes.Requireable<{
|
|
368
|
-
[x: string]: string | null | undefined;
|
|
369
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
369
370
|
}>;
|
|
371
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
370
372
|
}>>;
|
|
371
373
|
}>>;
|
|
372
374
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -78,8 +78,9 @@ declare namespace SlidesPlayer {
|
|
|
78
78
|
type: PropTypes.Requireable<string>;
|
|
79
79
|
size: PropTypes.Requireable<string>;
|
|
80
80
|
customStyle: PropTypes.Requireable<{
|
|
81
|
-
[x: string]: string | null | undefined;
|
|
81
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
82
82
|
}>;
|
|
83
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
83
84
|
}>>;
|
|
84
85
|
}>>;
|
|
85
86
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|
|
@@ -108,8 +108,9 @@ declare class PopinCorrection extends React.Component<any, any, any> {
|
|
|
108
108
|
type: PropTypes.Requireable<string>;
|
|
109
109
|
size: PropTypes.Requireable<string>;
|
|
110
110
|
customStyle: PropTypes.Requireable<{
|
|
111
|
-
[x: string]: string | null | undefined;
|
|
111
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
112
112
|
}>;
|
|
113
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
113
114
|
}>>;
|
|
114
115
|
}>>;
|
|
115
116
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
|
|
@@ -208,8 +208,9 @@ declare namespace PopinEnd {
|
|
|
208
208
|
type: PropTypes.Requireable<string>;
|
|
209
209
|
size: PropTypes.Requireable<string>;
|
|
210
210
|
customStyle: PropTypes.Requireable<{
|
|
211
|
-
[x: string]: string | null | undefined;
|
|
211
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
212
212
|
}>;
|
|
213
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
213
214
|
}>>;
|
|
214
215
|
}>>;
|
|
215
216
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -529,8 +529,9 @@ declare const AppReview: {
|
|
|
529
529
|
type: import("prop-types").Requireable<string>;
|
|
530
530
|
size: import("prop-types").Requireable<string>;
|
|
531
531
|
customStyle: import("prop-types").Requireable<{
|
|
532
|
-
[x: string]: string | null | undefined;
|
|
532
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
533
533
|
}>;
|
|
534
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<any>>;
|
|
534
535
|
}>>;
|
|
535
536
|
}>>;
|
|
536
537
|
headerIcon: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,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Ae,SAAS,CAAC"}
|
|
@@ -529,8 +529,9 @@ declare const propTypes: {
|
|
|
529
529
|
type: PropTypes.Requireable<string>;
|
|
530
530
|
size: PropTypes.Requireable<string>;
|
|
531
531
|
customStyle: PropTypes.Requireable<{
|
|
532
|
-
[x: string]: string | null | undefined;
|
|
532
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
533
533
|
}>;
|
|
534
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
534
535
|
}>>;
|
|
535
536
|
}>>;
|
|
536
537
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAgC,EAC9B,mBAAmB,EACpB,MAAM,8CAA8C,CAAC;AAEtD,OAA8B,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAEzF,OAA+B,EAC7B,gBAAgB,EACjB,MAAM,oDAAoD,CAAC;AAE5D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAgC,EAC9B,mBAAmB,EACpB,MAAM,8CAA8C,CAAC;AAEtD,OAA8B,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAEzF,OAA+B,EAC7B,gBAAgB,EACjB,MAAM,oDAAoD,CAAC;AAE5D,QA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AC;CAC1B,CAAC"}
|
|
@@ -533,8 +533,9 @@ declare const propTypes: {
|
|
|
533
533
|
type: PropTypes.Requireable<string>;
|
|
534
534
|
size: PropTypes.Requireable<string>;
|
|
535
535
|
customStyle: PropTypes.Requireable<{
|
|
536
|
-
[x: string]: string | null | undefined;
|
|
536
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
537
537
|
}>;
|
|
538
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
538
539
|
}>>;
|
|
539
540
|
}>>;
|
|
540
541
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -905,8 +905,9 @@ declare namespace BrandUpdate {
|
|
|
905
905
|
type: PropTypes.Requireable<string>;
|
|
906
906
|
size: PropTypes.Requireable<string>;
|
|
907
907
|
customStyle: PropTypes.Requireable<{
|
|
908
|
-
[x: string]: string | null | undefined;
|
|
908
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
909
909
|
}>;
|
|
910
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
|
|
910
911
|
}>>;
|
|
911
912
|
}>>;
|
|
912
913
|
headerIcon: PropTypes.Requireable<string>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export default CertificationDetail;
|
|
2
|
+
declare function CertificationDetail(props: any, context: any): JSX.Element;
|
|
3
|
+
declare namespace CertificationDetail {
|
|
4
|
+
namespace contextTypes {
|
|
5
|
+
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
common: PropTypes.Requireable<{
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
}>;
|
|
9
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
11
|
+
logo: PropTypes.Requireable<any>;
|
|
12
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
13
|
+
login: PropTypes.Requireable<any>;
|
|
14
|
+
}>>;
|
|
15
|
+
icons: PropTypes.Requireable<{
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}>;
|
|
18
|
+
mod: PropTypes.Requireable<{
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
courses: PropTypes.Requireable<any[]>;
|
|
22
|
+
texts: PropTypes.Requireable<{
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>;
|
|
25
|
+
}>>;
|
|
26
|
+
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
+
}
|
|
28
|
+
namespace propTypes {
|
|
29
|
+
const title: PropTypes.Validator<string>;
|
|
30
|
+
const certificationRef: PropTypes.Validator<string>;
|
|
31
|
+
const description: PropTypes.Requireable<string>;
|
|
32
|
+
const logoUrl: PropTypes.Requireable<string>;
|
|
33
|
+
const metrics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
|
+
progression: PropTypes.Requireable<number>;
|
|
35
|
+
stars: PropTypes.Requireable<number>;
|
|
36
|
+
completedCourses: PropTypes.Requireable<number>;
|
|
37
|
+
completedModules: PropTypes.Requireable<number>;
|
|
38
|
+
}>>;
|
|
39
|
+
const onDownloadDiploma: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
+
const badge: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
+
badgeUrl: PropTypes.Requireable<string>;
|
|
42
|
+
onDownloadBadge: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
+
}>>;
|
|
44
|
+
const ongoingCourses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
45
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
46
|
+
customStyle: PropTypes.Requireable<{
|
|
47
|
+
[x: string]: string | null | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
loading: PropTypes.Requireable<boolean>;
|
|
50
|
+
}>>;
|
|
51
|
+
const certificationCourses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
52
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
53
|
+
customStyle: PropTypes.Requireable<{
|
|
54
|
+
[x: string]: string | null | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
loading: PropTypes.Requireable<boolean>;
|
|
57
|
+
}>>;
|
|
58
|
+
const totalCourses: PropTypes.Requireable<number>;
|
|
59
|
+
const totalModules: PropTypes.Requireable<number>;
|
|
60
|
+
const filters: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
63
|
+
name: PropTypes.Validator<string>;
|
|
64
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
65
|
+
selected: PropTypes.Requireable<boolean>;
|
|
66
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
67
|
+
}> | null | undefined)[]>;
|
|
68
|
+
}>>;
|
|
69
|
+
const sorting: PropTypes.Requireable<PropTypes.InferProps<{
|
|
70
|
+
title: PropTypes.Requireable<string>;
|
|
71
|
+
name: PropTypes.Requireable<string>;
|
|
72
|
+
className: PropTypes.Requireable<string>;
|
|
73
|
+
borderClassName: PropTypes.Requireable<string>;
|
|
74
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
75
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
76
|
+
description: PropTypes.Requireable<string>;
|
|
77
|
+
required: PropTypes.Requireable<boolean>;
|
|
78
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
79
|
+
theme: PropTypes.Requireable<string>;
|
|
80
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
81
|
+
name: PropTypes.Validator<string>;
|
|
82
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
83
|
+
selected: PropTypes.Requireable<boolean>;
|
|
84
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
85
|
+
}> | null | undefined)[]>;
|
|
86
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
87
|
+
label: PropTypes.Validator<string>;
|
|
88
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
89
|
+
name: PropTypes.Validator<string>;
|
|
90
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
91
|
+
selected: PropTypes.Requireable<boolean>;
|
|
92
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
93
|
+
}> | null | undefined)[]>;
|
|
94
|
+
}> | null | undefined)[]>;
|
|
95
|
+
modified: PropTypes.Requireable<boolean>;
|
|
96
|
+
error: PropTypes.Requireable<boolean>;
|
|
97
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
98
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
99
|
+
}>>;
|
|
100
|
+
const onBackClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
101
|
+
const onContinueLearningClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
import PropTypes from "prop-types";
|
|
105
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certification-detail/index.js"],"names":[],"mappings":";AAkBA,4EA8GC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _lowerCase2 = _interopRequireDefault(require("lodash/fp/lowerCase"));
|
|
7
|
+
|
|
8
|
+
var _compact2 = _interopRequireDefault(require("lodash/fp/compact"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
+
|
|
16
|
+
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
17
|
+
|
|
18
|
+
var _tag = _interopRequireDefault(require("../../atom/tag"));
|
|
19
|
+
|
|
20
|
+
var _select = _interopRequireWildcard(require("../../atom/select"));
|
|
21
|
+
|
|
22
|
+
var _buttonLinkIcon = _interopRequireDefault(require("../../atom/button-link-icon"));
|
|
23
|
+
|
|
24
|
+
var _icon = _interopRequireDefault(require("../../atom/icon"));
|
|
25
|
+
|
|
26
|
+
var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
|
|
27
|
+
|
|
28
|
+
var _allCourses = _interopRequireDefault(require("../skill-detail/all-courses"));
|
|
29
|
+
|
|
30
|
+
var _continueLearning = _interopRequireDefault(require("../skill-detail/continue-learning"));
|
|
31
|
+
|
|
32
|
+
var _skillDetail = require("../skill-detail");
|
|
33
|
+
|
|
34
|
+
var _progressWrapper = _interopRequireDefault(require("../../molecule/progress-wrapper"));
|
|
35
|
+
|
|
36
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
|
+
|
|
44
|
+
const DESCRIPTION_BREAKPOINT = 382;
|
|
45
|
+
|
|
46
|
+
const CertificationDetail = (props, context) => {
|
|
47
|
+
const {
|
|
48
|
+
certificationRef,
|
|
49
|
+
title,
|
|
50
|
+
description,
|
|
51
|
+
certificationCourses,
|
|
52
|
+
ongoingCourses,
|
|
53
|
+
totalCourses,
|
|
54
|
+
totalModules,
|
|
55
|
+
filters,
|
|
56
|
+
sorting,
|
|
57
|
+
onBackClick,
|
|
58
|
+
onContinueLearningClick,
|
|
59
|
+
metrics,
|
|
60
|
+
logoUrl,
|
|
61
|
+
onDownloadDiploma,
|
|
62
|
+
badge = {}
|
|
63
|
+
} = props;
|
|
64
|
+
const {
|
|
65
|
+
translate
|
|
66
|
+
} = context;
|
|
67
|
+
const {
|
|
68
|
+
progression,
|
|
69
|
+
completedCourses,
|
|
70
|
+
completedModules,
|
|
71
|
+
stars
|
|
72
|
+
} = metrics;
|
|
73
|
+
const {
|
|
74
|
+
badgeUrl = false,
|
|
75
|
+
onDownloadBadge
|
|
76
|
+
} = badge;
|
|
77
|
+
const [showMore, setShowMore] = (0, _react.useState)(false);
|
|
78
|
+
const handleShowMore = (0, _react.useCallback)(() => setShowMore(!showMore), [setShowMore, showMore]);
|
|
79
|
+
const Description = (0, _react.useCallback)(() => {
|
|
80
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
81
|
+
className: (0, _classnames.default)(_style.default.description, !showMore && _style.default.truncate)
|
|
82
|
+
}, description);
|
|
83
|
+
}, [showMore, description]);
|
|
84
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
+
className: _style.default.backgroundContainer
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
+
className: _style.default.container,
|
|
88
|
+
"data-name": certificationRef
|
|
89
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLinkIcon.default, {
|
|
90
|
+
faIcon: "arrow-left",
|
|
91
|
+
"data-name": "back-button",
|
|
92
|
+
"aria-label": "Back",
|
|
93
|
+
onClick: onBackClick,
|
|
94
|
+
className: _style.default.backButton,
|
|
95
|
+
tooltipPlacement: "right"
|
|
96
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
+
className: _style.default.ctaContainer
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
+
className: _style.default.logoContainer
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
101
|
+
className: _style.default.logo,
|
|
102
|
+
src: logoUrl
|
|
103
|
+
})), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
104
|
+
label: translate('certification')
|
|
105
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
106
|
+
className: _style.default.title
|
|
107
|
+
}, title), description ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Description, null), description.length >= DESCRIPTION_BREAKPOINT ? /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
+
className: _style.default.showMoreWrapper,
|
|
109
|
+
onClick: handleShowMore
|
|
110
|
+
}, translate(showMore ? 'Show less' : 'Show more'), /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
111
|
+
iconName: showMore ? 'chevron-up' : 'chevron-down',
|
|
112
|
+
size: {
|
|
113
|
+
faSize: 14,
|
|
114
|
+
wrapperSize: 16
|
|
115
|
+
}
|
|
116
|
+
})) : null) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
+
className: _style.default.contentStats
|
|
118
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, `${totalCourses} ${(0, _lowerCase2.default)(translate('courses'))}`), /*#__PURE__*/_react.default.createElement("div", {
|
|
119
|
+
className: _style.default.divider
|
|
120
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, `${totalModules} ${(0, _lowerCase2.default)(translate('modules'))}`)), /*#__PURE__*/_react.default.createElement(_skillDetail.ContinueLearningButton, {
|
|
121
|
+
ongoingCoursesAvailable: !!ongoingCourses.list.length,
|
|
122
|
+
onClick: onContinueLearningClick
|
|
123
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
+
className: _style.default.continueLearningSection
|
|
125
|
+
}, /*#__PURE__*/_react.default.createElement(_continueLearning.default, {
|
|
126
|
+
ongoingCourses: ongoingCourses
|
|
127
|
+
})), /*#__PURE__*/_react.default.createElement(_progressWrapper.default, {
|
|
128
|
+
title: translate('your_progress'),
|
|
129
|
+
subtitle: translate('certification_progress_wrapper_subtitle'),
|
|
130
|
+
progression: progression,
|
|
131
|
+
completedCourses: completedCourses,
|
|
132
|
+
completedModules: completedModules,
|
|
133
|
+
sections: (0, _compact2.default)([{
|
|
134
|
+
type: 'diploma',
|
|
135
|
+
onDownload: () => onDownloadDiploma
|
|
136
|
+
}, badgeUrl && {
|
|
137
|
+
type: 'badge',
|
|
138
|
+
badgeUrl,
|
|
139
|
+
onDownload: () => onDownloadBadge
|
|
140
|
+
}, {
|
|
141
|
+
type: 'stars',
|
|
142
|
+
stars
|
|
143
|
+
}])
|
|
144
|
+
}), /*#__PURE__*/_react.default.createElement(_allCourses.default, {
|
|
145
|
+
courses: certificationCourses,
|
|
146
|
+
totalCourses: totalCourses,
|
|
147
|
+
filters: filters,
|
|
148
|
+
sorting: sorting
|
|
149
|
+
})));
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
CertificationDetail.contextTypes = {
|
|
153
|
+
skin: _provider.default.childContextTypes.skin,
|
|
154
|
+
translate: _provider.default.childContextTypes.translate
|
|
155
|
+
};
|
|
156
|
+
CertificationDetail.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
157
|
+
title: _propTypes.default.string.isRequired,
|
|
158
|
+
certificationRef: _propTypes.default.string.isRequired,
|
|
159
|
+
description: _propTypes.default.string,
|
|
160
|
+
logoUrl: _propTypes.default.string,
|
|
161
|
+
metrics: _propTypes.default.shape({
|
|
162
|
+
progression: _propTypes.default.number,
|
|
163
|
+
stars: _propTypes.default.number,
|
|
164
|
+
completedCourses: _propTypes.default.number,
|
|
165
|
+
completedModules: _propTypes.default.number
|
|
166
|
+
}),
|
|
167
|
+
onDownloadDiploma: _propTypes.default.func,
|
|
168
|
+
badge: _propTypes.default.shape({
|
|
169
|
+
badgeUrl: _propTypes.default.string,
|
|
170
|
+
onDownloadBadge: _propTypes.default.func
|
|
171
|
+
}),
|
|
172
|
+
ongoingCourses: _propTypes.default.shape(_cardsGrid.default.propTypes),
|
|
173
|
+
certificationCourses: _propTypes.default.shape(_cardsGrid.default.propTypes),
|
|
174
|
+
totalCourses: _propTypes.default.number,
|
|
175
|
+
totalModules: _propTypes.default.number,
|
|
176
|
+
filters: _propTypes.default.shape({
|
|
177
|
+
onChange: _propTypes.default.func,
|
|
178
|
+
options: _propTypes.default.arrayOf(_propTypes.default.shape(_select.SelectOptionPropTypes))
|
|
179
|
+
}),
|
|
180
|
+
sorting: _propTypes.default.shape(_select.default.propTypes),
|
|
181
|
+
onBackClick: _propTypes.default.func,
|
|
182
|
+
onContinueLearningClick: _propTypes.default.func
|
|
183
|
+
} : {};
|
|
184
|
+
var _default = CertificationDetail;
|
|
185
|
+
exports.default = _default;
|
|
186
|
+
//# sourceMappingURL=index.js.map
|