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