@coorpacademy/components 11.32.36-alpha.3 → 11.32.36
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 +1 -0
- package/es/atom/input-search/index.d.ts.map +1 -1
- package/es/atom/input-search/index.js +5 -2
- package/es/atom/input-search/index.js.map +1 -1
- package/es/molecule/certification-card/index.d.ts.map +1 -1
- package/es/molecule/certification-card/index.js +1 -2
- package/es/molecule/certification-card/index.js.map +1 -1
- package/es/molecule/progress-bar/index.d.ts.map +1 -1
- package/es/molecule/progress-bar/index.js +1 -3
- package/es/molecule/progress-bar/index.js.map +1 -1
- package/es/molecule/progress-wrapper/index.d.ts +4 -5
- package/es/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/es/molecule/progress-wrapper/index.js +33 -45
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/molecule/progress-wrapper/style.css +4 -25
- package/es/molecule/search-form/index.d.ts +2 -0
- package/es/molecule/search-form/index.d.ts.map +1 -1
- package/es/molecule/search-form/index.js +6 -3
- package/es/molecule/search-form/index.js.map +1 -1
- package/es/organism/brand-table/index.d.ts +1 -0
- package/es/organism/mooc-header/index.d.ts +1 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +2 -0
- package/es/template/certification-detail/index.d.ts +5 -47
- package/es/template/certification-detail/index.d.ts.map +1 -1
- package/es/template/certification-detail/index.js +23 -43
- package/es/template/certification-detail/index.js.map +1 -1
- package/es/template/certification-detail/style.css +1 -12
- package/es/template/certifications/index.js +1 -2
- package/es/template/certifications/index.js.map +1 -1
- package/es/template/playlist-detail/index.d.ts +7 -1
- package/es/template/playlist-detail/index.d.ts.map +1 -1
- package/es/template/playlist-detail/index.js +9 -4
- package/es/template/playlist-detail/index.js.map +1 -1
- package/es/template/playlist-detail/style.css +4 -0
- package/es/template/skill-detail/all-courses.d.ts +1 -2
- package/es/template/skill-detail/all-courses.d.ts.map +1 -1
- package/es/template/skill-detail/all-courses.js +45 -37
- package/es/template/skill-detail/all-courses.js.map +1 -1
- package/es/template/skill-detail/index.d.ts +20 -15
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +8 -5
- package/es/template/skill-detail/index.js.map +1 -1
- package/lib/atom/input-search/index.d.ts +1 -0
- package/lib/atom/input-search/index.d.ts.map +1 -1
- package/lib/atom/input-search/index.js +5 -2
- package/lib/atom/input-search/index.js.map +1 -1
- package/lib/molecule/certification-card/index.d.ts.map +1 -1
- package/lib/molecule/certification-card/index.js +1 -2
- package/lib/molecule/certification-card/index.js.map +1 -1
- package/lib/molecule/progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/progress-bar/index.js +1 -3
- package/lib/molecule/progress-bar/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/index.d.ts +4 -5
- package/lib/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/progress-wrapper/index.js +33 -46
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/style.css +4 -25
- package/lib/molecule/search-form/index.d.ts +2 -0
- package/lib/molecule/search-form/index.d.ts.map +1 -1
- package/lib/molecule/search-form/index.js +6 -3
- package/lib/molecule/search-form/index.js.map +1 -1
- package/lib/organism/brand-table/index.d.ts +1 -0
- package/lib/organism/mooc-header/index.d.ts +1 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +2 -0
- package/lib/template/certification-detail/index.d.ts +5 -47
- package/lib/template/certification-detail/index.d.ts.map +1 -1
- package/lib/template/certification-detail/index.js +23 -43
- package/lib/template/certification-detail/index.js.map +1 -1
- package/lib/template/certification-detail/style.css +1 -12
- package/lib/template/certifications/index.js +1 -2
- package/lib/template/certifications/index.js.map +1 -1
- package/lib/template/playlist-detail/index.d.ts +7 -1
- package/lib/template/playlist-detail/index.d.ts.map +1 -1
- package/lib/template/playlist-detail/index.js +10 -4
- package/lib/template/playlist-detail/index.js.map +1 -1
- package/lib/template/playlist-detail/style.css +4 -0
- package/lib/template/skill-detail/all-courses.d.ts +1 -2
- package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
- package/lib/template/skill-detail/all-courses.js +47 -36
- package/lib/template/skill-detail/all-courses.js.map +1 -1
- package/lib/template/skill-detail/index.d.ts +20 -15
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +9 -5
- package/lib/template/skill-detail/index.js.map +1 -1
- package/locales/bs/global.json +3 -1
- package/locales/cs/global.json +3 -1
- package/locales/de/global.json +3 -1
- package/locales/en/global.json +3 -1
- package/locales/es/global.json +3 -1
- package/locales/et/global.json +3 -1
- package/locales/fi/global.json +3 -1
- package/locales/fr/global.json +3 -1
- package/locales/hr/global.json +3 -1
- package/locales/hu/global.json +3 -1
- package/locales/hy/global.json +3 -1
- package/locales/it/global.json +3 -1
- package/locales/ja/global.json +3 -1
- package/locales/ko/global.json +3 -1
- package/locales/nl/global.json +3 -1
- package/locales/pl/global.json +3 -1
- package/locales/pt/global.json +3 -1
- package/locales/ro/global.json +3 -1
- package/locales/ru/global.json +3 -1
- package/locales/sk/global.json +3 -1
- package/locales/sl/global.json +3 -1
- package/locales/sv/global.json +3 -1
- package/locales/tl/global.json +3 -1
- package/locales/tr/global.json +3 -1
- package/locales/uk/global.json +3 -1
- package/locales/vi/global.json +3 -1
- package/locales/zh/global.json +3 -1
- package/locales/zh_TW/global.json +3 -1
- package/package.json +2 -2
|
@@ -32,6 +32,7 @@ declare namespace Search {
|
|
|
32
32
|
const onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
33
|
const onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
34
|
const theme: PropTypes.Requireable<string>;
|
|
35
|
+
const dataTestId: PropTypes.Requireable<string>;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-search/index.js"],"names":[],"mappings":";AAYA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-search/index.js"],"names":[],"mappings":";AAYA,iDAkDC"}
|
|
@@ -15,7 +15,8 @@ const Search = props => {
|
|
|
15
15
|
onClear = _noop,
|
|
16
16
|
onFocus,
|
|
17
17
|
onBlur,
|
|
18
|
-
theme = 'default'
|
|
18
|
+
theme = 'default',
|
|
19
|
+
dataTestId
|
|
19
20
|
} = props;
|
|
20
21
|
const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);
|
|
21
22
|
const cmStyle = classnames(style.coorpmanager);
|
|
@@ -33,6 +34,7 @@ const Search = props => {
|
|
|
33
34
|
className: classnames(style.title, _isEmpty(value) && style.noValue)
|
|
34
35
|
}, placeholder) : null), /*#__PURE__*/React.createElement("input", {
|
|
35
36
|
"data-name": "search-input",
|
|
37
|
+
"data-testid": dataTestId,
|
|
36
38
|
className: style.search,
|
|
37
39
|
"aria-label": placeholder,
|
|
38
40
|
type: "text",
|
|
@@ -61,7 +63,8 @@ Search.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
61
63
|
onClear: PropTypes.func,
|
|
62
64
|
onFocus: PropTypes.func,
|
|
63
65
|
onBlur: PropTypes.func,
|
|
64
|
-
theme: PropTypes.oneOf(['default', 'coorpmanager'])
|
|
66
|
+
theme: PropTypes.oneOf(['default', 'coorpmanager']),
|
|
67
|
+
dataTestId: PropTypes.string
|
|
65
68
|
} : {};
|
|
66
69
|
export default Search;
|
|
67
70
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","classnames","NovaCompositionCoorpacademySearchThin","CMSearchIcon","NovaCompositionCoorpacademySearch","SearchIcon","NovaSolidStatusClose","CloseIcon","Provider","style","Search","props","value","placeholder","onChange","onClear","onFocus","onBlur","theme","handleChange","e","target","cmStyle","coorpmanager","isDefaultTheme","wrapperSearch","searchIcon","title","noValue","search","clearIcon","contextTypes","skin","childContextTypes","propTypes","string","isRequired","func","oneOf"],"sources":["../../../src/atom/input-search/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademySearchThin as CMSearchIcon,\n NovaCompositionCoorpacademySearch as SearchIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {noop, isEmpty} from 'lodash/fp';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n theme = 'default'\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const cmStyle = classnames(style.coorpmanager);\n const isDefaultTheme = theme === 'default';\n\n return (\n <div className={isDefaultTheme ? style.wrapperSearch : cmStyle}>\n <label htmlFor=\"search\" title={placeholder}>\n {!isDefaultTheme ? (\n <CMSearchIcon className={style.searchIcon} />\n ) : (\n <SearchIcon className={style.searchIcon} />\n )}\n {!isDefaultTheme ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n data-name=\"search-input\"\n className={style.search}\n aria-label={placeholder}\n type=\"text\"\n name=\"search\"\n id=\"search\"\n placeholder={placeholder}\n title={placeholder}\n value={value}\n onInput={handleChange}\n onFocus={onFocus}\n onChange={noop}\n onBlur={onBlur}\n />\n {value && !isDefaultTheme ? (\n <CloseIcon onClick={onClear} className={style.clearIcon} />\n ) : null}\n </div>\n );\n};\n\nSearch.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearch.propTypes = {\n value: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n onClear: PropTypes.func,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\n\nexport default Search;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SACEC,qCAAqC,IAAIC,YAD3C,EAEEC,iCAAiC,IAAIC,UAFvC,EAGEC,oBAAoB,IAAIC,SAH1B,QAIO,0BAJP;AAMA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,MAAM,GAAGC,KAAK,IAAI;EACtB,MAAM;IACJC,KADI;IAEJC,WAFI;IAGJC,QAAQ,QAHJ;IAIJC,OAAO,QAJH;IAKJC,OALI;IAMJC,MANI;IAOJC,KAAK,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","classnames","NovaCompositionCoorpacademySearchThin","CMSearchIcon","NovaCompositionCoorpacademySearch","SearchIcon","NovaSolidStatusClose","CloseIcon","Provider","style","Search","props","value","placeholder","onChange","onClear","onFocus","onBlur","theme","dataTestId","handleChange","e","target","cmStyle","coorpmanager","isDefaultTheme","wrapperSearch","searchIcon","title","noValue","search","clearIcon","contextTypes","skin","childContextTypes","propTypes","string","isRequired","func","oneOf"],"sources":["../../../src/atom/input-search/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademySearchThin as CMSearchIcon,\n NovaCompositionCoorpacademySearch as SearchIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {noop, isEmpty} from 'lodash/fp';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n theme = 'default',\n dataTestId\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const cmStyle = classnames(style.coorpmanager);\n const isDefaultTheme = theme === 'default';\n\n return (\n <div className={isDefaultTheme ? style.wrapperSearch : cmStyle}>\n <label htmlFor=\"search\" title={placeholder}>\n {!isDefaultTheme ? (\n <CMSearchIcon className={style.searchIcon} />\n ) : (\n <SearchIcon className={style.searchIcon} />\n )}\n {!isDefaultTheme ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n data-name=\"search-input\"\n data-testid={dataTestId}\n className={style.search}\n aria-label={placeholder}\n type=\"text\"\n name=\"search\"\n id=\"search\"\n placeholder={placeholder}\n title={placeholder}\n value={value}\n onInput={handleChange}\n onFocus={onFocus}\n onChange={noop}\n onBlur={onBlur}\n />\n {value && !isDefaultTheme ? (\n <CloseIcon onClick={onClear} className={style.clearIcon} />\n ) : null}\n </div>\n );\n};\n\nSearch.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearch.propTypes = {\n value: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n onClear: PropTypes.func,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager']),\n dataTestId: PropTypes.string\n};\n\nexport default Search;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SACEC,qCAAqC,IAAIC,YAD3C,EAEEC,iCAAiC,IAAIC,UAFvC,EAGEC,oBAAoB,IAAIC,SAH1B,QAIO,0BAJP;AAMA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,MAAM,GAAGC,KAAK,IAAI;EACtB,MAAM;IACJC,KADI;IAEJC,WAFI;IAGJC,QAAQ,QAHJ;IAIJC,OAAO,QAJH;IAKJC,OALI;IAMJC,MANI;IAOJC,KAAK,GAAG,SAPJ;IA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AoDArB,MAAM,CAACsB,YAAP,GAAsB;EACpBC,IAAI,EAAEzB,QAAQ,CAAC0B,iBAAT,CAA2BD;AADb,CAAtB;AAIAvB,MAAM,CAACyB,SAAP,2CAAmB;EACjBvB,KAAK,EAAEZ,SAAS,CAACoC,MADA;EAEjBvB,WAAW,EAAEb,SAAS,CAACoC,MAAV,CAAiBC,UAFb;EAGjBvB,QAAQ,EAAEd,SAAS,CAACsC,IAHH;EAIjBvB,OAAO,EAAEf,SAAS,CAACsC,IAJF;EAKjBtB,OAAO,EAAEhB,SAAS,CAACsC,IALF;EAMjBrB,MAAM,EAAEjB,SAAS,CAACsC,IAND;EAOjBpB,KAAK,EAAElB,SAAS,CAACuC,KAAV,CAAgB,CAAC,SAAD,EAAY,cAAZ,CAAhB,CAPU;EAQjBpB,UAAU,EAAEnB,SAAS,CAACoC;AARL,CAAnB;AAWA,eAAe1B,MAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/certification-card/index.js"],"names":[],"mappings":";AAQA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/certification-card/index.js"],"names":[],"mappings":";AAQA,0EAsDC"}
|
|
@@ -64,8 +64,7 @@ const CertificationCard = (props, context) => {
|
|
|
64
64
|
label: translate('certification'),
|
|
65
65
|
size: "S"
|
|
66
66
|
}), /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: style.title
|
|
68
|
-
"data-name": "certification-title"
|
|
67
|
+
className: style.title
|
|
69
68
|
}, title), /*#__PURE__*/React.createElement("div", {
|
|
70
69
|
className: style.moduleCount
|
|
71
70
|
}, /*#__PURE__*/React.createElement("span", null, nbDone), ` ${translate('certification_module')}`)), /*#__PURE__*/React.createElement(ProgressBar, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","COLORS","Provider","Tag","ProgressBar","style","CertificationCard","props","context","label","goal","progress","imgUrl","onClick","title","condition","nbDone","translate","isInprogress","progressLabel","progressTagType","progressIconProps","position","iconName","iconColor","backgroundColor","size","faSize","wrapperSize","customStyle","padding","container","top","right","imageWrapper","detailWrapper","titleWrapper","moduleCount","customProgressBar","positive","contextTypes","childContextTypes","propTypes","string","shape","number","func"],"sources":["../../../src/molecule/certification-card/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {COLORS} from '../../variables/colors';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport ProgressBar from '../progress-bar';\nimport style from './style.css';\n\nconst CertificationCard = (props, context) => {\n const {label, goal, progress, imgUrl, onClick} = props;\n const {\n title,\n condition: {nbDone}\n } = goal;\n const {translate} = context;\n\n const isInprogress = progress < 100;\n const progressLabel = isInprogress ? translate('in_progress') : translate('completed');\n const progressTagType = isInprogress ? 'progress' : 'success';\n const progressIconProps = {\n position: 'left',\n iconName: isInprogress ? 'clock' : 'circle-check',\n iconColor: isInprogress ? '#B87A00' : '#05944F',\n backgroundColor: isInprogress ? '#FFEECC' : '#D6F5E5',\n size: {\n faSize: 10,\n wrapperSize: 10\n },\n customStyle: {padding: 0}\n };\n return (\n <div className={style.container} data-name={`certification-card-${label}`} onClick={onClick}>\n {progress > 0 ? (\n <Tag\n label={progressLabel}\n type={progressTagType}\n customStyle={{position: 'absolute', top: '12px', right: '12px'}}\n icon={progressIconProps}\n />\n ) : null}\n <div className={style.imageWrapper}>\n <img src={imgUrl} />\n </div>\n <div className={style.detailWrapper}>\n <div className={style.titleWrapper}>\n <Tag label={translate('certification')} size=\"S\" />\n <div className={style.title}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","COLORS","Provider","Tag","ProgressBar","style","CertificationCard","props","context","label","goal","progress","imgUrl","onClick","title","condition","nbDone","translate","isInprogress","progressLabel","progressTagType","progressIconProps","position","iconName","iconColor","backgroundColor","size","faSize","wrapperSize","customStyle","padding","container","top","right","imageWrapper","detailWrapper","titleWrapper","moduleCount","customProgressBar","positive","contextTypes","childContextTypes","propTypes","string","shape","number","func"],"sources":["../../../src/molecule/certification-card/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {COLORS} from '../../variables/colors';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport ProgressBar from '../progress-bar';\nimport style from './style.css';\n\nconst CertificationCard = (props, context) => {\n const {label, goal, progress, imgUrl, onClick} = props;\n const {\n title,\n condition: {nbDone}\n } = goal;\n const {translate} = context;\n\n const isInprogress = progress < 100;\n const progressLabel = isInprogress ? translate('in_progress') : translate('completed');\n const progressTagType = isInprogress ? 'progress' : 'success';\n const progressIconProps = {\n position: 'left',\n iconName: isInprogress ? 'clock' : 'circle-check',\n iconColor: isInprogress ? '#B87A00' : '#05944F',\n backgroundColor: isInprogress ? '#FFEECC' : '#D6F5E5',\n size: {\n faSize: 10,\n wrapperSize: 10\n },\n customStyle: {padding: 0}\n };\n return (\n <div className={style.container} data-name={`certification-card-${label}`} onClick={onClick}>\n {progress > 0 ? (\n <Tag\n label={progressLabel}\n type={progressTagType}\n customStyle={{position: 'absolute', top: '12px', right: '12px'}}\n icon={progressIconProps}\n />\n ) : null}\n <div className={style.imageWrapper}>\n <img src={imgUrl} />\n </div>\n <div className={style.detailWrapper}>\n <div className={style.titleWrapper}>\n <Tag label={translate('certification')} size=\"S\" />\n <div className={style.title}>{title}</div>\n <div className={style.moduleCount}>\n <span>{nbDone}</span>\n {` ${translate('certification_module')}`}\n </div>\n </div>\n <ProgressBar\n className={style.customProgressBar}\n style={{backgroundColor: COLORS.positive}}\n displayInfo={false}\n value={progress}\n max={100}\n />\n </div>\n </div>\n );\n};\n\nCertificationCard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nCertificationCard.propTypes = {\n label: PropTypes.string,\n goal: PropTypes.shape({\n title: PropTypes.string,\n condition: PropTypes.shape({\n nbDone: PropTypes.number\n })\n }),\n progress: PropTypes.number,\n imgUrl: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S,CAAC4C,KAAV,CAAgB;MACzB5B,MAAM,EAAEhB,SAAS,CAAC6C;IADO,CAAhB;EAFS,CAAhB,CAFsB;EAQ5BlC,QAAQ,EAAEX,SAAS,CAAC6C,MARQ;EAS5BjC,MAAM,EAAEZ,SAAS,CAAC2C,MATU;EAU5B9B,OAAO,EAAEb,SAAS,CAAC8C;AAVS,CAA9B;AAaA,eAAexC,iBAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/progress-bar/index.js"],"names":[],"mappings":";AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/progress-bar/index.js"],"names":[],"mappings":";AAMA,sDAiCC"}
|
|
@@ -27,9 +27,7 @@ const ProgressBar = props => {
|
|
|
27
27
|
}), steps);
|
|
28
28
|
|
|
29
29
|
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: classnames(style.background, className)
|
|
31
|
-
"data-name": "progress-bar-wrapper",
|
|
32
|
-
"data-content": `${text}`
|
|
30
|
+
className: classnames(style.background, className)
|
|
33
31
|
}, /*#__PURE__*/React.createElement("div", {
|
|
34
32
|
className: style.progress,
|
|
35
33
|
style: _extends({}, propsStyle, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","classnames","style","ProgressBar","props","className","value","max","desc","steps","propsStyle","displayInfo","ratio","percentage","Math","floor","text","stepList","index","step","background","progress","width","texts","description","propTypes","string","number","isRequired","objectOf","oneOfType","bool"],"sources":["../../../src/molecule/progress-bar/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {times} from 'lodash/fp';\nimport style from './style.css';\n\nconst ProgressBar = props => {\n const {\n className,\n value,\n max,\n desc = '',\n steps = 0,\n style: propsStyle,\n displayInfo = true\n } = props;\n\n const ratio = value / max;\n const percentage = Math.floor(ratio * 100);\n const text = `${percentage}%`;\n const stepList = times(index => <div className={style.step} key={index} />, steps);\n return (\n <div
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","classnames","style","ProgressBar","props","className","value","max","desc","steps","propsStyle","displayInfo","ratio","percentage","Math","floor","text","stepList","index","step","background","progress","width","texts","description","propTypes","string","number","isRequired","objectOf","oneOfType","bool"],"sources":["../../../src/molecule/progress-bar/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {times} from 'lodash/fp';\nimport style from './style.css';\n\nconst ProgressBar = props => {\n const {\n className,\n value,\n max,\n desc = '',\n steps = 0,\n style: propsStyle,\n displayInfo = true\n } = props;\n\n const ratio = value / max;\n const percentage = Math.floor(ratio * 100);\n const text = `${percentage}%`;\n const stepList = times(index => <div className={style.step} key={index} />, steps);\n return (\n <div className={classnames(style.background, className)}>\n <div\n className={style.progress}\n style={{\n ...propsStyle,\n width: `${ratio * 100}%`\n }}\n />\n {displayInfo ? (\n <p className={style.texts}>\n <span className={style.description}>{`${value}/${max} ${desc}`}</span>\n <span className={style.percentage}>{text}</span>\n </p>\n ) : null}\n <div className={style.steps}>{stepList}</div>\n </div>\n );\n};\n\nProgressBar.propTypes = {\n className: PropTypes.string,\n value: PropTypes.number.isRequired,\n max: PropTypes.number.isRequired,\n desc: PropTypes.string,\n steps: PropTypes.number,\n style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n displayInfo: PropTypes.bool\n};\n\nexport default ProgressBar;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IACJC,SADI;IAEJC,KAFI;IAGJC,GAHI;IAIJC,IAAI,GAAG,EAJH;IAKJC,KAAK,GAAG,CALJ;IA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QAAV,CAAmB7B,SAAS,CAAC8B,SAAV,CAAoB,CAAC9B,SAAS,CAAC0B,MAAX,EAAmB1B,SAAS,CAAC2B,MAA7B,CAApB,CAAnB,CANe;EAOtBhB,WAAW,EAAEX,SAAS,CAAC+B;AAPD,CAAxB;AAUA,eAAe5B,WAAf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default ProgressWrapper;
|
|
2
|
-
declare function ProgressWrapper({
|
|
3
|
-
completedCourses: any;
|
|
2
|
+
declare function ProgressWrapper({ completedModules, mandatoryModules, title, subtitle, progression, sections }: {
|
|
4
3
|
completedModules: any;
|
|
4
|
+
mandatoryModules: any;
|
|
5
5
|
title: any;
|
|
6
6
|
subtitle: any;
|
|
7
7
|
progression: any;
|
|
@@ -14,13 +14,12 @@ declare namespace ProgressWrapper {
|
|
|
14
14
|
namespace propTypes {
|
|
15
15
|
const title: PropTypes.Requireable<string>;
|
|
16
16
|
const subtitle: PropTypes.Requireable<string>;
|
|
17
|
-
const completedCourses: PropTypes.Requireable<number>;
|
|
18
17
|
const completedModules: PropTypes.Requireable<number>;
|
|
18
|
+
const mandatoryModules: PropTypes.Requireable<number>;
|
|
19
19
|
const progression: PropTypes.Requireable<number>;
|
|
20
20
|
const sections: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
21
21
|
type: PropTypes.Requireable<string>;
|
|
22
|
-
|
|
23
|
-
onDownload: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
downloadUrl: PropTypes.Requireable<string>;
|
|
24
23
|
stars: PropTypes.Requireable<number>;
|
|
25
24
|
}> | null | undefined)[]>;
|
|
26
25
|
}
|
|
@@ -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":";AAqGA;;;;;;;8BA8DC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _map from "lodash/fp/map";
|
|
2
|
-
import _lowerCase from "lodash/fp/lowerCase";
|
|
3
2
|
import _isEmpty from "lodash/fp/isEmpty";
|
|
4
3
|
|
|
5
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -24,8 +23,7 @@ const DetailSection = ({
|
|
|
24
23
|
index,
|
|
25
24
|
type,
|
|
26
25
|
isLocked,
|
|
27
|
-
|
|
28
|
-
onDownload,
|
|
26
|
+
downloadUrl,
|
|
29
27
|
stars
|
|
30
28
|
}, context) => {
|
|
31
29
|
const {
|
|
@@ -34,12 +32,16 @@ const DetailSection = ({
|
|
|
34
32
|
const isTypeStars = type === 'stars';
|
|
35
33
|
const DownloadButton = /*#__PURE__*/React.createElement(ButtonLink, {
|
|
36
34
|
label: translate('download'),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
link: {
|
|
36
|
+
target: '_blank',
|
|
37
|
+
href: downloadUrl
|
|
38
|
+
},
|
|
39
|
+
"data-name": `download-${type}-button`,
|
|
40
|
+
"aria-label": `download ${type} button`,
|
|
40
41
|
customStyle: {
|
|
41
42
|
backgroundColor: '#F1F6FE',
|
|
42
|
-
color: '#0061FF'
|
|
43
|
+
color: '#0061FF',
|
|
44
|
+
width: 'auto'
|
|
43
45
|
},
|
|
44
46
|
icon: {
|
|
45
47
|
position: 'left',
|
|
@@ -68,7 +70,9 @@ const DetailSection = ({
|
|
|
68
70
|
}
|
|
69
71
|
});
|
|
70
72
|
return isTypeStars ? /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
className: style[`detailsSection${index}`]
|
|
73
|
+
className: style[`detailsSection${index}`],
|
|
74
|
+
"data-name": type,
|
|
75
|
+
"aria-label": `${type} informations`
|
|
72
76
|
}, /*#__PURE__*/React.createElement("div", {
|
|
73
77
|
className: style.detailsInfo
|
|
74
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -83,10 +87,12 @@ const DetailSection = ({
|
|
|
83
87
|
backgroundColor: "#FFF9D1",
|
|
84
88
|
preset: "xl"
|
|
85
89
|
}), /*#__PURE__*/React.createElement("span", null, stars)))) : /*#__PURE__*/React.createElement("div", {
|
|
86
|
-
className: style[`detailsSection${index}`]
|
|
90
|
+
className: style[`detailsSection${index}`],
|
|
91
|
+
"data-name": type,
|
|
92
|
+
"aria-label": `${type} informations`
|
|
87
93
|
}, /*#__PURE__*/React.createElement("img", {
|
|
88
94
|
className: style.img,
|
|
89
|
-
src:
|
|
95
|
+
src: type === 'badge' ? downloadUrl : 'https://s3.eu-west-1.amazonaws.com/static.coorpacademy.com/assets/images/diploma.svg'
|
|
90
96
|
}), /*#__PURE__*/React.createElement("div", {
|
|
91
97
|
className: style.detailsInfo
|
|
92
98
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -99,8 +105,8 @@ const DetailSection = ({
|
|
|
99
105
|
};
|
|
100
106
|
|
|
101
107
|
const ProgressWrapper = ({
|
|
102
|
-
completedCourses,
|
|
103
108
|
completedModules,
|
|
109
|
+
mandatoryModules,
|
|
104
110
|
title,
|
|
105
111
|
subtitle,
|
|
106
112
|
progression,
|
|
@@ -109,10 +115,12 @@ const ProgressWrapper = ({
|
|
|
109
115
|
const {
|
|
110
116
|
translate
|
|
111
117
|
} = context;
|
|
112
|
-
const
|
|
118
|
+
const mandatoryCompletedModulesLocale = translate('modules_completed_mandatory');
|
|
113
119
|
const isLocked = progression !== 100;
|
|
114
120
|
return /*#__PURE__*/React.createElement("div", {
|
|
115
|
-
className: style.container
|
|
121
|
+
className: style.container,
|
|
122
|
+
"data-name": "prgress-wrapper",
|
|
123
|
+
"aria-label": "progress wrapper section"
|
|
116
124
|
}, /*#__PURE__*/React.createElement("div", {
|
|
117
125
|
className: style.titleContainer
|
|
118
126
|
}, /*#__PURE__*/React.createElement(Title, {
|
|
@@ -125,17 +133,13 @@ const ProgressWrapper = ({
|
|
|
125
133
|
}, /*#__PURE__*/React.createElement("div", {
|
|
126
134
|
className: style.stats
|
|
127
135
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
128
|
-
className: style.statsNumber
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
132
|
-
className: style.statsModule
|
|
133
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
134
|
-
className: style.statsNumber
|
|
135
|
-
}, completedModules), modulesCompletedLocal)), /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: style.statsNumber,
|
|
137
|
+
"data-name": "progress-stats"
|
|
138
|
+
}, `${completedModules > mandatoryModules ? mandatoryModules : completedModules} / ${mandatoryModules}`), mandatoryCompletedModulesLocale)), /*#__PURE__*/React.createElement("div", {
|
|
136
139
|
className: style.progression
|
|
137
140
|
}, /*#__PURE__*/React.createElement("span", {
|
|
138
|
-
className: style.statsNumber
|
|
141
|
+
className: style.statsNumber,
|
|
142
|
+
"data-name": "progress-value"
|
|
139
143
|
}, progression, "%"))), /*#__PURE__*/React.createElement(ProgressBar, {
|
|
140
144
|
className: style.customProgressBar,
|
|
141
145
|
style: {
|
|
@@ -145,37 +149,21 @@ const ProgressWrapper = ({
|
|
|
145
149
|
value: progression,
|
|
146
150
|
max: 100
|
|
147
151
|
}), /*#__PURE__*/React.createElement("div", {
|
|
148
|
-
className: style.statsMobile
|
|
149
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
150
|
-
className: style.statsModuleMobile
|
|
151
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
152
|
-
className: style.statsNumber
|
|
153
|
-
}, completedModules), modulesCompletedLocal), /*#__PURE__*/React.createElement("div", {
|
|
154
152
|
className: style.statsProgressionMobile
|
|
155
153
|
}, /*#__PURE__*/React.createElement("span", {
|
|
156
154
|
className: style.statsNumber
|
|
157
|
-
}, progression, "%"))
|
|
155
|
+
}, progression, "%")), _isEmpty(sections) ? null : /*#__PURE__*/React.createElement("div", {
|
|
158
156
|
className: style.details
|
|
159
|
-
}, uncappedMap(({
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
badgeUrl,
|
|
163
|
-
onDownload
|
|
164
|
-
}, index) => /*#__PURE__*/React.createElement(DetailSection, {
|
|
165
|
-
type,
|
|
166
|
-
isLocked,
|
|
167
|
-
badgeUrl,
|
|
168
|
-
onDownload,
|
|
169
|
-
stars,
|
|
170
|
-
key: `${type}-${index}`,
|
|
157
|
+
}, uncappedMap((section, index) => /*#__PURE__*/React.createElement(DetailSection, _extends({}, section, {
|
|
158
|
+
isLocked: isLocked,
|
|
159
|
+
key: `${section.type}-${index}`,
|
|
171
160
|
index: index
|
|
172
|
-
}), sections)));
|
|
161
|
+
})), sections)));
|
|
173
162
|
};
|
|
174
163
|
|
|
175
164
|
const commonDetailSectionPropTypes = process.env.NODE_ENV !== "production" ? {
|
|
176
165
|
type: PropTypes.oneOf(['diploma', 'badge', 'stars']),
|
|
177
|
-
|
|
178
|
-
onDownload: PropTypes.func,
|
|
166
|
+
downloadUrl: PropTypes.string,
|
|
179
167
|
stars: PropTypes.number
|
|
180
168
|
} : {};
|
|
181
169
|
DetailSection.contextTypes = {
|
|
@@ -191,8 +179,8 @@ ProgressWrapper.contextTypes = {
|
|
|
191
179
|
ProgressWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
192
180
|
title: PropTypes.string,
|
|
193
181
|
subtitle: PropTypes.string,
|
|
194
|
-
completedCourses: PropTypes.number,
|
|
195
182
|
completedModules: PropTypes.number,
|
|
183
|
+
mandatoryModules: PropTypes.number,
|
|
196
184
|
progression: PropTypes.number,
|
|
197
185
|
sections: PropTypes.arrayOf(PropTypes.shape(commonDetailSectionPropTypes))
|
|
198
186
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Title","ProgressBar","COLORS","Tag","ButtonLink","Icon","Provider","style","uncappedMap","convert","cap","DetailSection","index","type","isLocked","badgeUrl","onDownload","stars","context","translate","isTypeStars","DownloadButton","backgroundColor","color","position","faIcon","name","size","customStyle","padding","LockedTag","iconName","iconColor","preset","detailsInfo","detailsInfoText","detailsTitle","img","buttonContainer","ProgressWrapper","completedCourses","completedModules","title","subtitle","progression","sections","modulesCompletedLocal","container","titleContainer","statscontainer","stats","statsNumber","divider","statsModule","customProgressBar","positive","statsMobile","statsModuleMobile","statsProgressionMobile","details","commonDetailSectionPropTypes","oneOf","string","func","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 {isEmpty, lowerCase, map} 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 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, badgeUrl, onDownload, stars}, context) => {\n const {translate} = context;\n const isTypeStars = type === 'stars';\n\n const DownloadButton = (\n <ButtonLink\n label={translate('download')}\n onClick={onDownload}\n data-name=\"download-button\"\n aria-label=\"download button\"\n customStyle={{backgroundColor: '#F1F6FE', color: '#0061FF'}}\n icon={{\n position: 'left',\n faIcon: {\n name: 'download',\n color: '#0061FF',\n size: 14,\n customStyle: {padding: 0}\n }\n }}\n disabled={isLocked}\n />\n );\n\n const LockedTag = (\n <Tag\n label=\"Locked\"\n size=\"S\"\n icon={{\n position: 'left',\n iconName: 'lock',\n iconColor: '#515161',\n preset: 's',\n customStyle: {padding: 0}\n }}\n />\n );\n\n return isTypeStars ? (\n <div className={style[`detailsSection${index}`]}>\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 className={style[`detailsSection${index}`]}>\n <img\n className={style.img}\n src={\n badgeUrl ||\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}>{DownloadButton}</div>\n </div>\n </div>\n );\n};\n\nconst ProgressWrapper = (\n {completedCourses, completedModules, title, subtitle, progression, sections},\n context\n) => {\n const {translate} = context;\n const modulesCompletedLocal = translate('modules_completed');\n const isLocked = progression !== 100;\n\n return (\n <div className={style.container}>\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 <span className={style.statsNumber}>{completedCourses}</span>\n {lowerCase(translate('courses_completed'))}\n </div>\n <div className={style.divider} />\n <div className={style.statsModule}>\n <span className={style.statsNumber}>{completedModules}</span>\n {modulesCompletedLocal}\n </div>\n </div>\n <div className={style.progression}>\n <span className={style.statsNumber}>{progression}%</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.statsMobile}>\n <div className={style.statsModuleMobile}>\n <span className={style.statsNumber}>{completedModules}</span>\n {modulesCompletedLocal}\n </div>\n <div className={style.statsProgressionMobile}>\n <span className={style.statsNumber}>{progression}%</span>\n </div>\n </div>\n\n {isEmpty(sections) ? null : (\n <div className={style.details}>\n {uncappedMap(\n ({type, stars, badgeUrl, onDownload}, index) => (\n <DetailSection\n {...{type, isLocked, badgeUrl, onDownload, stars}}\n key={`${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 badgeUrl: PropTypes.string,\n onDownload: PropTypes.func,\n stars: PropTypes.number\n};\n\nDetailSection.contextTypes = {\n translate: Provider.childContextTypes.translate\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 completedCourses: PropTypes.number,\n completedModules: PropTypes.number,\n progression: PropTypes.number,\n sections: PropTypes.arrayOf(PropTypes.shape(commonDetailSectionPropTypes))\n};\n\nexport default ProgressWrapper;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,SAAQC,MAAR,QAAqB,wBAArB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,QAAP,MAAqB,qBAArB,C,CACA;;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,KAAIC,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,CAApB;;AAEA,MAAMC,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,IAAR;EAAcC,QAAd;EAAwBC,QAAxB;EAAkCC,UAAlC;EAA8CC;AAA9C,CAAD,EAAu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style","uncappedMap","convert","cap","DetailSection","index","type","isLocked","downloadUrl","stars","context","translate","isTypeStars","DownloadButton","target","href","backgroundColor","color","width","position","faIcon","name","size","customStyle","padding","LockedTag","iconName","iconColor","preset","detailsInfo","detailsInfoText","detailsTitle","img","buttonContainer","ProgressWrapper","completedModules","mandatoryModules","title","subtitle","progression","sections","mandatoryCompletedModulesLocale","container","titleContainer","statscontainer","stats","statsNumber","customProgressBar","positive","statsProgressionMobile","details","section","commonDetailSectionPropTypes","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 {isEmpty, map} 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 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 isTypeStars = type === 'stars';\n\n const DownloadButton = (\n <ButtonLink\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={{backgroundColor: '#F1F6FE', color: '#0061FF', width: 'auto'}}\n icon={{\n position: 'left',\n faIcon: {\n name: 'download',\n color: '#0061FF',\n size: 14,\n customStyle: {padding: 0}\n }\n }}\n disabled={isLocked}\n />\n );\n\n const LockedTag = (\n <Tag\n label=\"Locked\"\n size=\"S\"\n icon={{\n position: 'left',\n iconName: 'lock',\n iconColor: '#515161',\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}>{DownloadButton}</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 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 <span className={style.statsNumber} data-name=\"progress-stats\">\n {`${\n completedModules > mandatoryModules ? mandatoryModules : completedModules\n } / ${mandatoryModules}`}\n </span>\n {mandatoryCompletedModulesLocale}\n </div>\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};\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,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,SAAQC,MAAR,QAAqB,wBAArB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,QAAP,MAAqB,qBAArB,C,CACA;;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,KAAIC,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,CAApB;;AAEA,MAAMC,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,IAAR;EAAcC,QAAd;EAAwBC,WAAxB;EAAqCC;AAArC,CAAD,EAA8CC,OAA9C,KAA0D;EAC9E,MAAM;IAACC;EAAD,IAAcD,OAApB;EACA,MAAME,WAAW,GAAGN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DD;;AAgEA,MAAMY,4BAAN,2CAAqC;EACnC9C,IAAI,EAAEd,SAAS,CAAC6D,KAAV,CAAgB,CAAC,SAAD,EAAY,OAAZ,EAAqB,OAArB,CAAhB,CAD6B;EAEnC7C,WAAW,EAAEhB,SAAS,CAAC8D,MAFY;EAGnC7C,KAAK,EAAEjB,SAAS,CAAC+D;AAHkB,CAArC;AAMAnD,aAAa,CAACoD,YAAd,GAA6B;EAC3B7C,SAAS,EAAEZ,QAAQ,CAAC0D,iBAAT,CAA2B9C;AADX,CAA7B;AAIAP,aAAa,CAACsD,SAAd;EACErD,KAAK,EAAEb,SAAS,CAAC+D,MADnB;EAEEhD,QAAQ,EAAEf,SAAS,CAACmE;AAFtB,GAGKP,4BAHL;AAMAlB,eAAe,CAACsB,YAAhB,GAA+B;EAC7B7C,SAAS,EAAEZ,QAAQ,CAAC0D,iBAAT,CAA2B9C;AADT,CAA/B;AAIAuB,eAAe,CAACwB,SAAhB,2CAA4B;EAC1BrB,KAAK,EAAE7C,SAAS,CAAC8D,MADS;EAE1BhB,QAAQ,EAAE9C,SAAS,CAAC8D,MAFM;EAG1BnB,gBAAgB,EAAE3C,SAAS,CAAC+D,MAHF;EAI1BnB,gBAAgB,EAAE5C,SAAS,CAAC+D,MAJF;EAK1BhB,WAAW,EAAE/C,SAAS,CAAC+D,MALG;EAM1Bf,QAAQ,EAAEhD,SAAS,CAACoE,OAAV,CAAkBpE,SAAS,CAACqE,KAAV,CAAgBT,4BAAhB,CAAlB;AANgB,CAA5B;AASA,eAAelB,eAAf"}
|
|
@@ -41,14 +41,6 @@
|
|
|
41
41
|
gap: 16px;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.divider {
|
|
45
|
-
width: 4px;
|
|
46
|
-
height: 4px;
|
|
47
|
-
background-color: #d7d7da;
|
|
48
|
-
border: solid #d7d7da 1px;
|
|
49
|
-
border-radius: 4px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
44
|
.progression {
|
|
53
45
|
display: flex;
|
|
54
46
|
justify-content: end;
|
|
@@ -108,6 +100,7 @@
|
|
|
108
100
|
}
|
|
109
101
|
|
|
110
102
|
.detailsTitle {
|
|
103
|
+
width: max-content;
|
|
111
104
|
font-family: Gilroy;
|
|
112
105
|
font-size: 16px;
|
|
113
106
|
font-weight: 600;
|
|
@@ -129,10 +122,6 @@
|
|
|
129
122
|
font-weight: 700;
|
|
130
123
|
}
|
|
131
124
|
|
|
132
|
-
.statsMobile {
|
|
133
|
-
display: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
125
|
.statsModuleMobile {
|
|
137
126
|
display: none;
|
|
138
127
|
}
|
|
@@ -140,6 +129,9 @@
|
|
|
140
129
|
.statsProgressionMobile {
|
|
141
130
|
composes: progression;
|
|
142
131
|
display: none;
|
|
132
|
+
color: cm_grey_400;
|
|
133
|
+
font-weight: 600;
|
|
134
|
+
padding-top: 16px;
|
|
143
135
|
}
|
|
144
136
|
|
|
145
137
|
@media mobile, tablet {
|
|
@@ -160,12 +152,6 @@
|
|
|
160
152
|
justify-content: space-around;
|
|
161
153
|
gap: 0;
|
|
162
154
|
}
|
|
163
|
-
.divider {
|
|
164
|
-
display: none;
|
|
165
|
-
}
|
|
166
|
-
.statsModule {
|
|
167
|
-
display: none;
|
|
168
|
-
}
|
|
169
155
|
.progression {
|
|
170
156
|
display: none;
|
|
171
157
|
}
|
|
@@ -175,11 +161,4 @@
|
|
|
175
161
|
.statsModuleMobile {
|
|
176
162
|
display: block;
|
|
177
163
|
}
|
|
178
|
-
.statsMobile {
|
|
179
|
-
display: flex;
|
|
180
|
-
justify-content: space-between;
|
|
181
|
-
padding-top: 16px;
|
|
182
|
-
color: cm_grey_400;
|
|
183
|
-
font-weight: 600;
|
|
184
|
-
}
|
|
185
164
|
}
|
|
@@ -16,8 +16,10 @@ declare namespace SearchForm {
|
|
|
16
16
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
17
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
18
|
theme: PropTypes.Requireable<string>;
|
|
19
|
+
dataTestId: PropTypes.Requireable<string>;
|
|
19
20
|
}>>;
|
|
20
21
|
'search-reset-aria-label': PropTypes.Requireable<string>;
|
|
22
|
+
dataTestId: PropTypes.Requireable<string>;
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
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"}
|
|
@@ -17,7 +17,8 @@ const SearchForm = (props, context) => {
|
|
|
17
17
|
search,
|
|
18
18
|
onSearchFocus,
|
|
19
19
|
onSearchBlur,
|
|
20
|
-
'search-reset-aria-label': searchResetAriaLabel
|
|
20
|
+
'search-reset-aria-label': searchResetAriaLabel,
|
|
21
|
+
dataTestId
|
|
21
22
|
} = props;
|
|
22
23
|
const handleSubmit = useMemo(() => evt => {
|
|
23
24
|
evt.preventDefault();
|
|
@@ -38,7 +39,8 @@ const SearchForm = (props, context) => {
|
|
|
38
39
|
"aria-label": search.placeholder
|
|
39
40
|
}, /*#__PURE__*/React.createElement(Search, _extends({}, search, {
|
|
40
41
|
onFocus: onSearchFocus,
|
|
41
|
-
onBlur: onSearchBlur
|
|
42
|
+
onBlur: onSearchBlur,
|
|
43
|
+
dataTestId: dataTestId
|
|
42
44
|
})), /*#__PURE__*/React.createElement("div", {
|
|
43
45
|
"data-name": "search-form-reset",
|
|
44
46
|
"aria-label": searchResetAriaLabel,
|
|
@@ -60,7 +62,8 @@ SearchForm.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
60
62
|
onSearchFocus: PropTypes.func,
|
|
61
63
|
onSearchBlur: PropTypes.func,
|
|
62
64
|
search: PropTypes.shape(Search.propTypes),
|
|
63
|
-
'search-reset-aria-label': PropTypes.string
|
|
65
|
+
'search-reset-aria-label': PropTypes.string,
|
|
66
|
+
dataTestId: PropTypes.string
|
|
64
67
|
} : {};
|
|
65
68
|
export default SearchForm;
|
|
66
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","NovaCompositionNavigationMore","ClearIcon","Search","style","SearchForm","props","context","action","method","onSubmit","onReset","search","onSearchFocus","onSearchBlur","searchResetAriaLabel","handleSubmit","evt","preventDefault","skin","dark","form","placeholder","value","wrapperClear","wrapperNoClear","color","clear","propTypes","string","func","shape"],"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 } = 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} />\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};\n\nexport default SearchForm;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,6BAA6B,IAAIC,SAAzC,QAAyD,0BAAzD;AACA,OAAOC,MAAP,MAAmB,yBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,MADI;IAEJC,MAFI;IAGJC,QAHI;IAIJC,OAJI;IAKJC,MALI;IAMJC,aANI;IAOJC,YAPI;IAQJ,2BAA2BC;
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useMemo","PropTypes","NovaCompositionNavigationMore","ClearIcon","Search","style","SearchForm","props","context","action","method","onSubmit","onReset","search","onSearchFocus","onSearchBlur","searchResetAriaLabel","dataTestId","handleSubmit","evt","preventDefault","skin","dark","form","placeholder","value","wrapperClear","wrapperNoClear","color","clear","propTypes","string","func","shape"],"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 dataTestId: PropTypes.string\n};\n\nexport default SearchForm;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,6BAA6B,IAAIC,SAAzC,QAAyD,0BAAzD;AACA,OAAOC,MAAP,MAAmB,yBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,MADI;IAEJC,MAFI;IAGJC,QAHI;IAIJC,OAJI;IAKJC,MALI;IAMJC,aANI;IAOJC,YAPI;IAQJ,2BAA2BC,oBARvB;IASJC;EATI,IAUFV,KAVJ;EAWA,MAAMW,YAAY,GAAGlB,OAAO,CAC1B,MAAMmB,GAAG,IAAI;IACXA,GAAG,CAACC,cAAJ;IACA,OAAOT,QAAQ,IAAIA,QAAQ,CAACQ,GAAD,CAA3B;EACD,CAJyB,EAK1B,CAACR,QAAD,CAL0B,CAA5B;EAOA,MAAM;IAACU;EAAD,IAASb,OAAf;;EACA,MAAMc,IAAI,GAAG,KAAI,aAAJ,EAAmBD,IAAnB,CAAb;;EAEA,oBACE;IACE,SAAS,EAAEhB,KAAK,CAACkB,IADnB;IAEE,MAAM,EAAEd,MAFV;IAGE,MAAM,EAAEC,MAHV;IAIE,QAAQ,EAAEQ,YAJZ;IAKE,aAAU,YALZ;IAME,cAAYL,MAAM,CAACW;EANrB,gBAQE,oBAAC,MAAD,eAAYX,MAAZ;IAAoB,OAAO,EAAEC,aAA7B;IAA4C,MAAM,EAAEC,YAApD;IAAkE,UAAU,EAAEE;EAA9E,GARF,eASE;IACE,aAAU,mBADZ;IAEE,cAAYD,oBAFd;IAGE,OAAO,EAAEJ,OAHX;IAIE,SAAS,EAAEC,MAAM,CAACY,KAAP,GAAepB,KAAK,CAACqB,YAArB,GAAoCrB,KAAK,CAACsB;EAJvD,gBAME,oBAAC,SAAD;IAAW,KAAK,EAAE;MAACC,KAAK,EAAEN;IAAR,CAAlB;IAAiC,SAAS,EAAEjB,KAAK,CAACwB;EAAlD,EANF,CATF,CADF;AAoBD,CA1CD;;AA4CAvB,UAAU,CAACwB,SAAX,2CAAuB;EACrBrB,MAAM,EAAER,SAAS,CAAC8B,MADG;EAErBrB,MAAM,EAAET,SAAS,CAAC8B,MAFG;EAGrBpB,QAAQ,EAAEV,SAAS,CAAC+B,IAHC;EAIrBpB,OAAO,EAAEX,SAAS,CAAC+B,IAJE;EAKrBlB,aAAa,EAAEb,SAAS,CAAC+B,IALJ;EAMrBjB,YAAY,EAAEd,SAAS,CAAC+B,IANH;EAOrBnB,MAAM,EAAEZ,SAAS,CAACgC,KAAV,CAAgB7B,MAAM,CAAC0B,SAAvB,CAPa;EAQrB,2BAA2B7B,SAAS,CAAC8B,MARhB;EASrBd,UAAU,EAAEhB,SAAS,CAAC8B;AATD,CAAvB;AAYA,eAAezB,UAAf"}
|
|
@@ -10,6 +10,7 @@ declare namespace BrandTable {
|
|
|
10
10
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
11
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
12
|
theme: PropTypes.Requireable<string>;
|
|
13
|
+
dataTestId: PropTypes.Requireable<string>;
|
|
13
14
|
}>>;
|
|
14
15
|
const pagination: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
16
|
value: PropTypes.Validator<string>;
|
|
@@ -18,6 +18,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
18
18
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
20
|
theme: PropTypes.Requireable<string>;
|
|
21
|
+
dataTestId: PropTypes.Requireable<string>;
|
|
21
22
|
}>>;
|
|
22
23
|
'search-reset-aria-label': PropTypes.Requireable<string>;
|
|
23
24
|
onSubmitSearch: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+FE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAwBC;IAtBC;;;;;;MAMC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,6BAIE;IAEF,6BAIE;IAEF,6BAkdC;CACF"}
|
|
@@ -185,6 +185,7 @@ declare namespace BrandUpdate {
|
|
|
185
185
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
186
186
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
187
187
|
theme: PropTypes.Requireable<string>;
|
|
188
|
+
dataTestId: PropTypes.Requireable<string>;
|
|
188
189
|
}>>;
|
|
189
190
|
pagination: PropTypes.Requireable<PropTypes.InferProps<{
|
|
190
191
|
value: PropTypes.Validator<string>;
|
|
@@ -1192,6 +1193,7 @@ declare namespace BrandUpdate {
|
|
|
1192
1193
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1193
1194
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1194
1195
|
theme: PropTypes.Requireable<string>;
|
|
1196
|
+
dataTestId: PropTypes.Requireable<string>;
|
|
1195
1197
|
}>>;
|
|
1196
1198
|
pagination: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1197
1199
|
value: PropTypes.Validator<string>;
|