@elliemae/ds-page-layout 3.0.0-next.2 → 3.0.0-next.6
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/dist/cjs/PageLayout.js +78 -0
- package/dist/cjs/PageLayout.js.map +7 -0
- package/dist/cjs/index.js +36 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/props.js +44 -0
- package/dist/cjs/props.js.map +7 -0
- package/dist/esm/PageLayout.js +49 -0
- package/dist/esm/PageLayout.js.map +7 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/props.js +15 -0
- package/dist/esm/props.js.map +7 -0
- package/package.json +29 -20
- package/cjs/PageLayout.js +0 -62
- package/cjs/index.js +0 -11
- package/cjs/props.js +0 -17
- package/esm/PageLayout.js +0 -53
- package/esm/index.js +0 -1
- package/esm/props.js +0 -13
- package/types/PageLayout.d.ts +0 -61
- package/types/index.d.ts +0 -2
- package/types/props.d.ts +0 -35
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var PageLayout_exports = {};
|
|
29
|
+
__export(PageLayout_exports, {
|
|
30
|
+
PageLayout: () => PageLayout,
|
|
31
|
+
PageLayoutWithSchema: () => PageLayoutWithSchema
|
|
32
|
+
});
|
|
33
|
+
var React = __toESM(require("react"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_props = require("./props");
|
|
36
|
+
var import_react_desc = require("react-desc");
|
|
37
|
+
var import_ds_grid = require("@elliemae/ds-grid");
|
|
38
|
+
const PageLayout = ({
|
|
39
|
+
GlobalHeader,
|
|
40
|
+
ContextHeader,
|
|
41
|
+
PageHeader,
|
|
42
|
+
ContentRegion,
|
|
43
|
+
LeftNav,
|
|
44
|
+
SidePanel,
|
|
45
|
+
Footer
|
|
46
|
+
}) => {
|
|
47
|
+
const mainRegionRows = () => {
|
|
48
|
+
if (PageHeader && Footer)
|
|
49
|
+
return ["auto", "1fr", "auto"];
|
|
50
|
+
if (PageHeader && !Footer)
|
|
51
|
+
return ["auto", "1fr"];
|
|
52
|
+
if (!PageHeader && !Footer)
|
|
53
|
+
return ["auto"];
|
|
54
|
+
if (!PageHeader && Footer)
|
|
55
|
+
return ["1fr", "auto"];
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
|
|
58
|
+
style: { width: "100%" },
|
|
59
|
+
height: "100vh",
|
|
60
|
+
rows: ContextHeader ? ["auto", "auto", "1fr"] : ["auto", "1fr"],
|
|
61
|
+
"data-testid": "page-layout"
|
|
62
|
+
}, GlobalHeader && /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, null, /* @__PURE__ */ import_react.default.createElement(GlobalHeader, null)), ContextHeader && /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, null, /* @__PURE__ */ import_react.default.createElement(ContextHeader, null)), /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
|
|
63
|
+
cols: LeftNav ? ["auto", "1fr"] : ["auto"]
|
|
64
|
+
}, LeftNav && /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, null, /* @__PURE__ */ import_react.default.createElement(LeftNav, null)), /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
|
|
65
|
+
rows: mainRegionRows()
|
|
66
|
+
}, PageHeader && /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
|
|
67
|
+
style: { minHeight: "48px" }
|
|
68
|
+
}, /* @__PURE__ */ import_react.default.createElement(PageHeader, null)), ContentRegion && /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
|
|
69
|
+
cols: SidePanel ? ["auto", "fit-content(100%)"] : ["auto"]
|
|
70
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
|
|
71
|
+
style: { minHeight: "480px", overflow: "scroll" }
|
|
72
|
+
}, /* @__PURE__ */ import_react.default.createElement(ContentRegion, null)), SidePanel && /* @__PURE__ */ import_react.default.createElement(SidePanel, null)), Footer && /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, null, /* @__PURE__ */ import_react.default.createElement(Footer, null)))));
|
|
73
|
+
};
|
|
74
|
+
PageLayout.propTypes = import_props.pageLayoutProps;
|
|
75
|
+
const PageLayoutWithSchema = (0, import_react_desc.describe)(PageLayout);
|
|
76
|
+
PageLayoutWithSchema.propTypes = import_props.pageLayoutProps;
|
|
77
|
+
module.exports = __toCommonJS(PageLayout_exports);
|
|
78
|
+
//# sourceMappingURL=PageLayout.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/PageLayout.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react'\nimport { pageLayoutProps } from './props'\nimport { describe } from 'react-desc';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst PageLayout = ({\n GlobalHeader,\n ContextHeader,\n PageHeader,\n ContentRegion,\n LeftNav,\n SidePanel,\n Footer,\n}) => {\n const mainRegionRows = () => {\n if (PageHeader && Footer) return ['auto', '1fr', 'auto']\n if (PageHeader && !Footer) return ['auto', '1fr']\n if (!PageHeader && !Footer) return ['auto']\n if (!PageHeader && Footer) return ['1fr', 'auto']\n }\n\n return (\n <Grid \n style={{ width: '100%' }}\n height=\"100vh\"\n rows={ContextHeader ? ['auto', 'auto', '1fr'] : ['auto', '1fr']}\n data-testid=\"page-layout\"\n >\n {GlobalHeader && <Grid><GlobalHeader /></Grid>}\n {ContextHeader && <Grid><ContextHeader /></Grid>}\n <Grid cols={LeftNav ? ['auto', '1fr'] : ['auto']}>\n {LeftNav && <Grid><LeftNav /></Grid>}\n <Grid rows={mainRegionRows()}>\n {PageHeader && <Grid style={{minHeight: \"48px\"}}><PageHeader /></Grid>}\n {ContentRegion && (\n <Grid cols={SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']} >\n {<Grid style={{minHeight: \"480px\", overflow: \"scroll\"}}>\n <ContentRegion />\n </Grid>}\n {SidePanel && <SidePanel />}\n </Grid>\n )}\n {Footer && <Grid ><Footer /></Grid>}\n </Grid>\n </Grid>\n </Grid>\n )\n}\n\nPageLayout.propTypes = pageLayoutProps;\nconst PageLayoutWithSchema = describe(PageLayout);\nPageLayoutWithSchema.propTypes = pageLayoutProps;\n\nexport { PageLayout, PageLayoutWithSchema }\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,mBAAgC;AAChC,wBAAyB;AACzB,qBAAqB;AAErB,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MACI;AACJ,QAAM,iBAAiB,MAAM;AAC3B,QAAI,cAAc;AAAQ,aAAO,CAAC,QAAQ,OAAO;AACjD,QAAI,cAAc,CAAC;AAAQ,aAAO,CAAC,QAAQ;AAC3C,QAAI,CAAC,cAAc,CAAC;AAAQ,aAAO,CAAC;AACpC,QAAI,CAAC,cAAc;AAAQ,aAAO,CAAC,OAAO;AAAA;AAG5C,SACE,mDAAC,qBAAD;AAAA,IACE,OAAO,EAAE,OAAO;AAAA,IAChB,QAAO;AAAA,IACP,MAAM,gBAAgB,CAAC,QAAQ,QAAQ,SAAS,CAAC,QAAQ;AAAA,IACzD,eAAY;AAAA,KAEX,gBAAgB,mDAAC,qBAAD,MAAM,mDAAC,cAAD,QACtB,iBAAiB,mDAAC,qBAAD,MAAM,mDAAC,eAAD,QACxB,mDAAC,qBAAD;AAAA,IAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,CAAC;AAAA,KACtC,WAAW,mDAAC,qBAAD,MAAM,mDAAC,SAAD,QAClB,mDAAC,qBAAD;AAAA,IAAM,MAAM;AAAA,KACT,cAAc,mDAAC,qBAAD;AAAA,IAAM,OAAO,EAAC,WAAW;AAAA,KAAS,mDAAC,YAAD,QAChD,iBACC,mDAAC,qBAAD;AAAA,IAAM,MAAM,YAAY,CAAC,QAAQ,uBAAuB,CAAC;AAAA,KACtD,mDAAC,qBAAD;AAAA,IAAM,OAAO,EAAC,WAAW,SAAS,UAAU;AAAA,KAC3C,mDAAC,eAAD,QAED,aAAa,mDAAC,WAAD,QAGjB,UAAU,mDAAC,qBAAD,MAAO,mDAAC,QAAD;AAAA;AAO5B,WAAW,YAAY;AACvB,MAAM,uBAAuB,gCAAS;AACtC,qBAAqB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var src_exports = {};
|
|
29
|
+
__export(src_exports, {
|
|
30
|
+
default: () => import_PageLayout.PageLayout
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
__reExport(src_exports, require("./PageLayout"));
|
|
34
|
+
var import_PageLayout = require("./PageLayout");
|
|
35
|
+
module.exports = __toCommonJS(src_exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export * from './PageLayout'\nexport { PageLayout as default } from './PageLayout'\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc;AACd,wBAAsC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var props_exports = {};
|
|
29
|
+
__export(props_exports, {
|
|
30
|
+
pageLayoutProps: () => pageLayoutProps
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react_desc = require("react-desc");
|
|
34
|
+
const pageLayoutProps = {
|
|
35
|
+
GlobalHeader: import_react_desc.PropTypes.func.description("Global header component").isRequired,
|
|
36
|
+
ContextHeader: import_react_desc.PropTypes.func.description("Context header component"),
|
|
37
|
+
PageHeader: import_react_desc.PropTypes.func.description("Page header component"),
|
|
38
|
+
ContentRegion: import_react_desc.PropTypes.func.description("Main content of the page").isRequired,
|
|
39
|
+
LeftNav: import_react_desc.PropTypes.func.description("Left nav component"),
|
|
40
|
+
SidePanel: import_react_desc.PropTypes.func.description("Side panel component"),
|
|
41
|
+
Footer: import_react_desc.PropTypes.func.description("Footer component")
|
|
42
|
+
};
|
|
43
|
+
module.exports = __toCommonJS(props_exports);
|
|
44
|
+
//# sourceMappingURL=props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/props.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from 'react-desc';\n\nexport const pageLayoutProps = {\n GlobalHeader: PropTypes.func.description('Global header component').isRequired,\n ContextHeader: PropTypes.func.description('Context header component'),\n PageHeader: PropTypes.func.description('Page header component'),\n ContentRegion: PropTypes.func.description('Main content of the page').isRequired,\n LeftNav: PropTypes.func.description('Left nav component'),\n SidePanel: PropTypes.func.description('Side panel component'),\n Footer: PropTypes.func.description('Footer component'),\n}\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAEnB,MAAM,kBAAkB;AAAA,EAC7B,cAAc,4BAAU,KAAK,YAAY,2BAA2B;AAAA,EACpE,eAAe,4BAAU,KAAK,YAAY;AAAA,EAC1C,YAAY,4BAAU,KAAK,YAAY;AAAA,EACvC,eAAe,4BAAU,KAAK,YAAY,4BAA4B;AAAA,EACtE,SAAS,4BAAU,KAAK,YAAY;AAAA,EACpC,WAAW,4BAAU,KAAK,YAAY;AAAA,EACtC,QAAQ,4BAAU,KAAK,YAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { pageLayoutProps } from "./props";
|
|
4
|
+
import { describe } from "react-desc";
|
|
5
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
6
|
+
const PageLayout = ({
|
|
7
|
+
GlobalHeader,
|
|
8
|
+
ContextHeader,
|
|
9
|
+
PageHeader,
|
|
10
|
+
ContentRegion,
|
|
11
|
+
LeftNav,
|
|
12
|
+
SidePanel,
|
|
13
|
+
Footer
|
|
14
|
+
}) => {
|
|
15
|
+
const mainRegionRows = () => {
|
|
16
|
+
if (PageHeader && Footer)
|
|
17
|
+
return ["auto", "1fr", "auto"];
|
|
18
|
+
if (PageHeader && !Footer)
|
|
19
|
+
return ["auto", "1fr"];
|
|
20
|
+
if (!PageHeader && !Footer)
|
|
21
|
+
return ["auto"];
|
|
22
|
+
if (!PageHeader && Footer)
|
|
23
|
+
return ["1fr", "auto"];
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ React2.createElement(Grid, {
|
|
26
|
+
style: { width: "100%" },
|
|
27
|
+
height: "100vh",
|
|
28
|
+
rows: ContextHeader ? ["auto", "auto", "1fr"] : ["auto", "1fr"],
|
|
29
|
+
"data-testid": "page-layout"
|
|
30
|
+
}, GlobalHeader && /* @__PURE__ */ React2.createElement(Grid, null, /* @__PURE__ */ React2.createElement(GlobalHeader, null)), ContextHeader && /* @__PURE__ */ React2.createElement(Grid, null, /* @__PURE__ */ React2.createElement(ContextHeader, null)), /* @__PURE__ */ React2.createElement(Grid, {
|
|
31
|
+
cols: LeftNav ? ["auto", "1fr"] : ["auto"]
|
|
32
|
+
}, LeftNav && /* @__PURE__ */ React2.createElement(Grid, null, /* @__PURE__ */ React2.createElement(LeftNav, null)), /* @__PURE__ */ React2.createElement(Grid, {
|
|
33
|
+
rows: mainRegionRows()
|
|
34
|
+
}, PageHeader && /* @__PURE__ */ React2.createElement(Grid, {
|
|
35
|
+
style: { minHeight: "48px" }
|
|
36
|
+
}, /* @__PURE__ */ React2.createElement(PageHeader, null)), ContentRegion && /* @__PURE__ */ React2.createElement(Grid, {
|
|
37
|
+
cols: SidePanel ? ["auto", "fit-content(100%)"] : ["auto"]
|
|
38
|
+
}, /* @__PURE__ */ React2.createElement(Grid, {
|
|
39
|
+
style: { minHeight: "480px", overflow: "scroll" }
|
|
40
|
+
}, /* @__PURE__ */ React2.createElement(ContentRegion, null)), SidePanel && /* @__PURE__ */ React2.createElement(SidePanel, null)), Footer && /* @__PURE__ */ React2.createElement(Grid, null, /* @__PURE__ */ React2.createElement(Footer, null)))));
|
|
41
|
+
};
|
|
42
|
+
PageLayout.propTypes = pageLayoutProps;
|
|
43
|
+
const PageLayoutWithSchema = describe(PageLayout);
|
|
44
|
+
PageLayoutWithSchema.propTypes = pageLayoutProps;
|
|
45
|
+
export {
|
|
46
|
+
PageLayout,
|
|
47
|
+
PageLayoutWithSchema
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=PageLayout.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/PageLayout.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react'\nimport { pageLayoutProps } from './props'\nimport { describe } from 'react-desc';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst PageLayout = ({\n GlobalHeader,\n ContextHeader,\n PageHeader,\n ContentRegion,\n LeftNav,\n SidePanel,\n Footer,\n}) => {\n const mainRegionRows = () => {\n if (PageHeader && Footer) return ['auto', '1fr', 'auto']\n if (PageHeader && !Footer) return ['auto', '1fr']\n if (!PageHeader && !Footer) return ['auto']\n if (!PageHeader && Footer) return ['1fr', 'auto']\n }\n\n return (\n <Grid \n style={{ width: '100%' }}\n height=\"100vh\"\n rows={ContextHeader ? ['auto', 'auto', '1fr'] : ['auto', '1fr']}\n data-testid=\"page-layout\"\n >\n {GlobalHeader && <Grid><GlobalHeader /></Grid>}\n {ContextHeader && <Grid><ContextHeader /></Grid>}\n <Grid cols={LeftNav ? ['auto', '1fr'] : ['auto']}>\n {LeftNav && <Grid><LeftNav /></Grid>}\n <Grid rows={mainRegionRows()}>\n {PageHeader && <Grid style={{minHeight: \"48px\"}}><PageHeader /></Grid>}\n {ContentRegion && (\n <Grid cols={SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']} >\n {<Grid style={{minHeight: \"480px\", overflow: \"scroll\"}}>\n <ContentRegion />\n </Grid>}\n {SidePanel && <SidePanel />}\n </Grid>\n )}\n {Footer && <Grid ><Footer /></Grid>}\n </Grid>\n </Grid>\n </Grid>\n )\n}\n\nPageLayout.propTypes = pageLayoutProps;\nconst PageLayoutWithSchema = describe(PageLayout);\nPageLayoutWithSchema.propTypes = pageLayoutProps;\n\nexport { PageLayout, PageLayoutWithSchema }\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,aAAa,CAAC;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,MACI;AACJ,QAAM,iBAAiB,MAAM;AAC3B,QAAI,cAAc;AAAQ,aAAO,CAAC,QAAQ,OAAO;AACjD,QAAI,cAAc,CAAC;AAAQ,aAAO,CAAC,QAAQ;AAC3C,QAAI,CAAC,cAAc,CAAC;AAAQ,aAAO,CAAC;AACpC,QAAI,CAAC,cAAc;AAAQ,aAAO,CAAC,OAAO;AAAA;AAG5C,SACE,qCAAC,MAAD;AAAA,IACE,OAAO,EAAE,OAAO;AAAA,IAChB,QAAO;AAAA,IACP,MAAM,gBAAgB,CAAC,QAAQ,QAAQ,SAAS,CAAC,QAAQ;AAAA,IACzD,eAAY;AAAA,KAEX,gBAAgB,qCAAC,MAAD,MAAM,qCAAC,cAAD,QACtB,iBAAiB,qCAAC,MAAD,MAAM,qCAAC,eAAD,QACxB,qCAAC,MAAD;AAAA,IAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,CAAC;AAAA,KACtC,WAAW,qCAAC,MAAD,MAAM,qCAAC,SAAD,QAClB,qCAAC,MAAD;AAAA,IAAM,MAAM;AAAA,KACT,cAAc,qCAAC,MAAD;AAAA,IAAM,OAAO,EAAC,WAAW;AAAA,KAAS,qCAAC,YAAD,QAChD,iBACC,qCAAC,MAAD;AAAA,IAAM,MAAM,YAAY,CAAC,QAAQ,uBAAuB,CAAC;AAAA,KACtD,qCAAC,MAAD;AAAA,IAAM,OAAO,EAAC,WAAW,SAAS,UAAU;AAAA,KAC3C,qCAAC,eAAD,QAED,aAAa,qCAAC,WAAD,QAGjB,UAAU,qCAAC,MAAD,MAAO,qCAAC,QAAD;AAAA;AAO5B,WAAW,YAAY;AACvB,MAAM,uBAAuB,SAAS;AACtC,qBAAqB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './PageLayout'\nexport { PageLayout as default } from './PageLayout'\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PropTypes } from "react-desc";
|
|
3
|
+
const pageLayoutProps = {
|
|
4
|
+
GlobalHeader: PropTypes.func.description("Global header component").isRequired,
|
|
5
|
+
ContextHeader: PropTypes.func.description("Context header component"),
|
|
6
|
+
PageHeader: PropTypes.func.description("Page header component"),
|
|
7
|
+
ContentRegion: PropTypes.func.description("Main content of the page").isRequired,
|
|
8
|
+
LeftNav: PropTypes.func.description("Left nav component"),
|
|
9
|
+
SidePanel: PropTypes.func.description("Side panel component"),
|
|
10
|
+
Footer: PropTypes.func.description("Footer component")
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
pageLayoutProps
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/props.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from 'react-desc';\n\nexport const pageLayoutProps = {\n GlobalHeader: PropTypes.func.description('Global header component').isRequired,\n ContextHeader: PropTypes.func.description('Context header component'),\n PageHeader: PropTypes.func.description('Page header component'),\n ContentRegion: PropTypes.func.description('Main content of the page').isRequired,\n LeftNav: PropTypes.func.description('Left nav component'),\n SidePanel: PropTypes.func.description('Side panel component'),\n Footer: PropTypes.func.description('Footer component'),\n}\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAEO,MAAM,kBAAkB;AAAA,EAC7B,cAAc,UAAU,KAAK,YAAY,2BAA2B;AAAA,EACpE,eAAe,UAAU,KAAK,YAAY;AAAA,EAC1C,YAAY,UAAU,KAAK,YAAY;AAAA,EACvC,eAAe,UAAU,KAAK,YAAY,4BAA4B;AAAA,EACtE,SAAS,UAAU,KAAK,YAAY;AAAA,EACpC,WAAW,UAAU,KAAK,YAAY;AAAA,EACtC,QAAQ,UAAU,KAAK,YAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-page-layout",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Page Layout",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
13
16
|
},
|
|
14
17
|
"./props": {
|
|
15
|
-
"import": "./esm/props.js",
|
|
16
|
-
"require": "./cjs/props.js"
|
|
18
|
+
"import": "./dist/esm/props.js",
|
|
19
|
+
"require": "./dist/cjs/props.js"
|
|
17
20
|
},
|
|
18
21
|
"./PageLayout": {
|
|
19
|
-
"import": "./esm/PageLayout.js",
|
|
20
|
-
"require": "./cjs/PageLayout.js"
|
|
22
|
+
"import": "./dist/esm/PageLayout.js",
|
|
23
|
+
"require": "./dist/cjs/PageLayout.js"
|
|
21
24
|
}
|
|
22
25
|
},
|
|
23
26
|
"sideEffects": [
|
|
@@ -29,18 +32,18 @@
|
|
|
29
32
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
30
33
|
},
|
|
31
34
|
"engines": {
|
|
32
|
-
"
|
|
33
|
-
"node": ">=
|
|
35
|
+
"pnpm": ">=6",
|
|
36
|
+
"node": ">=16"
|
|
34
37
|
},
|
|
35
38
|
"author": "ICE MT",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"jestSonar": {
|
|
40
|
+
"sonar56x": true,
|
|
41
|
+
"reportPath": "reports",
|
|
42
|
+
"reportFile": "tests.xml",
|
|
43
|
+
"indent": 4
|
|
41
44
|
},
|
|
42
45
|
"dependencies": {
|
|
43
|
-
"@elliemae/ds-grid": "3.0.0-next.
|
|
46
|
+
"@elliemae/ds-grid": "3.0.0-next.6",
|
|
44
47
|
"react-desc": "~4.1.3"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
@@ -54,7 +57,13 @@
|
|
|
54
57
|
},
|
|
55
58
|
"publishConfig": {
|
|
56
59
|
"access": "public",
|
|
57
|
-
"
|
|
58
|
-
|
|
60
|
+
"typeSafety": false
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
64
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
65
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
66
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
67
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
59
68
|
}
|
|
60
69
|
}
|
package/cjs/PageLayout.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
-
require('react');
|
|
7
|
-
var props = require('./props.js');
|
|
8
|
-
var reactDesc = require('react-desc');
|
|
9
|
-
var dsGrid = require('@elliemae/ds-grid');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
14
|
-
|
|
15
|
-
const PageLayout = _ref => {
|
|
16
|
-
let {
|
|
17
|
-
GlobalHeader,
|
|
18
|
-
ContextHeader,
|
|
19
|
-
PageHeader,
|
|
20
|
-
ContentRegion,
|
|
21
|
-
LeftNav,
|
|
22
|
-
SidePanel,
|
|
23
|
-
Footer
|
|
24
|
-
} = _ref;
|
|
25
|
-
|
|
26
|
-
const mainRegionRows = () => {
|
|
27
|
-
if (PageHeader && Footer) return ['auto', '1fr', 'auto'];
|
|
28
|
-
if (PageHeader && !Footer) return ['auto', '1fr'];
|
|
29
|
-
if (!PageHeader && !Footer) return ['auto'];
|
|
30
|
-
if (!PageHeader && Footer) return ['1fr', 'auto'];
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
return /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
34
|
-
style: {
|
|
35
|
-
width: '100%'
|
|
36
|
-
},
|
|
37
|
-
height: "100vh",
|
|
38
|
-
rows: ContextHeader ? ['auto', 'auto', '1fr'] : ['auto', '1fr'],
|
|
39
|
-
"data-testid": "page-layout"
|
|
40
|
-
}, void 0, GlobalHeader && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {}, void 0, /*#__PURE__*/_jsx__default["default"](GlobalHeader, {})), ContextHeader && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {}, void 0, /*#__PURE__*/_jsx__default["default"](ContextHeader, {})), /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
41
|
-
cols: LeftNav ? ['auto', '1fr'] : ['auto']
|
|
42
|
-
}, void 0, LeftNav && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {}, void 0, /*#__PURE__*/_jsx__default["default"](LeftNav, {})), /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
43
|
-
rows: mainRegionRows()
|
|
44
|
-
}, void 0, PageHeader && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
45
|
-
style: {
|
|
46
|
-
minHeight: "48px"
|
|
47
|
-
}
|
|
48
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"](PageHeader, {})), ContentRegion && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
49
|
-
cols: SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']
|
|
50
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
51
|
-
style: {
|
|
52
|
-
minHeight: "480px",
|
|
53
|
-
overflow: "scroll"
|
|
54
|
-
}
|
|
55
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"](ContentRegion, {})), SidePanel && /*#__PURE__*/_jsx__default["default"](SidePanel, {})), Footer && /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {}, void 0, /*#__PURE__*/_jsx__default["default"](Footer, {})))));
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const PageLayoutWithSchema = reactDesc.describe(PageLayout);
|
|
59
|
-
PageLayoutWithSchema.propTypes = props.pageLayoutProps;
|
|
60
|
-
|
|
61
|
-
exports.PageLayout = PageLayout;
|
|
62
|
-
exports.PageLayoutWithSchema = PageLayoutWithSchema;
|
package/cjs/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var PageLayout = require('./PageLayout.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.PageLayout = PageLayout.PageLayout;
|
|
10
|
-
exports.PageLayoutWithSchema = PageLayout.PageLayoutWithSchema;
|
|
11
|
-
exports["default"] = PageLayout.PageLayout;
|
package/cjs/props.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var reactDesc = require('react-desc');
|
|
6
|
-
|
|
7
|
-
const pageLayoutProps = {
|
|
8
|
-
GlobalHeader: reactDesc.PropTypes.func.description('Global header component').isRequired,
|
|
9
|
-
ContextHeader: reactDesc.PropTypes.func.description('Context header component'),
|
|
10
|
-
PageHeader: reactDesc.PropTypes.func.description('Page header component'),
|
|
11
|
-
ContentRegion: reactDesc.PropTypes.func.description('Main content of the page').isRequired,
|
|
12
|
-
LeftNav: reactDesc.PropTypes.func.description('Left nav component'),
|
|
13
|
-
SidePanel: reactDesc.PropTypes.func.description('Side panel component'),
|
|
14
|
-
Footer: reactDesc.PropTypes.func.description('Footer component')
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.pageLayoutProps = pageLayoutProps;
|
package/esm/PageLayout.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
-
import 'react';
|
|
3
|
-
import { pageLayoutProps } from './props.js';
|
|
4
|
-
import { describe } from 'react-desc';
|
|
5
|
-
import { Grid } from '@elliemae/ds-grid';
|
|
6
|
-
|
|
7
|
-
const PageLayout = _ref => {
|
|
8
|
-
let {
|
|
9
|
-
GlobalHeader,
|
|
10
|
-
ContextHeader,
|
|
11
|
-
PageHeader,
|
|
12
|
-
ContentRegion,
|
|
13
|
-
LeftNav,
|
|
14
|
-
SidePanel,
|
|
15
|
-
Footer
|
|
16
|
-
} = _ref;
|
|
17
|
-
|
|
18
|
-
const mainRegionRows = () => {
|
|
19
|
-
if (PageHeader && Footer) return ['auto', '1fr', 'auto'];
|
|
20
|
-
if (PageHeader && !Footer) return ['auto', '1fr'];
|
|
21
|
-
if (!PageHeader && !Footer) return ['auto'];
|
|
22
|
-
if (!PageHeader && Footer) return ['1fr', 'auto'];
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
return /*#__PURE__*/_jsx(Grid, {
|
|
26
|
-
style: {
|
|
27
|
-
width: '100%'
|
|
28
|
-
},
|
|
29
|
-
height: "100vh",
|
|
30
|
-
rows: ContextHeader ? ['auto', 'auto', '1fr'] : ['auto', '1fr'],
|
|
31
|
-
"data-testid": "page-layout"
|
|
32
|
-
}, void 0, GlobalHeader && /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(GlobalHeader, {})), ContextHeader && /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(ContextHeader, {})), /*#__PURE__*/_jsx(Grid, {
|
|
33
|
-
cols: LeftNav ? ['auto', '1fr'] : ['auto']
|
|
34
|
-
}, void 0, LeftNav && /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(LeftNav, {})), /*#__PURE__*/_jsx(Grid, {
|
|
35
|
-
rows: mainRegionRows()
|
|
36
|
-
}, void 0, PageHeader && /*#__PURE__*/_jsx(Grid, {
|
|
37
|
-
style: {
|
|
38
|
-
minHeight: "48px"
|
|
39
|
-
}
|
|
40
|
-
}, void 0, /*#__PURE__*/_jsx(PageHeader, {})), ContentRegion && /*#__PURE__*/_jsx(Grid, {
|
|
41
|
-
cols: SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']
|
|
42
|
-
}, void 0, /*#__PURE__*/_jsx(Grid, {
|
|
43
|
-
style: {
|
|
44
|
-
minHeight: "480px",
|
|
45
|
-
overflow: "scroll"
|
|
46
|
-
}
|
|
47
|
-
}, void 0, /*#__PURE__*/_jsx(ContentRegion, {})), SidePanel && /*#__PURE__*/_jsx(SidePanel, {})), Footer && /*#__PURE__*/_jsx(Grid, {}, void 0, /*#__PURE__*/_jsx(Footer, {})))));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const PageLayoutWithSchema = describe(PageLayout);
|
|
51
|
-
PageLayoutWithSchema.propTypes = pageLayoutProps;
|
|
52
|
-
|
|
53
|
-
export { PageLayout, PageLayoutWithSchema };
|
package/esm/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PageLayout, PageLayoutWithSchema, PageLayout as default } from './PageLayout.js';
|
package/esm/props.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PropTypes } from 'react-desc';
|
|
2
|
-
|
|
3
|
-
const pageLayoutProps = {
|
|
4
|
-
GlobalHeader: PropTypes.func.description('Global header component').isRequired,
|
|
5
|
-
ContextHeader: PropTypes.func.description('Context header component'),
|
|
6
|
-
PageHeader: PropTypes.func.description('Page header component'),
|
|
7
|
-
ContentRegion: PropTypes.func.description('Main content of the page').isRequired,
|
|
8
|
-
LeftNav: PropTypes.func.description('Left nav component'),
|
|
9
|
-
SidePanel: PropTypes.func.description('Side panel component'),
|
|
10
|
-
Footer: PropTypes.func.description('Footer component')
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { pageLayoutProps };
|
package/types/PageLayout.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
declare const PageLayout: {
|
|
4
|
-
({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, LeftNav, SidePanel, Footer, }: {
|
|
5
|
-
GlobalHeader: any;
|
|
6
|
-
ContextHeader: any;
|
|
7
|
-
PageHeader: any;
|
|
8
|
-
ContentRegion: any;
|
|
9
|
-
LeftNav: any;
|
|
10
|
-
SidePanel: any;
|
|
11
|
-
Footer: any;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
propTypes: {
|
|
14
|
-
GlobalHeader: import("react-desc").PropTypesDescValue;
|
|
15
|
-
ContextHeader: {
|
|
16
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
-
};
|
|
19
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
|
-
};
|
|
21
|
-
PageHeader: {
|
|
22
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
-
};
|
|
25
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
|
-
};
|
|
27
|
-
ContentRegion: import("react-desc").PropTypesDescValue;
|
|
28
|
-
LeftNav: {
|
|
29
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
-
};
|
|
32
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
|
-
};
|
|
34
|
-
SidePanel: {
|
|
35
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
36
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
-
};
|
|
38
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
39
|
-
};
|
|
40
|
-
Footer: {
|
|
41
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
42
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
-
};
|
|
44
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
declare const PageLayoutWithSchema: {
|
|
49
|
-
(props?: {
|
|
50
|
-
GlobalHeader: any;
|
|
51
|
-
ContextHeader: any;
|
|
52
|
-
PageHeader: any;
|
|
53
|
-
ContentRegion: any;
|
|
54
|
-
LeftNav: any;
|
|
55
|
-
SidePanel: any;
|
|
56
|
-
Footer: any;
|
|
57
|
-
} | undefined): JSX.Element;
|
|
58
|
-
propTypes: unknown;
|
|
59
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
60
|
-
};
|
|
61
|
-
export { PageLayout, PageLayoutWithSchema };
|
package/types/index.d.ts
DELETED
package/types/props.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
export declare const pageLayoutProps: {
|
|
3
|
-
GlobalHeader: import("react-desc").PropTypesDescValue;
|
|
4
|
-
ContextHeader: {
|
|
5
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
6
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
-
};
|
|
8
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
9
|
-
};
|
|
10
|
-
PageHeader: {
|
|
11
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
12
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
-
};
|
|
14
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
15
|
-
};
|
|
16
|
-
ContentRegion: import("react-desc").PropTypesDescValue;
|
|
17
|
-
LeftNav: {
|
|
18
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
19
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
|
-
};
|
|
21
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
22
|
-
};
|
|
23
|
-
SidePanel: {
|
|
24
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
-
};
|
|
27
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
|
-
};
|
|
29
|
-
Footer: {
|
|
30
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
-
};
|
|
33
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
-
};
|
|
35
|
-
};
|