@xyo-network/react-webapp 2.64.0-rc.6 → 2.64.0

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.
Files changed (132) hide show
  1. package/dist/browser/components/Body.cjs +116 -0
  2. package/dist/browser/components/Body.cjs.map +1 -0
  3. package/dist/browser/components/Body.d.cts +12 -0
  4. package/dist/browser/components/Body.d.cts.map +1 -0
  5. package/dist/browser/components/Chrome.cjs +246 -0
  6. package/dist/browser/components/Chrome.cjs.map +1 -0
  7. package/dist/browser/components/Chrome.d.cts +14 -0
  8. package/dist/browser/components/Chrome.d.cts.map +1 -0
  9. package/dist/browser/components/ErrorPage.cjs +211 -0
  10. package/dist/browser/components/ErrorPage.cjs.map +1 -0
  11. package/dist/browser/components/ErrorPage.d.cts +9 -0
  12. package/dist/browser/components/ErrorPage.d.cts.map +1 -0
  13. package/dist/browser/components/NotFoundPage/Page.cjs +207 -0
  14. package/dist/browser/components/NotFoundPage/Page.cjs.map +1 -0
  15. package/dist/browser/components/NotFoundPage/Page.d.cts +6 -0
  16. package/dist/browser/components/NotFoundPage/Page.d.cts.map +1 -0
  17. package/dist/browser/components/NotFoundPage/index.cjs +209 -0
  18. package/dist/browser/components/NotFoundPage/index.cjs.map +1 -0
  19. package/dist/browser/components/NotFoundPage/index.d.cts +2 -0
  20. package/dist/browser/components/NotFoundPage/index.d.cts.map +1 -0
  21. package/dist/browser/components/Page.cjs +200 -0
  22. package/dist/browser/components/Page.cjs.map +1 -0
  23. package/dist/browser/components/Page.d.cts +13 -0
  24. package/dist/browser/components/Page.d.cts.map +1 -0
  25. package/dist/browser/components/index.cjs +261 -0
  26. package/dist/browser/components/index.cjs.map +1 -0
  27. package/dist/browser/components/index.d.cts +6 -0
  28. package/dist/browser/components/index.d.cts.map +1 -0
  29. package/dist/browser/components/lib/cssValues.cjs +43 -0
  30. package/dist/{node/components/lib/cssValues.mjs.map → browser/components/lib/cssValues.cjs.map} +1 -1
  31. package/dist/browser/components/lib/cssValues.d.cts +6 -0
  32. package/dist/browser/components/lib/cssValues.d.cts.map +1 -0
  33. package/dist/browser/components/lib/index.cjs +45 -0
  34. package/dist/browser/components/lib/index.cjs.map +1 -0
  35. package/dist/browser/components/lib/index.d.cts +2 -0
  36. package/dist/browser/components/lib/index.d.cts.map +1 -0
  37. package/dist/browser/index.cjs +261 -0
  38. package/dist/browser/index.cjs.map +1 -0
  39. package/dist/browser/index.d.cts +2 -0
  40. package/dist/browser/index.d.cts.map +1 -0
  41. package/dist/docs.json +94282 -0
  42. package/dist/node/components/Body.cjs +120 -0
  43. package/dist/node/components/Body.cjs.map +1 -0
  44. package/dist/node/components/Body.d.cts +12 -0
  45. package/dist/node/components/Body.d.cts.map +1 -0
  46. package/dist/node/components/Body.js +34 -40
  47. package/dist/node/components/Body.js.map +1 -1
  48. package/dist/node/components/Chrome.cjs +250 -0
  49. package/dist/node/components/Chrome.cjs.map +1 -0
  50. package/dist/node/components/Chrome.d.cts +14 -0
  51. package/dist/node/components/Chrome.d.cts.map +1 -0
  52. package/dist/node/components/Chrome.js +207 -44
  53. package/dist/node/components/Chrome.js.map +1 -1
  54. package/dist/node/components/ErrorPage.cjs +216 -0
  55. package/dist/node/components/ErrorPage.cjs.map +1 -0
  56. package/dist/node/components/ErrorPage.d.cts +9 -0
  57. package/dist/node/components/ErrorPage.d.cts.map +1 -0
  58. package/dist/node/components/ErrorPage.js +185 -34
  59. package/dist/node/components/ErrorPage.js.map +1 -1
  60. package/dist/node/components/NotFoundPage/Page.cjs +212 -0
  61. package/dist/node/components/NotFoundPage/Page.cjs.map +1 -0
  62. package/dist/node/components/NotFoundPage/Page.d.cts +6 -0
  63. package/dist/node/components/NotFoundPage/Page.d.cts.map +1 -0
  64. package/dist/node/components/NotFoundPage/Page.js +182 -31
  65. package/dist/node/components/NotFoundPage/Page.js.map +1 -1
  66. package/dist/node/components/NotFoundPage/index.cjs +214 -0
  67. package/dist/node/components/NotFoundPage/index.cjs.map +1 -0
  68. package/dist/node/components/NotFoundPage/index.d.cts +2 -0
  69. package/dist/node/components/NotFoundPage/index.d.cts.map +1 -0
  70. package/dist/node/components/NotFoundPage/index.js +184 -21
  71. package/dist/node/components/NotFoundPage/index.js.map +1 -1
  72. package/dist/node/components/Page.cjs +205 -0
  73. package/dist/node/components/Page.cjs.map +1 -0
  74. package/dist/node/components/Page.d.cts +13 -0
  75. package/dist/node/components/Page.d.cts.map +1 -0
  76. package/dist/node/components/Page.js +117 -49
  77. package/dist/node/components/Page.js.map +1 -1
  78. package/dist/node/components/index.cjs +272 -0
  79. package/dist/node/components/index.cjs.map +1 -0
  80. package/dist/node/components/index.d.cts +6 -0
  81. package/dist/node/components/index.d.cts.map +1 -0
  82. package/dist/node/components/index.js +236 -29
  83. package/dist/node/components/index.js.map +1 -1
  84. package/dist/node/components/{NotFoundPage/Page.stories.js → lib/cssValues.cjs} +26 -23
  85. package/dist/node/components/lib/cssValues.cjs.map +1 -0
  86. package/dist/node/components/lib/cssValues.d.cts +6 -0
  87. package/dist/node/components/lib/cssValues.d.cts.map +1 -0
  88. package/dist/node/components/lib/cssValues.js +7 -33
  89. package/dist/node/components/lib/cssValues.js.map +1 -1
  90. package/dist/node/components/lib/index.cjs +52 -0
  91. package/dist/node/components/lib/index.cjs.map +1 -0
  92. package/dist/node/components/lib/index.d.cts +2 -0
  93. package/dist/node/components/lib/index.d.cts.map +1 -0
  94. package/dist/node/components/lib/index.js +20 -21
  95. package/dist/node/components/lib/index.js.map +1 -1
  96. package/dist/node/index.cjs +272 -0
  97. package/dist/node/index.cjs.map +1 -0
  98. package/dist/node/index.d.cts +2 -0
  99. package/dist/node/index.d.cts.map +1 -0
  100. package/dist/node/index.js +236 -21
  101. package/dist/node/index.js.map +1 -1
  102. package/package.json +25 -25
  103. package/dist/browser/components/Chrome.stories.js +0 -53
  104. package/dist/browser/components/Chrome.stories.js.map +0 -1
  105. package/dist/browser/components/NotFoundPage/Page.stories.js +0 -23
  106. package/dist/browser/components/NotFoundPage/Page.stories.js.map +0 -1
  107. package/dist/node/components/Body.mjs +0 -77
  108. package/dist/node/components/Body.mjs.map +0 -1
  109. package/dist/node/components/Chrome.mjs +0 -38
  110. package/dist/node/components/Chrome.mjs.map +0 -1
  111. package/dist/node/components/Chrome.stories.js +0 -79
  112. package/dist/node/components/Chrome.stories.js.map +0 -1
  113. package/dist/node/components/Chrome.stories.mjs +0 -53
  114. package/dist/node/components/Chrome.stories.mjs.map +0 -1
  115. package/dist/node/components/ErrorPage.mjs +0 -14
  116. package/dist/node/components/ErrorPage.mjs.map +0 -1
  117. package/dist/node/components/NotFoundPage/Page.mjs +0 -10
  118. package/dist/node/components/NotFoundPage/Page.mjs.map +0 -1
  119. package/dist/node/components/NotFoundPage/Page.stories.js.map +0 -1
  120. package/dist/node/components/NotFoundPage/Page.stories.mjs +0 -23
  121. package/dist/node/components/NotFoundPage/Page.stories.mjs.map +0 -1
  122. package/dist/node/components/NotFoundPage/index.mjs +0 -2
  123. package/dist/node/components/NotFoundPage/index.mjs.map +0 -1
  124. package/dist/node/components/Page.mjs +0 -86
  125. package/dist/node/components/Page.mjs.map +0 -1
  126. package/dist/node/components/index.mjs +0 -6
  127. package/dist/node/components/index.mjs.map +0 -1
  128. package/dist/node/components/lib/cssValues.mjs +0 -21
  129. package/dist/node/components/lib/index.mjs +0 -2
  130. package/dist/node/components/lib/index.mjs.map +0 -1
  131. package/dist/node/index.mjs +0 -2
  132. package/dist/node/index.mjs.map +0 -1
