@xyo-network/react-webapp 2.25.54 → 2.25.57
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/components/Page.d.ts +1 -0
- package/dist/cjs/components/Page.js +2 -2
- package/dist/cjs/components/Page.js.map +1 -1
- package/dist/docs.json +849 -828
- package/dist/esm/components/Page.d.ts +1 -0
- package/dist/esm/components/Page.js +2 -2
- package/dist/esm/components/Page.js.map +1 -1
- package/package.json +4 -4
- package/src/components/Page.tsx +8 -3
|
@@ -3,6 +3,7 @@ import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
export interface WebAppPageProps extends FlexBoxProps {
|
|
5
5
|
container?: ContainerProps['maxWidth'];
|
|
6
|
+
disableGutters?: boolean;
|
|
6
7
|
breadcrumbs?: ReactNode;
|
|
7
8
|
}
|
|
8
9
|
export declare const WebAppPage: React.FC<WebAppPageProps>;
|
|
@@ -10,7 +10,7 @@ const react_shared_1 = require("@xylabs/react-shared");
|
|
|
10
10
|
const react_helmet_1 = require("react-helmet");
|
|
11
11
|
const react_router_dom_1 = require("react-router-dom");
|
|
12
12
|
const WebAppPage = (_a) => {
|
|
13
|
-
var { title, container, breadcrumbs, children } = _a, props = tslib_1.__rest(_a, ["title", "container", "breadcrumbs", "children"]);
|
|
13
|
+
var { disableGutters, title, container, breadcrumbs, children } = _a, props = tslib_1.__rest(_a, ["disableGutters", "title", "container", "breadcrumbs", "children"]);
|
|
14
14
|
const userEvents = (0, react_pixel_1.useUserEvents)();
|
|
15
15
|
const { pathname } = (0, react_router_dom_1.useLocation)();
|
|
16
16
|
(0, react_shared_1.useAsyncEffect)(
|
|
@@ -19,7 +19,7 @@ const WebAppPage = (_a) => {
|
|
|
19
19
|
yield (userEvents === null || userEvents === void 0 ? void 0 : userEvents.viewContent({ name: title !== null && title !== void 0 ? title : 'NodeBasePage', path: location.pathname }));
|
|
20
20
|
}), [pathname, title, userEvents]);
|
|
21
21
|
const Body = (props) => ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexGrowCol, Object.assign({ gap: 2, paddingY: 2, justifyContent: "flex-start", alignItems: "stretch" }, props, { children: [breadcrumbs, children] })));
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexGrowCol, Object.assign({ alignItems: "stretch", justifyContent: "flex-start", minHeight: 0, overflow: "visible scroll" }, { children: [(0, jsx_runtime_1.jsx)(react_helmet_1.Helmet, { title: title }), container ? ((0, jsx_runtime_1.jsx)(material_1.Container, Object.assign({ style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }, maxWidth: container }, { children: (0, jsx_runtime_1.jsx)(Body, Object.assign({}, props)) }))) : ((0, jsx_runtime_1.jsx)(Body, Object.assign({}, props)))] })));
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexGrowCol, Object.assign({ alignItems: "stretch", justifyContent: "flex-start", minHeight: 0, overflow: "visible scroll" }, { children: [(0, jsx_runtime_1.jsx)(react_helmet_1.Helmet, { title: title }), container ? ((0, jsx_runtime_1.jsx)(material_1.Container, Object.assign({ disableGutters: disableGutters, style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }, maxWidth: container }, { children: (0, jsx_runtime_1.jsx)(Body, Object.assign({}, props)) }))) : ((0, jsx_runtime_1.jsx)(Body, Object.assign({ paddingX: disableGutters ? 0 : 1 }, props)))] })));
|
|
23
23
|
};
|
|
24
24
|
exports.WebAppPage = WebAppPage;
|
|
25
25
|
/** @deprecated use WebAppPagePage instead */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../src/components/Page.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAyD;AACzD,yDAAiE;AACjE,qDAAmD;AACnD,uDAAqD;AAErD,+CAAqC;AACrC,uDAA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