@coorpacademy/components 11.22.1 → 11.22.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/button-link/index.js +4 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/molecule/bulk-infos/index.d.ts.map +1 -1
- package/es/molecule/bulk-infos/index.js +15 -6
- package/es/molecule/bulk-infos/index.js.map +1 -1
- package/es/molecule/bulk-infos/style.css +9 -2
- package/es/molecule/cm-popin/types.d.ts +1 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/questions/template/index.d.ts +1 -1
- package/es/organism/list-items/index.d.ts +3 -1
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +11 -3
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/list-items/style.css +14 -0
- package/es/organism/wizard-contents/index.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.js +1 -1
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/template/app-player/loading/index.d.ts +1 -0
- package/es/template/app-player/player/index.d.ts +2 -0
- package/es/template/app-player/player/slides/index.d.ts +1 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +1 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +1 -0
- package/es/template/app-review/index.d.ts +1 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +1 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +1 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +2 -0
- package/es/template/common/dashboard/index.d.ts +2 -0
- package/es/template/common/search-page/index.d.ts +1 -0
- package/es/template/external-course/index.d.ts +1 -0
- package/es/util/button-icons.d.ts +10 -0
- package/es/util/button-icons.d.ts.map +1 -1
- package/es/util/button-icons.js +3 -1
- package/es/util/button-icons.js.map +1 -1
- package/lib/atom/button-link/index.js +4 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/molecule/bulk-infos/index.d.ts.map +1 -1
- package/lib/molecule/bulk-infos/index.js +16 -6
- package/lib/molecule/bulk-infos/index.js.map +1 -1
- package/lib/molecule/bulk-infos/style.css +9 -2
- package/lib/molecule/cm-popin/types.d.ts +1 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/questions/template/index.d.ts +1 -1
- package/lib/organism/list-items/index.d.ts +3 -1
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +12 -3
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/list-items/style.css +14 -0
- package/lib/organism/wizard-contents/index.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.js +1 -1
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/template/app-player/loading/index.d.ts +1 -0
- package/lib/template/app-player/player/index.d.ts +2 -0
- package/lib/template/app-player/player/slides/index.d.ts +1 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +1 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +1 -0
- package/lib/template/app-review/index.d.ts +1 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +1 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +1 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +2 -0
- package/lib/template/common/dashboard/index.d.ts +2 -0
- package/lib/template/common/search-page/index.d.ts +1 -0
- package/lib/template/external-course/index.d.ts +1 -0
- package/lib/util/button-icons.d.ts +10 -0
- package/lib/util/button-icons.d.ts.map +1 -1
- package/lib/util/button-icons.js +6 -1
- package/lib/util/button-icons.js.map +1 -1
- package/package.json +3 -3
|
@@ -30,11 +30,13 @@ const getButtonContent = (icon, label) => {
|
|
|
30
30
|
return /*#__PURE__*/React.createElement("div", {
|
|
31
31
|
className: style.buttonContent
|
|
32
32
|
}, position === 'left' ? /*#__PURE__*/React.createElement(Icon, {
|
|
33
|
-
className: style.icon
|
|
33
|
+
className: style.icon,
|
|
34
|
+
theme: "coorpmanager"
|
|
34
35
|
}) : null, label ? /*#__PURE__*/React.createElement("span", {
|
|
35
36
|
className: style.label
|
|
36
37
|
}, label) : null, position === 'right' ? /*#__PURE__*/React.createElement(Icon, {
|
|
37
|
-
className: style.icon
|
|
38
|
+
className: style.icon,
|
|
39
|
+
theme: "coorpmanager"
|
|
38
40
|
}) : null);
|
|
39
41
|
};
|
|
40
42
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","classnames","Link","ICONS","propTypes","style","getButtonContent","icon","label","type","position","Icon","buttonContent","ButtonLink","props","disabled","dataName","dataTestId","ariaLabel","link","onClick","onKeyDown","className","customStyle","useTitle","contentView","styleButton","button","primary","secondary","tertiary","text","dangerous","handleOnClick","handleOnKeyDown","event","title"],"sources":["../../../src/atom/button-link/index.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport {ICONS} from '../../util/button-icons';\nimport propTypes, {ButtonLinkProps, IconType} from './types';\nimport style from './style.css';\n\nconst getButtonContent = (icon?: IconType, label?: string) => {\n const {type, position} = icon || {type: '', position: ''};\n const Icon = type && ICONS[type];\n\n if (!Icon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n );\n }\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? <Icon className={style.icon} /> : null}\n {label ? <span className={style.label}>{label}</span> : null}\n {position === 'right' ? <Icon className={style.icon} /> : null}\n </div>\n );\n};\n\nconst ButtonLink = (props: ButtonLinkProps) => {\n const {\n type,\n label,\n disabled,\n icon,\n 'data-name': dataName,\n 'data-testid': dataTestId = 'button-link',\n 'aria-label': ariaLabel,\n link,\n onClick = noop,\n onKeyDown = noop,\n className,\n customStyle,\n useTitle = true\n } = props;\n const contentView = getButtonContent(icon, label);\n const styleButton = classnames(\n className,\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const handleOnKeyDown = useCallback(event => onKeyDown(event), [onKeyDown]);\n\n if (link) {\n return (\n <Link\n {...link}\n {...(useTitle && {\n title: ariaLabel || label\n })}\n style={customStyle}\n className={styleButton}\n data-name={dataName}\n data-testid={dataTestId}\n aria-label={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n {...(useTitle && {\n title: ariaLabel || label\n })}\n type=\"button\"\n aria-label={ariaLabel || label}\n data-name={dataName}\n data-testid={dataTestId}\n style={customStyle}\n className={styleButton}\n onClick={handleOnClick}\n onKeyDown={handleOnKeyDown}\n tabIndex={0}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = propTypes;\n\nexport default ButtonLink;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,IAAP,MAAiB,SAAjB;AACA,SAAQC,KAAR,QAAoB,yBAApB;AACA,OAAOC,SAAP,MAAmD,SAAnD;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,gBAAgB,GAAG,CAACC,IAAD,EAAkBC,KAAlB,KAAqC;EAC5D,MAAM;IAACC,IAAD;IAAOC;EAAP,IAAmBH,IAAI,IAAI;IAACE,IAAI,EAAE,EAAP;IAAWC,QAAQ,EAAE;EAArB,CAAjC;EACA,MAAMC,IAAI,GAAGF,IAAI,IAAIN,KAAK,CAACM,IAAD,CAA1B;;EAEA,IAAI,CAACE,IAAL,EAAW;IACT,oBACE;MAAK,SAAS,EAAEN,KAAK,CAACO;IAAtB,gBACE;MAAM,SAAS,EAAEP,KAAK,CAACG;IAAvB,GAA+BA,KAA/B,CADF,CADF;EAKD;;EAED,oBACE;IAAK,SAAS,EAAEH,KAAK,CAACO;EAAtB,GACGF,QAAQ,KAAK,MAAb,gBAAsB,oBAAC,IAAD;IAAM,SAAS,EAAEL,KAAK,CAACE;
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","classnames","Link","ICONS","propTypes","style","getButtonContent","icon","label","type","position","Icon","buttonContent","ButtonLink","props","disabled","dataName","dataTestId","ariaLabel","link","onClick","onKeyDown","className","customStyle","useTitle","contentView","styleButton","button","primary","secondary","tertiary","text","dangerous","handleOnClick","handleOnKeyDown","event","title"],"sources":["../../../src/atom/button-link/index.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport {ICONS} from '../../util/button-icons';\nimport propTypes, {ButtonLinkProps, IconType} from './types';\nimport style from './style.css';\n\nconst getButtonContent = (icon?: IconType, label?: string) => {\n const {type, position} = icon || {type: '', position: ''};\n const Icon = type && ICONS[type];\n\n if (!Icon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n );\n }\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? <Icon className={style.icon} theme=\"coorpmanager\" /> : null}\n {label ? <span className={style.label}>{label}</span> : null}\n {position === 'right' ? <Icon className={style.icon} theme=\"coorpmanager\" /> : null}\n </div>\n );\n};\n\nconst ButtonLink = (props: ButtonLinkProps) => {\n const {\n type,\n label,\n disabled,\n icon,\n 'data-name': dataName,\n 'data-testid': dataTestId = 'button-link',\n 'aria-label': ariaLabel,\n link,\n onClick = noop,\n onKeyDown = noop,\n className,\n customStyle,\n useTitle = true\n } = props;\n const contentView = getButtonContent(icon, label);\n const styleButton = classnames(\n className,\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const handleOnKeyDown = useCallback(event => onKeyDown(event), [onKeyDown]);\n\n if (link) {\n return (\n <Link\n {...link}\n {...(useTitle && {\n title: ariaLabel || label\n })}\n style={customStyle}\n className={styleButton}\n data-name={dataName}\n data-testid={dataTestId}\n aria-label={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n {...(useTitle && {\n title: ariaLabel || label\n })}\n type=\"button\"\n aria-label={ariaLabel || label}\n data-name={dataName}\n data-testid={dataTestId}\n style={customStyle}\n className={styleButton}\n onClick={handleOnClick}\n onKeyDown={handleOnKeyDown}\n tabIndex={0}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = propTypes;\n\nexport default ButtonLink;\n"],"mappings":";;;;AAAA,OAAOA,KAAP,IAAeC,WAAf,QAAiC,OAAjC;AAEA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,IAAP,MAAiB,SAAjB;AACA,SAAQC,KAAR,QAAoB,yBAApB;AACA,OAAOC,SAAP,MAAmD,SAAnD;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,gBAAgB,GAAG,CAACC,IAAD,EAAkBC,KAAlB,KAAqC;EAC5D,MAAM;IAACC,IAAD;IAAOC;EAAP,IAAmBH,IAAI,IAAI;IAACE,IAAI,EAAE,EAAP;IAAWC,QAAQ,EAAE;EAArB,CAAjC;EACA,MAAMC,IAAI,GAAGF,IAAI,IAAIN,KAAK,CAACM,IAAD,CAA1B;;EAEA,IAAI,CAACE,IAAL,EAAW;IACT,oBACE;MAAK,SAAS,EAAEN,KAAK,CAACO;IAAtB,gBACE;MA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,IAAI,IAAId,KAAK,CAACc,IARc,EAS5BJ,QAAQ,IAAIV,KAAK,CAACU,QATU,CAA9B;EAYA,MAAMkB,aAAa,GAAGjC,WAAW,CAAC,MAAMoB,OAAO,EAAd,EAAkB,CAACA,OAAD,CAAlB,CAAjC;EAEA,MAAMc,eAAe,GAAGlC,WAAW,CAACmC,KAAK,IAAId,SAAS,CAACc,KAAD,CAAnB,EAA4B,CAACd,SAAD,CAA5B,CAAnC;;EAEA,IAAIF,IAAJ,EAAU;IACR,oBACE,oBAAC,IAAD,eACMA,IADN,EAEOK,QAAQ,IAAI;MACfY,KAAK,EAAElB,SAAS,IAAIV;IADL,CAFnB;MAKE,KAAK,EAAEe,WALT;MAME,SAAS,EAAEG,WANb;MAOE,aAAWV,QAPb;MAQE,eAAaC,UARf;MASE,cAAYC,SAAS,IAAIV;IAT3B,IAWGiB,WAXH,CADF;EAeD;;EAED,oBACE,2CACOD,QAAQ,IAAI;IACfY,KAAK,EAAElB,SAAS,IAAIV;EADL,CADnB;IAIE,IAAI,EAAC,QAJP;IAKE,cAAYU,SAAS,IAAIV,KAL3B;IAME,aAAWQ,QANb;IAOE,eAAaC,UAPf;IAQE,KAAK,EAAEM,WART;IASE,SAAS,EAAEG,WATb;IAUE,OAAO,EAAEO,aAVX;IAWE,SAAS,EAAEC,eAXb;IAYE,QAAQ,EAAE;EAZZ,IAcGT,WAdH,CADF;AAkBD,CArED;;AAuEAZ,UAAU,CAACT,SAAX,2CAAuBA,SAAvB;AAEA,eAAeS,UAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/bulk-infos/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/bulk-infos/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,cAAc,IAAI,KAAK,EAAY,MAAM,SAAS,CAAC;AAiB3D,QAAA,MAAM,SAAS;sFAOZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBP,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { NovaSolidStatusCheckCircle2 as CheckIcon } from '@coorpacademy/nova-icons';
|
|
4
5
|
import ButtonLink from '../../atom/button-link';
|
|
5
6
|
import Loader from '../../atom/loader';
|
|
6
7
|
import style from './style.css';
|
|
7
8
|
import { propTypes } from './types';
|
|
8
9
|
|
|
10
|
+
const buildIcon = progression => {
|
|
11
|
+
if (progression === undefined) return null;
|
|
12
|
+
if (progression === 100) return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: style.icon
|
|
14
|
+
}, /*#__PURE__*/React.createElement(CheckIcon, null));
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: style.loader
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Loader, {
|
|
18
|
+
theme: "coorpmanager"
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
21
|
+
|
|
9
22
|
const BulkInfos = ({
|
|
10
23
|
mainText,
|
|
11
24
|
subText,
|
|
@@ -21,13 +34,9 @@ const BulkInfos = ({
|
|
|
21
34
|
className: style.img,
|
|
22
35
|
src: imageUrl,
|
|
23
36
|
"aria-hidden": "true"
|
|
24
|
-
}) : null, progression
|
|
25
|
-
className: style.loader
|
|
26
|
-
}, /*#__PURE__*/React.createElement(Loader, {
|
|
27
|
-
theme: "coorpmanager"
|
|
28
|
-
})) : null), /*#__PURE__*/React.createElement("p", {
|
|
37
|
+
}) : null, buildIcon(progression)), /*#__PURE__*/React.createElement("p", {
|
|
29
38
|
className: style.mainText
|
|
30
|
-
}, `${mainText} ${progression
|
|
39
|
+
}, `${mainText} ${progression === undefined || progression === 100 ? '' : `${progression}%`}`), /*#__PURE__*/React.createElement("p", {
|
|
31
40
|
className: style.subText
|
|
32
41
|
}, subText), /*#__PURE__*/React.createElement("div", {
|
|
33
42
|
className: style.buttonsContainer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","ButtonLink","Loader","style","propTypes","BulkInfos","mainText","subText","imageUrl","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","NovaSolidStatusCheckCircle2","CheckIcon","ButtonLink","Loader","style","propTypes","buildIcon","progression","undefined","icon","loader","BulkInfos","mainText","subText","imageUrl","firstButtonLink","secondButtonLink","container","header","img","buttonsContainer","buttonContainer","button"],"sources":["../../../src/molecule/bulk-infos/index.tsx"],"sourcesContent":["import React from 'react';\nimport {NovaSolidStatusCheckCircle2 as CheckIcon} from '@coorpacademy/nova-icons';\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 buildIcon = (progression?: number) => {\n if (progression === undefined) return null;\n if (progression === 100)\n return (\n <div className={style.icon}>\n <CheckIcon />\n </div>\n );\n return (\n <div className={style.loader}>\n <Loader theme=\"coorpmanager\" />\n </div>\n );\n};\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 {buildIcon(progression)}\n </div>\n <p className={style.mainText}>\n {`${mainText} ${progression === undefined || progression === 100 ? '' : `${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,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAQC,2BAA2B,IAAIC,SAAvC,QAAuD,0BAAvD;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,SAAiCC,SAAjC,QAAiD,SAAjD;;AAEA,MAAMC,SAAS,GAAIC,WAAD,IAA0B;EAC1C,IAAIA,WAAW,KAAKC,SAApB,EAA+B,OAAO,IAAP;EAC/B,IAAID,WAAW,KAAK,GAApB,EACE,oBACE;IAAK,SAAS,EAAEH,KAAK,CAACK;EAAtB,gBACE,oBAAC,SAAD,OADF,CADF;EAKF,oBACE;IAAK,SAAS,EAAEL,KAAK,CAACM;EAAtB,gBACE,oBAAC,MAAD;IAAQ,KAAK,EAAC;EAAd,EADF,CADF;AAKD,CAbD;;AAeA,MAAMC,SAAS,GAAG,CAAC;EACjBC,QADiB;EAEjBC,OAFiB;EAGjBC,QAHiB;EAIjBP,WAJiB;EAKjBQ,eALiB;EAMjBC;AANiB,CAAD,kBAQhB;EAAK,SAAS,EAAEZ,KAAK,CAACa;AAAtB,gBACE;EAAK,SAAS,EAAEb,KAAK,CAACc;AAAtB,GACGJ,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAhC,gBACC;EAAK,SAAS,EAAEV,KAAK,CAACe,GAAtB;EAA2B,GAAG,EAAEL,QAAhC;EAA0C,eAAY;AAAtD,EADD,GAEG,IAHN,EAIGR,SAAS,CAACC,WAAD,CAJZ,CADF,eAOE;EAAG,SAAS,EAAEH,KAAK,CAACQ;AAApB,GACI,GAAEA,QAAS,IAAGL,WAAW,KAAKC,SAAhB,IAA6BD,WAAW,KAAK,GAA7C,GAAmD,EAAnD,GAAyD,GAAEA,WAAY,GAAG,EAD5F,CAPF,eAUE;EAAG,SAAS,EAAEH,KAAK,CAACS;AAApB,GAA8BA,OAA9B,CAVF,eAWE;EAAK,SAAS,EAAET,KAAK,CAACgB;AAAtB,GACGL,eAAe,gBACd;EAAK,SAAS,EAAEX,KAAK,CAACiB;AAAtB,gBACE,oBAAC,UAAD,eAAgBN,eAAhB;EAAiC,SAAS,EAAEX,KAAK,CAACkB;AAAlD,GADF,CADc,GAIZ,IALN,EAMGN,gBAAgB,gBACf;EAAK,SAAS,EAAEZ,KAAK,CAACiB;AAAtB,gBACE,oBAAC,UAAD,eAAgBL,gBAAhB;EAAkC,SAAS,EAAEZ,KAAK,CAACkB;AAAnD,GADF,CADe,GAIb,IAVN,CAXF,CARF;;AAkCAX,SAAS,CAACN,SAAV,2CAAsBA,SAAtB;AAEA,eAAeM,SAAf"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@value colors: "../../variables/colors.css";
|
|
2
2
|
@value cm_grey_500: from colors;
|
|
3
3
|
@value cm_grey_800: from colors;
|
|
4
|
+
@value cm_green_200: from colors;
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
.container {
|
|
@@ -67,6 +68,12 @@
|
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
.button {
|
|
70
|
-
|
|
71
|
+
min-width: 170px;
|
|
71
72
|
height: 44px;
|
|
72
|
-
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.icon{
|
|
76
|
+
color: cm_green_200;
|
|
77
|
+
height: 50px;
|
|
78
|
+
width: 50px;
|
|
79
|
+
}
|
|
@@ -247,6 +247,7 @@ declare const propTypes: {
|
|
|
247
247
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
248
248
|
}> | null | undefined>>;
|
|
249
249
|
title: PropTypes.Requireable<string>;
|
|
250
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
250
251
|
}> | null | undefined>>;
|
|
251
252
|
}>>;
|
|
252
253
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDd,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;CACpD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -29,7 +29,7 @@ declare namespace Template {
|
|
|
29
29
|
theme: PropTypes.Requireable<string>;
|
|
30
30
|
'aria-label': PropTypes.Requireable<string>;
|
|
31
31
|
groupAriaLabel: PropTypes.Requireable<string>;
|
|
32
|
-
}, "aria-label" | "
|
|
32
|
+
}, "aria-label" | "theme" | "onChange" | "options" | "groupAriaLabel">>>) | null | undefined)[]>;
|
|
33
33
|
const groupAriaLabel: PropTypes.Requireable<string>;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export default ListItems;
|
|
2
|
-
declare function ListItems({ title, buttonLink, selectMultiple, content, "aria-label": ariaLabel }: {
|
|
2
|
+
declare function ListItems({ title, buttonLink, selectMultiple, content, "aria-label": ariaLabel, isFetching }: {
|
|
3
3
|
title: any;
|
|
4
4
|
buttonLink: any;
|
|
5
5
|
selectMultiple: any;
|
|
6
6
|
content: any;
|
|
7
7
|
"aria-label": any;
|
|
8
|
+
isFetching: any;
|
|
8
9
|
}): JSX.Element;
|
|
9
10
|
declare namespace ListItems {
|
|
10
11
|
const propTypes: {
|
|
@@ -179,6 +180,7 @@ declare namespace ListItems {
|
|
|
179
180
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
180
181
|
}> | null | undefined>>;
|
|
181
182
|
title: PropTypes.Requireable<string>;
|
|
183
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
182
184
|
};
|
|
183
185
|
}
|
|
184
186
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AA2EA;;;;;;;gBAkCC"}
|
|
@@ -10,6 +10,7 @@ import Title from '../../atom/title';
|
|
|
10
10
|
import ButtonLink from '../../atom/button-link';
|
|
11
11
|
import SelectMultiple from '../../molecule/select-multiple';
|
|
12
12
|
import ExpandibleActionableTable from '../../molecule/expandible-actionable-table';
|
|
13
|
+
import Loader from '../../atom/loader';
|
|
13
14
|
import style from './style.css';
|
|
14
15
|
|
|
15
16
|
const buildListItemsView = (content, ariaLabel, selectMultiple) => {
|
|
@@ -80,7 +81,8 @@ const ListItems = ({
|
|
|
80
81
|
buttonLink,
|
|
81
82
|
selectMultiple,
|
|
82
83
|
content,
|
|
83
|
-
'aria-label': ariaLabel
|
|
84
|
+
'aria-label': ariaLabel,
|
|
85
|
+
isFetching
|
|
84
86
|
}) => {
|
|
85
87
|
const contentView = buildContentView(content, ariaLabel, selectMultiple);
|
|
86
88
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -95,7 +97,12 @@ const ListItems = ({
|
|
|
95
97
|
className: style.actionsWrapper
|
|
96
98
|
}, selectMultiple ? /*#__PURE__*/React.createElement("div", {
|
|
97
99
|
className: style.selectMultiple
|
|
98
|
-
}, /*#__PURE__*/React.createElement(SelectMultiple, selectMultiple)) : null, /*#__PURE__*/React.createElement(ButtonLink, buttonLink))),
|
|
100
|
+
}, /*#__PURE__*/React.createElement(SelectMultiple, selectMultiple)) : null, /*#__PURE__*/React.createElement(ButtonLink, buttonLink))), isFetching ? /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
className: style.loaderContainer
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Loader, {
|
|
103
|
+
className: style.loader,
|
|
104
|
+
theme: "coorpmanager"
|
|
105
|
+
})) : contentView);
|
|
99
106
|
};
|
|
100
107
|
|
|
101
108
|
ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -112,7 +119,8 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
112
119
|
}), PropTypes.shape(_extends({}, ExpandibleActionableTable.propTypes, {
|
|
113
120
|
type: PropTypes.oneOf(['expandible-actionable-table'])
|
|
114
121
|
}))]),
|
|
115
|
-
title: PropTypes.string
|
|
122
|
+
title: PropTypes.string,
|
|
123
|
+
isFetching: PropTypes.bool
|
|
116
124
|
} : {};
|
|
117
125
|
export default ListItems;
|
|
118
126
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","isNil","isEmpty","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","tableHeaderView","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","flexGrow","flexShrink","flexBasis","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","propTypes","string","shape","oneOfType","arrayOf","oneOf","func","bool"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport isNil from 'lodash/fp/isNil';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, isDraggable = false, tableHeader} = content;\n const itemsView =\n isDraggable && items.length > 1 ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={null} contentType={itemType} />\n </li>\n ))\n );\n const tableHeaderView =\n !isNil(tableHeader) && !isEmpty(tableHeader) ? (\n <div className={style.tableHeaderWrapper}>\n <div className={style.dataColumnsWrapper}>\n {tableHeader.map((tableHeaderItem, index) => (\n <div\n key={`tableHeadeColumn-key-${index}`}\n className={style.tableHeaderItem}\n data-name={`tableHeader-${index}`}\n style={\n index === 0\n ? {flexGrow: 2, flexShrink: 0, flexBasis: 0}\n : {flexGrow: 1, flexShrink: 0, flexBasis: 0}\n }\n >\n {tableHeaderItem}\n </div>\n ))}\n </div>\n <div className={style.settings}>{''}</div>\n </div>\n ) : null;\n return (\n <div>\n {tableHeaderView}\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n </div>\n );\n};\n\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","isNil","isEmpty","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","Loader","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","tableHeaderView","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","flexGrow","flexShrink","flexBasis","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","isFetching","contentView","header","actionsWrapper","loaderContainer","loader","propTypes","string","shape","oneOfType","arrayOf","oneOf","func","bool"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport isNil from 'lodash/fp/isNil';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, isDraggable = false, tableHeader} = content;\n const itemsView =\n isDraggable && items.length > 1 ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={null} contentType={itemType} />\n </li>\n ))\n );\n const tableHeaderView =\n !isNil(tableHeader) && !isEmpty(tableHeader) ? (\n <div className={style.tableHeaderWrapper}>\n <div className={style.dataColumnsWrapper}>\n {tableHeader.map((tableHeaderItem, index) => (\n <div\n key={`tableHeadeColumn-key-${index}`}\n className={style.tableHeaderItem}\n data-name={`tableHeader-${index}`}\n style={\n index === 0\n ? {flexGrow: 2, flexShrink: 0, flexBasis: 0}\n : {flexGrow: 1, flexShrink: 0, flexBasis: 0}\n }\n >\n {tableHeaderItem}\n </div>\n ))}\n </div>\n <div className={style.settings}>{''}</div>\n </div>\n ) : null;\n return (\n <div>\n {tableHeaderView}\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n </div>\n );\n};\n\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({\n title,\n buttonLink,\n selectMultiple,\n content,\n 'aria-label': ariaLabel,\n isFetching\n}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\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.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n {isFetching ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n contentView\n )}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n isDraggable: PropTypes.bool,\n tableHeader: PropTypes.arrayOf(PropTypes.string)\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string,\n isFetching: PropTypes.bool\n};\n\nexport default ListItems;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,yBAAP,MAAsC,4CAAtC;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,MAAlB;IAA0BC,WAAW,GAAG,KAAxC;IAA+CC;EAA/C,IAA8DP,OAApE;EACA,MAAMQ,SAAS,GACbF,WAAW,IAAIH,KAAK,CAACM,MAAN,GAAe,CAA9B,gBACE,oBAAC,aAAD;IACE,KAAK,EAAEN,KAAK,CAACO,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeC,WAAW,EAAER;IAA5B,EAAd,CADT;IAEE,QAAQ,EAAC,WAFX;IAGE,MAAM,EAAEC;EAHV,EADF,GAOEF,KAAK,CAACO,GAAN,CAAU,CAACC,IAAD,EAAOE,KAAP,kBACR;IAAI,GAAG,EAAEF,IAAI,CAACG,EAAd;IAAkB,SAAS,EAAEhB,KAAK,CAACa,IAAnC;IAAyC,aAAY,WAAUE,KAAM;EAArE,gBACE,oBAAC,QAAD,eAAc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,CAACoD,OAAV,CAAkBpD,SAAS,CAACkD,KAAV,CAAgB/C,QAAQ,CAAC6C,SAAzB,CAAlB,CADO;IAEdV,IAAI,EAAEtC,SAAS,CAACqD,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdrC,QAAQ,EAAEhB,SAAS,CAACiD,MAHN;IAIdhC,MAAM,EAAEjB,SAAS,CAACsD,IAJJ;IAKdpC,WAAW,EAAElB,SAAS,CAACuD,IALT;IAMdpC,WAAW,EAAEnB,SAAS,CAACoD,OAAV,CAAkBpD,SAAS,CAACiD,MAA5B;EANC,CAAhB,CAD2B,EAS3BjD,SAAS,CAACkD,KAAV,cACK1C,yBAAyB,CAACwC,SAD/B;IAEEV,IAAI,EAAEtC,SAAS,CAACqD,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBb,KAAK,EAAExC,SAAS,CAACiD,MAlBG;EAmBpBP,UAAU,EAAE1C,SAAS,CAACuD;AAnBF,CAAtB;AAsBA,eAAehB,SAAf"}
|
|
@@ -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":";AA+IA,yDAqCC"}
|
|
@@ -40,7 +40,7 @@ const buildHeader = (wizardHeader, actions, steps, tabs) => {
|
|
|
40
40
|
"data-name": 'content-title'
|
|
41
41
|
}, title)), actions ? /*#__PURE__*/React.createElement("div", {
|
|
42
42
|
className: style.actionsWrapper
|
|
43
|
-
}, /*#__PURE__*/React.createElement(BulletPointMenuButton, actions.bulletPointMenuButton), /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
}, actions.bulletPointMenuButton ? /*#__PURE__*/React.createElement(BulletPointMenuButton, actions.bulletPointMenuButton) : null, /*#__PURE__*/React.createElement("div", {
|
|
44
44
|
className: style.buttonLink
|
|
45
45
|
}, /*#__PURE__*/React.createElement(ButtonLink, actions.firstButtonLink)), /*#__PURE__*/React.createElement("div", {
|
|
46
46
|
className: style.buttonLink
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","getOr","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","BrandTabs","BulletPointMenuButton","RewardsForm","ExpandibleActionableErrorsTable","BulkInfos","style","buildHeader","wizardHeader","actions","steps","tabs","title","onClick","buttonCloseIcon","size","icon","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","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","bool","shape","string","func","isRequired","buttonAriaLabel","menuAriaLabel","buttons","arrayOf","oneOfType","oneOf"],"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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,SAAP,MAAsB,YAAt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V,CAAgB,CAAC,SAAD,CAAhB;EAFR,GArB2B,EAyB3B3F,SAAS,CAACkF,KAAV,cACKrE,+BAA+B,CAACmE,SADrC;IAEE5C,IAAI,EAAEpC,SAAS,CAAC2F,KAAV,CAAgB,CAAC,kBAAD,CAAhB;EAFR,GAzB2B,EA6B3B3F,SAAS,CAACkF,KAAV,cACKpE,SAAS,CAACkE,SADf;IAEE5C,IAAI,EAAEpC,SAAS,CAAC2F,KAAV,CAAgB,CAAC,oBAAD,CAAhB;EAFR,GA7B2B,CAApB,CA5BgB;EA8DzB3C,YAAY,EAAEhD,SAAS,CAACkF,KAAV,CAAgB;IAC5BrC,KAAK,EAAE7C,SAAS,CAACmF,MADW;IAE5B7D,OAAO,EAAEtB,SAAS,CAACoF;EAFS,CAAhB,CA9DW;EAkEzBnC,QAAQ,EAAEjD,SAAS,CAACkF,KAAV,CAAgB;IACxB9C,IAAI,EAAEpC,SAAS,CAAC2F,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;IAExB9C,KAAK,EAAE7C,SAAS,CAACmF,MAFO;IAGxB7D,OAAO,EAAEtB,SAAS,CAACoF;EAHK,CAAhB;AAlEe,CAA3B;AAyEA,eAAelB,cAAf"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","getOr","PropTypes","ButtonLink","ButtonLinkIconOnly","WizardSteps","WizardSummary","BrandForm","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","BrandTabs","BulletPointMenuButton","RewardsForm","ExpandibleActionableErrorsTable","BulkInfos","style","buildHeader","wizardHeader","actions","steps","tabs","title","onClick","buttonCloseIcon","size","icon","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","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","bool","shape","string","func","isRequired","buttonAriaLabel","menuAriaLabel","buttons","arrayOf","oneOfType","oneOf"],"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 {actions.bulletPointMenuButton ? (\n <BulletPointMenuButton {...actions.bulletPointMenuButton} />\n ) : null}\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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,KAAP,MAAkB,iBAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,kBAAP,MAA+B,kCAA/B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,SAAP,MAAsB,eAAtB;AACA,OAAOC,gBAAP,MAA6B,wBAA7B;AACA,OAAOC,6BAAP,MAA0C,6BAA1C;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,qBAAP,MAAkC,yCAAlC;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,+BAAP,MAA4C,4CAA5C;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,WAAW,GAAG,CAACC,YAAD,EAAeC,OAAf,EAAwBC,KAA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AAV,CAAgB;IACxB9C,IAAI,EAAEpC,SAAS,CAAC2F,KAAV,CAAgB,CAAC,MAAD,EAAS,SAAT,CAAhB,CADkB;IAExB9C,KAAK,EAAE7C,SAAS,CAACmF,MAFO;IAGxB7D,OAAO,EAAEtB,SAAS,CAACoF;EAHK,CAAhB;AAlEe,CAA3B;AAyEA,eAAelB,cAAf"}
|
|
@@ -248,6 +248,7 @@ declare namespace PlayerLoading {
|
|
|
248
248
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
249
249
|
}> | null | undefined>>;
|
|
250
250
|
title: PropTypes.Requireable<string>;
|
|
251
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
251
252
|
}> | null | undefined>>;
|
|
252
253
|
}>>;
|
|
253
254
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -299,6 +299,7 @@ declare namespace SlidePlayer {
|
|
|
299
299
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
300
300
|
}> | null | undefined>>;
|
|
301
301
|
title: PropTypes.Requireable<string>;
|
|
302
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
302
303
|
}> | null | undefined>>;
|
|
303
304
|
}>>;
|
|
304
305
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -564,6 +565,7 @@ declare namespace SlidePlayer {
|
|
|
564
565
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
565
566
|
}> | null | undefined>>;
|
|
566
567
|
title: PropTypes.Requireable<string>;
|
|
568
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
567
569
|
}> | null | undefined>>;
|
|
568
570
|
}>>;
|
|
569
571
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -305,6 +305,7 @@ declare namespace SlidesPlayer {
|
|
|
305
305
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
306
306
|
}> | null | undefined>>;
|
|
307
307
|
title: PropTypes.Requireable<string>;
|
|
308
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
308
309
|
}> | null | undefined>>;
|
|
309
310
|
}>>;
|
|
310
311
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|
|
@@ -333,6 +333,7 @@ declare class PopinCorrection extends React.Component<any, any, any> {
|
|
|
333
333
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
334
334
|
}> | null | undefined>>;
|
|
335
335
|
title: PropTypes.Requireable<string>;
|
|
336
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
336
337
|
}> | null | undefined>>;
|
|
337
338
|
}>>;
|
|
338
339
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
|
|
@@ -425,6 +425,7 @@ declare namespace PopinEnd {
|
|
|
425
425
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
426
426
|
}> | null | undefined>>;
|
|
427
427
|
title: PropTypes.Requireable<string>;
|
|
428
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
428
429
|
}> | null | undefined>>;
|
|
429
430
|
}>>;
|
|
430
431
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -756,6 +756,7 @@ declare const AppReview: {
|
|
|
756
756
|
emptyStateSecondMessage: import("prop-types").Requireable<string>;
|
|
757
757
|
}> | null | undefined>>;
|
|
758
758
|
title: import("prop-types").Requireable<string>;
|
|
759
|
+
isFetching: import("prop-types").Requireable<boolean>;
|
|
759
760
|
}> | null | undefined>>;
|
|
760
761
|
}>>;
|
|
761
762
|
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpD,CAAC;AAIF,eAAe,SAAS,CAAC"}
|
|
@@ -756,6 +756,7 @@ declare const propTypes: {
|
|
|
756
756
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
757
757
|
}> | null | undefined>>;
|
|
758
758
|
title: PropTypes.Requireable<string>;
|
|
759
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
759
760
|
}> | null | undefined>>;
|
|
760
761
|
}>>;
|
|
761
762
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAgC,EAC9B,mBAAmB,EACpB,MAAM,8CAA8C,CAAC;AAEtD,OAA8B,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAEzF,OAA+B,EAC7B,gBAAgB,EACjB,MAAM,oDAAoD,CAAC;AAE5D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,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C9B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC"}
|
|
@@ -760,6 +760,7 @@ declare const propTypes: {
|
|
|
760
760
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
761
761
|
}> | null | undefined>>;
|
|
762
762
|
title: PropTypes.Requireable<string>;
|
|
763
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
763
764
|
}> | null | undefined>>;
|
|
764
765
|
}>>;
|
|
765
766
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -475,6 +475,7 @@ declare namespace BrandUpdate {
|
|
|
475
475
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
476
476
|
}> | null | undefined>>;
|
|
477
477
|
title: PropTypes.Requireable<string>;
|
|
478
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
478
479
|
}> | PropTypes.InferProps<{
|
|
479
480
|
key: PropTypes.Requireable<string>;
|
|
480
481
|
type: PropTypes.Requireable<string>;
|
|
@@ -950,6 +951,7 @@ declare namespace BrandUpdate {
|
|
|
950
951
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
951
952
|
}> | null | undefined>>;
|
|
952
953
|
title: PropTypes.Requireable<string>;
|
|
954
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
953
955
|
}> | null | undefined>>;
|
|
954
956
|
}>>;
|
|
955
957
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -249,6 +249,7 @@ declare namespace Dashboard {
|
|
|
249
249
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
250
250
|
}> | null | undefined>>;
|
|
251
251
|
title: PropTypes.Requireable<string>;
|
|
252
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
252
253
|
}> | null | undefined>>;
|
|
253
254
|
}>>;
|
|
254
255
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -517,6 +518,7 @@ declare namespace Dashboard {
|
|
|
517
518
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
518
519
|
}> | null | undefined>>;
|
|
519
520
|
title: PropTypes.Requireable<string>;
|
|
521
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
520
522
|
}> | null | undefined>>;
|
|
521
523
|
}>>;
|
|
522
524
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -421,6 +421,7 @@ declare namespace SearchPage {
|
|
|
421
421
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
422
422
|
}> | null | undefined>>;
|
|
423
423
|
title: PropTypes.Requireable<string>;
|
|
424
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
424
425
|
}> | null | undefined>>;
|
|
425
426
|
}>>;
|
|
426
427
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -266,6 +266,7 @@ declare namespace ExternalCourse {
|
|
|
266
266
|
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
267
267
|
}> | null | undefined>>;
|
|
268
268
|
title: PropTypes.Requireable<string>;
|
|
269
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
269
270
|
}> | null | undefined>>;
|
|
270
271
|
}>>;
|
|
271
272
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|