@coorpacademy/components 11.24.1 → 11.25.1
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/README.md +7 -0
- package/es/molecule/dashboard/learning-profile-banner/index.d.ts +4 -0
- package/es/molecule/dashboard/learning-profile-banner/index.d.ts.map +1 -0
- package/es/molecule/dashboard/learning-profile-banner/index.js +67 -0
- package/es/molecule/dashboard/learning-profile-banner/index.js.map +1 -0
- package/es/molecule/dashboard/learning-profile-banner/style.css +200 -0
- package/es/template/common/dashboard/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.js +5 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/lib/molecule/dashboard/learning-profile-banner/index.d.ts +4 -0
- package/lib/molecule/dashboard/learning-profile-banner/index.d.ts.map +1 -0
- package/lib/molecule/dashboard/learning-profile-banner/index.js +80 -0
- package/lib/molecule/dashboard/learning-profile-banner/index.js.map +1 -0
- package/lib/molecule/dashboard/learning-profile-banner/style.css +200 -0
- package/lib/template/common/dashboard/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.js +6 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -181,3 +181,10 @@ You may need to install these optional libs depending on which native components
|
|
|
181
181
|
Error when trying to launch the storybook:
|
|
182
182
|
|
|
183
183
|
Try to delete your ```node_modules```, go to the project's root and launch: ```yarn```
|
|
184
|
+
|
|
185
|
+
## Generating a Bundle Analyzer Report
|
|
186
|
+
|
|
187
|
+
To check the content of the bundle and optimize it if needed, we set up `webpack-bundle-analyzer`, which generates a bundle analysis report. This visualizes the size of webpack output files with an interactive zoomable treemap.
|
|
188
|
+
To generate it, just run `npm run build:stats`.
|
|
189
|
+
|
|
190
|
+

