@xyo-network/react-webapp 2.64.8 → 2.64.10
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/docs.json +24824 -11816
- package/package.json +13 -13
- package/dist/browser/components/Body.cjs +0 -116
- package/dist/browser/components/Body.cjs.map +0 -1
- package/dist/browser/components/Body.js +0 -95
- package/dist/browser/components/Body.js.map +0 -1
- package/dist/browser/components/Chrome.cjs +0 -246
- package/dist/browser/components/Chrome.cjs.map +0 -1
- package/dist/browser/components/Chrome.js +0 -225
- package/dist/browser/components/Chrome.js.map +0 -1
- package/dist/browser/components/ErrorPage.cjs +0 -211
- package/dist/browser/components/ErrorPage.cjs.map +0 -1
- package/dist/browser/components/ErrorPage.js +0 -190
- package/dist/browser/components/ErrorPage.js.map +0 -1
- package/dist/browser/components/NotFoundPage/Page.cjs +0 -207
- package/dist/browser/components/NotFoundPage/Page.cjs.map +0 -1
- package/dist/browser/components/NotFoundPage/Page.js +0 -186
- package/dist/browser/components/NotFoundPage/Page.js.map +0 -1
- package/dist/browser/components/NotFoundPage/index.cjs +0 -209
- package/dist/browser/components/NotFoundPage/index.cjs.map +0 -1
- package/dist/browser/components/NotFoundPage/index.js +0 -186
- package/dist/browser/components/NotFoundPage/index.js.map +0 -1
- package/dist/browser/components/Page.cjs +0 -200
- package/dist/browser/components/Page.cjs.map +0 -1
- package/dist/browser/components/Page.js +0 -179
- package/dist/browser/components/Page.js.map +0 -1
- package/dist/browser/components/index.cjs +0 -261
- package/dist/browser/components/index.cjs.map +0 -1
- package/dist/browser/components/index.js +0 -238
- package/dist/browser/components/index.js.map +0 -1
- package/dist/browser/components/lib/cssValues.cjs +0 -43
- package/dist/browser/components/lib/cssValues.cjs.map +0 -1
- package/dist/browser/components/lib/cssValues.js +0 -22
- package/dist/browser/components/lib/cssValues.js.map +0 -1
- package/dist/browser/components/lib/index.cjs +0 -45
- package/dist/browser/components/lib/index.cjs.map +0 -1
- package/dist/browser/components/lib/index.js +0 -22
- package/dist/browser/components/lib/index.js.map +0 -1
- package/dist/node/components/Body.cjs +0 -120
- package/dist/node/components/Body.cjs.map +0 -1
- package/dist/node/components/Body.js +0 -95
- package/dist/node/components/Body.js.map +0 -1
- package/dist/node/components/Chrome.cjs +0 -250
- package/dist/node/components/Chrome.cjs.map +0 -1
- package/dist/node/components/Chrome.js +0 -225
- package/dist/node/components/Chrome.js.map +0 -1
- package/dist/node/components/ErrorPage.cjs +0 -216
- package/dist/node/components/ErrorPage.cjs.map +0 -1
- package/dist/node/components/ErrorPage.js +0 -190
- package/dist/node/components/ErrorPage.js.map +0 -1
- package/dist/node/components/NotFoundPage/Page.cjs +0 -212
- package/dist/node/components/NotFoundPage/Page.cjs.map +0 -1
- package/dist/node/components/NotFoundPage/Page.js +0 -186
- package/dist/node/components/NotFoundPage/Page.js.map +0 -1
- package/dist/node/components/NotFoundPage/index.cjs +0 -214
- package/dist/node/components/NotFoundPage/index.cjs.map +0 -1
- package/dist/node/components/NotFoundPage/index.js +0 -186
- package/dist/node/components/NotFoundPage/index.js.map +0 -1
- package/dist/node/components/Page.cjs +0 -205
- package/dist/node/components/Page.cjs.map +0 -1
- package/dist/node/components/Page.js +0 -179
- package/dist/node/components/Page.js.map +0 -1
- package/dist/node/components/index.cjs +0 -272
- package/dist/node/components/index.cjs.map +0 -1
- package/dist/node/components/index.js +0 -238
- package/dist/node/components/index.js.map +0 -1
- package/dist/node/components/lib/cssValues.cjs +0 -50
- package/dist/node/components/lib/cssValues.cjs.map +0 -1
- package/dist/node/components/lib/cssValues.js +0 -22
- package/dist/node/components/lib/cssValues.js.map +0 -1
- package/dist/node/components/lib/index.cjs +0 -52
- package/dist/node/components/lib/index.cjs.map +0 -1
- package/dist/node/components/lib/index.js +0 -22
- package/dist/node/components/lib/index.js.map +0 -1
|
@@ -1,216 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/components/ErrorPage.tsx
|
|
21
|
-
var ErrorPage_exports = {};
|
|
22
|
-
__export(ErrorPage_exports, {
|
|
23
|
-
ErrorPage: () => ErrorPage,
|
|
24
|
-
WebAppErrorPage: () => WebAppErrorPage
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(ErrorPage_exports);
|
|
27
|
-
var import_react_button = require("@xylabs/react-button");
|
|
28
|
-
|
|
29
|
-
// src/components/Page.tsx
|
|
30
|
-
var import_material2 = require("@mui/material");
|
|
31
|
-
var import_react_async_effect = require("@xylabs/react-async-effect");
|
|
32
|
-
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
|
33
|
-
var import_react_pixel = require("@xylabs/react-pixel");
|
|
34
|
-
var import_react_helmet = require("react-helmet");
|
|
35
|
-
var import_react_router_dom = require("react-router-dom");
|
|
36
|
-
|
|
37
|
-
// src/components/Body.tsx
|
|
38
|
-
var import_material = require("@mui/material");
|
|
39
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
40
|
-
|
|
41
|
-
// src/components/lib/cssValues.ts
|
|
42
|
-
var scrollableWrap = {
|
|
43
|
-
inset: 0,
|
|
44
|
-
position: "absolute"
|
|
45
|
-
};
|
|
46
|
-
var fixedWrap = {
|
|
47
|
-
inset: "unset",
|
|
48
|
-
position: "relative"
|
|
49
|
-
};
|
|
50
|
-
var scrollableContent = {
|
|
51
|
-
...fixedWrap
|
|
52
|
-
};
|
|
53
|
-
var fixedContent = {
|
|
54
|
-
...scrollableWrap
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// src/components/Body.tsx
|
|
58
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
|
-
var WebAppBodyName = "WebAppBody";
|
|
60
|
-
var propsNotForwarded = ["mobileScrollingBreakpoint", "variant", "spacing", "disableBreadcrumbGutter"];
|
|
61
|
-
var defaultStyledOptions = {
|
|
62
|
-
shouldForwardProp: (prop) => !propsNotForwarded.includes(prop)
|
|
63
|
-
};
|
|
64
|
-
var WebAppBodyRoot = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
|
|
65
|
-
...defaultStyledOptions,
|
|
66
|
-
name: WebAppBodyName,
|
|
67
|
-
slot: "Root"
|
|
68
|
-
})(({ spacing, theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
69
|
-
const scrollable = variant === "scrollable";
|
|
70
|
-
return theme.unstable_sx({
|
|
71
|
-
alignItems: "stretch",
|
|
72
|
-
gap: 1,
|
|
73
|
-
justifyContent: "flex-start",
|
|
74
|
-
overflowX: "visible",
|
|
75
|
-
overflowY: scrollable ? "scroll" : "hidden",
|
|
76
|
-
paddingY: spacing,
|
|
77
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
78
|
-
overflowY: "scroll"
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
var WebAppBodyBreadcrumb = (0, import_material.styled)(import_react_flexbox.FlexRow, {
|
|
83
|
-
...defaultStyledOptions,
|
|
84
|
-
name: WebAppBodyName,
|
|
85
|
-
slot: "Breadcrumb"
|
|
86
|
-
})(
|
|
87
|
-
({ theme, disableBreadcrumbGutter, spacing }) => theme.unstable_sx({
|
|
88
|
-
justifyContent: "start",
|
|
89
|
-
marginX: disableBreadcrumbGutter ? 0 : spacing
|
|
90
|
-
})
|
|
91
|
-
);
|
|
92
|
-
var WebAppBodyScrollableWrapper = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
|
|
93
|
-
name: WebAppBodyName,
|
|
94
|
-
slot: "ScrollableWrapper"
|
|
95
|
-
})(() => ({
|
|
96
|
-
alignItems: "stretch"
|
|
97
|
-
}));
|
|
98
|
-
var WebAppBodyScrollable = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
|
|
99
|
-
...defaultStyledOptions,
|
|
100
|
-
name: WebAppBodyName,
|
|
101
|
-
slot: "Scrollable"
|
|
102
|
-
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
103
|
-
const props = variant === "scrollable" ? scrollableContent : fixedContent;
|
|
104
|
-
return {
|
|
105
|
-
...props,
|
|
106
|
-
alignItems: "stretch",
|
|
107
|
-
justifyContent: "start",
|
|
108
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
109
|
-
inset: "unset",
|
|
110
|
-
position: "relative"
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
var WebAppBody = ({
|
|
115
|
-
children,
|
|
116
|
-
breadcrumbs,
|
|
117
|
-
disableBreadcrumbGutter,
|
|
118
|
-
mobileScrollingBreakpoint,
|
|
119
|
-
spacing = 1,
|
|
120
|
-
variant,
|
|
121
|
-
...props
|
|
122
|
-
}) => {
|
|
123
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(WebAppBodyRoot, { mobileScrollingBreakpoint, spacing, variant, ...props, children: [
|
|
124
|
-
breadcrumbs ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyBreadcrumb, { disableBreadcrumbGutter, spacing, children: breadcrumbs }) : null,
|
|
125
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyScrollableWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyScrollable, { mobileScrollingBreakpoint, variant, children }) })
|
|
126
|
-
] });
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// src/components/Page.tsx
|
|
130
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
131
|
-
var WebAppPageRoot = (0, import_material2.styled)(import_react_flexbox2.FlexGrowCol, {
|
|
132
|
-
name: "WebAppPage",
|
|
133
|
-
shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
|
|
134
|
-
slot: "Root"
|
|
135
|
-
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
136
|
-
const props = variant === "scrollable" ? scrollableWrap : fixedWrap;
|
|
137
|
-
return {
|
|
138
|
-
...props,
|
|
139
|
-
alignItems: "stretch",
|
|
140
|
-
justifyContent: "start",
|
|
141
|
-
maxWidth: "100vw",
|
|
142
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
143
|
-
inset: 0,
|
|
144
|
-
position: "absolute"
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
});
|
|
148
|
-
var WebAppPage = ({
|
|
149
|
-
disableGutters,
|
|
150
|
-
disableBreadcrumbGutter,
|
|
151
|
-
title,
|
|
152
|
-
container,
|
|
153
|
-
children,
|
|
154
|
-
breadcrumbs,
|
|
155
|
-
mobileScrollingBreakpoint,
|
|
156
|
-
variant = "scrollable",
|
|
157
|
-
...props
|
|
158
|
-
}) => {
|
|
159
|
-
const userEvents = (0, import_react_pixel.useUserEvents)();
|
|
160
|
-
const { pathname } = (0, import_react_router_dom.useLocation)();
|
|
161
|
-
(0, import_react_async_effect.useAsyncEffect)(
|
|
162
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
163
|
-
async () => {
|
|
164
|
-
await (userEvents == null ? void 0 : userEvents.viewContent({ name: title ?? "NodeBasePage", path: location.pathname }));
|
|
165
|
-
},
|
|
166
|
-
[pathname, title, userEvents]
|
|
167
|
-
);
|
|
168
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
|
|
169
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_helmet.Helmet, { title }),
|
|
170
|
-
container && container !== "none" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
171
|
-
import_material2.Container,
|
|
172
|
-
{
|
|
173
|
-
disableGutters,
|
|
174
|
-
style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
|
|
175
|
-
maxWidth: container,
|
|
176
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
177
|
-
WebAppBody,
|
|
178
|
-
{
|
|
179
|
-
disableBreadcrumbGutter,
|
|
180
|
-
breadcrumbs,
|
|
181
|
-
mobileScrollingBreakpoint,
|
|
182
|
-
variant,
|
|
183
|
-
...props,
|
|
184
|
-
children
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
}
|
|
188
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
189
|
-
WebAppBody,
|
|
190
|
-
{
|
|
191
|
-
disableBreadcrumbGutter,
|
|
192
|
-
breadcrumbs,
|
|
193
|
-
mobileScrollingBreakpoint,
|
|
194
|
-
paddingX: disableGutters ? 0 : 1,
|
|
195
|
-
variant,
|
|
196
|
-
...props,
|
|
197
|
-
children
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
] });
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
// src/components/ErrorPage.tsx
|
|
204
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
205
|
-
var WebAppErrorPage = ({ error, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(WebAppPage, { title: "Oops! Something went wrong", ...props, children: [
|
|
206
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { children: "Oops! Something went wrong!" }),
|
|
207
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { children: `${error}` }),
|
|
208
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_button.ButtonEx, { href: "/", variant: "contained", children: "Homepage" })
|
|
209
|
-
] });
|
|
210
|
-
var ErrorPage = WebAppErrorPage;
|
|
211
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
212
|
-
0 && (module.exports = {
|
|
213
|
-
ErrorPage,
|
|
214
|
-
WebAppErrorPage
|
|
215
|
-
});
|
|
216
|
-
//# sourceMappingURL=ErrorPage.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ErrorPage.tsx","../../../src/components/Page.tsx","../../../src/components/Body.tsx","../../../src/components/lib/cssValues.ts"],"sourcesContent":["import { ButtonEx } from '@xylabs/react-button'\n\nimport { WebAppPage, WebAppPageProps } from './Page'\n\nexport interface WebAppErrorPageProps extends WebAppPageProps {\n error?: Error\n}\n\nexport const WebAppErrorPage: React.FC<WebAppErrorPageProps> = ({ error, ...props }) => (\n <WebAppPage title=\"Oops! Something went wrong\" {...props}>\n <h1>Oops! Something went wrong!</h1>\n <p>{`${error}`}</p>\n <ButtonEx href=\"/\" variant=\"contained\">\n Homepage\n </ButtonEx>\n </WebAppPage>\n)\n\n/** @deprecated use WebAppErrorPage instead */\nexport const ErrorPage = WebAppErrorPage\n","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","import { Breakpoint, styled } from '@mui/material'\nimport { FlexBoxProps, FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { ReactNode } from 'react'\n\nimport { fixedContent, scrollableContent } from './lib'\n\nconst WebAppBodyName = 'WebAppBody'\nconst propsNotForwarded = ['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter']\nconst defaultStyledOptions = {\n shouldForwardProp: (prop: string) => !propsNotForwarded.includes(prop),\n}\n\nconst WebAppBodyRoot = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Root',\n})<WebAppBodyProps>(({ spacing, theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const scrollable = variant === 'scrollable'\n return theme.unstable_sx({\n alignItems: 'stretch',\n gap: 1,\n justifyContent: 'flex-start',\n overflowX: 'visible',\n overflowY: scrollable ? 'scroll' : 'hidden',\n paddingY: spacing,\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n overflowY: 'scroll',\n },\n })\n})\n\nconst WebAppBodyBreadcrumb = styled(FlexRow, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Breadcrumb',\n})<WebAppBodyProps>(({ theme, disableBreadcrumbGutter, spacing }) =>\n theme.unstable_sx({\n justifyContent: 'start',\n marginX: disableBreadcrumbGutter ? 0 : spacing,\n }),\n)\n\nconst WebAppBodyScrollableWrapper = styled(FlexGrowCol, {\n name: WebAppBodyName,\n slot: 'ScrollableWrapper',\n})<WebAppBodyProps>(() => ({\n alignItems: 'stretch',\n}))\n\nconst WebAppBodyScrollable = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Scrollable',\n})<WebAppBodyProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableContent : fixedContent\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 'unset',\n position: 'relative',\n },\n }\n})\n\nexport interface WebAppBodyProps extends FlexBoxProps {\n breadcrumbs?: ReactNode\n disableBreadcrumbGutter?: boolean\n mobileScrollingBreakpoint?: Breakpoint\n spacing?: string | number\n variant?: 'scrollable' | 'fixed'\n}\n\nexport const WebAppBody: React.FC<WebAppBodyProps> = ({\n children,\n breadcrumbs,\n disableBreadcrumbGutter,\n mobileScrollingBreakpoint,\n spacing = 1,\n variant,\n ...props\n}) => {\n return (\n <WebAppBodyRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} spacing={spacing} variant={variant} {...props}>\n {breadcrumbs ? (\n <WebAppBodyBreadcrumb disableBreadcrumbGutter={disableBreadcrumbGutter} spacing={spacing}>\n {breadcrumbs}\n </WebAppBodyBreadcrumb>\n ) : null}\n <WebAppBodyScrollableWrapper>\n <WebAppBodyScrollable mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant}>\n {children}\n </WebAppBodyScrollable>\n </WebAppBodyScrollableWrapper>\n </WebAppBodyRoot>\n )\n}\n","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,0BAAyB;;;ACAzB,IAAAA,mBAAkD;AAClD,gCAA+B;AAC/B,IAAAC,wBAA0C;AAC1C,yBAA8B;AAE9B,0BAAuB;AACvB,8BAA4B;;;ACN5B,sBAAmC;AACnC,2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,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,aAAM,yCAAY,YAAY,EAAE,MAAM,SAAS,gBAAgB,MAAM,SAAS,SAAS;AAAA,IACzF;AAAA,IACA,CAAC,UAAU,OAAO,UAAU;AAAA,EAC9B;AAEA,SACE,8CAAC,kBAAe,2BAAsD,SAAmB,GAAG,OAC1F;AAAA,iDAAC,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;;;ADhFE,IAAAC,sBAAA;AADK,IAAM,kBAAkD,CAAC,EAAE,OAAO,GAAG,MAAM,MAChF,8CAAC,cAAW,OAAM,8BAA8B,GAAG,OACjD;AAAA,+CAAC,QAAG,yCAA2B;AAAA,EAC/B,6CAAC,OAAG,aAAG,KAAK,IAAG;AAAA,EACf,6CAAC,gCAAS,MAAK,KAAI,SAAQ,aAAY,sBAEvC;AAAA,GACF;AAIK,IAAM,YAAY;","names":["import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime"]}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
// src/components/ErrorPage.tsx
|
|
2
|
-
import { ButtonEx } from "@xylabs/react-button";
|
|
3
|
-
|
|
4
|
-
// src/components/Page.tsx
|
|
5
|
-
import { Container, styled as styled2 } from "@mui/material";
|
|
6
|
-
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
|
7
|
-
import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
|
|
8
|
-
import { useUserEvents } from "@xylabs/react-pixel";
|
|
9
|
-
import { Helmet } from "react-helmet";
|
|
10
|
-
import { useLocation } from "react-router-dom";
|
|
11
|
-
|
|
12
|
-
// src/components/Body.tsx
|
|
13
|
-
import { styled } from "@mui/material";
|
|
14
|
-
import { FlexGrowCol, FlexRow } from "@xylabs/react-flexbox";
|
|
15
|
-
|
|
16
|
-
// src/components/lib/cssValues.ts
|
|
17
|
-
var scrollableWrap = {
|
|
18
|
-
inset: 0,
|
|
19
|
-
position: "absolute"
|
|
20
|
-
};
|
|
21
|
-
var fixedWrap = {
|
|
22
|
-
inset: "unset",
|
|
23
|
-
position: "relative"
|
|
24
|
-
};
|
|
25
|
-
var scrollableContent = {
|
|
26
|
-
...fixedWrap
|
|
27
|
-
};
|
|
28
|
-
var fixedContent = {
|
|
29
|
-
...scrollableWrap
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// src/components/Body.tsx
|
|
33
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
-
var WebAppBodyName = "WebAppBody";
|
|
35
|
-
var propsNotForwarded = ["mobileScrollingBreakpoint", "variant", "spacing", "disableBreadcrumbGutter"];
|
|
36
|
-
var defaultStyledOptions = {
|
|
37
|
-
shouldForwardProp: (prop) => !propsNotForwarded.includes(prop)
|
|
38
|
-
};
|
|
39
|
-
var WebAppBodyRoot = styled(FlexGrowCol, {
|
|
40
|
-
...defaultStyledOptions,
|
|
41
|
-
name: WebAppBodyName,
|
|
42
|
-
slot: "Root"
|
|
43
|
-
})(({ spacing, theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
44
|
-
const scrollable = variant === "scrollable";
|
|
45
|
-
return theme.unstable_sx({
|
|
46
|
-
alignItems: "stretch",
|
|
47
|
-
gap: 1,
|
|
48
|
-
justifyContent: "flex-start",
|
|
49
|
-
overflowX: "visible",
|
|
50
|
-
overflowY: scrollable ? "scroll" : "hidden",
|
|
51
|
-
paddingY: spacing,
|
|
52
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
53
|
-
overflowY: "scroll"
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
var WebAppBodyBreadcrumb = styled(FlexRow, {
|
|
58
|
-
...defaultStyledOptions,
|
|
59
|
-
name: WebAppBodyName,
|
|
60
|
-
slot: "Breadcrumb"
|
|
61
|
-
})(
|
|
62
|
-
({ theme, disableBreadcrumbGutter, spacing }) => theme.unstable_sx({
|
|
63
|
-
justifyContent: "start",
|
|
64
|
-
marginX: disableBreadcrumbGutter ? 0 : spacing
|
|
65
|
-
})
|
|
66
|
-
);
|
|
67
|
-
var WebAppBodyScrollableWrapper = styled(FlexGrowCol, {
|
|
68
|
-
name: WebAppBodyName,
|
|
69
|
-
slot: "ScrollableWrapper"
|
|
70
|
-
})(() => ({
|
|
71
|
-
alignItems: "stretch"
|
|
72
|
-
}));
|
|
73
|
-
var WebAppBodyScrollable = styled(FlexGrowCol, {
|
|
74
|
-
...defaultStyledOptions,
|
|
75
|
-
name: WebAppBodyName,
|
|
76
|
-
slot: "Scrollable"
|
|
77
|
-
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
78
|
-
const props = variant === "scrollable" ? scrollableContent : fixedContent;
|
|
79
|
-
return {
|
|
80
|
-
...props,
|
|
81
|
-
alignItems: "stretch",
|
|
82
|
-
justifyContent: "start",
|
|
83
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
84
|
-
inset: "unset",
|
|
85
|
-
position: "relative"
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
var WebAppBody = ({
|
|
90
|
-
children,
|
|
91
|
-
breadcrumbs,
|
|
92
|
-
disableBreadcrumbGutter,
|
|
93
|
-
mobileScrollingBreakpoint,
|
|
94
|
-
spacing = 1,
|
|
95
|
-
variant,
|
|
96
|
-
...props
|
|
97
|
-
}) => {
|
|
98
|
-
return /* @__PURE__ */ jsxs(WebAppBodyRoot, { mobileScrollingBreakpoint, spacing, variant, ...props, children: [
|
|
99
|
-
breadcrumbs ? /* @__PURE__ */ jsx(WebAppBodyBreadcrumb, { disableBreadcrumbGutter, spacing, children: breadcrumbs }) : null,
|
|
100
|
-
/* @__PURE__ */ jsx(WebAppBodyScrollableWrapper, { children: /* @__PURE__ */ jsx(WebAppBodyScrollable, { mobileScrollingBreakpoint, variant, children }) })
|
|
101
|
-
] });
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// src/components/Page.tsx
|
|
105
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
106
|
-
var WebAppPageRoot = styled2(FlexGrowCol2, {
|
|
107
|
-
name: "WebAppPage",
|
|
108
|
-
shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
|
|
109
|
-
slot: "Root"
|
|
110
|
-
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
111
|
-
const props = variant === "scrollable" ? scrollableWrap : fixedWrap;
|
|
112
|
-
return {
|
|
113
|
-
...props,
|
|
114
|
-
alignItems: "stretch",
|
|
115
|
-
justifyContent: "start",
|
|
116
|
-
maxWidth: "100vw",
|
|
117
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
118
|
-
inset: 0,
|
|
119
|
-
position: "absolute"
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
});
|
|
123
|
-
var WebAppPage = ({
|
|
124
|
-
disableGutters,
|
|
125
|
-
disableBreadcrumbGutter,
|
|
126
|
-
title,
|
|
127
|
-
container,
|
|
128
|
-
children,
|
|
129
|
-
breadcrumbs,
|
|
130
|
-
mobileScrollingBreakpoint,
|
|
131
|
-
variant = "scrollable",
|
|
132
|
-
...props
|
|
133
|
-
}) => {
|
|
134
|
-
const userEvents = useUserEvents();
|
|
135
|
-
const { pathname } = useLocation();
|
|
136
|
-
useAsyncEffect(
|
|
137
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
138
|
-
async () => {
|
|
139
|
-
await (userEvents == null ? void 0 : userEvents.viewContent({ name: title ?? "NodeBasePage", path: location.pathname }));
|
|
140
|
-
},
|
|
141
|
-
[pathname, title, userEvents]
|
|
142
|
-
);
|
|
143
|
-
return /* @__PURE__ */ jsxs2(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
|
|
144
|
-
/* @__PURE__ */ jsx2(Helmet, { title }),
|
|
145
|
-
container && container !== "none" ? /* @__PURE__ */ jsx2(
|
|
146
|
-
Container,
|
|
147
|
-
{
|
|
148
|
-
disableGutters,
|
|
149
|
-
style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
|
|
150
|
-
maxWidth: container,
|
|
151
|
-
children: /* @__PURE__ */ jsx2(
|
|
152
|
-
WebAppBody,
|
|
153
|
-
{
|
|
154
|
-
disableBreadcrumbGutter,
|
|
155
|
-
breadcrumbs,
|
|
156
|
-
mobileScrollingBreakpoint,
|
|
157
|
-
variant,
|
|
158
|
-
...props,
|
|
159
|
-
children
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
}
|
|
163
|
-
) : /* @__PURE__ */ jsx2(
|
|
164
|
-
WebAppBody,
|
|
165
|
-
{
|
|
166
|
-
disableBreadcrumbGutter,
|
|
167
|
-
breadcrumbs,
|
|
168
|
-
mobileScrollingBreakpoint,
|
|
169
|
-
paddingX: disableGutters ? 0 : 1,
|
|
170
|
-
variant,
|
|
171
|
-
...props,
|
|
172
|
-
children
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
] });
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
// src/components/ErrorPage.tsx
|
|
179
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
180
|
-
var WebAppErrorPage = ({ error, ...props }) => /* @__PURE__ */ jsxs3(WebAppPage, { title: "Oops! Something went wrong", ...props, children: [
|
|
181
|
-
/* @__PURE__ */ jsx3("h1", { children: "Oops! Something went wrong!" }),
|
|
182
|
-
/* @__PURE__ */ jsx3("p", { children: `${error}` }),
|
|
183
|
-
/* @__PURE__ */ jsx3(ButtonEx, { href: "/", variant: "contained", children: "Homepage" })
|
|
184
|
-
] });
|
|
185
|
-
var ErrorPage = WebAppErrorPage;
|
|
186
|
-
export {
|
|
187
|
-
ErrorPage,
|
|
188
|
-
WebAppErrorPage
|
|
189
|
-
};
|
|
190
|
-
//# sourceMappingURL=ErrorPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ErrorPage.tsx","../../../src/components/Page.tsx","../../../src/components/Body.tsx","../../../src/components/lib/cssValues.ts"],"sourcesContent":["import { ButtonEx } from '@xylabs/react-button'\n\nimport { WebAppPage, WebAppPageProps } from './Page'\n\nexport interface WebAppErrorPageProps extends WebAppPageProps {\n error?: Error\n}\n\nexport const WebAppErrorPage: React.FC<WebAppErrorPageProps> = ({ error, ...props }) => (\n <WebAppPage title=\"Oops! Something went wrong\" {...props}>\n <h1>Oops! Something went wrong!</h1>\n <p>{`${error}`}</p>\n <ButtonEx href=\"/\" variant=\"contained\">\n Homepage\n </ButtonEx>\n </WebAppPage>\n)\n\n/** @deprecated use WebAppErrorPage instead */\nexport const ErrorPage = WebAppErrorPage\n","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","import { Breakpoint, styled } from '@mui/material'\nimport { FlexBoxProps, FlexGrowCol, FlexRow } from '@xylabs/react-flexbox'\nimport React, { ReactNode } from 'react'\n\nimport { fixedContent, scrollableContent } from './lib'\n\nconst WebAppBodyName = 'WebAppBody'\nconst propsNotForwarded = ['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter']\nconst defaultStyledOptions = {\n shouldForwardProp: (prop: string) => !propsNotForwarded.includes(prop),\n}\n\nconst WebAppBodyRoot = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Root',\n})<WebAppBodyProps>(({ spacing, theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const scrollable = variant === 'scrollable'\n return theme.unstable_sx({\n alignItems: 'stretch',\n gap: 1,\n justifyContent: 'flex-start',\n overflowX: 'visible',\n overflowY: scrollable ? 'scroll' : 'hidden',\n paddingY: spacing,\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n overflowY: 'scroll',\n },\n })\n})\n\nconst WebAppBodyBreadcrumb = styled(FlexRow, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Breadcrumb',\n})<WebAppBodyProps>(({ theme, disableBreadcrumbGutter, spacing }) =>\n theme.unstable_sx({\n justifyContent: 'start',\n marginX: disableBreadcrumbGutter ? 0 : spacing,\n }),\n)\n\nconst WebAppBodyScrollableWrapper = styled(FlexGrowCol, {\n name: WebAppBodyName,\n slot: 'ScrollableWrapper',\n})<WebAppBodyProps>(() => ({\n alignItems: 'stretch',\n}))\n\nconst WebAppBodyScrollable = styled(FlexGrowCol, {\n ...defaultStyledOptions,\n name: WebAppBodyName,\n slot: 'Scrollable',\n})<WebAppBodyProps>(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {\n const props = variant === 'scrollable' ? scrollableContent : fixedContent\n return {\n ...props,\n alignItems: 'stretch',\n justifyContent: 'start',\n [theme.breakpoints.down(mobileScrollingBreakpoint)]: {\n inset: 'unset',\n position: 'relative',\n },\n }\n})\n\nexport interface WebAppBodyProps extends FlexBoxProps {\n breadcrumbs?: ReactNode\n disableBreadcrumbGutter?: boolean\n mobileScrollingBreakpoint?: Breakpoint\n spacing?: string | number\n variant?: 'scrollable' | 'fixed'\n}\n\nexport const WebAppBody: React.FC<WebAppBodyProps> = ({\n children,\n breadcrumbs,\n disableBreadcrumbGutter,\n mobileScrollingBreakpoint,\n spacing = 1,\n variant,\n ...props\n}) => {\n return (\n <WebAppBodyRoot mobileScrollingBreakpoint={mobileScrollingBreakpoint} spacing={spacing} variant={variant} {...props}>\n {breadcrumbs ? (\n <WebAppBodyBreadcrumb disableBreadcrumbGutter={disableBreadcrumbGutter} spacing={spacing}>\n {breadcrumbs}\n </WebAppBodyBreadcrumb>\n ) : null}\n <WebAppBodyScrollableWrapper>\n <WebAppBodyScrollable mobileScrollingBreakpoint={mobileScrollingBreakpoint} variant={variant}>\n {children}\n </WebAppBodyScrollable>\n </WebAppBodyScrollableWrapper>\n </WebAppBodyRoot>\n )\n}\n","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,SAAS,gBAAgB;;;ACAzB,SAAS,WAA2B,UAAAA,eAAc;AAClD,SAAS,sBAAsB;AAC/B,SAAuB,eAAAC,oBAAmB;AAC1C,SAAS,qBAAqB;AAE9B,SAAS,cAAc;AACvB,SAAS,mBAAmB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AM,YAAY;","names":["styled","FlexGrowCol","jsx","jsxs","styled","FlexGrowCol","jsx","jsxs"]}
|
|
@@ -1,212 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/components/NotFoundPage/Page.tsx
|
|
21
|
-
var Page_exports = {};
|
|
22
|
-
__export(Page_exports, {
|
|
23
|
-
NotFoundPage: () => NotFoundPage,
|
|
24
|
-
WebAppNotFoundPage: () => WebAppNotFoundPage
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(Page_exports);
|
|
27
|
-
var import_react_shared = require("@xyo-network/react-shared");
|
|
28
|
-
|
|
29
|
-
// src/components/Page.tsx
|
|
30
|
-
var import_material2 = require("@mui/material");
|
|
31
|
-
var import_react_async_effect = require("@xylabs/react-async-effect");
|
|
32
|
-
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
|
33
|
-
var import_react_pixel = require("@xylabs/react-pixel");
|
|
34
|
-
var import_react_helmet = require("react-helmet");
|
|
35
|
-
var import_react_router_dom = require("react-router-dom");
|
|
36
|
-
|
|
37
|
-
// src/components/Body.tsx
|
|
38
|
-
var import_material = require("@mui/material");
|
|
39
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
|
40
|
-
|
|
41
|
-
// src/components/lib/cssValues.ts
|
|
42
|
-
var scrollableWrap = {
|
|
43
|
-
inset: 0,
|
|
44
|
-
position: "absolute"
|
|
45
|
-
};
|
|
46
|
-
var fixedWrap = {
|
|
47
|
-
inset: "unset",
|
|
48
|
-
position: "relative"
|
|
49
|
-
};
|
|
50
|
-
var scrollableContent = {
|
|
51
|
-
...fixedWrap
|
|
52
|
-
};
|
|
53
|
-
var fixedContent = {
|
|
54
|
-
...scrollableWrap
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// src/components/Body.tsx
|
|
58
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
|
-
var WebAppBodyName = "WebAppBody";
|
|
60
|
-
var propsNotForwarded = ["mobileScrollingBreakpoint", "variant", "spacing", "disableBreadcrumbGutter"];
|
|
61
|
-
var defaultStyledOptions = {
|
|
62
|
-
shouldForwardProp: (prop) => !propsNotForwarded.includes(prop)
|
|
63
|
-
};
|
|
64
|
-
var WebAppBodyRoot = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
|
|
65
|
-
...defaultStyledOptions,
|
|
66
|
-
name: WebAppBodyName,
|
|
67
|
-
slot: "Root"
|
|
68
|
-
})(({ spacing, theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
69
|
-
const scrollable = variant === "scrollable";
|
|
70
|
-
return theme.unstable_sx({
|
|
71
|
-
alignItems: "stretch",
|
|
72
|
-
gap: 1,
|
|
73
|
-
justifyContent: "flex-start",
|
|
74
|
-
overflowX: "visible",
|
|
75
|
-
overflowY: scrollable ? "scroll" : "hidden",
|
|
76
|
-
paddingY: spacing,
|
|
77
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
78
|
-
overflowY: "scroll"
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
var WebAppBodyBreadcrumb = (0, import_material.styled)(import_react_flexbox.FlexRow, {
|
|
83
|
-
...defaultStyledOptions,
|
|
84
|
-
name: WebAppBodyName,
|
|
85
|
-
slot: "Breadcrumb"
|
|
86
|
-
})(
|
|
87
|
-
({ theme, disableBreadcrumbGutter, spacing }) => theme.unstable_sx({
|
|
88
|
-
justifyContent: "start",
|
|
89
|
-
marginX: disableBreadcrumbGutter ? 0 : spacing
|
|
90
|
-
})
|
|
91
|
-
);
|
|
92
|
-
var WebAppBodyScrollableWrapper = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
|
|
93
|
-
name: WebAppBodyName,
|
|
94
|
-
slot: "ScrollableWrapper"
|
|
95
|
-
})(() => ({
|
|
96
|
-
alignItems: "stretch"
|
|
97
|
-
}));
|
|
98
|
-
var WebAppBodyScrollable = (0, import_material.styled)(import_react_flexbox.FlexGrowCol, {
|
|
99
|
-
...defaultStyledOptions,
|
|
100
|
-
name: WebAppBodyName,
|
|
101
|
-
slot: "Scrollable"
|
|
102
|
-
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
103
|
-
const props = variant === "scrollable" ? scrollableContent : fixedContent;
|
|
104
|
-
return {
|
|
105
|
-
...props,
|
|
106
|
-
alignItems: "stretch",
|
|
107
|
-
justifyContent: "start",
|
|
108
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
109
|
-
inset: "unset",
|
|
110
|
-
position: "relative"
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
var WebAppBody = ({
|
|
115
|
-
children,
|
|
116
|
-
breadcrumbs,
|
|
117
|
-
disableBreadcrumbGutter,
|
|
118
|
-
mobileScrollingBreakpoint,
|
|
119
|
-
spacing = 1,
|
|
120
|
-
variant,
|
|
121
|
-
...props
|
|
122
|
-
}) => {
|
|
123
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(WebAppBodyRoot, { mobileScrollingBreakpoint, spacing, variant, ...props, children: [
|
|
124
|
-
breadcrumbs ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyBreadcrumb, { disableBreadcrumbGutter, spacing, children: breadcrumbs }) : null,
|
|
125
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyScrollableWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WebAppBodyScrollable, { mobileScrollingBreakpoint, variant, children }) })
|
|
126
|
-
] });
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// src/components/Page.tsx
|
|
130
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
131
|
-
var WebAppPageRoot = (0, import_material2.styled)(import_react_flexbox2.FlexGrowCol, {
|
|
132
|
-
name: "WebAppPage",
|
|
133
|
-
shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
|
|
134
|
-
slot: "Root"
|
|
135
|
-
})(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
|
|
136
|
-
const props = variant === "scrollable" ? scrollableWrap : fixedWrap;
|
|
137
|
-
return {
|
|
138
|
-
...props,
|
|
139
|
-
alignItems: "stretch",
|
|
140
|
-
justifyContent: "start",
|
|
141
|
-
maxWidth: "100vw",
|
|
142
|
-
[theme.breakpoints.down(mobileScrollingBreakpoint)]: {
|
|
143
|
-
inset: 0,
|
|
144
|
-
position: "absolute"
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
});
|
|
148
|
-
var WebAppPage = ({
|
|
149
|
-
disableGutters,
|
|
150
|
-
disableBreadcrumbGutter,
|
|
151
|
-
title,
|
|
152
|
-
container,
|
|
153
|
-
children,
|
|
154
|
-
breadcrumbs,
|
|
155
|
-
mobileScrollingBreakpoint,
|
|
156
|
-
variant = "scrollable",
|
|
157
|
-
...props
|
|
158
|
-
}) => {
|
|
159
|
-
const userEvents = (0, import_react_pixel.useUserEvents)();
|
|
160
|
-
const { pathname } = (0, import_react_router_dom.useLocation)();
|
|
161
|
-
(0, import_react_async_effect.useAsyncEffect)(
|
|
162
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
163
|
-
async () => {
|
|
164
|
-
await (userEvents == null ? void 0 : userEvents.viewContent({ name: title ?? "NodeBasePage", path: location.pathname }));
|
|
165
|
-
},
|
|
166
|
-
[pathname, title, userEvents]
|
|
167
|
-
);
|
|
168
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
|
|
169
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_helmet.Helmet, { title }),
|
|
170
|
-
container && container !== "none" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
171
|
-
import_material2.Container,
|
|
172
|
-
{
|
|
173
|
-
disableGutters,
|
|
174
|
-
style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
|
|
175
|
-
maxWidth: container,
|
|
176
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
177
|
-
WebAppBody,
|
|
178
|
-
{
|
|
179
|
-
disableBreadcrumbGutter,
|
|
180
|
-
breadcrumbs,
|
|
181
|
-
mobileScrollingBreakpoint,
|
|
182
|
-
variant,
|
|
183
|
-
...props,
|
|
184
|
-
children
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
}
|
|
188
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
189
|
-
WebAppBody,
|
|
190
|
-
{
|
|
191
|
-
disableBreadcrumbGutter,
|
|
192
|
-
breadcrumbs,
|
|
193
|
-
mobileScrollingBreakpoint,
|
|
194
|
-
paddingX: disableGutters ? 0 : 1,
|
|
195
|
-
variant,
|
|
196
|
-
...props,
|
|
197
|
-
children
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
] });
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
// src/components/NotFoundPage/Page.tsx
|
|
204
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
205
|
-
var WebAppNotFoundPage = ({ title, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(WebAppPage, { title: title ?? "Sorry! Page Not Found", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_shared.NotFound, {}) });
|
|
206
|
-
var NotFoundPage = WebAppNotFoundPage;
|
|
207
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
208
|
-
0 && (module.exports = {
|
|
209
|
-
NotFoundPage,
|
|
210
|
-
WebAppNotFoundPage
|
|
211
|
-
});
|
|
212
|
-
//# sourceMappingURL=Page.cjs.map
|