@coorpacademy/components 11.6.1 → 11.7.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/atom/loader/index.native.d.ts +10 -0
- package/es/atom/loader/index.native.d.ts.map +1 -0
- package/es/atom/loader/index.native.js +192 -0
- package/es/atom/loader/index.native.js.map +1 -0
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +48 -11
- package/es/atom/select/index.js.map +1 -1
- package/es/molecule/answer/index.d.ts.map +1 -1
- package/es/molecule/answer/index.js +1 -9
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/empty-state-dashboard/index.d.ts +23 -0
- package/es/molecule/empty-state-dashboard/index.d.ts.map +1 -0
- package/es/molecule/empty-state-dashboard/index.js +31 -0
- package/es/molecule/empty-state-dashboard/index.js.map +1 -0
- package/es/molecule/empty-state-dashboard/style.css +55 -0
- package/es/molecule/empty-state-dashboard/types.d.ts +19 -0
- package/es/molecule/empty-state-dashboard/types.d.ts.map +1 -0
- package/es/molecule/empty-state-dashboard/types.js +19 -0
- package/es/molecule/empty-state-dashboard/types.js.map +1 -0
- package/es/organism/list-item/index.d.ts +8 -6
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +16 -2
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +18 -0
- package/es/organism/list-items/index.d.ts +2 -0
- package/es/organism/list-items/index.js +5 -1
- package/es/organism/list-items/index.js.map +1 -1
- package/es/template/activity/index.d.ts +36 -40
- package/es/template/activity/index.d.ts.map +1 -1
- package/es/template/activity/index.js +89 -111
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/stars-summary.d.ts +9 -18
- package/es/template/activity/stars-summary.d.ts.map +1 -1
- package/es/template/activity/stars-summary.js +94 -122
- package/es/template/activity/stars-summary.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +20 -0
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +12 -3
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +5 -1
- package/es/util/button-icons.d.ts +1 -0
- package/es/util/button-icons.d.ts.map +1 -1
- package/es/util/button-icons.js +3 -2
- package/es/util/button-icons.js.map +1 -1
- package/lib/atom/loader/index.native.d.ts +10 -0
- package/lib/atom/loader/index.native.d.ts.map +1 -0
- package/lib/atom/loader/index.native.js +205 -0
- package/lib/atom/loader/index.native.js.map +1 -0
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +46 -9
- package/lib/atom/select/index.js.map +1 -1
- package/lib/molecule/answer/index.d.ts.map +1 -1
- package/lib/molecule/answer/index.js +1 -10
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/empty-state-dashboard/index.d.ts +23 -0
- package/lib/molecule/empty-state-dashboard/index.d.ts.map +1 -0
- package/lib/molecule/empty-state-dashboard/index.js +42 -0
- package/lib/molecule/empty-state-dashboard/index.js.map +1 -0
- package/lib/molecule/empty-state-dashboard/style.css +55 -0
- package/lib/molecule/empty-state-dashboard/types.d.ts +19 -0
- package/lib/molecule/empty-state-dashboard/types.d.ts.map +1 -0
- package/lib/molecule/empty-state-dashboard/types.js +29 -0
- package/lib/molecule/empty-state-dashboard/types.js.map +1 -0
- package/lib/organism/list-item/index.d.ts +8 -6
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +16 -2
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +18 -0
- package/lib/organism/list-items/index.d.ts +2 -0
- package/lib/organism/list-items/index.js +5 -1
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/template/activity/index.d.ts +36 -40
- package/lib/template/activity/index.d.ts.map +1 -1
- package/lib/template/activity/index.js +95 -110
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/stars-summary.d.ts +9 -18
- package/lib/template/activity/stars-summary.d.ts.map +1 -1
- package/lib/template/activity/stars-summary.js +90 -119
- package/lib/template/activity/stars-summary.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +20 -0
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +13 -3
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +5 -1
- package/lib/util/button-icons.d.ts +1 -0
- package/lib/util/button-icons.d.ts.map +1 -1
- package/lib/util/button-icons.js +2 -1
- package/lib/util/button-icons.js.map +1 -1
- package/locales/bs/global.json +8 -1
- package/locales/cs/global.json +8 -1
- package/locales/de/global.json +8 -1
- package/locales/en/global.json +0 -1
- package/locales/es/global.json +8 -1
- package/locales/et/global.json +8 -1
- package/locales/fr/global.json +0 -1
- package/locales/hr/global.json +8 -1
- package/locales/hu/global.json +8 -1
- package/locales/hy/global.json +0 -1
- package/locales/it/global.json +8 -1
- package/locales/ja/global.json +8 -1
- package/locales/ko/global.json +8 -1
- package/locales/nl/global.json +8 -1
- package/locales/pl/global.json +8 -1
- package/locales/pt/global.json +8 -1
- package/locales/ro/global.json +8 -1
- package/locales/ru/global.json +0 -1
- package/locales/sk/global.json +8 -1
- package/locales/tl/global.json +8 -1
- package/locales/tr/global.json +8 -1
- package/locales/uk/global.json +8 -1
- package/locales/vi/global.json +8 -1
- package/locales/zh/global.json +8 -1
- package/locales/zh_TW/global.json +8 -1
- package/package.json +3 -3
|
@@ -23,8 +23,6 @@ var _questionRange = _interopRequireDefault(require("../questions/question-range
|
|
|
23
23
|
|
|
24
24
|
var _template = _interopRequireDefault(require("../questions/template"));
|
|
25
25
|
|
|
26
|
-
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
27
|
-
|
|
28
26
|
var _audio = _interopRequireDefault(require("../audio"));
|
|
29
27
|
|
|
30
28
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
@@ -88,8 +86,6 @@ MediaView.propTypes = process.env.NODE_ENV !== "production" ? _propTypes.MediaVi
|
|
|
88
86
|
const Switch = ({
|
|
89
87
|
model,
|
|
90
88
|
help
|
|
91
|
-
}, {
|
|
92
|
-
translate
|
|
93
89
|
}) => {
|
|
94
90
|
const {
|
|
95
91
|
type
|
|
@@ -111,9 +107,7 @@ const Switch = ({
|
|
|
111
107
|
return /*#__PURE__*/_react.default.createElement(_freeText.default, model);
|
|
112
108
|
|
|
113
109
|
case 'dropDown':
|
|
114
|
-
return /*#__PURE__*/_react.default.createElement(_dropDown.default,
|
|
115
|
-
"aria-label": translate('drop_down_icon')
|
|
116
|
-
}));
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement(_dropDown.default, model);
|
|
117
111
|
|
|
118
112
|
case 'slider':
|
|
119
113
|
return /*#__PURE__*/_react.default.createElement(_questionRange.default, model);
|
|
@@ -127,9 +121,6 @@ Switch.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
127
121
|
model: _propTypes.default.model,
|
|
128
122
|
help: _propTypes.default.help
|
|
129
123
|
} : {};
|
|
130
|
-
Switch.contextTypes = {
|
|
131
|
-
translate: _provider.default.childContextTypes.translate
|
|
132
|
-
};
|
|
133
124
|
|
|
134
125
|
const Answer = props => {
|
|
135
126
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["MediaView","media","videoId","type","childProps","TYPE_IMAGE","style","backgroundImage","url","TYPE_VIDEO","video","TYPE_AUDIO","audio","propTypes","MediaViewPropTypes","Switch","model","help","
|
|
1
|
+
{"version":3,"file":"index.js","names":["MediaView","media","videoId","type","childProps","TYPE_IMAGE","style","backgroundImage","url","TYPE_VIDEO","video","TYPE_AUDIO","audio","propTypes","MediaViewPropTypes","Switch","model","help","Answer","props","wrapper"],"sources":["../../../src/molecule/answer/index.js"],"sourcesContent":["import React from 'react';\nimport {omit} from 'lodash/fp';\nimport VideoPlayer from '../video-player';\nimport DropDown from '../questions/drop-down';\nimport FreeText from '../questions/free-text';\nimport QcmDrag from '../questions/qcm-drag';\nimport Qcm from '../questions/qcm';\nimport QcmGraphic from '../questions/qcm-graphic';\nimport QuestionRange from '../questions/question-range';\nimport Template from '../questions/template';\nimport Audio from '../audio';\nimport style from './style.css';\nimport propTypes, {MediaViewPropTypes, TYPE_AUDIO, TYPE_IMAGE, TYPE_VIDEO} from './prop-types';\n\nconst MediaView = ({media}) => {\n const {videoId, type, ...childProps} = media;\n switch (type) {\n case TYPE_IMAGE:\n return (\n <div\n className={style.media}\n style={{\n backgroundImage: `url(${media.url})`\n }}\n />\n );\n case TYPE_VIDEO:\n return (\n <div className={style.video}>\n <VideoPlayer {...omit('id', childProps)} id={videoId} height=\"100%\" width=\"100%\" />\n </div>\n );\n case TYPE_AUDIO:\n return (\n <div className={style.audio}>\n <Audio {...omit('id', childProps)} height=\"100%\" width=\"100%\" />\n </div>\n );\n default:\n return null;\n }\n};\n\nMediaView.propTypes = MediaViewPropTypes;\n\nconst Switch = ({model, help}) => {\n const {type} = model;\n\n switch (type) {\n case 'qcmDrag':\n return <QcmDrag {...model} help={help} />;\n case 'qcm':\n return <Qcm {...model} />;\n case 'qcmGraphic':\n return <QcmGraphic {...model} />;\n case 'freeText':\n return <FreeText {...model} />;\n case 'dropDown':\n return <DropDown {...model} />;\n case 'slider':\n return <QuestionRange {...model} />;\n case 'template':\n return <Template {...model} />;\n }\n};\n\nSwitch.propTypes = {\n model: propTypes.model,\n help: propTypes.help\n};\n\nconst Answer = props => {\n const {model, media, help} = props;\n\n return (\n <div data-name=\"answer\" className={style.wrapper}>\n {media ? <MediaView media={media} /> : null}\n <Switch model={model} help={help} />\n </div>\n );\n};\n\nAnswer.propTypes = propTypes;\n\nexport default Answer;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC;AAAD,CAAD,KAAa;EAC7B,MAAM;IAACC,OAAD;IAAUC;EAAV,IAAiCF,KAAvC;EAAA,MAAyBG,UAAzB,iCAAuCH,KAAvC;;EACA,QAAQE,IAAR;IACE,KAAKE,qBAAL;MACE,oBACE;QACE,SAAS,EAAEC,cAAA,CAAML,KADnB;QAEE,KAAK,EAAE;UACLM,eAAe,EAAG,OAAMN,KAAK,CAACO,GAAI;QAD7B;MAFT,EADF;;IAQF,KAAKC,qBAAL;MACE,oBACE;QAAK,SAAS,EAAEH,cAAA,CAAMI;MAAtB,gBACE,6BAAC,oBAAD,eAAiB,oBAAK,IAAL,EAAWN,UAAX,CAAjB;QAAyC,EAAE,EAAEF,OAA7C;QAAsD,MAAM,EAAC,MAA7D;QAAoE,KAAK,EAAC;MAA1E,GADF,CADF;;IAKF,KAAKS,qBAAL;MACE,oBACE;QAAK,SAAS,EAAEL,cAAA,CAAMM;MAAtB,gBACE,6BAAC,cAAD,eAAW,oBAAK,IAAL,EAAWR,UAAX,CAAX;QAAmC,MAAM,EAAC,MAA1C;QAAiD,KAAK,EAAC;MAAvD,GADF,CADF;;IAKF;MACE,OAAO,IAAP;EAvBJ;AAyBD,CA3BD;;AA6BAJ,SAAS,CAACa,SAAV,2CAAsBC,6BAAtB;;AAEA,MAAMC,MAAM,GAAG,CAAC;EAACC,KAAD;EAAQC;AAAR,CAAD,KAAmB;EAChC,MAAM;IAACd;EAAD,IAASa,KAAf;;EAEA,QAAQb,IAAR;IACE,KAAK,SAAL;MACE,oBAAO,6BAAC,gBAAD,eAAaa,KAAb;QAAoB,IAAI,EAAEC;MAA1B,GAAP;;IACF,KAAK,KAAL;MACE,oBAAO,6BAAC,YAAD,EAASD,KAAT,CAAP;;IACF,KAAK,YAAL;MACE,oBAAO,6BAAC,mBAAD,EAAgBA,KAAhB,CAAP;;IACF,KAAK,UAAL;MACE,oBAAO,6BAAC,iBAAD,EAAcA,KAAd,CAAP;;IACF,KAAK,UAAL;MACE,oBAAO,6BAAC,iBAAD,EAAcA,KAAd,CAAP;;IACF,KAAK,QAAL;MACE,oBAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;IACF,KAAK,UAAL;MACE,oBAAO,6BAAC,iBAAD,EAAcA,KAAd,CAAP;EAdJ;AAgBD,CAnBD;;AAqBAD,MAAM,CAACF,SAAP,2CAAmB;EACjBG,KAAK,EAAEH,kBAAA,CAAUG,KADA;EAEjBC,IAAI,EAAEJ,kBAAA,CAAUI;AAFC,CAAnB;;AAKA,MAAMC,MAAM,GAAGC,KAAK,IAAI;EACtB,MAAM;IAACH,KAAD;IAAQf,KAAR;IAAegB;EAAf,IAAuBE,KAA7B;EAEA,oBACE;IAAK,aAAU,QAAf;IAAwB,SAAS,EAAEb,cAAA,CAAMc;EAAzC,GACGnB,KAAK,gBAAG,6BAAC,SAAD;IAAW,KAAK,EAAEA;EAAlB,EAAH,GAAiC,IADzC,eAEE,6BAAC,MAAD;IAAQ,KAAK,EAAEe,KAAf;IAAsB,IAAI,EAAEC;EAA5B,EAFF,CADF;AAMD,CATD;;AAWAC,MAAM,CAACL,SAAP,2CAAmBA,kBAAnB;eAEeK,M"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
declare const EmptyStateDashboard: {
|
|
4
|
+
({ mainText, subText, imageUrl, buttonLink }: Props): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
mainText: import("prop-types").Requireable<string>;
|
|
7
|
+
subText: import("prop-types").Requireable<string>;
|
|
8
|
+
imageUrl: import("prop-types").Requireable<any>;
|
|
9
|
+
buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
10
|
+
type: import("prop-types").Requireable<string>;
|
|
11
|
+
label: import("prop-types").Requireable<string>;
|
|
12
|
+
ariaLabel: import("prop-types").Requireable<string>;
|
|
13
|
+
dataName: import("prop-types").Requireable<string>;
|
|
14
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
15
|
+
position: import("prop-types").Requireable<string>;
|
|
16
|
+
type: import("prop-types").Requireable<string>;
|
|
17
|
+
}>>;
|
|
18
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
19
|
+
}>>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default EmptyStateDashboard;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/empty-state-dashboard/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,KAAK,EAAY,MAAM,SAAS,CAAC;AAEzC,QAAA,MAAM,mBAAmB;kDAA+C,KAAK;;;;;;;;;;;;;;;;;CAW5E,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
|
+
|
|
10
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
11
|
+
|
|
12
|
+
var _types = require("./types");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
18
|
+
const EmptyStateDashboard = ({
|
|
19
|
+
mainText,
|
|
20
|
+
subText,
|
|
21
|
+
imageUrl,
|
|
22
|
+
buttonLink
|
|
23
|
+
}) => /*#__PURE__*/_react.default.createElement("div", {
|
|
24
|
+
className: _style.default.container
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
|
|
26
|
+
className: _style.default.img,
|
|
27
|
+
src: imageUrl,
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
})), /*#__PURE__*/_react.default.createElement("p", {
|
|
30
|
+
className: _style.default.mainText
|
|
31
|
+
}, mainText), /*#__PURE__*/_react.default.createElement("p", {
|
|
32
|
+
className: _style.default.subText
|
|
33
|
+
}, subText), /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: _style.default.buttonContainer
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, buttonLink, {
|
|
36
|
+
className: _style.default.button
|
|
37
|
+
}))));
|
|
38
|
+
|
|
39
|
+
EmptyStateDashboard.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
40
|
+
var _default = EmptyStateDashboard;
|
|
41
|
+
exports.default = _default;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["EmptyStateDashboard","mainText","subText","imageUrl","buttonLink","style","container","img","buttonContainer","button","propTypes"],"sources":["../../../src/molecule/empty-state-dashboard/index.tsx"],"sourcesContent":["import React from 'react';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\nimport {Props, propTypes} from './types';\n\nconst EmptyStateDashboard = ({mainText, subText, imageUrl, buttonLink}: Props) => (\n <div className={style.container}>\n <div>\n <img className={style.img} src={imageUrl} aria-hidden=\"true\" />\n </div>\n <p className={style.mainText}>{mainText}</p>\n <p className={style.subText}>{subText}</p>\n <div className={style.buttonContainer}>\n <ButtonLink {...buttonLink} className={style.button} />\n </div>\n </div>\n);\n\nEmptyStateDashboard.propTypes = propTypes;\n\nexport default EmptyStateDashboard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,mBAAmB,GAAG,CAAC;EAACC,QAAD;EAAWC,OAAX;EAAoBC,QAApB;EAA8BC;AAA9B,CAAD,kBAC1B;EAAK,SAAS,EAAEC,cAAA,CAAMC;AAAtB,gBACE,uDACE;EAAK,SAAS,EAAED,cAAA,CAAME,GAAtB;EAA2B,GAAG,EAAEJ,QAAhC;EAA0C,eAAY;AAAtD,EADF,CADF,eAIE;EAAG,SAAS,EAAEE,cAAA,CAAMJ;AAApB,GAA+BA,QAA/B,CAJF,eAKE;EAAG,SAAS,EAAEI,cAAA,CAAMH;AAApB,GAA8BA,OAA9B,CALF,eAME;EAAK,SAAS,EAAEG,cAAA,CAAMG;AAAtB,gBACE,6BAAC,mBAAD,eAAgBJ,UAAhB;EAA4B,SAAS,EAAEC,cAAA,CAAMI;AAA7C,GADF,CANF,CADF;;AAaAT,mBAAmB,CAACU,SAApB,2CAAgCA,gBAAhC;eAEeV,mB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_500: from colors;
|
|
3
|
+
@value cm_grey_800: from colors;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.container {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
height: 100%;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
text-align: center;
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.img {
|
|
17
|
+
height: 170px;
|
|
18
|
+
width: 220px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.text {
|
|
22
|
+
font-family: 'Gilroy';
|
|
23
|
+
margin: 0 auto 0 auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mainText {
|
|
27
|
+
composes: text;
|
|
28
|
+
color: cm_grey_800;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
font-size: 24px;
|
|
31
|
+
line-height: 32px;
|
|
32
|
+
padding-top: 36px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.subText {
|
|
36
|
+
composes: text;
|
|
37
|
+
color: cm_grey_500;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
line-height: 24px;
|
|
41
|
+
padding-top: 4px;
|
|
42
|
+
;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.buttonContainer {
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
padding-top: 32px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.button {
|
|
53
|
+
width: 152px;
|
|
54
|
+
height: 44px;
|
|
55
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
mainText: PropTypes.Requireable<string>;
|
|
4
|
+
subText: PropTypes.Requireable<string>;
|
|
5
|
+
imageUrl: PropTypes.Requireable<any>;
|
|
6
|
+
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
+
type: PropTypes.Requireable<string>;
|
|
8
|
+
label: PropTypes.Requireable<string>;
|
|
9
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
10
|
+
dataName: PropTypes.Requireable<string>;
|
|
11
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
|
+
position: PropTypes.Requireable<string>;
|
|
13
|
+
type: PropTypes.Requireable<string>;
|
|
14
|
+
}>>;
|
|
15
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
}>>;
|
|
17
|
+
};
|
|
18
|
+
export declare type Props = PropTypes.InferProps<typeof propTypes>;
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/empty-state-dashboard/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAerB,CAAC;AAEF,oBAAY,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.propTypes = void 0;
|
|
5
|
+
|
|
6
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
8
|
+
var _picture = _interopRequireDefault(require("../../atom/picture"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
const propTypes = {
|
|
13
|
+
mainText: _propTypes.default.string,
|
|
14
|
+
subText: _propTypes.default.string,
|
|
15
|
+
imageUrl: _picture.default.propTypes.src,
|
|
16
|
+
buttonLink: _propTypes.default.shape({
|
|
17
|
+
type: _propTypes.default.string,
|
|
18
|
+
label: _propTypes.default.string,
|
|
19
|
+
ariaLabel: _propTypes.default.string,
|
|
20
|
+
dataName: _propTypes.default.string,
|
|
21
|
+
icon: _propTypes.default.shape({
|
|
22
|
+
position: _propTypes.default.string,
|
|
23
|
+
type: _propTypes.default.string
|
|
24
|
+
}),
|
|
25
|
+
onClick: _propTypes.default.func
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
exports.propTypes = propTypes;
|
|
29
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","mainText","PropTypes","string","subText","imageUrl","Picture","src","buttonLink","shape","type","label","ariaLabel","dataName","icon","position","onClick","func"],"sources":["../../../src/molecule/empty-state-dashboard/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Picture from '../../atom/picture';\n\nexport const propTypes = {\n mainText: PropTypes.string,\n subText: PropTypes.string,\n imageUrl: Picture.propTypes.src,\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n })\n};\n\nexport type Props = PropTypes.InferProps<typeof propTypes>;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,QAAQ,EAAEC,kBAAA,CAAUC,MADG;EAEvBC,OAAO,EAAEF,kBAAA,CAAUC,MAFI;EAGvBE,QAAQ,EAAEC,gBAAA,CAAQN,SAAR,CAAkBO,GAHL;EAIvBC,UAAU,EAAEN,kBAAA,CAAUO,KAAV,CAAgB;IAC1BC,IAAI,EAAER,kBAAA,CAAUC,MADU;IAE1BQ,KAAK,EAAET,kBAAA,CAAUC,MAFS;IAG1BS,SAAS,EAAEV,kBAAA,CAAUC,MAHK;IAI1BU,QAAQ,EAAEX,kBAAA,CAAUC,MAJM;IAK1BW,IAAI,EAAEZ,kBAAA,CAAUO,KAAV,CAAgB;MACpBM,QAAQ,EAAEb,kBAAA,CAAUC,MADA;MAEpBO,IAAI,EAAER,kBAAA,CAAUC;IAFI,CAAhB,CALoB;IAS1Ba,OAAO,EAAEd,kBAAA,CAAUe;EATO,CAAhB;AAJW,CAAlB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default ListItem;
|
|
2
2
|
declare function ListItem(props: any): JSX.Element;
|
|
3
3
|
declare namespace ListItem {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const propTypes: {
|
|
5
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
6
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
7
7
|
menuAriaLabel: PropTypes.Requireable<string>;
|
|
8
8
|
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -13,7 +13,7 @@ declare namespace ListItem {
|
|
|
13
13
|
}> | null | undefined)[]>;
|
|
14
14
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
15
|
}>>;
|
|
16
|
-
|
|
16
|
+
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
17
|
type: PropTypes.Requireable<string>;
|
|
18
18
|
label: PropTypes.Requireable<string>;
|
|
19
19
|
ariaLabel: PropTypes.Requireable<string>;
|
|
@@ -24,12 +24,14 @@ declare namespace ListItem {
|
|
|
24
24
|
}>>;
|
|
25
25
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
26
|
}>>;
|
|
27
|
-
|
|
27
|
+
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
28
28
|
label: PropTypes.Requireable<string>;
|
|
29
29
|
type: PropTypes.Requireable<string>;
|
|
30
30
|
}> | null | undefined)[]>;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
title: PropTypes.Validator<string>;
|
|
32
|
+
order: PropTypes.Requireable<number>;
|
|
33
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
34
|
+
};
|
|
33
35
|
}
|
|
34
36
|
import PropTypes from "prop-types";
|
|
35
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,mDAqCC"}
|
|
@@ -20,16 +20,20 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
22
22
|
const ListItem = props => {
|
|
23
|
+
let isPublished = false;
|
|
23
24
|
const {
|
|
24
25
|
bulletPointMenuButton,
|
|
25
26
|
buttonLink,
|
|
26
27
|
tags,
|
|
27
|
-
title
|
|
28
|
+
title,
|
|
29
|
+
order,
|
|
30
|
+
'aria-label': ariaLabel
|
|
28
31
|
} = props;
|
|
29
32
|
|
|
30
33
|
const tagsView = _map2.default.convert({
|
|
31
34
|
cap: false
|
|
32
35
|
})((tag, index) => {
|
|
36
|
+
isPublished = tag.type === 'published';
|
|
33
37
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
38
|
key: index,
|
|
35
39
|
className: _style.default.tag
|
|
@@ -38,7 +42,15 @@ const ListItem = props => {
|
|
|
38
42
|
|
|
39
43
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
40
44
|
className: _style.default.wrapper
|
|
45
|
+
}, isPublished ? /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
+
className: _style.default.orderWrapper
|
|
41
47
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
+
className: _style.default.order,
|
|
49
|
+
"aria-label": ariaLabel
|
|
50
|
+
}, order + 1), /*#__PURE__*/_react.default.createElement("div", {
|
|
51
|
+
className: _style.default.title,
|
|
52
|
+
title: title
|
|
53
|
+
}, title)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
42
54
|
className: _style.default.title,
|
|
43
55
|
title: title
|
|
44
56
|
}, title), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -75,7 +87,9 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
75
87
|
label: _propTypes.default.string,
|
|
76
88
|
type: _propTypes.default.oneOf(['published', 'draft', 'archived', 'revised', 'default'])
|
|
77
89
|
})),
|
|
78
|
-
title: _propTypes.default.string.isRequired
|
|
90
|
+
title: _propTypes.default.string.isRequired,
|
|
91
|
+
order: _propTypes.default.number,
|
|
92
|
+
'aria-label': _propTypes.default.string
|
|
79
93
|
} : {};
|
|
80
94
|
var _default = ListItem;
|
|
81
95
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ListItem","props","bulletPointMenuButton","buttonLink","tags","title","tagsView","convert","cap","tag","index","style","wrapper","settings","edit","propTypes","PropTypes","shape","buttonAriaLabel","string","menuAriaLabel","buttons","arrayOf","label","
|
|
1
|
+
{"version":3,"file":"index.js","names":["ListItem","props","isPublished","bulletPointMenuButton","buttonLink","tags","title","order","ariaLabel","tagsView","convert","cap","tag","index","type","style","wrapper","orderWrapper","settings","edit","propTypes","PropTypes","shape","buttonAriaLabel","string","menuAriaLabel","buttons","arrayOf","label","onClick","func","dataName","icon","position","oneOf","isRequired","number"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport style from './style.css';\n\nconst ListItem = props => {\n let isPublished = false;\n const {bulletPointMenuButton, buttonLink, tags, title, order, 'aria-label': ariaLabel} = props;\n\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'published';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n return (\n <div className={style.wrapper}>\n {isPublished ? (\n <div className={style.orderWrapper}>\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n <div className={style.title} title={title}>\n {title}\n </div>\n </div>\n ) : (\n <div className={style.title} title={title}>\n {title}\n </div>\n )}\n <div className={style.settings}>\n {tagsView}\n <div className={style.edit}>\n <ButtonLink {...buttonLink} />\n </div>\n <BulletPointMenuButton {...bulletPointMenuButton} />\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['published', 'draft', 'archived', 'revised', 'default'])\n })\n ),\n title: PropTypes.string.isRequired,\n order: PropTypes.number,\n 'aria-label': PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":"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"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@value xtraLightGrey from colors;
|
|
5
5
|
@value cm_grey_900 from colors;
|
|
6
6
|
@value primaryAdd1 from colors;
|
|
7
|
+
@value cm_grey_400 from colors;
|
|
7
8
|
|
|
8
9
|
.wrapper {
|
|
9
10
|
align-items: center;
|
|
@@ -51,3 +52,20 @@
|
|
|
51
52
|
margin: 0 16px 0 0;
|
|
52
53
|
min-width: 93px;
|
|
53
54
|
}
|
|
55
|
+
|
|
56
|
+
.order {
|
|
57
|
+
width: 6px;
|
|
58
|
+
height: 20px;
|
|
59
|
+
font-family: 'Gilroy';
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
line-height: 20px;
|
|
64
|
+
color: cm_grey_400;
|
|
65
|
+
margin: 0 16px 0 0;
|
|
66
|
+
}
|
|
67
|
+
.orderWrapper {
|
|
68
|
+
align-items: center;
|
|
69
|
+
display: flex;
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
@@ -56,6 +56,8 @@ declare namespace ListItems {
|
|
|
56
56
|
type: PropTypes.Requireable<string>;
|
|
57
57
|
}> | null | undefined)[]>;
|
|
58
58
|
title: PropTypes.Validator<string>;
|
|
59
|
+
order: PropTypes.Requireable<number>;
|
|
60
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
59
61
|
}> | null | undefined)[]>;
|
|
60
62
|
title: PropTypes.Requireable<string>;
|
|
61
63
|
};
|
|
@@ -17,6 +17,8 @@ var _style = _interopRequireDefault(require("./style.css"));
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
+
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); }
|
|
21
|
+
|
|
20
22
|
const ListItems = ({
|
|
21
23
|
title,
|
|
22
24
|
buttonLink,
|
|
@@ -27,7 +29,9 @@ const ListItems = ({
|
|
|
27
29
|
key: item.id,
|
|
28
30
|
className: _style.default.item,
|
|
29
31
|
"data-name": `content-${index}`
|
|
30
|
-
}, /*#__PURE__*/_react.default.createElement(_listItem.default, item
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_listItem.default, _extends({}, item, {
|
|
33
|
+
order: index
|
|
34
|
+
}))));
|
|
31
35
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
32
36
|
className: _style.default.header
|
|
33
37
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ListItems","title","buttonLink","items","ariaLabel","itemsView","map","item","index","id","style","header","buttonCreate","list","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel}) => {\n const itemsView = items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} />\n </li>\n ));\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel} data-name={'content-list'}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA
|
|
1
|
+
{"version":3,"file":"index.js","names":["ListItems","title","buttonLink","items","ariaLabel","itemsView","map","item","index","id","style","header","buttonCreate","list","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel}) => {\n const itemsView = items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={index} />\n </li>\n ));\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel} data-name={'content-list'}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,KAAD;EAAQC,UAAR;EAAoBC,KAApB;EAA2B,cAAcC;AAAzC,CAAD,KAAyD;EACzE,MAAMC,SAAS,GAAGF,KAAK,CAACG,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,kBAC1B;IAAI,GAAG,EAAED,IAAI,CAACE,EAAd;IAAkB,SAAS,EAAEC,cAAA,CAAMH,IAAnC;IAAyC,aAAY,WAAUC,KAAM;EAArE,gBACE,6BAAC,iBAAD,eAAcD,IAAd;IAAoB,KAAK,EAAEC;EAA3B,GADF,CADgB,CAAlB;EAMA,oBACE,uDACE;IAAK,SAAS,EAAEE,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAMT;EAAtB,gBACE,6BAAC,cAAD;IAAO,KAAK,EAAEA,KAAd;IAAqB,IAAI,EAAE,YAA3B;IAAyC,aAAW;EAApD,EADF,CADF,eAIE;IAAK,SAAS,EAAES,cAAA,CAAME;EAAtB,gBACE,6BAAC,mBAAD,EAAgBV,UAAhB,CADF,CAJF,CADF,eASE;IAAI,SAAS,EAAEQ,cAAA,CAAMG,IAArB;IAA2B,cAAYT,SAAvC;IAAkD,aAAW;EAA7D,GACGC,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAL,SAAS,CAACc,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBd,UAAU,EAAEa,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpBX,KAAK,EAAEY,kBAAA,CAAUI,OAAV,CAAkBJ,kBAAA,CAAUE,KAAV,CAAgBG,iBAAA,CAASN,SAAzB,CAAlB,CAHa;EAIpBb,KAAK,EAAEc,kBAAA,CAAUC;AAJG,CAAtB;eAOehB,S"}
|
|
@@ -1,14 +1,38 @@
|
|
|
1
1
|
export default Progression;
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
declare function Progression(props: any, legacyContext: any): JSX.Element;
|
|
3
|
+
declare namespace Progression {
|
|
4
|
+
namespace contextTypes {
|
|
5
|
+
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
common: PropTypes.Requireable<{
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
}>;
|
|
9
|
+
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
'logo-mobile': PropTypes.Requireable<any>;
|
|
11
|
+
logo: PropTypes.Requireable<any>;
|
|
12
|
+
'logo-email': PropTypes.Requireable<any>;
|
|
13
|
+
login: PropTypes.Requireable<any>;
|
|
14
|
+
}>>;
|
|
15
|
+
icons: PropTypes.Requireable<{
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
}>;
|
|
18
|
+
mod: PropTypes.Requireable<{
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
courses: PropTypes.Requireable<any[]>;
|
|
22
|
+
texts: PropTypes.Requireable<{
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}>;
|
|
25
|
+
}>>;
|
|
26
|
+
}
|
|
27
|
+
namespace propTypes {
|
|
28
|
+
const mainTitle: PropTypes.Validator<string>;
|
|
29
|
+
const mainSubtitle: PropTypes.Validator<string>;
|
|
30
|
+
const adaptiveAriaLabel: PropTypes.Requireable<string>;
|
|
31
|
+
const total: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
8
32
|
label: PropTypes.Validator<string>;
|
|
9
33
|
stars: PropTypes.Validator<number>;
|
|
10
34
|
}>>>;
|
|
11
|
-
engines: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
35
|
+
const engines: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
12
36
|
type: PropTypes.Validator<string>;
|
|
13
37
|
stars: PropTypes.Validator<number>;
|
|
14
38
|
title: PropTypes.Validator<string>;
|
|
@@ -22,8 +46,8 @@ declare class Progression extends React.Component<any, any, any> {
|
|
|
22
46
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
47
|
}>>;
|
|
24
48
|
}> | null | undefined)[]>;
|
|
25
|
-
loading: PropTypes.Validator<boolean>;
|
|
26
|
-
progressions: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
49
|
+
const loading: PropTypes.Validator<boolean>;
|
|
50
|
+
const progressions: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
27
51
|
ref: PropTypes.Validator<string>;
|
|
28
52
|
completion: PropTypes.Validator<number>;
|
|
29
53
|
stars: PropTypes.Validator<number>;
|
|
@@ -38,7 +62,7 @@ declare class Progression extends React.Component<any, any, any> {
|
|
|
38
62
|
adaptive: PropTypes.Validator<boolean>;
|
|
39
63
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
64
|
}> | null | undefined)[]>;
|
|
41
|
-
themeFilter: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
|
+
const themeFilter: PropTypes.Requireable<PropTypes.InferProps<{
|
|
42
66
|
options: PropTypes.Validator<(PropTypes.InferProps<{
|
|
43
67
|
name: PropTypes.Validator<string>;
|
|
44
68
|
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
@@ -47,42 +71,14 @@ declare class Progression extends React.Component<any, any, any> {
|
|
|
47
71
|
}> | null | undefined)[]>;
|
|
48
72
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
73
|
}>>;
|
|
50
|
-
recommendation: PropTypes.Requireable<PropTypes.InferProps<{
|
|
74
|
+
const recommendation: PropTypes.Requireable<PropTypes.InferProps<{
|
|
51
75
|
cta: PropTypes.Validator<string>;
|
|
52
76
|
title: PropTypes.Validator<string>;
|
|
53
77
|
subtitle: PropTypes.Validator<string>;
|
|
54
78
|
courseTitle: PropTypes.Validator<string>;
|
|
55
79
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
80
|
}>>;
|
|
57
|
-
}
|
|
58
|
-
static contextTypes: {
|
|
59
|
-
skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
60
|
-
common: PropTypes.Requireable<{
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
}>;
|
|
63
|
-
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
64
|
-
'logo-mobile': PropTypes.Requireable<any>;
|
|
65
|
-
logo: PropTypes.Requireable<any>;
|
|
66
|
-
'logo-email': PropTypes.Requireable<any>;
|
|
67
|
-
login: PropTypes.Requireable<any>;
|
|
68
|
-
}>>;
|
|
69
|
-
icons: PropTypes.Requireable<{
|
|
70
|
-
[x: string]: any;
|
|
71
|
-
}>;
|
|
72
|
-
mod: PropTypes.Requireable<{
|
|
73
|
-
[x: string]: any;
|
|
74
|
-
}>;
|
|
75
|
-
courses: PropTypes.Requireable<any[]>;
|
|
76
|
-
texts: PropTypes.Requireable<{
|
|
77
|
-
[x: string]: any;
|
|
78
|
-
}>;
|
|
79
|
-
}>>;
|
|
80
|
-
};
|
|
81
|
-
constructor(props: any, context: any);
|
|
82
|
-
handleClick: (e: any) => void;
|
|
83
|
-
handleSelectTheme: (e: any) => void;
|
|
84
|
-
render(): JSX.Element;
|
|
81
|
+
}
|
|
85
82
|
}
|
|
86
|
-
import React from "react";
|
|
87
83
|
import PropTypes from "prop-types";
|
|
88
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/activity/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/activity/index.js"],"names":[],"mappings":";AAeA,0EAuGC"}
|