@xyo-network/react-webapp 2.64.0-rc.3 → 2.64.0-rc.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/browser/components/Body.d.mts.map +1 -0
- package/dist/browser/components/Body.d.ts.map +1 -0
- package/dist/browser/components/Body.js +77 -0
- package/dist/browser/components/Body.js.map +1 -0
- package/dist/browser/components/Chrome.d.mts.map +1 -0
- package/dist/browser/components/Chrome.d.ts.map +1 -0
- package/dist/browser/components/Chrome.js +38 -0
- package/dist/browser/components/Chrome.js.map +1 -0
- package/dist/browser/components/Chrome.stories.js +53 -0
- package/dist/browser/components/Chrome.stories.js.map +1 -0
- package/dist/browser/components/ErrorPage.d.mts.map +1 -0
- package/dist/browser/components/ErrorPage.d.ts.map +1 -0
- package/dist/browser/components/ErrorPage.js +14 -0
- package/dist/browser/components/ErrorPage.js.map +1 -0
- package/dist/browser/components/NotFoundPage/Page.d.mts.map +1 -0
- package/dist/browser/components/NotFoundPage/Page.d.ts.map +1 -0
- package/dist/browser/components/NotFoundPage/Page.js +10 -0
- package/dist/browser/components/NotFoundPage/Page.js.map +1 -0
- package/dist/browser/components/NotFoundPage/Page.stories.js +23 -0
- package/dist/browser/components/NotFoundPage/Page.stories.js.map +1 -0
- package/dist/browser/components/NotFoundPage/index.d.mts.map +1 -0
- package/dist/browser/components/NotFoundPage/index.d.ts.map +1 -0
- package/dist/browser/components/NotFoundPage/index.js +2 -0
- package/dist/browser/components/NotFoundPage/index.js.map +1 -0
- package/dist/browser/components/Page.d.mts.map +1 -0
- package/dist/browser/components/Page.d.ts.map +1 -0
- package/dist/browser/components/Page.js +86 -0
- package/dist/browser/components/Page.js.map +1 -0
- package/dist/browser/components/index.d.mts.map +1 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/components/index.js +6 -0
- package/dist/browser/components/index.js.map +1 -0
- package/dist/browser/components/lib/cssValues.d.mts.map +1 -0
- package/dist/browser/components/lib/cssValues.d.ts.map +1 -0
- package/dist/browser/components/lib/cssValues.js +21 -0
- package/dist/browser/components/lib/cssValues.js.map +1 -0
- package/dist/browser/components/lib/index.d.mts.map +1 -0
- package/dist/browser/components/lib/index.d.ts.map +1 -0
- package/dist/browser/components/lib/index.js +2 -0
- package/dist/browser/components/lib/index.js.map +1 -0
- package/dist/{index.d.mts.map → browser/index.d.mts.map} +1 -1
- package/dist/{index.d.ts.map → browser/index.d.ts.map} +1 -1
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/components/Body.d.mts +12 -0
- package/dist/node/components/Body.d.mts.map +1 -0
- package/dist/node/components/Body.d.ts +12 -0
- package/dist/node/components/Body.d.ts.map +1 -0
- package/dist/node/components/Body.js +101 -0
- package/dist/node/components/Body.js.map +1 -0
- package/dist/node/components/Body.mjs +77 -0
- package/dist/node/components/Body.mjs.map +1 -0
- package/dist/node/components/Chrome.d.mts +14 -0
- package/dist/node/components/Chrome.d.mts.map +1 -0
- package/dist/node/components/Chrome.d.ts +14 -0
- package/dist/node/components/Chrome.d.ts.map +1 -0
- package/dist/node/components/Chrome.js +62 -0
- package/dist/node/components/Chrome.js.map +1 -0
- package/dist/node/components/Chrome.mjs +38 -0
- package/dist/node/components/Chrome.mjs.map +1 -0
- package/dist/node/components/Chrome.stories.js +79 -0
- package/dist/node/components/Chrome.stories.js.map +1 -0
- package/dist/node/components/Chrome.stories.mjs +53 -0
- package/dist/node/components/Chrome.stories.mjs.map +1 -0
- package/dist/node/components/ErrorPage.d.mts +9 -0
- package/dist/node/components/ErrorPage.d.mts.map +1 -0
- package/dist/node/components/ErrorPage.d.ts +9 -0
- package/dist/node/components/ErrorPage.d.ts.map +1 -0
- package/dist/node/components/ErrorPage.js +39 -0
- package/dist/node/components/ErrorPage.js.map +1 -0
- package/dist/node/components/ErrorPage.mjs +14 -0
- package/dist/node/components/ErrorPage.mjs.map +1 -0
- package/dist/node/components/NotFoundPage/Page.d.mts +6 -0
- package/dist/node/components/NotFoundPage/Page.d.mts.map +1 -0
- package/dist/node/components/NotFoundPage/Page.d.ts +6 -0
- package/dist/node/components/NotFoundPage/Page.d.ts.map +1 -0
- package/dist/node/components/NotFoundPage/Page.js +35 -0
- package/dist/node/components/NotFoundPage/Page.js.map +1 -0
- package/dist/node/components/NotFoundPage/Page.mjs +10 -0
- package/dist/node/components/NotFoundPage/Page.mjs.map +1 -0
- package/dist/node/components/NotFoundPage/Page.stories.js +47 -0
- package/dist/node/components/NotFoundPage/Page.stories.js.map +1 -0
- package/dist/node/components/NotFoundPage/Page.stories.mjs +23 -0
- package/dist/node/components/NotFoundPage/Page.stories.mjs.map +1 -0
- package/dist/node/components/NotFoundPage/index.d.mts +2 -0
- package/dist/node/components/NotFoundPage/index.d.mts.map +1 -0
- package/dist/node/components/NotFoundPage/index.d.ts +2 -0
- package/dist/node/components/NotFoundPage/index.d.ts.map +1 -0
- package/dist/node/components/NotFoundPage/index.js +23 -0
- package/dist/node/components/NotFoundPage/index.js.map +1 -0
- package/dist/node/components/NotFoundPage/index.mjs +2 -0
- package/dist/node/components/NotFoundPage/index.mjs.map +1 -0
- package/dist/node/components/Page.d.mts +13 -0
- package/dist/node/components/Page.d.mts.map +1 -0
- package/dist/node/components/Page.d.ts +13 -0
- package/dist/node/components/Page.d.ts.map +1 -0
- package/dist/node/components/Page.js +111 -0
- package/dist/node/components/Page.js.map +1 -0
- package/dist/node/components/Page.mjs +86 -0
- package/dist/node/components/Page.mjs.map +1 -0
- package/dist/node/components/index.d.mts +6 -0
- package/dist/node/components/index.d.mts.map +1 -0
- package/dist/node/components/index.d.ts +6 -0
- package/dist/node/components/index.d.ts.map +1 -0
- package/dist/node/components/index.js +31 -0
- package/dist/node/components/index.js.map +1 -0
- package/dist/node/components/index.mjs +6 -0
- package/dist/node/components/index.mjs.map +1 -0
- package/dist/node/components/lib/cssValues.d.mts +6 -0
- package/dist/node/components/lib/cssValues.d.mts.map +1 -0
- package/dist/node/components/lib/cssValues.d.ts +6 -0
- package/dist/node/components/lib/cssValues.d.ts.map +1 -0
- package/dist/node/components/lib/cssValues.js +48 -0
- package/dist/node/components/lib/cssValues.js.map +1 -0
- package/dist/node/components/lib/cssValues.mjs +21 -0
- package/dist/node/components/lib/cssValues.mjs.map +1 -0
- package/dist/node/components/lib/index.d.mts +2 -0
- package/dist/node/components/lib/index.d.mts.map +1 -0
- package/dist/node/components/lib/index.d.ts +2 -0
- package/dist/node/components/lib/index.d.ts.map +1 -0
- package/dist/node/components/lib/index.js +23 -0
- package/dist/node/components/lib/index.js.map +1 -0
- package/dist/node/components/lib/index.mjs +2 -0
- package/dist/node/components/lib/index.mjs.map +1 -0
- package/dist/node/index.d.mts +2 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +23 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +2 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +26 -26
- package/dist/components/Body.d.mts.map +0 -1
- package/dist/components/Body.d.ts.map +0 -1
- package/dist/components/Chrome.d.mts.map +0 -1
- package/dist/components/Chrome.d.ts.map +0 -1
- package/dist/components/Chrome.stories.d.mts +0 -8
- package/dist/components/Chrome.stories.d.mts.map +0 -1
- package/dist/components/Chrome.stories.d.ts +0 -8
- package/dist/components/Chrome.stories.d.ts.map +0 -1
- package/dist/components/ErrorPage.d.mts.map +0 -1
- package/dist/components/ErrorPage.d.ts.map +0 -1
- package/dist/components/NotFoundPage/Page.d.mts.map +0 -1
- package/dist/components/NotFoundPage/Page.d.ts.map +0 -1
- package/dist/components/NotFoundPage/Page.stories.d.mts +0 -5
- package/dist/components/NotFoundPage/Page.stories.d.mts.map +0 -1
- package/dist/components/NotFoundPage/Page.stories.d.ts +0 -5
- package/dist/components/NotFoundPage/Page.stories.d.ts.map +0 -1
- package/dist/components/NotFoundPage/index.d.mts.map +0 -1
- package/dist/components/NotFoundPage/index.d.ts.map +0 -1
- package/dist/components/Page.d.mts.map +0 -1
- package/dist/components/Page.d.ts.map +0 -1
- package/dist/components/index.d.mts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/lib/cssValues.d.mts.map +0 -1
- package/dist/components/lib/cssValues.d.ts.map +0 -1
- package/dist/components/lib/index.d.mts.map +0 -1
- package/dist/components/lib/index.d.ts.map +0 -1
- package/dist/index.js +0 -272
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -238
- package/dist/index.mjs.map +0 -1
- /package/dist/{components → browser/components}/Body.d.mts +0 -0
- /package/dist/{components → browser/components}/Body.d.ts +0 -0
- /package/dist/{components → browser/components}/Chrome.d.mts +0 -0
- /package/dist/{components → browser/components}/Chrome.d.ts +0 -0
- /package/dist/{components → browser/components}/ErrorPage.d.mts +0 -0
- /package/dist/{components → browser/components}/ErrorPage.d.ts +0 -0
- /package/dist/{components → browser/components}/NotFoundPage/Page.d.mts +0 -0
- /package/dist/{components → browser/components}/NotFoundPage/Page.d.ts +0 -0
- /package/dist/{components → browser/components}/NotFoundPage/index.d.mts +0 -0
- /package/dist/{components → browser/components}/NotFoundPage/index.d.ts +0 -0
- /package/dist/{components → browser/components}/Page.d.mts +0 -0
- /package/dist/{components → browser/components}/Page.d.ts +0 -0
- /package/dist/{components → browser/components}/index.d.mts +0 -0
- /package/dist/{components → browser/components}/index.d.ts +0 -0
- /package/dist/{components → browser/components}/lib/cssValues.d.mts +0 -0
- /package/dist/{components → browser/components}/lib/cssValues.d.ts +0 -0
- /package/dist/{components → browser/components}/lib/index.d.mts +0 -0
- /package/dist/{components → browser/components}/lib/index.d.ts +0 -0
- /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebAppPageProps } from '../Page';
|
|
3
|
+
export declare const WebAppNotFoundPage: React.FC<WebAppPageProps>;
|
|
4
|
+
/** @deprecated use WebAppNotFoundPage instead */
|
|
5
|
+
export declare const NotFoundPage: import("react").FC<WebAppPageProps>;
|
|
6
|
+
//# sourceMappingURL=Page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/components/NotFoundPage/Page.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIxD,CAAA;AAED,kDAAkD;AAClD,eAAO,MAAM,YAAY,qCAAqB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Page_exports = {};
|
|
20
|
+
__export(Page_exports, {
|
|
21
|
+
NotFoundPage: () => NotFoundPage,
|
|
22
|
+
WebAppNotFoundPage: () => WebAppNotFoundPage
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(Page_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
|
27
|
+
var import_Page = require("../Page");
|
|
28
|
+
const WebAppNotFoundPage = ({ title, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Page.WebAppPage, { title: title ?? "Sorry! Page Not Found", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.NotFound, {}) });
|
|
29
|
+
const NotFoundPage = WebAppNotFoundPage;
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
NotFoundPage,
|
|
33
|
+
WebAppNotFoundPage
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=Page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/NotFoundPage/Page.tsx"],"sourcesContent":["import { NotFound } from '@xyo-network/react-shared'\n\nimport { WebAppPage, WebAppPageProps } from '../Page'\n\nexport const WebAppNotFoundPage: React.FC<WebAppPageProps> = ({ title, ...props }) => (\n <WebAppPage title={title ?? 'Sorry! Page Not Found'} {...props}>\n <NotFound />\n </WebAppPage>\n)\n\n/** @deprecated use WebAppNotFoundPage instead */\nexport const NotFoundPage = WebAppNotFoundPage\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMI;AANJ,0BAAyB;AAEzB,kBAA4C;AAErC,MAAM,qBAAgD,CAAC,EAAE,OAAO,GAAG,MAAM,MAC9E,4CAAC,0BAAW,OAAO,SAAS,yBAA0B,GAAG,OACvD,sDAAC,gCAAS,GACZ;AAIK,MAAM,eAAe;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { NotFound } from "@xyo-network/react-shared";
|
|
3
|
+
import { WebAppPage } from "../Page";
|
|
4
|
+
const WebAppNotFoundPage = ({ title, ...props }) => /* @__PURE__ */ jsx(WebAppPage, { title: title ?? "Sorry! Page Not Found", ...props, children: /* @__PURE__ */ jsx(NotFound, {}) });
|
|
5
|
+
const NotFoundPage = WebAppNotFoundPage;
|
|
6
|
+
export {
|
|
7
|
+
NotFoundPage,
|
|
8
|
+
WebAppNotFoundPage
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=Page.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/NotFoundPage/Page.tsx"],"sourcesContent":["import { NotFound } from '@xyo-network/react-shared'\n\nimport { WebAppPage, WebAppPageProps } from '../Page'\n\nexport const WebAppNotFoundPage: React.FC<WebAppPageProps> = ({ title, ...props }) => (\n <WebAppPage title={title ?? 'Sorry! Page Not Found'} {...props}>\n <NotFound />\n </WebAppPage>\n)\n\n/** @deprecated use WebAppNotFoundPage instead */\nexport const NotFoundPage = WebAppNotFoundPage\n"],"mappings":"AAMI;AANJ,SAAS,gBAAgB;AAEzB,SAAS,kBAAmC;AAErC,MAAM,qBAAgD,CAAC,EAAE,OAAO,GAAG,MAAM,MAC9E,oBAAC,cAAW,OAAO,SAAS,yBAA0B,GAAG,OACvD,8BAAC,YAAS,GACZ;AAIK,MAAM,eAAe;","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Page_stories_exports = {};
|
|
20
|
+
__export(Page_stories_exports, {
|
|
21
|
+
Default: () => Default,
|
|
22
|
+
default: () => Page_stories_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(Page_stories_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
|
27
|
+
const StorybookEntry = {
|
|
28
|
+
argTypes: {},
|
|
29
|
+
component: import_react_shared.NotFound,
|
|
30
|
+
parameters: {
|
|
31
|
+
docs: {
|
|
32
|
+
page: null
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
title: "webapp/NotFound"
|
|
36
|
+
};
|
|
37
|
+
const Template = () => {
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.NotFound, {});
|
|
39
|
+
};
|
|
40
|
+
const Default = Template.bind({});
|
|
41
|
+
Default.args = {};
|
|
42
|
+
var Page_stories_default = StorybookEntry;
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
Default
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=Page.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/NotFoundPage/Page.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { NotFound } from '@xyo-network/react-shared'\n\nconst StorybookEntry = {\n argTypes: {},\n component: NotFound,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'webapp/NotFound',\n} as Meta<typeof NotFound>\n\nconst Template: StoryFn<typeof NotFound> = () => {\n return <NotFound />\n}\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nexport { Default }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeS;AAdT,0BAAyB;AAEzB,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAAqC,MAAM;AAC/C,SAAO,4CAAC,gCAAS;AACnB;AAEA,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAKhB,IAAO,uBAAQ;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { NotFound } from "@xyo-network/react-shared";
|
|
3
|
+
const StorybookEntry = {
|
|
4
|
+
argTypes: {},
|
|
5
|
+
component: NotFound,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
page: null
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
title: "webapp/NotFound"
|
|
12
|
+
};
|
|
13
|
+
const Template = () => {
|
|
14
|
+
return /* @__PURE__ */ jsx(NotFound, {});
|
|
15
|
+
};
|
|
16
|
+
const Default = Template.bind({});
|
|
17
|
+
Default.args = {};
|
|
18
|
+
var Page_stories_default = StorybookEntry;
|
|
19
|
+
export {
|
|
20
|
+
Default,
|
|
21
|
+
Page_stories_default as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Page.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/NotFoundPage/Page.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { NotFound } from '@xyo-network/react-shared'\n\nconst StorybookEntry = {\n argTypes: {},\n component: NotFound,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'webapp/NotFound',\n} as Meta<typeof NotFound>\n\nconst Template: StoryFn<typeof NotFound> = () => {\n return <NotFound />\n}\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nexport { Default }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAeS;AAdT,SAAS,gBAAgB;AAEzB,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAAqC,MAAM;AAC/C,SAAO,oBAAC,YAAS;AACnB;AAEA,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAKhB,IAAO,uBAAQ;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/NotFoundPage/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/NotFoundPage/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var NotFoundPage_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(NotFoundPage_exports);
|
|
18
|
+
__reExport(NotFoundPage_exports, require("./Page"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./Page")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/NotFoundPage/index.ts"],"sourcesContent":["export * from './Page'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAc,mBAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/NotFoundPage/index.ts"],"sourcesContent":["export * from './Page'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContainerProps } from '@mui/material';
|
|
3
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
4
|
+
import { WithChildren } from '@xylabs/react-shared';
|
|
5
|
+
import { WebAppBodyProps } from './Body';
|
|
6
|
+
export interface WebAppPageProps extends WebAppBodyProps, FlexBoxProps {
|
|
7
|
+
container?: ContainerProps['maxWidth'] | 'none';
|
|
8
|
+
disableGutters?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const WebAppPage: React.FC<WithChildren<WebAppPageProps>>;
|
|
11
|
+
/** @deprecated use WebAppPagePage instead */
|
|
12
|
+
export declare const FlexPage: import("react").FC<WithChildren<WebAppPageProps>>;
|
|
13
|
+
//# sourceMappingURL=Page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/components/Page.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAU,MAAM,eAAe,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAe,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,EAAc,eAAe,EAAE,MAAM,QAAQ,CAAA;AAqBpD,MAAM,WAAW,eAAgB,SAAQ,eAAe,EAAE,YAAY;IACpE,SAAS,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,MAAM,CAAA;IAC/C,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAuD9D,CAAA;AAED,6CAA6C;AAC7C,eAAO,MAAM,QAAQ,mDAAa,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContainerProps } from '@mui/material';
|
|
3
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
4
|
+
import { WithChildren } from '@xylabs/react-shared';
|
|
5
|
+
import { WebAppBodyProps } from './Body';
|
|
6
|
+
export interface WebAppPageProps extends WebAppBodyProps, FlexBoxProps {
|
|
7
|
+
container?: ContainerProps['maxWidth'] | 'none';
|
|
8
|
+
disableGutters?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const WebAppPage: React.FC<WithChildren<WebAppPageProps>>;
|
|
11
|
+
/** @deprecated use WebAppPagePage instead */
|
|
12
|
+
export declare const FlexPage: import("react").FC<WithChildren<WebAppPageProps>>;
|
|
13
|
+
//# sourceMappingURL=Page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/components/Page.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,cAAc,EAAU,MAAM,eAAe,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAe,MAAM,uBAAuB,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,EAAc,eAAe,EAAE,MAAM,QAAQ,CAAA;AAqBpD,MAAM,WAAW,eAAgB,SAAQ,eAAe,EAAE,YAAY;IACpE,SAAS,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,MAAM,CAAA;IAC/C,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAuD9D,CAAA;AAED,6CAA6C;AAC7C,eAAO,MAAM,QAAQ,mDAAa,CAAA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Page_exports = {};
|
|
20
|
+
__export(Page_exports, {
|
|
21
|
+
FlexPage: () => FlexPage,
|
|
22
|
+
WebAppPage: () => WebAppPage
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(Page_exports);
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_material = require("@mui/material");
|
|
27
|
+
var import_react_async_effect = require("@xylabs/react-async-effect");
|
|
28
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
29
|
+
var import_react_pixel = require("@xylabs/react-pixel");
|
|
30
|
+
var import_react_helmet = require("react-helmet");
|
|
31
|
+
var import_react_router_dom = require("react-router-dom");
|
|
32
|
+
var import_Body = require("./Body");
|
|
33
|
+
var import_lib = require("./lib");
|
|
34
|
+
const WebAppPageRoot = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
|
|
35
|
+
name: "WebAppPage",
|
|
36
|
+
shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
|
|
37
|
+
slot: "Root"
|
|
38
|
+
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
39
|
+
const props = variant === "scrollable" ? import_lib.scrollableWrap : import_lib.fixedWrap;
|
|
40
|
+
return {
|
|
41
|
+
...props,
|
|
42
|
+
alignItems: "stretch",
|
|
43
|
+
justifyContent: "start",
|
|
44
|
+
maxWidth: "100vw",
|
|
45
|
+
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
46
|
+
inset: 0,
|
|
47
|
+
position: "absolute"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
const WebAppPage = ({
|
|
52
|
+
disableGutters,
|
|
53
|
+
disableBreadcrumbGutter,
|
|
54
|
+
title,
|
|
55
|
+
container,
|
|
56
|
+
children,
|
|
57
|
+
breadcrumbs,
|
|
58
|
+
mobileScrollingBreakpoint,
|
|
59
|
+
variant = "scrollable",
|
|
60
|
+
...props
|
|
61
|
+
}) => {
|
|
62
|
+
const userEvents = (0, import_react_pixel.useUserEvents)();
|
|
63
|
+
const { pathname } = (0, import_react_router_dom.useLocation)();
|
|
64
|
+
(0, import_react_async_effect.useAsyncEffect)(
|
|
65
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
66
|
+
async () => {
|
|
67
|
+
await userEvents?.viewContent({ name: title ?? "NodeBasePage", path: location.pathname });
|
|
68
|
+
},
|
|
69
|
+
[pathname, title, userEvents]
|
|
70
|
+
);
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_helmet.Helmet, { title }),
|
|
73
|
+
container && container !== "none" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
|
+
import_material.Container,
|
|
75
|
+
{
|
|
76
|
+
disableGutters,
|
|
77
|
+
style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
|
|
78
|
+
maxWidth: container,
|
|
79
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
import_Body.WebAppBody,
|
|
81
|
+
{
|
|
82
|
+
disableBreadcrumbGutter,
|
|
83
|
+
breadcrumbs,
|
|
84
|
+
mobileScrollingBreakpoint,
|
|
85
|
+
variant,
|
|
86
|
+
...props,
|
|
87
|
+
children
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
|
+
import_Body.WebAppBody,
|
|
93
|
+
{
|
|
94
|
+
disableBreadcrumbGutter,
|
|
95
|
+
breadcrumbs,
|
|
96
|
+
mobileScrollingBreakpoint,
|
|
97
|
+
paddingX: disableGutters ? 0 : 1,
|
|
98
|
+
variant,
|
|
99
|
+
...props,
|
|
100
|
+
children
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
] });
|
|
104
|
+
};
|
|
105
|
+
const FlexPage = WebAppPage;
|
|
106
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
107
|
+
0 && (module.exports = {
|
|
108
|
+
FlexPage,
|
|
109
|
+
WebAppPage
|
|
110
|
+
});
|
|
111
|
+
//# sourceMappingURL=Page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Page.tsx"],"sourcesContent":["import { Container, ContainerProps, styled } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexBoxProps, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useUserEvents } from '@xylabs/react-pixel'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { Helmet } from 'react-helmet'\nimport { useLocation } from 'react-router-dom'\n\nimport { WebAppBody, WebAppBodyProps } from './Body'\nimport { fixedWrap, scrollableWrap } from './lib'\n\nconst WebAppPageRoot = styled(FlexGrowCol, {\n name: 'WebAppPage',\n shouldForwardProp: (propName) => propName !== 'mobileScrollingBreakpoint' && propName !== 'variant',\n slot: 'Root',\n})<WebAppPageProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableWrap : fixedWrap\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n maxWidth: '100vw',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 0,\n position: 'absolute',\n },\n }\n})\n\nexport interface WebAppPageProps extends WebAppBodyProps, FlexBoxProps {\n container?: ContainerProps['maxWidth'] | 'none'\n disableGutters?: boolean\n}\n\nexport const WebAppPage: React.FC<WithChildren<WebAppPageProps>> = ({\n disableGutters,\n disableBreadcrumbGutter,\n title,\n container,\n children,\n breadcrumbs,\n mobileScrollingBreakpoint,\n variant = 'scrollable',\n ...props\n}) => {\n const userEvents = useUserEvents()\n const { pathname } = useLocation()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n await userEvents?.viewContent({ name: title ?? 'NodeBasePage', path: location.pathname })\n },\n [pathname, title, userEvents],\n )\n\n return (\n <WebAppPageRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant} {...props}>\n <Helmet title={title} />\n {container && container !== 'none' ? (\n <Container\n disableGutters={disableGutters}\n style={{ alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }}\n maxWidth={container}\n >\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n </Container>\n ) : (\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n paddingX={disableGutters ? 0 : 1}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n )}\n </WebAppPageRoot>\n )\n}\n\n/** @deprecated use WebAppPagePage instead */\nexport const FlexPage = WebAppPage\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyDI;AAzDJ,sBAAkD;AAClD,gCAA+B;AAC/B,2BAA0C;AAC1C,yBAA8B;AAE9B,0BAAuB;AACvB,8BAA4B;AAE5B,kBAA4C;AAC5C,iBAA0C;AAE1C,MAAM,qBAAiB,wBAAO,kCAAa;AAAA,EACzC,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa,+BAA+B,aAAa;AAAA,EAC1F,MAAM;AACR,CAAC,EAAmB,CAAC,EAAE,OAAO,4BAA4B,MAAM,QAAQ,MAAM;AAC5E,QAAM,QAAQ,YAAY,eAAe,4BAAiB;AAC1D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,CAAC,MAAM,YAAY,KAAK,yBAAyB,CAAC,GAAG;AAAA,MACnD,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,EACF;AACF,CAAC;AAOM,MAAM,aAAsD,CAAC;AAAA,EAClE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,GAAG;AACL,MAAM;AACJ,QAAM,iBAAa,kCAAc;AACjC,QAAM,EAAE,SAAS,QAAI,qCAAY;AAEjC;AAAA;AAAA,IAEE,YAAY;AACV,YAAM,YAAY,YAAY,EAAE,MAAM,SAAS,gBAAgB,MAAM,SAAS,SAAS,CAAC;AAAA,IAC1F;AAAA,IACA,CAAC,UAAU,OAAO,UAAU;AAAA,EAC9B;AAEA,SACE,6CAAC,kBAAe,2BAAsD,SAAmB,GAAG,OAC1F;AAAA,gDAAC,8BAAO,OAAc;AAAA,IACrB,aAAa,cAAc,SAC1B;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,OAAO,EAAE,YAAY,WAAW,SAAS,QAAQ,eAAe,UAAU,UAAU,GAAG,gBAAgB,aAAa;AAAA,QACpH,UAAU;AAAA,QAEV;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACC,GAAG;AAAA,YAEH;AAAA;AAAA,QACH;AAAA;AAAA,IACF,IAEA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU,iBAAiB,IAAI;AAAA,QAC/B;AAAA,QACC,GAAG;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,KAEJ;AAEJ;AAGO,MAAM,WAAW;","names":[]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Container, styled } from "@mui/material";
|
|
3
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
4
|
+
import { FlexGrowCol } from "@xylabs/react-flexbox";
|
|
5
|
+
import { useUserEvents } from "@xylabs/react-pixel";
|
|
6
|
+
import { Helmet } from "react-helmet";
|
|
7
|
+
import { useLocation } from "react-router-dom";
|
|
8
|
+
import { WebAppBody } from "./Body";
|
|
9
|
+
import { fixedWrap, scrollableWrap } from "./lib";
|
|
10
|
+
const WebAppPageRoot = styled(FlexGrowCol, {
|
|
11
|
+
name: "WebAppPage",
|
|
12
|
+
shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
|
|
13
|
+
slot: "Root"
|
|
14
|
+
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
15
|
+
const props = variant === "scrollable" ? scrollableWrap : fixedWrap;
|
|
16
|
+
return {
|
|
17
|
+
...props,
|
|
18
|
+
alignItems: "stretch",
|
|
19
|
+
justifyContent: "start",
|
|
20
|
+
maxWidth: "100vw",
|
|
21
|
+
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
22
|
+
inset: 0,
|
|
23
|
+
position: "absolute"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
const WebAppPage = ({
|
|
28
|
+
disableGutters,
|
|
29
|
+
disableBreadcrumbGutter,
|
|
30
|
+
title,
|
|
31
|
+
container,
|
|
32
|
+
children,
|
|
33
|
+
breadcrumbs,
|
|
34
|
+
mobileScrollingBreakpoint,
|
|
35
|
+
variant = "scrollable",
|
|
36
|
+
...props
|
|
37
|
+
}) => {
|
|
38
|
+
const userEvents = useUserEvents();
|
|
39
|
+
const { pathname } = useLocation();
|
|
40
|
+
useAsyncEffect(
|
|
41
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
42
|
+
async () => {
|
|
43
|
+
await userEvents?.viewContent({ name: title ?? "NodeBasePage", path: location.pathname });
|
|
44
|
+
},
|
|
45
|
+
[pathname, title, userEvents]
|
|
46
|
+
);
|
|
47
|
+
return /* @__PURE__ */ jsxs(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
|
|
48
|
+
/* @__PURE__ */ jsx(Helmet, { title }),
|
|
49
|
+
container && container !== "none" ? /* @__PURE__ */ jsx(
|
|
50
|
+
Container,
|
|
51
|
+
{
|
|
52
|
+
disableGutters,
|
|
53
|
+
style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
|
|
54
|
+
maxWidth: container,
|
|
55
|
+
children: /* @__PURE__ */ jsx(
|
|
56
|
+
WebAppBody,
|
|
57
|
+
{
|
|
58
|
+
disableBreadcrumbGutter,
|
|
59
|
+
breadcrumbs,
|
|
60
|
+
mobileScrollingBreakpoint,
|
|
61
|
+
variant,
|
|
62
|
+
...props,
|
|
63
|
+
children
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
) : /* @__PURE__ */ jsx(
|
|
68
|
+
WebAppBody,
|
|
69
|
+
{
|
|
70
|
+
disableBreadcrumbGutter,
|
|
71
|
+
breadcrumbs,
|
|
72
|
+
mobileScrollingBreakpoint,
|
|
73
|
+
paddingX: disableGutters ? 0 : 1,
|
|
74
|
+
variant,
|
|
75
|
+
...props,
|
|
76
|
+
children
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] });
|
|
80
|
+
};
|
|
81
|
+
const FlexPage = WebAppPage;
|
|
82
|
+
export {
|
|
83
|
+
FlexPage,
|
|
84
|
+
WebAppPage
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=Page.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Page.tsx"],"sourcesContent":["import { Container, ContainerProps, styled } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { FlexBoxProps, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useUserEvents } from '@xylabs/react-pixel'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { Helmet } from 'react-helmet'\nimport { useLocation } from 'react-router-dom'\n\nimport { WebAppBody, WebAppBodyProps } from './Body'\nimport { fixedWrap, scrollableWrap } from './lib'\n\nconst WebAppPageRoot = styled(FlexGrowCol, {\n name: 'WebAppPage',\n shouldForwardProp: (propName) => propName !== 'mobileScrollingBreakpoint' && propName !== 'variant',\n slot: 'Root',\n})<WebAppPageProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableWrap : fixedWrap\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n maxWidth: '100vw',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 0,\n position: 'absolute',\n },\n }\n})\n\nexport interface WebAppPageProps extends WebAppBodyProps, FlexBoxProps {\n container?: ContainerProps['maxWidth'] | 'none'\n disableGutters?: boolean\n}\n\nexport const WebAppPage: React.FC<WithChildren<WebAppPageProps>> = ({\n disableGutters,\n disableBreadcrumbGutter,\n title,\n container,\n children,\n breadcrumbs,\n mobileScrollingBreakpoint,\n variant = 'scrollable',\n ...props\n}) => {\n const userEvents = useUserEvents()\n const { pathname } = useLocation()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n await userEvents?.viewContent({ name: title ?? 'NodeBasePage', path: location.pathname })\n },\n [pathname, title, userEvents],\n )\n\n return (\n <WebAppPageRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant} {...props}>\n <Helmet title={title} />\n {container && container !== 'none' ? (\n <Container\n disableGutters={disableGutters}\n style={{ alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }}\n maxWidth={container}\n >\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n </Container>\n ) : (\n <WebAppBody\n disableBreadcrumbGutter={disableBreadcrumbGutter}\n breadcrumbs={breadcrumbs}\n mobileScrollingBreakpoint={mobileScrollingBreakpoint}\n paddingX={disableGutters ? 0 : 1}\n variant={variant}\n {...props}\n >\n {children}\n </WebAppBody>\n )}\n </WebAppPageRoot>\n )\n}\n\n/** @deprecated use WebAppPagePage instead */\nexport const FlexPage = WebAppPage\n"],"mappings":"AAyDI,SACE,KADF;AAzDJ,SAAS,WAA2B,cAAc;AAClD,SAAS,sBAAsB;AAC/B,SAAuB,mBAAmB;AAC1C,SAAS,qBAAqB;AAE9B,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAE5B,SAAS,kBAAmC;AAC5C,SAAS,WAAW,sBAAsB;AAE1C,MAAM,iBAAiB,OAAO,aAAa;AAAA,EACzC,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa,+BAA+B,aAAa;AAAA,EAC1F,MAAM;AACR,CAAC,EAAmB,CAAC,EAAE,OAAO,4BAA4B,MAAM,QAAQ,MAAM;AAC5E,QAAM,QAAQ,YAAY,eAAe,iBAAiB;AAC1D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,CAAC,MAAM,YAAY,KAAK,yBAAyB,CAAC,GAAG;AAAA,MACnD,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,EACF;AACF,CAAC;AAOM,MAAM,aAAsD,CAAC;AAAA,EAClE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,GAAG;AACL,MAAM;AACJ,QAAM,aAAa,cAAc;AACjC,QAAM,EAAE,SAAS,IAAI,YAAY;AAEjC;AAAA;AAAA,IAEE,YAAY;AACV,YAAM,YAAY,YAAY,EAAE,MAAM,SAAS,gBAAgB,MAAM,SAAS,SAAS,CAAC;AAAA,IAC1F;AAAA,IACA,CAAC,UAAU,OAAO,UAAU;AAAA,EAC9B;AAEA,SACE,qBAAC,kBAAe,2BAAsD,SAAmB,GAAG,OAC1F;AAAA,wBAAC,UAAO,OAAc;AAAA,IACrB,aAAa,cAAc,SAC1B;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,OAAO,EAAE,YAAY,WAAW,SAAS,QAAQ,eAAe,UAAU,UAAU,GAAG,gBAAgB,aAAa;AAAA,QACpH,UAAU;AAAA,QAEV;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACC,GAAG;AAAA,YAEH;AAAA;AAAA,QACH;AAAA;AAAA,IACF,IAEA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU,iBAAiB,IAAI;AAAA,QAC/B;AAAA,QACC,GAAG;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,KAEJ;AAEJ;AAGO,MAAM,WAAW;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var components_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(components_exports);
|
|
18
|
+
__reExport(components_exports, require("./Body"), module.exports);
|
|
19
|
+
__reExport(components_exports, require("./Chrome"), module.exports);
|
|
20
|
+
__reExport(components_exports, require("./ErrorPage"), module.exports);
|
|
21
|
+
__reExport(components_exports, require("./NotFoundPage"), module.exports);
|
|
22
|
+
__reExport(components_exports, require("./Page"), module.exports);
|
|
23
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
+
0 && (module.exports = {
|
|
25
|
+
...require("./Body"),
|
|
26
|
+
...require("./Chrome"),
|
|
27
|
+
...require("./ErrorPage"),
|
|
28
|
+
...require("./NotFoundPage"),
|
|
29
|
+
...require("./Page")
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './Body'\nexport * from './Chrome'\nexport * from './ErrorPage'\nexport * from './NotFoundPage'\nexport * from './Page'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,mBAAd;AACA,+BAAc,qBADd;AAEA,+BAAc,wBAFd;AAGA,+BAAc,2BAHd;AAIA,+BAAc,mBAJd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './Body'\nexport * from './Chrome'\nexport * from './ErrorPage'\nexport * from './NotFoundPage'\nexport * from './Page'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare const scrollableWrap: CSSProperties;
|
|
3
|
+
export declare const fixedWrap: CSSProperties;
|
|
4
|
+
export declare const scrollableContent: CSSProperties;
|
|
5
|
+
export declare const fixedContent: CSSProperties;
|
|
6
|
+
//# sourceMappingURL=cssValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssValues.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/cssValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,eAAO,MAAM,cAAc,EAAE,aAGnB,CAAA;AAEV,eAAO,MAAM,SAAS,EAAE,aAGd,CAAA;AAGV,eAAO,MAAM,iBAAiB,EAAE,aAEtB,CAAA;AAEV,eAAO,MAAM,YAAY,EAAE,aAEjB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare const scrollableWrap: CSSProperties;
|
|
3
|
+
export declare const fixedWrap: CSSProperties;
|
|
4
|
+
export declare const scrollableContent: CSSProperties;
|
|
5
|
+
export declare const fixedContent: CSSProperties;
|
|
6
|
+
//# sourceMappingURL=cssValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssValues.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/cssValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,eAAO,MAAM,cAAc,EAAE,aAGnB,CAAA;AAEV,eAAO,MAAM,SAAS,EAAE,aAGd,CAAA;AAGV,eAAO,MAAM,iBAAiB,EAAE,aAEtB,CAAA;AAEV,eAAO,MAAM,YAAY,EAAE,aAEjB,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var cssValues_exports = {};
|
|
20
|
+
__export(cssValues_exports, {
|
|
21
|
+
fixedContent: () => fixedContent,
|
|
22
|
+
fixedWrap: () => fixedWrap,
|
|
23
|
+
scrollableContent: () => scrollableContent,
|
|
24
|
+
scrollableWrap: () => scrollableWrap
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(cssValues_exports);
|
|
27
|
+
const scrollableWrap = {
|
|
28
|
+
inset: 0,
|
|
29
|
+
position: "absolute"
|
|
30
|
+
};
|
|
31
|
+
const fixedWrap = {
|
|
32
|
+
inset: "unset",
|
|
33
|
+
position: "relative"
|
|
34
|
+
};
|
|
35
|
+
const scrollableContent = {
|
|
36
|
+
...fixedWrap
|
|
37
|
+
};
|
|
38
|
+
const fixedContent = {
|
|
39
|
+
...scrollableWrap
|
|
40
|
+
};
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
fixedContent,
|
|
44
|
+
fixedWrap,
|
|
45
|
+
scrollableContent,
|
|
46
|
+
scrollableWrap
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=cssValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/lib/cssValues.ts"],"sourcesContent":["import { CSSProperties } from 'react'\n\nexport const scrollableWrap: CSSProperties = {\n inset: 0,\n position: 'absolute',\n} as const\n\nexport const fixedWrap: CSSProperties = {\n inset: 'unset',\n position: 'relative',\n} as const\n\n// Making a scrollable vs fixed wrapper and content is an inversion of the wrap and content styles\nexport const scrollableContent: CSSProperties = {\n ...fixedWrap,\n} as const\n\nexport const fixedContent: CSSProperties = {\n ...scrollableWrap,\n} as const\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,MAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,MAAM,oBAAmC;AAAA,EAC9C,GAAG;AACL;AAEO,MAAM,eAA8B;AAAA,EACzC,GAAG;AACL;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const scrollableWrap = {
|
|
2
|
+
inset: 0,
|
|
3
|
+
position: "absolute"
|
|
4
|
+
};
|
|
5
|
+
const fixedWrap = {
|
|
6
|
+
inset: "unset",
|
|
7
|
+
position: "relative"
|
|
8
|
+
};
|
|
9
|
+
const scrollableContent = {
|
|
10
|
+
...fixedWrap
|
|
11
|
+
};
|
|
12
|
+
const fixedContent = {
|
|
13
|
+
...scrollableWrap
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
fixedContent,
|
|
17
|
+
fixedWrap,
|
|
18
|
+
scrollableContent,
|
|
19
|
+
scrollableWrap
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=cssValues.mjs.map
|