@coorpacademy/components 11.38.3-alpha.19 → 11.38.3-alpha.21
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/input-search/index.d.ts +2 -0
- package/es/atom/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +46 -13
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-search/style.css +97 -0
- package/es/molecule/card/customer.css +3 -0
- package/es/molecule/card/favorite.d.ts.map +1 -1
- package/es/molecule/card/favorite.js +0 -5
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +11 -29
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/notification.css +16 -39
- package/es/molecule/card/notification.d.ts.map +1 -1
- package/es/molecule/card/notification.js +4 -26
- package/es/molecule/card/notification.js.map +1 -1
- package/es/molecule/card/style.css +14 -16
- package/es/molecule/card-content/index.d.ts.map +1 -1
- package/es/molecule/card-content/index.js +36 -79
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-content/style.css +24 -32
- package/es/molecule/cm-popin/types.d.ts +2 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/external-content-button/style.css +0 -1
- package/es/molecule/multi-filter-panel/index.d.ts +2 -0
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +2 -0
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/search-form/index.d.ts +5 -0
- package/es/molecule/search-form/index.d.ts.map +1 -1
- package/es/molecule/search-form/index.js +26 -16
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/search-form/style.css +21 -6
- package/es/organism/brand-table/index.d.ts +2 -0
- package/es/organism/content-skill-modal/index.d.ts +4 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +4 -0
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +2 -0
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +2 -0
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/list-items/index.d.ts +2 -0
- package/es/organism/mooc-header/index.d.ts +14 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +132 -13
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +184 -8
- package/es/template/app-player/loading/index.d.ts +2 -0
- package/es/template/app-player/player/index.d.ts +4 -0
- package/es/template/app-player/player/slides/index.d.ts +2 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +2 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +2 -0
- package/es/template/app-review/index.d.ts +2 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +2 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +2 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +12 -0
- package/es/template/common/dashboard/index.d.ts +4 -0
- package/es/template/common/search-page/index.d.ts +2 -0
- package/es/template/external-course/index.d.ts +2 -0
- package/es/util/check-is-mobile.js +3 -2
- package/es/util/check-is-mobile.js.map +1 -1
- package/es/util/external-content.d.ts +4 -38
- package/es/util/external-content.d.ts.map +1 -1
- package/es/util/external-content.js +4 -33
- package/es/util/external-content.js.map +1 -1
- package/es/variables/colors.d.ts +0 -5
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +1 -6
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/input-search/index.d.ts +2 -0
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +46 -13
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-search/style.css +97 -0
- package/lib/molecule/card/customer.css +3 -0
- package/lib/molecule/card/favorite.d.ts.map +1 -1
- package/lib/molecule/card/favorite.js +0 -5
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +10 -28
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/notification.css +16 -39
- package/lib/molecule/card/notification.d.ts.map +1 -1
- package/lib/molecule/card/notification.js +3 -25
- package/lib/molecule/card/notification.js.map +1 -1
- package/lib/molecule/card/style.css +14 -16
- package/lib/molecule/card-content/index.d.ts.map +1 -1
- package/lib/molecule/card-content/index.js +34 -77
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-content/style.css +24 -32
- package/lib/molecule/cm-popin/types.d.ts +2 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/external-content-button/style.css +0 -1
- package/lib/molecule/multi-filter-panel/index.d.ts +2 -0
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +2 -0
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/search-form/index.d.ts +5 -0
- package/lib/molecule/search-form/index.d.ts.map +1 -1
- package/lib/molecule/search-form/index.js +27 -17
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/search-form/style.css +21 -6
- package/lib/organism/brand-table/index.d.ts +2 -0
- package/lib/organism/content-skill-modal/index.d.ts +4 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +4 -0
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +2 -0
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +2 -0
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/list-items/index.d.ts +2 -0
- package/lib/organism/mooc-header/index.d.ts +14 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +132 -13
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +184 -8
- package/lib/template/app-player/loading/index.d.ts +2 -0
- package/lib/template/app-player/player/index.d.ts +4 -0
- package/lib/template/app-player/player/slides/index.d.ts +2 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +2 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +2 -0
- package/lib/template/app-review/index.d.ts +2 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +2 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +2 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +12 -0
- package/lib/template/common/dashboard/index.d.ts +4 -0
- package/lib/template/common/search-page/index.d.ts +2 -0
- package/lib/template/external-course/index.d.ts +2 -0
- package/lib/util/check-is-mobile.js +3 -2
- package/lib/util/check-is-mobile.js.map +1 -1
- package/lib/util/external-content.d.ts +4 -38
- package/lib/util/external-content.d.ts.map +1 -1
- package/lib/util/external-content.js +5 -34
- package/lib/util/external-content.js.map +1 -1
- package/lib/variables/colors.d.ts +0 -5
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +1 -6
- package/lib/variables/colors.js.map +1 -1
- package/locales/en/global.json +4 -4
- package/package.json +2 -2
|
@@ -5,16 +5,13 @@
|
|
|
5
5
|
@value grey from colors;
|
|
6
6
|
@value dark from colors;
|
|
7
7
|
@value white from colors;
|
|
8
|
-
@value cm_blue_700 from colors;
|
|
9
|
-
@value primary_100 from colors;
|
|
10
|
-
@value cm_grey_75 from colors;
|
|
11
8
|
|
|
12
9
|
.notificationWrapper {
|
|
13
10
|
width: 100%;
|
|
14
11
|
height: 100%;
|
|
15
12
|
top: 0;
|
|
16
13
|
left: 0;
|
|
17
|
-
background:
|
|
14
|
+
background: color(dark a(75%));
|
|
18
15
|
position: absolute;
|
|
19
16
|
z-index: 0;
|
|
20
17
|
opacity: 0;
|
|
@@ -22,64 +19,44 @@
|
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
.notification {
|
|
25
|
-
width:
|
|
22
|
+
width: 100px;
|
|
23
|
+
height: 100px;
|
|
26
24
|
background: light;
|
|
27
25
|
position: absolute;
|
|
28
26
|
top: 50%;
|
|
29
27
|
left: 50%;
|
|
30
|
-
|
|
31
|
-
border-radius:
|
|
32
|
-
padding:
|
|
28
|
+
margin: -50px 0 0 -50px;
|
|
29
|
+
border-radius: 7px;
|
|
30
|
+
padding: 12px 7px 7px;
|
|
33
31
|
box-sizing: border-box;
|
|
34
32
|
color: grey;
|
|
35
|
-
background: cm_grey_75;
|
|
36
|
-
align-items: center;
|
|
37
|
-
display: flex;
|
|
38
|
-
gap: 12px;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
flex-direction: column;
|
|
41
33
|
}
|
|
42
34
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
visibility: visible;
|
|
46
|
-
opacity: 1;
|
|
47
|
-
z-index: 3;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* .showOverlay .notification {
|
|
51
|
-
animation: scale 120s ease-in-out forwards;
|
|
35
|
+
.showOverlay .notification {
|
|
36
|
+
animation: scale 3s ease-in-out forwards;
|
|
52
37
|
}
|
|
53
38
|
|
|
54
39
|
.showOverlay {
|
|
55
|
-
animation: fadeIn
|
|
56
|
-
}
|
|
40
|
+
animation: fadeIn 3s ease-in-out forwards;
|
|
41
|
+
}
|
|
57
42
|
|
|
58
43
|
.notification .icon {
|
|
59
44
|
font-size: 30px;
|
|
60
|
-
height:
|
|
61
|
-
width:
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.iconWrapper {
|
|
65
|
-
width: 32px;
|
|
66
|
-
height: 32px;
|
|
67
|
-
padding: 8px;
|
|
68
|
-
display: flex;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
align-items: center;
|
|
71
|
-
border-radius: 12px;
|
|
45
|
+
height: 30px;
|
|
46
|
+
width: 100%;
|
|
72
47
|
}
|
|
73
48
|
|
|
74
49
|
.message {
|
|
75
|
-
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 50px;
|
|
52
|
+
line-height: 50px;
|
|
76
53
|
}
|
|
77
54
|
|
|
78
55
|
.message span {
|
|
79
56
|
display: inline-block;
|
|
80
57
|
vertical-align: middle;
|
|
81
58
|
user-select: none;
|
|
82
|
-
line-height:
|
|
59
|
+
line-height: 16px;
|
|
83
60
|
font-size: 14px;
|
|
84
61
|
font-family: 'Gilroy';
|
|
85
62
|
text-align: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/molecule/card/notification.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/molecule/card/notification.js"],"names":[],"mappings":";AAyBA,uDAmBC"}
|
|
@@ -3,25 +3,14 @@ import _get from "lodash/fp/get";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
|
-
import { NovaSolidLoginLocked as LockIcon, NovaSolidLocksLockUnlock1 as UnlockIcon, NovaCompositionCoorpacademyCheck as CheckIcon
|
|
7
|
-
import { COLORS } from '../../variables/colors';
|
|
6
|
+
import { NovaCompositionNavigationMore as MoreIcon, NovaSolidLoginLocked as LockIcon, NovaSolidLocksLockUnlock1 as UnlockIcon, NovaCompositionCoorpacademyCheck as CheckIcon } from '@coorpacademy/nova-icons';
|
|
8
7
|
import style from './notification.css';
|
|
9
8
|
const NOTIFICATION_ICON = {
|
|
10
9
|
addFavorite: CheckIcon,
|
|
11
|
-
removeFavorite:
|
|
10
|
+
removeFavorite: MoreIcon,
|
|
12
11
|
lock: LockIcon,
|
|
13
12
|
unlock: UnlockIcon
|
|
14
13
|
};
|
|
15
|
-
const NOTIFICATIONS_COLORS = {
|
|
16
|
-
addFavorite: {
|
|
17
|
-
color: COLORS.cm_blue_700,
|
|
18
|
-
backgroundColor: COLORS.primary_100
|
|
19
|
-
},
|
|
20
|
-
removeFavorite: {
|
|
21
|
-
color: COLORS.neutral_500,
|
|
22
|
-
backgroundColor: COLORS.cm_grey_100
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
14
|
const handleOverlayClick = e => {
|
|
26
15
|
e.stopPropagation();
|
|
27
16
|
e.preventDefault();
|
|
@@ -33,12 +22,6 @@ const Notification = props => {
|
|
|
33
22
|
icon
|
|
34
23
|
} = props;
|
|
35
24
|
const IconType = _get(icon, NOTIFICATION_ICON);
|
|
36
|
-
const {
|
|
37
|
-
color,
|
|
38
|
-
backgroundColor
|
|
39
|
-
} = _get(icon, NOTIFICATIONS_COLORS);
|
|
40
|
-
// eslint-disable-next-line no-console
|
|
41
|
-
console.log('color', color, 'backgroundColor', backgroundColor);
|
|
42
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
43
26
|
"data-name": "notification",
|
|
44
27
|
"data-type": icon,
|
|
@@ -46,18 +29,13 @@ const Notification = props => {
|
|
|
46
29
|
className: classnames(style.showOverlay, style.notificationWrapper)
|
|
47
30
|
}, /*#__PURE__*/React.createElement("div", {
|
|
48
31
|
className: style.notification
|
|
49
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className: style.iconWrapper,
|
|
51
|
-
style: {
|
|
52
|
-
backgroundColor
|
|
53
|
-
}
|
|
54
32
|
}, /*#__PURE__*/React.createElement(IconType, {
|
|
55
33
|
className: style.icon,
|
|
56
34
|
style: {
|
|
57
|
-
color
|
|
35
|
+
color: null
|
|
58
36
|
},
|
|
59
37
|
stroke: null
|
|
60
|
-
})
|
|
38
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
61
39
|
className: style.message
|
|
62
40
|
}, /*#__PURE__*/React.createElement("span", {
|
|
63
41
|
role: "status"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","names":["React","PropTypes","classnames","NovaSolidLoginLocked","LockIcon","NovaSolidLocksLockUnlock1","UnlockIcon","NovaCompositionCoorpacademyCheck","CheckIcon","
|
|
1
|
+
{"version":3,"file":"notification.js","names":["React","PropTypes","classnames","NovaCompositionNavigationMore","MoreIcon","NovaSolidLoginLocked","LockIcon","NovaSolidLocksLockUnlock1","UnlockIcon","NovaCompositionCoorpacademyCheck","CheckIcon","style","NOTIFICATION_ICON","addFavorite","removeFavorite","lock","unlock","handleOverlayClick","e","stopPropagation","preventDefault","Notification","props","message","icon","IconType","_get","createElement","onClick","className","showOverlay","notificationWrapper","notification","color","stroke","role","propTypes","process","env","NODE_ENV","string","isRequired","oneOf","_keys"],"sources":["../../../src/molecule/card/notification.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, keys} from 'lodash/fp';\nimport {\n NovaCompositionNavigationMore as MoreIcon,\n NovaSolidLoginLocked as LockIcon,\n NovaSolidLocksLockUnlock1 as UnlockIcon,\n NovaCompositionCoorpacademyCheck as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport style from './notification.css';\n\nconst NOTIFICATION_ICON = {\n addFavorite: CheckIcon,\n removeFavorite: MoreIcon,\n lock: LockIcon,\n unlock: UnlockIcon\n};\n\nconst handleOverlayClick = e => {\n e.stopPropagation();\n e.preventDefault();\n return false;\n};\n\nconst Notification = props => {\n const {message, icon} = props;\n\n const IconType = get(icon, NOTIFICATION_ICON);\n return (\n <div\n data-name=\"notification\"\n data-type={icon}\n onClick={handleOverlayClick}\n className={classnames(style.showOverlay, style.notificationWrapper)}\n >\n <div className={style.notification}>\n <IconType className={style.icon} style={{color: null}} stroke={null} />\n <div className={style.message}>\n <span role=\"status\">{message}</span>\n </div>\n </div>\n </div>\n );\n};\nNotification.propTypes = {\n message: PropTypes.string.isRequired,\n icon: PropTypes.oneOf(keys(NOTIFICATION_ICON)).isRequired\n};\n\nexport default Notification;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,6BAA6B,IAAIC,QAAQ,EACzCC,oBAAoB,IAAIC,QAAQ,EAChCC,yBAAyB,IAAIC,UAAU,EACvCC,gCAAgC,IAAIC,SAAS,QACxC,0BAA0B;AACjC,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,MAAMC,iBAAiB,GAAG;EACxBC,WAAW,EAAEH,SAAS;EACtBI,cAAc,EAAEV,QAAQ;EACxBW,IAAI,EAAET,QAAQ;EACdU,MAAM,EAAER;AACV,CAAC;AAED,MAAMS,kBAAkB,GAAGC,CAAC,IAAI;EAC9BA,CAAC,CAACC,eAAe,CAAC,CAAC;EACnBD,CAAC,CAACE,cAAc,CAAC,CAAC;EAClB,OAAO,KAAK;AACd,CAAC;AAED,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IAACC,OAAO;IAAEC;EAAI,CAAC,GAAGF,KAAK;EAE7B,MAAMG,QAAQ,GAAGC,IAAA,CAAIF,IAAI,EAAEZ,iBAAiB,CAAC;EAC7C,oBACEZ,KAAA,CAAA2B,aAAA;IACE,aAAU,cAAc;IACxB,aAAWH,IAAK;IAChBI,OAAO,EAAEX,kBAAmB;IAC5BY,SAAS,EAAE3B,UAAU,CAACS,KAAK,CAACmB,WAAW,EAAEnB,KAAK,CAACoB,mBAAmB;EAAE,gBAEpE/B,KAAA,CAAA2B,aAAA;IAAKE,SAAS,EAAElB,KAAK,CAACqB;EAAa,gBACjChC,KAAA,CAAA2B,aAAA,CAACF,QAAQ;IAACI,SAAS,EAAElB,KAAK,CAACa,IAAK;IAACb,KAAK,EAAE;MAACsB,KAAK,EAAE;IAAI,CAAE;IAACC,MAAM,EAAE;EAAK,CAAE,CAAC,eACvElC,KAAA,CAAA2B,aAAA;IAAKE,SAAS,EAAElB,KAAK,CAACY;EAAQ,gBAC5BvB,KAAA,CAAA2B,aAAA;IAAMQ,IAAI,EAAC;EAAQ,GAAEZ,OAAc,CAChC,CACF,CACF,CAAC;AAEV,CAAC;AACDF,YAAY,CAACe,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACvBhB,OAAO,EAAEtB,SAAS,CAACuC,MAAM,CAACC,UAAU;EACpCjB,IAAI,EAAEvB,SAAS,CAACyC,KAAK,CAACC,KAAA,CAAK/B,iBAAiB,CAAC,CAAC,CAAC6B;AACjD,CAAC;AAED,eAAepB,YAAY","ignoreList":[]}
|
|
@@ -31,14 +31,12 @@
|
|
|
31
31
|
animation: fadeIn 1s ease-out forwards;
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
box-shadow: 0 0 13px 0 rgba(0, 0, 0, 0.11);
|
|
34
|
-
border: 2px solid white;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
.defaultStyle[disabled] .favorite {
|
|
38
37
|
z-index: 0;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
|
|
42
40
|
.grid.empty {
|
|
43
41
|
padding-bottom: 25px;
|
|
44
42
|
opacity: 0.6;
|
|
@@ -46,17 +44,17 @@
|
|
|
46
44
|
|
|
47
45
|
.course {
|
|
48
46
|
composes: defaultStyle;
|
|
49
|
-
border-radius:
|
|
47
|
+
border-radius: 8px;
|
|
50
48
|
width: 256px;
|
|
51
49
|
height: 297px;
|
|
52
50
|
}
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
.chapter {
|
|
55
53
|
composes: defaultStyle;
|
|
56
54
|
border-radius: 8px;
|
|
57
55
|
width: 203px;
|
|
58
56
|
height: 297px;
|
|
59
|
-
}
|
|
57
|
+
}
|
|
60
58
|
|
|
61
59
|
.coorpmanager.course {
|
|
62
60
|
border-radius: 5px;
|
|
@@ -64,11 +62,11 @@
|
|
|
64
62
|
height: 201px;
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
|
|
65
|
+
.coorpmanager.chapter {
|
|
68
66
|
border-radius: 5px;
|
|
69
67
|
width: 138px;
|
|
70
68
|
height: 201px;
|
|
71
|
-
}
|
|
69
|
+
}
|
|
72
70
|
|
|
73
71
|
.course .imageWrapper {
|
|
74
72
|
width: 100%;
|
|
@@ -78,7 +76,7 @@
|
|
|
78
76
|
left: 0;
|
|
79
77
|
}
|
|
80
78
|
|
|
81
|
-
|
|
79
|
+
.chapter .chapterImageWrapper {
|
|
82
80
|
max-height: 77px;
|
|
83
81
|
width: 100%;
|
|
84
82
|
position: absolute;
|
|
@@ -88,7 +86,7 @@
|
|
|
88
86
|
|
|
89
87
|
.coorpmanager.chapter .chapterImageWrapper {
|
|
90
88
|
max-height: 52px;
|
|
91
|
-
}
|
|
89
|
+
}
|
|
92
90
|
|
|
93
91
|
.defaultStyle .image {
|
|
94
92
|
overflow: hidden;
|
|
@@ -159,7 +157,8 @@
|
|
|
159
157
|
}
|
|
160
158
|
|
|
161
159
|
.course .defaultStyle:hover,
|
|
162
|
-
.defaultStyle:hover {
|
|
160
|
+
.chapter .defaultStyle:hover {
|
|
161
|
+
background: light;
|
|
163
162
|
cursor: pointer;
|
|
164
163
|
transition: background 0.25s ease-in-out;
|
|
165
164
|
}
|
|
@@ -274,8 +273,6 @@
|
|
|
274
273
|
border-bottom-right-radius: 7px;
|
|
275
274
|
z-index: 1;
|
|
276
275
|
user-select: none;
|
|
277
|
-
/* border-color: transparent;
|
|
278
|
-
border-top-left-radius: 2px; */
|
|
279
276
|
}
|
|
280
277
|
|
|
281
278
|
.coorpmanager .badge {
|
|
@@ -364,7 +361,7 @@
|
|
|
364
361
|
transition: transform 0.25s ease-in-out;
|
|
365
362
|
}
|
|
366
363
|
|
|
367
|
-
|
|
364
|
+
.externalIcon {
|
|
368
365
|
color: white;
|
|
369
366
|
width: 45px;
|
|
370
367
|
height: 45px;
|
|
@@ -374,7 +371,7 @@
|
|
|
374
371
|
color: white;
|
|
375
372
|
width: 23px;
|
|
376
373
|
height: 23px;
|
|
377
|
-
}
|
|
374
|
+
}
|
|
378
375
|
|
|
379
376
|
.externalIconCircleWrapper::after {
|
|
380
377
|
animation: pulse 3s linear 0s infinite;
|
|
@@ -434,7 +431,7 @@
|
|
|
434
431
|
margin-top: 20px;
|
|
435
432
|
}
|
|
436
433
|
|
|
437
|
-
|
|
434
|
+
.coorpmanager .externalIconWithImage {
|
|
438
435
|
color: white;
|
|
439
436
|
width: 25px;
|
|
440
437
|
height: 25px;
|
|
@@ -445,7 +442,7 @@
|
|
|
445
442
|
color: white;
|
|
446
443
|
width: 28px;
|
|
447
444
|
height: 28px;
|
|
448
|
-
}
|
|
445
|
+
}
|
|
449
446
|
|
|
450
447
|
.externalIconCircleWithImageWrapper::after,
|
|
451
448
|
.externalIconCircleWithImageWrapper::before {
|
|
@@ -455,6 +452,7 @@
|
|
|
455
452
|
top: 0;
|
|
456
453
|
left: 0;
|
|
457
454
|
position: absolute;
|
|
455
|
+
|
|
458
456
|
border-radius: 50%;
|
|
459
457
|
transform: scale(1);
|
|
460
458
|
opacity: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/card-content/index.js"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/card-content/index.js"],"names":[],"mappings":";;;;;;;;;;AAsHA;;;;;;;;;;;;;;gBA8EC"}
|
|
@@ -4,12 +4,10 @@ import _get from "lodash/fp/get";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
|
-
import { NovaCompositionCoorpacademyAdaptive as AdaptivIcon, NovaSolidStatusCheckCircle2 as CheckIcon } from '@coorpacademy/nova-icons';
|
|
8
|
-
import { isExternalContent } from '../../util/external-content';
|
|
7
|
+
import { NovaCompositionCoorpacademyAdaptive as AdaptivIcon, NovaSolidStatusCheckCircle2 as CheckIcon, NovaCompositionCoorpacademyTimer as TimerIcon } from '@coorpacademy/nova-icons';
|
|
8
|
+
import { isExternalContent, EXTERNAL_CONTENT_ICONS } from '../../util/external-content';
|
|
9
9
|
import Provider from '../../atom/provider';
|
|
10
10
|
import ContentBadge from '../../atom/content-badge';
|
|
11
|
-
import Tag from '../../atom/tag';
|
|
12
|
-
import { COLORS } from '../../variables/colors';
|
|
13
11
|
import style from './style.css';
|
|
14
12
|
export const MODES = {
|
|
15
13
|
HERO: 'hero',
|
|
@@ -19,86 +17,45 @@ export const THEMES = {
|
|
|
19
17
|
default: null,
|
|
20
18
|
coorpmanager: style.coorpmanager
|
|
21
19
|
};
|
|
22
|
-
const getCardInfo = (contentType, translate) => {
|
|
23
|
-
switch (contentType) {
|
|
24
|
-
case 'chapter':
|
|
25
|
-
return {
|
|
26
|
-
label: "5'learning",
|
|
27
|
-
iconName: 'stopwatch'
|
|
28
|
-
};
|
|
29
|
-
case 'scorm':
|
|
30
|
-
return {
|
|
31
|
-
label: translate('external_content_scorm'),
|
|
32
|
-
iconName: 'rectangle-history'
|
|
33
|
-
};
|
|
34
|
-
case 'video':
|
|
35
|
-
return {
|
|
36
|
-
label: translate('external_content_video'),
|
|
37
|
-
iconName: 'circle-play'
|
|
38
|
-
};
|
|
39
|
-
case 'article':
|
|
40
|
-
return {
|
|
41
|
-
label: translate('external_content_article'),
|
|
42
|
-
iconName: 'file-lines'
|
|
43
|
-
};
|
|
44
|
-
case 'podcast':
|
|
45
|
-
return {
|
|
46
|
-
label: translate('external_content_podcast'),
|
|
47
|
-
iconName: 'microphone-lines'
|
|
48
|
-
};
|
|
49
|
-
default:
|
|
50
|
-
return {
|
|
51
|
-
label: 'Course',
|
|
52
|
-
iconName: 'book-open'
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
20
|
const ContentTypeInfo = ({
|
|
57
21
|
mode,
|
|
58
22
|
type,
|
|
59
|
-
|
|
60
|
-
ariaLabel,
|
|
61
|
-
isCourse,
|
|
62
|
-
empty,
|
|
63
|
-
theme
|
|
23
|
+
externalContent
|
|
64
24
|
}, context) => {
|
|
65
25
|
const {
|
|
66
26
|
translate
|
|
67
27
|
} = context;
|
|
68
|
-
if (mode !== MODES.CARD
|
|
28
|
+
if (mode !== MODES.CARD) {
|
|
69
29
|
return null;
|
|
70
30
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
31
|
+
if (type === 'chapter') {
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: style.microLearningIcon
|
|
34
|
+
}, /*#__PURE__*/React.createElement(TimerIcon, {
|
|
35
|
+
className: style.timerIcon
|
|
36
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
37
|
+
className: style.microLearninglabel
|
|
38
|
+
}, "5' learning"));
|
|
39
|
+
}
|
|
40
|
+
if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {
|
|
41
|
+
const textColor = EXTERNAL_CONTENT_ICONS[type].color;
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: style.contentTypeInfo,
|
|
44
|
+
style: {
|
|
45
|
+
color: textColor
|
|
46
|
+
}
|
|
47
|
+
}, type === 'scorm' ? translate('external_content_scorm') : '', type === 'video' ? translate('external_content_video') : '', type === 'article' ? translate('external_content_article') : '', type === 'podcast' ? translate('external_content_podcast') : '');
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
89
50
|
};
|
|
90
51
|
ContentTypeInfo.contextTypes = {
|
|
91
52
|
skin: Provider.childContextTypes.skin,
|
|
92
53
|
translate: Provider.childContextTypes.translate
|
|
93
54
|
};
|
|
94
55
|
ContentTypeInfo.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
56
|
+
externalContent: PropTypes.bool,
|
|
95
57
|
type: PropTypes.string,
|
|
96
|
-
mode: PropTypes.string
|
|
97
|
-
adaptiv: PropTypes.bool,
|
|
98
|
-
ariaLabel: PropTypes.string,
|
|
99
|
-
isCourse: PropTypes.bool,
|
|
100
|
-
empty: PropTypes.bool,
|
|
101
|
-
theme: PropTypes.oneOf(_keys(THEMES))
|
|
58
|
+
mode: PropTypes.string
|
|
102
59
|
} : {};
|
|
103
60
|
const CardTitle = ({
|
|
104
61
|
title,
|
|
@@ -160,7 +117,7 @@ const ContentInfo = ({
|
|
|
160
117
|
theme = 'default',
|
|
161
118
|
'aria-label': ariaLabel
|
|
162
119
|
}) => {
|
|
163
|
-
const progressBarColor =
|
|
120
|
+
const progressBarColor = '#3EC483';
|
|
164
121
|
const inlineProgressValueStyle = {
|
|
165
122
|
backgroundColor: progressBarColor,
|
|
166
123
|
width: `${progress * 100}%`
|
|
@@ -177,24 +134,24 @@ const ContentInfo = ({
|
|
|
177
134
|
role: "progressbar",
|
|
178
135
|
"aria-label": _get('progression', ariaLabel)
|
|
179
136
|
}) : null) : null;
|
|
180
|
-
|
|
181
|
-
|
|
137
|
+
const adaptiveIcon = adaptiv ? /*#__PURE__*/React.createElement("div", {
|
|
138
|
+
className: classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)
|
|
139
|
+
}, /*#__PURE__*/React.createElement(AdaptivIcon, {
|
|
140
|
+
height: 25,
|
|
141
|
+
"aria-label": _get('adaptive', ariaLabel)
|
|
142
|
+
})) : null;
|
|
182
143
|
return /*#__PURE__*/React.createElement("div", {
|
|
183
144
|
"data-name": "info",
|
|
184
|
-
className: classnames(THEMES[theme], style.infoWrapper, mode === MODES.HERO ? style.hero : style.card, disabled ? style.progressBarDisabled : null, externalContent
|
|
185
|
-
)
|
|
145
|
+
className: classnames(THEMES[theme], style.infoWrapper, mode === MODES.HERO ? style.hero : style.card, disabled ? style.progressBarDisabled : null, externalContent ? style.externalContent : null)
|
|
186
146
|
}, /*#__PURE__*/React.createElement(ContentTypeInfo, {
|
|
187
147
|
mode: mode,
|
|
188
148
|
type: type,
|
|
189
|
-
|
|
190
|
-
isCourse: courseContent,
|
|
191
|
-
empty: empty,
|
|
192
|
-
theme: theme
|
|
149
|
+
externalContent: externalContent
|
|
193
150
|
}), /*#__PURE__*/React.createElement("div", {
|
|
194
|
-
className: classnames(style.cardInfo,
|
|
151
|
+
className: classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)
|
|
195
152
|
}, /*#__PURE__*/React.createElement("div", {
|
|
196
153
|
className: style.iconWrapper
|
|
197
|
-
}, !empty && badgeLabel && badgeCategory && courseContent ? /*#__PURE__*/React.createElement(ContentBadge, {
|
|
154
|
+
}, adaptiveIcon, !empty && badgeLabel && badgeCategory && courseContent ? /*#__PURE__*/React.createElement(ContentBadge, {
|
|
198
155
|
category: badgeCategory,
|
|
199
156
|
label: badgeLabel
|
|
200
157
|
}) : null), /*#__PURE__*/React.createElement(CardTitle, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","isExternalContent","Provider","ContentBadge","Tag","COLORS","style","MODES","HERO","CARD","THEMES","default","coorpmanager","getCardInfo","contentType","translate","label","iconName","ContentTypeInfo","mode","type","adaptiv","ariaLabel","isCourse","empty","theme","context","createElement","className","contentTypeInfos","size","icon","adaptiveIcon","iconShadow","height","_get","contextTypes","skin","childContextTypes","propTypes","process","env","NODE_ENV","string","bool","oneOf","_keys","CardTitle","title","courseContent","innerHTML","lightTitle","darkTitle","dangerouslySetInnerHTML","__html","AuthorName","author","certifiedAuthor","checkIcon","authorIcon","darkAuthorTitle","ContentInfo","disabled","progress","badgeCategory","badgeLabel","progressBarColor","cm_positive_500","inlineProgressValueStyle","backgroundColor","width","externalContent","chapterContent","progressBar","_isNil","progressWrapper","hideProgressBar","role","console","log","infoWrapper","hero","card","progressBarDisabled","cardInfo","cardCourseTitle","iconWrapper","category","number","shape","progression","adaptive"],"sources":["../../../src/molecule/card-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport Tag from '../../atom/tag';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst getCardInfo = (contentType, translate) => {\n switch (contentType) {\n case 'chapter':\n return {label: \"5'learning\", iconName: 'stopwatch'};\n case 'scorm':\n return {label: translate('external_content_scorm'), iconName: 'rectangle-history'};\n case 'video':\n return {label: translate('external_content_video'), iconName: 'circle-play'};\n case 'article':\n return {label: translate('external_content_article'), iconName: 'file-lines'};\n case 'podcast':\n return {label: translate('external_content_podcast'), iconName: 'microphone-lines'};\n default:\n return {label: 'Course', iconName: 'book-open'};\n }\n};\n\nconst ContentTypeInfo = ({mode, type, adaptiv, ariaLabel, isCourse, empty, theme}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD || empty || theme === 'coorpmanager') {\n return null;\n }\n const {label, iconName} = getCardInfo(type, translate);\n return (\n <div className={style.contentTypeInfos}>\n <Tag size=\"S\" label={label} icon={{iconName}} />\n {adaptiv ? (\n <div className={classnames(style.adaptiveIcon, isCourse ? style.iconShadow : null)}>\n <AdaptivIcon height={20} aria-label={get('adaptive', ariaLabel)} />\n </div>\n ) : null}\n </div>\n );\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n type: PropTypes.string,\n mode: PropTypes.string,\n adaptiv: PropTypes.bool,\n ariaLabel: PropTypes.string,\n isCourse: PropTypes.bool,\n empty: PropTypes.bool,\n theme: PropTypes.oneOf(keys(THEMES))\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n style.innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor, 'aria-label': ariaLabel}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)} />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n aria-label={ariaLabel}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': ariaLabel\n}) => {\n const progressBarColor = COLORS.cm_positive_500;\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n role=\"progressbar\"\n aria-label={get('progression', ariaLabel)}\n />\n ) : null}\n </div>\n ) : null;\n // eslint-disable-next-line no-console\n console.log(' adaptiv', adaptiv);\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent || chapterContent || courseContent ? style.externalContent : null // generalize css class name\n )}\n >\n <ContentTypeInfo\n mode={mode}\n type={type}\n adaptiv={adaptiv}\n isCourse={courseContent}\n empty={empty}\n theme={theme}\n />\n <div className={classnames(style.cardInfo, courseContent ? style.cardCourseTitle : null)}>\n <div className={style.iconWrapper}>\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n aria-label={get('author', ariaLabel)}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.shape({\n author: PropTypes.string,\n progression: PropTypes.string,\n adaptive: PropTypes.string\n })\n};\n\nexport default ContentInfo;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,mCAAmC,IAAIC,WAAW,EAClDC,2BAA2B,IAAIC,SAAS,QACnC,0BAA0B;AACjC,SAAQC,iBAAiB,QAAO,6BAA6B;AAC7D,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,YAAY,MAAM,0BAA0B;AACnD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,KAAK,MAAM,aAAa;AAE/B,OAAO,MAAMC,KAAK,GAAG;EACnBC,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE,IAAI;EACbC,YAAY,EAAEN,KAAK,CAACM;AACtB,CAAC;AAED,MAAMC,WAAW,GAAGA,CAACC,WAAW,EAAEC,SAAS,KAAK;EAC9C,QAAQD,WAAW;IACjB,KAAK,SAAS;MACZ,OAAO;QAACE,KAAK,EAAE,YAAY;QAAEC,QAAQ,EAAE;MAAW,CAAC;IACrD,KAAK,OAAO;MACV,OAAO;QAACD,KAAK,EAAED,SAAS,CAAC,wBAAwB,CAAC;QAAEE,QAAQ,EAAE;MAAmB,CAAC;IACpF,KAAK,OAAO;MACV,OAAO;QAACD,KAAK,EAAED,SAAS,CAAC,wBAAwB,CAAC;QAAEE,QAAQ,EAAE;MAAa,CAAC;IAC9E,KAAK,SAAS;MACZ,OAAO;QAACD,KAAK,EAAED,SAAS,CAAC,0BAA0B,CAAC;QAAEE,QAAQ,EAAE;MAAY,CAAC;IAC/E,KAAK,SAAS;MACZ,OAAO;QAACD,K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CAACgD,MAAM;EACxBc,eAAe,EAAE9D,SAAS,CAACiD,IAAI;EAC/BkB,QAAQ,EAAEnE,SAAS,CAACiD,IAAI;EACxBpB,KAAK,EAAE7B,SAAS,CAACiD,IAAI;EACrBmB,QAAQ,EAAEpE,SAAS,CAAC6F,MAAM;EAC1BxC,KAAK,EAAErD,SAAS,CAACgD,MAAM;EACvBvB,IAAI,EAAEzB,SAAS,CAACgD,MAAM;EACtBxB,IAAI,EAAExB,SAAS,CAACgD,MAAM;EACtBqB,aAAa,EAAE7D,YAAY,CAACoC,SAAS,CAACgD,QAAQ;EAC9CtB,UAAU,EAAE9D,YAAY,CAACoC,SAAS,CAACvB,KAAK;EACxCS,KAAK,EAAE9B,SAAS,CAACkD,KAAK,CAACC,KAAA,CAAKpC,MAAM,CAAC,CAAC;EACpC,YAAY,EAAEf,SAAS,CAAC8F,KAAK,CAAC;IAC5BjC,MAAM,EAAE7D,SAAS,CAACgD,MAAM;IACxB+C,WAAW,EAAE/F,SAAS,CAACgD,MAAM;IAC7BgD,QAAQ,EAAEhG,SAAS,CAACgD;EACtB,CAAC;AACH,CAAC;AAED,eAAekB,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","classnames","NovaCompositionCoorpacademyAdaptive","AdaptivIcon","NovaSolidStatusCheckCircle2","CheckIcon","NovaCompositionCoorpacademyTimer","TimerIcon","isExternalContent","EXTERNAL_CONTENT_ICONS","Provider","ContentBadge","style","MODES","HERO","CARD","THEMES","default","coorpmanager","ContentTypeInfo","mode","type","externalContent","context","translate","createElement","className","microLearningIcon","timerIcon","microLearninglabel","textColor","color","contentTypeInfo","contextTypes","skin","childContextTypes","propTypes","process","env","NODE_ENV","bool","string","CardTitle","title","empty","courseContent","innerHTML","lightTitle","darkTitle","dangerouslySetInnerHTML","__html","AuthorName","author","certifiedAuthor","ariaLabel","checkIcon","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","theme","progressBarColor","inlineProgressValueStyle","backgroundColor","width","chapterContent","progressBar","_isNil","progressWrapper","hideProgressBar","role","_get","adaptiveIcon","height","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","category","label","number","oneOf","_keys","shape","progression","adaptive"],"sources":["../../../src/molecule/card-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaCompositionCoorpacademyTimer as TimerIcon\n} from '@coorpacademy/nova-icons';\nimport {isExternalContent, EXTERNAL_CONTENT_ICONS} from '../../util/external-content';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport style from './style.css';\n\nexport const MODES = {\n HERO: 'hero',\n CARD: 'card'\n};\n\nexport const THEMES = {\n default: null,\n coorpmanager: style.coorpmanager\n};\n\nconst ContentTypeInfo = ({mode, type, externalContent}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD) {\n return null;\n }\n\n if (type === 'chapter') {\n return (\n <div className={style.microLearningIcon}>\n <TimerIcon className={style.timerIcon} />\n <span className={style.microLearninglabel}>{\"5' learning\"}</span>\n </div>\n );\n }\n if (externalContent && EXTERNAL_CONTENT_ICONS[type]) {\n const textColor = EXTERNAL_CONTENT_ICONS[type].color;\n\n return (\n <div className={style.contentTypeInfo} style={{color: textColor}}>\n {type === 'scorm' ? translate('external_content_scorm') : ''}\n {type === 'video' ? translate('external_content_video') : ''}\n {type === 'article' ? translate('external_content_article') : ''}\n {type === 'podcast' ? translate('external_content_podcast') : ''}\n </div>\n );\n }\n\n return null;\n};\n\nContentTypeInfo.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nContentTypeInfo.propTypes = {\n externalContent: PropTypes.bool,\n type: PropTypes.string,\n mode: PropTypes.string\n};\n\nconst CardTitle = ({title, empty, courseContent}) => {\n return (\n <div\n className={classnames(\n style.title,\n style.innerHTML,\n courseContent ? style.lightTitle : style.darkTitle,\n empty ? style.empty : null\n )}\n data-name=\"title\"\n title={title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n );\n};\n\nCardTitle.propTypes = {\n title: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool\n};\n\nconst AuthorName = ({author, empty, courseContent, certifiedAuthor, 'aria-label': ariaLabel}) => {\n const checkIcon = certifiedAuthor ? (\n <CheckIcon className={classnames(style.authorIcon, courseContent ? style.iconShadow : null)} />\n ) : null;\n\n return (\n <div\n data-name=\"author\"\n title={author}\n aria-label={ariaLabel}\n className={classnames(\n style.author,\n courseContent ? style.lightTitle : style.darkAuthorTitle,\n empty ? style.empty : null\n )}\n >\n <span>{author}</span>\n {checkIcon}\n </div>\n );\n};\n\nAuthorName.propTypes = {\n author: PropTypes.string,\n empty: PropTypes.bool,\n courseContent: PropTypes.bool,\n certifiedAuthor: PropTypes.bool,\n 'aria-label': PropTypes.string\n};\n\nconst ContentInfo = ({\n adaptiv,\n author,\n certifiedAuthor = false,\n disabled = false,\n empty = false,\n mode = MODES.CARD,\n progress,\n title,\n type,\n badgeCategory,\n badgeLabel,\n theme = 'default',\n 'aria-label': ariaLabel\n}) => {\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${progress * 100}%`\n };\n const externalContent = isExternalContent(type);\n const courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n\n const progressBar =\n mode === MODES.HERO || (!empty && !disabled) ? (\n <div className={!isNil(progress) ? style.progressWrapper : style.hideProgressBar}>\n {!disabled ? (\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n role=\"progressbar\"\n aria-label={get('progression', ariaLabel)}\n />\n ) : null}\n </div>\n ) : null;\n\n const adaptiveIcon = adaptiv ? (\n <div className={classnames(style.adaptiveIcon, courseContent ? style.iconShadow : null)}>\n <AdaptivIcon height={25} aria-label={get('adaptive', ariaLabel)} />\n </div>\n ) : null;\n\n return (\n <div\n data-name=\"info\"\n className={classnames(\n THEMES[theme],\n style.infoWrapper,\n mode === MODES.HERO ? style.hero : style.card,\n disabled ? style.progressBarDisabled : null,\n externalContent ? style.externalContent : null\n )}\n >\n <ContentTypeInfo mode={mode} type={type} externalContent={externalContent} />\n <div\n className={classnames(style.cardInfo, chapterContent ? style.microLearningCardInfo : null)}\n >\n <div className={style.iconWrapper}>\n {adaptiveIcon}\n {!empty && badgeLabel && badgeCategory && courseContent ? (\n <ContentBadge category={badgeCategory} label={badgeLabel} />\n ) : null}\n </div>\n <CardTitle title={title} empty={empty} courseContent={courseContent} />\n <AuthorName\n author={author}\n empty={empty}\n courseContent={courseContent}\n certifiedAuthor={certifiedAuthor}\n aria-label={get('author', ariaLabel)}\n />\n </div>\n {progressBar}\n </div>\n );\n};\n\nContentInfo.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nContentInfo.propTypes = {\n adaptiv: PropTypes.bool,\n author: PropTypes.string,\n certifiedAuthor: PropTypes.bool,\n disabled: PropTypes.bool,\n empty: PropTypes.bool,\n progress: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n mode: PropTypes.string,\n badgeCategory: ContentBadge.propTypes.category,\n badgeLabel: ContentBadge.propTypes.label,\n theme: PropTypes.oneOf(keys(THEMES)),\n 'aria-label': PropTypes.shape({\n author: PropTypes.string,\n progression: PropTypes.string,\n adaptive: PropTypes.string\n })\n};\n\nexport default ContentInfo;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,mCAAmC,IAAIC,WAAW,EAClDC,2BAA2B,IAAIC,SAAS,EACxCC,gCAAgC,IAAIC,SAAS,QACxC,0BAA0B;AACjC,SAAQC,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