@coorpacademy/components 11.20.2 → 11.20.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/{lib/molecule/uploading-file-progress → es/molecule/bulk-infos}/index.d.ts +7 -7
- package/es/molecule/bulk-infos/index.d.ts.map +1 -0
- package/es/molecule/bulk-infos/index.js +46 -0
- package/es/molecule/bulk-infos/index.js.map +1 -0
- package/es/molecule/{empty-state-dashboard → bulk-infos}/style.css +19 -2
- package/es/molecule/{uploading-file-progress → bulk-infos}/types.d.ts +10 -9
- package/es/molecule/bulk-infos/types.d.ts.map +1 -0
- package/es/molecule/{uploading-file-progress → bulk-infos}/types.js +3 -3
- package/es/molecule/bulk-infos/types.js.map +1 -0
- package/es/organism/wizard-contents/index.d.ts +28 -0
- package/es/organism/wizard-contents/index.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.js +9 -3
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/style.css +1 -0
- package/es/template/back-office/brand-update/index.d.ts +3 -20
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +7 -13
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/{es/molecule/uploading-file-progress → lib/molecule/bulk-infos}/index.d.ts +7 -7
- package/lib/molecule/bulk-infos/index.d.ts.map +1 -0
- package/lib/molecule/{uploading-file-progress → bulk-infos}/index.js +27 -20
- package/lib/molecule/bulk-infos/index.js.map +1 -0
- package/lib/molecule/{empty-state-dashboard → bulk-infos}/style.css +19 -2
- package/lib/molecule/{uploading-file-progress → bulk-infos}/types.d.ts +10 -9
- package/lib/molecule/bulk-infos/types.d.ts.map +1 -0
- package/lib/molecule/{uploading-file-progress → bulk-infos}/types.js +3 -3
- package/lib/molecule/bulk-infos/types.js.map +1 -0
- package/lib/organism/wizard-contents/index.d.ts +28 -0
- package/lib/organism/wizard-contents/index.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.js +10 -3
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/style.css +1 -0
- package/lib/template/back-office/brand-update/index.d.ts +3 -20
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +8 -15
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/package.json +2 -2
- package/es/molecule/empty-state-dashboard/index.d.ts +0 -23
- package/es/molecule/empty-state-dashboard/index.d.ts.map +0 -1
- package/es/molecule/empty-state-dashboard/index.js +0 -31
- package/es/molecule/empty-state-dashboard/index.js.map +0 -1
- package/es/molecule/empty-state-dashboard/types.d.ts +0 -27
- package/es/molecule/empty-state-dashboard/types.d.ts.map +0 -1
- package/es/molecule/empty-state-dashboard/types.js +0 -19
- package/es/molecule/empty-state-dashboard/types.js.map +0 -1
- package/es/molecule/uploading-file-progress/index.d.ts.map +0 -1
- package/es/molecule/uploading-file-progress/index.js +0 -39
- package/es/molecule/uploading-file-progress/index.js.map +0 -1
- package/es/molecule/uploading-file-progress/style.css +0 -74
- package/es/molecule/uploading-file-progress/types.d.ts.map +0 -1
- package/es/molecule/uploading-file-progress/types.js.map +0 -1
- package/lib/molecule/empty-state-dashboard/index.d.ts +0 -23
- package/lib/molecule/empty-state-dashboard/index.d.ts.map +0 -1
- package/lib/molecule/empty-state-dashboard/index.js +0 -42
- package/lib/molecule/empty-state-dashboard/index.js.map +0 -1
- package/lib/molecule/empty-state-dashboard/types.d.ts +0 -27
- package/lib/molecule/empty-state-dashboard/types.d.ts.map +0 -1
- package/lib/molecule/empty-state-dashboard/types.js +0 -29
- package/lib/molecule/empty-state-dashboard/types.js.map +0 -1
- package/lib/molecule/uploading-file-progress/index.d.ts.map +0 -1
- package/lib/molecule/uploading-file-progress/index.js.map +0 -1
- package/lib/molecule/uploading-file-progress/style.css +0 -74
- package/lib/molecule/uploading-file-progress/types.d.ts.map +0 -1
- package/lib/molecule/uploading-file-progress/types.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
({ mainText, subText,
|
|
2
|
+
import { BulkInfosProps as Props } from './types';
|
|
3
|
+
declare const BulkInfos: {
|
|
4
|
+
({ mainText, subText, imageUrl, progression, firstButtonLink, secondButtonLink }: Props): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
mainText: import("prop-types").Requireable<string>;
|
|
7
7
|
subText: import("prop-types").Requireable<string>;
|
|
8
8
|
imageUrl: import("prop-types").Requireable<any>;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
progression: import("prop-types").Requireable<number>;
|
|
10
|
+
firstButtonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
11
11
|
type: import("prop-types").Requireable<string>;
|
|
12
12
|
label: import("prop-types").Requireable<string>;
|
|
13
13
|
ariaLabel: import("prop-types").Requireable<string>;
|
|
@@ -18,7 +18,7 @@ declare const UploadingFileProgress: {
|
|
|
18
18
|
}>>;
|
|
19
19
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
20
20
|
}>>;
|
|
21
|
-
|
|
21
|
+
secondButtonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
22
22
|
type: import("prop-types").Requireable<string>;
|
|
23
23
|
label: import("prop-types").Requireable<string>;
|
|
24
24
|
ariaLabel: import("prop-types").Requireable<string>;
|
|
@@ -31,5 +31,5 @@ declare const UploadingFileProgress: {
|
|
|
31
31
|
}>>;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export default
|
|
34
|
+
export default BulkInfos;
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/bulk-infos/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,IAAI,KAAK,EAAY,MAAM,SAAS,CAAC;AAE3D,QAAA,MAAM,SAAS;sFAOZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BP,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -17,35 +17,42 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
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); }
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const BulkInfos = ({
|
|
21
21
|
mainText,
|
|
22
22
|
subText,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
imageUrl,
|
|
24
|
+
progression,
|
|
25
|
+
firstButtonLink,
|
|
26
|
+
secondButtonLink
|
|
27
|
+
}) => /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
+
className: _style.default.container
|
|
28
29
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
+
className: _style.default.header
|
|
31
|
+
}, imageUrl && typeof imageUrl === 'string' ? /*#__PURE__*/_react.default.createElement("img", {
|
|
32
|
+
className: _style.default.img,
|
|
33
|
+
src: imageUrl,
|
|
34
|
+
"aria-hidden": "true"
|
|
35
|
+
}) : null, progression !== undefined ? /*#__PURE__*/_react.default.createElement("div", {
|
|
29
36
|
className: _style.default.loader
|
|
30
37
|
}, /*#__PURE__*/_react.default.createElement(_loader.default, {
|
|
31
38
|
theme: "coorpmanager"
|
|
32
|
-
}))), /*#__PURE__*/_react.default.createElement("
|
|
33
|
-
className: _style.default.container
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
39
|
+
})) : null), /*#__PURE__*/_react.default.createElement("p", {
|
|
35
40
|
className: _style.default.mainText
|
|
36
|
-
}, mainText, /*#__PURE__*/_react.default.createElement("
|
|
37
|
-
className: _style.default.progressionValue
|
|
38
|
-
}, " ", progressionValue, "%")), /*#__PURE__*/_react.default.createElement("p", {
|
|
41
|
+
}, `${mainText} ${progression !== undefined ? `${progression}%` : ''}`), /*#__PURE__*/_react.default.createElement("p", {
|
|
39
42
|
className: _style.default.subText
|
|
40
43
|
}, subText), /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
className: _style.default.buttonsContainer
|
|
45
|
+
}, firstButtonLink ? /*#__PURE__*/_react.default.createElement("div", {
|
|
41
46
|
className: _style.default.buttonContainer
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({},
|
|
43
|
-
className: _style.default.
|
|
44
|
-
})), /*#__PURE__*/_react.default.createElement(
|
|
45
|
-
className: _style.default.
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, firstButtonLink, {
|
|
48
|
+
className: _style.default.button
|
|
49
|
+
}))) : null, secondButtonLink ? /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
+
className: _style.default.buttonContainer
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, secondButtonLink, {
|
|
52
|
+
className: _style.default.button
|
|
53
|
+
}))) : null));
|
|
54
|
+
|
|
55
|
+
BulkInfos.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
56
|
+
var _default = BulkInfos;
|
|
50
57
|
exports.default = _default;
|
|
51
58
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["BulkInfos","mainText","subText","imageUrl","progression","firstButtonLink","secondButtonLink","style","container","header","img","undefined","loader","buttonsContainer","buttonContainer","button","propTypes"],"sources":["../../../src/molecule/bulk-infos/index.tsx"],"sourcesContent":["import React from 'react';\nimport ButtonLink from '../../atom/button-link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\nimport {BulkInfosProps as Props, propTypes} from './types';\n\nconst BulkInfos = ({\n mainText,\n subText,\n imageUrl,\n progression,\n firstButtonLink,\n secondButtonLink\n}: Props) => (\n <div className={style.container}>\n <div className={style.header}>\n {imageUrl && typeof imageUrl === 'string' ? (\n <img className={style.img} src={imageUrl} aria-hidden=\"true\" />\n ) : null}\n {progression !== undefined ? (\n <div className={style.loader}>\n <Loader theme=\"coorpmanager\" />\n </div>\n ) : null}\n </div>\n <p className={style.mainText}>\n {`${mainText} ${progression !== undefined ? `${progression}%` : ''}`}\n </p>\n <p className={style.subText}>{subText}</p>\n <div className={style.buttonsContainer}>\n {firstButtonLink ? (\n <div className={style.buttonContainer}>\n <ButtonLink {...firstButtonLink} className={style.button} />\n </div>\n ) : null}\n {secondButtonLink ? (\n <div className={style.buttonContainer}>\n <ButtonLink {...secondButtonLink} className={style.button} />\n </div>\n ) : null}\n </div>\n </div>\n);\n\nBulkInfos.propTypes = propTypes;\n\nexport default BulkInfos;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EACjBC,QADiB;EAEjBC,OAFiB;EAGjBC,QAHiB;EAIjBC,WAJiB;EAKjBC,eALiB;EAMjBC;AANiB,CAAD,kBAQhB;EAAK,SAAS,EAAEC,cAAA,CAAMC;AAAtB,gBACE;EAAK,SAAS,EAAED,cAAA,CAAME;AAAtB,GACGN,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAhC,gBACC;EAAK,SAAS,EAAEI,cAAA,CAAMG,GAAtB;EAA2B,GAAG,EAAEP,QAAhC;EAA0C,eAAY;AAAtD,EADD,GAEG,IAHN,EAIGC,WAAW,KAAKO,SAAhB,gBACC;EAAK,SAAS,EAAEJ,cAAA,CAAMK;AAAtB,gBACE,6BAAC,eAAD;EAAQ,KAAK,EAAC;AAAd,EADF,CADD,GAIG,IARN,CADF,eAWE;EAAG,SAAS,EAAEL,cAAA,CAAMN;AAApB,GACI,GAAEA,QAAS,IAAGG,WAAW,KAAKO,SAAhB,GAA6B,GAAEP,WAAY,GAA3C,GAAgD,EAAG,EADrE,CAXF,eAcE;EAAG,SAAS,EAAEG,cAAA,CAAML;AAApB,GAA8BA,OAA9B,CAdF,eAeE;EAAK,SAAS,EAAEK,cAAA,CAAMM;AAAtB,GACGR,eAAe,gBACd;EAAK,SAAS,EAAEE,cAAA,CAAMO;AAAtB,gBACE,6BAAC,mBAAD,eAAgBT,eAAhB;EAAiC,SAAS,EAAEE,cAAA,CAAMQ;AAAlD,GADF,CADc,GAIZ,IALN,EAMGT,gBAAgB,gBACf;EAAK,SAAS,EAAEC,cAAA,CAAMO;AAAtB,gBACE,6BAAC,mBAAD,eAAgBR,gBAAhB;EAAkC,SAAS,EAAEC,cAAA,CAAMQ;AAAnD,GADF,CADe,GAIb,IAVN,CAfF,CARF;;AAsCAf,SAAS,CAACgB,SAAV,2CAAsBA,gBAAtB;eAEehB,S"}
|
|
@@ -18,6 +18,18 @@
|
|
|
18
18
|
width: 220px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.header {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.loader {
|
|
27
|
+
height: 40px;
|
|
28
|
+
width: 40px;
|
|
29
|
+
position: relative;
|
|
30
|
+
left: -20px;
|
|
31
|
+
}
|
|
32
|
+
|
|
21
33
|
.text {
|
|
22
34
|
font-family: 'Gilroy';
|
|
23
35
|
margin: 0 auto 0 auto;
|
|
@@ -42,14 +54,19 @@
|
|
|
42
54
|
;
|
|
43
55
|
}
|
|
44
56
|
|
|
57
|
+
.buttonsContainer {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
gap: 10px;
|
|
61
|
+
}
|
|
62
|
+
|
|
45
63
|
.buttonContainer {
|
|
46
64
|
display: flex;
|
|
47
65
|
justify-content: center;
|
|
48
66
|
padding-top: 32px;
|
|
49
|
-
width: 100%;
|
|
50
67
|
}
|
|
51
68
|
|
|
52
69
|
.button {
|
|
53
|
-
width:
|
|
70
|
+
max-width: 170px;
|
|
54
71
|
height: 44px;
|
|
55
72
|
}
|
|
@@ -5,8 +5,8 @@ export declare const propTypes: {
|
|
|
5
5
|
mainText: PropTypes.Requireable<string>;
|
|
6
6
|
subText: PropTypes.Requireable<string>;
|
|
7
7
|
imageUrl: PropTypes.Requireable<any>;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
progression: PropTypes.Requireable<number>;
|
|
9
|
+
firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
10
|
type: PropTypes.Requireable<string>;
|
|
11
11
|
label: PropTypes.Requireable<string>;
|
|
12
12
|
ariaLabel: PropTypes.Requireable<string>;
|
|
@@ -17,7 +17,7 @@ export declare const propTypes: {
|
|
|
17
17
|
}>>;
|
|
18
18
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
19
|
}>>;
|
|
20
|
-
|
|
20
|
+
secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
21
|
type: PropTypes.Requireable<string>;
|
|
22
22
|
label: PropTypes.Requireable<string>;
|
|
23
23
|
ariaLabel: PropTypes.Requireable<string>;
|
|
@@ -29,12 +29,13 @@ export declare const propTypes: {
|
|
|
29
29
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
30
|
}>>;
|
|
31
31
|
};
|
|
32
|
-
export declare type
|
|
33
|
-
mainText
|
|
34
|
-
subText
|
|
32
|
+
export declare type BulkInfosProps = {
|
|
33
|
+
mainText: string;
|
|
34
|
+
subText: string;
|
|
35
35
|
imageUrl?: PropTypes.InferProps<typeof Picture.propTypes.src>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
progression?: number;
|
|
37
|
+
firstButtonLink?: ButtonLinkProps;
|
|
38
|
+
secondButtonLink?: ButtonLinkProps;
|
|
39
39
|
};
|
|
40
|
+
export declare type Props = PropTypes.InferProps<typeof propTypes>;
|
|
40
41
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/bulk-infos/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC;AAEF,oBAAY,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -13,8 +13,8 @@ const propTypes = {
|
|
|
13
13
|
mainText: _propTypes.default.string,
|
|
14
14
|
subText: _propTypes.default.string,
|
|
15
15
|
imageUrl: _picture.default.propTypes.src,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
progression: _propTypes.default.number,
|
|
17
|
+
firstButtonLink: _propTypes.default.shape({
|
|
18
18
|
type: _propTypes.default.string,
|
|
19
19
|
label: _propTypes.default.string,
|
|
20
20
|
ariaLabel: _propTypes.default.string,
|
|
@@ -25,7 +25,7 @@ const propTypes = {
|
|
|
25
25
|
}),
|
|
26
26
|
onClick: _propTypes.default.func
|
|
27
27
|
}),
|
|
28
|
-
|
|
28
|
+
secondButtonLink: _propTypes.default.shape({
|
|
29
29
|
type: _propTypes.default.string,
|
|
30
30
|
label: _propTypes.default.string,
|
|
31
31
|
ariaLabel: _propTypes.default.string,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","mainText","PropTypes","string","subText","imageUrl","Picture","src","progression","number","firstButtonLink","shape","type","label","ariaLabel","dataName","icon","position","onClick","func","secondButtonLink"],"sources":["../../../src/molecule/bulk-infos/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport Picture from '../../atom/picture';\n\nexport const propTypes = {\n mainText: PropTypes.string,\n subText: PropTypes.string,\n imageUrl: Picture.propTypes.src,\n progression: PropTypes.number,\n firstButtonLink: 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 secondButtonLink: 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 BulkInfosProps = {\n mainText: string;\n subText: string;\n imageUrl?: PropTypes.InferProps<typeof Picture.propTypes.src>;\n progression?: number;\n firstButtonLink?: ButtonLinkProps;\n secondButtonLink?: ButtonLinkProps;\n};\n\nexport type Props = PropTypes.InferProps<typeof propTypes>;\n"],"mappings":";;;;;AAAA;;AAEA;;;;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,WAAW,EAAEN,kBAAA,CAAUO,MAJA;EAKvBC,eAAe,EAAER,kBAAA,CAAUS,KAAV,CAAgB;IAC/BC,IAAI,EAAEV,kBAAA,CAAUC,MADe;IAE/BU,KAAK,EAAEX,kBAAA,CAAUC,MAFc;IAG/BW,SAAS,EAAEZ,kBAAA,CAAUC,MAHU;IAI/BY,QAAQ,EAAEb,kBAAA,CAAUC,MAJW;IAK/Ba,IAAI,EAAEd,kBAAA,CAAUS,KAAV,CAAgB;MACpBM,QAAQ,EAAEf,kBAAA,CAAUC,MADA;MAEpBS,IAAI,EAAEV,kBAAA,CAAUC;IAFI,CAAhB,CALyB;IAS/Be,OAAO,EAAEhB,kBAAA,CAAUiB;EATY,CAAhB,CALM;EAgBvBC,gBAAgB,EAAElB,kBAAA,CAAUS,KAAV,CAAgB;IAChCC,IAAI,EAAEV,kBAAA,CAAUC,MADgB;IAEhCU,KAAK,EAAEX,kBAAA,CAAUC,MAFe;IAGhCW,SAAS,EAAEZ,kBAAA,CAAUC,MAHW;IAIhCY,QAAQ,EAAEb,kBAAA,CAAUC,MAJY;IAKhCa,IAAI,EAAEd,kBAAA,CAAUS,KAAV,CAAgB;MACpBM,QAAQ,EAAEf,kBAAA,CAAUC,MADA;MAEpBS,IAAI,EAAEV,kBAAA,CAAUC;IAFI,CAAhB,CAL0B;IAShCe,OAAO,EAAEhB,kBAAA,CAAUiB;EATa,CAAhB;AAhBK,CAAlB"}
|
|
@@ -457,6 +457,34 @@ declare namespace WizardContents {
|
|
|
457
457
|
isNestedTable: PropTypes.Requireable<boolean>;
|
|
458
458
|
emptyStateFirstMessage: PropTypes.Requireable<string>;
|
|
459
459
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
460
|
+
}> | PropTypes.InferProps<{
|
|
461
|
+
type: PropTypes.Requireable<string>;
|
|
462
|
+
mainText: PropTypes.Requireable<string>;
|
|
463
|
+
subText: PropTypes.Requireable<string>;
|
|
464
|
+
imageUrl: PropTypes.Requireable<any>;
|
|
465
|
+
progression: PropTypes.Requireable<number>;
|
|
466
|
+
firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
467
|
+
type: PropTypes.Requireable<string>;
|
|
468
|
+
label: PropTypes.Requireable<string>;
|
|
469
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
470
|
+
dataName: PropTypes.Requireable<string>;
|
|
471
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
472
|
+
position: PropTypes.Requireable<string>;
|
|
473
|
+
type: PropTypes.Requireable<string>;
|
|
474
|
+
}>>;
|
|
475
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
476
|
+
}>>;
|
|
477
|
+
secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
478
|
+
type: PropTypes.Requireable<string>;
|
|
479
|
+
label: PropTypes.Requireable<string>;
|
|
480
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
481
|
+
dataName: PropTypes.Requireable<string>;
|
|
482
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
483
|
+
position: PropTypes.Requireable<string>;
|
|
484
|
+
type: PropTypes.Requireable<string>;
|
|
485
|
+
}>>;
|
|
486
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
487
|
+
}>>;
|
|
460
488
|
}> | null | undefined>>;
|
|
461
489
|
const previousStep: PropTypes.Requireable<PropTypes.InferProps<{
|
|
462
490
|
label: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/wizard-contents/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/wizard-contents/index.js"],"names":[],"mappings":";AA6IA,yDAqCC"}
|
|
@@ -35,6 +35,8 @@ var _rewardsForm = _interopRequireDefault(require("../rewards-form"));
|
|
|
35
35
|
|
|
36
36
|
var _expandibleActionableTable = _interopRequireDefault(require("../../molecule/expandible-actionable-table"));
|
|
37
37
|
|
|
38
|
+
var _bulkInfos = _interopRequireDefault(require("../../molecule/bulk-infos"));
|
|
39
|
+
|
|
38
40
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
39
41
|
|
|
40
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -76,7 +78,7 @@ const buildHeader = (wizardHeader, actions, steps, tabs) => {
|
|
|
76
78
|
})) : null);
|
|
77
79
|
};
|
|
78
80
|
|
|
79
|
-
const
|
|
81
|
+
const buildView = content => {
|
|
80
82
|
const {
|
|
81
83
|
type
|
|
82
84
|
} = content;
|
|
@@ -102,6 +104,9 @@ const buildForm = content => {
|
|
|
102
104
|
|
|
103
105
|
case 'expandible-table':
|
|
104
106
|
return /*#__PURE__*/_react.default.createElement(_expandibleActionableTable.default, content);
|
|
107
|
+
|
|
108
|
+
case 'upload-progression':
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement(_bulkInfos.default, content);
|
|
105
110
|
}
|
|
106
111
|
};
|
|
107
112
|
|
|
@@ -178,7 +183,7 @@ const WizardContents = props => {
|
|
|
178
183
|
previousStep
|
|
179
184
|
} = props;
|
|
180
185
|
const headerView = buildHeader(wizardHeader, actions, steps, tabs);
|
|
181
|
-
const
|
|
186
|
+
const view = buildView(_extends({}, content, {
|
|
182
187
|
isLoading
|
|
183
188
|
}));
|
|
184
189
|
const rightActionView = buildActionZone(previousStep, nextStep, 'right');
|
|
@@ -204,7 +209,7 @@ const WizardContents = props => {
|
|
|
204
209
|
className: currentStyle.leftSection
|
|
205
210
|
}, headerView, /*#__PURE__*/_react.default.createElement("div", {
|
|
206
211
|
className: _style.default.form
|
|
207
|
-
},
|
|
212
|
+
}, view)), summary ? summaryWrapper : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
208
213
|
className: currentStyle.footer,
|
|
209
214
|
"data-name": "footer-section"
|
|
210
215
|
}, summary ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -254,6 +259,8 @@ WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
254
259
|
type: _propTypes.default.oneOf(['rewards'])
|
|
255
260
|
})), _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, {
|
|
256
261
|
type: _propTypes.default.oneOf(['expandible-table'])
|
|
262
|
+
})), _propTypes.default.shape(_extends({}, _bulkInfos.default.propTypes, {
|
|
263
|
+
type: _propTypes.default.oneOf(['upload-progression'])
|
|
257
264
|
}))]),
|
|
258
265
|
previousStep: _propTypes.default.shape({
|
|
259
266
|
label: _propTypes.default.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["buildHeader","wizardHeader","actions","steps","tabs","title","onClick","buttonCloseIcon","size","icon","style","header","titleWrapper","headerTitle","actionsWrapper","bulletPointMenuButton","buttonLink","firstButtonLink","secondButtonLink","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","THEMES","container","containerWithoutSummary","footer","footerWithoutSummary","actionFooter","actionFooterWithoutSummary","leftSection","leftSectionWithoutSummary","summary","getTheme","WizardContents","props","isLoading","headerView","formView","rightActionView","footerActionView","currentStyle","summaryWrapper","rightSection","stickySection","summaryZone","form","summaryFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","buttonAriaLabel","menuAriaLabel","buttons","arrayOf","ButtonLink","WizardSteps","BrandTabs","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm","ExpandibleActionableErrorsTable"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport BrandTabs from '../../molecule/brand-tabs';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport RewardsForm from '../rewards-form';\nimport ExpandibleActionableErrorsTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, actions, steps, tabs) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleWrapper}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n {actions ? (\n <div className={style.actionsWrapper}>\n <BulletPointMenuButton {...actions.bulletPointMenuButton} />\n <div className={style.buttonLink}>\n <ButtonLink {...actions.firstButtonLink} />\n </div>\n <div className={style.buttonLink}>\n <ButtonLink {...actions.secondButtonLink} />\n </div>\n </div>\n ) : null}\n </div>\n {steps ? <WizardSteps steps={steps} /> : null}\n {tabs ? (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={tabs} />\n </div>\n ) : null}\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n case 'expandible-table':\n return <ExpandibleActionableErrorsTable {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst THEMES = {\n 'no-summary': {\n container: style.containerWithoutSummary,\n footer: style.footerWithoutSummary,\n actionFooter: style.actionFooterWithoutSummary,\n leftSection: style.leftSectionWithoutSummary\n },\n summary: {\n container: style.container,\n footer: style.footer,\n actionFooter: style.actionFooter,\n leftSection: style.leftSection\n }\n};\n\nconst getTheme = summary => (summary ? 'summary' : 'no-summary');\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, actions, steps, tabs, summary, content, nextStep, previousStep} =\n props;\n const headerView = buildHeader(wizardHeader, actions, steps, tabs);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n const currentStyle = THEMES[getTheme(summary)];\n\n const summaryWrapper = (\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n );\n\n return (\n <div className={currentStyle.container} data-name=\"content-summary\">\n <div className={currentStyle.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n {summary ? summaryWrapper : null}\n <div className={currentStyle.footer} data-name=\"footer-section\">\n {summary ? (\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n ) : null}\n <div className={currentStyle.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n actions: PropTypes.shape({\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 firstButtonLink: PropTypes.shape(ButtonLink.propTypes),\n secondButtonLink: PropTypes.shape(ButtonLink.propTypes)\n }),\n steps: WizardSteps.propTypes.steps,\n tabs: BrandTabs.propTypes.tabs,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableErrorsTable.propTypes,\n type: PropTypes.oneOf(['expandible-table'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,G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BAAA,CAAUG,MAFO;IAGxBhE,OAAO,EAAE6D,kBAAA,CAAUI;EAHK,CAAhB;AA9De,CAA3B;eAqEenB,c"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["buildHeader","wizardHeader","actions","steps","tabs","title","onClick","buttonCloseIcon","size","icon","style","header","titleWrapper","headerTitle","actionsWrapper","bulletPointMenuButton","buttonLink","firstButtonLink","secondButtonLink","buildView","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","THEMES","container","containerWithoutSummary","footer","footerWithoutSummary","actionFooter","actionFooterWithoutSummary","leftSection","leftSectionWithoutSummary","summary","getTheme","WizardContents","props","isLoading","headerView","view","rightActionView","footerActionView","currentStyle","summaryWrapper","rightSection","stickySection","summaryZone","form","summaryFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","buttonAriaLabel","menuAriaLabel","buttons","arrayOf","ButtonLink","WizardSteps","BrandTabs","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm","ExpandibleActionableErrorsTable","BulkInfos"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport BrandTabs from '../../molecule/brand-tabs';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport RewardsForm from '../rewards-form';\nimport ExpandibleActionableErrorsTable from '../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../molecule/bulk-infos';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, actions, steps, tabs) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleWrapper}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n {actions ? (\n <div className={style.actionsWrapper}>\n <BulletPointMenuButton {...actions.bulletPointMenuButton} />\n <div className={style.buttonLink}>\n <ButtonLink {...actions.firstButtonLink} />\n </div>\n <div className={style.buttonLink}>\n <ButtonLink {...actions.secondButtonLink} />\n </div>\n </div>\n ) : null}\n </div>\n {steps ? <WizardSteps steps={steps} /> : null}\n {tabs ? (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={tabs} />\n </div>\n ) : null}\n </div>\n );\n};\n\nconst buildView = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n case 'expandible-table':\n return <ExpandibleActionableErrorsTable {...content} />;\n case 'upload-progression':\n return <BulkInfos {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst THEMES = {\n 'no-summary': {\n container: style.containerWithoutSummary,\n footer: style.footerWithoutSummary,\n actionFooter: style.actionFooterWithoutSummary,\n leftSection: style.leftSectionWithoutSummary\n },\n summary: {\n container: style.container,\n footer: style.footer,\n actionFooter: style.actionFooter,\n leftSection: style.leftSection\n }\n};\n\nconst getTheme = summary => (summary ? 'summary' : 'no-summary');\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, actions, steps, tabs, summary, content, nextStep, previousStep} =\n props;\n const headerView = buildHeader(wizardHeader, actions, steps, tabs);\n const view = buildView({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n const currentStyle = THEMES[getTheme(summary)];\n\n const summaryWrapper = (\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n );\n\n return (\n <div className={currentStyle.container} data-name=\"content-summary\">\n <div className={currentStyle.leftSection}>\n {headerView}\n <div className={style.form}>{view}</div>\n </div>\n {summary ? summaryWrapper : null}\n <div className={currentStyle.footer} data-name=\"footer-section\">\n {summary ? (\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n ) : null}\n <div className={currentStyle.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n actions: PropTypes.shape({\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 firstButtonLink: PropTypes.shape(ButtonLink.propTypes),\n secondButtonLink: PropTypes.shape(ButtonLink.propTypes)\n }),\n steps: WizardSteps.propTypes.steps,\n tabs: BrandTabs.propTypes.tabs,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableErrorsTable.propTypes,\n type: PropTypes.oneOf(['expandible-table'])\n }),\n PropTypes.shape({\n ...BulkInfos.propTypes,\n type: PropTypes.oneOf(['upload-progression'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,OAAf,E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hB,CA9DW;EAkEzBrC,QAAQ,EAAEiC,kBAAA,CAAUE,KAAV,CAAgB;IACxBhD,IAAI,EAAE8C,kBAAA,CAAUgB,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;IAExBrD,KAAK,EAAEqC,kBAAA,CAAUG,MAFO;IAGxBhE,OAAO,EAAE6D,kBAAA,CAAUI;EAHK,CAAhB;AAlEe,CAA3B;eAyEenB,c"}
|
|
@@ -484,25 +484,8 @@ declare namespace BrandUpdate {
|
|
|
484
484
|
mainText: PropTypes.Requireable<string>;
|
|
485
485
|
subText: PropTypes.Requireable<string>;
|
|
486
486
|
imageUrl: PropTypes.Requireable<any>;
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
label: PropTypes.Requireable<string>;
|
|
490
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
491
|
-
dataName: PropTypes.Requireable<string>;
|
|
492
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
493
|
-
position: PropTypes.Requireable<string>;
|
|
494
|
-
type: PropTypes.Requireable<string>;
|
|
495
|
-
}>>;
|
|
496
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
497
|
-
}>>;
|
|
498
|
-
}> | PropTypes.InferProps<{
|
|
499
|
-
key: PropTypes.Requireable<string>;
|
|
500
|
-
type: PropTypes.Requireable<string>;
|
|
501
|
-
mainText: PropTypes.Requireable<string>;
|
|
502
|
-
subText: PropTypes.Requireable<string>;
|
|
503
|
-
imageUrl: PropTypes.Requireable<any>;
|
|
504
|
-
progressionValue: PropTypes.Requireable<number>;
|
|
505
|
-
leftButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
487
|
+
progression: PropTypes.Requireable<number>;
|
|
488
|
+
firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
506
489
|
type: PropTypes.Requireable<string>;
|
|
507
490
|
label: PropTypes.Requireable<string>;
|
|
508
491
|
ariaLabel: PropTypes.Requireable<string>;
|
|
@@ -513,7 +496,7 @@ declare namespace BrandUpdate {
|
|
|
513
496
|
}>>;
|
|
514
497
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
515
498
|
}>>;
|
|
516
|
-
|
|
499
|
+
secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
517
500
|
type: PropTypes.Requireable<string>;
|
|
518
501
|
label: PropTypes.Requireable<string>;
|
|
519
502
|
ariaLabel: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AAoMA,sDA6CC"}
|
|
@@ -49,12 +49,10 @@ var _cmPopin = _interopRequireDefault(require("../../../molecule/cm-popin"));
|
|
|
49
49
|
|
|
50
50
|
var _buttonLinkIconOnly = _interopRequireDefault(require("../../../atom/button-link-icon-only"));
|
|
51
51
|
|
|
52
|
-
var _emptyStateDashboard = _interopRequireDefault(require("../../../molecule/empty-state-dashboard"));
|
|
53
|
-
|
|
54
|
-
var _uploadingFileProgress = _interopRequireDefault(require("../../../molecule/uploading-file-progress"));
|
|
55
|
-
|
|
56
52
|
var _expandibleActionableTable = _interopRequireDefault(require("../../../molecule/expandible-actionable-table"));
|
|
57
53
|
|
|
54
|
+
var _bulkInfos = _interopRequireDefault(require("../../../molecule/bulk-infos"));
|
|
55
|
+
|
|
58
56
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
59
57
|
|
|
60
58
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -73,7 +71,8 @@ const subTabsView = (_subTabs = []) => _map.default.convert({
|
|
|
73
71
|
target: '_blank'
|
|
74
72
|
})) : /*#__PURE__*/_react.default.createElement(_sidebar.LinkItem, _extends({}, subTab, {
|
|
75
73
|
styles: getStyle(subTab.selected),
|
|
76
|
-
uppercase: false
|
|
74
|
+
uppercase: false,
|
|
75
|
+
setChildrenAsHtml: false
|
|
77
76
|
}))))(_subTabs); // TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable
|
|
78
77
|
|
|
79
78
|
|
|
@@ -217,11 +216,8 @@ const buildContentView = content => {
|
|
|
217
216
|
case 'expandible-table':
|
|
218
217
|
return /*#__PURE__*/_react.default.createElement(_wizardContents.default, content);
|
|
219
218
|
|
|
220
|
-
case 'empty-
|
|
221
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
222
|
-
|
|
223
|
-
case 'uploading-file-progress':
|
|
224
|
-
return /*#__PURE__*/_react.default.createElement(_uploadingFileProgress.default, content);
|
|
219
|
+
case 'bulk-empty-dashboard':
|
|
220
|
+
return /*#__PURE__*/_react.default.createElement(_bulkInfos.default, content);
|
|
225
221
|
|
|
226
222
|
case 'table-pending':
|
|
227
223
|
return /*#__PURE__*/_react.default.createElement(_expandibleActionableTable.default, content);
|
|
@@ -314,12 +310,9 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
314
310
|
})), _propTypes.default.shape(_extends({}, _listItems.default.propTypes, {
|
|
315
311
|
key: _propTypes.default.string,
|
|
316
312
|
type: _propTypes.default.oneOf(['list-content', 'expandible-actionable-table'])
|
|
317
|
-
})), _propTypes.default.shape(_extends({},
|
|
318
|
-
key: _propTypes.default.string,
|
|
319
|
-
type: _propTypes.default.oneOf(['empty-state-dashboard'])
|
|
320
|
-
})), _propTypes.default.shape(_extends({}, _uploadingFileProgress.default.propTypes, {
|
|
313
|
+
})), _propTypes.default.shape(_extends({}, _bulkInfos.default.propTypes, {
|
|
321
314
|
key: _propTypes.default.string,
|
|
322
|
-
type: _propTypes.default.oneOf(['
|
|
315
|
+
type: _propTypes.default.oneOf(['bulk-empty-dashboard'])
|
|
323
316
|
})), _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, {
|
|
324
317
|
key: _propTypes.default.string,
|
|
325
318
|
type: _propTypes.default.oneOf(['table-pending'])
|