@coorpacademy/components 11.38.6-alpha.27 → 11.38.6-alpha.29
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 +0 -2
- package/es/atom/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +13 -46
- package/es/atom/input-search/index.js.map +1 -1
- package/es/atom/input-search/style.css +0 -96
- package/es/molecule/card/customer.css +0 -3
- package/es/molecule/card/favorite.css +3 -3
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +27 -11
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card/notification.css +28 -12
- package/es/molecule/card/notification.d.ts.map +1 -1
- package/es/molecule/card/notification.js +24 -4
- package/es/molecule/card/notification.js.map +1 -1
- package/es/molecule/card/style.css +4 -53
- package/es/molecule/card-content/index.d.ts.map +1 -1
- package/es/molecule/card-content/index.js +59 -37
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/card-content/style.css +27 -72
- package/es/molecule/cm-popin/types.d.ts +0 -2
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/external-content-button/style.css +1 -0
- package/es/molecule/multi-filter-panel/index.d.ts +0 -2
- package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/es/molecule/multi-filter-panel/prop-types.d.ts +0 -2
- package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/es/molecule/search-form/index.d.ts +0 -5
- package/es/molecule/search-form/index.d.ts.map +1 -1
- package/es/molecule/search-form/index.js +16 -26
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/molecule/search-form/style.css +6 -21
- package/es/organism/brand-table/index.d.ts +0 -2
- package/es/organism/content-skill-modal/index.d.ts +0 -4
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +0 -4
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/index.d.ts +0 -2
- package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/es/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
- package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/es/organism/list-items/index.d.ts +0 -2
- package/es/organism/mooc-header/index.d.ts +0 -14
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +12 -123
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +8 -181
- package/es/template/app-player/loading/index.d.ts +0 -2
- package/es/template/app-player/player/index.d.ts +0 -4
- package/es/template/app-player/player/slides/index.d.ts +0 -2
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +0 -2
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +0 -2
- package/es/template/app-review/index.d.ts +0 -2
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +0 -2
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +0 -2
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +0 -12
- package/es/template/common/dashboard/index.d.ts +0 -4
- package/es/template/common/search-page/index.d.ts +0 -2
- package/es/template/external-course/index.d.ts +0 -2
- package/es/util/check-is-mobile.d.ts +1 -1
- package/es/util/check-is-mobile.d.ts.map +1 -1
- package/es/util/check-is-mobile.js +2 -4
- package/es/util/check-is-mobile.js.map +1 -1
- package/es/util/external-content.d.ts +38 -4
- package/es/util/external-content.d.ts.map +1 -1
- package/es/util/external-content.js +27 -4
- package/es/util/external-content.js.map +1 -1
- package/es/util/icons.d.ts +8 -0
- package/es/util/icons.d.ts.map +1 -0
- package/es/util/icons.js +8 -0
- package/es/util/icons.js.map +1 -0
- package/es/variables/colors.d.ts +5 -0
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +6 -1
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/input-search/index.d.ts +0 -2
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +13 -46
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/atom/input-search/style.css +0 -96
- package/lib/molecule/card/customer.css +0 -3
- package/lib/molecule/card/favorite.css +3 -3
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +26 -10
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card/notification.css +28 -12
- package/lib/molecule/card/notification.d.ts.map +1 -1
- package/lib/molecule/card/notification.js +23 -3
- package/lib/molecule/card/notification.js.map +1 -1
- package/lib/molecule/card/style.css +4 -53
- package/lib/molecule/card-content/index.d.ts.map +1 -1
- package/lib/molecule/card-content/index.js +58 -36
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/card-content/style.css +27 -72
- package/lib/molecule/cm-popin/types.d.ts +0 -2
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/external-content-button/style.css +1 -0
- package/lib/molecule/multi-filter-panel/index.d.ts +0 -2
- package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
- package/lib/molecule/multi-filter-panel/prop-types.d.ts +0 -2
- package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
- package/lib/molecule/search-form/index.d.ts +0 -5
- package/lib/molecule/search-form/index.d.ts.map +1 -1
- package/lib/molecule/search-form/index.js +17 -27
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/molecule/search-form/style.css +6 -21
- package/lib/organism/brand-table/index.d.ts +0 -2
- package/lib/organism/content-skill-modal/index.d.ts +0 -4
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +0 -4
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/index.d.ts +0 -2
- package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts +0 -2
- package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
- package/lib/organism/list-items/index.d.ts +0 -2
- package/lib/organism/mooc-header/index.d.ts +0 -14
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +12 -123
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +8 -181
- package/lib/template/app-player/loading/index.d.ts +0 -2
- package/lib/template/app-player/player/index.d.ts +0 -4
- package/lib/template/app-player/player/slides/index.d.ts +0 -2
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +0 -2
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +0 -2
- package/lib/template/app-review/index.d.ts +0 -2
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +0 -2
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +0 -2
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +0 -12
- package/lib/template/common/dashboard/index.d.ts +0 -4
- package/lib/template/common/search-page/index.d.ts +0 -2
- package/lib/template/external-course/index.d.ts +0 -2
- package/lib/util/check-is-mobile.d.ts +1 -1
- package/lib/util/check-is-mobile.d.ts.map +1 -1
- package/lib/util/check-is-mobile.js +2 -4
- package/lib/util/check-is-mobile.js.map +1 -1
- package/lib/util/external-content.d.ts +38 -4
- package/lib/util/external-content.d.ts.map +1 -1
- package/lib/util/external-content.js +28 -5
- package/lib/util/external-content.js.map +1 -1
- package/lib/util/icons.d.ts +8 -0
- package/lib/util/icons.d.ts.map +1 -0
- package/lib/util/icons.js +12 -0
- package/lib/util/icons.js.map +1 -0
- package/lib/variables/colors.d.ts +5 -0
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +6 -1
- package/lib/variables/colors.js.map +1 -1
- package/locales/en/global.json +5 -0
- package/locales/lt/global.json +24 -24
- package/package.json +2 -2
|
@@ -4,14 +4,18 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.default = exports.THEMES = exports.MODES = void 0;
|
|
5
5
|
var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
|
|
6
6
|
var _isNil2 = _interopRequireDefault(require("lodash/fp/isNil"));
|
|
7
|
+
var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
|
|
7
8
|
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
12
|
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
12
|
-
var _externalContent = require("../../util/external-content");
|
|
13
13
|
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
14
14
|
var _contentBadge = _interopRequireDefault(require("../../atom/content-badge"));
|
|
15
|
+
var _tag = _interopRequireDefault(require("../../atom/tag"));
|
|
16
|
+
var _colors = require("../../variables/colors");
|
|
17
|
+
var _externalContent = require("../../util/external-content");
|
|
18
|
+
var _icons = require("../../util/icons");
|
|
15
19
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
16
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
21
|
const MODES = exports.MODES = {
|
|
@@ -25,42 +29,63 @@ const THEMES = exports.THEMES = {
|
|
|
25
29
|
const ContentTypeInfo = ({
|
|
26
30
|
mode,
|
|
27
31
|
type,
|
|
28
|
-
|
|
32
|
+
adaptiv,
|
|
33
|
+
ariaLabel,
|
|
34
|
+
isCourse,
|
|
35
|
+
empty,
|
|
36
|
+
theme
|
|
29
37
|
}, context) => {
|
|
30
38
|
const {
|
|
31
39
|
translate
|
|
32
40
|
} = context;
|
|
33
|
-
if (mode !== MODES.CARD) {
|
|
41
|
+
if (mode !== MODES.CARD || empty || theme === 'coorpmanager') {
|
|
34
42
|
return null;
|
|
35
43
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return
|
|
44
|
+
const getLabel = contentType => {
|
|
45
|
+
switch (contentType) {
|
|
46
|
+
case 'scorm':
|
|
47
|
+
return translate('content_type_scorm');
|
|
48
|
+
case 'video':
|
|
49
|
+
return translate('content_type_video');
|
|
50
|
+
case 'article':
|
|
51
|
+
return translate('content_type_article');
|
|
52
|
+
case 'podcast':
|
|
53
|
+
return translate('content_type_podcast');
|
|
54
|
+
case 'course':
|
|
55
|
+
return translate('content_type_course');
|
|
56
|
+
default:
|
|
57
|
+
return `5'learning`;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const label = getLabel(type);
|
|
61
|
+
const iconName = (0, _getOr2.default)('stopwatch', type, _icons.ICONS_NAMES_MAP);
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
className: _style.default.contentTypeInfos
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
65
|
+
size: "S",
|
|
66
|
+
label: label,
|
|
67
|
+
icon: {
|
|
68
|
+
iconName
|
|
69
|
+
}
|
|
70
|
+
}), adaptiv ? /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
+
className: (0, _classnames.default)(_style.default.adaptiveIcon, isCourse ? _style.default.iconShadow : null)
|
|
72
|
+
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyAdaptive, {
|
|
73
|
+
height: 20,
|
|
74
|
+
"aria-label": (0, _get2.default)('adaptive', ariaLabel)
|
|
75
|
+
})) : null);
|
|
55
76
|
};
|
|
56
77
|
ContentTypeInfo.contextTypes = {
|
|
57
78
|
skin: _provider.default.childContextTypes.skin,
|
|
58
79
|
translate: _provider.default.childContextTypes.translate
|
|
59
80
|
};
|
|
60
81
|
ContentTypeInfo.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
61
|
-
externalContent: _propTypes.default.bool,
|
|
62
82
|
type: _propTypes.default.string,
|
|
63
|
-
mode: _propTypes.default.string
|
|
83
|
+
mode: _propTypes.default.string,
|
|
84
|
+
adaptiv: _propTypes.default.bool,
|
|
85
|
+
ariaLabel: _propTypes.default.string,
|
|
86
|
+
isCourse: _propTypes.default.bool,
|
|
87
|
+
empty: _propTypes.default.bool,
|
|
88
|
+
theme: _propTypes.default.oneOf((0, _keys2.default)(THEMES))
|
|
64
89
|
} : {};
|
|
65
90
|
const CardTitle = ({
|
|
66
91
|
title,
|
|
@@ -122,14 +147,14 @@ const ContentInfo = ({
|
|
|
122
147
|
theme = 'default',
|
|
123
148
|
'aria-label': ariaLabel
|
|
124
149
|
}) => {
|
|
125
|
-
const progressBarColor =
|
|
150
|
+
const progressBarColor = _colors.COLORS.cm_positive_500;
|
|
126
151
|
const inlineProgressValueStyle = {
|
|
127
152
|
backgroundColor: progressBarColor,
|
|
128
153
|
width: `${progress * 100}%`
|
|
129
154
|
};
|
|
130
|
-
const externalContent = (0, _externalContent.isExternalContent)(type);
|
|
131
155
|
const courseContent = type === 'course';
|
|
132
156
|
const chapterContent = type === 'chapter';
|
|
157
|
+
const externalContent = (0, _externalContent.isExternalContent)(type);
|
|
133
158
|
const progressBar = mode === MODES.HERO || !empty && !disabled ? /*#__PURE__*/_react.default.createElement("div", {
|
|
134
159
|
className: !(0, _isNil2.default)(progress) ? _style.default.progressWrapper : _style.default.hideProgressBar
|
|
135
160
|
}, !disabled ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -139,24 +164,21 @@ const ContentInfo = ({
|
|
|
139
164
|
role: "progressbar",
|
|
140
165
|
"aria-label": (0, _get2.default)('progression', ariaLabel)
|
|
141
166
|
}) : null) : null;
|
|
142
|
-
const adaptiveIcon = adaptiv ? /*#__PURE__*/_react.default.createElement("div", {
|
|
143
|
-
className: (0, _classnames.default)(_style.default.adaptiveIcon, courseContent ? _style.default.iconShadow : null)
|
|
144
|
-
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyAdaptive, {
|
|
145
|
-
height: 25,
|
|
146
|
-
"aria-label": (0, _get2.default)('adaptive', ariaLabel)
|
|
147
|
-
})) : null;
|
|
148
167
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
149
168
|
"data-name": "info",
|
|
150
|
-
className: (0, _classnames.default)(THEMES[theme], _style.default.infoWrapper, mode === MODES.HERO ? _style.default.hero : _style.default.card, disabled ? _style.default.progressBarDisabled : null, externalContent ? _style.default.
|
|
169
|
+
className: (0, _classnames.default)(THEMES[theme], _style.default.infoWrapper, mode === MODES.HERO ? _style.default.hero : _style.default.card, disabled ? _style.default.progressBarDisabled : null, chapterContent || courseContent || externalContent ? _style.default.standardContent : null)
|
|
151
170
|
}, /*#__PURE__*/_react.default.createElement(ContentTypeInfo, {
|
|
152
171
|
mode: mode,
|
|
153
172
|
type: type,
|
|
154
|
-
|
|
173
|
+
adaptiv: adaptiv,
|
|
174
|
+
isCourse: courseContent,
|
|
175
|
+
empty: empty,
|
|
176
|
+
theme: theme
|
|
155
177
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
156
|
-
className: (0, _classnames.default)(_style.default.cardInfo,
|
|
178
|
+
className: (0, _classnames.default)(_style.default.cardInfo, courseContent ? _style.default.cardCourseTitle : null)
|
|
157
179
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
158
180
|
className: _style.default.iconWrapper
|
|
159
|
-
},
|
|
181
|
+
}, !empty && badgeLabel && badgeCategory && courseContent ? /*#__PURE__*/_react.default.createElement(_contentBadge.default, {
|
|
160
182
|
category: badgeCategory,
|
|
161
183
|
label: badgeLabel
|
|
162
184
|
}) : null), /*#__PURE__*/_react.default.createElement(CardTitle, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_classnames","_novaIcons","_externalContent","_provider","_contentBadge","_style","e","__esModule","default","MODES","exports","HERO","CARD","THEMES","coorpmanager","style","ContentTypeInfo","mode","type","externalContent","context","translate","createElement","className","microLearningIcon","NovaCompositionCoorpacademyTimer","timerIcon","microLearninglabel","EXTERNAL_CONTENT_ICONS","textColor","color","contentTypeInfo","contextTypes","skin","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","bool","string","CardTitle","title","empty","courseContent","classnames","innerHTML","lightTitle","darkTitle","dangerouslySetInnerHTML","__html","AuthorName","author","certifiedAuthor","ariaLabel","checkIcon","NovaSolidStatusCheckCircle2","authorIcon","iconShadow","darkAuthorTitle","ContentInfo","adaptiv","disabled","progress","badgeCategory","badgeLabel","theme","progressBarColor","inlineProgressValueStyle","backgroundColor","width","isExternalContent","chapterContent","progressBar","_isNil2","progressWrapper","hideProgressBar","role","_get2","adaptiveIcon","NovaCompositionCoorpacademyAdaptive","height","infoWrapper","hero","card","progressBarDisabled","cardInfo","microLearningCardInfo","iconWrapper","category","label","number","ContentBadge","oneOf","_keys2","shape","progression","adaptive","_default"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAKA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,aAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzB,MAAMG,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG;EACnBE,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE;AACR,CAAC;AAEM,MAAMC,MAAM,GAAAH,OAAA,CAAAG,MAAA,GAAG;EACpBL,OAAO,EAAE,IAAI;EACbM,YAAY,EAAEC,cAAK,CAACD;AACtB,CAAC;AAED,MAAME,eAAe,GAAGA,CAAC;EAACC,IAAI;EAAEC,IAAI;EAAEC;AAAe,CAAC,EAAEC,OAAO,KA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AAG;EACzBC,IAAI,EAAEC,iBAAQ,CAACC,iBAAiB,CAACF;AACnC,CAAC;AAED6B,WAAW,CAAC1B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACtBwB,OAAO,EAAEvB,kBAAS,CAACC,IAAI;EACvBa,MAAM,EAAEd,kBAAS,CAACE,MAAM;EACxBa,eAAe,EAAEf,kBAAS,CAACC,IAAI;EAC/BuB,QAAQ,EAAExB,kBAAS,CAACC,IAAI;EACxBI,KAAK,EAAEL,kBAAS,CAACC,IAAI;EACrBwB,QAAQ,EAAEzB,kBAAS,CAACqD,MAAM;EAC1BjD,KAAK,EAAEJ,kBAAS,CAACE,MAAM;EACvBxB,IAAI,EAAEsB,kBAAS,CAACE,MAAM;EACtBzB,IAAI,EAAEuB,kBAAS,CAACE,MAAM;EACtBwB,aAAa,EAAE4B,qBAAY,CAAC1D,SAAS,CAACuD,QAAQ;EAC9CxB,UAAU,EAAE2B,qBAAY,CAAC1D,SAAS,CAACwD,KAAK;EACxCxB,KAAK,EAAE5B,kBAAS,CAACuD,KAAK,CAAC,IAAAC,MAAA,CAAAxF,OAAA,EAAKK,MAAM,CAAC,CAAC;EACpC,YAAY,EAAE2B,kBAAS,CAACyD,KAAK,CAAC;IAC5B3C,MAAM,EAAEd,kBAAS,CAACE,MAAM;IACxBwD,WAAW,EAAE1D,kBAAS,CAACE,MAAM;IAC7ByD,QAAQ,EAAE3D,kBAAS,CAACE;EACtB,CAAC;AACH,CAAC;AAAC,IAAA0D,QAAA,GAAA1F,OAAA,CAAAF,OAAA,GAEasD,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_classnames","_novaIcons","_provider","_contentBadge","_tag","_colors","_externalContent","_icons","_style","e","__esModule","default","MODES","exports","HERO","CARD","THEMES","coorpmanager","style","ContentTypeInfo","mode","type","adaptiv","ariaLabel","isCourse","empty","theme","context","translate","getLabel","contentType","label","iconName","_getOr2","ICONS_NAMES_MAP","createElement","className","contentTypeInfos","size","icon","classnames","adaptiveIcon","iconShadow","NovaCompositionCoorpacademyAdaptive","height","_get2","contextTypes","skin","Provider","childContextTypes","propTypes","process","env","NODE_ENV","PropTypes","string","bool","oneOf","_keys2","CardTitle","title","courseContent","innerHTML","lightTitle","darkTitle","dangerouslySetInnerHTML","__html","AuthorName","author","certifiedAuthor","checkIcon","NovaSolidStatusCheckCircle2","authorIcon","darkAuthorTitle","ContentInfo","disabled","progress","badgeCategory","badgeLabel","progressBarColor","COLORS","cm_positive_500","inlineProgressValueStyle","backgroundColor","width","chapterContent","externalContent","isExternalContent","progressBar","_isNil2","progressWrapper","hideProgressBar","role","infoWrapper","hero","card","progressBarDisabled","standardContent","cardInfo","cardCourseTitle","iconWrapper","category","number","ContentBadge","shape","progression","adaptive","_default"],"sources":["../../../src/molecule/card-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {get, getOr, isNil, keys} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyAdaptive as AdaptivIcon,\n NovaSolidStatusCheckCircle2 as CheckIcon\n} from '@coorpacademy/nova-icons';\nimport Provider from '../../atom/provider';\nimport ContentBadge from '../../atom/content-badge';\nimport Tag from '../../atom/tag';\nimport {COLORS} from '../../variables/colors';\nimport {isExternalContent} from '../../util/external-content';\nimport {ICONS_NAMES_MAP} from '../../util/icons';\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, adaptiv, ariaLabel, isCourse, empty, theme}, context) => {\n const {translate} = context;\n if (mode !== MODES.CARD || empty || theme === 'coorpmanager') {\n return null;\n }\n const getLabel = contentType => {\n switch (contentType) {\n case 'scorm':\n return translate('content_type_scorm');\n case 'video':\n return translate('content_type_video');\n case 'article':\n return translate('content_type_article');\n case 'podcast':\n return translate('content_type_podcast');\n case 'course':\n return translate('content_type_course');\n default:\n return `5'learning`;\n }\n };\n const label = getLabel(type);\n const iconName = getOr('stopwatch', type, ICONS_NAMES_MAP);\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 courseContent = type === 'course';\n const chapterContent = type === 'chapter';\n const externalContent = isExternalContent(type);\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 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 chapterContent || courseContent || externalContent ? style.standardContent : null\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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAIA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,IAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,gBAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,MAAA,GAAAX,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEzB,MAAMG,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG;EACnBE,IAAI,EAAE,MAAM;EACZC,IAAI,EAAE;AACR,CAAC;AAEM,MAAMC,MAAM,GAAAH,OAAA,CAAAG,MAAA,GAAG;EACpBL,OAAO,EAAE,IAAI;EACbM,YAAY,EAAEC,cAAK,CAACD;AACtB,CAAC;AAED,MAAME,eAAe,GAAGA,CAAC;EAACC,IAAI;EAAEC,IAAI;EAAEC,OAAO;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAEC;AAAK,CAAC,EAAEC,OAAO,KAAK;EAC7F,MAAM;IAACC;EAAS,CAAC,GAAGD,OAAO;EAC3B,IAAIP,IAAI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9
9
|
@value lightBlack from colors;
|
|
10
10
|
@value xtraLightGrey from colors;
|
|
11
11
|
@value white from colors;
|
|
12
|
-
|
|
13
|
-
.microLearningCardInfo {
|
|
14
|
-
flex: 1 0 auto;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.microLearningIcon {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
align-self: center;
|
|
21
|
-
margin-top: 53px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.coorpmanager .microLearningIcon {
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-self: center;
|
|
28
|
-
margin-top: 35px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.timerIcon {
|
|
32
|
-
height: 40px;
|
|
33
|
-
width: 40px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.coorpmanager .timerIcon {
|
|
37
|
-
height: 30px;
|
|
38
|
-
width: 30px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.microLearningIcon svg {
|
|
42
|
-
background:white;
|
|
43
|
-
border-radius: 50%;
|
|
44
|
-
margin: 0 auto;
|
|
45
|
-
padding: 3px;
|
|
46
|
-
box-sizing: content-box;
|
|
47
|
-
color: lightBlack;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.microLearninglabel {
|
|
51
|
-
font-family: 'Gilroy';
|
|
52
|
-
font-size: 10px;
|
|
53
|
-
font-weight: 800;
|
|
54
|
-
color: lightBlack;
|
|
55
|
-
text-transform: uppercase;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.coorpmanager .microLearninglabel {
|
|
59
|
-
font-size: 6px;
|
|
60
|
-
}
|
|
12
|
+
@value cm_grey_200 from colors;
|
|
61
13
|
|
|
62
14
|
.infoWrapper {
|
|
63
15
|
display: flex;
|
|
16
|
+
gap: 4px;
|
|
64
17
|
flex-direction: column;
|
|
65
18
|
position: relative;
|
|
66
|
-
justify-content:
|
|
67
|
-
padding:
|
|
19
|
+
justify-content: flex-end;
|
|
20
|
+
padding-left: 16px;
|
|
21
|
+
padding-right: 16px;
|
|
68
22
|
width: 100%;
|
|
69
23
|
box-sizing: border-box;
|
|
70
24
|
}
|
|
@@ -131,7 +85,7 @@
|
|
|
131
85
|
margin-top: 0px;
|
|
132
86
|
}
|
|
133
87
|
|
|
134
|
-
.
|
|
88
|
+
.standardContent.coorpmanager .author {
|
|
135
89
|
margin-top: 5px;
|
|
136
90
|
}
|
|
137
91
|
|
|
@@ -155,7 +109,6 @@
|
|
|
155
109
|
|
|
156
110
|
.infoWrapper.card {
|
|
157
111
|
height: 100%;
|
|
158
|
-
justify-content: flex-end;
|
|
159
112
|
}
|
|
160
113
|
|
|
161
114
|
.infoWrapper.empty {
|
|
@@ -177,11 +130,9 @@
|
|
|
177
130
|
}
|
|
178
131
|
|
|
179
132
|
.adaptiveIcon {
|
|
180
|
-
font-size: 5px;
|
|
181
133
|
width: 25px;
|
|
182
|
-
height:
|
|
134
|
+
height: 20px;
|
|
183
135
|
color: lightBlack;
|
|
184
|
-
margin-right: 5px;
|
|
185
136
|
}
|
|
186
137
|
|
|
187
138
|
.iconWrapper {
|
|
@@ -210,48 +161,52 @@
|
|
|
210
161
|
.progressWrapper {
|
|
211
162
|
position: relative;
|
|
212
163
|
left: 0;
|
|
213
|
-
width:
|
|
164
|
+
width: 150px;
|
|
214
165
|
height: 4px;
|
|
215
166
|
border-radius: 2px;
|
|
216
167
|
overflow: hidden;
|
|
217
168
|
margin: 16px auto;
|
|
218
|
-
background:
|
|
169
|
+
background: cm_grey_200;
|
|
219
170
|
}
|
|
220
171
|
|
|
221
172
|
.coorpmanager .progressWrapper {
|
|
173
|
+
width: 140px;
|
|
222
174
|
height: 2px;
|
|
223
175
|
margin: 11px auto;
|
|
224
176
|
}
|
|
225
177
|
|
|
226
|
-
.card .progressWrapper {
|
|
227
|
-
width: 150px;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
178
|
.hero .progressWrapper {
|
|
231
179
|
margin: 0 auto;
|
|
232
180
|
}
|
|
233
181
|
|
|
234
|
-
.
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.coorpmanager.externalContent .contentTypeInfo {
|
|
241
|
-
font-size: 6px;
|
|
182
|
+
.contentTypeInfos {
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
gap: 8px;
|
|
242
186
|
}
|
|
243
187
|
|
|
244
|
-
.
|
|
188
|
+
.standardContent .cardInfo {
|
|
245
189
|
flex-grow: 2;
|
|
246
190
|
max-height: 115px;
|
|
247
191
|
overflow: hidden;
|
|
248
192
|
}
|
|
249
193
|
|
|
250
|
-
.
|
|
194
|
+
.standardContent.infoWrapper {
|
|
195
|
+
padding-top: 50%;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.coorpmanager.standardContent .cardInfo {
|
|
251
199
|
flex-grow: 2;
|
|
252
200
|
max-height: 79px;
|
|
253
201
|
}
|
|
254
202
|
|
|
203
|
+
.cardInfo.cardCourseTitle {
|
|
204
|
+
flex-grow: 0;
|
|
205
|
+
display: flex;
|
|
206
|
+
justify-content: flex-end;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
}
|
|
209
|
+
|
|
255
210
|
@media mobile {
|
|
256
211
|
.author {
|
|
257
212
|
font-size: 12px;
|
|
@@ -648,8 +648,6 @@ declare const propTypes: {
|
|
|
648
648
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
649
649
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
650
650
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
651
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
652
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
653
651
|
theme: PropTypes.Requireable<string>;
|
|
654
652
|
dataTestId: PropTypes.Requireable<string>;
|
|
655
653
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,SAAS,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE3D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAC,SAAS,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE3D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -39,8 +39,6 @@ declare const MultiFilterPanel: {
|
|
|
39
39
|
onClear: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
40
40
|
onFocus: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
41
41
|
onBlur: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
42
|
-
onKeyDown: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
43
|
-
inputRef: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
44
42
|
theme: import("prop-types").Requireable<string>;
|
|
45
43
|
dataTestId: import("prop-types").Requireable<string>;
|
|
46
44
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAqBlF,QAAA,MAAM,gBAAgB;YAAW,qBAAqB,WAAW,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,qBAAqB,EAAqB,MAAM,cAAc,CAAC;AAqBlF,QAAA,MAAM,gBAAgB;YAAW,qBAAqB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDhF,CAAC;AAQF,eAAe,gBAAgB,CAAC"}
|
|
@@ -37,8 +37,6 @@ declare const propTypes: {
|
|
|
37
37
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
38
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
39
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
41
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
42
40
|
theme: PropTypes.Requireable<string>;
|
|
43
41
|
dataTestId: PropTypes.Requireable<string>;
|
|
44
42
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;AAE/D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/multi-filter-panel/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AAC3F,OAAyC,EACvC,4BAA4B,EAC7B,MAAM,uDAAuD,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,4BAA4B,CAAC;CACvC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAEzE,oBAAY,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -8,8 +8,6 @@ declare namespace SearchForm {
|
|
|
8
8
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
9
|
onSearchFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
10
|
onSearchBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
onSearchKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
11
|
search: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
12
|
value: PropTypes.Requireable<string>;
|
|
15
13
|
placeholder: PropTypes.Validator<string>;
|
|
@@ -17,14 +15,11 @@ declare namespace SearchForm {
|
|
|
17
15
|
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
16
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
17
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
18
|
theme: PropTypes.Requireable<string>;
|
|
23
19
|
dataTestId: PropTypes.Requireable<string>;
|
|
24
20
|
}>>;
|
|
25
21
|
'search-reset-aria-label': PropTypes.Requireable<string>;
|
|
26
22
|
dataTestId: PropTypes.Requireable<string>;
|
|
27
|
-
theme: PropTypes.Requireable<string>;
|
|
28
23
|
};
|
|
29
24
|
}
|
|
30
25
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/search-form/index.js"],"names":[],"mappings":";AAOA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/search-form/index.js"],"names":[],"mappings":";AAOA,mEA0CC"}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
+
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
5
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
-
var
|
|
8
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
9
9
|
var _inputSearch = _interopRequireDefault(require("../../atom/input-search"));
|
|
10
10
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
15
|
const SearchForm = (props, context) => {
|
|
16
16
|
const {
|
|
@@ -21,23 +21,17 @@ const SearchForm = (props, context) => {
|
|
|
21
21
|
search,
|
|
22
22
|
onSearchFocus,
|
|
23
23
|
onSearchBlur,
|
|
24
|
-
onSearchKeyDown,
|
|
25
|
-
inputRef,
|
|
26
24
|
'search-reset-aria-label': searchResetAriaLabel,
|
|
27
|
-
dataTestId
|
|
28
|
-
theme
|
|
25
|
+
dataTestId
|
|
29
26
|
} = props;
|
|
30
27
|
const handleSubmit = (0, _react.useMemo)(() => evt => {
|
|
31
28
|
evt.preventDefault();
|
|
32
29
|
return onSubmit && onSubmit(evt);
|
|
33
30
|
}, [onSubmit]);
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}, [onReset]);
|
|
39
|
-
const isMooc = theme === 'mooc';
|
|
40
|
-
const clearClassName = search.value ? (0, _classnames.default)(_style.default.wrapperClear, isMooc && _style.default.wrapperClearMooc) : _style.default.wrapperNoClear;
|
|
31
|
+
const {
|
|
32
|
+
skin
|
|
33
|
+
} = context;
|
|
34
|
+
const dark = (0, _get2.default)('common.dark', skin);
|
|
41
35
|
return /*#__PURE__*/_react.default.createElement("form", {
|
|
42
36
|
className: _style.default.form,
|
|
43
37
|
action: action,
|
|
@@ -48,18 +42,17 @@ const SearchForm = (props, context) => {
|
|
|
48
42
|
}, /*#__PURE__*/_react.default.createElement(_inputSearch.default, _extends({}, search, {
|
|
49
43
|
onFocus: onSearchFocus,
|
|
50
44
|
onBlur: onSearchBlur,
|
|
51
|
-
|
|
52
|
-
inputRef: inputRef,
|
|
53
|
-
dataTestId: dataTestId,
|
|
54
|
-
theme: theme
|
|
45
|
+
dataTestId: dataTestId
|
|
55
46
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
47
|
"data-name": "search-form-reset",
|
|
57
48
|
"aria-label": searchResetAriaLabel,
|
|
58
|
-
|
|
59
|
-
className:
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
onClick: onReset,
|
|
50
|
+
className: search.value ? _style.default.wrapperClear : _style.default.wrapperNoClear
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionNavigationMore, {
|
|
52
|
+
style: {
|
|
53
|
+
color: dark
|
|
54
|
+
},
|
|
55
|
+
className: _style.default.clear
|
|
63
56
|
})));
|
|
64
57
|
};
|
|
65
58
|
SearchForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -69,12 +62,9 @@ SearchForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
69
62
|
onReset: _propTypes.default.func,
|
|
70
63
|
onSearchFocus: _propTypes.default.func,
|
|
71
64
|
onSearchBlur: _propTypes.default.func,
|
|
72
|
-
onSearchKeyDown: _propTypes.default.func,
|
|
73
|
-
inputRef: _propTypes.default.func,
|
|
74
65
|
search: _propTypes.default.shape(_inputSearch.default.propTypes),
|
|
75
66
|
'search-reset-aria-label': _propTypes.default.string,
|
|
76
|
-
dataTestId: _propTypes.default.string
|
|
77
|
-
theme: _propTypes.default.string
|
|
67
|
+
dataTestId: _propTypes.default.string
|
|
78
68
|
} : {};
|
|
79
69
|
var _default = exports.default = SearchForm;
|
|
80
70
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_novaIcons","_inputSearch","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","SearchForm","props","context","action","method","onSubmit","onReset","search","onSearchFocus","onSearchBlur","searchResetAriaLabel","dataTestId","handleSubmit","useMemo","evt","preventDefault","skin","dark","_get2","createElement","className","style","form","placeholder","onFocus","onBlur","onClick","value","wrapperClear","wrapperNoClear","NovaCompositionNavigationMore","color","clear","propTypes","process","env","NODE_ENV","PropTypes","string","func","shape","Search","_default","exports"],"sources":["../../../src/molecule/search-form/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationMore as ClearIcon} from '@coorpacademy/nova-icons';\nimport Search from '../../atom/input-search';\nimport style from './style.css';\n\nconst SearchForm = (props, context) => {\n const {\n action,\n method,\n onSubmit,\n onReset,\n search,\n onSearchFocus,\n onSearchBlur,\n 'search-reset-aria-label': searchResetAriaLabel,\n dataTestId\n } = props;\n const handleSubmit = useMemo(\n () => evt => {\n evt.preventDefault();\n return onSubmit && onSubmit(evt);\n },\n [onSubmit]\n );\n const {skin} = context;\n const dark = get('common.dark', skin);\n\n return (\n <form\n className={style.form}\n action={action}\n method={method}\n onSubmit={handleSubmit}\n data-name=\"searchForm\"\n aria-label={search.placeholder}\n >\n <Search {...search} onFocus={onSearchFocus} onBlur={onSearchBlur} dataTestId={dataTestId} />\n <div\n data-name=\"search-form-reset\"\n aria-label={searchResetAriaLabel}\n onClick={onReset}\n className={search.value ? style.wrapperClear : style.wrapperNoClear}\n >\n <ClearIcon style={{color: dark}} className={style.clear} />\n </div>\n </form>\n );\n};\n\nSearchForm.propTypes = {\n action: PropTypes.string,\n method: PropTypes.string,\n onSubmit: PropTypes.func,\n onReset: PropTypes.func,\n onSearchFocus: PropTypes.func,\n onSearchBlur: PropTypes.func,\n search: PropTypes.shape(Search.propTypes),\n 'search-reset-aria-label': PropTypes.string,\n data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