|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/molecule/dashboard/learning-profile-banner/index.js"],"names":[],"mappings":";AASA,wEAsCG"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
|
|
3
|
+
// this is a clone and adapt of the review-banner component (packages/@coorpacademy-components/src/molecule/dashboard/review-banner/index.js)
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import ButtonLink from '../../../atom/button-link';
|
|
7
|
+
import style from './style.css';
|
|
8
|
+
const BOOK_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-book.png';
|
|
9
|
+
const TARGET_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-dart.png';
|
|
10
|
+
const LearningProfileBanner = /*#__PURE__*/React.memo(function LearningProfileBanner(props) {
|
|
11
|
+
const {
|
|
12
|
+
title,
|
|
13
|
+
subtitle,
|
|
14
|
+
cta
|
|
15
|
+
} = props;
|
|
16
|
+
|
|
17
|
+
const buttonProps = _extends({}, cta, {
|
|
18
|
+
type: 'primary'
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: style.root,
|
|
23
|
+
"data-name": "start-learning-profile-banner"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: style.container
|
|
26
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: style.banner
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: style.left,
|
|
30
|
+
role: "img",
|
|
31
|
+
"aria-label": "Left image container"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
33
|
+
className: style.image,
|
|
34
|
+
src: BOOK_IMG_URL,
|
|
35
|
+
alt: "Notebook image"
|
|
36
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: style.middle
|
|
38
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
39
|
+
className: style.title,
|
|
40
|
+
"data-name": "learning-profile-banner-title",
|
|
41
|
+
"aria-label": "{title}"
|
|
42
|
+
}, title), /*#__PURE__*/React.createElement("span", {
|
|
43
|
+
className: style.subtitle,
|
|
44
|
+
"data-name": "learning-profile-banner-subtitle",
|
|
45
|
+
"aria-label": "{subtitle}"
|
|
46
|
+
}, subtitle), /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buttonProps, {
|
|
47
|
+
className: style.cta
|
|
48
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: style.right,
|
|
50
|
+
role: "img",
|
|
51
|
+
"aria-label": "Right image container"
|
|
52
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
53
|
+
className: style.image,
|
|
54
|
+
src: TARGET_IMG_URL,
|
|
55
|
+
alt: "Target image"
|
|
56
|
+
})))));
|
|
57
|
+
});
|
|
58
|
+
LearningProfileBanner.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
59
|
+
title: PropTypes.string,
|
|
60
|
+
subtitle: PropTypes.string,
|
|
61
|
+
cta: PropTypes.shape({
|
|
62
|
+
onClick: PropTypes.func,
|
|
63
|
+
label: PropTypes.string
|
|
64
|
+
})
|
|
65
|
+
} : {};
|
|
66
|
+
export default LearningProfileBanner;
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","ButtonLink","style","BOOK_IMG_URL","TARGET_IMG_URL","LearningProfileBanner","memo","props","title","subtitle","cta","buttonProps","type","root","container","banner","left","image","middle","right","propTypes","string","shape","onClick","func","label"],"sources":["../../../../src/molecule/dashboard/learning-profile-banner/index.js"],"sourcesContent":["// this is a clone and adapt of the review-banner component (packages/@coorpacademy-components/src/molecule/dashboard/review-banner/index.js)\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../../atom/button-link';\nimport style from './style.css';\n\nconst BOOK_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-book.png';\nconst TARGET_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-dart.png';\n\nconst LearningProfileBanner = React.memo(function LearningProfileBanner(props) {\n const {title, subtitle, cta} = props;\n const buttonProps = {\n ...cta,\n type: 'primary'\n };\n\n return (\n <div className={style.root} data-name=\"start-learning-profile-banner\">\n <div className={style.container}>\n <div className={style.banner}>\n <div className={style.left} role=\"img\" aria-label=\"Left image container\">\n <img className={style.image} src={BOOK_IMG_URL} alt=\"Notebook image\" />\n </div>\n <div className={style.middle}>\n <span\n className={style.title}\n data-name=\"learning-profile-banner-title\"\n aria-label=\"{title}\"\n >\n {title}\n </span>\n <span\n className={style.subtitle}\n data-name=\"learning-profile-banner-subtitle\"\n aria-label=\"{subtitle}\"\n >\n {subtitle}\n </span>\n <ButtonLink {...buttonProps} className={style.cta} />\n </div>\n <div className={style.right} role=\"img\" aria-label=\"Right image container\">\n <img className={style.image} src={TARGET_IMG_URL} alt=\"Target image\" />\n </div>\n </div>\n </div>\n </div>\n );\n});\n\nLearningProfileBanner.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n cta: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string\n })\n};\n\nexport default LearningProfileBanner;\n"],"mappings":";;AAAA;AACA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,2BAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,YAAY,GAAG,qEAArB;AACA,MAAMC,cAAc,GAAG,qEAAvB;AAEA,MAAMC,qBAAqB,gBAAGN,KAAK,CAACO,IAAN,CAAW,SAASD,qBAAT,CAA+BE,KAA/B,EAAsC;EAC7E,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC;EAAlB,IAAyBH,KAA/B;;EACA,MAAMI,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hB;AAH2B,CAAlC;AASA,eAAehB,qBAAf"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
|
+
@value colors: "../../../variables/colors.css";
|
|
3
|
+
@value tablet from breakpoints;
|
|
4
|
+
@value mobile from breakpoints;
|
|
5
|
+
@value white from colors;
|
|
6
|
+
@value battle_bg from colors;
|
|
7
|
+
@value cm_primary_blue from colors;
|
|
8
|
+
@value cm_blue_700 from colors;
|
|
9
|
+
@value box_shadow_blue_700 from colors;
|
|
10
|
+
@value cm_grey_400 from colors;
|
|
11
|
+
|
|
12
|
+
.root {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
padding: 24px 30px;
|
|
16
|
+
font-family: Gilroy;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.container {
|
|
20
|
+
width: 100%;
|
|
21
|
+
max-width: 1080px;
|
|
22
|
+
height: 214px;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
position: relative;
|
|
26
|
+
top: 0px;
|
|
27
|
+
left: 0px;
|
|
28
|
+
background: battle_bg;
|
|
29
|
+
background-image: url(https://static.coorpacademy.com/assets/images/section-background.png);
|
|
30
|
+
background-size: cover;
|
|
31
|
+
border-radius: 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.container:hover .right, .container:hover .left {
|
|
35
|
+
animation-play-state: running;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.banner {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.left {
|
|
48
|
+
width: 253.067px;
|
|
49
|
+
height: 253.067px;
|
|
50
|
+
transform: rotate(-109.28deg);
|
|
51
|
+
position: relative;
|
|
52
|
+
left: -5.639px;
|
|
53
|
+
top: -60.749px;
|
|
54
|
+
animation-play-state: paused;
|
|
55
|
+
animation-name: leftAnimation;
|
|
56
|
+
animation-duration: 2s;
|
|
57
|
+
animation-delay: 0;
|
|
58
|
+
animation-iteration-count: infinite;
|
|
59
|
+
animation-direction: forward;
|
|
60
|
+
animation-timing-function: ease-in-out;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.right {
|
|
64
|
+
position: relative;
|
|
65
|
+
width: 233.504px;
|
|
66
|
+
height: 233.504px;
|
|
67
|
+
transform: rotate(-55.338deg);
|
|
68
|
+
right: 25.136px;
|
|
69
|
+
bottom: -15px;
|
|
70
|
+
animation-play-state: paused;
|
|
71
|
+
animation-name: rightAnimation;
|
|
72
|
+
animation-duration: 2s;
|
|
73
|
+
animation-delay: 0;
|
|
74
|
+
animation-iteration-count: infinite;
|
|
75
|
+
animation-direction: forward;
|
|
76
|
+
animation-timing-function: ease-in-out;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.image {
|
|
80
|
+
width: 120%;
|
|
81
|
+
height: 120%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.middle {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
align-items: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.title {
|
|
91
|
+
font-family: Gilroy;
|
|
92
|
+
font-size: 40px;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
line-height: 48px;
|
|
96
|
+
color: white;
|
|
97
|
+
display: block;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.subtitle {
|
|
101
|
+
font-family: Gilroy;
|
|
102
|
+
font-size: 20px;
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
line-height: 28px;
|
|
106
|
+
opacity: 0.9;
|
|
107
|
+
display: block;
|
|
108
|
+
color: cm_grey_400;
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.cta {
|
|
113
|
+
margin-top: 22px;
|
|
114
|
+
max-width: 200px;
|
|
115
|
+
border-radius: 36px;
|
|
116
|
+
font-family: Gilroy;
|
|
117
|
+
font-size: 14px;
|
|
118
|
+
font-style: normal;
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
background-color: cm_primary_blue;
|
|
121
|
+
box-shadow: 0px 0px 32px 0px rgba(0, 97, 255, 0.65);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cta:hover {
|
|
125
|
+
background-color: cm_blue_700;
|
|
126
|
+
box-shadow: 0px 0px 32px 0px box_shadow_blue_700;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media tablet {
|
|
130
|
+
.left {
|
|
131
|
+
width: 170px;
|
|
132
|
+
height: 100px;
|
|
133
|
+
top: -67px
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.right {
|
|
137
|
+
width: 170px;
|
|
138
|
+
height: 146px;
|
|
139
|
+
bottom: -45px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.title {
|
|
143
|
+
font-size: 32px;
|
|
144
|
+
line-height: 39px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.subtitle {
|
|
148
|
+
font-size: 16px;
|
|
149
|
+
line-height: 19px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.cta {
|
|
153
|
+
max-width: 175px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media mobile {
|
|
158
|
+
.container {
|
|
159
|
+
height: 161px;
|
|
160
|
+
max-width: 327px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.banner {
|
|
164
|
+
justify-content: center;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.right {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.left {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.title {
|
|
176
|
+
font-size: 32px;
|
|
177
|
+
line-height: 39px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.subtitle {
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
line-height: 19px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.cta {
|
|
186
|
+
max-width: 150px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@keyframes rightAnimation {
|
|
191
|
+
0% {transform: translate3d(0, 10px, 0);}
|
|
192
|
+
50% {transform: translate3d(0, 0, 0);}
|
|
193
|
+
100% {transform: translate3d(0, 10px, 0);}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@keyframes leftAnimation {
|
|
197
|
+
0% {transform: translate3d(0, 0, 0);}
|
|
198
|
+
50% {transform: translate3d(0, 10px, 0);}
|
|
199
|
+
100% {transform: translate3d(0, 0, 0);}
|
|
200
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAsBA,oDAmDC"}
|
|
@@ -10,6 +10,7 @@ import NewsList from '../../../molecule/dashboard/news-list';
|
|
|
10
10
|
import StartBattle from '../../../molecule/dashboard/start-battle';
|
|
11
11
|
import CMPopin from '../../../molecule/cm-popin';
|
|
12
12
|
import ReviewBanner from '../../../molecule/dashboard/review-banner';
|
|
13
|
+
import LearningProfileBanner from '../../../molecule/dashboard/learning-profile-banner';
|
|
13
14
|
import style from './style.css';
|
|
14
15
|
const Hero = /*#__PURE__*/React.memo(function Hero({
|
|
15
16
|
hero,
|
|
@@ -63,6 +64,9 @@ const Dashboard = props => {
|
|
|
63
64
|
case 'review':
|
|
64
65
|
return /*#__PURE__*/React.createElement(ReviewBanner, section);
|
|
65
66
|
|
|
67
|
+
case 'learningProfile':
|
|
68
|
+
return /*#__PURE__*/React.createElement(LearningProfileBanner, section);
|
|
69
|
+
|
|
66
70
|
default:
|
|
67
71
|
return null;
|
|
68
72
|
}
|
|
@@ -92,7 +96,7 @@ const Dashboard = props => {
|
|
|
92
96
|
Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
93
97
|
hero: Hero.propTypes.hero,
|
|
94
98
|
welcome: Hero.propTypes.welcome,
|
|
95
|
-
sections: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(BattleRequestList.propTypes), PropTypes.shape(CardsList.propTypes), PropTypes.shape(NewsList.propTypes), PropTypes.shape(StartBattle.propTypes), PropTypes.shape(ReviewBanner.propTypes)])),
|
|
99
|
+
sections: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(BattleRequestList.propTypes), PropTypes.shape(CardsList.propTypes), PropTypes.shape(NewsList.propTypes), PropTypes.shape(StartBattle.propTypes), PropTypes.shape(ReviewBanner.propTypes), PropTypes.shape(LearningProfileBanner.propTypes)])),
|
|
96
100
|
cookie: PropTypes.shape(CMPopin.propTypes),
|
|
97
101
|
'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],
|
|
98
102
|
popinWithCards: PropTypes.shape(CMPopin.propTypes)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Slide","HeroCard","BattleRequestList","CardsList","NewsList","StartBattle","CMPopin","ReviewBanner","style","Hero","memo","hero","welcome","propTypes","shape","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,qBAAlB;AACA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,iBAAP,MAA8B,iDAA9B;AACA,OAAOC,SAAP,MAAsB,wCAAtB;AACA,OAAOC,QAAP,MAAqB,uCAArB;AACA,OAAOC,WAAP,MAAwB,0CAAxB;AACA,OAAOC,OAAP,MAAoB,4BAApB;AACA,OAAOC,YAAP,MAAyB,2CAAzB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Slide","HeroCard","BattleRequestList","CardsList","NewsList","StartBattle","CMPopin","ReviewBanner","LearningProfileBanner","style","Hero","memo","hero","welcome","propTypes","shape","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport LearningProfileBanner from '../../../molecule/dashboard/learning-profile-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n case 'learningProfile':\n return <LearningProfileBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes),\n PropTypes.shape(LearningProfileBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default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F,IAAI,CAACI,SAAL,CAAeF,IADD;EAEpBC,OAAO,EAAEH,IAAI,CAACI,SAAL,CAAeD,OAFJ;EAGpBK,QAAQ,EAAEnB,SAAS,CAACiC,OAAV,CACRjC,SAAS,CAACkC,SAAV,CAAoB,CAClBlC,SAAS,CAACgB,KAAV,CAAgBb,iBAAiB,CAACY,SAAlC,CADkB,EAElBf,SAAS,CAACgB,KAAV,CAAgBZ,SAAS,CAACW,SAA1B,CAFkB,EAGlBf,SAAS,CAACgB,KAAV,CAAgBX,QAAQ,CAACU,SAAzB,CAHkB,EAIlBf,SAAS,CAACgB,KAAV,CAAgBV,WAAW,CAACS,SAA5B,CAJkB,EAKlBf,SAAS,CAACgB,KAAV,CAAgBR,YAAY,CAACO,SAA7B,CALkB,EAMlBf,SAAS,CAACgB,KAAV,CAAgBP,qBAAqB,CAACM,SAAtC,CANkB,CAApB,CADQ,CAHU;EAapBK,MAAM,EAAEpB,SAAS,CAACgB,KAAV,CAAgBT,OAAO,CAACQ,SAAxB,CAbY;EAcpB,qBAAqBX,SAAS,CAACW,SAAV,CAAoB,mBAApB,CAdD;EAepBM,cAAc,EAAErB,SAAS,CAACgB,KAAV,CAAgBT,OAAO,CAACQ,SAAxB;AAfI,CAAtB;AAiBA,eAAeE,SAAf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/molecule/dashboard/learning-profile-banner/index.js"],"names":[],"mappings":";AASA,wEAsCG"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
var _buttonLink = _interopRequireDefault(require("../../../atom/button-link"));
|
|
11
|
+
|
|
12
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
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); }
|
|
17
|
+
|
|
18
|
+
const BOOK_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-book.png';
|
|
19
|
+
const TARGET_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-dart.png';
|
|
20
|
+
|
|
21
|
+
const LearningProfileBanner = /*#__PURE__*/_react.default.memo(function LearningProfileBanner(props) {
|
|
22
|
+
const {
|
|
23
|
+
title,
|
|
24
|
+
subtitle,
|
|
25
|
+
cta
|
|
26
|
+
} = props;
|
|
27
|
+
|
|
28
|
+
const buttonProps = _extends({}, cta, {
|
|
29
|
+
type: 'primary'
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
+
className: _style.default.root,
|
|
34
|
+
"data-name": "start-learning-profile-banner"
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
+
className: _style.default.container
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
className: _style.default.banner
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
40
|
+
className: _style.default.left,
|
|
41
|
+
role: "img",
|
|
42
|
+
"aria-label": "Left image container"
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
44
|
+
className: _style.default.image,
|
|
45
|
+
src: BOOK_IMG_URL,
|
|
46
|
+
alt: "Notebook image"
|
|
47
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
+
className: _style.default.middle
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
50
|
+
className: _style.default.title,
|
|
51
|
+
"data-name": "learning-profile-banner-title",
|
|
52
|
+
"aria-label": "{title}"
|
|
53
|
+
}, title), /*#__PURE__*/_react.default.createElement("span", {
|
|
54
|
+
className: _style.default.subtitle,
|
|
55
|
+
"data-name": "learning-profile-banner-subtitle",
|
|
56
|
+
"aria-label": "{subtitle}"
|
|
57
|
+
}, subtitle), /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, buttonProps, {
|
|
58
|
+
className: _style.default.cta
|
|
59
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
+
className: _style.default.right,
|
|
61
|
+
role: "img",
|
|
62
|
+
"aria-label": "Right image container"
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
64
|
+
className: _style.default.image,
|
|
65
|
+
src: TARGET_IMG_URL,
|
|
66
|
+
alt: "Target image"
|
|
67
|
+
})))));
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
LearningProfileBanner.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
71
|
+
title: _propTypes.default.string,
|
|
72
|
+
subtitle: _propTypes.default.string,
|
|
73
|
+
cta: _propTypes.default.shape({
|
|
74
|
+
onClick: _propTypes.default.func,
|
|
75
|
+
label: _propTypes.default.string
|
|
76
|
+
})
|
|
77
|
+
} : {};
|
|
78
|
+
var _default = LearningProfileBanner;
|
|
79
|
+
exports.default = _default;
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["BOOK_IMG_URL","TARGET_IMG_URL","LearningProfileBanner","React","memo","props","title","subtitle","cta","buttonProps","type","style","root","container","banner","left","image","middle","right","propTypes","PropTypes","string","shape","onClick","func","label"],"sources":["../../../../src/molecule/dashboard/learning-profile-banner/index.js"],"sourcesContent":["// this is a clone and adapt of the review-banner component (packages/@coorpacademy-components/src/molecule/dashboard/review-banner/index.js)\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../../atom/button-link';\nimport style from './style.css';\n\nconst BOOK_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-book.png';\nconst TARGET_IMG_URL = 'https://static.coorpacademy.com/assets/images/section-item-dart.png';\n\nconst LearningProfileBanner = React.memo(function LearningProfileBanner(props) {\n const {title, subtitle, cta} = props;\n const buttonProps = {\n ...cta,\n type: 'primary'\n };\n\n return (\n <div className={style.root} data-name=\"start-learning-profile-banner\">\n <div className={style.container}>\n <div className={style.banner}>\n <div className={style.left} role=\"img\" aria-label=\"Left image container\">\n <img className={style.image} src={BOOK_IMG_URL} alt=\"Notebook image\" />\n </div>\n <div className={style.middle}>\n <span\n className={style.title}\n data-name=\"learning-profile-banner-title\"\n aria-label=\"{title}\"\n >\n {title}\n </span>\n <span\n className={style.subtitle}\n data-name=\"learning-profile-banner-subtitle\"\n aria-label=\"{subtitle}\"\n >\n {subtitle}\n </span>\n <ButtonLink {...buttonProps} className={style.cta} />\n </div>\n <div className={style.right} role=\"img\" aria-label=\"Right image container\">\n <img className={style.image} src={TARGET_IMG_URL} alt=\"Target image\" />\n </div>\n </div>\n </div>\n </div>\n );\n});\n\nLearningProfileBanner.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n cta: PropTypes.shape({\n onClick: PropTypes.func,\n label: PropTypes.string\n })\n};\n\nexport default LearningProfileBanner;\n"],"mappings":";;;;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,YAAY,GAAG,qEAArB;AACA,MAAMC,cAAc,GAAG,qEAAvB;;AAEA,MAAMC,qBAAqB,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,qBAAT,CAA+BG,KAA/B,EAAsC;EAC7E,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC;EAAlB,IAAyBH,KAA/B;;EACA,MAAMI,WAAW,gBACZD,GADY;IAEfE,IAAI,EAAE;EAFS,EAAjB;;EAKA,oBACE;IAAK,SAAS,EAA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
|
+
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
|
+
@value colors: "../../../variables/colors.css";
|
|
3
|
+
@value tablet from breakpoints;
|
|
4
|
+
@value mobile from breakpoints;
|
|
5
|
+
@value white from colors;
|
|
6
|
+
@value battle_bg from colors;
|
|
7
|
+
@value cm_primary_blue from colors;
|
|
8
|
+
@value cm_blue_700 from colors;
|
|
9
|
+
@value box_shadow_blue_700 from colors;
|
|
10
|
+
@value cm_grey_400 from colors;
|
|
11
|
+
|
|
12
|
+
.root {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
padding: 24px 30px;
|
|
16
|
+
font-family: Gilroy;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.container {
|
|
20
|
+
width: 100%;
|
|
21
|
+
max-width: 1080px;
|
|
22
|
+
height: 214px;
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
position: relative;
|
|
26
|
+
top: 0px;
|
|
27
|
+
left: 0px;
|
|
28
|
+
background: battle_bg;
|
|
29
|
+
background-image: url(https://static.coorpacademy.com/assets/images/section-background.png);
|
|
30
|
+
background-size: cover;
|
|
31
|
+
border-radius: 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.container:hover .right, .container:hover .left {
|
|
35
|
+
animation-play-state: running;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.banner {
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.left {
|
|
48
|
+
width: 253.067px;
|
|
49
|
+
height: 253.067px;
|
|
50
|
+
transform: rotate(-109.28deg);
|
|
51
|
+
position: relative;
|
|
52
|
+
left: -5.639px;
|
|
53
|
+
top: -60.749px;
|
|
54
|
+
animation-play-state: paused;
|
|
55
|
+
animation-name: leftAnimation;
|
|
56
|
+
animation-duration: 2s;
|
|
57
|
+
animation-delay: 0;
|
|
58
|
+
animation-iteration-count: infinite;
|
|
59
|
+
animation-direction: forward;
|
|
60
|
+
animation-timing-function: ease-in-out;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.right {
|
|
64
|
+
position: relative;
|
|
65
|
+
width: 233.504px;
|
|
66
|
+
height: 233.504px;
|
|
67
|
+
transform: rotate(-55.338deg);
|
|
68
|
+
right: 25.136px;
|
|
69
|
+
bottom: -15px;
|
|
70
|
+
animation-play-state: paused;
|
|
71
|
+
animation-name: rightAnimation;
|
|
72
|
+
animation-duration: 2s;
|
|
73
|
+
animation-delay: 0;
|
|
74
|
+
animation-iteration-count: infinite;
|
|
75
|
+
animation-direction: forward;
|
|
76
|
+
animation-timing-function: ease-in-out;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.image {
|
|
80
|
+
width: 120%;
|
|
81
|
+
height: 120%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.middle {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
align-items: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.title {
|
|
91
|
+
font-family: Gilroy;
|
|
92
|
+
font-size: 40px;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
font-weight: 500;
|
|
95
|
+
line-height: 48px;
|
|
96
|
+
color: white;
|
|
97
|
+
display: block;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.subtitle {
|
|
101
|
+
font-family: Gilroy;
|
|
102
|
+
font-size: 20px;
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
line-height: 28px;
|
|
106
|
+
opacity: 0.9;
|
|
107
|
+
display: block;
|
|
108
|
+
color: cm_grey_400;
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.cta {
|
|
113
|
+
margin-top: 22px;
|
|
114
|
+
max-width: 200px;
|
|
115
|
+
border-radius: 36px;
|
|
116
|
+
font-family: Gilroy;
|
|
117
|
+
font-size: 14px;
|
|
118
|
+
font-style: normal;
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
background-color: cm_primary_blue;
|
|
121
|
+
box-shadow: 0px 0px 32px 0px rgba(0, 97, 255, 0.65);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cta:hover {
|
|
125
|
+
background-color: cm_blue_700;
|
|
126
|
+
box-shadow: 0px 0px 32px 0px box_shadow_blue_700;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media tablet {
|
|
130
|
+
.left {
|
|
131
|
+
width: 170px;
|
|
132
|
+
height: 100px;
|
|
133
|
+
top: -67px
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.right {
|
|
137
|
+
width: 170px;
|
|
138
|
+
height: 146px;
|
|
139
|
+
bottom: -45px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.title {
|
|
143
|
+
font-size: 32px;
|
|
144
|
+
line-height: 39px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.subtitle {
|
|
148
|
+
font-size: 16px;
|
|
149
|
+
line-height: 19px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.cta {
|
|
153
|
+
max-width: 175px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@media mobile {
|
|
158
|
+
.container {
|
|
159
|
+
height: 161px;
|
|
160
|
+
max-width: 327px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.banner {
|
|
164
|
+
justify-content: center;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.right {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.left {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.title {
|
|
176
|
+
font-size: 32px;
|
|
177
|
+
line-height: 39px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.subtitle {
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
line-height: 19px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.cta {
|
|
186
|
+
max-width: 150px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@keyframes rightAnimation {
|
|
191
|
+
0% {transform: translate3d(0, 10px, 0);}
|
|
192
|
+
50% {transform: translate3d(0, 0, 0);}
|
|
193
|
+
100% {transform: translate3d(0, 10px, 0);}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@keyframes leftAnimation {
|
|
197
|
+
0% {transform: translate3d(0, 0, 0);}
|
|
198
|
+
50% {transform: translate3d(0, 10px, 0);}
|
|
199
|
+
100% {transform: translate3d(0, 0, 0);}
|
|
200
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAsBA,oDAmDC"}
|
|
@@ -23,6 +23,8 @@ var _cmPopin = _interopRequireDefault(require("../../../molecule/cm-popin"));
|
|
|
23
23
|
|
|
24
24
|
var _reviewBanner = _interopRequireDefault(require("../../../molecule/dashboard/review-banner"));
|
|
25
25
|
|
|
26
|
+
var _learningProfileBanner = _interopRequireDefault(require("../../../molecule/dashboard/learning-profile-banner"));
|
|
27
|
+
|
|
26
28
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
27
29
|
|
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -82,6 +84,9 @@ const Dashboard = props => {
|
|
|
82
84
|
case 'review':
|
|
83
85
|
return /*#__PURE__*/_react.default.createElement(_reviewBanner.default, section);
|
|
84
86
|
|
|
87
|
+
case 'learningProfile':
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement(_learningProfileBanner.default, section);
|
|
89
|
+
|
|
85
90
|
default:
|
|
86
91
|
return null;
|
|
87
92
|
}
|
|
@@ -111,7 +116,7 @@ const Dashboard = props => {
|
|
|
111
116
|
Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
112
117
|
hero: Hero.propTypes.hero,
|
|
113
118
|
welcome: Hero.propTypes.welcome,
|
|
114
|
-
sections: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_battleRequestList.default.propTypes), _propTypes.default.shape(_cardsList.default.propTypes), _propTypes.default.shape(_newsList.default.propTypes), _propTypes.default.shape(_startBattle.default.propTypes), _propTypes.default.shape(_reviewBanner.default.propTypes)])),
|
|
119
|
+
sections: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_battleRequestList.default.propTypes), _propTypes.default.shape(_cardsList.default.propTypes), _propTypes.default.shape(_newsList.default.propTypes), _propTypes.default.shape(_startBattle.default.propTypes), _propTypes.default.shape(_reviewBanner.default.propTypes), _propTypes.default.shape(_learningProfileBanner.default.propTypes)])),
|
|
115
120
|
cookie: _propTypes.default.shape(_cmPopin.default.propTypes),
|
|
116
121
|
'arrows-aria-label': _cardsList.default.propTypes['arrows-aria-label'],
|
|
117
122
|
popinWithCards: _propTypes.default.shape(_cmPopin.default.propTypes)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Hero","React","memo","hero","welcome","style","propTypes","PropTypes","shape","HeroCard","Slide","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType","BattleRequestList","CardsList","NewsList","StartBattle","ReviewBanner","CMPopin"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EAACG,IAAD;EAAOC;AAAP,CAAd,EAA+B;EACrD,oBAAO;IAAK,SAAS,EAAEC,cAAA,CAAMF;EAAtB,GAA6BA,IAAI,gBAAG,6BAAC,aAAD,EAAcA,IAAd,CAAH,gBAA4B,6BAAC,cAAD,EAAWC,OAAX,CAA7D,CAAP;AACD,CAFY,CAAb;;AAIAJ,IAAI,CAACM,SAAL,2CAAiB;EACfH,IAAI,EAAEI,kBAAA,CAAUC,KAAV,CAAgBC,aAAA,CAASH,SAAzB,CADS;EAEfF,OAAO,EAAEG,kBAAA,CAAUC,KAAV,CAAgBE,cAAA,CAAMJ,SAAtB;AAFM,CAAjB;;AAKA,MAAMK,SAAS,GAAGC,KAAK,IAAI;EACzB,MAAM;IACJC,QAAQ,GAAG,EADP;IAEJV,IAFI;IAGJC,OAHI;IAIJU,MAJI;IAKJC,cALI;IAMJ,qBAAqBC;EANjB,IAOFJ,KAPJ;;EAQA,MAAMK,qBAAqB,GAAGC,OAAO,IAAI;IACvC,MAAM;MAACC;IAAD,IAASD,OAAf;;IACA,QAAQC,IAAR;MACE,KAAK,MAAL;QACE,oBAAO,6BAAC,IAAD;UAAM,IAAI,EAAEhB,IAAZ;UAAkB,OAAO,EAAEC;QAA3B,EAAP;;MACF,KAAK,gBAAL;QACE,oBAAO,6BAAC,0BAAD,EAAuBc,OAAvB,CAAP;;MACF,KAAK,OAAL;QACE,oBAAO,6BAAC,kBAAD,eAAeA,OAAf;UAAwB,qBAAmBF;QAA3C,GAAP;;MACF,KAAK,MAAL;QACE,oBAAO,6BAAC,iBAAD,EAAcE,OAAd,CAAP;;MACF,KAAK,QAAL;QACE,oBAAO,6BAAC,oBAAD,EAAiBA,OAAjB,CAAP;;MACF,KAAK,QAAL;QACE,oBAAO,6BAAC,qBAAD,EAAkBA,OAAlB,CAAP;;MACF;QACE,OAAO,IAAP;
|
|
1
|
+
{"version":3,"file":"index.js","names":["Hero","React","memo","hero","welcome","style","propTypes","PropTypes","shape","HeroCard","Slide","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType","BattleRequestList","CardsList","NewsList","StartBattle","ReviewBanner","LearningProfileBanner","CMPopin"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport LearningProfileBanner from '../../../molecule/dashboard/learning-profile-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n case 'learningProfile':\n return <LearningProfileBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes),\n PropTypes.shape(LearningProfileBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EAACG,IAAD;EAAOC;AAAP,CAAd,EAA+B;EACrD,oBAAO;IAAK,SAAS,EAAEC,cAAA,CAAMF;EAAtB,GAA6BA,IAAI,gB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ADQ,CAHU;EAapBQ,MAAM,EAAEP,kBAAA,CAAUC,KAAV,CAAgB2B,gBAAA,CAAQ7B,SAAxB,CAbY;EAcpB,qBAAqBwB,kBAAA,CAAUxB,SAAV,CAAoB,mBAApB,CAdD;EAepBS,cAAc,EAAER,kBAAA,CAAUC,KAAV,CAAgB2B,gBAAA,CAAQ7B,SAAxB;AAfI,CAAtB;eAiBeK,S"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.25.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"build:es": "npm run build:es:babel && npm run build:es:types",
|
|
21
21
|
"build": "concurrently \"npm run build:commonjs\" \"npm run build:es\"",
|
|
22
22
|
"build:watch": "npm run build:es -- -w --verbose",
|
|
23
|
+
"build:stats": "webpack --profile --json=dist/stats.json",
|
|
23
24
|
"clean:commonjs": "rm -rf lib",
|
|
24
25
|
"clean:es": "rm -rf es",
|
|
25
26
|
"clean": "concurrently \"npm run clean:commonjs\" \"npm run clean:es\"",
|
|
@@ -161,12 +162,13 @@
|
|
|
161
162
|
"stylelint-config-standard": "^28.0.0",
|
|
162
163
|
"ts-node": "^10.9.1",
|
|
163
164
|
"typescript": "^4.8.3",
|
|
164
|
-
"webpack": "^5.74.0"
|
|
165
|
+
"webpack": "^5.74.0",
|
|
166
|
+
"webpack-bundle-analyzer": "^4.10.1"
|
|
165
167
|
},
|
|
166
168
|
"author": "CoorpAcademy",
|
|
167
169
|
"browserslist": [
|
|
168
170
|
"last 2 versions",
|
|
169
171
|
"IE 11"
|
|
170
172
|
],
|
|
171
|
-
"gitHead": "
|
|
173
|
+
"gitHead": "65039dc9d9e7355844ad401a6b8463c39043b277"
|
|
172
174
|
}
|