@coorpacademy/components 11.32.11 → 11.32.12-alpha.3
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/style.css +1 -0
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +2 -1
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select/style.css +28 -0
- package/es/molecule/cm-popin/types.d.ts +1 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +2 -1
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +8 -3
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.d.ts +3 -1
- package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/es/molecule/dashboard/cards-list/style.css +4 -0
- package/es/organism/cards-grid/index.d.ts +1 -0
- package/es/organism/cards-grid/index.js +6 -1
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/cards-grid/style.css +0 -1
- package/es/template/app-player/loading/index.d.ts +1 -0
- package/es/template/app-player/player/index.d.ts +2 -0
- package/es/template/app-player/player/slides/index.d.ts +1 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +1 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +3 -1
- package/es/template/app-player/popin-end/summary.d.ts +2 -1
- package/es/template/app-review/index.d.ts +1 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +1 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +1 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +1 -0
- package/es/template/common/authors/index.d.ts +1 -0
- package/es/template/common/authors/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +2 -0
- package/es/template/common/search-page/index.d.ts +4 -1
- package/es/template/external-course/index.d.ts +1 -0
- package/es/template/skill-detail/all-courses.css +128 -0
- package/es/template/skill-detail/all-courses.d.ts +77 -0
- package/es/template/skill-detail/all-courses.d.ts.map +1 -0
- package/es/template/skill-detail/all-courses.js +179 -0
- package/es/template/skill-detail/all-courses.js.map +1 -0
- package/es/template/skill-detail/continue-learning.css +21 -0
- package/es/template/skill-detail/continue-learning.d.ts +37 -0
- package/es/template/skill-detail/continue-learning.d.ts.map +1 -0
- package/es/template/skill-detail/continue-learning.js +43 -0
- package/es/template/skill-detail/continue-learning.js.map +1 -0
- package/es/template/skill-detail/index.d.ts +95 -0
- package/es/template/skill-detail/index.d.ts.map +1 -0
- package/es/template/skill-detail/index.js +219 -0
- package/es/template/skill-detail/index.js.map +1 -0
- package/es/template/skill-detail/style.css +174 -0
- package/es/template/teams-dashboard/index.d.ts +2 -1
- package/lib/atom/button-link/style.css +1 -0
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +2 -1
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select/style.css +28 -0
- package/lib/molecule/cm-popin/types.d.ts +1 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +2 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +8 -4
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts +3 -1
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/style.css +4 -0
- package/lib/organism/cards-grid/index.d.ts +1 -0
- package/lib/organism/cards-grid/index.js +6 -1
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/cards-grid/style.css +0 -1
- package/lib/template/app-player/loading/index.d.ts +1 -0
- package/lib/template/app-player/player/index.d.ts +2 -0
- package/lib/template/app-player/player/slides/index.d.ts +1 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +1 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +3 -1
- package/lib/template/app-player/popin-end/summary.d.ts +2 -1
- package/lib/template/app-review/index.d.ts +1 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +1 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +1 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +1 -0
- package/lib/template/common/authors/index.d.ts +1 -0
- package/lib/template/common/authors/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +2 -0
- package/lib/template/common/search-page/index.d.ts +4 -1
- package/lib/template/external-course/index.d.ts +1 -0
- package/lib/template/skill-detail/all-courses.css +128 -0
- package/lib/template/skill-detail/all-courses.d.ts +77 -0
- package/lib/template/skill-detail/all-courses.d.ts.map +1 -0
- package/lib/template/skill-detail/all-courses.js +198 -0
- package/lib/template/skill-detail/all-courses.js.map +1 -0
- package/lib/template/skill-detail/continue-learning.css +21 -0
- package/lib/template/skill-detail/continue-learning.d.ts +37 -0
- package/lib/template/skill-detail/continue-learning.d.ts.map +1 -0
- package/lib/template/skill-detail/continue-learning.js +56 -0
- package/lib/template/skill-detail/continue-learning.js.map +1 -0
- package/lib/template/skill-detail/index.d.ts +95 -0
- package/lib/template/skill-detail/index.d.ts.map +1 -0
- package/lib/template/skill-detail/index.js +241 -0
- package/lib/template/skill-detail/index.js.map +1 -0
- package/lib/template/skill-detail/style.css +174 -0
- package/lib/template/teams-dashboard/index.d.ts +2 -1
- package/locales/en/global.json +7 -0
- package/package.json +2 -2
|
@@ -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,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC"}
|
|
@@ -587,6 +587,7 @@ declare const propTypes: {
|
|
|
587
587
|
type: PropTypes.Requireable<string>;
|
|
588
588
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
589
589
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
590
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
590
591
|
loading: PropTypes.Requireable<boolean>;
|
|
591
592
|
}> | PropTypes.InferProps<{
|
|
592
593
|
'aria-label': 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"}
|
|
@@ -788,6 +788,7 @@ declare namespace BrandUpdate {
|
|
|
788
788
|
type: PropTypes.Requireable<string>;
|
|
789
789
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
790
790
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
791
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
791
792
|
loading: PropTypes.Requireable<boolean>;
|
|
792
793
|
}> | PropTypes.InferProps<{
|
|
793
794
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -3,6 +3,7 @@ declare class Authors extends React.Component<any, any, any> {
|
|
|
3
3
|
static propTypes: {
|
|
4
4
|
cards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
5
5
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
6
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
6
7
|
loading: PropTypes.Requireable<boolean>;
|
|
7
8
|
}>>;
|
|
8
9
|
cardsTitle: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/authors/index.js"],"names":[],"mappings":";AASA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/authors/index.js"],"names":[],"mappings":";AASA;IACE;;;;;;;;;;;;;;;;;;MAgBE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,sCAMC;IAJC;;MAEC;IAIH,4BAIC;IAED,sBA+EC;CACF"}
|
|
@@ -76,6 +76,7 @@ declare namespace Dashboard {
|
|
|
76
76
|
type: PropTypes.Requireable<string>;
|
|
77
77
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
78
78
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
79
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
79
80
|
loading: PropTypes.Requireable<boolean>;
|
|
80
81
|
}> | PropTypes.InferProps<{
|
|
81
82
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -348,6 +349,7 @@ declare namespace Dashboard {
|
|
|
348
349
|
type: PropTypes.Requireable<string>;
|
|
349
350
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
350
351
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
352
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
351
353
|
loading: PropTypes.Requireable<boolean>;
|
|
352
354
|
}> | PropTypes.InferProps<{
|
|
353
355
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -79,6 +79,7 @@ declare namespace SearchPage {
|
|
|
79
79
|
}>>;
|
|
80
80
|
const cards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
81
81
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
82
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
82
83
|
loading: PropTypes.Requireable<boolean>;
|
|
83
84
|
}>>;
|
|
84
85
|
const clearFilters: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -111,7 +112,7 @@ declare namespace SearchPage {
|
|
|
111
112
|
const recommendations: PropTypes.Requireable<PropTypes.InferProps<{
|
|
112
113
|
contentType: PropTypes.Requireable<string>;
|
|
113
114
|
dataName: PropTypes.Requireable<string>;
|
|
114
|
-
title: PropTypes.Requireable<
|
|
115
|
+
title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
115
116
|
showMore: PropTypes.Requireable<string>;
|
|
116
117
|
cards: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
117
118
|
badge: PropTypes.Requireable<string>;
|
|
@@ -165,6 +166,7 @@ declare namespace SearchPage {
|
|
|
165
166
|
adaptive: PropTypes.Requireable<string>;
|
|
166
167
|
}>>;
|
|
167
168
|
}> | null | undefined)[]>;
|
|
169
|
+
customStyle: PropTypes.Requireable<object>;
|
|
168
170
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
169
171
|
onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
|
|
170
172
|
'arrows-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -248,6 +250,7 @@ declare namespace SearchPage {
|
|
|
248
250
|
type: PropTypes.Requireable<string>;
|
|
249
251
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
250
252
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
253
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
251
254
|
loading: PropTypes.Requireable<boolean>;
|
|
252
255
|
}> | PropTypes.InferProps<{
|
|
253
256
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -93,6 +93,7 @@ declare namespace ExternalCourse {
|
|
|
93
93
|
type: PropTypes.Requireable<string>;
|
|
94
94
|
list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
95
95
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
96
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
96
97
|
loading: PropTypes.Requireable<boolean>;
|
|
97
98
|
}> | PropTypes.InferProps<{
|
|
98
99
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
3
|
+
@value tablet from breakpoints;
|
|
4
|
+
@value mobile from breakpoints;
|
|
5
|
+
@value xtraLightGrey from colors;
|
|
6
|
+
@value cm_grey_100 from colors;
|
|
7
|
+
@value cm_grey_200 from colors;
|
|
8
|
+
@value cm_grey_400 from colors;
|
|
9
|
+
|
|
10
|
+
.continueLearningWrapper {
|
|
11
|
+
margin-top: 40px;
|
|
12
|
+
margin-bottom: 16px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.continueLearningTitle {
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
line-height: 22px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.continueLearningNumber {
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
background-color: #EAEAEB;
|
|
24
|
+
color: #515161;
|
|
25
|
+
padding: 2px 4px;
|
|
26
|
+
margin-left: 8px;
|
|
27
|
+
font-size: 10px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
line-height: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.searchAndSortSection {
|
|
33
|
+
display: flex;
|
|
34
|
+
margin-bottom: 16px;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.searchWrapper {
|
|
39
|
+
border-radius: 12px;
|
|
40
|
+
width: 300px;
|
|
41
|
+
background-color: cm_grey_100;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sortSection {
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: 32px;
|
|
47
|
+
align-items: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sortWrapper {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: 12px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.filterWrapper {
|
|
57
|
+
display: flex;
|
|
58
|
+
gap: 12px;
|
|
59
|
+
margin-bottom: 32px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.filterButtonWrapper {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.divider {
|
|
68
|
+
height: 24px;
|
|
69
|
+
width: 1px;
|
|
70
|
+
background-color: cm_grey_200;
|
|
71
|
+
margin-left: 12px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.emptySearchResultContainer {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.emptySearchResultTitle {
|
|
81
|
+
font-size: 20px;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
line-height: 28px;
|
|
84
|
+
margin-bottom: 8px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.emptySearchResultDescription {
|
|
88
|
+
font-size: 16px;
|
|
89
|
+
font-weight: 500;
|
|
90
|
+
line-height: 22px;
|
|
91
|
+
margin-bottom: 16px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.emptySearchResultClearSearch {
|
|
95
|
+
color: #0061FF;
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
font-style: normal;
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
line-height: 20px;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.emptySearchResultClearSearch:hover {
|
|
104
|
+
text-decoration: underline;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (max-width: 799px) {
|
|
108
|
+
.searchAndSortSection {
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sortSection {
|
|
113
|
+
margin-top: 16px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media mobile {
|
|
118
|
+
.sortSection {
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
gap: 16px;
|
|
121
|
+
align-items: flex-start;
|
|
122
|
+
margin-top: 16px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.filterWrapper {
|
|
126
|
+
overflow-x: scroll;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export default AllCourses;
|
|
2
|
+
declare function AllCourses(props: any, context: any): JSX.Element;
|
|
3
|
+
declare namespace AllCourses {
|
|
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 skillIncludedCourses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
31
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
32
|
+
loading: PropTypes.Requireable<boolean>;
|
|
33
|
+
}>>;
|
|
34
|
+
const filters: PropTypes.Requireable<PropTypes.InferProps<{
|
|
35
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
36
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
37
|
+
name: PropTypes.Validator<string>;
|
|
38
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
39
|
+
selected: PropTypes.Requireable<boolean>;
|
|
40
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
41
|
+
}> | null | undefined)[]>;
|
|
42
|
+
}>>;
|
|
43
|
+
const sorting: PropTypes.Requireable<PropTypes.InferProps<{
|
|
44
|
+
title: PropTypes.Requireable<string>;
|
|
45
|
+
name: PropTypes.Requireable<string>;
|
|
46
|
+
className: PropTypes.Requireable<string>;
|
|
47
|
+
borderClassName: PropTypes.Requireable<string>;
|
|
48
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
49
|
+
multiple: PropTypes.Requireable<boolean>;
|
|
50
|
+
description: PropTypes.Requireable<string>;
|
|
51
|
+
required: PropTypes.Requireable<boolean>;
|
|
52
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
+
theme: PropTypes.Requireable<string>;
|
|
54
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
55
|
+
name: PropTypes.Validator<string>;
|
|
56
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
57
|
+
selected: PropTypes.Requireable<boolean>;
|
|
58
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
59
|
+
}> | null | undefined)[]>;
|
|
60
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
61
|
+
label: PropTypes.Validator<string>;
|
|
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
|
+
}> | null | undefined)[]>;
|
|
69
|
+
modified: PropTypes.Requireable<boolean>;
|
|
70
|
+
error: PropTypes.Requireable<boolean>;
|
|
71
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
72
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
73
|
+
}>>;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
import PropTypes from "prop-types";
|
|
77
|
+
//# sourceMappingURL=all-courses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-courses.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/all-courses.js"],"names":[],"mappings":";AA2CA,mEAiHC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import _get from "lodash/fp/get";
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
|
|
5
|
+
import React, { useState, useCallback } from 'react';
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
|
+
import Provider from '../../atom/provider';
|
|
8
|
+
import Select, { SelectOptionPropTypes } from '../../atom/select';
|
|
9
|
+
import ButtonLink from '../../atom/button-link';
|
|
10
|
+
import SearchForm from '../../molecule/search-form';
|
|
11
|
+
import CardsGrid from '../../organism/cards-grid';
|
|
12
|
+
import searchValueIncluded from '../../util/search-value-included';
|
|
13
|
+
import InputSwitch from '../../atom/input-switch';
|
|
14
|
+
import style from './all-courses.css';
|
|
15
|
+
|
|
16
|
+
const FilterButton = (props, context) => {
|
|
17
|
+
const {
|
|
18
|
+
selected,
|
|
19
|
+
filter,
|
|
20
|
+
onClick
|
|
21
|
+
} = props;
|
|
22
|
+
const {
|
|
23
|
+
skin
|
|
24
|
+
} = context;
|
|
25
|
+
|
|
26
|
+
const primarySkinColor = _get('common.primary', skin);
|
|
27
|
+
|
|
28
|
+
const buttonProps = {
|
|
29
|
+
customStyle: {
|
|
30
|
+
backgroundColor: selected ? primarySkinColor : '#E1E1E3',
|
|
31
|
+
color: selected ? '#FFFFFF' : '#515161',
|
|
32
|
+
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',
|
|
33
|
+
width: 'fit-content'
|
|
34
|
+
},
|
|
35
|
+
label: filter,
|
|
36
|
+
onClick,
|
|
37
|
+
'data-name': 'filter-type-course-button'
|
|
38
|
+
};
|
|
39
|
+
return /*#__PURE__*/React.createElement(ButtonLink, buttonProps);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
FilterButton.contextTypes = {
|
|
43
|
+
skin: Provider.childContextTypes.skin,
|
|
44
|
+
translate: Provider.childContextTypes.translate
|
|
45
|
+
};
|
|
46
|
+
FilterButton.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
47
|
+
selected: PropTypes.bool,
|
|
48
|
+
filter: PropTypes.string,
|
|
49
|
+
onClick: PropTypes.func
|
|
50
|
+
} : {};
|
|
51
|
+
|
|
52
|
+
const AllCourses = (props, context) => {
|
|
53
|
+
const {
|
|
54
|
+
skillIncludedCourses,
|
|
55
|
+
filters,
|
|
56
|
+
sorting
|
|
57
|
+
} = props;
|
|
58
|
+
const {
|
|
59
|
+
options,
|
|
60
|
+
onChange
|
|
61
|
+
} = filters;
|
|
62
|
+
const {
|
|
63
|
+
list
|
|
64
|
+
} = skillIncludedCourses;
|
|
65
|
+
const {
|
|
66
|
+
translate
|
|
67
|
+
} = context;
|
|
68
|
+
const [showCompleted, setShowCompleted] = useState(true);
|
|
69
|
+
const [searchValue, setSearchValue] = useState('');
|
|
70
|
+
const [searchResults, setSearchResults] = useState(list.sort((a, b) => {
|
|
71
|
+
const progressA = a.progress ?? 0;
|
|
72
|
+
const progressB = b.progress ?? 0;
|
|
73
|
+
return progressB - progressA;
|
|
74
|
+
}));
|
|
75
|
+
const sortView = sorting !== undefined ? /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
"data-name": "choice"
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Select, _extends({}, sorting, {
|
|
78
|
+
"aria-label": "All courses sort"
|
|
79
|
+
}))) : null;
|
|
80
|
+
const handleSearch = useCallback(value => {
|
|
81
|
+
setSearchValue(value);
|
|
82
|
+
setSearchResults(list.filter(skill => searchValueIncluded(skill.title, value)));
|
|
83
|
+
}, [list, setSearchValue, setSearchResults]);
|
|
84
|
+
const handleSearchReset = useCallback(() => {
|
|
85
|
+
setSearchValue('');
|
|
86
|
+
setSearchResults(list);
|
|
87
|
+
}, [list, setSearchValue, setSearchResults]);
|
|
88
|
+
const handleShowCompletedToggle = useCallback(() => {
|
|
89
|
+
const tempShowCompleted = !showCompleted;
|
|
90
|
+
setShowCompleted(tempShowCompleted);
|
|
91
|
+
|
|
92
|
+
if (tempShowCompleted) {
|
|
93
|
+
setSearchResults(list);
|
|
94
|
+
handleSearchReset();
|
|
95
|
+
} else {
|
|
96
|
+
setSearchResults(searchResults.filter(skill => skill.progress === 0));
|
|
97
|
+
}
|
|
98
|
+
}, [searchResults, showCompleted, setShowCompleted]);
|
|
99
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: style.continueLearningWrapper
|
|
101
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
102
|
+
className: style.continueLearningTitle
|
|
103
|
+
}, translate('all_courses')), /*#__PURE__*/React.createElement("span", {
|
|
104
|
+
className: style.continueLearningNumber
|
|
105
|
+
}, skillIncludedCourses.list.length)), /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: style.searchAndSortSection
|
|
107
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
className: style.searchWrapper
|
|
109
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
110
|
+
search: {
|
|
111
|
+
placeholder: translate('search_place_holder'),
|
|
112
|
+
value: searchValue,
|
|
113
|
+
onChange: handleSearch
|
|
114
|
+
},
|
|
115
|
+
onReset: handleSearchReset
|
|
116
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
className: style.sortSection
|
|
118
|
+
}, /*#__PURE__*/React.createElement(InputSwitch, {
|
|
119
|
+
type: "switch",
|
|
120
|
+
title: translate('show_completed'),
|
|
121
|
+
value: showCompleted,
|
|
122
|
+
onChange: handleShowCompletedToggle
|
|
123
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
className: style.sortWrapper
|
|
125
|
+
}, translate('sort_by'), sortView))), /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: style.filterWrapper
|
|
127
|
+
}, options.length > 2 && searchResults.length > 0 ? options.map((filter, index) => {
|
|
128
|
+
const {
|
|
129
|
+
name,
|
|
130
|
+
value,
|
|
131
|
+
selected
|
|
132
|
+
} = filter;
|
|
133
|
+
|
|
134
|
+
function handleChange() {
|
|
135
|
+
onChange(value);
|
|
136
|
+
handleSearchReset();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
140
|
+
key: index,
|
|
141
|
+
className: style.filterButtonWrapper
|
|
142
|
+
}, /*#__PURE__*/React.createElement(FilterButton, {
|
|
143
|
+
selected: selected,
|
|
144
|
+
filter: name,
|
|
145
|
+
onClick: handleChange
|
|
146
|
+
}), value === 'ALL' ? /*#__PURE__*/React.createElement("div", {
|
|
147
|
+
className: style.divider
|
|
148
|
+
}) : null);
|
|
149
|
+
}) : null), /*#__PURE__*/React.createElement("div", null, searchResults.length > 0 ? /*#__PURE__*/React.createElement(CardsGrid, {
|
|
150
|
+
list: searchResults,
|
|
151
|
+
justifyContent: "left"
|
|
152
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
153
|
+
className: style.emptySearchResultContainer
|
|
154
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
155
|
+
className: style.emptySearchResultTitle
|
|
156
|
+
}, translate('empty_search_result_title', {
|
|
157
|
+
searchValue
|
|
158
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
159
|
+
className: style.emptySearchResultDescription
|
|
160
|
+
}, translate('empty_search_result_description')), /*#__PURE__*/React.createElement("div", {
|
|
161
|
+
className: style.emptySearchResultClearSearch,
|
|
162
|
+
onClick: handleSearchReset
|
|
163
|
+
}, translate('empty_search_result_clear_search')))));
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
AllCourses.contextTypes = {
|
|
167
|
+
skin: Provider.childContextTypes.skin,
|
|
168
|
+
translate: Provider.childContextTypes.translate
|
|
169
|
+
};
|
|
170
|
+
AllCourses.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
171
|
+
skillIncludedCourses: PropTypes.shape(CardsGrid.propTypes),
|
|
172
|
+
filters: PropTypes.shape({
|
|
173
|
+
onChange: PropTypes.func,
|
|
174
|
+
options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))
|
|
175
|
+
}),
|
|
176
|
+
sorting: PropTypes.shape(Select.propTypes)
|
|
177
|
+
} : {};
|
|
178
|
+
export default AllCourses;
|
|
179
|
+
//# sourceMappingURL=all-courses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-courses.js","names":["React","useState","useCallback","PropTypes","Provider","Select","SelectOptionPropTypes","ButtonLink","SearchForm","CardsGrid","searchValueIncluded","InputSwitch","style","FilterButton","props","context","selected","filter","onClick","skin","primarySkinColor","buttonProps","customStyle","backgroundColor","color","transition","width","label","contextTypes","childContextTypes","translate","propTypes","bool","string","func","AllCourses","skillIncludedCourses","filters","sorting","options","onChange","list","showCompleted","setShowCompleted","searchValue","setSearchValue","searchResults","setSearchResults","sort","a","b","progressA","progress","progressB","sortView","undefined","handleSearch","value","skill","title","handleSearchReset","handleShowCompletedToggle","tempShowCompleted","continueLearningWrapper","continueLearningTitle","continueLearningNumber","length","searchAndSortSection","searchWrapper","placeholder","sortSection","sortWrapper","filterWrapper","map","index","name","handleChange","filterButtonWrapper","divider","emptySearchResultContainer","emptySearchResultTitle","emptySearchResultDescription","emptySearchResultClearSearch","shape","arrayOf"],"sources":["../../../src/template/skill-detail/all-courses.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Select, {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLink from '../../atom/button-link';\nimport SearchForm from '../../molecule/search-form';\nimport CardsGrid from '../../organism/cards-grid';\nimport searchValueIncluded from '../../util/search-value-included';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './all-courses.css';\n\nconst FilterButton = (props, context) => {\n const {selected, filter, onClick} = props;\n const {skin} = context;\n const primarySkinColor = get('common.primary', skin);\n\n const buttonProps = {\n customStyle: {\n backgroundColor: selected ? primarySkinColor : '#E1E1E3',\n color: selected ? '#FFFFFF' : '#515161',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',\n width: 'fit-content'\n },\n label: filter,\n onClick,\n 'data-name': 'filter-type-course-button'\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nFilterButton.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nFilterButton.propTypes = {\n selected: PropTypes.bool,\n filter: PropTypes.string,\n onClick: PropTypes.func\n};\n\nconst AllCourses = (props, context) => {\n const {skillIncludedCourses, filters, sorting} = props;\n const {options, onChange} = filters;\n const {list} = skillIncludedCourses;\n const {translate} = context;\n const [showCompleted, setShowCompleted] = useState(true);\n const [searchValue, setSearchValue] = useState('');\n const [searchResults, setSearchResults] = useState(\n list.sort((a, b) => {\n const progressA = a.progress ?? 0;\n const progressB = b.progress ?? 0;\n return progressB - progressA;\n })\n );\n\n const sortView =\n sorting !== undefined ? (\n <div data-name=\"choice\">\n <Select {...sorting} aria-label=\"All courses sort\" />\n </div>\n ) : null;\n\n const handleSearch = useCallback(\n value => {\n setSearchValue(value);\n setSearchResults(list.filter(skill => searchValueIncluded(skill.title, value)));\n },\n [list, setSearchValue, setSearchResults]\n );\n\n const handleSearchReset = useCallback(() => {\n setSearchValue('');\n setSearchResults(list);\n }, [list, setSearchValue, setSearchResults]);\n\n const handleShowCompletedToggle = useCallback(() => {\n const tempShowCompleted = !showCompleted;\n setShowCompleted(tempShowCompleted);\n if (tempShowCompleted) {\n setSearchResults(list);\n handleSearchReset();\n } else {\n setSearchResults(searchResults.filter(skill => skill.progress === 0));\n }\n }, [searchResults, showCompleted, setShowCompleted]);\n\n return (\n <>\n <div className={style.continueLearningWrapper}>\n <span className={style.continueLearningTitle}>{translate('all_courses')}</span>\n <span className={style.continueLearningNumber}>{skillIncludedCourses.list.length}</span>\n </div>\n <div className={style.searchAndSortSection}>\n <div className={style.searchWrapper}>\n <SearchForm\n search={{\n placeholder: translate('search_place_holder'),\n value: searchValue,\n onChange: handleSearch\n }}\n onReset={handleSearchReset}\n />\n </div>\n <div className={style.sortSection}>\n <InputSwitch\n type=\"switch\"\n title={translate('show_completed')}\n value={showCompleted}\n onChange={handleShowCompletedToggle}\n />\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n {sortView}\n </div>\n </div>\n </div>\n <div className={style.filterWrapper}>\n {options.length > 2 && searchResults.length > 0\n ? options.map((filter, index) => {\n const {name, value, selected} = filter;\n\n function handleChange() {\n onChange(value);\n handleSearchReset();\n }\n return (\n <div key={index} className={style.filterButtonWrapper}>\n <FilterButton selected={selected} filter={name} onClick={handleChange} />\n {value === 'ALL' ? <div className={style.divider} /> : null}\n </div>\n );\n })\n : null}\n </div>\n <div>\n {searchResults.length > 0 ? (\n <CardsGrid list={searchResults} justifyContent=\"left\" />\n ) : (\n <div className={style.emptySearchResultContainer}>\n <div className={style.emptySearchResultTitle}>\n {translate('empty_search_result_title', {searchValue})}\n </div>\n <div className={style.emptySearchResultDescription}>\n {translate('empty_search_result_description')}\n </div>\n <div className={style.emptySearchResultClearSearch} onClick={handleSearchReset}>\n {translate('empty_search_result_clear_search')}\n </div>\n </div>\n )}\n </div>\n </>\n );\n};\n\nAllCourses.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nAllCourses.propTypes = {\n skillIncludedCourses: PropTypes.shape(CardsGrid.propTypes),\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n sorting: PropTypes.shape(Select.propTypes)\n};\n\nexport default AllCourses;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,WAAzB,QAA2C,OAA3C;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,IAAgBC,qBAAhB,QAA4C,mBAA5C;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,UAAP,MAAuB,4BAAvB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,mBAAP,MAAgC,kCAAhC;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,mBAAlB;;AAEA,MAAMC,YAAY,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACvC,MAAM;IAACC,QAAD;IAAWC,MAAX;IAAmBC;EAAnB,IAA8BJ,KAApC;EACA,MAAM;IAACK;EAAD,IAASJ,OAAf;;EACA,MAAMK,gBAAgB,GAAG,KAAI,gBAAJ,EAAsBD,IAAtB,CAAzB;;EAEA,MAAME,WAAW,GAAG;IAClBC,WAAW,EAAE;MACXC,eAAe,EAAEP,QAAQ,GAAGI,gBAAH,GAAsB,SADpC;MAEXI,KAAK,EAAER,QAAQ,GAAG,SAAH,GAAe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rapper {
|
|
2
|
+
margin-top: 40px;
|
|
3
|
+
margin-bottom: 16px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.continueLearningTitle {
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
line-height: 22px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.continueLearningNumber {
|
|
13
|
+
border-radius: 50%;
|
|
14
|
+
background-color: #EAEAEB;
|
|
15
|
+
color: #515161;
|
|
16
|
+
padding: 2px 4px;
|
|
17
|
+
margin-left: 8px;
|
|
18
|
+
font-size: 10px;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
line-height: 12px;
|
|
21
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default ContinueLearning;
|
|
2
|
+
declare function ContinueLearning(props: any, context: any): JSX.Element | null;
|
|
3
|
+
declare namespace ContinueLearning {
|
|
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 ongoingCourses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
31
|
+
justifyContent: PropTypes.Requireable<string>;
|
|
32
|
+
loading: PropTypes.Requireable<boolean>;
|
|
33
|
+
}>>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
import PropTypes from "prop-types";
|
|
37
|
+
//# sourceMappingURL=continue-learning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue-learning.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/continue-learning.js"],"names":[],"mappings":";AAOA,gFAkBC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import Provider from '../../atom/provider';
|
|
4
|
+
import CardsGrid from '../../organism/cards-grid';
|
|
5
|
+
import CardsList from '../../molecule/dashboard/cards-list';
|
|
6
|
+
import style from './continue-learning.css';
|
|
7
|
+
|
|
8
|
+
const ContinueLearning = (props, context) => {
|
|
9
|
+
const {
|
|
10
|
+
ongoingCourses
|
|
11
|
+
} = props;
|
|
12
|
+
const {
|
|
13
|
+
translate
|
|
14
|
+
} = context;
|
|
15
|
+
|
|
16
|
+
if (ongoingCourses.list.length === 0) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const Title = () => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
className: style.continueLearningTitle
|
|
22
|
+
}, translate('continue_learning')), /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
className: style.continueLearningNumber
|
|
24
|
+
}, ongoingCourses.list.length));
|
|
25
|
+
|
|
26
|
+
return /*#__PURE__*/React.createElement(CardsList, {
|
|
27
|
+
cards: ongoingCourses.list,
|
|
28
|
+
title: /*#__PURE__*/React.createElement(Title, null),
|
|
29
|
+
customStyle: {
|
|
30
|
+
padding: '16px 0px 8px'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
ContinueLearning.contextTypes = {
|
|
36
|
+
skin: Provider.childContextTypes.skin,
|
|
37
|
+
translate: Provider.childContextTypes.translate
|
|
38
|
+
};
|
|
39
|
+
ContinueLearning.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
40
|
+
ongoingCourses: PropTypes.shape(CardsGrid.propTypes)
|
|
41
|
+
} : {};
|
|
42
|
+
export default ContinueLearning;
|
|
43
|
+
//# sourceMappingURL=continue-learning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continue-learning.js","names":["React","PropTypes","Provider","CardsGrid","CardsList","style","ContinueLearning","props","context","ongoingCourses","translate","list","length","Title","continueLearningTitle","continueLearningNumber","padding","contextTypes","skin","childContextTypes","propTypes","shape"],"sources":["../../../src/template/skill-detail/continue-learning.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../../atom/provider';\nimport CardsGrid from '../../organism/cards-grid';\nimport CardsList from '../../molecule/dashboard/cards-list';\nimport style from './continue-learning.css';\n\nconst ContinueLearning = (props, context) => {\n const {ongoingCourses} = props;\n const {translate} = context;\n\n if (ongoingCourses.list.length === 0) {\n return null;\n }\n\n const Title = () => (\n <>\n <span className={style.continueLearningTitle}>{translate('continue_learning')}</span>\n <span className={style.continueLearningNumber}>{ongoingCourses.list.length}</span>\n </>\n );\n\n return (\n <CardsList cards={ongoingCourses.list} title={<Title />} customStyle={{padding: '16px 0px 8px'}}/>\n );\n};\n\nContinueLearning.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContinueLearning.propTypes = {\n ongoingCourses: PropTypes.shape(CardsGrid.propTypes)\n};\n\nexport default ContinueLearning;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,SAAP,MAAsB,qCAAtB;AACA,OAAOC,KAAP,MAAkB,yBAAlB;;AAEA,MAAMC,gBAAgB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC3C,MAAM;IAACC;EAAD,IAAmBF,KAAzB;EACA,MAAM;IAACG;EAAD,IAAcF,OAApB;;EAEA,IAAIC,cAAc,CAACE,IAAf,CAAoBC,MAApB,KAA+B,CAAnC,EAAsC;IACpC,OAAO,IAAP;EACD;;EAED,MAAMC,KAAK,GAAG,mBACZ,uDACE;IAAM,SAAS,EAAER,KAAK,CAACS;EAAvB,GAA+CJ,SAAS,CAAC,mBAAD,CAAxD,CADF,eAEE;IAAM,SAAS,EAAEL,KAAK,CAACU;EAAvB,GAAgDN,cAAc,CAACE,IAAf,CAAoBC,MAApE,CAFF,CADF;;EAOA,oBACE,oBAAC,SAAD;IAAW,KAAK,EAAEH,cAAc,CAACE,IAAjC;IAAuC,KAAK,eAAE,oBAAC,KAAD,OAA9C;IAAyD,WAAW,EAAE;MAACK,OAAO,EAAE;IAAV;EAAtE,EADF;AAGD,CAlBD;;AAoBAV,gBAAgB,CAACW,YAAjB,GAAgC;EAC9BC,IAAI,EAAEhB,QAAQ,CAACiB,iBAAT,CAA2BD,IADH;EAE9BR,SAAS,EAAER,QAAQ,CAACiB,iBAAT,CAA2BT;AAFR,CAAhC;AAKAJ,gBAAgB,CAACc,SAAjB,2CAA6B;EAC3BX,cAAc,EAAER,SAAS,CAACoB,KAAV,CAAgBlB,SAAS,CAACiB,SAA1B;AADW,CAA7B;AAIA,eAAed,gBAAf"}
|