@coorpacademy/components 11.35.0 → 11.35.2-alpha.1
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/organism/header-with-actions/index.d.ts +22 -8
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +85 -7
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/types.d.ts +44 -13
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +22 -6
- package/es/organism/header-with-actions/types.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +22 -8
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +3 -1
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +4 -1
- package/lib/organism/header-with-actions/index.d.ts +22 -8
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +85 -7
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/types.d.ts +44 -13
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +22 -6
- package/lib/organism/header-with-actions/types.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +22 -8
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +3 -1
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +4 -1
- package/package.json +3 -3
|
@@ -4,10 +4,7 @@ declare const HeaderWithActions: {
|
|
|
4
4
|
(props: HeaderWithActionsProps): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
7
|
-
|
|
8
|
-
icon: import("prop-types").Validator<string>;
|
|
9
|
-
'data-name': import("prop-types").Validator<string>;
|
|
10
|
-
'aria-label': import("prop-types").Validator<string>;
|
|
7
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
11
8
|
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
12
9
|
}>>;
|
|
13
10
|
title: import("prop-types").Validator<string>;
|
|
@@ -20,7 +17,7 @@ declare const HeaderWithActions: {
|
|
|
20
17
|
display: import("prop-types").Validator<boolean>;
|
|
21
18
|
label: import("prop-types").Requireable<string>;
|
|
22
19
|
}>>>;
|
|
23
|
-
|
|
20
|
+
bulletPointMenuButtonPropTypes: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
24
21
|
'data-name': import("prop-types").Requireable<string>;
|
|
25
22
|
disabled: import("prop-types").Requireable<boolean>;
|
|
26
23
|
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
@@ -53,8 +50,18 @@ declare const HeaderWithActions: {
|
|
|
53
50
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
54
51
|
menuButtonClassName: import("prop-types").Requireable<string>;
|
|
55
52
|
isBulkMenu: import("prop-types").Requireable<boolean>;
|
|
56
|
-
}
|
|
57
|
-
|
|
53
|
+
}> | import("prop-types").InferProps<{
|
|
54
|
+
buttons: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
55
|
+
dataName: import("prop-types").Requireable<string>;
|
|
56
|
+
label: import("prop-types").Validator<string>;
|
|
57
|
+
iconName: import("prop-types").Validator<string>;
|
|
58
|
+
iconColor: import("prop-types").Validator<string>;
|
|
59
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
60
|
+
}> | null | undefined)[]>;
|
|
61
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
62
|
+
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
63
|
+
}> | null | undefined>>;
|
|
64
|
+
actionButtons: import("prop-types").Validator<NonNullable<NonNullable<(import("prop-types").InferProps<{
|
|
58
65
|
type: import("prop-types").Requireable<string>;
|
|
59
66
|
usage: import("prop-types").Requireable<string>;
|
|
60
67
|
label: import("prop-types").Requireable<string>;
|
|
@@ -90,7 +97,14 @@ declare const HeaderWithActions: {
|
|
|
90
97
|
customStyle: import("prop-types").Requireable<{
|
|
91
98
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
92
99
|
}>;
|
|
93
|
-
}> | null | undefined)[]
|
|
100
|
+
}> | null | undefined)[] | (import("prop-types").InferProps<{
|
|
101
|
+
type: import("prop-types").Validator<string>;
|
|
102
|
+
label: import("prop-types").Validator<string>;
|
|
103
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
104
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
105
|
+
iconName: import("prop-types").Validator<string>;
|
|
106
|
+
iconColor: import("prop-types").Validator<string>;
|
|
107
|
+
}> | null | undefined)[] | null | undefined>>>;
|
|
94
108
|
};
|
|
95
109
|
};
|
|
96
110
|
export default HeaderWithActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EACjC,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAsEjB,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -13,6 +13,78 @@ const getDataName = suffix => `header-with-actions-${suffix}`;
|
|
|
13
13
|
const uncappedMap = map.convert({
|
|
14
14
|
cap: false
|
|
15
15
|
});
|
|
16
|
+
const buildCloseButton = ({
|
|
17
|
+
onClick,
|
|
18
|
+
ariaLabel
|
|
19
|
+
}) => {
|
|
20
|
+
return {
|
|
21
|
+
size: 'default',
|
|
22
|
+
icon: 'close',
|
|
23
|
+
'data-name': 'close-button',
|
|
24
|
+
'aria-label': ariaLabel,
|
|
25
|
+
onClick
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const buildButtonMenu = ({
|
|
29
|
+
dataName,
|
|
30
|
+
label,
|
|
31
|
+
iconName,
|
|
32
|
+
iconColor,
|
|
33
|
+
onClick
|
|
34
|
+
}) => {
|
|
35
|
+
return {
|
|
36
|
+
'data-name': dataName,
|
|
37
|
+
label,
|
|
38
|
+
buttonLinkType: 'tertiary',
|
|
39
|
+
icon: {
|
|
40
|
+
position: 'left',
|
|
41
|
+
faIcon: {
|
|
42
|
+
name: iconName,
|
|
43
|
+
color: iconColor,
|
|
44
|
+
size: 14,
|
|
45
|
+
customStyle: {
|
|
46
|
+
padding: 0
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
onClick,
|
|
51
|
+
type: 'defaultLeft'
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const buildActionButton = ({
|
|
55
|
+
type,
|
|
56
|
+
label,
|
|
57
|
+
onClick,
|
|
58
|
+
disabled,
|
|
59
|
+
iconName,
|
|
60
|
+
iconColor
|
|
61
|
+
}) => {
|
|
62
|
+
return {
|
|
63
|
+
type,
|
|
64
|
+
label,
|
|
65
|
+
onClick,
|
|
66
|
+
disabled,
|
|
67
|
+
icon: {
|
|
68
|
+
position: 'left',
|
|
69
|
+
faIcon: {
|
|
70
|
+
name: iconName,
|
|
71
|
+
color: iconColor,
|
|
72
|
+
size: 14,
|
|
73
|
+
customStyle: {
|
|
74
|
+
padding: 0
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
customStyle: {
|
|
79
|
+
fontWeight: '600',
|
|
80
|
+
borderRadius: '12px',
|
|
81
|
+
padding: '0 8px 0 16px'
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
const isButtonActionProps = action => {
|
|
86
|
+
return typeof action.iconName === 'string' && typeof action.iconColor === 'string';
|
|
87
|
+
};
|
|
16
88
|
const HeaderWithActions = props => {
|
|
17
89
|
const {
|
|
18
90
|
closeButton,
|
|
@@ -22,13 +94,23 @@ const HeaderWithActions = props => {
|
|
|
22
94
|
bulletPointMenuButton,
|
|
23
95
|
actionButtons
|
|
24
96
|
} = props;
|
|
97
|
+
const renderedActionButtons = uncappedMap((action, key) => {
|
|
98
|
+
return isButtonActionProps(action) ? /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buildActionButton(action), {
|
|
99
|
+
key: key
|
|
100
|
+
})) : /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
|
|
101
|
+
key: key
|
|
102
|
+
}));
|
|
103
|
+
}, actionButtons);
|
|
25
104
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
105
|
className: style.headerWrapper,
|
|
27
106
|
"data-name": getDataName('wrapper')
|
|
28
107
|
}, /*#__PURE__*/React.createElement("div", {
|
|
29
108
|
className: style.titleAndButtonWrapper,
|
|
30
109
|
"data-name": getDataName('title-and-button-wrapper')
|
|
31
|
-
}, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({},
|
|
110
|
+
}, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, buildCloseButton({
|
|
111
|
+
onClick: closeButton.onClick,
|
|
112
|
+
ariaLabel: closeButton['aria-label']
|
|
113
|
+
}), {
|
|
32
114
|
className: style.button
|
|
33
115
|
})), /*#__PURE__*/React.createElement("div", {
|
|
34
116
|
className: style.titleWrapper
|
|
@@ -44,12 +126,8 @@ const HeaderWithActions = props => {
|
|
|
44
126
|
className: style.buttonsWrapper,
|
|
45
127
|
"data-name": getDataName('buttons-wrapper')
|
|
46
128
|
}, bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, _extends({}, bulletPointMenuButton, {
|
|
47
|
-
|
|
48
|
-
})) : null,
|
|
49
|
-
return /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
|
|
50
|
-
key: key
|
|
51
|
-
}));
|
|
52
|
-
}, actionButtons)));
|
|
129
|
+
buttons: uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)
|
|
130
|
+
})) : null, renderedActionButtons));
|
|
53
131
|
};
|
|
54
132
|
HeaderWithActions.propTypes = process.env.NODE_ENV !== "production" ? headerWithActionsPropTypes : {};
|
|
55
133
|
export default HeaderWithActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","headerWrapper","titleAndButtonWrapper","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","buildCloseButton","onClick","ariaLabel","size","icon","buildButtonMenu","dataName","label","iconName","iconColor","buttonLinkType","position","faIcon","name","color","customStyle","padding","type","buildActionButton","disabled","fontWeight","borderRadius","isButtonActionProps","action","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","renderedActionButtons","key","createElement","_extends","className","headerWrapper","titleAndButtonWrapper","button","titleWrapper","statusWrapper","display","buttonsWrapper","buttons","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {\n HeaderWithActionsProps,\n ButtonMenuProps,\n ButtonActionProps\n} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst buildCloseButton = ({onClick, ariaLabel}: {onClick: () => void; ariaLabel: string}) => {\n return {\n size: 'default',\n icon: 'close',\n 'data-name': 'close-button',\n 'aria-label': ariaLabel,\n onClick\n };\n};\n\nconst buildButtonMenu = ({dataName, label, iconName, iconColor, onClick}: ButtonMenuProps) => {\n return {\n 'data-name': dataName,\n label,\n buttonLinkType: 'tertiary',\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n onClick,\n type: 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n return {\n type,\n label,\n onClick,\n disabled,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n padding: '0 8px 0 16px'\n }\n };\n};\n\nconst isButtonActionProps = (action: any): action is ButtonActionProps => {\n return typeof action.iconName === 'string' && typeof action.iconColor === 'string';\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n const renderedActionButtons = uncappedMap(\n (action: ButtonLinkProps | ButtonActionProps, key: string) => {\n return isButtonActionProps(action) ? (\n <ButtonLink {...buildActionButton(action)} key={key} />\n ) : (\n <ButtonLink {...action} key={key} />\n );\n },\n actionButtons\n );\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon\n {...buildCloseButton({\n onClick: closeButton.onClick,\n ariaLabel: closeButton['aria-label']\n })}\n className={style.button}\n />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n buttons={uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)}\n />\n ) : null}\n {renderedActionButtons}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,GAAG,MAAM,gBAAgB;AAEhC,OAAOC,qBAAqB,MAAM,yCAAyC;AAC3E,OAAOC,0BAA0B,MAI1B,SAAS;AAChB,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAIC,MAAc,IAAK,uBAAuBA,MAAM,EAAE;AACvE;AACA,MAAMC,WAAW,GAAGT,GAAG,CAACU,OAAO,CAAC;EAACC,GAAG,EAAE;AAAK,CAAC,CAAC;AAE7C,MAAMC,gBAAgB,GAAGA,CAAC;EAACC,OAAO;EAAEC;AAAmD,CAAC,KAAK;EAC3F,OAAO;IACLC,IAAI,EAAE,SAAS;IACfC,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAEF,SAAS;IACvBD;EACF,CAAC;AACH,CAAC;AAED,MAAMI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ACNrB,KAAA,CAAAgD,aAAA;IAAIE,SAAS,EAAE1C,KAAK,CAACiC,KAAM;IAAC,cAAYA,KAAM;IAAC,aAAWhC,WAAW,CAAC,OAAO;EAAE,GAC5EgC,KACC,CACD,CACF,CAAC,eACNzC,KAAA,CAAAgD,aAAA;IAAKE,SAAS,EAAE1C,KAAK,CAACiD,cAAe;IAAC,aAAWhD,WAAW,CAAC,iBAAiB;EAAE,GAC7EmC,qBAAqB,IAAI,CAAC3C,OAAO,CAAC2C,qBAAqB,CAACc,OAAO,CAAC,gBAC/D1D,KAAA,CAAAgD,aAAA,CAAC1C,qBAAqB,EAAA2C,QAAA,KAChBL,qBAAqB;IACzBc,OAAO,EAAE/C,WAAW,CAACQ,eAAe,EAAEyB,qBAAqB,CAACc,OAAO;EAAE,EACtE,CAAC,GACA,IAAI,EACPZ,qBACE,CACF,CAAC;AAEV,CAAC;AAEDR,iBAAiB,CAACqB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGvD,0BAA0B;AAExD,eAAe+B,iBAAiB","ignoreList":[]}
|
|
@@ -3,10 +3,7 @@ import { BulletPointMenuButtonProps } from '../../molecule/bullet-point-menu-but
|
|
|
3
3
|
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
4
4
|
declare const headerWithActionsPropTypes: {
|
|
5
5
|
closeButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
|
|
7
|
-
icon: PropTypes.Validator<string>;
|
|
8
|
-
'data-name': PropTypes.Validator<string>;
|
|
9
|
-
'aria-label': PropTypes.Validator<string>;
|
|
6
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
10
7
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
8
|
}>>;
|
|
12
9
|
title: PropTypes.Validator<string>;
|
|
@@ -19,7 +16,7 @@ declare const headerWithActionsPropTypes: {
|
|
|
19
16
|
display: PropTypes.Validator<boolean>;
|
|
20
17
|
label: PropTypes.Requireable<string>;
|
|
21
18
|
}>>>;
|
|
22
|
-
|
|
19
|
+
bulletPointMenuButtonPropTypes: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
23
20
|
'data-name': PropTypes.Requireable<string>;
|
|
24
21
|
disabled: PropTypes.Requireable<boolean>;
|
|
25
22
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
@@ -52,8 +49,18 @@ declare const headerWithActionsPropTypes: {
|
|
|
52
49
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
50
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
54
51
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
55
|
-
}
|
|
56
|
-
|
|
52
|
+
}> | PropTypes.InferProps<{
|
|
53
|
+
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
54
|
+
dataName: PropTypes.Requireable<string>;
|
|
55
|
+
label: PropTypes.Validator<string>;
|
|
56
|
+
iconName: PropTypes.Validator<string>;
|
|
57
|
+
iconColor: PropTypes.Validator<string>;
|
|
58
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
59
|
+
}> | null | undefined)[]>;
|
|
60
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
61
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
62
|
+
}> | null | undefined>>;
|
|
63
|
+
actionButtons: PropTypes.Validator<NonNullable<NonNullable<(PropTypes.InferProps<{
|
|
57
64
|
type: PropTypes.Requireable<string>;
|
|
58
65
|
usage: PropTypes.Requireable<string>;
|
|
59
66
|
label: PropTypes.Requireable<string>;
|
|
@@ -89,7 +96,14 @@ declare const headerWithActionsPropTypes: {
|
|
|
89
96
|
customStyle: PropTypes.Requireable<{
|
|
90
97
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
91
98
|
}>;
|
|
92
|
-
}> | null | undefined)[]
|
|
99
|
+
}> | null | undefined)[] | (PropTypes.InferProps<{
|
|
100
|
+
type: PropTypes.Validator<string>;
|
|
101
|
+
label: PropTypes.Validator<string>;
|
|
102
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
103
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
104
|
+
iconName: PropTypes.Validator<string>;
|
|
105
|
+
iconColor: PropTypes.Validator<string>;
|
|
106
|
+
}> | null | undefined)[] | null | undefined>>>;
|
|
93
107
|
};
|
|
94
108
|
export default headerWithActionsPropTypes;
|
|
95
109
|
declare type TagProps = {
|
|
@@ -102,19 +116,36 @@ declare type SaveStatusProps = {
|
|
|
102
116
|
label?: 'Unsaved changes' | 'Saved';
|
|
103
117
|
};
|
|
104
118
|
declare type CloseButtonProps = {
|
|
105
|
-
size: 'default' | 'small' | 'responsive';
|
|
106
|
-
icon: string;
|
|
107
|
-
'data-name': string;
|
|
108
119
|
'aria-label': string;
|
|
109
120
|
onClick: () => void;
|
|
110
121
|
};
|
|
122
|
+
export declare type ButtonMenuProps = {
|
|
123
|
+
dataName: string;
|
|
124
|
+
label: string;
|
|
125
|
+
iconName: string;
|
|
126
|
+
iconColor: string;
|
|
127
|
+
onClick: () => void;
|
|
128
|
+
};
|
|
129
|
+
declare type BulletPointMenuButtonCustomProps = {
|
|
130
|
+
buttons: ButtonMenuProps[];
|
|
131
|
+
onClick: () => void;
|
|
132
|
+
buttonAriaLabel: string;
|
|
133
|
+
};
|
|
134
|
+
export declare type ButtonActionProps = {
|
|
135
|
+
type: 'primary' | 'secondary';
|
|
136
|
+
label: string;
|
|
137
|
+
onClick: () => void;
|
|
138
|
+
disabled?: boolean;
|
|
139
|
+
iconName: string;
|
|
140
|
+
iconColor: string;
|
|
141
|
+
};
|
|
111
142
|
export declare type HeaderWithActionsProps = {
|
|
112
143
|
closeButton: CloseButtonProps;
|
|
113
144
|
title: string;
|
|
114
145
|
tag: TagProps;
|
|
115
146
|
saveStatus: SaveStatusProps;
|
|
116
|
-
actionButtons: ButtonLinkProps[];
|
|
117
|
-
bulletPointMenuButton?: BulletPointMenuButtonProps;
|
|
147
|
+
actionButtons: ButtonLinkProps[] | ButtonActionProps[];
|
|
148
|
+
bulletPointMenuButton?: BulletPointMenuButtonProps | BulletPointMenuButtonCustomProps;
|
|
118
149
|
};
|
|
119
150
|
export declare type HeaderWithActionsPropsFixture = {
|
|
120
151
|
props: HeaderWithActionsProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAuC,EACrC,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AACvD,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAuC,EACrC,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AACvD,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAwBlF,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,QAAQ,GAAG;IACd,KAAK,EAAE,WAAW,GAAG,iBAAiB,GAAG,OAAO,GAAG,UAAU,CAAC;IAC9D,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,aAAK,eAAe,GAAG;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,aAAK,gCAAgC,GAAG;IACtC,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,EAAE,eAAe,EAAE,GAAG,iBAAiB,EAAE,CAAC;IACvD,qBAAqB,CAAC,EAAE,0BAA0B,GAAG,gCAAgC,CAAC;CACvF,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
|
|
@@ -2,12 +2,24 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import bulletPointMenuButtonPropTypes from '../../molecule/bullet-point-menu-button/types';
|
|
3
3
|
import ButtonLinkPropTypes from '../../atom/button-link/types';
|
|
4
4
|
const closeButtonPropTypes = {
|
|
5
|
-
|
|
6
|
-
icon: PropTypes.string.isRequired,
|
|
7
|
-
'data-name': PropTypes.string.isRequired,
|
|
8
|
-
'aria-label': PropTypes.string.isRequired,
|
|
5
|
+
'aria-label': PropTypes.string,
|
|
9
6
|
onClick: PropTypes.func.isRequired
|
|
10
7
|
};
|
|
8
|
+
const ButtonMenuPropTypes = {
|
|
9
|
+
dataName: PropTypes.string,
|
|
10
|
+
label: PropTypes.string.isRequired,
|
|
11
|
+
iconName: PropTypes.string.isRequired,
|
|
12
|
+
iconColor: PropTypes.string.isRequired,
|
|
13
|
+
onClick: PropTypes.func.isRequired
|
|
14
|
+
};
|
|
15
|
+
const ButtonActionPropTypes = {
|
|
16
|
+
type: PropTypes.string.isRequired,
|
|
17
|
+
label: PropTypes.string.isRequired,
|
|
18
|
+
onClick: PropTypes.func.isRequired,
|
|
19
|
+
disabled: PropTypes.bool,
|
|
20
|
+
iconName: PropTypes.string.isRequired,
|
|
21
|
+
iconColor: PropTypes.string.isRequired
|
|
22
|
+
};
|
|
11
23
|
const headerWithActionsPropTypes = {
|
|
12
24
|
closeButton: PropTypes.shape(closeButtonPropTypes),
|
|
13
25
|
title: PropTypes.string.isRequired,
|
|
@@ -20,8 +32,12 @@ const headerWithActionsPropTypes = {
|
|
|
20
32
|
display: PropTypes.bool.isRequired,
|
|
21
33
|
label: PropTypes.oneOf(['Unsaved changes', 'Saved'])
|
|
22
34
|
}).isRequired,
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
bulletPointMenuButtonPropTypes: PropTypes.oneOfType([PropTypes.shape(bulletPointMenuButtonPropTypes), PropTypes.shape({
|
|
36
|
+
buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,
|
|
37
|
+
onClick: PropTypes.func.isRequired,
|
|
38
|
+
buttonAriaLabel: PropTypes.string
|
|
39
|
+
})]),
|
|
40
|
+
actionButtons: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)), PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes))]).isRequired
|
|
25
41
|
};
|
|
26
42
|
export default headerWithActionsPropTypes;
|
|
27
43
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","bulletPointMenuButtonPropTypes","ButtonLinkPropTypes","closeButtonPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","bulletPointMenuButtonPropTypes","ButtonLinkPropTypes","closeButtonPropTypes","string","onClick","func","isRequired","ButtonMenuPropTypes","dataName","label","iconName","iconColor","ButtonActionPropTypes","type","disabled","bool","headerWithActionsPropTypes","closeButton","shape","title","tag","oneOf","size","saveStatus","display","oneOfType","buttons","arrayOf","buttonAriaLabel","actionButtons"],"sources":["../../../src/organism/header-with-actions/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport bulletPointMenuButtonPropTypes, {\n BulletPointMenuButtonProps\n} from '../../molecule/bullet-point-menu-button/types';\nimport ButtonLinkPropTypes, {ButtonLinkProps} from '../../atom/button-link/types';\n\nconst closeButtonPropTypes = {\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func.isRequired\n};\n\nconst ButtonMenuPropTypes = {\n dataName: PropTypes.string,\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\n\nconst ButtonActionPropTypes = {\n type: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string.isRequired\n};\n\nconst headerWithActionsPropTypes = {\n closeButton: PropTypes.shape(closeButtonPropTypes),\n title: PropTypes.string.isRequired,\n tag: PropTypes.shape({\n label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,\n type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,\n size: PropTypes.string.isRequired\n }).isRequired,\n saveStatus: PropTypes.shape({\n display: PropTypes.bool.isRequired,\n label: PropTypes.oneOf(['Unsaved changes', 'Saved'])\n }).isRequired,\n bulletPointMenuButtonPropTypes: PropTypes.oneOfType([\n PropTypes.shape(bulletPointMenuButtonPropTypes),\n PropTypes.shape({\n buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,\n onClick: PropTypes.func.isRequired,\n buttonAriaLabel: PropTypes.string\n })\n ]),\n actionButtons: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)),\n PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes))\n ]).isRequired\n};\n\nexport default headerWithActionsPropTypes;\n\ntype TagProps = {\n label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';\n type: 'success' | 'progress' | 'warning';\n size: string;\n};\n\ntype SaveStatusProps = {\n display: boolean;\n label?: 'Unsaved changes' | 'Saved';\n};\n\ntype CloseButtonProps = {\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type ButtonMenuProps = {\n dataName: string;\n label: string;\n iconName: string;\n iconColor: string;\n onClick: () => void;\n};\n\ntype BulletPointMenuButtonCustomProps = {\n buttons: ButtonMenuProps[];\n onClick: () => void;\n buttonAriaLabel: string;\n};\n\nexport type ButtonActionProps = {\n type: 'primary' | 'secondary';\n label: string;\n onClick: () => void;\n disabled?: boolean;\n iconName: string;\n iconColor: string;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n actionButtons: ButtonLinkProps[] | ButtonActionProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps | BulletPointMenuButtonCustomProps;\n};\n\nexport type HeaderWithActionsPropsFixture = {props: HeaderWithActionsProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,8BAA8B,MAE9B,+CAA+C;AACtD,OAAOC,mBAAmB,MAAyB,8BAA8B;AAEjF,MAAMC,oBAAoB,GAAG;EAC3B,YAAY,EAAEH,SAAS,CAACI,MAAM;EAC9BC,O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IAAI,CAACT,UAAU;IAClCG,KAAK,EAAEV,SAAS,CAACsB,KAAK,CAAC,CAAC,iBAAiB,EAAE,OAAO,CAAC;EACrD,CAAC,CAAC,CAACf,UAAU;EACbN,8BAA8B,EAAED,SAAS,CAAC0B,SAAS,CAAC,CAClD1B,SAAS,CAACmB,KAAK,CAAClB,8BAA8B,CAAC,EAC/CD,SAAS,CAACmB,KAAK,CAAC;IACdQ,OAAO,EAAE3B,SAAS,CAAC4B,OAAO,CAAC5B,SAAS,CAACmB,KAAK,CAACX,mBAAmB,CAAC,CAAC,CAACD,UAAU;IAC3EF,OAAO,EAAEL,SAAS,CAACM,IAAI,CAACC,UAAU;IAClCsB,eAAe,EAAE7B,SAAS,CAACI;EAC7B,CAAC,CAAC,CACH,CAAC;EACF0B,aAAa,EAAE9B,SAAS,CAAC0B,SAAS,CAAC,CACjC1B,SAAS,CAAC4B,OAAO,CAAC5B,SAAS,CAACmB,KAAK,CAACjB,mBAAmB,CAAC,CAAC,EACvDF,SAAS,CAAC4B,OAAO,CAAC5B,SAAS,CAACmB,KAAK,CAACN,qBAAqB,CAAC,CAAC,CAC1D,CAAC,CAACN;AACL,CAAC;AAED,eAAeU,0BAA0B","ignoreList":[]}
|
|
@@ -183,10 +183,7 @@ declare namespace BrandUpdate {
|
|
|
183
183
|
}> | PropTypes.InferProps<{
|
|
184
184
|
type: PropTypes.Validator<string>;
|
|
185
185
|
closeButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
186
|
-
|
|
187
|
-
icon: PropTypes.Validator<string>;
|
|
188
|
-
'data-name': PropTypes.Validator<string>;
|
|
189
|
-
'aria-label': PropTypes.Validator<string>;
|
|
186
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
190
187
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
191
188
|
}>>;
|
|
192
189
|
title: PropTypes.Validator<string>;
|
|
@@ -199,7 +196,7 @@ declare namespace BrandUpdate {
|
|
|
199
196
|
display: PropTypes.Validator<boolean>;
|
|
200
197
|
label: PropTypes.Requireable<string>;
|
|
201
198
|
}>>>;
|
|
202
|
-
|
|
199
|
+
bulletPointMenuButtonPropTypes: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
203
200
|
'data-name': PropTypes.Requireable<string>;
|
|
204
201
|
disabled: PropTypes.Requireable<boolean>;
|
|
205
202
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
@@ -232,8 +229,18 @@ declare namespace BrandUpdate {
|
|
|
232
229
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
233
230
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
234
231
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
235
|
-
}
|
|
236
|
-
|
|
232
|
+
}> | PropTypes.InferProps<{
|
|
233
|
+
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
234
|
+
dataName: PropTypes.Requireable<string>;
|
|
235
|
+
label: PropTypes.Validator<string>;
|
|
236
|
+
iconName: PropTypes.Validator<string>;
|
|
237
|
+
iconColor: PropTypes.Validator<string>;
|
|
238
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
239
|
+
}> | null | undefined)[]>;
|
|
240
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
241
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
242
|
+
}> | null | undefined>>;
|
|
243
|
+
actionButtons: PropTypes.Validator<NonNullable<NonNullable<(PropTypes.InferProps<{
|
|
237
244
|
type: PropTypes.Requireable<string>;
|
|
238
245
|
usage: PropTypes.Requireable<string>;
|
|
239
246
|
label: PropTypes.Requireable<string>;
|
|
@@ -269,7 +276,14 @@ declare namespace BrandUpdate {
|
|
|
269
276
|
customStyle: PropTypes.Requireable<{
|
|
270
277
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
271
278
|
}>;
|
|
272
|
-
}> | null | undefined)[]
|
|
279
|
+
}> | null | undefined)[] | (PropTypes.InferProps<{
|
|
280
|
+
type: PropTypes.Validator<string>;
|
|
281
|
+
label: PropTypes.Validator<string>;
|
|
282
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
283
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
284
|
+
iconName: PropTypes.Validator<string>;
|
|
285
|
+
iconColor: PropTypes.Validator<string>;
|
|
286
|
+
}> | null | undefined)[] | null | undefined>>>;
|
|
273
287
|
}> | null | undefined>>;
|
|
274
288
|
export const items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
275
289
|
key: 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":";AA+OA,sDAgDC"}
|
|
@@ -100,7 +100,9 @@ const buildNotifications = notifications => {
|
|
|
100
100
|
const buildHeader = header => {
|
|
101
101
|
return /*#__PURE__*/React.createElement("div", {
|
|
102
102
|
className: style.header
|
|
103
|
-
}, header.type === 'header-with-actions' ? /*#__PURE__*/React.createElement(HeaderWithActions, header) : /*#__PURE__*/React.createElement(
|
|
103
|
+
}, header.type === 'header-with-actions' ? /*#__PURE__*/React.createElement(HeaderWithActions, header) : /*#__PURE__*/React.createElement("div", {
|
|
104
|
+
className: style.headerStickyDefault
|
|
105
|
+
}, /*#__PURE__*/React.createElement(Header, header)));
|
|
104
106
|
};
|
|
105
107
|
const buildDefaultPopin = popin => {
|
|
106
108
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BrandLearningPriorities","Banner","Header","HeaderWithActions","Loader","Accordion","CmPopin","ButtonLinkIcon","ExpandibleActionableTable","BulkInfos","Title","SkillEdition","IconPickerModal","style","POPIN_THEMES","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","createElement","key","title","type","_extends","styles","selected","uppercase","target","setChildrenAsHtml","buildLeftNavigation","logo","items","onItemClick","formattedTabs","href","index","children","iconType","formattedTabsViews","tab","className","tabs","navigation","src","tabProps","theme","onClick","buildNotifications","notifications","notificationsList","notification","temporary","permanentNotification","permanentNotifications","buildHeader","header","buildDefaultPopin","popin","icon","popinIcon","secondButton","popinSecondButton","themeIcon","actionButton","themeActionButton","buildPopin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","dangerouslySetInnerHTML","__html","closeButton","size","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","buildTitle","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","titleView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","process","env","NODE_ENV","arrayOf","shape","oneOfType","oneOf","isRequired","string","bool","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport BrandLearningPriorities from '../../../organism/brand-learning-priorities';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport HeaderWithActions from '../../../organism/header-with-actions';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIcon from '../../../atom/button-link-icon';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../../molecule/bulk-infos';\nimport Title from '../../../atom/title';\nimport SkillEdition from '../../../organism/skill-edition';\nimport IconPickerModal from '../../../molecule/icon-picker-modal';\nimport style from './style.css';\nimport {POPIN_THEMES} from './utils';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n setChildrenAsHtml={false}\n />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n {header.type === 'header-with-actions' ? (\n <HeaderWithActions {...header} />\n ) : (\n <Header {...header} />\n )}\n </div>\n );\n};\n\nconst buildDefaultPopin = popin => {\n const {theme, icon: popinIcon, secondButton: popinSecondButton} = popin;\n const {icon: themeIcon, actionButton: themeActionButton} = POPIN_THEMES[theme] ?? {};\n\n return (\n <div className={style.popin}>\n <CmPopin\n {...popin}\n icon={popinIcon || themeIcon}\n secondButton={{...popinSecondButton, ...themeActionButton}}\n />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n if (isEmpty(popin)) return;\n\n switch (popin.type) {\n case 'icon-picker':\n return <IconPickerModal {...popin} />;\n default:\n return buildDefaultPopin(popin);\n }\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIcon\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'bulk-empty-dashboard':\n return <BulkInfos {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n case 'learning-priorities':\n return <BrandLearningPriorities {...content} />;\n case 'skill-edition':\n return <SkillEdition {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst buildTitle = title => {\n if (isEmpty(title)) return;\n return (\n <div className={style.title}>\n <Title {...title} />\n </div>\n );\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight,\n title\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n const titleView = buildTitle(title);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {titleView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.oneOfType([\n PropTypes.shape({...Header.propTypes}),\n PropTypes.shape({\n ...HeaderWithActions.propTypes,\n type: PropTypes.oneOf(['header-with-actions']).isRequired\n })\n ]),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...BulkInfos.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['bulk-empty-dashboard'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n }),\n PropTypes.shape({\n ...BrandLearningPriorities.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['learning-priorities'])\n }),\n PropTypes.shape({\n ...SkillEdition.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['skill-edition'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.oneOfType([\n PropTypes.shape({\n ...CmPopin.propTypes,\n theme: PropTypes.oneOf(['published', 'archived', 'deleted'])\n }),\n PropTypes.shape({\n ...IconPickerModal.propTypes,\n type: PropTypes.oneOf(['icon-picker'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool,\n title: PropTypes.shape(Title.propTypes)\n};\n\nexport default BrandUpdate;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,MAAM,8BAA8B;AACpD,SAAQC,YAAY,EAAEC,QAAQ,QAAO,2BAA2B;AAChE,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,UAAU,MAAM,+BAA+B;AACtD,OAAOC,WAAW,MAAM,gCAAgC;AACxD,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,cAAc,MAAM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AAS,CAACwI,KAAK,CAAC;IACvB,GAAG7H,UAAU,CAACwH,SAAS;IACvBxF,GAAG,EAAE3C,SAAS,CAAC4I,MAAM;IACrB/F,IAAI,EAAE7C,SAAS,CAAC0I,KAAK,CAAC,CAAC,MAAM,CAAC;EAChC,CAAC,CAAC;EACFnF,WAAW,EAAEvD,SAAS,CAAC8I,IAAI;EAC3B5B,gBAAgB,EAAElH,SAAS,CAAC6I,IAAI;EAChCjG,KAAK,EAAE5C,SAAS,CAACwI,KAAK,CAAC7G,KAAK,CAACwG,SAAS;AACxC,CAAC;AAED,eAAenB,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BrandLearningPriorities","Banner","Header","HeaderWithActions","Loader","Accordion","CmPopin","ButtonLinkIcon","ExpandibleActionableTable","BulkInfos","Title","SkillEdition","IconPickerModal","style","POPIN_THEMES","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","createElement","key","title","type","_extends","styles","selected","uppercase","target","setChildrenAsHtml","buildLeftNavigation","logo","items","onItemClick","formattedTabs","href","index","children","iconType","formattedTabsViews","tab","className","tabs","navigation","src","tabProps","theme","onClick","buildNotifications","notifications","notificationsList","notification","temporary","permanentNotification","permanentNotifications","buildHeader","header","headerStickyDefault","buildDefaultPopin","popin","icon","popinIcon","secondButton","popinSecondButton","themeIcon","actionButton","themeActionButton","buildPopin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","dangerouslySetInnerHTML","__html","closeButton","size","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","buildTitle","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","titleView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","process","env","NODE_ENV","arrayOf","shape","oneOfType","oneOf","isRequired","string","bool","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport BrandLearningPriorities from '../../../organism/brand-learning-priorities';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport HeaderWithActions from '../../../organism/header-with-actions';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIcon from '../../../atom/button-link-icon';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../../molecule/bulk-infos';\nimport Title from '../../../atom/title';\nimport SkillEdition from '../../../organism/skill-edition';\nimport IconPickerModal from '../../../molecule/icon-picker-modal';\nimport style from './style.css';\nimport {POPIN_THEMES} from './utils';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n setChildrenAsHtml={false}\n />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n {header.type === 'header-with-actions' ? (\n <HeaderWithActions {...header} />\n ) : (\n <div className={style.headerStickyDefault}>\n <Header {...header} />\n </div>\n )}\n </div>\n );\n};\n\nconst buildDefaultPopin = popin => {\n const {theme, icon: popinIcon, secondButton: popinSecondButton} = popin;\n const {icon: themeIcon, actionButton: themeActionButton} = POPIN_THEMES[theme] ?? {};\n\n return (\n <div className={style.popin}>\n <CmPopin\n {...popin}\n icon={popinIcon || themeIcon}\n secondButton={{...popinSecondButton, ...themeActionButton}}\n />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n if (isEmpty(popin)) return;\n\n switch (popin.type) {\n case 'icon-picker':\n return <IconPickerModal {...popin} />;\n default:\n return buildDefaultPopin(popin);\n }\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIcon\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'bulk-empty-dashboard':\n return <BulkInfos {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n case 'learning-priorities':\n return <BrandLearningPriorities {...content} />;\n case 'skill-edition':\n return <SkillEdition {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst buildTitle = title => {\n if (isEmpty(title)) return;\n return (\n <div className={style.title}>\n <Title {...title} />\n </div>\n );\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight,\n title\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n const titleView = buildTitle(title);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {titleView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.oneOfType([\n PropTypes.shape({...Header.propTypes}),\n PropTypes.shape({\n ...HeaderWithActions.propTypes,\n type: PropTypes.oneOf(['header-with-actions']).isRequired\n })\n ]),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...BulkInfos.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['bulk-empty-dashboard'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n }),\n PropTypes.shape({\n ...BrandLearningPriorities.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['learning-priorities'])\n }),\n PropTypes.shape({\n ...SkillEdition.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['skill-edition'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.oneOfType([\n PropTypes.shape({\n ...CmPopin.propTypes,\n theme: PropTypes.oneOf(['published', 'archived', 'deleted'])\n }),\n PropTypes.shape({\n ...IconPickerModal.propTypes,\n type: PropTypes.oneOf(['icon-picker'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool,\n title: PropTypes.shape(Title.propTypes)\n};\n\nexport default BrandUpdate;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,IAAI,MAAM,gBAAgB;AACjC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,MAAM,8BAA8B;AACpD,SAAQC,YAAY,EAAEC,QAAQ,QAAO,2BAA2B;AAChE,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,UAAU,MAAM,+BAA+B;AACtD,OAAOC,WAAW,MAAM,gCAAgC;AACxD,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,uBAAuB,MAAM,6CAA6C;AACjF,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,OAAOC,MAAM,MAAM,gCAAgC;AACnD,OAAOC,iBAAiB,MAAM,uCAAuC;AACrE,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,SAAS,MAAM,2CAA2C;AACjE,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,yBAAyB,MAAM,+CAA+C;AACrF,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,KAAK,MAAM,qBAAqB;AACvC,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,eAAe,MAAM,qCAAqC;AACjE,OAAOC,KAAK,MAAM,aAAa;AAC/B,SAAQC,YAAY,QAAO,SAAS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