@@ -1,31 +1,238 @@
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")
1
+ // src/components/Body.tsx
2
+ import { styled } from "@mui/material";
3
+ import { FlexGrowCol, FlexRow } from "@xylabs/react-flexbox";
4
+
5
+ // src/components/lib/cssValues.ts
6
+ var scrollableWrap = {
7
+ inset: 0,
8
+ position: "absolute"
9
+ };
10
+ var fixedWrap = {
11
+ inset: "unset",
12
+ position: "relative"
13
+ };
14
+ var scrollableContent = {
15
+ ...fixedWrap
16
+ };
17
+ var fixedContent = {
18
+ ...scrollableWrap
19
+ };
20
+
21
+ // src/components/Body.tsx
22
+ import { jsx, jsxs } from "react/jsx-runtime";
23
+ var WebAppBodyName = "WebAppBody";
24
+ var propsNotForwarded = ["mobileScrollingBreakpoint", "variant", "spacing", "disableBreadcrumbGutter"];
25
+ var defaultStyledOptions = {
26
+ shouldForwardProp: (prop) => !propsNotForwarded.includes(prop)
27
+ };
28
+ var WebAppBodyRoot = styled(FlexGrowCol, {
29
+ ...defaultStyledOptions,
30
+ name: WebAppBodyName,
31
+ slot: "Root"
32
+ })(({ spacing, theme, mobileScrollingBreakpoint = "sm", variant }) => {
33
+ const scrollable = variant === "scrollable";
34
+ return theme.unstable_sx({
35
+ alignItems: "stretch",
36
+ gap: 1,
37
+ justifyContent: "flex-start",
38
+ overflowX: "visible",
39
+ overflowY: scrollable ? "scroll" : "hidden",
40
+ paddingY: spacing,
41
+ [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
42
+ overflowY: "scroll"
43
+ }
44
+ });
30
45
  });
