@elliemae/ds-side-panel 1.60.0 → 2.0.0-alpha.12
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/cjs/SidePanel.js +40 -45
- package/cjs/SidePanelHeader.js +35 -45
- package/cjs/TemplateBasicPageWithSidePanel.js +27 -33
- package/cjs/defaultProps.js +1 -2
- package/cjs/index.js +1 -12
- package/cjs/props.js +1 -2
- package/esm/SidePanel.js +38 -43
- package/esm/SidePanelHeader.js +34 -44
- package/esm/TemplateBasicPageWithSidePanel.js +25 -31
- package/esm/defaultProps.js +1 -2
- package/esm/index.js +0 -11
- package/esm/props.js +1 -2
- package/package.json +52 -15
- package/types/SidePanel.d.ts +107 -0
- package/types/SidePanelHeader.d.ts +51 -0
- package/types/TemplateBasicPageWithSidePanel.d.ts +120 -0
- package/types/defaultProps.d.ts +8 -0
- package/types/index.d.ts +4 -0
- package/types/props.d.ts +102 -0
- package/SidePanel/package.json +0 -10
- package/SidePanelHeader/package.json +0 -10
- package/TemplateBasicPageWithSidePanel/package.json +0 -10
- package/cjs/SidePanel.js.map +0 -1
- package/cjs/SidePanelHeader.js.map +0 -1
- package/cjs/TemplateBasicPageWithSidePanel.js.map +0 -1
- package/cjs/defaultProps.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/props.js.map +0 -1
- package/defaultProps/package.json +0 -10
- package/esm/SidePanel.js.map +0 -1
- package/esm/SidePanelHeader.js.map +0 -1
- package/esm/TemplateBasicPageWithSidePanel.js.map +0 -1
- package/esm/defaultProps.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/props.js.map +0 -1
- package/props/package.json +0 -10
package/esm/SidePanelHeader.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
2
3
|
import { PropTypes, describe } from 'react-desc';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { noop } from 'lodash';
|
|
@@ -7,78 +8,69 @@ import { CloseSmall } from '@elliemae/ds-icons';
|
|
|
7
8
|
import DSButton from '@elliemae/ds-button';
|
|
8
9
|
import { Grid } from '@elliemae/ds-grid';
|
|
9
10
|
|
|
10
|
-
var
|
|
11
|
+
var _Grid, _CloseSmall;
|
|
12
|
+
const StyledSeparator = /*#__PURE__*/styled.div.withConfig({
|
|
11
13
|
componentId: "sc-1xdsdq5-0"
|
|
12
|
-
})(["width:0;height:100%;margin:0 ", ";border-left:", ";"],
|
|
13
|
-
|
|
14
|
-
}, function (props) {
|
|
15
|
-
return "".concat(props.theme.colors.neutral[300], " 1px solid");
|
|
16
|
-
});
|
|
17
|
-
var StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
14
|
+
})(["width:0;height:100%;margin:0 ", ";border-left:", ";"], props => props.theme.space.xxs, props => "".concat(props.theme.colors.neutral[300], " 1px solid"));
|
|
15
|
+
const StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
18
16
|
componentId: "sc-1xdsdq5-1"
|
|
19
|
-
})(["font-size:18px;font-weight:", ";color:", ";", ""],
|
|
20
|
-
|
|
21
|
-
}, function (props) {
|
|
22
|
-
return props.theme.colors.neutral['700'];
|
|
23
|
-
}, truncate());
|
|
24
|
-
var Wrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
17
|
+
})(["font-size:18px;font-weight:", ";color:", ";", ""], props => props.theme.fontWeights.regular, props => props.theme.colors.neutral['700'], truncate());
|
|
18
|
+
const Wrapper = /*#__PURE__*/styled(Grid).withConfig({
|
|
25
19
|
componentId: "sc-1xdsdq5-2"
|
|
26
|
-
})(["border-bottom:", ";"],
|
|
27
|
-
return border(props.theme.colors.neutral['300']);
|
|
28
|
-
});
|
|
20
|
+
})(["border-bottom:", ";"], props => border(props.theme.colors.neutral['300']));
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var separator = /*#__PURE__*/React.createElement(Grid, {
|
|
22
|
+
const SidePanelHeader = _ref => {
|
|
23
|
+
let {
|
|
24
|
+
title = null,
|
|
25
|
+
additionalAction = null,
|
|
26
|
+
onClose = noop,
|
|
27
|
+
showClose = true
|
|
28
|
+
} = _ref;
|
|
29
|
+
const theme = useTheme();
|
|
30
|
+
|
|
31
|
+
const separator = _Grid || (_Grid = /*#__PURE__*/_jsx(Grid, {
|
|
41
32
|
height: "24px"
|
|
42
|
-
}, /*#__PURE__*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
}, void 0, /*#__PURE__*/_jsx(StyledSeparator, {})));
|
|
34
|
+
|
|
35
|
+
const cols = [1, 'auto', 'auto'];
|
|
36
|
+
const cols2 = ['auto'];
|
|
37
|
+
return /*#__PURE__*/_jsx(Wrapper, {
|
|
46
38
|
cols: cols,
|
|
47
39
|
height: theme.space.m,
|
|
48
40
|
pl: theme.space.xs,
|
|
49
41
|
pr: theme.space.xs,
|
|
50
42
|
alignItems: "center",
|
|
51
43
|
width: "100%"
|
|
52
|
-
}, /*#__PURE__*/
|
|
44
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
53
45
|
alignItems: "center",
|
|
54
46
|
justifyContent: "flex-start",
|
|
55
47
|
cols: cols2
|
|
56
|
-
}, /*#__PURE__*/
|
|
48
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
57
49
|
cols: [1],
|
|
58
50
|
alignItems: "center",
|
|
59
51
|
pr: theme.space.xs
|
|
60
|
-
}, /*#__PURE__*/
|
|
52
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
61
53
|
flexGrow: 0
|
|
62
|
-
}, /*#__PURE__*/
|
|
54
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
63
55
|
cols: ['auto', 'auto'],
|
|
64
56
|
alignItems: "center"
|
|
65
|
-
}, /*#__PURE__*/
|
|
57
|
+
}, void 0, /*#__PURE__*/_jsx(StyledTitle, {
|
|
66
58
|
maxWidth: "100%",
|
|
67
59
|
alignItems: "center"
|
|
68
|
-
}, title))))), /*#__PURE__*/
|
|
60
|
+
}, void 0, title))))), /*#__PURE__*/_jsx(Grid, {
|
|
69
61
|
ml: "xxs",
|
|
70
62
|
alignItems: "center",
|
|
71
63
|
cols: additionalAction ? ['auto', 'auto', 'auto'] : ['auto']
|
|
72
|
-
}, additionalAction && /*#__PURE__*/
|
|
64
|
+
}, void 0, additionalAction && /*#__PURE__*/_jsx(Grid, {}, void 0, additionalAction), additionalAction && showClose && separator, /*#__PURE__*/_jsx(Grid, {}, void 0, showClose && /*#__PURE__*/_jsx(DSButton, {
|
|
73
65
|
buttonType: "text",
|
|
74
|
-
icon: /*#__PURE__*/
|
|
66
|
+
icon: _CloseSmall || (_CloseSmall = /*#__PURE__*/_jsx(CloseSmall, {})),
|
|
75
67
|
size: "m",
|
|
76
68
|
onClick: onClose,
|
|
77
69
|
"data-testid": "btn-close-slide-panel"
|
|
78
70
|
}))));
|
|
79
71
|
};
|
|
80
72
|
|
|
81
|
-
|
|
73
|
+
const props = {
|
|
82
74
|
/** Page title */
|
|
83
75
|
title: PropTypes.string.description('Page title'),
|
|
84
76
|
|
|
@@ -91,9 +83,7 @@ var props = {
|
|
|
91
83
|
/** Show/Hide close button */
|
|
92
84
|
showClose: PropTypes.bool.description('Show/Hide close button')
|
|
93
85
|
};
|
|
94
|
-
|
|
95
|
-
var DSSidePanelHeaderWithSchema = describe(SidePanelHeader);
|
|
86
|
+
const DSSidePanelHeaderWithSchema = describe(SidePanelHeader);
|
|
96
87
|
DSSidePanelHeaderWithSchema.propTypes = props;
|
|
97
88
|
|
|
98
89
|
export { DSSidePanelHeaderWithSchema, SidePanelHeader };
|
|
99
|
-
//# sourceMappingURL=SidePanelHeader.js.map
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
2
3
|
import { PropTypes, describe } from 'react-desc';
|
|
3
4
|
import { Grid } from '@elliemae/ds-grid';
|
|
4
5
|
import { SidePanel } from './SidePanel.js';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
import '@elliemae/ds-system';
|
|
7
|
-
import './props.js';
|
|
8
|
-
import './defaultProps.js';
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
7
|
+
const TemplateBasicPageWithSidePanel = _ref => {
|
|
8
|
+
let {
|
|
9
|
+
globalHeader = null,
|
|
10
|
+
mainHeader = null,
|
|
11
|
+
mainContent,
|
|
12
|
+
mainFooter,
|
|
13
|
+
isOpen = false,
|
|
14
|
+
onClose,
|
|
15
|
+
panelFooter,
|
|
16
|
+
panelHeader,
|
|
17
|
+
panelContent,
|
|
18
|
+
panelWidth
|
|
19
|
+
} = _ref;
|
|
20
|
+
return /*#__PURE__*/_jsx(Grid, {
|
|
25
21
|
style: {
|
|
26
22
|
overflow: 'hidden',
|
|
27
23
|
width: '100%'
|
|
@@ -29,38 +25,38 @@ var TemplateBasicPageWithSidePanel = function TemplateBasicPageWithSidePanel(_re
|
|
|
29
25
|
height: "100%",
|
|
30
26
|
maxHeight: "100%",
|
|
31
27
|
rows: ['auto', '1fr']
|
|
32
|
-
}, /*#__PURE__*/
|
|
28
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, globalHeader), /*#__PURE__*/_jsx(SidePanel, {
|
|
33
29
|
footer: panelFooter,
|
|
34
30
|
header: panelHeader,
|
|
35
31
|
panelWidth: panelWidth,
|
|
36
32
|
onClose: onClose,
|
|
37
33
|
panelContent: panelContent,
|
|
38
34
|
isOpen: isOpen
|
|
39
|
-
}, /*#__PURE__*/
|
|
35
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
40
36
|
style: {
|
|
41
37
|
overflow: 'hidden'
|
|
42
38
|
},
|
|
43
39
|
height: "100%",
|
|
44
40
|
maxHeight: "100%"
|
|
45
|
-
}, /*#__PURE__*/
|
|
41
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
46
42
|
rows: mainFooter ? [mainHeader ? 'auto' : '0px', 'minmax(0px, 1fr)', '48px'] : [mainHeader ? 'auto' : '0px', 'minmax(0px, 1fr)'],
|
|
47
43
|
style: {
|
|
48
44
|
overflow: 'hidden'
|
|
49
45
|
}
|
|
50
|
-
}, /*#__PURE__*/
|
|
46
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {}, void 0, mainHeader), /*#__PURE__*/_jsx(Grid, {
|
|
51
47
|
style: {
|
|
52
48
|
overflow: 'hidden'
|
|
53
49
|
}
|
|
54
|
-
}, /*#__PURE__*/
|
|
50
|
+
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
55
51
|
style: {
|
|
56
52
|
overflow: 'auto'
|
|
57
53
|
}
|
|
58
|
-
}, mainContent)), mainFooter && /*#__PURE__*/
|
|
54
|
+
}, void 0, mainContent)), mainFooter && /*#__PURE__*/_jsx(Grid, {
|
|
59
55
|
alignItems: "center"
|
|
60
|
-
}, mainFooter)))));
|
|
56
|
+
}, void 0, mainFooter)))));
|
|
61
57
|
};
|
|
62
58
|
|
|
63
|
-
|
|
59
|
+
const props = {
|
|
64
60
|
/**
|
|
65
61
|
* Global Header
|
|
66
62
|
*/
|
|
@@ -111,9 +107,7 @@ var props = {
|
|
|
111
107
|
*/
|
|
112
108
|
onClose: PropTypes.func.description('callback')
|
|
113
109
|
};
|
|
114
|
-
|
|
115
|
-
var DSTemplateBasicPageWithSidePanel = describe(TemplateBasicPageWithSidePanel);
|
|
110
|
+
const DSTemplateBasicPageWithSidePanel = describe(TemplateBasicPageWithSidePanel);
|
|
116
111
|
DSTemplateBasicPageWithSidePanel.propTypes = props;
|
|
117
112
|
|
|
118
113
|
export { DSTemplateBasicPageWithSidePanel, TemplateBasicPageWithSidePanel };
|
|
119
|
-
//# sourceMappingURL=TemplateBasicPageWithSidePanel.js.map
|
package/esm/defaultProps.js
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
export { DSSidePanelWithSchema, SidePanel, SidePanel as default } from './SidePanel.js';
|
|
2
2
|
export { DSSidePanelHeaderWithSchema, SidePanelHeader } from './SidePanelHeader.js';
|
|
3
3
|
export { DSTemplateBasicPageWithSidePanel, TemplateBasicPageWithSidePanel } from './TemplateBasicPageWithSidePanel.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'react-desc';
|
|
6
|
-
import 'styled-components';
|
|
7
|
-
import '@elliemae/ds-system';
|
|
8
|
-
import '@elliemae/ds-grid';
|
|
9
|
-
import './props.js';
|
|
10
|
-
import './defaultProps.js';
|
|
11
|
-
import 'lodash';
|
|
12
|
-
import '@elliemae/ds-icons';
|
|
13
|
-
import '@elliemae/ds-button';
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
package/esm/props.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-side-panel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"module": "esm/index.js",
|
|
7
|
-
"main": "cjs/index.js",
|
|
5
|
+
"description": "ICE MT - Dimsum - Side Panel",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./TemplateBasicPageWithSidePanel": {
|
|
15
|
+
"import": "./esm/TemplateBasicPageWithSidePanel.js",
|
|
16
|
+
"require": "./cjs/TemplateBasicPageWithSidePanel.js"
|
|
17
|
+
},
|
|
18
|
+
"./SidePanelHeader": {
|
|
19
|
+
"import": "./esm/SidePanelHeader.js",
|
|
20
|
+
"require": "./cjs/SidePanelHeader.js"
|
|
21
|
+
},
|
|
22
|
+
"./SidePanel": {
|
|
23
|
+
"import": "./esm/SidePanel.js",
|
|
24
|
+
"require": "./cjs/SidePanel.js"
|
|
25
|
+
},
|
|
26
|
+
"./props": {
|
|
27
|
+
"import": "./esm/props.js",
|
|
28
|
+
"require": "./cjs/props.js"
|
|
29
|
+
},
|
|
30
|
+
"./defaultProps": {
|
|
31
|
+
"import": "./esm/defaultProps.js",
|
|
32
|
+
"require": "./cjs/defaultProps.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
8
35
|
"sideEffects": [
|
|
9
36
|
"*.css",
|
|
10
37
|
"*.scss"
|
|
11
38
|
],
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"npm": ">=7",
|
|
45
|
+
"node": ">=14"
|
|
46
|
+
},
|
|
47
|
+
"author": "ICE MT",
|
|
12
48
|
"scripts": {
|
|
13
49
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
14
50
|
"prebuild": "exit 0",
|
|
@@ -16,23 +52,24 @@
|
|
|
16
52
|
"build": "node ../../scripts/build/build.js"
|
|
17
53
|
},
|
|
18
54
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-button": "
|
|
20
|
-
"@elliemae/ds-grid": "
|
|
21
|
-
"@elliemae/ds-icons": "
|
|
22
|
-
"@elliemae/ds-system": "
|
|
23
|
-
"react-desc": "
|
|
55
|
+
"@elliemae/ds-button": "2.0.0-alpha.12",
|
|
56
|
+
"@elliemae/ds-grid": "2.0.0-alpha.12",
|
|
57
|
+
"@elliemae/ds-icons": "2.0.0-alpha.12",
|
|
58
|
+
"@elliemae/ds-system": "2.0.0-alpha.12",
|
|
59
|
+
"react-desc": "~4.1.3"
|
|
24
60
|
},
|
|
25
61
|
"devDependencies": {
|
|
26
|
-
"styled-components": "~5.3.
|
|
62
|
+
"styled-components": "~5.3.3"
|
|
27
63
|
},
|
|
28
64
|
"peerDependencies": {
|
|
29
|
-
"lodash": "^4.17.
|
|
30
|
-
"react": "^17.0.
|
|
31
|
-
"react-dom": "^17.0.
|
|
32
|
-
"styled-components": "^5.3.
|
|
65
|
+
"lodash": "^4.17.21",
|
|
66
|
+
"react": "^17.0.2",
|
|
67
|
+
"react-dom": "^17.0.2",
|
|
68
|
+
"styled-components": "^5.3.3"
|
|
33
69
|
},
|
|
34
70
|
"publishConfig": {
|
|
35
71
|
"access": "public",
|
|
36
|
-
"directory": "dist"
|
|
72
|
+
"directory": "dist",
|
|
73
|
+
"generateSubmodules": true
|
|
37
74
|
}
|
|
38
75
|
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const SidePanel: {
|
|
4
|
+
({ children, isOpen, footer, header, panelContent, panelWidth, panelContentOverflow, widthWhenIsClosed, noGridInfluencer, withBorder, withBoxShadow, }: {
|
|
5
|
+
children: any;
|
|
6
|
+
isOpen: any;
|
|
7
|
+
footer: any;
|
|
8
|
+
header: any;
|
|
9
|
+
panelContent: any;
|
|
10
|
+
panelWidth: any;
|
|
11
|
+
panelContentOverflow: any;
|
|
12
|
+
widthWhenIsClosed: any;
|
|
13
|
+
noGridInfluencer: any;
|
|
14
|
+
withBorder?: boolean | undefined;
|
|
15
|
+
withBoxShadow?: boolean | undefined;
|
|
16
|
+
}): React.ReactElement;
|
|
17
|
+
propTypes: {
|
|
18
|
+
children: any;
|
|
19
|
+
isOpen: {
|
|
20
|
+
defaultValue<T = unknown>(arg: T): {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
footer: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
31
|
+
header: {
|
|
32
|
+
defaultValue<T = unknown>(arg: T): {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
panelContent: {
|
|
38
|
+
defaultValue<T = unknown>(arg: T): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
panelWidth: {
|
|
44
|
+
defaultValue<T = unknown>(arg: T): {
|
|
45
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
47
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
48
|
+
};
|
|
49
|
+
widthWhenIsClosed: {
|
|
50
|
+
defaultValue<T = unknown>(arg: T): {
|
|
51
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
52
|
+
};
|
|
53
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
panelContentOverflow: {
|
|
56
|
+
defaultValue<T = unknown>(arg: T): {
|
|
57
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
withBorder: {
|
|
62
|
+
defaultValue<T = unknown>(arg: T): {
|
|
63
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
64
|
+
};
|
|
65
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
66
|
+
};
|
|
67
|
+
withBoxShadow: {
|
|
68
|
+
defaultValue<T = unknown>(arg: T): {
|
|
69
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
noGridInfluencer: {
|
|
74
|
+
defaultValue<T = unknown>(arg: T): {
|
|
75
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
76
|
+
};
|
|
77
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
defaultProps: {
|
|
81
|
+
isOpen: boolean;
|
|
82
|
+
panelWidth: number;
|
|
83
|
+
widthWhenIsClosed: number;
|
|
84
|
+
panelContentOverflow: string;
|
|
85
|
+
withBorder: boolean;
|
|
86
|
+
withBoxShadow: boolean;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
declare const DSSidePanelWithSchema: {
|
|
90
|
+
(props?: {
|
|
91
|
+
children: any;
|
|
92
|
+
isOpen: any;
|
|
93
|
+
footer: any;
|
|
94
|
+
header: any;
|
|
95
|
+
panelContent: any;
|
|
96
|
+
panelWidth: any;
|
|
97
|
+
panelContentOverflow: any;
|
|
98
|
+
widthWhenIsClosed: any;
|
|
99
|
+
noGridInfluencer: any;
|
|
100
|
+
withBorder?: boolean | undefined;
|
|
101
|
+
withBoxShadow?: boolean | undefined;
|
|
102
|
+
} | undefined): JSX.Element;
|
|
103
|
+
propTypes: unknown;
|
|
104
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
105
|
+
};
|
|
106
|
+
export { SidePanel, DSSidePanelWithSchema };
|
|
107
|
+
export default SidePanel;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const SidePanelHeader: {
|
|
4
|
+
({ title, additionalAction, onClose, showClose }: {
|
|
5
|
+
title?: null | undefined;
|
|
6
|
+
additionalAction?: null | undefined;
|
|
7
|
+
onClose?: ((...args: any[]) => void) | undefined;
|
|
8
|
+
showClose?: boolean | undefined;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
propTypes: {
|
|
11
|
+
/** Page title */
|
|
12
|
+
title: {
|
|
13
|
+
defaultValue<T = unknown>(arg: T): {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
/** Action button */
|
|
19
|
+
additionalAction: {
|
|
20
|
+
defaultValue<T = unknown>(arg: T): {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
/** Called when the slide collapse */
|
|
26
|
+
onClose: {
|
|
27
|
+
defaultValue<T = unknown>(arg: T): {
|
|
28
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
/** Show/Hide close button */
|
|
33
|
+
showClose: {
|
|
34
|
+
defaultValue<T = unknown>(arg: T): {
|
|
35
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
declare const DSSidePanelHeaderWithSchema: {
|
|
42
|
+
(props?: {
|
|
43
|
+
title?: null | undefined;
|
|
44
|
+
additionalAction?: null | undefined;
|
|
45
|
+
onClose?: ((...args: any[]) => void) | undefined;
|
|
46
|
+
showClose?: boolean | undefined;
|
|
47
|
+
} | undefined): JSX.Element;
|
|
48
|
+
propTypes: unknown;
|
|
49
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
50
|
+
};
|
|
51
|
+
export { SidePanelHeader, DSSidePanelHeaderWithSchema };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const TemplateBasicPageWithSidePanel: {
|
|
4
|
+
({ globalHeader, mainHeader, mainContent, mainFooter, isOpen, onClose, panelFooter, panelHeader, panelContent, panelWidth, }: {
|
|
5
|
+
globalHeader?: null | undefined;
|
|
6
|
+
mainHeader?: null | undefined;
|
|
7
|
+
mainContent: any;
|
|
8
|
+
mainFooter: any;
|
|
9
|
+
isOpen?: boolean | undefined;
|
|
10
|
+
onClose: any;
|
|
11
|
+
panelFooter: any;
|
|
12
|
+
panelHeader: any;
|
|
13
|
+
panelContent: any;
|
|
14
|
+
panelWidth: any;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
propTypes: {
|
|
17
|
+
/**
|
|
18
|
+
* Global Header
|
|
19
|
+
*/
|
|
20
|
+
globalHeader: {
|
|
21
|
+
defaultValue<T = unknown>(arg: T): {
|
|
22
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Main Header
|
|
28
|
+
*/
|
|
29
|
+
mainHeader: {
|
|
30
|
+
defaultValue<T = unknown>(arg: T): {
|
|
31
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
+
};
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Main content
|
|
37
|
+
*/
|
|
38
|
+
mainContent: any;
|
|
39
|
+
/**
|
|
40
|
+
* Main Footer
|
|
41
|
+
*/
|
|
42
|
+
mainFooter: {
|
|
43
|
+
defaultValue<T = unknown>(arg: T): {
|
|
44
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Should show the slide panel or not
|
|
50
|
+
*/
|
|
51
|
+
isOpen: {
|
|
52
|
+
defaultValue<T = unknown>(arg: T): {
|
|
53
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
54
|
+
};
|
|
55
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Footer for Slide Panel
|
|
59
|
+
*/
|
|
60
|
+
panelFooter: {
|
|
61
|
+
defaultValue<T = unknown>(arg: T): {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Header for Slide Panel instance of SlidePanelHeader
|
|
68
|
+
*/
|
|
69
|
+
panelHeader: {
|
|
70
|
+
defaultValue<T = unknown>(arg: T): {
|
|
71
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Content for Slide Panel
|
|
77
|
+
*/
|
|
78
|
+
panelContent: {
|
|
79
|
+
defaultValue<T = unknown>(arg: T): {
|
|
80
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
81
|
+
};
|
|
82
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Width of the panel open. eg: 300
|
|
86
|
+
*/
|
|
87
|
+
panelWidth: {
|
|
88
|
+
defaultValue<T = unknown>(arg: T): {
|
|
89
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
90
|
+
};
|
|
91
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Callback
|
|
95
|
+
*/
|
|
96
|
+
onClose: {
|
|
97
|
+
defaultValue<T = unknown>(arg: T): {
|
|
98
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
99
|
+
};
|
|
100
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
declare const DSTemplateBasicPageWithSidePanel: {
|
|
105
|
+
(props?: {
|
|
106
|
+
globalHeader?: null | undefined;
|
|
107
|
+
mainHeader?: null | undefined;
|
|
108
|
+
mainContent: any;
|
|
109
|
+
mainFooter: any;
|
|
110
|
+
isOpen?: boolean | undefined;
|
|
111
|
+
onClose: any;
|
|
112
|
+
panelFooter: any;
|
|
113
|
+
panelHeader: any;
|
|
114
|
+
panelContent: any;
|
|
115
|
+
panelWidth: any;
|
|
116
|
+
} | undefined): JSX.Element;
|
|
117
|
+
propTypes: unknown;
|
|
118
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
119
|
+
};
|
|
120
|
+
export { TemplateBasicPageWithSidePanel, DSTemplateBasicPageWithSidePanel };
|
package/types/index.d.ts
ADDED