@coorpacademy/components 11.33.7 → 11.33.8-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/atom/button-link/index.d.ts +13 -2
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +2 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +2 -2
- package/es/atom/button-link/types.d.ts +28 -4
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +14 -5
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/button-link-icon/style.css +2 -2
- package/es/atom/button-menu/index.d.ts +18 -0
- package/es/atom/button-menu/index.d.ts.map +1 -1
- package/es/atom/button-menu/index.js +19 -3
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/style.css +19 -6
- package/es/atom/button-menu/types.d.ts +39 -0
- package/es/atom/button-menu/types.d.ts.map +1 -1
- package/es/atom/button-menu/types.js +7 -2
- package/es/atom/button-menu/types.js.map +1 -1
- package/es/atom/tag/style.css +10 -6
- package/es/molecule/bullet-point-menu-button/index.d.ts +17 -0
- package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/style.css +19 -16
- package/es/molecule/bullet-point-menu-button/types.d.ts +17 -0
- package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +69 -7
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/index.d.ts +47 -2
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +47 -2
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/filters/index.js +2 -2
- package/es/molecule/filters/index.js.map +1 -1
- package/es/molecule/filters/style.css +7 -7
- package/es/organism/header-with-actions/index.d.ts +95 -0
- package/es/organism/header-with-actions/index.d.ts.map +1 -0
- package/es/organism/header-with-actions/index.js +48 -0
- package/es/organism/header-with-actions/index.js.map +1 -0
- package/es/organism/header-with-actions/style.css +55 -0
- package/es/organism/header-with-actions/types.d.ts +120 -0
- package/es/organism/header-with-actions/types.d.ts.map +1 -0
- package/es/organism/header-with-actions/types.js +27 -0
- package/es/organism/header-with-actions/types.js.map +1 -0
- package/es/organism/list-items/index.d.ts +60 -4
- package/es/organism/setup-header/index.d.ts +52 -8
- package/es/organism/wizard-contents/index.d.ts +73 -6
- package/es/template/app-player/loading/index.d.ts +69 -7
- package/es/template/app-player/player/index.d.ts +138 -14
- package/es/template/app-player/player/slides/index.d.ts +69 -7
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +69 -7
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +69 -7
- package/es/template/app-review/index.d.ts +69 -7
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +69 -7
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +69 -7
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +52 -8
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +52 -8
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +254 -25
- package/es/template/back-office/dashboard-preview/index.d.ts +52 -8
- package/es/template/back-office/layout/index.d.ts +52 -8
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +138 -14
- package/es/template/common/search-page/index.d.ts +69 -7
- package/es/template/external-course/index.d.ts +69 -7
- package/es/variables/colors.css +5 -1
- package/es/variables/colors.d.ts +1 -0
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +1 -0
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/button-link/index.d.ts +13 -2
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +2 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +2 -2
- package/lib/atom/button-link/types.d.ts +28 -4
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +15 -6
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/button-link-icon/style.css +2 -2
- package/lib/atom/button-menu/index.d.ts +18 -0
- package/lib/atom/button-menu/index.d.ts.map +1 -1
- package/lib/atom/button-menu/index.js +19 -3
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/style.css +19 -6
- package/lib/atom/button-menu/types.d.ts +39 -0
- package/lib/atom/button-menu/types.d.ts.map +1 -1
- package/lib/atom/button-menu/types.js +7 -2
- package/lib/atom/button-menu/types.js.map +1 -1
- package/lib/atom/tag/style.css +10 -6
- package/lib/molecule/bullet-point-menu-button/index.d.ts +17 -0
- package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/style.css +19 -16
- package/lib/molecule/bullet-point-menu-button/types.d.ts +17 -0
- package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +69 -7
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/index.d.ts +47 -2
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +47 -2
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/filters/index.js +2 -2
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/filters/style.css +7 -7
- package/lib/organism/header-with-actions/index.d.ts +95 -0
- package/lib/organism/header-with-actions/index.d.ts.map +1 -0
- package/lib/organism/header-with-actions/index.js +53 -0
- package/lib/organism/header-with-actions/index.js.map +1 -0
- package/lib/organism/header-with-actions/style.css +55 -0
- package/lib/organism/header-with-actions/types.d.ts +120 -0
- package/lib/organism/header-with-actions/types.d.ts.map +1 -0
- package/lib/organism/header-with-actions/types.js +32 -0
- package/lib/organism/header-with-actions/types.js.map +1 -0
- package/lib/organism/list-items/index.d.ts +60 -4
- package/lib/organism/setup-header/index.d.ts +52 -8
- package/lib/organism/wizard-contents/index.d.ts +73 -6
- package/lib/template/app-player/loading/index.d.ts +69 -7
- package/lib/template/app-player/player/index.d.ts +138 -14
- package/lib/template/app-player/player/slides/index.d.ts +69 -7
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +69 -7
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +69 -7
- package/lib/template/app-review/index.d.ts +69 -7
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +69 -7
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +69 -7
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +52 -8
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +52 -8
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +254 -25
- package/lib/template/back-office/dashboard-preview/index.d.ts +52 -8
- package/lib/template/back-office/layout/index.d.ts +52 -8
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +138 -14
- package/lib/template/common/search-page/index.d.ts +69 -7
- package/lib/template/external-course/index.d.ts +69 -7
- package/lib/variables/colors.css +5 -1
- package/lib/variables/colors.d.ts +1 -0
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +1 -0
- package/lib/variables/colors.js.map +1 -1
- package/package.json +2 -2
- package/LICENSE +0 -201
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HeaderWithActionsProps } from './types';
|
|
3
|
+
declare const HeaderWithActions: {
|
|
4
|
+
(props: HeaderWithActionsProps): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
7
|
+
size: import("prop-types").Validator<string>;
|
|
8
|
+
icon: import("prop-types").Validator<string>;
|
|
9
|
+
'data-name': import("prop-types").Validator<string>;
|
|
10
|
+
'aria-label': import("prop-types").Validator<string>;
|
|
11
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
12
|
+
}>>;
|
|
13
|
+
title: import("prop-types").Validator<string>;
|
|
14
|
+
tag: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
15
|
+
label: import("prop-types").Validator<string>;
|
|
16
|
+
type: import("prop-types").Validator<string>;
|
|
17
|
+
size: import("prop-types").Validator<string>;
|
|
18
|
+
}>>>;
|
|
19
|
+
saveStatus: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
20
|
+
display: import("prop-types").Validator<boolean>;
|
|
21
|
+
label: import("prop-types").Requireable<string>;
|
|
22
|
+
}>>>;
|
|
23
|
+
bulletPointMenuButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
24
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
25
|
+
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
26
|
+
menuAriaLabel: import("prop-types").Requireable<string>;
|
|
27
|
+
buttons: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
28
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
29
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
30
|
+
label: import("prop-types").Validator<string>;
|
|
31
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
32
|
+
type: import("prop-types").Requireable<string>;
|
|
33
|
+
buttonLinkType: import("prop-types").Requireable<string>;
|
|
34
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
35
|
+
position: import("prop-types").Validator<string>;
|
|
36
|
+
type: import("prop-types").Requireable<string>;
|
|
37
|
+
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
38
|
+
name: import("prop-types").Validator<string>;
|
|
39
|
+
color: import("prop-types").Requireable<string>;
|
|
40
|
+
backgroundColor: import("prop-types").Requireable<string>;
|
|
41
|
+
size: import("prop-types").Requireable<number>;
|
|
42
|
+
customStyle: import("prop-types").Requireable<{
|
|
43
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
}>>;
|
|
46
|
+
}>>;
|
|
47
|
+
customStyle: import("prop-types").Requireable<{
|
|
48
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
}> | null | undefined)[]>;
|
|
51
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
52
|
+
menuButtonClassName: import("prop-types").Requireable<string>;
|
|
53
|
+
isBulkMenu: import("prop-types").Requireable<boolean>;
|
|
54
|
+
}>>;
|
|
55
|
+
actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
56
|
+
type: import("prop-types").Requireable<string>;
|
|
57
|
+
usage: import("prop-types").Requireable<string>;
|
|
58
|
+
label: import("prop-types").Requireable<string>;
|
|
59
|
+
content: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
60
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
61
|
+
tooltipText: import("prop-types").Requireable<string>;
|
|
62
|
+
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
63
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
64
|
+
'data-testid': import("prop-types").Requireable<string>;
|
|
65
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
66
|
+
position: import("prop-types").Validator<string>;
|
|
67
|
+
type: import("prop-types").Requireable<string>;
|
|
68
|
+
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
69
|
+
name: import("prop-types").Validator<string>;
|
|
70
|
+
color: import("prop-types").Requireable<string>;
|
|
71
|
+
backgroundColor: import("prop-types").Requireable<string>;
|
|
72
|
+
size: import("prop-types").Requireable<number>;
|
|
73
|
+
customStyle: import("prop-types").Requireable<{
|
|
74
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
}>>;
|
|
77
|
+
}>>;
|
|
78
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
79
|
+
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
80
|
+
href: import("prop-types").Requireable<string>;
|
|
81
|
+
download: import("prop-types").Requireable<boolean>;
|
|
82
|
+
target: import("prop-types").Requireable<string>;
|
|
83
|
+
}>>;
|
|
84
|
+
hoverBackgroundColor: import("prop-types").Requireable<string>;
|
|
85
|
+
hoverColor: import("prop-types").Requireable<string>;
|
|
86
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
87
|
+
className: import("prop-types").Requireable<string>;
|
|
88
|
+
customStyle: import("prop-types").Requireable<{
|
|
89
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
}> | null | undefined)[]>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export default HeaderWithActions;
|
|
95
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAK3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import isEmpty from 'lodash/fp/isEmpty';
|
|
4
|
+
import map from 'lodash/fp/map';
|
|
5
|
+
import ButtonLink from '../../atom/button-link';
|
|
6
|
+
import ButtonLinkIcon from '../../atom/button-link-icon';
|
|
7
|
+
import Tag from '../../atom/tag';
|
|
8
|
+
import BulletPointMenuButton from '../../molecule/bullet-point-menu-button';
|
|
9
|
+
import headerWithActionsPropTypes from './types';
|
|
10
|
+
import style from './style.css';
|
|
11
|
+
const getDataName = suffix => `header-with-actions-${suffix}`;
|
|
12
|
+
const HeaderWithActions = props => {
|
|
13
|
+
const {
|
|
14
|
+
closeButton,
|
|
15
|
+
title,
|
|
16
|
+
tag,
|
|
17
|
+
saveStatus,
|
|
18
|
+
bulletPointMenuButton,
|
|
19
|
+
actionButtons
|
|
20
|
+
} = props;
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: style.headerWrapper,
|
|
23
|
+
"data-name": getDataName('wrapper')
|
|
24
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: style.titleAndButtonWrapper,
|
|
26
|
+
"data-name": getDataName('title-and-button-wrapper')
|
|
27
|
+
}, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, closeButton, {
|
|
28
|
+
className: style.button
|
|
29
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: style.titleWrapper
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: style.statusWrapper
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Tag, tag), saveStatus.display && saveStatus.label ? /*#__PURE__*/React.createElement("p", {
|
|
34
|
+
className: style.saveStatus
|
|
35
|
+
}, saveStatus.label) : null), /*#__PURE__*/React.createElement("h3", {
|
|
36
|
+
className: style.title,
|
|
37
|
+
"aria-label": title,
|
|
38
|
+
"data-name": getDataName('title')
|
|
39
|
+
}, title))), /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: style.buttonsWrapper,
|
|
41
|
+
"data-name": getDataName('buttons-wrapper')
|
|
42
|
+
}, bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, _extends({}, bulletPointMenuButton, {
|
|
43
|
+
buttonAriaLabel: "More actions"
|
|
44
|
+
})) : null, map(action => /*#__PURE__*/React.createElement(ButtonLink, action))(actionButtons)));
|
|
45
|
+
};
|
|
46
|
+
HeaderWithActions.propTypes = process.env.NODE_ENV !== "production" ? headerWithActionsPropTypes : {};
|
|
47
|
+
export default HeaderWithActions;
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","headerWrapper","titleAndButtonWrapper","_extends","button","titleWrapper","statusWrapper","display","label","buttonsWrapper","buttons","buttonAriaLabel","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 {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {HeaderWithActionsProps} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\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 {...closeButton} className={style.button} />\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 {...bulletPointMenuButton} buttonAriaLabel=\"More actions\" />\n ) : null}\n {map((action: ButtonLinkProps) => <ButtonLink {...action} />)(actionButtons)}\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,MAAgC,SAAS;AAC1E,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAIC,MAAc,IAAK,uBAAuBA,MAAM,EAAE;AAEvE,MAAMC,iBAAiB,GAAIC,KAA6B,IAAK;EAC3D,MAAM;IAACC,WAAW;IAAEC,KAAK;IAAEC,GAAG;IAAEC,UAAU;IAAEC,qBAAqB;IAAEC;EAAa,CAAC,GAAGN,KAAK;EAEzF,oBACEZ,KAAA,CAAAmB,aAAA;IAAKC,SAAS,EAAEZ,KAAK,CAACa,aAAc;IAAC,aAAWZ,WAAW,CAAC,SAAS;EAAE,gBACrET,KAAA,CAAAmB,aAAA;IACEC,SAAS,EAAEZ,KAAK,CAACc,qBAAsB;IACvC,aAAWb,WAAW,CAAC,0BAA0B;EAAE,gBAEnDT,KAAA,CAAAmB,aAAA,CAACf,cAAc,EAAAmB,QAAA,KAAKV,WAAW;IAAEO,SAAS,EAAEZ,KAAK,CAACgB;EAAO,EAAE,CAAC,eAC5DxB,KAAA,CAAAmB,aAAA;IAAKC,SAAS,EAAEZ,KAAK,CAACiB;EAAa,gBACjCzB,KAAA,CAAAmB,aAAA;IAAKC,SAAS,EAAEZ,KAAK,CAACkB;EAAc,gBAClC1B,KAAA,CAAAmB,aAAA,CAACd,GAAG,EAAKU,GAAM,CAAC,EACfC,UAAU,CAACW,OAAO,IAAIX,UAAU,CAACY,KAAK,gBACrC5B,KAAA,CAAAmB,aAAA;IAAGC,SAAS,EAAEZ,KAAK,CAACQ;EAAW,GAAEA,UAAU,CAACY,KAAS,CAAC,GACpD,IACD,CAAC,eACN5B,KAAA,CAAAmB,aAAA;IAAIC,SAAS,EAAEZ,KAAK,CAACM,KAAM;IAAC,cAAYA,KAAM;IAAC,aAAWL,WAAW,CAAC,OAAO;EAAE,GAC5EK,KACC,CACD,CACF,CAAC,eACNd,KAAA,CAAAmB,aAAA;IAAKC,SAAS,EAAEZ,KAAK,CAACqB,cAAe;IAAC,aAAWpB,WAAW,CAAC,iBAAiB;EAAE,GAC7EQ,qBAAqB,IAAI,CAAChB,OAAO,CAACgB,qBAAqB,CAACa,OAAO,CAAC,gBAC/D9B,KAAA,CAAAmB,aAAA,CAACb,qBAAqB,EAAAiB,QAAA,KAAKN,qBAAqB;IAAEc,eAAe,EAAC;EAAc,EAAE,CAAC,GACjF,IAAI,EACP7B,GAAG,CAAE8B,MAAuB,iBAAKhC,KAAA,CAAAmB,aAAA,CAAChB,UAAU,EAAK6B,MAAS,CAAC,CAAC,CAACd,aAAa,CACxE,CACF,CAAC;AAEV,CAAC;AAEDP,iBAAiB,CAACsB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG7B,0BAA0B;AAExD,eAAeI,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@value colors: '../../variables/colors.css';
|
|
2
|
+
@value cm_grey_500 from colors;
|
|
3
|
+
@value cm_grey_700 from colors;
|
|
4
|
+
|
|
5
|
+
.headerWrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titleAndButtonWrapper {
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: 15px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.button {
|
|
16
|
+
background-color: #f4f4f5;
|
|
17
|
+
color: cm_grey_500;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.titleWrapper {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.statusWrapper {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 5px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.saveStatus {
|
|
35
|
+
color: cm_grey_500;
|
|
36
|
+
font-family: "Gilroy";
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
line-height: 12px;
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.title {
|
|
44
|
+
color: cm_grey_700;
|
|
45
|
+
font-family: "Gilroy";
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
font-size: 18px;
|
|
48
|
+
line-height: 24px;
|
|
49
|
+
margin-top: 5px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.buttonsWrapper {
|
|
53
|
+
display: flex;
|
|
54
|
+
gap: 10px;
|
|
55
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { BulletPointMenuButtonProps } from '../../molecule/bullet-point-menu-button/types';
|
|
3
|
+
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
4
|
+
declare const headerWithActionsPropTypes: {
|
|
5
|
+
closeButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
size: PropTypes.Validator<string>;
|
|
7
|
+
icon: PropTypes.Validator<string>;
|
|
8
|
+
'data-name': PropTypes.Validator<string>;
|
|
9
|
+
'aria-label': PropTypes.Validator<string>;
|
|
10
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
}>>;
|
|
12
|
+
title: PropTypes.Validator<string>;
|
|
13
|
+
tag: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
14
|
+
label: PropTypes.Validator<string>;
|
|
15
|
+
type: PropTypes.Validator<string>;
|
|
16
|
+
size: PropTypes.Validator<string>;
|
|
17
|
+
}>>>;
|
|
18
|
+
saveStatus: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
19
|
+
display: PropTypes.Validator<boolean>;
|
|
20
|
+
label: PropTypes.Requireable<string>;
|
|
21
|
+
}>>>;
|
|
22
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
24
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
25
|
+
menuAriaLabel: PropTypes.Requireable<string>;
|
|
26
|
+
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
27
|
+
'data-name': PropTypes.Requireable<string>;
|
|
28
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
29
|
+
label: PropTypes.Validator<string>;
|
|
30
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
31
|
+
type: PropTypes.Requireable<string>;
|
|
32
|
+
buttonLinkType: PropTypes.Requireable<string>;
|
|
33
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
|
+
position: PropTypes.Validator<string>;
|
|
35
|
+
type: PropTypes.Requireable<string>;
|
|
36
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
37
|
+
name: PropTypes.Validator<string>;
|
|
38
|
+
color: PropTypes.Requireable<string>;
|
|
39
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
40
|
+
size: PropTypes.Requireable<number>;
|
|
41
|
+
customStyle: PropTypes.Requireable<{
|
|
42
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
}>>;
|
|
45
|
+
}>>;
|
|
46
|
+
customStyle: PropTypes.Requireable<{
|
|
47
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
}> | null | undefined)[]>;
|
|
50
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
|
+
menuButtonClassName: PropTypes.Requireable<string>;
|
|
52
|
+
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
53
|
+
}>>;
|
|
54
|
+
actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
55
|
+
type: PropTypes.Requireable<string>;
|
|
56
|
+
usage: PropTypes.Requireable<string>;
|
|
57
|
+
label: PropTypes.Requireable<string>;
|
|
58
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
59
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
60
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
61
|
+
tooltipPlacement: PropTypes.Requireable<string>;
|
|
62
|
+
'data-name': PropTypes.Requireable<string>;
|
|
63
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
64
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
|
+
position: PropTypes.Validator<string>;
|
|
66
|
+
type: PropTypes.Requireable<string>;
|
|
67
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
68
|
+
name: PropTypes.Validator<string>;
|
|
69
|
+
color: PropTypes.Requireable<string>;
|
|
70
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
71
|
+
size: PropTypes.Requireable<number>;
|
|
72
|
+
customStyle: PropTypes.Requireable<{
|
|
73
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>>;
|
|
77
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
|
+
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
79
|
+
href: PropTypes.Requireable<string>;
|
|
80
|
+
download: PropTypes.Requireable<boolean>;
|
|
81
|
+
target: PropTypes.Requireable<string>;
|
|
82
|
+
}>>;
|
|
83
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
84
|
+
hoverColor: PropTypes.Requireable<string>;
|
|
85
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
86
|
+
className: PropTypes.Requireable<string>;
|
|
87
|
+
customStyle: PropTypes.Requireable<{
|
|
88
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
89
|
+
}>;
|
|
90
|
+
}> | null | undefined)[]>;
|
|
91
|
+
};
|
|
92
|
+
export default headerWithActionsPropTypes;
|
|
93
|
+
declare type TagProps = {
|
|
94
|
+
label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';
|
|
95
|
+
type: 'success' | 'progress' | 'warning';
|
|
96
|
+
size: string;
|
|
97
|
+
};
|
|
98
|
+
declare type SaveStatusProps = {
|
|
99
|
+
display: boolean;
|
|
100
|
+
label?: 'Unsaved changes' | 'Saved';
|
|
101
|
+
};
|
|
102
|
+
declare type CloseButtonProps = {
|
|
103
|
+
size: 'default' | 'small' | 'responsive';
|
|
104
|
+
icon: string;
|
|
105
|
+
'data-name': string;
|
|
106
|
+
'aria-label': string;
|
|
107
|
+
onClick: () => void;
|
|
108
|
+
};
|
|
109
|
+
export declare type HeaderWithActionsProps = {
|
|
110
|
+
closeButton: CloseButtonProps;
|
|
111
|
+
title: string;
|
|
112
|
+
tag: TagProps;
|
|
113
|
+
saveStatus: SaveStatusProps;
|
|
114
|
+
actionButtons: ButtonLinkProps[];
|
|
115
|
+
bulletPointMenuButton?: BulletPointMenuButtonProps;
|
|
116
|
+
};
|
|
117
|
+
export declare type HeaderWithActionsPropsFixture = {
|
|
118
|
+
props: HeaderWithActionsProps;
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +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;AASlF,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc/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,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,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,CAAC;IACjC,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACpD,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import bulletPointMenuButtonPropTypes from '../../molecule/bullet-point-menu-button/types';
|
|
3
|
+
import ButtonLinkPropTypes from '../../atom/button-link/types';
|
|
4
|
+
const closeButtonPropTypes = {
|
|
5
|
+
size: PropTypes.oneOf(['default', 'small', 'responsive']).isRequired,
|
|
6
|
+
icon: PropTypes.string.isRequired,
|
|
7
|
+
'data-name': PropTypes.string.isRequired,
|
|
8
|
+
'aria-label': PropTypes.string.isRequired,
|
|
9
|
+
onClick: PropTypes.func.isRequired
|
|
10
|
+
};
|
|
11
|
+
const headerWithActionsPropTypes = {
|
|
12
|
+
closeButton: PropTypes.shape(closeButtonPropTypes),
|
|
13
|
+
title: PropTypes.string.isRequired,
|
|
14
|
+
tag: PropTypes.shape({
|
|
15
|
+
label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,
|
|
16
|
+
type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,
|
|
17
|
+
size: PropTypes.string.isRequired
|
|
18
|
+
}).isRequired,
|
|
19
|
+
saveStatus: PropTypes.shape({
|
|
20
|
+
display: PropTypes.bool.isRequired,
|
|
21
|
+
label: PropTypes.oneOf(['Unsaved changes', 'Saved'])
|
|
22
|
+
}).isRequired,
|
|
23
|
+
bulletPointMenuButton: PropTypes.shape(bulletPointMenuButtonPropTypes),
|
|
24
|
+
actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)).isRequired
|
|
25
|
+
};
|
|
26
|
+
export default headerWithActionsPropTypes;
|
|
27
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","bulletPointMenuButtonPropTypes","ButtonLinkPropTypes","closeButtonPropTypes","size","oneOf","isRequired","icon","string","onClick","func","headerWithActionsPropTypes","closeButton","shape","title","tag","label","type","saveStatus","display","bool","bulletPointMenuButton","actionButtons","arrayOf"],"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 size: PropTypes.oneOf(['default', 'small', 'responsive']).isRequired,\n icon: PropTypes.string.isRequired,\n 'data-name': PropTypes.string.isRequired,\n 'aria-label': PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\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 bulletPointMenuButton: PropTypes.shape(bulletPointMenuButtonPropTypes),\n actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)).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 size: 'default' | 'small' | 'responsive';\n icon: string;\n 'data-name': string;\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n actionButtons: ButtonLinkProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps;\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;EAC3BC,IAAI,EAAEJ,SAAS,CAACK,KAAK,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAACC,UAAU;EACpEC,IAAI,EAAEP,SAAS,CAACQ,MAAM,CAACF,UAAU;EACjC,WAAW,EAAEN,SAAS,CAACQ,MAAM,CAACF,UAAU;EACxC,YAAY,EAAEN,SAAS,CAACQ,MAAM,CAACF,UAAU;EACzCG,OAAO,EAAET,SAAS,CAACU,IAAI,CAACJ;AAC1B,CAAC;AACD,MAAMK,0BAA0B,GAAG;EACjCC,WAAW,EAAEZ,SAAS,CAACa,KAAK,CAACV,oBAAoB,CAAC;EAClDW,KAAK,EAAEd,SAAS,CAACQ,MAAM,CAACF,UAAU;EAClCS,GAAG,EAAEf,SAAS,CAACa,KAAK,CAAC;IACnBG,KAAK,EAAEhB,SAAS,CAACK,KAAK,CAAC,CAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAACC,UAAU;IACxFW,IAAI,EAAEjB,SAAS,CAACK,KAAK,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAACC,UAAU;IACpEF,IAAI,EAAEJ,SAAS,CAACQ,MAAM,CAACF;EACzB,CAAC,CAAC,CAACA,UAAU;EACbY,UAAU,EAAElB,SAAS,CAACa,KAAK,CAAC;IAC1BM,OAAO,EAAEnB,SAAS,CAACoB,IAAI,CAACd,UAAU;IAClCU,KAAK,EAAEhB,SAAS,CAACK,KAAK,CAAC,CAAC,iBAAiB,EAAE,OAAO,CAAC;EACrD,CAAC,CAAC,CAACC,UAAU;EACbe,qBAAqB,EAAErB,SAAS,CAACa,KAAK,CAACZ,8BAA8B,CAAC;EACtEqB,aAAa,EAAEtB,SAAS,CAACuB,OAAO,CAACvB,SAAS,CAACa,KAAK,CAACX,mBAAmB,CAAC,CAAC,CAACI;AACzE,CAAC;AAED,eAAeK,0BAA0B","ignoreList":[]}
|
|
@@ -21,8 +21,17 @@ declare namespace ListItems {
|
|
|
21
21
|
'data-name': PropTypes.Requireable<string>;
|
|
22
22
|
'data-testid': PropTypes.Requireable<string>;
|
|
23
23
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
-
position: PropTypes.
|
|
24
|
+
position: PropTypes.Validator<string>;
|
|
25
25
|
type: PropTypes.Requireable<string>;
|
|
26
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
|
+
name: PropTypes.Validator<string>;
|
|
28
|
+
color: PropTypes.Requireable<string>;
|
|
29
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
30
|
+
size: PropTypes.Requireable<number>;
|
|
31
|
+
customStyle: PropTypes.Requireable<{
|
|
32
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
}>>;
|
|
26
35
|
}>>;
|
|
27
36
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
37
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -34,7 +43,9 @@ declare namespace ListItems {
|
|
|
34
43
|
hoverColor: PropTypes.Requireable<string>;
|
|
35
44
|
disabled: PropTypes.Requireable<boolean>;
|
|
36
45
|
className: PropTypes.Requireable<string>;
|
|
37
|
-
customStyle: PropTypes.Requireable<
|
|
46
|
+
customStyle: PropTypes.Requireable<{
|
|
47
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
48
|
+
}>;
|
|
38
49
|
}>>;
|
|
39
50
|
selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
|
|
40
51
|
title: PropTypes.Requireable<string>;
|
|
@@ -152,6 +163,23 @@ declare namespace ListItems {
|
|
|
152
163
|
label: PropTypes.Validator<string>;
|
|
153
164
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
154
165
|
type: PropTypes.Requireable<string>;
|
|
166
|
+
buttonLinkType: PropTypes.Requireable<string>;
|
|
167
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
168
|
+
position: PropTypes.Validator<string>;
|
|
169
|
+
type: PropTypes.Requireable<string>;
|
|
170
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
171
|
+
name: PropTypes.Validator<string>;
|
|
172
|
+
color: PropTypes.Requireable<string>;
|
|
173
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
174
|
+
size: PropTypes.Requireable<number>;
|
|
175
|
+
customStyle: PropTypes.Requireable<{
|
|
176
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
177
|
+
}>;
|
|
178
|
+
}>>;
|
|
179
|
+
}>>;
|
|
180
|
+
customStyle: PropTypes.Requireable<{
|
|
181
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
182
|
+
}>;
|
|
155
183
|
}> | null | undefined)[]>;
|
|
156
184
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
157
185
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
@@ -174,8 +202,17 @@ declare namespace ListItems {
|
|
|
174
202
|
'data-name': PropTypes.Requireable<string>;
|
|
175
203
|
'data-testid': PropTypes.Requireable<string>;
|
|
176
204
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
177
|
-
position: PropTypes.
|
|
205
|
+
position: PropTypes.Validator<string>;
|
|
178
206
|
type: PropTypes.Requireable<string>;
|
|
207
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
208
|
+
name: PropTypes.Validator<string>;
|
|
209
|
+
color: PropTypes.Requireable<string>;
|
|
210
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
211
|
+
size: PropTypes.Requireable<number>;
|
|
212
|
+
customStyle: PropTypes.Requireable<{
|
|
213
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
}>>;
|
|
179
216
|
}>>;
|
|
180
217
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
181
218
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -187,7 +224,9 @@ declare namespace ListItems {
|
|
|
187
224
|
hoverColor: PropTypes.Requireable<string>;
|
|
188
225
|
disabled: PropTypes.Requireable<boolean>;
|
|
189
226
|
className: PropTypes.Requireable<string>;
|
|
190
|
-
customStyle: PropTypes.Requireable<
|
|
227
|
+
customStyle: PropTypes.Requireable<{
|
|
228
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
229
|
+
}>;
|
|
191
230
|
}> | PropTypes.InferProps<{
|
|
192
231
|
componentType: PropTypes.Requireable<string>;
|
|
193
232
|
disabled: PropTypes.Requireable<boolean>;
|
|
@@ -199,6 +238,23 @@ declare namespace ListItems {
|
|
|
199
238
|
label: PropTypes.Validator<string>;
|
|
200
239
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
201
240
|
type: PropTypes.Requireable<string>;
|
|
241
|
+
buttonLinkType: PropTypes.Requireable<string>;
|
|
242
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
243
|
+
position: PropTypes.Validator<string>;
|
|
244
|
+
type: PropTypes.Requireable<string>;
|
|
245
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
246
|
+
name: PropTypes.Validator<string>;
|
|
247
|
+
color: PropTypes.Requireable<string>;
|
|
248
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
249
|
+
size: PropTypes.Requireable<number>;
|
|
250
|
+
customStyle: PropTypes.Requireable<{
|
|
251
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
252
|
+
}>;
|
|
253
|
+
}>>;
|
|
254
|
+
}>>;
|
|
255
|
+
customStyle: PropTypes.Requireable<{
|
|
256
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
257
|
+
}>;
|
|
202
258
|
}> | null | undefined)[]>;
|
|
203
259
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
204
260
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
@@ -14,8 +14,17 @@ declare namespace SetupHeader {
|
|
|
14
14
|
'data-name': PropTypes.Requireable<string>;
|
|
15
15
|
'data-testid': PropTypes.Requireable<string>;
|
|
16
16
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
|
-
position: PropTypes.
|
|
17
|
+
position: PropTypes.Validator<string>;
|
|
18
18
|
type: PropTypes.Requireable<string>;
|
|
19
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
|
+
name: PropTypes.Validator<string>;
|
|
21
|
+
color: PropTypes.Requireable<string>;
|
|
22
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
23
|
+
size: PropTypes.Requireable<number>;
|
|
24
|
+
customStyle: PropTypes.Requireable<{
|
|
25
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
}>>;
|
|
19
28
|
}>>;
|
|
20
29
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
30
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -27,7 +36,9 @@ declare namespace SetupHeader {
|
|
|
27
36
|
hoverColor: PropTypes.Requireable<string>;
|
|
28
37
|
disabled: PropTypes.Requireable<boolean>;
|
|
29
38
|
className: PropTypes.Requireable<string>;
|
|
30
|
-
customStyle: PropTypes.Requireable<
|
|
39
|
+
customStyle: PropTypes.Requireable<{
|
|
40
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
41
|
+
}>;
|
|
31
42
|
}>>;
|
|
32
43
|
logOut: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
44
|
type: PropTypes.Requireable<string>;
|
|
@@ -40,8 +51,17 @@ declare namespace SetupHeader {
|
|
|
40
51
|
'data-name': PropTypes.Requireable<string>;
|
|
41
52
|
'data-testid': PropTypes.Requireable<string>;
|
|
42
53
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
43
|
-
position: PropTypes.
|
|
54
|
+
position: PropTypes.Validator<string>;
|
|
44
55
|
type: PropTypes.Requireable<string>;
|
|
56
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
57
|
+
name: PropTypes.Validator<string>;
|
|
58
|
+
color: PropTypes.Requireable<string>;
|
|
59
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
60
|
+
size: PropTypes.Requireable<number>;
|
|
61
|
+
customStyle: PropTypes.Requireable<{
|
|
62
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
}>>;
|
|
45
65
|
}>>;
|
|
46
66
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
67
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -53,7 +73,9 @@ declare namespace SetupHeader {
|
|
|
53
73
|
hoverColor: PropTypes.Requireable<string>;
|
|
54
74
|
disabled: PropTypes.Requireable<boolean>;
|
|
55
75
|
className: PropTypes.Requireable<string>;
|
|
56
|
-
customStyle: PropTypes.Requireable<
|
|
76
|
+
customStyle: PropTypes.Requireable<{
|
|
77
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
78
|
+
}>;
|
|
57
79
|
}>>;
|
|
58
80
|
globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
59
81
|
type: PropTypes.Requireable<string>;
|
|
@@ -66,8 +88,17 @@ declare namespace SetupHeader {
|
|
|
66
88
|
'data-name': PropTypes.Requireable<string>;
|
|
67
89
|
'data-testid': PropTypes.Requireable<string>;
|
|
68
90
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
|
-
position: PropTypes.
|
|
91
|
+
position: PropTypes.Validator<string>;
|
|
70
92
|
type: PropTypes.Requireable<string>;
|
|
93
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
94
|
+
name: PropTypes.Validator<string>;
|
|
95
|
+
color: PropTypes.Requireable<string>;
|
|
96
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
97
|
+
size: PropTypes.Requireable<number>;
|
|
98
|
+
customStyle: PropTypes.Requireable<{
|
|
99
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
}>>;
|
|
71
102
|
}>>;
|
|
72
103
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
104
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -79,7 +110,9 @@ declare namespace SetupHeader {
|
|
|
79
110
|
hoverColor: PropTypes.Requireable<string>;
|
|
80
111
|
disabled: PropTypes.Requireable<boolean>;
|
|
81
112
|
className: PropTypes.Requireable<string>;
|
|
82
|
-
customStyle: PropTypes.Requireable<
|
|
113
|
+
customStyle: PropTypes.Requireable<{
|
|
114
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
115
|
+
}>;
|
|
83
116
|
}>>;
|
|
84
117
|
platformList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
85
118
|
type: PropTypes.Requireable<string>;
|
|
@@ -92,8 +125,17 @@ declare namespace SetupHeader {
|
|
|
92
125
|
'data-name': PropTypes.Requireable<string>;
|
|
93
126
|
'data-testid': PropTypes.Requireable<string>;
|
|
94
127
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
95
|
-
position: PropTypes.
|
|
128
|
+
position: PropTypes.Validator<string>;
|
|
96
129
|
type: PropTypes.Requireable<string>;
|
|
130
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
131
|
+
name: PropTypes.Validator<string>;
|
|
132
|
+
color: PropTypes.Requireable<string>;
|
|
133
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
134
|
+
size: PropTypes.Requireable<number>;
|
|
135
|
+
customStyle: PropTypes.Requireable<{
|
|
136
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
}>>;
|
|
97
139
|
}>>;
|
|
98
140
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
99
141
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -105,7 +147,9 @@ declare namespace SetupHeader {
|
|
|
105
147
|
hoverColor: PropTypes.Requireable<string>;
|
|
106
148
|
disabled: PropTypes.Requireable<boolean>;
|
|
107
149
|
className: PropTypes.Requireable<string>;
|
|
108
|
-
customStyle: PropTypes.Requireable<
|
|
150
|
+
customStyle: PropTypes.Requireable<{
|
|
151
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
152
|
+
}>;
|
|
109
153
|
}>>;
|
|
110
154
|
}>>;
|
|
111
155
|
const platformName: PropTypes.Requireable<string>;
|