@xyo-network/react-webapp 2.25.30 → 2.25.33

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.
@@ -5,5 +5,6 @@ export interface WebAppChromeProps extends FlexBoxProps {
5
5
  footer?: ReactNode;
6
6
  appbar?: ReactNode;
7
7
  errorPage?: ReactNode;
8
+ footerElevation?: number;
8
9
  }
9
10
  export declare const WebAppChrome: React.FC<WebAppChromeProps>;
@@ -10,9 +10,9 @@ const react_shared_1 = require("@xyo-network/react-shared");
10
10
  const react_theme_1 = require("@xyo-network/react-theme");
11
11
  const react_helmet_1 = require("react-helmet");
12
12
  const WebAppChrome = (_a) => {
13
- var { errorPage, appbar, footer, children, appName } = _a, props = tslib_1.__rest(_a, ["errorPage", "appbar", "footer", "children", "appName"]);
13
+ var { footerElevation = 4, errorPage, appbar, footer, children, appName } = _a, props = tslib_1.__rest(_a, ["footerElevation", "errorPage", "appbar", "footer", "children", "appName"]);
14
14
  const { darkMode } = (0, react_shared_1.useAppSettings)();
15
- return ((0, jsx_runtime_1.jsxs)(sdk_react_1.InvertableThemeProvider, Object.assign({ dark: darkMode, options: react_theme_1.appThemeOptions, darkOptions: react_theme_1.partialDarkThemeOptions }, { children: [(0, jsx_runtime_1.jsx)(material_1.CssBaseline, {}), (0, jsx_runtime_1.jsx)(react_helmet_1.Helmet, Object.assign({ defaultTitle: appName, titleTemplate: `%s | ${appName}` }, { children: (0, jsx_runtime_1.jsx)("meta", { content: "website", property: "og:type" }) })), (0, jsx_runtime_1.jsxs)(sdk_react_1.FlexCol, Object.assign({ alignItems: "stretch", height: "100vh" }, props, { children: [appbar !== null && appbar !== void 0 ? appbar : (0, jsx_runtime_1.jsx)(react_appbar_1.ApplicationAppBar, {}), (0, jsx_runtime_1.jsx)(sdk_react_1.FlexGrowCol, Object.assign({ overflow: "hidden", justifyContent: "flex-start", alignItems: "stretch" }, { children: (0, jsx_runtime_1.jsx)(react_shared_1.ErrorBoundary, Object.assign({ fallback: errorPage !== null && errorPage !== void 0 ? errorPage : (0, jsx_runtime_1.jsx)(react_shared_1.ErrorPage, {}) }, { children: children })) })), footer !== null && footer !== void 0 ? footer : (0, jsx_runtime_1.jsx)(react_shared_1.Footer, { dynamicHeight: true })] }))] })));
15
+ return ((0, jsx_runtime_1.jsxs)(sdk_react_1.InvertableThemeProvider, Object.assign({ dark: darkMode, options: react_theme_1.appThemeOptions, darkOptions: react_theme_1.partialDarkThemeOptions }, { children: [(0, jsx_runtime_1.jsx)(material_1.CssBaseline, {}), (0, jsx_runtime_1.jsx)(react_helmet_1.Helmet, Object.assign({ defaultTitle: appName, titleTemplate: `%s | ${appName}` }, { children: (0, jsx_runtime_1.jsx)("meta", { content: "website", property: "og:type" }) })), (0, jsx_runtime_1.jsxs)(sdk_react_1.FlexCol, Object.assign({ alignItems: "stretch", height: "100vh" }, props, { children: [appbar !== null && appbar !== void 0 ? appbar : (0, jsx_runtime_1.jsx)(react_appbar_1.ApplicationAppBar, {}), (0, jsx_runtime_1.jsx)(sdk_react_1.FlexGrowCol, Object.assign({ overflow: "hidden", justifyContent: "flex-start", alignItems: "stretch" }, { children: (0, jsx_runtime_1.jsx)(react_shared_1.ErrorBoundary, Object.assign({ fallback: errorPage !== null && errorPage !== void 0 ? errorPage : (0, jsx_runtime_1.jsx)(react_shared_1.ErrorPage, {}) }, { children: children })) })), (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ elevation: footerElevation, square: true }, { children: footer !== null && footer !== void 0 ? footer : (0, jsx_runtime_1.jsx)(react_shared_1.Footer, { dynamicHeight: true }) }))] }))] })));
16
16
  };
17
17
  exports.WebAppChrome = WebAppChrome;
18
18
  //# sourceMappingURL=WebAppChrome.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WebAppChrome.js","sourceRoot":"","sources":["../../../src/components/WebAppChrome.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA2C;AAC3C,iDAA+F;AAC/F,4DAA6D;AAC7D,4DAA4F;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