46
+ var WebAppBodyBreadcrumb = styled(FlexRow, {
47
+ ...defaultStyledOptions,
48
+ name: WebAppBodyName,
49
+ slot: "Breadcrumb"
50
+ })(
51
+ ({ theme, disableBreadcrumbGutter, spacing }) => theme.unstable_sx({
52
+ justifyContent: "start",
53
+ marginX: disableBreadcrumbGutter ? 0 : spacing
54
+ })
55
+ );
56
+ var WebAppBodyScrollableWrapper = styled(FlexGrowCol, {
57
+ name: WebAppBodyName,
58
+ slot: "ScrollableWrapper"
59
+ })(() => ({
60
+ alignItems: "stretch"
61
+ }));
62
+ var WebAppBodyScrollable = styled(FlexGrowCol, {
63
+ ...defaultStyledOptions,
64
+ name: WebAppBodyName,
65
+ slot: "Scrollable"
66
+ })(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
67
+ const props = variant === "scrollable" ? scrollableContent : fixedContent;
68
+ return {
69
+ ...props,
70
+ alignItems: "stretch",
71
+ justifyContent: "start",
72
+ [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
73
+ inset: "unset",
74
+ position: "relative"
75
+ }
76
+ };
77
+ });
78
+ var WebAppBody = ({
79
+ children,
80
+ breadcrumbs,
81
+ disableBreadcrumbGutter,
82
+ mobileScrollingBreakpoint,
83
+ spacing = 1,
84
+ variant,
85
+ ...props
86
+ }) => {
87
+ return /* @__PURE__ */ jsxs(WebAppBodyRoot, { mobileScrollingBreakpoint, spacing, variant, ...props, children: [
88
+ breadcrumbs ? /* @__PURE__ */ jsx(WebAppBodyBreadcrumb, { disableBreadcrumbGutter, spacing, children: breadcrumbs }) : null,
89
+ /* @__PURE__ */ jsx(WebAppBodyScrollableWrapper, { children: /* @__PURE__ */ jsx(WebAppBodyScrollable, { mobileScrollingBreakpoint, variant, children }) })
90
+ ] });
91
+ };
92
+
93
+ // src/components/Chrome.tsx
94
+ import { Divider, Paper } from "@mui/material";
95
+ import { FlexCol, FlexGrowCol as FlexGrowCol3, FlexGrowRow } from "@xylabs/react-flexbox";
96
+ import { ApplicationAppBar, SystemToolbar } from "@xyo-network/react-appbar";
97
+ import { Footer } from "@xyo-network/react-footer";
98
+ import { ErrorBoundary } from "@xyo-network/react-shared";
99
+ import { forwardRef } from "react";
100
+ import { Helmet as Helmet2 } from "react-helmet";
101
+
102
+ // src/components/ErrorPage.tsx
103
+ import { ButtonEx } from "@xylabs/react-button";
104
+
105
+ // src/components/Page.tsx
106
+ import { Container, styled as styled2 } from "@mui/material";
107
+ import { useAsyncEffect } from "@xylabs/react-async-effect";
108
+ import { FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
109
+ import { useUserEvents } from "@xylabs/react-pixel";
110
+ import { Helmet } from "react-helmet";
111
+ import { useLocation } from "react-router-dom";
112
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
113
+ var WebAppPageRoot = styled2(FlexGrowCol2, {
114
+ name: "WebAppPage",
115
+ shouldForwardProp: (propName) => propName !== "mobileScrollingBreakpoint" && propName !== "variant",
116
+ slot: "Root"
117
+ })(({ theme, mobileScrollingBreakpoint = "sm", variant }) => {
118
+ const props = variant === "scrollable" ? scrollableWrap : fixedWrap;
119
+ return {
120
+ ...props,
121
+ alignItems: "stretch",
122
+ justifyContent: "start",
123
+ maxWidth: "100vw",
124
+ [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
125
+ inset: 0,
126
+ position: "absolute"
127
+ }
128
+ };
129
+ });
130
+ var WebAppPage = ({
131
+ disableGutters,
132
+ disableBreadcrumbGutter,
133
+ title,
134
+ container,
135
+ children,
136
+ breadcrumbs,
137
+ mobileScrollingBreakpoint,
138
+ variant = "scrollable",
139
+ ...props
140
+ }) => {
141
+ const userEvents = useUserEvents();
142
+ const { pathname } = useLocation();
143
+ useAsyncEffect(
144
+ // eslint-disable-next-line react-hooks/exhaustive-deps
145
+ async () => {
146
+ await (userEvents == null ? void 0 : userEvents.viewContent({ name: title ?? "NodeBasePage", path: location.pathname }));
147
+ },
148
+ [pathname, title, userEvents]
149
+ );
150
+ return /* @__PURE__ */ jsxs2(WebAppPageRoot, { mobileScrollingBreakpoint, variant, ...props, children: [
151
+ /* @__PURE__ */ jsx2(Helmet, { title }),
152
+ container && container !== "none" ? /* @__PURE__ */ jsx2(
153
+ Container,
154
+ {
155
+ disableGutters,
156
+ style: { alignItems: "stretch", display: "flex", flexDirection: "column", flexGrow: 1, justifyContent: "flex-start" },
157
+ maxWidth: container,
158
+ children: /* @__PURE__ */ jsx2(
159
+ WebAppBody,
160
+ {
161
+ disableBreadcrumbGutter,
162
+ breadcrumbs,
163
+ mobileScrollingBreakpoint,
164
+ variant,
165
+ ...props,
166
+ children
167
+ }
168
+ )
169
+ }
170
+ ) : /* @__PURE__ */ jsx2(
171
+ WebAppBody,
172
+ {
173
+ disableBreadcrumbGutter,
174
+ breadcrumbs,
175
+ mobileScrollingBreakpoint,
176
+ paddingX: disableGutters ? 0 : 1,
177
+ variant,
178
+ ...props,
179
+ children
180
+ }
181
+ )
182
+ ] });
183
+ };
184
+ var FlexPage = WebAppPage;
185
+
186
+ // src/components/ErrorPage.tsx
187
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
188
+ var WebAppErrorPage = ({ error, ...props }) => /* @__PURE__ */ jsxs3(WebAppPage, { title: "Oops! Something went wrong", ...props, children: [
189
+ /* @__PURE__ */ jsx3("h1", { children: "Oops! Something went wrong!" }),
190
+ /* @__PURE__ */ jsx3("p", { children: `${error}` }),
191
+ /* @__PURE__ */ jsx3(ButtonEx, { href: "/", variant: "contained", children: "Homepage" })
192
+ ] });
193
+ var ErrorPage = WebAppErrorPage;
194
+
195
+ // src/components/Chrome.tsx
196
+ import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
197
+ var WebAppChrome = forwardRef(
198
+ ({ appName, appbar, children, errorPage, footer, footerElevation = 4, menuItems, navigationType = "menu", ...props }, ref) => {
199
+ return /* @__PURE__ */ jsxs4(FlexCol, { id: "web-chrome-flex", alignItems: "stretch", overflow: "hidden", height: "100vh", ref, ...props, children: [
200
+ /* @__PURE__ */ jsx4(Helmet2, { defaultTitle: appName, titleTemplate: `%s | ${appName}`, children: /* @__PURE__ */ jsx4("meta", { content: "website", property: "og:type" }) }),
201
+ appbar ?? /* @__PURE__ */ jsx4(ApplicationAppBar, { systemToolbar: /* @__PURE__ */ jsx4(SystemToolbar, { menuItems: navigationType === "menu" ? menuItems : void 0 }) }),
202
+ /* @__PURE__ */ jsxs4(FlexGrowRow, { id: "sidebar-nav-flex", overflow: "hidden", alignItems: "stretch", children: [
203
+ navigationType !== "menu" ? /* @__PURE__ */ jsxs4(Fragment, { children: [
204
+ menuItems,
205
+ /* @__PURE__ */ jsx4(Divider, { orientation: "vertical" })
206
+ ] }) : null,
207
+ /* @__PURE__ */ jsx4(FlexGrowCol3, { id: "main-flex", justifyContent: "flex-start", alignItems: "stretch", children: /* @__PURE__ */ jsx4(
208
+ ErrorBoundary,
209
+ {
210
+ fallbackWithError: (error) => {
211
+ return errorPage ?? /* @__PURE__ */ jsx4(WebAppErrorPage, { error });
212
+ },
213
+ children
214
+ }
215
+ ) })
216
+ ] }),
217
+ /* @__PURE__ */ jsx4(FlexCol, { id: "footer-flex", alignItems: "stretch", children: /* @__PURE__ */ jsx4(Paper, { elevation: footerElevation, square: true, children: footer ?? /* @__PURE__ */ jsx4(Footer, { dynamicHeight: true }) }) })
218
+ ] });
219
+ }
220
+ );
221
+ WebAppChrome.displayName = "WebAppChrome";
222
+
223
+ // src/components/NotFoundPage/Page.tsx
224
+ import { NotFound } from "@xyo-network/react-shared";
225
+ import { jsx as jsx5 } from "react/jsx-runtime";
226
+ var WebAppNotFoundPage = ({ title, ...props }) => /* @__PURE__ */ jsx5(WebAppPage, { title: title ?? "Sorry! Page Not Found", ...props, children: /* @__PURE__ */ jsx5(NotFound, {}) });
227
+ var NotFoundPage = WebAppNotFoundPage;
228
+ export {
229
+ ErrorPage,
230
+ FlexPage,
231
+ NotFoundPage,
232
+ WebAppBody,
233
+ WebAppChrome,
234
+ WebAppErrorPage,
235
+ WebAppNotFoundPage,
236
+ WebAppPage
237
+ };
31
238
  //# sourceMappingURL=index.js.map
@@ -1 +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":[]}
1
+ {"version":3,"sources":["../../../src/components/Body.tsx","../../../src/components/lib/cssValues.ts","../../../src/components/Chrome.tsx","../../../src/components/ErrorPage.tsx","../../../src/components/Page.tsx","../../../src/components/NotFoundPage/Page.tsx"],"sourcesContent":["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","import { Divider, Paper } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexGrowCol, FlexGrowRow } from '@xylabs/react-flexbox'\nimport { WebAppNavigationType } from '@xyo-network/react-app-settings'\nimport { ApplicationAppBar, SystemToolbar } from '@xyo-network/react-appbar'\nimport { Footer } from '@xyo-network/react-footer'\nimport { ErrorBoundary } from '@xyo-network/react-shared'\nimport { forwardRef, ReactNode } from 'react'\nimport { Helmet } from 'react-helmet'\n\nimport { WebAppErrorPage } from './ErrorPage'\n\nexport interface WebAppChromeProps extends FlexBoxProps {\n appName: string\n appbar?: ReactNode\n errorPage?: ReactNode\n footer?: ReactNode\n footerElevation?: number\n menuItems?: ReactNode\n navigationType?: WebAppNavigationType\n}\n\nexport const WebAppChrome = forwardRef<HTMLDivElement, WebAppChromeProps>(\n ({ appName, appbar, children, errorPage, footer, footerElevation = 4, menuItems, navigationType = 'menu', ...props }, ref) => {\n return (\n <FlexCol id=\"web-chrome-flex\" alignItems=\"stretch\" overflow=\"hidden\" height=\"100vh\" ref={ref} {...props}>\n <Helmet defaultTitle={appName} titleTemplate={`%s | ${appName}`}>\n <meta content=\"website\" property=\"og:type\" />\n </Helmet>\n {appbar ?? <ApplicationAppBar systemToolbar={<SystemToolbar menuItems={navigationType === 'menu' ? menuItems : undefined} />} />}\n <FlexGrowRow id=\"sidebar-nav-flex\" overflow=\"hidden\" alignItems=\"stretch\">\n {navigationType !== 'menu' ? (\n <>\n {menuItems}\n <Divider orientation=\"vertical\" />\n </>\n ) : null}\n <FlexGrowCol id=\"main-flex\" justifyContent=\"flex-start\" alignItems=\"stretch\">\n <ErrorBoundary\n fallbackWithError={(error) => {\n return errorPage ?? <WebAppErrorPage error={error} />\n }}\n >\n {children}\n </ErrorBoundary>\n </FlexGrowCol>\n </FlexGrowRow>\n <FlexCol id=\"footer-flex\" alignItems=\"stretch\">\n <Paper elevation={footerElevation} square>\n {footer ?? <Footer dynamicHeight />}\n </Paper>\n </FlexCol>\n </FlexCol>\n )\n },\n)\n\nWebAppChrome.displayName = 'WebAppChrome'\n","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 { 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,SAAqB,cAAc;AACnC,SAAuB,aAAa,eAAe;;;ACC5C,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC;AAAA,EAC9C,GAAG;AACL;AAEO,IAAM,eAA8B;AAAA,EACzC,GAAG;AACL;;;ADiEI,SAEI,KAFJ;AA9EJ,IAAM,iBAAiB;AACvB,IAAM,oBAAoB,CAAC,6BAA6B,WAAW,WAAW,yBAAyB;AACvG,IAAM,uBAAuB;AAAA,EAC3B,mBAAmB,CAAC,SAAiB,CAAC,kBAAkB,SAAS,IAAI;AACvE;AAEA,IAAM,iBAAiB,OAAO,aAAa;AAAA,EACzC,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AACR,CAAC,EAAmB,CAAC,EAAE,SAAS,OAAO,4BAA4B,MAAM,QAAQ,MAAM;AACrF,QAAM,aAAa,YAAY;AAC/B,SAAO,MAAM,YAAY;AAAA,IACvB,YAAY;AAAA,IACZ,KAAK;AAAA,IACL,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,WAAW,aAAa,WAAW;AAAA,IACnC,UAAU;AAAA,IACV,CAAC,MAAM,YAAY,KAAK,yBAAyB,CAAC,GAAG;AAAA,MACnD,WAAW;AAAA,IACb;AAAA,EACF,CAAC;AACH,CAAC;AAED,IAAM,uBAAuB,OAAO,SAAS;AAAA,EAC3C,GAAG;AAAA,EACH,MAAM;AAAA,EACN,MAAM;AACR,CAAC;AAAA,EAAmB,CAAC,EAAE,OAAO,yBAAyB,QAAQ,MAC7D,MAAM,YAAY;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,aAAY,YAAW;AAAA,WAClC,IACE;AAAA,QACJ,gBAAAA,KAACG,cAAA,EAAY,IAAG,aAAY,gBAAe,cAAa,YAAW,WACjE,0BAAAH;AAAA,UAAC;AAAA;AAAA,YACC,mBAAmB,CAAC,UAAU;AAC5B,qBAAO,aAAa,gBAAAA,KAAC,mBAAgB,OAAc;AAAA,YACrD;AAAA,YAEC;AAAA;AAAA,QACH,GACF;AAAA,SACF;AAAA,MACA,gBAAAA,KAAC,WAAQ,IAAG,eAAc,YAAW,WACnC,0BAAAA,KAAC,SAAM,WAAW,iBAAiB,QAAM,MACtC,oBAAU,gBAAAA,KAAC,UAAO,eAAa,MAAC,GACnC,GACF;AAAA,OACF;AAAA,EAEJ;AACF;AAEA,aAAa,cAAc;;;AGxD3B,SAAS,gBAAgB;AAMrB,gBAAAI,YAAA;AAFG,IAAM,qBAAgD,CAAC,EAAE,OAAO,GAAG,MAAM,MAC9E,gBAAAA,KAAC,cAAW,OAAO,SAAS,yBAA0B,GAAG,OACvD,0BAAAA,KAAC,YAAS,GACZ;AAIK,IAAM,eAAe;","names":["FlexGrowCol","Helmet","styled","FlexGrowCol","jsx","jsxs","styled","FlexGrowCol","jsx","jsxs","jsx","jsxs","Helmet","FlexGrowCol","jsx"]}
@@ -16,32 +16,35 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
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
19
+
20
+ // src/components/lib/cssValues.ts
21
+ var cssValues_exports = {};
22
+ __export(cssValues_exports, {
23
+ fixedContent: () => fixedContent,
24
+ fixedWrap: () => fixedWrap,
25
+ scrollableContent: () => scrollableContent,
26
+ scrollableWrap: () => scrollableWrap
23
27
  });
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"
28
+ module.exports = __toCommonJS(cssValues_exports);
29
+ var scrollableWrap = {
30
+ inset: 0,
31
+ position: "absolute"
36
32
  };
37
- const Template = () => {
38
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.NotFound, {});
33
+ var fixedWrap = {
34
+ inset: "unset",
35
+ position: "relative"
36
+ };
37
+ var scrollableContent = {
38
+ ...fixedWrap
39
+ };
40
+ var fixedContent = {
41
+ ...scrollableWrap
39
42
  };
40
- const Default = Template.bind({});
41
- Default.args = {};
42
- var Page_stories_default = StorybookEntry;
43
43
  // Annotate the CommonJS export names for ESM import in node:
44
44
  0 && (module.exports = {
45
- Default
45
+ fixedContent,
46
+ fixedWrap,
47
+ scrollableContent,
48
+ scrollableWrap
46
49
  });
47
- //# sourceMappingURL=Page.stories.js.map
50
+ //# sourceMappingURL=cssValues.cjs.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,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC;AAAA,EAC9C,GAAG;AACL;AAEO,IAAM,eAA8B;AAAA,EACzC,GAAG;AACL;","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"}
@@ -1,48 +1,22 @@
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 = {
1
+ // src/components/lib/cssValues.ts
2
+ var scrollableWrap = {
28
3
  inset: 0,
29
4
  position: "absolute"
30
5
  };
31
- const fixedWrap = {
6
+ var fixedWrap = {
32
7
  inset: "unset",
33
8
  position: "relative"
34
9
  };
35
- const scrollableContent = {
10
+ var scrollableContent = {
36
11
  ...fixedWrap
37
12
  };
38
- const fixedContent = {
13
+ var fixedContent = {
39
14
  ...scrollableWrap
40
15
  };
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
16
+ export {
43
17
  fixedContent,
44
18
  fixedWrap,
45
19
  scrollableContent,
46
20
  scrollableWrap
47
- });
21
+ };
48
22
  //# sourceMappingURL=cssValues.js.map
@@ -1 +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":[]}
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":";AAEO,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC;AAAA,EAC9C,GAAG;AACL;AAEO,IAAM,eAA8B;AAAA,EACzC,GAAG;AACL;","names":[]}
@@ -0,0 +1,52 @@
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/lib/index.ts
21
+ var lib_exports = {};
22
+ __export(lib_exports, {
23
+ fixedContent: () => fixedContent,
24
+ fixedWrap: () => fixedWrap,
25
+ scrollableContent: () => scrollableContent,
26
+ scrollableWrap: () => scrollableWrap
27
+ });
28
+ module.exports = __toCommonJS(lib_exports);
29
+
30
+ // src/components/lib/cssValues.ts
31
+ var scrollableWrap = {
32
+ inset: 0,
33
+ position: "absolute"
34
+ };
35
+ var fixedWrap = {
36
+ inset: "unset",
37
+ position: "relative"
38
+ };
39
+ var scrollableContent = {
40
+ ...fixedWrap
41
+ };
42
+ var fixedContent = {
43
+ ...scrollableWrap
44
+ };
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ fixedContent,
48
+ fixedWrap,
49
+ scrollableContent,
50
+ scrollableWrap
51
+ });
52
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/lib/index.ts","../../../../src/components/lib/cssValues.ts"],"sourcesContent":["export * from './cssValues'\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;AAAA;;;ACEO,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC;AAAA,EAC9C,GAAG;AACL;AAEO,IAAM,eAA8B;AAAA,EACzC,GAAG;AACL;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from './cssValues';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -1,23 +1,22 @@
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;
1
+ // src/components/lib/cssValues.ts
2
+ var scrollableWrap = {
3
+ inset: 0,
4
+ position: "absolute"
5
+ };
6
+ var fixedWrap = {
7
+ inset: "unset",
8
+ position: "relative"
9
+ };
10
+ var scrollableContent = {
11
+ ...fixedWrap
12
+ };
13
+ var fixedContent = {
14
+ ...scrollableWrap
15
+ };
16
+ export {
17
+ fixedContent,
18
+ fixedWrap,
19
+ scrollableContent,
20
+ scrollableWrap
13
21
  };
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 lib_exports = {};
17
- module.exports = __toCommonJS(lib_exports);
18
- __reExport(lib_exports, require("./cssValues"), module.exports);
19
- // Annotate the CommonJS export names for ESM import in node:
20
- 0 && (module.exports = {
21
- ...require("./cssValues")
22
- });
23
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/lib/index.ts"],"sourcesContent":["export * from './cssValues'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,wBAAd;","names":[]}
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":";AAEO,IAAM,iBAAgC;AAAA,EAC3C,OAAO;AAAA,EACP,UAAU;AACZ;AAEO,IAAM,YAA2B;AAAA,EACtC,OAAO;AAAA,EACP,UAAU;AACZ;AAGO,IAAM,oBAAmC;AAAA,EAC9C,GAAG;AACL;AAEO,IAAM,eAA8B;AAAA,EACzC,GAAG;AACL;","names":[]}