@coorpacademy/components 11.41.0 → 11.42.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/atom/radio-group/index.d.ts +13 -7
- package/es/atom/radio-group/index.d.ts.map +1 -1
- package/es/atom/radio-group/index.js +51 -0
- package/es/atom/radio-group/index.js.map +1 -1
- package/es/atom/radio-group/style.css +37 -0
- package/es/molecule/assignment-status-tag/index.d.ts.map +1 -1
- package/es/molecule/assignment-status-tag/index.js +5 -0
- package/es/molecule/assignment-status-tag/index.js.map +1 -1
- package/es/molecule/draggable-list/index.d.ts +6 -0
- package/es/molecule/setup-section/index.d.ts +6 -0
- package/es/molecule/setup-sections/index.d.ts +6 -0
- package/es/organism/assignment-audience/index.d.ts +23 -11
- package/es/organism/assignment-audience/index.d.ts.map +1 -1
- package/es/organism/assignment-audience/index.js +100 -59
- package/es/organism/assignment-audience/index.js.map +1 -1
- package/es/organism/assignment-audience/types.d.ts +39 -15
- package/es/organism/assignment-audience/types.d.ts.map +1 -1
- package/es/organism/assignment-audience/types.js +17 -5
- package/es/organism/assignment-audience/types.js.map +1 -1
- package/es/organism/assignment-audience/upload-result.d.ts.map +1 -1
- package/es/organism/assignment-audience/upload-result.js +4 -7
- package/es/organism/assignment-audience/upload-result.js.map +1 -1
- package/es/organism/brand-learning-priorities/index.d.ts +6 -0
- package/es/organism/header-with-actions/index.d.ts +13 -4
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +31 -6
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/style.css +42 -0
- package/es/organism/header-with-actions/types.d.ts +24 -6
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +7 -2
- package/es/organism/header-with-actions/types.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +40 -4
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +19 -4
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +18 -0
- package/lib/atom/radio-group/index.d.ts +13 -7
- package/lib/atom/radio-group/index.d.ts.map +1 -1
- package/lib/atom/radio-group/index.js +51 -0
- package/lib/atom/radio-group/index.js.map +1 -1
- package/lib/atom/radio-group/style.css +37 -0
- package/lib/molecule/assignment-status-tag/index.d.ts.map +1 -1
- package/lib/molecule/assignment-status-tag/index.js +5 -0
- package/lib/molecule/assignment-status-tag/index.js.map +1 -1
- package/lib/molecule/draggable-list/index.d.ts +6 -0
- package/lib/molecule/setup-section/index.d.ts +6 -0
- package/lib/molecule/setup-sections/index.d.ts +6 -0
- package/lib/organism/assignment-audience/index.d.ts +23 -11
- package/lib/organism/assignment-audience/index.d.ts.map +1 -1
- package/lib/organism/assignment-audience/index.js +100 -59
- package/lib/organism/assignment-audience/index.js.map +1 -1
- package/lib/organism/assignment-audience/types.d.ts +39 -15
- package/lib/organism/assignment-audience/types.d.ts.map +1 -1
- package/lib/organism/assignment-audience/types.js +17 -5
- package/lib/organism/assignment-audience/types.js.map +1 -1
- package/lib/organism/assignment-audience/upload-result.d.ts.map +1 -1
- package/lib/organism/assignment-audience/upload-result.js +3 -7
- package/lib/organism/assignment-audience/upload-result.js.map +1 -1
- package/lib/organism/brand-learning-priorities/index.d.ts +6 -0
- package/lib/organism/header-with-actions/index.d.ts +13 -4
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +31 -6
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/style.css +42 -0
- package/lib/organism/header-with-actions/types.d.ts +24 -6
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +7 -2
- package/lib/organism/header-with-actions/types.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +40 -4
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +19 -4
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +18 -0
- package/locales/bs/global.json +2 -2
- package/locales/cs/global.json +2 -2
- package/locales/de/global.json +2 -2
- package/locales/es/global.json +2 -2
- package/locales/et/global.json +2 -2
- package/locales/fi/global.json +2 -2
- package/locales/fr/global.json +2 -2
- package/locales/hr/global.json +2 -2
- package/locales/hu/global.json +2 -2
- package/locales/hy/global.json +2 -2
- package/locales/it/global.json +2 -2
- package/locales/ja/global.json +2 -2
- package/locales/ko/global.json +2 -2
- package/locales/lt/global.json +2 -2
- package/locales/nl/global.json +2 -2
- package/locales/pl/global.json +2 -2
- package/locales/pt/global.json +2 -2
- package/locales/ro/global.json +2 -2
- package/locales/ru/global.json +2 -2
- package/locales/sk/global.json +2 -2
- package/locales/sl/global.json +2 -2
- package/locales/sv/global.json +2 -2
- package/locales/tl/global.json +2 -2
- package/locales/tr/global.json +2 -2
- package/locales/uk/global.json +2 -2
- package/locales/vi/global.json +2 -2
- package/locales/zh/global.json +2 -2
- package/locales/zh_TW/global.json +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
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","type","buildActionButton","disabled","base","customStyle","fontWeight","borderRadius","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","isFetching","createElement","className","headerWrapper","titleAndButtonWrapper","_extends","button","titleWrapper","statusWrapper","display","buttonsWrapper","buttons","action","key","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 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 }\n },\n onClick,\n type: iconName === 'trash' ? 'dangerousLeft' : 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n const base = {\n type,\n label,\n onClick,\n disabled,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px'\n }\n };\n\n if (iconName && iconColor) {\n return {\n ...base,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14\n }\n }\n };\n }\n\n return base;\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {\n closeButton,\n title,\n tag,\n saveStatus,\n bulletPointMenuButton,\n actionButtons,\n isFetching = false\n } = props;\n\n return !isFetching ? (\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} 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 data-name={getDataName('bullet-point-menu-button')}\n />\n ) : null}\n {uncappedMap((action: ButtonActionProps, key: string) => {\n return <ButtonLink {...buildActionButton(action)} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n ) : null;\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;AAChC,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,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aAAW9C,WAAW,CAAC,0BAA0B;EAAE,EACpD,CAAC,GACA,IAAI,EACPE,WAAW,CAAC,CAAC6C,MAAyB,EAAEC,GAAW,KAAK;IACvD,oBAAOzD,KAAA,CAAA6C,aAAA,CAAC1C,UAAU,EAAA8C,QAAA,KAAKnB,iBAAiB,CAAC0B,MAAM,CAAC;MAAEC,GAAG,EAAEA;IAAI,EAAE,CAAC;EAChE,CAAC,EAAEd,aAAa,CACb,CACF,CAAC,GACJ,IAAI;AACV,CAAC;AAEDP,iBAAiB,CAACsB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGtD,0BAA0B;AAExD,eAAe6B,iBAAiB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","AssignmentStatusTag","Breadcrumbs","BulletPointMenuButton","HeaderWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","buildCloseButton","onClick","ariaLabel","size","icon","buildButtonMenu","dataName","label","iconName","iconColor","buttonLinkType","position","faIcon","name","color","type","buildActionButton","disabled","base","customStyle","fontWeight","borderRadius","HeaderWithActions","props","closeButton","title","tag","tags","subtitle","breadcrumbs","saveStatus","bulletPointMenuButton","actionButtons","isFetching","hasSubtitle","Boolean","trim","hasBreadcrumbs","hasAdditionalContent","undefined","createElement","className","headerWrapper","extendedTitleAndButtonWrapper","titleAndButtonWrapper","_extends","button","extendedTitleWrapper","titleWrapper","statusWrapper","display","assignmentTitleRow","assignmentTitle","assignmentTags","assignmentTag","index","key","status","buttonsWrapper","buttons","action","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 AssignmentStatusTag from '../../molecule/assignment-status-tag';\nimport Breadcrumbs from '../../molecule/breadcrumbs';\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 }\n },\n onClick,\n type: iconName === 'trash' ? 'dangerousLeft' : 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n const base = {\n type,\n label,\n onClick,\n disabled,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px'\n }\n };\n\n if (iconName && iconColor) {\n return {\n ...base,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14\n }\n }\n };\n }\n\n return base;\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {\n closeButton,\n title,\n tag,\n tags,\n subtitle,\n breadcrumbs,\n saveStatus,\n bulletPointMenuButton,\n actionButtons,\n isFetching = false\n } = props;\n const hasSubtitle = Boolean(subtitle?.trim());\n const hasBreadcrumbs = !isEmpty(breadcrumbs);\n const hasAdditionalContent = tags !== undefined || hasSubtitle || hasBreadcrumbs;\n\n return !isFetching ? (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={\n hasAdditionalContent ? style.extendedTitleAndButtonWrapper : style.titleAndButtonWrapper\n }\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={hasAdditionalContent ? style.extendedTitleWrapper : style.titleWrapper}>\n {hasBreadcrumbs ? (\n <div data-name={getDataName('breadcrumbs')}>\n <Breadcrumbs breadcrumbs={breadcrumbs} />\n </div>\n ) : null}\n <div className={style.statusWrapper}>\n {tags === undefined && tag ? <Tag {...tag} /> : null}\n {saveStatus?.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n {tags !== undefined ? (\n <div className={style.assignmentTitleRow}>\n <h3 className={style.assignmentTitle} data-name={getDataName('title')}>\n {title}\n </h3>\n <div className={style.assignmentTags} data-name={getDataName('tags')}>\n {tags.map((assignmentTag, index) => (\n <AssignmentStatusTag\n {...assignmentTag}\n key={`${assignmentTag.status}-${assignmentTag.label}-${index}`}\n />\n ))}\n </div>\n </div>\n ) : (\n <h3 className={style.title} data-name={getDataName('title')}>\n {title}\n </h3>\n )}\n {hasSubtitle ? (\n <p className={style.subtitle} data-name={getDataName('subtitle')}>\n {subtitle}\n </p>\n ) : null}\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 data-name={getDataName('bullet-point-menu-button')}\n />\n ) : null}\n {uncappedMap((action: ButtonActionProps, key: string) => {\n return <ButtonLink {...buildActionButton(action)} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n ) : null;\n};\n\nHeaderWithActions.propTypes = HeaderWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB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
|
|
|
53
53
|
display: flex;
|
|
54
54
|
gap: 10px;
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
.assignmentTitleRow {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
flex-wrap: wrap;
|
|
61
|
+
gap: 10px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.assignmentTitle {
|
|
65
|
+
composes: title;
|
|
66
|
+
margin: 0;
|
|
67
|
+
overflow-wrap: anywhere;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.assignmentTags {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
flex-wrap: wrap;
|
|
74
|
+
gap: 5px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.extendedTitleAndButtonWrapper {
|
|
78
|
+
composes: titleAndButtonWrapper;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
flex: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.extendedTitleWrapper {
|
|
84
|
+
composes: titleWrapper;
|
|
85
|
+
min-width: 0;
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.subtitle {
|
|
90
|
+
composes: saveStatus;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
line-height: 18px;
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
}
|
|
@@ -5,15 +5,24 @@ declare const HeaderWithActionsPropTypes: {
|
|
|
5
5
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
6
6
|
}>>;
|
|
7
7
|
title: PropTypes.Validator<string>;
|
|
8
|
-
|
|
8
|
+
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
9
|
+
status: PropTypes.Requireable<string>;
|
|
10
|
+
label: PropTypes.Validator<string>;
|
|
11
|
+
}> | null | undefined)[]>;
|
|
12
|
+
subtitle: PropTypes.Requireable<string>;
|
|
13
|
+
breadcrumbs: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
14
|
+
title: PropTypes.Validator<string>;
|
|
15
|
+
href: PropTypes.Requireable<string>;
|
|
16
|
+
}> | null | undefined)[]>;
|
|
17
|
+
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
18
|
label: PropTypes.Validator<string>;
|
|
10
19
|
type: PropTypes.Validator<string>;
|
|
11
20
|
size: PropTypes.Validator<string>;
|
|
12
|
-
}
|
|
13
|
-
saveStatus: PropTypes.
|
|
21
|
+
}>>;
|
|
22
|
+
saveStatus: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
23
|
display: PropTypes.Validator<boolean>;
|
|
15
24
|
label: PropTypes.Requireable<string>;
|
|
16
|
-
}
|
|
25
|
+
}>>;
|
|
17
26
|
actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
18
27
|
type: PropTypes.Validator<string>;
|
|
19
28
|
label: PropTypes.Validator<string>;
|
|
@@ -72,8 +81,17 @@ export declare type ButtonActionProps = {
|
|
|
72
81
|
export declare type HeaderWithActionsProps = {
|
|
73
82
|
closeButton: CloseButtonProps;
|
|
74
83
|
title: string;
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
tags?: Array<{
|
|
85
|
+
status?: string;
|
|
86
|
+
label: string;
|
|
87
|
+
}>;
|
|
88
|
+
subtitle?: string;
|
|
89
|
+
breadcrumbs?: Array<{
|
|
90
|
+
title: string;
|
|
91
|
+
href?: string;
|
|
92
|
+
}>;
|
|
93
|
+
tag?: TagProps;
|
|
94
|
+
saveStatus?: SaveStatusProps;
|
|
77
95
|
actionButtons: ButtonActionProps[];
|
|
78
96
|
bulletPointMenuButton?: BulletPointMenuButtonProps;
|
|
79
97
|
isFetching?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,O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AAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IACpD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import AssignmentStatusTagPropTypes from '../../molecule/assignment-status-tag/types';
|
|
3
|
+
import Breadcrumbs from '../../molecule/breadcrumbs';
|
|
2
4
|
const ButtonMenuPropTypes = {
|
|
3
5
|
dataName: PropTypes.string,
|
|
4
6
|
label: PropTypes.string.isRequired,
|
|
@@ -20,15 +22,18 @@ const HeaderWithActionsPropTypes = {
|
|
|
20
22
|
onClick: PropTypes.func.isRequired
|
|
21
23
|
}),
|
|
22
24
|
title: PropTypes.string.isRequired,
|
|
25
|
+
tags: PropTypes.arrayOf(PropTypes.shape(AssignmentStatusTagPropTypes)),
|
|
26
|
+
subtitle: PropTypes.string,
|
|
27
|
+
breadcrumbs: Breadcrumbs.propTypes.breadcrumbs,
|
|
23
28
|
tag: PropTypes.shape({
|
|
24
29
|
label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,
|
|
25
30
|
type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,
|
|
26
31
|
size: PropTypes.string.isRequired
|
|
27
|
-
})
|
|
32
|
+
}),
|
|
28
33
|
saveStatus: PropTypes.shape({
|
|
29
34
|
display: PropTypes.bool.isRequired,
|
|
30
35
|
label: PropTypes.oneOf(['Unsaved changes', 'Saved'])
|
|
31
|
-
})
|
|
36
|
+
}),
|
|
32
37
|
actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes)).isRequired,
|
|
33
38
|
bulletPointMenuButton: PropTypes.shape({
|
|
34
39
|
buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","ButtonMenuPropTypes","dataName","string","label","isRequired","iconName","iconColor","onClick","func","ButtonActionPropTypes","type","oneOf","disabled","bool","HeaderWithActionsPropTypes","closeButton","shape","title","tag","size","saveStatus","display","actionButtons","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","AssignmentStatusTagPropTypes","Breadcrumbs","ButtonMenuPropTypes","dataName","string","label","isRequired","iconName","iconColor","onClick","func","ButtonActionPropTypes","type","oneOf","disabled","bool","HeaderWithActionsPropTypes","closeButton","shape","title","tags","arrayOf","subtitle","breadcrumbs","propTypes","tag","size","saveStatus","display","actionButtons","bulletPointMenuButton","buttons","buttonAriaLabel","isFetching"],"sources":["../../../src/organism/header-with-actions/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport AssignmentStatusTagPropTypes from '../../molecule/assignment-status-tag/types';\nimport Breadcrumbs from '../../molecule/breadcrumbs';\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.oneOf(['primary', 'secondary']).isRequired,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n iconName: PropTypes.string,\n iconColor: PropTypes.string\n};\n\nconst HeaderWithActionsPropTypes = {\n closeButton: PropTypes.shape({\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func.isRequired\n }),\n title: PropTypes.string.isRequired,\n tags: PropTypes.arrayOf(PropTypes.shape(AssignmentStatusTagPropTypes)),\n subtitle: PropTypes.string,\n breadcrumbs: Breadcrumbs.propTypes.breadcrumbs,\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 }),\n saveStatus: PropTypes.shape({\n display: PropTypes.bool.isRequired,\n label: PropTypes.oneOf(['Unsaved changes', 'Saved'])\n }),\n actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes)).isRequired,\n bulletPointMenuButton: PropTypes.shape({\n buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,\n buttonAriaLabel: PropTypes.string,\n disabled: PropTypes.bool.isRequired\n }),\n isFetching: PropTypes.bool\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 BulletPointMenuButtonProps = {\n buttons: ButtonMenuProps[];\n buttonAriaLabel?: string;\n disabled: boolean;\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 tags?: Array<{status?: string; label: string}>;\n subtitle?: string;\n breadcrumbs?: Array<{title: string; href?: string}>;\n tag?: TagProps;\n saveStatus?: SaveStatusProps;\n actionButtons: ButtonActionProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps;\n isFetching?: boolean;\n};\n\nexport type HeaderWithActionsPropsFixture = {props: HeaderWithActionsProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,4BAA4B,MAAM,4CAA4C;AACrF,OAAOC,WAAW,MAAM,4BAA4B;AAEpD,MAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAEJ,SAAS,CAACK,MAAM;EAC1BC,KAAK,EAAEN,SAAS,CAACK,MAAM,CAACE,UAAU;EAClCC,QAAQ,EAAER,SAAS,CAACK,MAAM,CAACE,UAAU;EACrCE,SAAS,EAAET,SAAS,CAACK,MAAM,CAACE,UAAU;EACtCG,OAAO,EAAEV,SAAS,CAACW,IAAI,CAACJ;AAC1B,CAAC;AAED,MAAMK,qBAAqB,GAAG;EAC5BC,IAAI,EAAEb,SAAS,CAACc,KAAK,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAACP,UAAU;EAC1DD,KAAK,EAAEN,SAAS,CAACK,MAAM,CAACE,UAAU;EAClCG,OAAO,EAAEV,SAAS,CAACW,IAAI,CAACJ,UAAU;EAClCQ,QAAQ,EAAEf,SAAS,CAACgB,IAAI;EACxBR,QAAQ,EAAER,SAAS,CAACK,MAAM;EAC1BI,SAAS,EAAET,SAAS,CAACK;AACvB,CAAC;AAED,MAAMY,0BAA0B,GAAG;EACjCC,WAAW,EAAElB,SAAS,CAACmB,KAAK,CAAC;IAC3B,YAAY,EAAEnB,SAAS,CAACK,MAAM;IAC9BK,OAAO,EAAEV,SAAS,CAACW,IA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C,0BAA0B","ignoreList":[]}
|
|
@@ -227,15 +227,24 @@ declare namespace BrandUpdate {
|
|
|
227
227
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
228
228
|
}>>;
|
|
229
229
|
title: PropTypes.Validator<string>;
|
|
230
|
-
|
|
230
|
+
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
231
|
+
status: PropTypes.Requireable<string>;
|
|
232
|
+
label: PropTypes.Validator<string>;
|
|
233
|
+
}> | null | undefined)[]>;
|
|
234
|
+
subtitle: PropTypes.Requireable<string>;
|
|
235
|
+
breadcrumbs: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
236
|
+
title: PropTypes.Validator<string>;
|
|
237
|
+
href: PropTypes.Requireable<string>;
|
|
238
|
+
}> | null | undefined)[]>;
|
|
239
|
+
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
231
240
|
label: PropTypes.Validator<string>;
|
|
232
241
|
type: PropTypes.Validator<string>;
|
|
233
242
|
size: PropTypes.Validator<string>;
|
|
234
|
-
}
|
|
235
|
-
saveStatus: PropTypes.
|
|
243
|
+
}>>;
|
|
244
|
+
saveStatus: PropTypes.Requireable<PropTypes.InferProps<{
|
|
236
245
|
display: PropTypes.Validator<boolean>;
|
|
237
246
|
label: PropTypes.Requireable<string>;
|
|
238
|
-
}
|
|
247
|
+
}>>;
|
|
239
248
|
actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
240
249
|
type: PropTypes.Validator<string>;
|
|
241
250
|
label: PropTypes.Validator<string>;
|
|
@@ -1621,6 +1630,12 @@ declare namespace BrandUpdate {
|
|
|
1621
1630
|
color: PropTypes.Requireable<string>;
|
|
1622
1631
|
theme: PropTypes.Requireable<string>;
|
|
1623
1632
|
className: PropTypes.Requireable<string>;
|
|
1633
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
1634
|
+
label: PropTypes.Validator<string>;
|
|
1635
|
+
value: PropTypes.Validator<string>;
|
|
1636
|
+
}> | null | undefined)[]>;
|
|
1637
|
+
value: PropTypes.Requireable<string>;
|
|
1638
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
1624
1639
|
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
1625
1640
|
color: PropTypes.Requireable<string>;
|
|
1626
1641
|
value: PropTypes.Validator<string>;
|
|
@@ -3746,6 +3761,27 @@ declare namespace BrandUpdate {
|
|
|
3746
3761
|
required: PropTypes.Requireable<boolean>;
|
|
3747
3762
|
headingLevel: PropTypes.Requireable<number>;
|
|
3748
3763
|
}>>;
|
|
3764
|
+
export const scopeControl: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3765
|
+
color: PropTypes.Requireable<string>;
|
|
3766
|
+
theme: PropTypes.Requireable<string>;
|
|
3767
|
+
className: PropTypes.Requireable<string>;
|
|
3768
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
3769
|
+
label: PropTypes.Validator<string>;
|
|
3770
|
+
value: PropTypes.Validator<string>;
|
|
3771
|
+
}> | null | undefined)[]>;
|
|
3772
|
+
value: PropTypes.Requireable<string>;
|
|
3773
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
3774
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
3775
|
+
color: PropTypes.Requireable<string>;
|
|
3776
|
+
value: PropTypes.Validator<string>;
|
|
3777
|
+
name: PropTypes.Requireable<string>;
|
|
3778
|
+
theme: PropTypes.Requireable<string>;
|
|
3779
|
+
checked: PropTypes.Requireable<boolean>;
|
|
3780
|
+
label: PropTypes.Requireable<string>;
|
|
3781
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
3782
|
+
}> | null | undefined)[]>;
|
|
3783
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
3784
|
+
}>>;
|
|
3749
3785
|
}
|
|
3750
3786
|
}
|
|
3751
3787
|
import PropTypes from "prop-types";
|
|
@@ -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":";AAkQA,sDAyDC"}
|
|
@@ -10,6 +10,7 @@ import find from 'lodash/fp/find';
|
|
|
10
10
|
import some from 'lodash/fp/some';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import BrandTabs from '../../../molecule/brand-tabs';
|
|
13
|
+
import RadioGroup from '../../../atom/radio-group';
|
|
13
14
|
import { IconLinkItem, LinkItem } from '../../../organism/sidebar';
|
|
14
15
|
import BrandForm from '../../../organism/brand-form';
|
|
15
16
|
import BrandTable from '../../../organism/brand-table';
|
|
@@ -165,10 +166,22 @@ const buildDocumentation = documentation => {
|
|
|
165
166
|
icon: "close"
|
|
166
167
|
}) : null);
|
|
167
168
|
};
|
|
168
|
-
const buildTabs = items => {
|
|
169
|
+
const buildTabs = (items, scopeControl) => {
|
|
169
170
|
const selectedTab = pipe(find(e => e.selected), get('tabs'), find(e => e.selected))(items);
|
|
170
171
|
const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;
|
|
171
172
|
if (!showTabs) return null;
|
|
173
|
+
if (scopeControl) {
|
|
174
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
175
|
+
className: classNames(style.tabs, style.tabsWithScope)
|
|
176
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
177
|
+
className: style.tabsNavigation
|
|
178
|
+
}, /*#__PURE__*/React.createElement(BrandTabs, {
|
|
179
|
+
type: "light",
|
|
180
|
+
tabs: selectedTab.subTabs
|
|
181
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: style.scopeControl
|
|
183
|
+
}, /*#__PURE__*/React.createElement(RadioGroup, scopeControl)));
|
|
184
|
+
}
|
|
172
185
|
return /*#__PURE__*/React.createElement("div", {
|
|
173
186
|
className: style.tabs
|
|
174
187
|
}, /*#__PURE__*/React.createElement(BrandTabs, {
|
|
@@ -236,14 +249,15 @@ const BrandUpdate = props => {
|
|
|
236
249
|
onItemClick,
|
|
237
250
|
documentation,
|
|
238
251
|
contentFixHeight,
|
|
239
|
-
title
|
|
252
|
+
title,
|
|
253
|
+
scopeControl
|
|
240
254
|
} = props;
|
|
241
255
|
const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';
|
|
242
256
|
const leftNavigation = buildLeftNavigation(logo, items, onItemClick);
|
|
243
257
|
const notificationsView = buildNotifications(notifications);
|
|
244
258
|
const documentationView = buildDocumentation(documentation);
|
|
245
259
|
const headerView = buildHeader(header, notifications);
|
|
246
|
-
const tabsView = buildTabs(items);
|
|
260
|
+
const tabsView = buildTabs(items, scopeControl);
|
|
247
261
|
const contentView = buildContentView(content);
|
|
248
262
|
const detailsView = buildDetailsView(details);
|
|
249
263
|
const popinView = buildPopin(popin);
|
|
@@ -372,7 +386,8 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
372
386
|
}),
|
|
373
387
|
onItemClick: PropTypes.func,
|
|
374
388
|
contentFixHeight: PropTypes.bool,
|
|
375
|
-
title: PropTypes.shape(Title.propTypes)
|
|
389
|
+
title: PropTypes.shape(Title.propTypes),
|
|
390
|
+
scopeControl: PropTypes.shape(RadioGroup.propTypes)
|
|
376
391
|
} : {};
|
|
377
392
|
export default BrandUpdate;
|
|
378
393
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","getOr","isEmpty","find","some","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BrandLearningPriorities","Banner","Header","HeaderWithActions","Loader","Accordion","CmPopin","ButtonLinkIcon","ExpandibleActionableTable","BulkInfos","Title","SkillEdition","IconPickerModal","TranslationModal","ContentSkillModal","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","headerDefault","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","hasVisibleBulletPointMenu","buttons","length","contentStyle","contentWithNotifications","contentListWithBulletPointMenu","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 getOr from 'lodash/fp/getOr';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport some from 'lodash/fp/some';\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 TranslationModal from '../../../molecule/translation-modal';\nimport ContentSkillModal from '../../../organism/content-skill-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 if (!header) return null;\n\n return header.type === 'header-with-actions' ? (\n <HeaderWithActions {...header} />\n ) : (\n <div className={style.headerDefault}>\n <Header {...header} />\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 case 'translation':\n return <TranslationModal {...popin} />;\n case 'content':\n return <ContentSkillModal {...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 hasVisibleBulletPointMenu =\n content?.type === 'list-content' &&\n pipe(\n getOr([], 'content.items'),\n some(pipe(getOr([], 'bulletPointMenuButton.buttons'), buttons => buttons.length > 0))\n )(content);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight,\n hasVisibleBulletPointMenu && style.contentListWithBulletPointMenu\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', 'draft'])\n }),\n PropTypes.shape({\n ...IconPickerModal.propTypes,\n type: PropTypes.oneOf(['icon-picker'])\n }),\n PropTypes.shape({\n ...TranslationModal.propTypes,\n type: PropTypes.oneOf(['translation'])\n }),\n PropTypes.shape({\n ...ContentSkillModal.propTypes,\n type: PropTypes.oneOf(['content'])\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,Y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4G,SAAS;IAC7B3F,IAAI,EAAEjD,SAAS,CAACmJ,KAAK,CAAC,CAAC,aAAa,CAAC;EACvC,CAAC,CAAC,EACFnJ,SAAS,CAACiJ,KAAK,CAAC;IACd,GAAGhH,iBAAiB,CAAC2G,SAAS;IAC9B3F,IAAI,EAAEjD,SAAS,CAACmJ,KAAK,CAAC,CAAC,SAAS,CAAC;EACnC,CAAC,CAAC,CACH,CAAC;EACFhC,OAAO,EAAEnH,SAAS,CAACiJ,KAAK,CAAC;IACvB,GAAGpI,UAAU,CAAC+H,SAAS;IACvB7F,GAAG,EAAE/C,SAAS,CAACqJ,MAAM;IACrBpG,IAAI,EAAEjD,SAAS,CAACmJ,KAAK,CAAC,CAAC,MAAM,CAAC;EAChC,CAAC,CAAC;EACFxF,WAAW,EAAE3D,SAAS,CAACuJ,IAAI;EAC3BhC,gBAAgB,EAAEvH,SAAS,CAACsJ,IAAI;EAChCtG,KAAK,EAAEhD,SAAS,CAACiJ,KAAK,CAACpH,KAAK,CAAC+G,SAAS;AACxC,CAAC;AAED,eAAevB,WAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","getOr","isEmpty","find","some","classNames","BrandTabs","RadioGroup","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BrandLearningPriorities","Banner","Header","HeaderWithActions","Loader","Accordion","CmPopin","ButtonLinkIcon","ExpandibleActionableTable","BulkInfos","Title","SkillEdition","IconPickerModal","TranslationModal","ContentSkillModal","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","headerDefault","buildDefaultPopin","popin","icon","popinIcon","secondButton","popinSecondButton","themeIcon","actionButton","themeActionButton","buildPopin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","dangerouslySetInnerHTML","__html","closeButton","size","buildTabs","scopeControl","selectedTab","e","showTabs","subTabs","undefined","tabsWithScope","tabsNavigation","buildContentView","loaderContainer","loader","buildDetailsView","details","buildTitle","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","titleView","hasVisibleBulletPointMenu","buttons","length","contentStyle","contentWithNotifications","contentListWithBulletPointMenu","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 getOr from 'lodash/fp/getOr';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport some from 'lodash/fp/some';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport RadioGroup from '../../../atom/radio-group';\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 TranslationModal from '../../../molecule/translation-modal';\nimport ContentSkillModal from '../../../organism/content-skill-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 if (!header) return null;\n\n return header.type === 'header-with-actions' ? (\n <HeaderWithActions {...header} />\n ) : (\n <div className={style.headerDefault}>\n <Header {...header} />\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 case 'translation':\n return <TranslationModal {...popin} />;\n case 'content':\n return <ContentSkillModal {...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, scopeControl) => {\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 if (scopeControl) {\n return (\n <div className={classNames(style.tabs, style.tabsWithScope)}>\n <div className={style.tabsNavigation}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n <div className={style.scopeControl}>\n <RadioGroup {...scopeControl} />\n </div>\n </div>\n );\n }\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 scopeControl\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, scopeControl);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n const titleView = buildTitle(title);\n\n const hasVisibleBulletPointMenu =\n content?.type === 'list-content' &&\n pipe(\n getOr([], 'content.items'),\n some(pipe(getOr([], 'bulletPointMenuButton.buttons'), buttons => buttons.length > 0))\n )(content);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight,\n hasVisibleBulletPointMenu && style.contentListWithBulletPointMenu\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', 'draft'])\n }),\n PropTypes.shape({\n ...IconPickerModal.propTypes,\n type: PropTypes.oneOf(['icon-picker'])\n }),\n PropTypes.shape({\n ...TranslationModal.propTypes,\n type: PropTypes.oneOf(['translation'])\n }),\n PropTypes.shape({\n ...ContentSkillModal.propTypes,\n type: PropTypes.oneOf(['content'])\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 scopeControl: PropTypes.shape(RadioGroup.propTypes)\n};\n\nexport default BrandUpdate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ACqJ,KAAK,CAACvH,KAAK,CAACkH,SAAS,CAAC;EACvCrC,YAAY,EAAE3G,SAAS,CAACqJ,KAAK,CAAC3I,UAAU,CAACsI,SAAS;AACpD,CAAC;AAED,eAAevB,WAAW","ignoreList":[]}
|
|
@@ -208,3 +208,21 @@
|
|
|
208
208
|
margin: 0 auto;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
+
|
|
212
|
+
.tabsWithScope {
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-wrap: wrap;
|
|
215
|
+
align-items: center;
|
|
216
|
+
gap: 16px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.tabsNavigation {
|
|
220
|
+
flex: 1 1 auto;
|
|
221
|
+
min-width: 0;
|
|
222
|
+
overflow-x: auto;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.scopeControl {
|
|
226
|
+
flex: 0 0 auto;
|
|
227
|
+
margin-left: auto;
|
|
228
|
+
}
|
|
@@ -24,11 +24,17 @@ declare namespace RadioGroup {
|
|
|
24
24
|
}>;
|
|
25
25
|
}>>;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
const propTypes: {
|
|
28
|
+
color: PropTypes.Requireable<string>;
|
|
29
|
+
theme: PropTypes.Requireable<string>;
|
|
30
|
+
className: PropTypes.Requireable<string>;
|
|
31
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
32
|
+
label: PropTypes.Validator<string>;
|
|
33
|
+
value: PropTypes.Validator<string>;
|
|
34
|
+
}> | null | undefined)[]>;
|
|
35
|
+
value: PropTypes.Requireable<string>;
|
|
36
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
37
|
+
list: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
32
38
|
color: PropTypes.Requireable<string>;
|
|
33
39
|
value: PropTypes.Validator<string>;
|
|
34
40
|
name: PropTypes.Requireable<string>;
|
|
@@ -37,8 +43,8 @@ declare namespace RadioGroup {
|
|
|
37
43
|
label: PropTypes.Requireable<string>;
|
|
38
44
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
45
|
}> | null | undefined)[]>;
|
|
40
|
-
|
|
41
|
-
}
|
|
46
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
|
+
};
|
|
42
48
|
}
|
|
43
49
|
import PropTypes from "prop-types";
|
|
44
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-group/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-group/index.js"],"names":[],"mappings":";AAsDA,mEAkBC"}
|