@elliemae/ds-page-layout 2.2.0-alpha.4 → 3.0.0-next.2

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/PageLayout.js CHANGED
@@ -1,78 +1,62 @@
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
- }) => {
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
+
47
26
  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"];
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'];
56
31
  };
57
- return /* @__PURE__ */ import_react.default.createElement(import_ds_grid.Grid, {
58
- style: { width: "100%" },
32
+
33
+ return /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
34
+ style: {
35
+ width: '100%'
36
+ },
59
37
  height: "100vh",
60
- rows: ContextHeader ? ["auto", "auto", "1fr"] : ["auto", "1fr"],
38
+ rows: ContextHeader ? ['auto', 'auto', '1fr'] : ['auto', '1fr'],
61
39
  "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, {
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, {
65
43
  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)))));
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, {})))));
73
56
  };
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
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 CHANGED
@@ -1,36 +1,11 @@
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
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 CHANGED
@@ -1,44 +1,17 @@
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");
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var reactDesc = require('react-desc');
6
+
34
7
  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")
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')
42
15
  };
43
- module.exports = __toCommonJS(props_exports);
44
- //# sourceMappingURL=props.js.map
16
+
17
+ exports.pageLayoutProps = pageLayoutProps;
package/esm/PageLayout.js CHANGED
@@ -1,49 +1,53 @@
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
- }) => {
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
+
15
18
  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"];
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'];
24
23
  };
25
- return /* @__PURE__ */ React2.createElement(Grid, {
26
- style: { width: "100%" },
24
+
25
+ return /*#__PURE__*/_jsx(Grid, {
26
+ style: {
27
+ width: '100%'
28
+ },
27
29
  height: "100vh",
28
- rows: ContextHeader ? ["auto", "auto", "1fr"] : ["auto", "1fr"],
30
+ rows: ContextHeader ? ['auto', 'auto', '1fr'] : ['auto', '1fr'],
29
31
  "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, {
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, {
33
35
  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)))));
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, {})))));
41
48
  };
42
- PageLayout.propTypes = pageLayoutProps;
49
+
43
50
  const PageLayoutWithSchema = describe(PageLayout);
44
51
  PageLayoutWithSchema.propTypes = pageLayoutProps;
45
- export {
46
- PageLayout,
47
- PageLayoutWithSchema
48
- };
49
- //# sourceMappingURL=PageLayout.js.map
52
+
53
+ export { PageLayout, PageLayoutWithSchema };
package/esm/index.js CHANGED
@@ -1,7 +1 @@
1
- import * as React from "react";
2
- export * from "./PageLayout";
3
- import { PageLayout } from "./PageLayout";
4
- export {
5
- PageLayout as default
6
- };
7
- //# sourceMappingURL=index.js.map
1
+ export { PageLayout, PageLayoutWithSchema, PageLayout as default } from './PageLayout.js';
package/esm/props.js CHANGED
@@ -1,15 +1,13 @@
1
- import * as React from "react";
2
- import { PropTypes } from "react-desc";
1
+ import { PropTypes } from 'react-desc';
2
+
3
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")
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
11
  };
12
- export {
13
- pageLayoutProps
14
- };
15
- //# sourceMappingURL=props.js.map
12
+
13
+ export { pageLayoutProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-page-layout",
3
- "version": "2.2.0-alpha.4",
3
+ "version": "3.0.0-next.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Page Layout",
6
6
  "module": "./esm/index.js",
@@ -40,7 +40,7 @@
40
40
  "build": "node ../../scripts/build/build.js"
41
41
  },
42
42
  "dependencies": {
43
- "@elliemae/ds-grid": "2.2.0-alpha.4",
43
+ "@elliemae/ds-grid": "3.0.0-next.2",
44
44
  "react-desc": "~4.1.3"
45
45
  },
46
46
  "devDependencies": {
@@ -1,7 +0,0 @@
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
- }
package/cjs/index.js.map DELETED
@@ -1,7 +0,0 @@
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
- }
package/cjs/props.js.map DELETED
@@ -1,7 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
package/esm/index.js.map DELETED
@@ -1,7 +0,0 @@
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
- }
package/esm/props.js.map DELETED
@@ -1,7 +0,0 @@
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
- }