@coorpacademy/components 11.34.2 → 11.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/es/molecule/progress-wrapper/index.js +39 -19
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/molecule/progress-wrapper/style.css +37 -2
- package/es/molecule/scope-content/index.d.ts.map +1 -1
- package/es/molecule/scope-content/index.js +7 -3
- package/es/molecule/scope-content/index.js.map +1 -1
- package/es/molecule/scope-content/style.css +10 -1
- package/es/molecule/scope-tabs/style.css +3 -1
- package/es/template/certification-detail/style.css +5 -2
- package/es/template/common/discipline/index.d.ts +51 -0
- package/es/template/common/discipline/index.d.ts.map +1 -1
- package/es/template/common/discipline/index.js +8 -3
- package/es/template/common/discipline/index.js.map +1 -1
- package/es/template/common/discipline/style.css +6 -0
- package/lib/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/progress-wrapper/index.js +39 -19
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/style.css +37 -2
- package/lib/molecule/scope-content/index.d.ts.map +1 -1
- package/lib/molecule/scope-content/index.js +7 -3
- package/lib/molecule/scope-content/index.js.map +1 -1
- package/lib/molecule/scope-content/style.css +10 -1
- package/lib/molecule/scope-tabs/style.css +3 -1
- package/lib/template/certification-detail/style.css +5 -2
- package/lib/template/common/discipline/index.d.ts +51 -0
- package/lib/template/common/discipline/index.d.ts.map +1 -1
- package/lib/template/common/discipline/index.js +8 -3
- package/lib/template/common/discipline/index.js.map +1 -1
- package/lib/template/common/discipline/style.css +6 -0
- package/locales/bs/global.json +1 -0
- package/locales/cs/global.json +1 -0
- package/locales/de/global.json +1 -0
- package/locales/en/global.json +1 -0
- package/locales/es/global.json +1 -0
- package/locales/et/global.json +1 -0
- package/locales/fi/global.json +1 -0
- package/locales/fr/global.json +1 -0
- package/locales/hr/global.json +1 -0
- package/locales/hu/global.json +1 -0
- package/locales/hy/global.json +1 -0
- package/locales/it/global.json +1 -0
- package/locales/ja/global.json +1 -0
- package/locales/ko/global.json +1 -0
- package/locales/nl/global.json +1 -0
- package/locales/pl/global.json +1 -0
- package/locales/pt/global.json +1 -0
- package/locales/ro/global.json +1 -0
- package/locales/ru/global.json +1 -0
- package/locales/sk/global.json +1 -0
- package/locales/sl/global.json +1 -0
- package/locales/sv/global.json +1 -0
- package/locales/tl/global.json +1 -0
- package/locales/tr/global.json +1 -0
- package/locales/uk/global.json +1 -0
- package/locales/vi/global.json +1 -0
- package/locales/zh/global.json +1 -0
- package/locales/zh_TW/global.json +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/progress-wrapper/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/progress-wrapper/index.js"],"names":[],"mappings":";AAgGA;;;;;;;8BAsGC"}
|
|
@@ -2,7 +2,8 @@ import _get from "lodash/fp/get";
|
|
|
2
2
|
import _map from "lodash/fp/map";
|
|
3
3
|
import _isEmpty from "lodash/fp/isEmpty";
|
|
4
4
|
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); }
|
|
5
|
-
import React from 'react';
|
|
5
|
+
import React, { useCallback, useState } from 'react';
|
|
6
|
+
import classNames from 'classnames';
|
|
6
7
|
import PropTypes from 'prop-types';
|
|
7
8
|
import { convert } from 'css-color-function';
|
|
8
9
|
import Title from '../../atom/title';
|
|
@@ -59,19 +60,6 @@ const DetailSection = ({
|
|
|
59
60
|
},
|
|
60
61
|
disabled: isLocked
|
|
61
62
|
};
|
|
62
|
-
const LockedTag = /*#__PURE__*/React.createElement(Tag, {
|
|
63
|
-
label: translate('locked'),
|
|
64
|
-
size: "S",
|
|
65
|
-
icon: {
|
|
66
|
-
position: 'left',
|
|
67
|
-
iconName: 'lock',
|
|
68
|
-
iconColor: COLORS.cm_grey_500,
|
|
69
|
-
preset: 's',
|
|
70
|
-
customStyle: {
|
|
71
|
-
padding: 0
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
63
|
return isTypeStars ? /*#__PURE__*/React.createElement("div", {
|
|
76
64
|
className: style[`detailsSection${index}`],
|
|
77
65
|
"data-name": type,
|
|
@@ -82,7 +70,7 @@ const DetailSection = ({
|
|
|
82
70
|
className: style.detailsInfoText
|
|
83
71
|
}, /*#__PURE__*/React.createElement("span", {
|
|
84
72
|
className: style.detailsTitle
|
|
85
|
-
}, translate('bonus_stars'))
|
|
73
|
+
}, translate('bonus_stars'))), /*#__PURE__*/React.createElement("div", {
|
|
86
74
|
className: style.stars
|
|
87
75
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
88
76
|
iconName: "star",
|
|
@@ -102,7 +90,7 @@ const DetailSection = ({
|
|
|
102
90
|
className: style.detailsInfoText
|
|
103
91
|
}, /*#__PURE__*/React.createElement("span", {
|
|
104
92
|
className: style.detailsTitle
|
|
105
|
-
}, type === 'diploma' ? translate('diploma') : translate('badge'))
|
|
93
|
+
}, type === 'diploma' ? translate('diploma') : translate('badge'))), /*#__PURE__*/React.createElement("div", {
|
|
106
94
|
className: style.buttonContainer
|
|
107
95
|
}, /*#__PURE__*/React.createElement(ButtonLink, downloadButtonProps))));
|
|
108
96
|
};
|
|
@@ -122,6 +110,10 @@ const ProgressWrapper = ({
|
|
|
122
110
|
count: completedModules > mandatoryModules ? mandatoryModules : completedModules
|
|
123
111
|
});
|
|
124
112
|
const isLocked = progression !== 100;
|
|
113
|
+
const [showDetails, setShowDetails] = useState(false);
|
|
114
|
+
const handleToggleDetails = useCallback(() => {
|
|
115
|
+
setShowDetails(!showDetails);
|
|
116
|
+
}, [showDetails]);
|
|
125
117
|
return /*#__PURE__*/React.createElement("div", {
|
|
126
118
|
className: style.container,
|
|
127
119
|
"data-name": "prgress-wrapper",
|
|
@@ -159,13 +151,41 @@ const ProgressWrapper = ({
|
|
|
159
151
|
className: style.statsProgressionMobile
|
|
160
152
|
}, /*#__PURE__*/React.createElement("span", {
|
|
161
153
|
className: style.statsNumber
|
|
162
|
-
}, progression, "%")), _isEmpty(sections) ? null
|
|
163
|
-
className: style.
|
|
154
|
+
}, progression, "%")), !_isEmpty(sections) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
155
|
+
className: style.toggleDetailsButton,
|
|
156
|
+
onClick: handleToggleDetails,
|
|
157
|
+
"data-testid": "progress-wrapper-toggle-details-button"
|
|
158
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
159
|
+
className: style.toggleDetailsLabel
|
|
160
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
161
|
+
className: style.toggleDetailsTitle
|
|
162
|
+
}, translate('rewards')), isLocked ? /*#__PURE__*/React.createElement(Tag, {
|
|
163
|
+
label: translate('locked'),
|
|
164
|
+
size: "S",
|
|
165
|
+
icon: {
|
|
166
|
+
position: 'left',
|
|
167
|
+
iconName: 'lock',
|
|
168
|
+
iconColor: COLORS.cm_grey_500,
|
|
169
|
+
preset: 's',
|
|
170
|
+
customStyle: {
|
|
171
|
+
padding: 0
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}) : null), /*#__PURE__*/React.createElement(Icon, {
|
|
175
|
+
iconColor: COLORS.cm_grey_700,
|
|
176
|
+
iconName: showDetails ? 'chevron-up' : 'chevron-down',
|
|
177
|
+
size: {
|
|
178
|
+
faSize: 20,
|
|
179
|
+
wrapperSize: 24
|
|
180
|
+
}
|
|
181
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: classNames(style.details, showDetails ? style.visibleDetails : style.hiddenDetails),
|
|
183
|
+
"data-testid": "progress-wrapper-details"
|
|
164
184
|
}, uncappedMap((section, index) => /*#__PURE__*/React.createElement(DetailSection, _extends({}, section, {
|
|
165
185
|
isLocked: isLocked,
|
|
166
186
|
key: `${section.type}-${index}`,
|
|
167
187
|
index: index
|
|
168
|
-
})), sections)));
|
|
188
|
+
})), sections))) : null);
|
|
169
189
|
};
|
|
170
190
|
const commonDetailSectionPropTypes = process.env.NODE_ENV !== "production" ? {
|
|
171
191
|
type: PropTypes.oneOf(['diploma', 'badge', 'stars']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","convert","Title","ProgressBar","COLORS","Tag","ButtonLink","Icon","Provider","GetSkinFromContext","style","uncappedMap","_map","cap","DetailSection","index","type","isLocked","downloadUrl","stars","context","translate","skin","primarySkinColor","_get","isTypeStars","downloadButtonProps","label","link","target","href","customStyle","backgroundColor","color","width","transition","hoverBackgroundColor","hoverColor","white","icon","position","faIcon","name","size","padding","disabled","LockedTag","createElement","iconName","iconColor","cm_grey_500","preset","className","detailsInfo","detailsInfoText","detailsTitle","img","src","buttonContainer","ProgressWrapper","completedModules","mandatoryModules","title","subtitle","progression","sections","mandatoryCompletedModulesLocale","total","count","container","titleContainer","titleSize","statscontainer","stats","dangerouslySetInnerHTML","__html","statsNumber","customProgressBar","positive","displayInfo","value","max","statsProgressionMobile","_isEmpty","details","section","_extends","key","commonDetailSectionPropTypes","process","env","NODE_ENV","oneOf","string","number","contextTypes","childContextTypes","propTypes","bool","arrayOf","shape"],"sources":["../../../src/molecule/progress-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {convert} from 'css-color-function';\nimport {isEmpty, map, get} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Icon from '../../atom/icon';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst uncappedMap = map.convert({cap: false});\n\nconst DetailSection = ({index, type, isLocked, downloadUrl, stars}, context) => {\n const {translate} = context;\n const skin = GetSkinFromContext(context);\n const primarySkinColor = get('common.primary', skin);\n const isTypeStars = type === 'stars';\n\n const downloadButtonProps = {\n label: translate('download'),\n link: {\n target: '_blank',\n href: downloadUrl\n },\n 'data-name': `download-${type}-button`,\n 'aria-label': `download ${type} button`,\n customStyle: {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n width: 'auto',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n hoverBackgroundColor: primarySkinColor,\n hoverColor: COLORS.white,\n icon: {\n position: 'left',\n faIcon: {\n name: 'download',\n color: primarySkinColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n disabled: isLocked\n };\n\n const LockedTag = (\n <Tag\n label={translate('locked')}\n size=\"S\"\n icon={{\n position: 'left',\n iconName: 'lock',\n iconColor: COLORS.cm_grey_500,\n preset: 's',\n customStyle: {padding: 0}\n }}\n />\n );\n\n return isTypeStars ? (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>{translate('bonus_stars')}</span>\n {isLocked ? LockedTag : null}\n </div>\n <div className={style.stars}>\n <Icon iconName=\"star\" iconColor=\"#FFCE0A\" backgroundColor=\"#FFF9D1\" preset=\"xl\" />\n <span>{stars}</span>\n </div>\n </div>\n </div>\n ) : (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <img\n className={style.img}\n src={\n type === 'badge'\n ? downloadUrl\n : 'https://s3.eu-west-1.amazonaws.com/static.coorpacademy.com/assets/images/diploma.svg'\n }\n />\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>\n {type === 'diploma' ? translate('diploma') : translate('badge')}\n </span>\n {isLocked ? LockedTag : null}\n </div>\n\n <div className={style.buttonContainer}>\n <ButtonLink {...downloadButtonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nconst ProgressWrapper = (\n {completedModules, mandatoryModules, title, subtitle, progression, sections},\n context\n) => {\n const {translate} = context;\n const mandatoryCompletedModulesLocale = translate('modules_completed_mandatory', {\n total: mandatoryModules,\n count: completedModules > mandatoryModules ? mandatoryModules : completedModules\n });\n const isLocked = progression !== 100;\n\n return (\n <div\n className={style.container}\n data-name=\"prgress-wrapper\"\n aria-label=\"progress wrapper section\"\n >\n <div className={style.titleContainer}>\n <Title type=\"form-group\" titleSize=\"medium\" title={title} subtitle={subtitle} />\n </div>\n <div className={style.statscontainer}>\n <div className={style.stats}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: mandatoryCompletedModulesLocale}}\n />\n </div>\n <div className={style.progression}>\n <span className={style.statsNumber} data-name=\"progress-value\">\n {progression}%\n </span>\n </div>\n </div>\n <ProgressBar\n className={style.customProgressBar}\n style={{backgroundColor: COLORS.positive}}\n displayInfo={false}\n value={progression}\n max={100}\n />\n <div className={style.statsProgressionMobile}>\n <span className={style.statsNumber}>{progression}%</span>\n </div>\n\n {isEmpty(sections) ? null : (\n <div className={style.details}>\n {uncappedMap(\n (section, index) => (\n <DetailSection\n {...section}\n isLocked={isLocked}\n key={`${section.type}-${index}`}\n index={index}\n />\n ),\n sections\n )}\n </div>\n )}\n </div>\n );\n};\n\nconst commonDetailSectionPropTypes = {\n type: PropTypes.oneOf(['diploma', 'badge', 'stars']),\n downloadUrl: PropTypes.string,\n stars: PropTypes.number\n};\n\nDetailSection.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nDetailSection.propTypes = {\n index: PropTypes.number,\n isLocked: PropTypes.bool,\n ...commonDetailSectionPropTypes\n};\n\nProgressWrapper.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nProgressWrapper.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n completedModules: PropTypes.number,\n mandatoryModules: PropTypes.number,\n progression: PropTypes.number,\n sections: PropTypes.arrayOf(PropTypes.shape(commonDetailSectionPropTypes))\n};\n\nexport default ProgressWrapper;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAAQC,OAAO,QAAO,oBAAoB;AAE1C,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,WAAW,MAAM,iBAAiB;AACzC,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,QAAQ,IAAGC,kBAAkB,QAAO,qBAAqB;AAChE;AACA,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAGC,IAAA,CAAIX,OAAO,CAAC;EAACY,GAAG,EAAE;AAAK,CAAC,CAAC;AAE7C,MAAMC,aAAa,GAAGA,CAAC;EAACC,KAAK;EAAEC,IAAI;EAAEC,QAAQ;EAAEC,WAAW;EAAEC;AAAK,CAAC,EAAEC,OAAO,KAAK;EAC9E,MAAM;IAACC;EAAS,CAAC,GAAGD,OAAO;EAC3B,MAAME,IAAI,GAAGb,kBAAkB,CAACW,OAAO,CAAC;EACxC,MAAMG,gBAAgB,GAAGC,IAAA,CAAI,gBAAgB,EAAEF,IAAI,CAAC;EACpD,MAAMG,WAAW,GAAGT,IAAI,KAAK,OAAO;EAEpC,MAAMU,mBAAmB,GAAG;IAC1BC,KAAK,EAAEN,SAAS,CAAC,UAAU,CAAC;IAC5BO,IAAI,EAAE;MACJC,MAAM,EAAE,QAAQ;MAChBC,IAAI,EAAEZ;IACR,CAAC;IACD,WAAW,EAAE,YAAYF,IAAI,SAAS;IACtC,YAAY,EAAE,YAAYA,IAAI,SAAS;IACvCe,WAAW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f,SAAS,CAAC8F,MAAM;EACvB7E,QAAQ,EAAEjB,SAAS,CAACkG,IAAI;EACxB,GAAGV;AACL,CAAC;AAED7B,eAAe,CAACoC,YAAY,GAAG;EAC7B1E,SAAS,EAAEb,QAAQ,CAACwF,iBAAiB,CAAC3E;AACxC,CAAC;AAEDsC,eAAe,CAACsC,SAAS,GAAAR,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EAC1B7B,KAAK,EAAE9D,SAAS,CAAC6F,MAAM;EACvB9B,QAAQ,EAAE/D,SAAS,CAAC6F,MAAM;EAC1BjC,gBAAgB,EAAE5D,SAAS,CAAC8F,MAAM;EAClCjC,gBAAgB,EAAE7D,SAAS,CAAC8F,MAAM;EAClC9B,WAAW,EAAEhE,SAAS,CAAC8F,MAAM;EAC7B7B,QAAQ,EAAEjE,SAAS,CAACmG,OAAO,CAACnG,SAAS,CAACoG,KAAK,CAACZ,4BAA4B,CAAC;AAC3E,CAAC;AAED,eAAe7B,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useState","classNames","PropTypes","convert","Title","ProgressBar","COLORS","Tag","ButtonLink","Icon","Provider","GetSkinFromContext","style","uncappedMap","_map","cap","DetailSection","index","type","isLocked","downloadUrl","stars","context","translate","skin","primarySkinColor","_get","isTypeStars","downloadButtonProps","label","link","target","href","customStyle","backgroundColor","color","width","transition","hoverBackgroundColor","hoverColor","white","icon","position","faIcon","name","size","padding","disabled","createElement","className","detailsInfo","detailsInfoText","detailsTitle","iconName","iconColor","preset","img","src","buttonContainer","ProgressWrapper","completedModules","mandatoryModules","title","subtitle","progression","sections","mandatoryCompletedModulesLocale","total","count","showDetails","setShowDetails","handleToggleDetails","container","titleContainer","titleSize","statscontainer","stats","dangerouslySetInnerHTML","__html","statsNumber","customProgressBar","positive","displayInfo","value","max","statsProgressionMobile","_isEmpty","Fragment","toggleDetailsButton","onClick","toggleDetailsLabel","toggleDetailsTitle","cm_grey_500","cm_grey_700","faSize","wrapperSize","details","visibleDetails","hiddenDetails","section","_extends","key","commonDetailSectionPropTypes","process","env","NODE_ENV","oneOf","string","number","contextTypes","childContextTypes","propTypes","bool","arrayOf","shape"],"sources":["../../../src/molecule/progress-wrapper/index.js"],"sourcesContent":["import React, {useCallback, useState} from 'react';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport {convert} from 'css-color-function';\nimport {isEmpty, map, get} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport ProgressBar from '../progress-bar';\nimport {COLORS} from '../../variables/colors';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Icon from '../../atom/icon';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst uncappedMap = map.convert({cap: false});\n\nconst DetailSection = ({index, type, isLocked, downloadUrl, stars}, context) => {\n const {translate} = context;\n const skin = GetSkinFromContext(context);\n const primarySkinColor = get('common.primary', skin);\n const isTypeStars = type === 'stars';\n\n const downloadButtonProps = {\n label: translate('download'),\n link: {\n target: '_blank',\n href: downloadUrl\n },\n 'data-name': `download-${type}-button`,\n 'aria-label': `download ${type} button`,\n customStyle: {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n width: 'auto',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n hoverBackgroundColor: primarySkinColor,\n hoverColor: COLORS.white,\n icon: {\n position: 'left',\n faIcon: {\n name: 'download',\n color: primarySkinColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n disabled: isLocked\n };\n\n return isTypeStars ? (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>{translate('bonus_stars')}</span>\n </div>\n <div className={style.stars}>\n <Icon iconName=\"star\" iconColor=\"#FFCE0A\" backgroundColor=\"#FFF9D1\" preset=\"xl\" />\n <span>{stars}</span>\n </div>\n </div>\n </div>\n ) : (\n <div\n className={style[`detailsSection${index}`]}\n data-name={type}\n aria-label={`${type} informations`}\n >\n <img\n className={style.img}\n src={\n type === 'badge'\n ? downloadUrl\n : 'https://s3.eu-west-1.amazonaws.com/static.coorpacademy.com/assets/images/diploma.svg'\n }\n />\n <div className={style.detailsInfo}>\n <div className={style.detailsInfoText}>\n <span className={style.detailsTitle}>\n {type === 'diploma' ? translate('diploma') : translate('badge')}\n </span>\n </div>\n\n <div className={style.buttonContainer}>\n <ButtonLink {...downloadButtonProps} />\n </div>\n </div>\n </div>\n );\n};\n\nconst ProgressWrapper = (\n {completedModules, mandatoryModules, title, subtitle, progression, sections},\n context\n) => {\n const {translate} = context;\n const mandatoryCompletedModulesLocale = translate('modules_completed_mandatory', {\n total: mandatoryModules,\n count: completedModules > mandatoryModules ? mandatoryModules : completedModules\n });\n const isLocked = progression !== 100;\n\n const [showDetails, setShowDetails] = useState(false);\n\n const handleToggleDetails = useCallback(() => {\n setShowDetails(!showDetails);\n }, [showDetails]);\n return (\n <div\n className={style.container}\n data-name=\"prgress-wrapper\"\n aria-label=\"progress wrapper section\"\n >\n <div className={style.titleContainer}>\n <Title type=\"form-group\" titleSize=\"medium\" title={title} subtitle={subtitle} />\n </div>\n <div className={style.statscontainer}>\n <div className={style.stats}>\n <div\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: mandatoryCompletedModulesLocale}}\n />\n </div>\n <div className={style.progression}>\n <span className={style.statsNumber} data-name=\"progress-value\">\n {progression}%\n </span>\n </div>\n </div>\n <ProgressBar\n className={style.customProgressBar}\n style={{backgroundColor: COLORS.positive}}\n displayInfo={false}\n value={progression}\n max={100}\n />\n <div className={style.statsProgressionMobile}>\n <span className={style.statsNumber}>{progression}%</span>\n </div>\n\n {!isEmpty(sections) ? (\n <>\n <div\n className={style.toggleDetailsButton}\n onClick={handleToggleDetails}\n data-testid=\"progress-wrapper-toggle-details-button\"\n >\n <div className={style.toggleDetailsLabel}>\n <span className={style.toggleDetailsTitle}>{translate('rewards')}</span>\n {isLocked ? (\n <Tag\n label={translate('locked')}\n size=\"S\"\n icon={{\n position: 'left',\n iconName: 'lock',\n iconColor: COLORS.cm_grey_500,\n preset: 's',\n customStyle: {padding: 0}\n }}\n />\n ) : null}\n </div>\n <Icon\n iconColor={COLORS.cm_grey_700}\n iconName={showDetails ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 20, wrapperSize: 24}}\n />\n </div>\n\n <div\n className={classNames(\n style.details,\n showDetails ? style.visibleDetails : style.hiddenDetails\n )}\n data-testid=\"progress-wrapper-details\"\n >\n {uncappedMap(\n (section, index) => (\n <DetailSection\n {...section}\n isLocked={isLocked}\n key={`${section.type}-${index}`}\n index={index}\n />\n ),\n sections\n )}\n </div>\n </>\n ) : null}\n </div>\n );\n};\n\nconst commonDetailSectionPropTypes = {\n type: PropTypes.oneOf(['diploma', 'badge', 'stars']),\n downloadUrl: PropTypes.string,\n stars: PropTypes.number\n};\n\nDetailSection.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nDetailSection.propTypes = {\n index: PropTypes.number,\n isLocked: PropTypes.bool,\n ...commonDetailSectionPropTypes\n};\n\nProgressWrapper.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nProgressWrapper.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n completedModules: PropTypes.number,\n mandatoryModules: PropTypes.number,\n progression: PropTypes.number,\n sections: PropTypes.arrayOf(PropTypes.shape(commonDetailSectionPropTypes))\n};\n\nexport default ProgressWrapper;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,QAAQ,QAAO,OAAO;AAClD,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAAQC,OAAO,QAAO,oBAAoB;AAE1C,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,W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value cm_grey_700 from colors;
|
|
10
11
|
|
|
11
12
|
.container {
|
|
12
13
|
border-radius: 16px;
|
|
@@ -52,14 +53,24 @@
|
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.details {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
transition: max-height 0.3s ease, padding-top 0.3s ease;
|
|
55
58
|
display: flex;
|
|
56
59
|
justify-content: space-between;
|
|
57
|
-
align-items:
|
|
60
|
+
align-items: center;
|
|
58
61
|
flex-direction: row;
|
|
59
|
-
padding-top: 24px;
|
|
60
62
|
gap: 16px;
|
|
61
63
|
}
|
|
62
64
|
|
|
65
|
+
.hiddenDetails {
|
|
66
|
+
height: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.visibleDetails {
|
|
70
|
+
height: auto;
|
|
71
|
+
padding-top: 24px;
|
|
72
|
+
}
|
|
73
|
+
|
|
63
74
|
.detailsSectionCommon {
|
|
64
75
|
display: flex;
|
|
65
76
|
align-items: center;
|
|
@@ -127,6 +138,30 @@
|
|
|
127
138
|
padding-top: 16px;
|
|
128
139
|
}
|
|
129
140
|
|
|
141
|
+
.toggleDetailsButton {
|
|
142
|
+
display: flex;
|
|
143
|
+
justify-content: space-between;
|
|
144
|
+
align-items: center;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
padding-top: 16px;
|
|
147
|
+
width: 100%;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.toggleDetailsTitle {
|
|
151
|
+
color: cm_grey_700;
|
|
152
|
+
font-family: Gilroy;
|
|
153
|
+
font-size: 16px;
|
|
154
|
+
font-style: normal;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
line-height: 22px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.toggleDetailsLabel {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
gap: 8px;
|
|
163
|
+
}
|
|
164
|
+
|
|
130
165
|
@media mobile, tablet {
|
|
131
166
|
.details {
|
|
132
167
|
flex-wrap: wrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/scope-content/index.js"],"names":[],"mappings":";AASA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/scope-content/index.js"],"names":[],"mappings":";AASA,qEAgGC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _isEmpty from "lodash/fp/isEmpty";
|
|
1
2
|
import _getOr from "lodash/fp/getOr";
|
|
2
3
|
import _get from "lodash/fp/get";
|
|
3
4
|
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); }
|
|
@@ -55,7 +56,8 @@ const ScopeContent = (props, context) => {
|
|
|
55
56
|
}
|
|
56
57
|
}) : null;
|
|
57
58
|
return content && title ? /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
"data-name": "scopeContent"
|
|
59
|
+
"data-name": "scopeContent",
|
|
60
|
+
className: style.scopeContent
|
|
59
61
|
}, /*#__PURE__*/React.createElement("div", {
|
|
60
62
|
"data-name": "description",
|
|
61
63
|
className: style.desc
|
|
@@ -74,18 +76,20 @@ const ScopeContent = (props, context) => {
|
|
|
74
76
|
"data-name": "duration",
|
|
75
77
|
className: style.time
|
|
76
78
|
}, time))), ctaView), /*#__PURE__*/React.createElement("div", {
|
|
79
|
+
className: style.columnLayout
|
|
80
|
+
}, _isEmpty(skills) ? null : /*#__PURE__*/React.createElement("div", {
|
|
77
81
|
className: style.skills
|
|
78
82
|
}, /*#__PURE__*/React.createElement("div", {
|
|
79
83
|
className: style.coltitle
|
|
80
84
|
}, skillsTitle), /*#__PURE__*/React.createElement("ul", {
|
|
81
85
|
className: style.dottedlist
|
|
82
|
-
}, skills)), /*#__PURE__*/React.createElement("div", {
|
|
86
|
+
}, skills)), _isEmpty(chapters) ? null : /*#__PURE__*/React.createElement("div", {
|
|
83
87
|
className: style.column
|
|
84
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
85
89
|
className: style.coltitle
|
|
86
90
|
}, chaptersTitle), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("ul", {
|
|
87
91
|
className: style.roundedlist
|
|
88
|
-
}, chapters)))), _resources ? /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
}, chapters))))), !_isEmpty(_resources) ? /*#__PURE__*/React.createElement("div", {
|
|
89
93
|
"data-name": "description",
|
|
90
94
|
className: style.bordered
|
|
91
95
|
}, /*#__PURE__*/React.createElement(ResourceBrowser, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Button","Provider","Discussion","ResourceBrowser","style","ScopeContent","props","context","translate","skin","content","lstitle","_chaptersTitle","time","_getOr","title","_skills","_chapters","_resources","skillsTitle","chaptersTitle","onClick","_get","buttonLabel","discussion","skills","map","skill","index","createElement","key","dangerouslySetInnerHTML","__html","chapters","chapter","name","ctaView","type","className","cta","submitValue","backgroundColor","desc","infos","innerHTML","coltitle","dottedlist","column","roundedlist","bordered","resources","_extends","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","shape","string","func","arrayOf","object","course_scope"],"sources":["../../../src/molecule/scope-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get, getOr} from 'lodash/fp';\nimport Button from '../../atom/button';\nimport Provider from '../../atom/provider';\nimport Discussion from '../../organism/discussion';\nimport ResourceBrowser from '../../organism/resource-browser';\nimport style from './style.css';\n\nconst ScopeContent = (props, context) => {\n const {translate, skin} = context;\n const {content} = props;\n\n const lstitle = translate('At the end of this level, you will be able to_');\n const _chaptersTitle = translate('chapters');\n\n const time = getOr('', 'time', content);\n const title = getOr('', 'title', content);\n const _skills = getOr([], 'skills', content);\n const _chapters = getOr([], 'chapters', content);\n const _resources = getOr([], 'resources', content);\n\n const skillsTitle = getOr(lstitle, 'skillsTitle', content);\n const chaptersTitle = getOr(_chaptersTitle, 'chaptersTitle', content);\n\n const onClick = get('onClick', content);\n const buttonLabel = get('buttonLabel', content);\n const discussion = get('discussion', content);\n const skills = _skills.map((skill, index) => (\n <li\n key={index}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: skill}}\n />\n ));\n\n const chapters = _chapters.map((chapter, index) => (\n <li\n key={index}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: chapter.name}}\n />\n ));\n\n const ctaView = onClick ? (\n <Button\n data-name=\"cta\"\n type=\"link\"\n className={style.cta}\n onClick={onClick}\n submitValue={buttonLabel}\n style={{\n backgroundColor: get('common.primary', skin)\n }}\n />\n ) : null;\n\n return content && title ? (\n <div data-name=\"scopeContent\">\n <div data-name=\"description\" className={style.desc}>\n <div className={style.infos}>\n <div className={style.title}>\n <div\n className={style.innerHTML}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <div>\n <span data-name=\"duration\" className={style.time}>\n {time}\n </span>\n </div>\n </div>\n {ctaView}\n </div>\n <div className={style.
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Button","Provider","Discussion","ResourceBrowser","style","ScopeContent","props","context","translate","skin","content","lstitle","_chaptersTitle","time","_getOr","title","_skills","_chapters","_resources","skillsTitle","chaptersTitle","onClick","_get","buttonLabel","discussion","skills","map","skill","index","createElement","key","dangerouslySetInnerHTML","__html","chapters","chapter","name","ctaView","type","className","cta","submitValue","backgroundColor","scopeContent","desc","infos","innerHTML","columnLayout","_isEmpty","coltitle","dottedlist","column","roundedlist","bordered","resources","_extends","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","shape","string","func","arrayOf","object","course_scope"],"sources":["../../../src/molecule/scope-content/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get, getOr, isEmpty} from 'lodash/fp';\nimport Button from '../../atom/button';\nimport Provider from '../../atom/provider';\nimport Discussion from '../../organism/discussion';\nimport ResourceBrowser from '../../organism/resource-browser';\nimport style from './style.css';\n\nconst ScopeContent = (props, context) => {\n const {translate, skin} = context;\n const {content} = props;\n\n const lstitle = translate('At the end of this level, you will be able to_');\n const _chaptersTitle = translate('chapters');\n\n const time = getOr('', 'time', content);\n const title = getOr('', 'title', content);\n const _skills = getOr([], 'skills', content);\n const _chapters = getOr([], 'chapters', content);\n const _resources = getOr([], 'resources', content);\n\n const skillsTitle = getOr(lstitle, 'skillsTitle', content);\n const chaptersTitle = getOr(_chaptersTitle, 'chaptersTitle', content);\n\n const onClick = get('onClick', content);\n const buttonLabel = get('buttonLabel', content);\n const discussion = get('discussion', content);\n const skills = _skills.map((skill, index) => (\n <li\n key={index}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: skill}}\n />\n ));\n\n const chapters = _chapters.map((chapter, index) => (\n <li\n key={index}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: chapter.name}}\n />\n ));\n\n const ctaView = onClick ? (\n <Button\n data-name=\"cta\"\n type=\"link\"\n className={style.cta}\n onClick={onClick}\n submitValue={buttonLabel}\n style={{\n backgroundColor: get('common.primary', skin)\n }}\n />\n ) : null;\n\n return content && title ? (\n <div data-name=\"scopeContent\" className={style.scopeContent}>\n <div data-name=\"description\" className={style.desc}>\n <div className={style.infos}>\n <div className={style.title}>\n <div\n className={style.innerHTML}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <div>\n <span data-name=\"duration\" className={style.time}>\n {time}\n </span>\n </div>\n </div>\n {ctaView}\n </div>\n <div className={style.columnLayout}>\n {isEmpty(skills) ? null : (\n <div className={style.skills}>\n <div className={style.coltitle}>{skillsTitle}</div>\n <ul className={style.dottedlist}>{skills}</ul>\n </div>\n )}\n {isEmpty(chapters) ? null : (\n <div className={style.column}>\n <div className={style.coltitle}>{chaptersTitle}</div>\n <div>\n <ul className={style.roundedlist}>{chapters}</ul>\n </div>\n </div>\n )}\n </div>\n </div>\n\n {!isEmpty(_resources) ? (\n <div data-name=\"description\" className={style.bordered}>\n <ResourceBrowser resources={_resources} />\n </div>\n ) : null}\n {discussion ? <Discussion {...discussion} className={style.discussion} /> : null}\n </div>\n ) : (\n <div data-name=\"discussion\">\n {discussion ? <Discussion {...discussion} className={style.discussion} /> : null}\n </div>\n );\n};\n\nScopeContent.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nScopeContent.propTypes = {\n content: PropTypes.shape({\n title: PropTypes.string,\n skillsTitle: PropTypes.string,\n chaptersTitle: PropTypes.string,\n time: PropTypes.string,\n onClick: PropTypes.func,\n buttonLabel: PropTypes.string,\n skills: PropTypes.arrayOf(PropTypes.string),\n chapters: PropTypes.arrayOf(PropTypes.object),\n course_scope: PropTypes.arrayOf(PropTypes.string),\n resources: ResourceBrowser.propTypes.resources,\n discussion: PropTypes.shape(Discussion.propTypes)\n })\n};\n\nexport default ScopeContent;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,UAAU,MAAM,2BAA2B;AAClD,OAAOC,eAAe,MAAM,iCAAiC;AAC7D,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EACvC,MAAM;IAACC,SAAS;IAAEC;EAAI,CAAC,GAAGF,OAAO;EACjC,MAAM;IAACG;EAAO,CAAC,GAAGJ,KAAK;EAEvB,MAAMK,OAAO,GAAGH,SAAS,CAAC,gDAAgD,CAAC;EAC3E,MAAMI,cAAc,GAAGJ,SAAS,CAAC,UAAU,CAAC;EAE5C,MAAMK,IAAI,GAAGC,MAAA,CAAM,EAAE,EAAE,MAAM,EAAE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EhB,SAAS,CAAC+D,MAAM;IACvB3C,WAAW,EAAEpB,SAAS,CAAC+D,MAAM;IAC7B1C,aAAa,EAAErB,SAAS,CAAC+D,MAAM;IAC/BjD,IAAI,EAAEd,SAAS,CAAC+D,MAAM;IACtBzC,OAAO,EAAEtB,SAAS,CAACgE,IAAI;IACvBxC,WAAW,EAAExB,SAAS,CAAC+D,MAAM;IAC7BrC,MAAM,EAAE1B,SAAS,CAACiE,OAAO,CAACjE,SAAS,CAAC+D,MAAM,CAAC;IAC3C7B,QAAQ,EAAElC,SAAS,CAACiE,OAAO,CAACjE,SAAS,CAACkE,MAAM,CAAC;IAC7CC,YAAY,EAAEnE,SAAS,CAACiE,OAAO,CAACjE,SAAS,CAAC+D,MAAM,CAAC;IACjDT,SAAS,EAAElD,eAAe,CAACsD,SAAS,CAACJ,SAAS;IAC9C7B,UAAU,EAAEzB,SAAS,CAAC8D,KAAK,CAAC3D,UAAU,CAACuD,SAAS;EAClD,CAAC;AACH,CAAC;AAED,eAAepD,YAAY","ignoreList":[]}
|
|
@@ -17,7 +17,16 @@
|
|
|
17
17
|
border-right: solid 1px light;
|
|
18
18
|
border-bottom: 1px solid light;
|
|
19
19
|
}
|
|
20
|
+
.scopeContent {
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
20
23
|
|
|
24
|
+
.columnLayout {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
flex-wrap: nowrap;
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
}
|
|
21
30
|
.infos {
|
|
22
31
|
width: 100%;
|
|
23
32
|
display: flex;
|
|
@@ -57,7 +66,7 @@
|
|
|
57
66
|
box-sizing: border-box;
|
|
58
67
|
display: inline-block;
|
|
59
68
|
vertical-align: top;
|
|
60
|
-
|
|
69
|
+
flex: 1 0 50%;
|
|
61
70
|
font-family: "Gilroy";
|
|
62
71
|
font-size: 12px;
|
|
63
72
|
padding-right: 40px;
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
height: 50px;
|
|
26
26
|
color: dark;
|
|
27
27
|
background: xtraLightGrey;
|
|
28
|
-
border: 1px solid light;
|
|
28
|
+
border-bottom: 1px solid light;
|
|
29
|
+
border-right: 1px solid light;
|
|
30
|
+
border-left: 1px solid light;
|
|
29
31
|
cursor: pointer;
|
|
30
32
|
flex-direction: row;
|
|
31
33
|
justify-content: center;
|
|
@@ -55,11 +55,14 @@
|
|
|
55
55
|
justify-content: center;
|
|
56
56
|
background-color: cm_grey_50;
|
|
57
57
|
border-radius: 16px;
|
|
58
|
+
padding: 32px;
|
|
59
|
+
box-sizing: border-box;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
.logo {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
max-width: 100%;
|
|
64
|
+
max-height: 100%;
|
|
65
|
+
object-fit: contain;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
.showMoreWrapper {
|
|
@@ -113,6 +113,57 @@ declare namespace Discipline {
|
|
|
113
113
|
const levels: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
114
114
|
const selected: PropTypes.Requireable<number>;
|
|
115
115
|
const changeLevel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
116
|
+
const content: PropTypes.Requireable<PropTypes.InferProps<{
|
|
117
|
+
title: PropTypes.Requireable<string>;
|
|
118
|
+
skillsTitle: PropTypes.Requireable<string>;
|
|
119
|
+
chaptersTitle: PropTypes.Requireable<string>;
|
|
120
|
+
time: PropTypes.Requireable<string>;
|
|
121
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
122
|
+
buttonLabel: PropTypes.Requireable<string>;
|
|
123
|
+
skills: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
124
|
+
chapters: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
125
|
+
course_scope: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
126
|
+
resources: PropTypes.Requireable<(PropTypes.InferProps<Partial<{
|
|
127
|
+
type: PropTypes.Requireable<string>;
|
|
128
|
+
selected: PropTypes.Requireable<boolean>;
|
|
129
|
+
description: PropTypes.Requireable<string>;
|
|
130
|
+
poster: PropTypes.Requireable<string>;
|
|
131
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
132
|
+
}>> | null | undefined)[]>;
|
|
133
|
+
discussion: PropTypes.Requireable<PropTypes.InferProps<{
|
|
134
|
+
avatar: PropTypes.Requireable<any>;
|
|
135
|
+
loading: PropTypes.Requireable<boolean>;
|
|
136
|
+
value: PropTypes.Requireable<string>;
|
|
137
|
+
profileAvatarAlt: PropTypes.Requireable<string>;
|
|
138
|
+
title: PropTypes.Requireable<string>;
|
|
139
|
+
onPost: PropTypes.Requireable<(...args: any[]) => any>;
|
|
140
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
141
|
+
threads: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
142
|
+
author: PropTypes.Requireable<string>;
|
|
143
|
+
date: PropTypes.Requireable<string>;
|
|
144
|
+
message: PropTypes.Requireable<string>;
|
|
145
|
+
avatar: PropTypes.Requireable<any>;
|
|
146
|
+
answerAvatar: PropTypes.Requireable<any>;
|
|
147
|
+
answer: PropTypes.Requireable<string>;
|
|
148
|
+
edition: PropTypes.Requireable<string>;
|
|
149
|
+
showAnswerBox: PropTypes.Requireable<boolean>;
|
|
150
|
+
showEditBox: PropTypes.Requireable<boolean>;
|
|
151
|
+
mainPost: PropTypes.Requireable<boolean>;
|
|
152
|
+
onAnswer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
153
|
+
onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
154
|
+
onPostAnswer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
155
|
+
onPostEdition: PropTypes.Requireable<(...args: any[]) => any>;
|
|
156
|
+
onChangeAnswer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
157
|
+
onChangeEdition: PropTypes.Requireable<(...args: any[]) => any>;
|
|
158
|
+
onModerate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
159
|
+
onDelete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
160
|
+
}> | null | undefined)[]>;
|
|
161
|
+
textareaDisabled: PropTypes.Requireable<boolean>;
|
|
162
|
+
postDisabled: PropTypes.Requireable<boolean>;
|
|
163
|
+
className: PropTypes.Requireable<string>;
|
|
164
|
+
hideComments: PropTypes.Requireable<boolean>;
|
|
165
|
+
}>>;
|
|
166
|
+
}>>;
|
|
116
167
|
const shareWording: PropTypes.Requireable<string>;
|
|
117
168
|
const shareText: PropTypes.Requireable<string>;
|
|
118
169
|
const shareSuccessWording: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/discipline/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/discipline/index.js"],"names":[],"mappings":";AAgBA,mEA6KC"}
|
|
@@ -8,6 +8,7 @@ import DisciplineScope from '../../../molecule/discipline-scope';
|
|
|
8
8
|
import DisciplineAssociatedSkills from '../../../molecule/discipline-associated-skills';
|
|
9
9
|
import Share, { ShareFeedback, ShareStatusProvider } from '../../../molecule/share';
|
|
10
10
|
import AddToMyList, { AddToMyListFeedback, AddToMyListStatusProvider } from '../../../molecule/add-to-my-list';
|
|
11
|
+
import ScopeContent from '../../../molecule/scope-content';
|
|
11
12
|
import style from './style.css';
|
|
12
13
|
const Discipline = (props, context) => {
|
|
13
14
|
const {
|
|
@@ -20,6 +21,7 @@ const Discipline = (props, context) => {
|
|
|
20
21
|
video,
|
|
21
22
|
authors = [],
|
|
22
23
|
description = '',
|
|
24
|
+
content = null,
|
|
23
25
|
start,
|
|
24
26
|
buy,
|
|
25
27
|
startLabel,
|
|
@@ -51,14 +53,16 @@ const Discipline = (props, context) => {
|
|
|
51
53
|
startLabel: startLabel,
|
|
52
54
|
buyLabel: buyLabel
|
|
53
55
|
});
|
|
54
|
-
const disciplineContent = /*#__PURE__*/React.createElement("div", {
|
|
56
|
+
const disciplineContent = content || !isEmpty(levels) ? /*#__PURE__*/React.createElement("div", {
|
|
55
57
|
className: style.content
|
|
56
|
-
}, /*#__PURE__*/React.createElement(
|
|
58
|
+
}, content ? /*#__PURE__*/React.createElement(ScopeContent, {
|
|
59
|
+
content: content
|
|
60
|
+
}) : null, !isEmpty(levels) ? /*#__PURE__*/React.createElement(DisciplineScope, {
|
|
57
61
|
content: level,
|
|
58
62
|
levels: levels,
|
|
59
63
|
selected: selected,
|
|
60
64
|
onClick: changeLevel
|
|
61
|
-
}));
|
|
65
|
+
}) : null) : null;
|
|
62
66
|
const disciplineHeader = /*#__PURE__*/React.createElement("div", {
|
|
63
67
|
className: style.header
|
|
64
68
|
}, /*#__PURE__*/React.createElement(DisciplineHeader, {
|
|
@@ -145,6 +149,7 @@ Discipline.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
145
149
|
levels: DisciplineScope.propTypes.levels,
|
|
146
150
|
selected: DisciplineScope.propTypes.selected,
|
|
147
151
|
changeLevel: DisciplineScope.propTypes.onClick,
|
|
152
|
+
content: ScopeContent.propTypes.content,
|
|
148
153
|
shareWording: Share.propTypes.wording,
|
|
149
154
|
shareText: Share.propTypes.text,
|
|
150
155
|
shareSuccessWording: ShareFeedback.propTypes.successWording,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","isEmpty","PropTypes","DisciplineCTA","DisciplineHeader","DisciplinePartners","DisciplineScope","DisciplineAssociatedSkills","Share","ShareFeedback","ShareStatusProvider","AddToMyList","AddToMyListFeedback","AddToMyListStatusProvider","style","Discipline","props","context","selected","level","levels","changeLevel","image","title","video","authors","description","start","buy","startLabel","skills","onSkillClick","buyLabel","shareWording","shareText","shareSuccessWording","shareErrorWording","addToMyListButton","favorite","onFavoriteClick","addToMyListText","removeFromMyListText","disableShare","disableAddToMyList","lastUpdated","authorSection","createElement","className","partners","disciplineCTA","type","disciplineContent","content","onClick","disciplineHeader","header","discipline","container","key","leftSection","mobileAuthorCtaSection","columnReverse","cta","addToMyListBtn","shareBtn","wording","text","rightSection","stickySection","buttons","shareFeedBack","errorWording","successWording","addToMyListFeedback","addToMyListProviderWrap","Fragment","shareProviderWrap","propTypes","process","env","NODE_ENV","arrayOf","shape","ref","string","locale","focused","bool","func","contextTypes","translate"],"sources":["../../../../src/template/common/discipline/index.js"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport PropTypes from 'prop-types';\nimport DisciplineCTA from '../../../molecule/discipline-cta';\nimport DisciplineHeader from '../../../molecule/discipline-header';\nimport DisciplinePartners from '../../../molecule/discipline-partners';\nimport DisciplineScope from '../../../molecule/discipline-scope';\nimport DisciplineAssociatedSkills from '../../../molecule/discipline-associated-skills';\nimport Share, {ShareFeedback, ShareStatusProvider} from '../../../molecule/share';\nimport AddToMyList, {\n AddToMyListFeedback,\n AddToMyListStatusProvider\n} from '../../../molecule/add-to-my-list';\nimport style from './style.css';\n\nconst Discipline = (props, context) => {\n const {\n selected = 0,\n level,\n levels,\n changeLevel,\n image,\n title = '',\n video,\n authors = [],\n description = '',\n start,\n buy,\n startLabel,\n skills = [],\n onSkillClick,\n buyLabel,\n shareWording,\n shareText,\n shareSuccessWording,\n shareErrorWording,\n addToMyListButton,\n favorite,\n onFavoriteClick,\n addToMyListText,\n removeFromMyListText,\n disableShare = false,\n disableAddToMyList = false,\n lastUpdated\n } = props;\n\n const authorSection = isEmpty(authors) ? null : (\n <div className={style.partners}>\n <DisciplinePartners authors={authors} />\n </div>\n );\n\n const disciplineCTA = (\n <DisciplineCTA\n type={'discipline'}\n start={start}\n buy={buy}\n startLabel={startLabel}\n buyLabel={buyLabel}\n />\n );\n\n const disciplineContent = (\n <div className={style.content}>\n <DisciplineScope content={level} levels={levels} selected={selected} onClick={changeLevel} />\n </div>\n );\n\n const disciplineHeader = (\n <div className={style.header}>\n <DisciplineHeader\n image={image}\n video={video}\n title={title}\n description={description}\n lastUpdated={lastUpdated}\n />\n </div>\n );\n\n const discipline = (\n <div data-name=\"discipline\" className={style.container} key=\"discipline\">\n <div className={style.leftSection}>\n {disciplineHeader}\n <div className={style.mobileAuthorCtaSection}>\n <div className={style.columnReverse}>\n <div className={style.cta}>{disciplineCTA}</div>\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListTablet'}\n />\n )}\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareTablet'}\n />\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n {disciplineContent}\n </div>\n <div className={style.rightSection}>\n <div className={style.stickySection}>\n <div className={style.cta}>\n {disciplineCTA}\n {disableShare && disableAddToMyList ? null : (\n <div className={style.buttons}>\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareDesktop'}\n />\n )}\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListDesktop'}\n />\n )}\n </div>\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n </div>\n </div>\n );\n\n const shareFeedBack = disableShare ? null : (\n <ShareFeedback\n errorWording={shareErrorWording}\n successWording={shareSuccessWording}\n key=\"shareFeedBack\"\n />\n );\n\n const addToMyListFeedback = disableAddToMyList ? null : (\n <AddToMyListFeedback\n addToMyListText={addToMyListText}\n removeFromMyListText={removeFromMyListText}\n favorite={favorite}\n />\n );\n\n const addToMyListProviderWrap = disableAddToMyList ? (\n <>\n {shareFeedBack}\n {discipline}\n </>\n ) : (\n <AddToMyListStatusProvider>\n {shareFeedBack}\n {addToMyListFeedback}\n {discipline}\n </AddToMyListStatusProvider>\n );\n const shareProviderWrap = disableShare ? (\n addToMyListProviderWrap\n ) : (\n <ShareStatusProvider>{addToMyListProviderWrap}</ShareStatusProvider>\n );\n\n return shareProviderWrap;\n};\n\nDiscipline.propTypes = {\n image: DisciplineHeader.propTypes.image,\n video: DisciplineHeader.propTypes.video,\n title: DisciplineHeader.propTypes.title,\n description: DisciplineHeader.propTypes.description,\n start: DisciplineCTA.propTypes.start,\n buy: DisciplineCTA.propTypes.buy,\n startLabel: DisciplineCTA.propTypes.startLabel,\n buyLabel: DisciplineCTA.propTypes.buyLabel,\n authors: DisciplinePartners.propTypes.authors,\n level: DisciplineScope.propTypes.content,\n levels: DisciplineScope.propTypes.levels,\n selected: DisciplineScope.propTypes.selected,\n changeLevel: DisciplineScope.propTypes.onClick,\n shareWording: Share.propTypes.wording,\n shareText: Share.propTypes.text,\n shareSuccessWording: ShareFeedback.propTypes.successWording,\n shareErrorWording: ShareFeedback.propTypes.errorWording,\n skills: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string,\n locale: PropTypes.string,\n focused: PropTypes.bool\n })\n ),\n onSkillClick: PropTypes.func,\n addToMyListText: AddToMyListFeedback.propTypes.addToMyListText,\n removeFromMyListText: AddToMyListFeedback.propTypes.removeFromMyListText,\n addToMyListButton: AddToMyList.propTypes.addToMyListButton,\n onFavoriteClick: AddToMyList.propTypes.onFavoriteClick,\n favorite: AddToMyList.propTypes.favorite,\n disableShare: PropTypes.bool,\n disableAddToMyList: PropTypes.bool\n};\n\nDiscipline.contextTypes = {\n translate: PropTypes.func\n};\n\nexport default Discipline;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,aAAa,MAAM,kCAAkC;AAC5D,OAAOC,gBAAgB,MAAM,qCAAqC;AAClE,OAAOC,kBAAkB,MAAM,uCAAuC;AACtE,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AY,GAAG;EACxBC,SAAS,EAAExF,SAAS,CAACsF;AACvB,CAAC;AAED,eAAezE,UAAU","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","PropTypes","DisciplineCTA","DisciplineHeader","DisciplinePartners","DisciplineScope","DisciplineAssociatedSkills","Share","ShareFeedback","ShareStatusProvider","AddToMyList","AddToMyListFeedback","AddToMyListStatusProvider","ScopeContent","style","Discipline","props","context","selected","level","levels","changeLevel","image","title","video","authors","description","content","start","buy","startLabel","skills","onSkillClick","buyLabel","shareWording","shareText","shareSuccessWording","shareErrorWording","addToMyListButton","favorite","onFavoriteClick","addToMyListText","removeFromMyListText","disableShare","disableAddToMyList","lastUpdated","authorSection","createElement","className","partners","disciplineCTA","type","disciplineContent","onClick","disciplineHeader","header","discipline","container","key","leftSection","mobileAuthorCtaSection","columnReverse","cta","addToMyListBtn","shareBtn","wording","text","rightSection","stickySection","buttons","shareFeedBack","errorWording","successWording","addToMyListFeedback","addToMyListProviderWrap","Fragment","shareProviderWrap","propTypes","process","env","NODE_ENV","arrayOf","shape","ref","string","locale","focused","bool","func","contextTypes","translate"],"sources":["../../../../src/template/common/discipline/index.js"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport PropTypes from 'prop-types';\nimport DisciplineCTA from '../../../molecule/discipline-cta';\nimport DisciplineHeader from '../../../molecule/discipline-header';\nimport DisciplinePartners from '../../../molecule/discipline-partners';\nimport DisciplineScope from '../../../molecule/discipline-scope';\nimport DisciplineAssociatedSkills from '../../../molecule/discipline-associated-skills';\nimport Share, {ShareFeedback, ShareStatusProvider} from '../../../molecule/share';\nimport AddToMyList, {\n AddToMyListFeedback,\n AddToMyListStatusProvider\n} from '../../../molecule/add-to-my-list';\nimport ScopeContent from '../../../molecule/scope-content';\nimport style from './style.css';\n\nconst Discipline = (props, context) => {\n const {\n selected = 0,\n level,\n levels,\n changeLevel,\n image,\n title = '',\n video,\n authors = [],\n description = '',\n content = null,\n start,\n buy,\n startLabel,\n skills = [],\n onSkillClick,\n buyLabel,\n shareWording,\n shareText,\n shareSuccessWording,\n shareErrorWording,\n addToMyListButton,\n favorite,\n onFavoriteClick,\n addToMyListText,\n removeFromMyListText,\n disableShare = false,\n disableAddToMyList = false,\n lastUpdated\n } = props;\n\n const authorSection = isEmpty(authors) ? null : (\n <div className={style.partners}>\n <DisciplinePartners authors={authors} />\n </div>\n );\n\n const disciplineCTA = (\n <DisciplineCTA\n type={'discipline'}\n start={start}\n buy={buy}\n startLabel={startLabel}\n buyLabel={buyLabel}\n />\n );\n\n const disciplineContent =\n content || !isEmpty(levels) ? (\n <div className={style.content}>\n {content ? <ScopeContent content={content} /> : null}\n {!isEmpty(levels) ? (\n <DisciplineScope\n content={level}\n levels={levels}\n selected={selected}\n onClick={changeLevel}\n />\n ) : null}\n </div>\n ) : null;\n\n const disciplineHeader = (\n <div className={style.header}>\n <DisciplineHeader\n image={image}\n video={video}\n title={title}\n description={description}\n lastUpdated={lastUpdated}\n />\n </div>\n );\n\n const discipline = (\n <div data-name=\"discipline\" className={style.container} key=\"discipline\">\n <div className={style.leftSection}>\n {disciplineHeader}\n <div className={style.mobileAuthorCtaSection}>\n <div className={style.columnReverse}>\n <div className={style.cta}>{disciplineCTA}</div>\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListTablet'}\n />\n )}\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareTablet'}\n />\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n {disciplineContent}\n </div>\n <div className={style.rightSection}>\n <div className={style.stickySection}>\n <div className={style.cta}>\n {disciplineCTA}\n {disableShare && disableAddToMyList ? null : (\n <div className={style.buttons}>\n {disableShare ? null : (\n <Share\n style={style.shareBtn}\n wording={shareWording}\n text={shareText}\n key={'shareDesktop'}\n />\n )}\n {disableAddToMyList ? null : (\n <AddToMyList\n style={style.addToMyListBtn}\n addToMyListButton={addToMyListButton}\n favorite={favorite}\n onFavoriteClick={onFavoriteClick}\n key={'addToMyListDesktop'}\n />\n )}\n </div>\n )}\n </div>\n <DisciplineAssociatedSkills skills={skills} onSkillClick={onSkillClick} />\n {authorSection}\n </div>\n </div>\n </div>\n );\n\n const shareFeedBack = disableShare ? null : (\n <ShareFeedback\n errorWording={shareErrorWording}\n successWording={shareSuccessWording}\n key=\"shareFeedBack\"\n />\n );\n\n const addToMyListFeedback = disableAddToMyList ? null : (\n <AddToMyListFeedback\n addToMyListText={addToMyListText}\n removeFromMyListText={removeFromMyListText}\n favorite={favorite}\n />\n );\n\n const addToMyListProviderWrap = disableAddToMyList ? (\n <>\n {shareFeedBack}\n {discipline}\n </>\n ) : (\n <AddToMyListStatusProvider>\n {shareFeedBack}\n {addToMyListFeedback}\n {discipline}\n </AddToMyListStatusProvider>\n );\n const shareProviderWrap = disableShare ? (\n addToMyListProviderWrap\n ) : (\n <ShareStatusProvider>{addToMyListProviderWrap}</ShareStatusProvider>\n );\n\n return shareProviderWrap;\n};\n\nDiscipline.propTypes = {\n image: DisciplineHeader.propTypes.image,\n video: DisciplineHeader.propTypes.video,\n title: DisciplineHeader.propTypes.title,\n description: DisciplineHeader.propTypes.description,\n start: DisciplineCTA.propTypes.start,\n buy: DisciplineCTA.propTypes.buy,\n startLabel: DisciplineCTA.propTypes.startLabel,\n buyLabel: DisciplineCTA.propTypes.buyLabel,\n authors: DisciplinePartners.propTypes.authors,\n level: DisciplineScope.propTypes.content,\n levels: DisciplineScope.propTypes.levels,\n selected: DisciplineScope.propTypes.selected,\n changeLevel: DisciplineScope.propTypes.onClick,\n content: ScopeContent.propTypes.content,\n shareWording: Share.propTypes.wording,\n shareText: Share.propTypes.text,\n shareSuccessWording: ShareFeedback.propTypes.successWording,\n shareErrorWording: ShareFeedback.propTypes.errorWording,\n skills: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string,\n locale: PropTypes.string,\n focused: PropTypes.bool\n })\n ),\n onSkillClick: PropTypes.func,\n addToMyListText: AddToMyListFeedback.propTypes.addToMyListText,\n removeFromMyListText: AddToMyListFeedback.propTypes.removeFromMyListText,\n addToMyListButton: AddToMyList.propTypes.addToMyListButton,\n onFavoriteClick: AddToMyList.propTypes.onFavoriteClick,\n favorite: AddToMyList.propTypes.favorite,\n disableShare: PropTypes.bool,\n disableAddToMyList: PropTypes.bool\n};\n\nDiscipline.contextTypes = {\n translate: PropTypes.func\n};\n\nexport default Discipline;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,aAAa,MAAM,kCAAkC;AAC5D,OAAOC,gBAAgB,MAAM,qCAAqC;AAClE,OAAOC,kBAAkB,MAAM,uCAAuC;AACtE,OAAOC,eAAe,MAAM,oCAAoC;AAChE,OAAOC,0BAA0B,MAAM,gDAAgD;AACvF,OAAOC,KAAK,IAAGC,aAAa,EAAEC,mBAAmB,QAAO,yBAAyB;AACjF,OAAOC,WAAW,IAChBC,mBAAmB,EACnBC,yBAAyB,QACpB,kCAAkC;AACzC,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EACrC,MAAM;IACJC,QAAQ,GAAG,CAAC;IACZC,KAAK;IACLC,MAAM;IACNC,WAAW;IACXC,KAAK;IACLC,KAAK,GAAG,EAAE;IACVC,KAAK;IACLC,OAAO,GAAG,EAAE;IACZC,WAAW,GAAG,EAAE;IAChBC,OAAO,GAAG,IAAI;IACdC,KAAK;IACLC,GAAG;IACHC,UAAU;IACVC,MAAM,GAAG,EAAE;IACXC,YAAY;IACZC,QAAQ;IACRC,YAAY;IACZC,SA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9C1B,OAAO,EAAEd,YAAY,CAACgE,SAAS,CAAClD,OAAO;EACvCO,YAAY,EAAE3B,KAAK,CAACsE,SAAS,CAACZ,OAAO;EACrC9B,SAAS,EAAE5B,KAAK,CAACsE,SAAS,CAACX,IAAI;EAC/B9B,mBAAmB,EAAE5B,aAAa,CAACqE,SAAS,CAACL,cAAc;EAC3DnC,iBAAiB,EAAE7B,aAAa,CAACqE,SAAS,CAACN,YAAY;EACvDxC,MAAM,EAAE9B,SAAS,CAACgF,OAAO,CACvBhF,SAAS,CAACiF,KAAK,CAAC;IACdC,GAAG,EAAElF,SAAS,CAACmF,MAAM;IACrBC,MAAM,EAAEpF,SAAS,CAACmF,MAAM;IACxBE,OAAO,EAAErF,SAAS,CAACsF;EACrB,CAAC,CACH,CAAC;EACDvD,YAAY,EAAE/B,SAAS,CAACuF,IAAI;EAC5B/C,eAAe,EAAE9B,mBAAmB,CAACkE,SAAS,CAACpC,eAAe;EAC9DC,oBAAoB,EAAE/B,mBAAmB,CAACkE,SAAS,CAACnC,oBAAoB;EACxEJ,iBAAiB,EAAE5B,WAAW,CAACmE,SAAS,CAACvC,iBAAiB;EAC1DE,eAAe,EAAE9B,WAAW,CAACmE,SAAS,CAACrC,eAAe;EACtDD,QAAQ,EAAE7B,WAAW,CAACmE,SAAS,CAACtC,QAAQ;EACxCI,YAAY,EAAE1C,SAAS,CAACsF,IAAI;EAC5B3C,kBAAkB,EAAE3C,SAAS,CAACsF;AAChC,CAAC;AAEDxE,UAAU,CAAC0E,YAAY,GAAG;EACxBC,SAAS,EAAEzF,SAAS,CAACuF;AACvB,CAAC;AAED,eAAezE,UAAU","ignoreList":[]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@value breakpoints: "../../../variables/breakpoints.css";
|
|
2
|
+
@value colors: "../../../variables/colors.css";
|
|
2
3
|
@value desktop from breakpoints;
|
|
3
4
|
@value mobile from breakpoints;
|
|
4
5
|
@value wide from breakpoints;
|
|
6
|
+
@value light from colors;
|
|
5
7
|
|
|
6
8
|
.container {
|
|
7
9
|
composes: wrapper from '../layout.css';
|
|
@@ -57,6 +59,10 @@
|
|
|
57
59
|
width: 840px;
|
|
58
60
|
}
|
|
59
61
|
|
|
62
|
+
.content {
|
|
63
|
+
border-top: 1px solid light;
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
.cta,
|
|
61
67
|
.partners {
|
|
62
68
|
composes: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/progress-wrapper/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/progress-wrapper/index.js"],"names":[],"mappings":";AAgGA;;;;;;;8BAsGC"}
|