@elliemae/ds-page-layout 3.36.0-next.0 → 3.36.0-next.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/dist/cjs/PageLayout.js
CHANGED
|
@@ -39,14 +39,10 @@ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
|
39
39
|
var import_ds_grid = require("@elliemae/ds-grid");
|
|
40
40
|
const PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, LeftNav, SidePanel, Footer }) => {
|
|
41
41
|
const mainRegionRows = () => {
|
|
42
|
-
if (PageHeader && Footer)
|
|
43
|
-
|
|
44
|
-
if (PageHeader && !Footer)
|
|
45
|
-
|
|
46
|
-
if (!PageHeader && !Footer)
|
|
47
|
-
return ["auto"];
|
|
48
|
-
if (!PageHeader && Footer)
|
|
49
|
-
return ["1fr", "auto"];
|
|
42
|
+
if (PageHeader && Footer) return ["auto", "1fr", "auto"];
|
|
43
|
+
if (PageHeader && !Footer) return ["auto", "1fr"];
|
|
44
|
+
if (!PageHeader && !Footer) return ["auto"];
|
|
45
|
+
if (!PageHeader && Footer) return ["1fr", "auto"];
|
|
50
46
|
};
|
|
51
47
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
52
48
|
import_ds_grid.Grid,
|
|
@@ -73,7 +69,6 @@ const PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, Le
|
|
|
73
69
|
}
|
|
74
70
|
);
|
|
75
71
|
};
|
|
76
|
-
PageLayout.propTypes = import_props.pageLayoutProps;
|
|
77
72
|
PageLayout.displayName = "PageLayout";
|
|
78
73
|
const PageLayoutWithSchema = (0, import_ds_props_helpers.describe)(PageLayout);
|
|
79
74
|
PageLayoutWithSchema.propTypes = import_props.pageLayoutProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/PageLayout.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { pageLayoutProps } from './props.js';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, LeftNav, SidePanel, Footer }) => {\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 && (\n <Grid>\n <GlobalHeader />\n </Grid>\n )}\n {ContextHeader && (\n <Grid>\n <ContextHeader />\n </Grid>\n )}\n <Grid cols={LeftNav ? ['auto', '1fr'] : ['auto']}>\n {LeftNav && (\n <Grid>\n <LeftNav />\n </Grid>\n )}\n <Grid rows={mainRegionRows()}>\n {PageHeader && (\n <Grid style={{ minHeight: '48px' }}>\n <PageHeader />\n </Grid>\n )}\n {ContentRegion && (\n <Grid cols={SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']}>\n {\n <Grid style={{ minHeight: '480px', overflow: 'auto' }}>\n <ContentRegion />\n </Grid>\n }\n {SidePanel && <SidePanel />}\n </Grid>\n )}\n {Footer && (\n <Grid>\n <Footer />\n </Grid>\n )}\n </Grid>\n </Grid>\n </Grid>\n );\n};\n\nPageLayout.
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADsBb;AArBV,mBAAgC;AAChC,8BAAyB;AACzB,qBAAqB;AAErB,MAAM,aAAa,CAAC,EAAE,cAAc,eAAe,YAAY,eAAe,SAAS,WAAW,OAAO,MAAM;AAC7G,QAAM,iBAAiB,MAAM;AAC3B,QAAI,cAAc
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { pageLayoutProps } from './props.js';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, LeftNav, SidePanel, Footer }) => {\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 && (\n <Grid>\n <GlobalHeader />\n </Grid>\n )}\n {ContextHeader && (\n <Grid>\n <ContextHeader />\n </Grid>\n )}\n <Grid cols={LeftNav ? ['auto', '1fr'] : ['auto']}>\n {LeftNav && (\n <Grid>\n <LeftNav />\n </Grid>\n )}\n <Grid rows={mainRegionRows()}>\n {PageHeader && (\n <Grid style={{ minHeight: '48px' }}>\n <PageHeader />\n </Grid>\n )}\n {ContentRegion && (\n <Grid cols={SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']}>\n {\n <Grid style={{ minHeight: '480px', overflow: 'auto' }}>\n <ContentRegion />\n </Grid>\n }\n {SidePanel && <SidePanel />}\n </Grid>\n )}\n {Footer && (\n <Grid>\n <Footer />\n </Grid>\n )}\n </Grid>\n </Grid>\n </Grid>\n );\n};\n\nPageLayout.displayName = 'PageLayout';\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;AAAA;AC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;AAAA;AAAA,EACF;AAEJ;AAEA,WAAW,cAAc;AACzB,MAAM,2BAAuB,kCAAS,UAAU;AAChD,qBAAqB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/PageLayout.js
CHANGED
|
@@ -5,14 +5,10 @@ import { describe } from "@elliemae/ds-props-helpers";
|
|
|
5
5
|
import { Grid } from "@elliemae/ds-grid";
|
|
6
6
|
const PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, LeftNav, SidePanel, Footer }) => {
|
|
7
7
|
const mainRegionRows = () => {
|
|
8
|
-
if (PageHeader && Footer)
|
|
9
|
-
|
|
10
|
-
if (PageHeader && !Footer)
|
|
11
|
-
|
|
12
|
-
if (!PageHeader && !Footer)
|
|
13
|
-
return ["auto"];
|
|
14
|
-
if (!PageHeader && Footer)
|
|
15
|
-
return ["1fr", "auto"];
|
|
8
|
+
if (PageHeader && Footer) return ["auto", "1fr", "auto"];
|
|
9
|
+
if (PageHeader && !Footer) return ["auto", "1fr"];
|
|
10
|
+
if (!PageHeader && !Footer) return ["auto"];
|
|
11
|
+
if (!PageHeader && Footer) return ["1fr", "auto"];
|
|
16
12
|
};
|
|
17
13
|
return /* @__PURE__ */ jsxs(
|
|
18
14
|
Grid,
|
|
@@ -39,7 +35,6 @@ const PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, Le
|
|
|
39
35
|
}
|
|
40
36
|
);
|
|
41
37
|
};
|
|
42
|
-
PageLayout.propTypes = pageLayoutProps;
|
|
43
38
|
PageLayout.displayName = "PageLayout";
|
|
44
39
|
const PageLayoutWithSchema = describe(PageLayout);
|
|
45
40
|
PageLayoutWithSchema.propTypes = pageLayoutProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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.js';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, LeftNav, SidePanel, Footer }) => {\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 && (\n <Grid>\n <GlobalHeader />\n </Grid>\n )}\n {ContextHeader && (\n <Grid>\n <ContextHeader />\n </Grid>\n )}\n <Grid cols={LeftNav ? ['auto', '1fr'] : ['auto']}>\n {LeftNav && (\n <Grid>\n <LeftNav />\n </Grid>\n )}\n <Grid rows={mainRegionRows()}>\n {PageHeader && (\n <Grid style={{ minHeight: '48px' }}>\n <PageHeader />\n </Grid>\n )}\n {ContentRegion && (\n <Grid cols={SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']}>\n {\n <Grid style={{ minHeight: '480px', overflow: 'auto' }}>\n <ContentRegion />\n </Grid>\n }\n {SidePanel && <SidePanel />}\n </Grid>\n )}\n {Footer && (\n <Grid>\n <Footer />\n </Grid>\n )}\n </Grid>\n </Grid>\n </Grid>\n );\n};\n\nPageLayout.
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACsBb,cAqBE,YArBF;AArBV,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAErB,MAAM,aAAa,CAAC,EAAE,cAAc,eAAe,YAAY,eAAe,SAAS,WAAW,OAAO,MAAM;AAC7G,QAAM,iBAAiB,MAAM;AAC3B,QAAI,cAAc
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { pageLayoutProps } from './props.js';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\n\nconst PageLayout = ({ GlobalHeader, ContextHeader, PageHeader, ContentRegion, LeftNav, SidePanel, Footer }) => {\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 && (\n <Grid>\n <GlobalHeader />\n </Grid>\n )}\n {ContextHeader && (\n <Grid>\n <ContextHeader />\n </Grid>\n )}\n <Grid cols={LeftNav ? ['auto', '1fr'] : ['auto']}>\n {LeftNav && (\n <Grid>\n <LeftNav />\n </Grid>\n )}\n <Grid rows={mainRegionRows()}>\n {PageHeader && (\n <Grid style={{ minHeight: '48px' }}>\n <PageHeader />\n </Grid>\n )}\n {ContentRegion && (\n <Grid cols={SidePanel ? ['auto', 'fit-content(100%)'] : ['auto']}>\n {\n <Grid style={{ minHeight: '480px', overflow: 'auto' }}>\n <ContentRegion />\n </Grid>\n }\n {SidePanel && <SidePanel />}\n </Grid>\n )}\n {Footer && (\n <Grid>\n <Footer />\n </Grid>\n )}\n </Grid>\n </Grid>\n </Grid>\n );\n};\n\nPageLayout.displayName = 'PageLayout';\nconst PageLayoutWithSchema = describe(PageLayout);\nPageLayoutWithSchema.propTypes = pageLayoutProps;\n\nexport { PageLayout, PageLayoutWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACsBb,cAqBE,YArBF;AArBV,SAAS,uBAAuB;AAChC,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAErB,MAAM,aAAa,CAAC,EAAE,cAAc,eAAe,YAA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
|
7
7
|
}
|
|
@@ -8,15 +8,6 @@ declare const PageLayout: {
|
|
|
8
8
|
SidePanel: any;
|
|
9
9
|
Footer: any;
|
|
10
10
|
}): import("react/jsx-runtime.js").JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
GlobalHeader: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
13
|
-
ContextHeader: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
14
|
-
PageHeader: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
15
|
-
ContentRegion: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
16
|
-
LeftNav: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
17
|
-
SidePanel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
18
|
-
Footer: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
19
|
-
};
|
|
20
11
|
displayName: string;
|
|
21
12
|
};
|
|
22
13
|
declare const PageLayoutWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-page-layout",
|
|
3
|
-
"version": "3.36.0-next.
|
|
3
|
+
"version": "3.36.0-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Page Layout",
|
|
6
6
|
"files": [
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"indent": 4
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@elliemae/ds-grid": "3.36.0-next.
|
|
48
|
-
"@elliemae/ds-props-helpers": "3.36.0-next.
|
|
47
|
+
"@elliemae/ds-grid": "3.36.0-next.1",
|
|
48
|
+
"@elliemae/ds-props-helpers": "3.36.0-next.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
52
52
|
"styled-components": "~5.3.9",
|
|
53
|
-
"@elliemae/ds-monorepo-devops": "3.36.0-next.
|
|
53
|
+
"@elliemae/ds-monorepo-devops": "3.36.0-next.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"lodash": "^4.17.21",
|