@coorpacademy/components 11.35.2-alpha.4 → 11.35.2-forcedeploy.13
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 +81 -71
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +91 -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 +81 -71
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +91 -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"}
|
|
@@ -30,11 +30,13 @@ var _searchValueIncluded = _interopRequireDefault(require("../../util/search-val
|
|
|
30
30
|
var _timeFormat = require("../../util/time-format");
|
|
31
31
|
var _cardsList = _interopRequireDefault(require("../../molecule/dashboard/cards-list"));
|
|
32
32
|
var _title = _interopRequireDefault(require("../../atom/title"));
|
|
33
|
+
var _colors = require("../../variables/colors");
|
|
33
34
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
34
35
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
35
36
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
36
37
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
37
38
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
39
|
+
const roundScore = value => Math.round(value * 10) / 10;
|
|
38
40
|
const ChangeSkillFocusButton = (props, context) => {
|
|
39
41
|
const {
|
|
40
42
|
onClick
|
|
@@ -53,7 +55,7 @@ const ChangeSkillFocusButton = (props, context) => {
|
|
|
53
55
|
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
|
|
54
56
|
},
|
|
55
57
|
hoverBackgroundColor: primarySkinColor,
|
|
56
|
-
hoverColor:
|
|
58
|
+
hoverColor: _colors.COLORS.white,
|
|
57
59
|
onClick: onClick,
|
|
58
60
|
label: translate('skills_change_focus'),
|
|
59
61
|
"data-name": "change-skill-focus-button",
|
|
@@ -89,14 +91,14 @@ const FilterButton = (props, context) => {
|
|
|
89
91
|
const Content = (0, _react.useCallback)(() => /*#__PURE__*/_react.default.createElement("div", null, filter, /*#__PURE__*/_react.default.createElement("span", {
|
|
90
92
|
className: active ? _style.default.skillFilterNumber : _style.default.skillFilterNumberInActive,
|
|
91
93
|
style: {
|
|
92
|
-
backgroundColor: active ? (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`) :
|
|
93
|
-
color: active ? primarySkinColor :
|
|
94
|
+
backgroundColor: active ? (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`) : _colors.COLORS.gray,
|
|
95
|
+
color: active ? primarySkinColor : _colors.COLORS.cm_grey_500
|
|
94
96
|
}
|
|
95
97
|
}, skillTotal)), [filter, skillTotal, active, primarySkinColor]);
|
|
96
98
|
const buttonProps = {
|
|
97
99
|
customStyle: {
|
|
98
|
-
backgroundColor: active ? (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`) :
|
|
99
|
-
color: active ? primarySkinColor :
|
|
100
|
+
backgroundColor: active ? (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`) : _colors.COLORS.white,
|
|
101
|
+
color: active ? primarySkinColor : _colors.COLORS.cm_grey_400,
|
|
100
102
|
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',
|
|
101
103
|
width: 'fit-content'
|
|
102
104
|
},
|
|
@@ -125,7 +127,6 @@ const MyLearning = (props, context) => {
|
|
|
125
127
|
learnerFeature = true,
|
|
126
128
|
isLoading,
|
|
127
129
|
onSkillFocusConfirm,
|
|
128
|
-
onReviewSkill,
|
|
129
130
|
onExploreSkill,
|
|
130
131
|
learningPriorities
|
|
131
132
|
} = props;
|
|
@@ -143,7 +144,7 @@ const MyLearning = (props, context) => {
|
|
|
143
144
|
const skillsReviewReady = (0, _react.useMemo)(() => {
|
|
144
145
|
return searchResults.filter(skill => skillsInformation[skill] ? skillsInformation[skill].availableForReview : false);
|
|
145
146
|
}, [searchResults, skillsInformation]);
|
|
146
|
-
const graphDatas = (0, _react.useMemo)(() => (0, _pipe2.default)((0, _map2.default)(skill => [skill, (0, _getOr2.default)(0, [skill, 'stats', 'score'], skillsInformation)
|
|
147
|
+
const graphDatas = (0, _react.useMemo)(() => (0, _pipe2.default)((0, _map2.default)(skill => [skill, roundScore((0, _getOr2.default)(0, [skill, 'stats', 'score'], skillsInformation))]), _fromPairs2.default)(selectedSkillsList), [selectedSkillsList, skillsInformation]);
|
|
147
148
|
const graphLegends = (0, _react.useMemo)(() => (0, _pipe2.default)((0, _map2.default)(skill => [skill, skillsLocales[skill]]), _fromPairs2.default)(selectedSkillsList), [selectedSkillsList, skillsLocales]);
|
|
148
149
|
const filters = (0, _react.useMemo)(() => {
|
|
149
150
|
return {
|
|
@@ -167,7 +168,7 @@ const MyLearning = (props, context) => {
|
|
|
167
168
|
legend: skillChartPaneLegends,
|
|
168
169
|
icon: {
|
|
169
170
|
iconName: 'book-open-cover',
|
|
170
|
-
backgroundColor:
|
|
171
|
+
backgroundColor: _colors.COLORS.turquoise_100
|
|
171
172
|
}
|
|
172
173
|
}, {
|
|
173
174
|
title: translate('skill_chart_side_panel_learning_hours'),
|
|
@@ -175,7 +176,7 @@ const MyLearning = (props, context) => {
|
|
|
175
176
|
legend: skillChartPaneLegends,
|
|
176
177
|
icon: {
|
|
177
178
|
iconName: 'clock',
|
|
178
|
-
backgroundColor:
|
|
179
|
+
backgroundColor: _colors.COLORS.pink_100
|
|
179
180
|
}
|
|
180
181
|
}, {
|
|
181
182
|
title: translate('skill_chart_side_panel_questions_to_review'),
|
|
@@ -183,7 +184,7 @@ const MyLearning = (props, context) => {
|
|
|
183
184
|
legend: skillChartPaneLegends,
|
|
184
185
|
icon: {
|
|
185
186
|
iconName: 'circle-question',
|
|
186
|
-
backgroundColor:
|
|
187
|
+
backgroundColor: _colors.COLORS.orange_100
|
|
187
188
|
}
|
|
188
189
|
}];
|
|
189
190
|
const skillsScore = (0, _react.useMemo)(() => (0, _pipe2.default)((0, _map2.default)(skill => [skill, (0, _getOr2.default)(0, [skill, 'stats', 'score'], skillsInformation)]), _fromPairs2.default)(skills), [skills, skillsInformation]);
|
|
@@ -217,9 +218,9 @@ const MyLearning = (props, context) => {
|
|
|
217
218
|
subtitle: translate('learning_priorities_description'),
|
|
218
219
|
icon: {
|
|
219
220
|
iconName: 'sign-post',
|
|
220
|
-
iconColor:
|
|
221
|
+
iconColor: _colors.COLORS.cm_orange_800,
|
|
221
222
|
borderRadius: '12px',
|
|
222
|
-
backgroundColor:
|
|
223
|
+
backgroundColor: _colors.COLORS.orange_100
|
|
223
224
|
},
|
|
224
225
|
tag: {
|
|
225
226
|
label: `${(0, _size2.default)(learningPriorities.cards)}`,
|
|
@@ -250,7 +251,7 @@ const MyLearning = (props, context) => {
|
|
|
250
251
|
className: _style.default.skillFocusHeaderIcon
|
|
251
252
|
}, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
252
253
|
iconName: "bullseye-arrow",
|
|
253
|
-
backgroundColor:
|
|
254
|
+
backgroundColor: _colors.COLORS.purple_100,
|
|
254
255
|
borderRadius: "12px",
|
|
255
256
|
size: {
|
|
256
257
|
faSize: 20,
|
|
@@ -318,7 +319,7 @@ const MyLearning = (props, context) => {
|
|
|
318
319
|
className: _style.default.skillListHeaderIcon
|
|
319
320
|
}, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
320
321
|
iconName: "dumbbell",
|
|
321
|
-
backgroundColor:
|
|
322
|
+
backgroundColor: _colors.COLORS.yellow_100,
|
|
322
323
|
size: {
|
|
323
324
|
faSize: 20,
|
|
324
325
|
wrapperSize: 48
|
|
@@ -373,7 +374,7 @@ const MyLearning = (props, context) => {
|
|
|
373
374
|
onClick: handleSearchReset
|
|
374
375
|
}, translate('empty_search_result_clear_search'))) : /*#__PURE__*/_react.default.createElement("div", {
|
|
375
376
|
className: _style.default.skillListContainer
|
|
376
|
-
}, activeFilter === '
|
|
377
|
+
}, activeFilter === 'review' && filters[activeFilter].length === 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
|
377
378
|
className: _style.default.skillListEmptyContainer
|
|
378
379
|
}, /*#__PURE__*/_react.default.createElement(_reviewNoSkills.default, {
|
|
379
380
|
titleNoSkills: translate('review_skill_empty'),
|
|
@@ -387,9 +388,6 @@ const MyLearning = (props, context) => {
|
|
|
387
388
|
contentCompleted: 0,
|
|
388
389
|
questionsToReview: 0
|
|
389
390
|
};
|
|
390
|
-
function handleReviewSkill() {
|
|
391
|
-
onReviewSkill(skill);
|
|
392
|
-
}
|
|
393
391
|
function handleExploreSkill() {
|
|
394
392
|
onExploreSkill(skill);
|
|
395
393
|
}
|
|
@@ -398,18 +396,25 @@ const MyLearning = (props, context) => {
|
|
|
398
396
|
content,
|
|
399
397
|
questionsToReview
|
|
400
398
|
} = skillsInformation[skill] ? skillsInformation[skill].stats : defaultStats;
|
|
399
|
+
const {
|
|
400
|
+
color,
|
|
401
|
+
name
|
|
402
|
+
} = (0, _get2.default)([skill, 'icon'], skillsInformation);
|
|
401
403
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
402
404
|
key: index
|
|
403
405
|
}, /*#__PURE__*/_react.default.createElement(_learnerSkillCard.default, {
|
|
404
406
|
skillTitle: skillsLocales[skill],
|
|
407
|
+
cardIndex: index,
|
|
405
408
|
focus: selectedSkills.includes(skill),
|
|
406
409
|
metrics: {
|
|
407
|
-
score
|
|
410
|
+
score,
|
|
408
411
|
content,
|
|
409
412
|
questionsToReview
|
|
410
413
|
},
|
|
411
|
-
|
|
412
|
-
|
|
414
|
+
icon: {
|
|
415
|
+
color,
|
|
416
|
+
name
|
|
417
|
+
},
|
|
413
418
|
onExploreClick: handleExploreSkill
|
|
414
419
|
}));
|
|
415
420
|
}))));
|
|
@@ -435,7 +440,6 @@ MyLearning.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
435
440
|
learnerFeature: _propTypes.default.bool,
|
|
436
441
|
isLoading: _propTypes.default.bool,
|
|
437
442
|
onSkillFocusConfirm: _propTypes.default.func,
|
|
438
|
-
onReviewSkill: _propTypes.default.func,
|
|
439
443
|
onExploreSkill: _propTypes.default.func,
|
|
440
444
|
learningPriorities: _propTypes.default.shape(_cardsList.default.propTypes)
|
|
441
445
|
} : {};
|