@xyo-network/react-webapp 2.62.3 → 2.63.1

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 (102) hide show
  1. package/dist/cjs/components/Body.js +50 -0
  2. package/dist/cjs/components/Body.js.map +1 -0
  3. package/dist/cjs/components/Chrome.js +21 -0
  4. package/dist/cjs/components/Chrome.js.map +1 -0
  5. package/dist/cjs/components/ErrorPage.js +15 -0
  6. package/dist/cjs/components/ErrorPage.js.map +1 -0
  7. package/dist/cjs/components/NotFoundPage/Page.js +15 -0
  8. package/dist/cjs/components/NotFoundPage/Page.js.map +1 -0
  9. package/dist/cjs/components/NotFoundPage/index.js +5 -0
  10. package/dist/cjs/components/NotFoundPage/index.js.map +1 -0
  11. package/dist/cjs/components/Page.js +39 -0
  12. package/dist/cjs/components/Page.js.map +1 -0
  13. package/dist/cjs/components/index.js +9 -0
  14. package/dist/cjs/components/index.js.map +1 -0
  15. package/dist/cjs/components/lib/cssValues.js +15 -0
  16. package/dist/cjs/components/lib/cssValues.js.map +1 -0
  17. package/dist/cjs/components/lib/index.js +5 -0
  18. package/dist/cjs/components/lib/index.js.map +1 -0
  19. package/dist/cjs/index.js +5 -0
  20. package/dist/cjs/index.js.map +1 -0
  21. package/dist/docs.json +39 -39
  22. package/dist/esm/components/Body.js +61 -0
  23. package/dist/esm/components/Body.js.map +1 -0
  24. package/dist/esm/components/Chrome.js +16 -0
  25. package/dist/esm/components/Chrome.js.map +1 -0
  26. package/dist/esm/components/ErrorPage.js +7 -0
  27. package/dist/esm/components/ErrorPage.js.map +1 -0
  28. package/dist/esm/components/NotFoundPage/Page.js +7 -0
  29. package/dist/esm/components/NotFoundPage/Page.js.map +1 -0
  30. package/dist/esm/components/NotFoundPage/index.js +2 -0
  31. package/dist/esm/components/NotFoundPage/index.js.map +1 -0
  32. package/dist/esm/components/Page.js +39 -0
  33. package/dist/esm/components/Page.js.map +1 -0
  34. package/dist/{components/index.d.mts → esm/components/index.js} +1 -1
  35. package/dist/esm/components/index.js.map +1 -0
  36. package/dist/esm/components/lib/cssValues.js +16 -0
  37. package/dist/esm/components/lib/cssValues.js.map +1 -0
  38. package/dist/esm/components/lib/index.js +2 -0
  39. package/dist/esm/components/lib/index.js.map +1 -0
  40. package/dist/esm/index.js +2 -0
  41. package/dist/esm/index.js.map +1 -0
  42. package/dist/types/components/Body.d.ts.map +1 -0
  43. package/dist/types/components/Chrome.d.ts.map +1 -0
  44. package/dist/types/components/ErrorPage.d.ts.map +1 -0
  45. package/dist/types/components/NotFoundPage/Page.d.ts.map +1 -0
  46. package/dist/types/components/NotFoundPage/index.d.ts.map +1 -0
  47. package/dist/types/components/Page.d.ts.map +1 -0
  48. package/dist/types/components/index.d.ts.map +1 -0
  49. package/dist/types/components/lib/cssValues.d.ts.map +1 -0
  50. package/dist/types/components/lib/index.d.ts.map +1 -0
  51. package/dist/{index.d.ts.map → types/index.d.ts.map} +1 -1
  52. package/package.json +25 -33
  53. package/dist/components/Body.d.mts +0 -12
  54. package/dist/components/Body.d.mts.map +0 -1
  55. package/dist/components/Body.d.ts.map +0 -1
  56. package/dist/components/Chrome.d.mts +0 -14
  57. package/dist/components/Chrome.d.mts.map +0 -1
  58. package/dist/components/Chrome.d.ts.map +0 -1
  59. package/dist/components/Chrome.stories.d.mts +0 -8
  60. package/dist/components/Chrome.stories.d.mts.map +0 -1
  61. package/dist/components/Chrome.stories.d.ts +0 -8
  62. package/dist/components/Chrome.stories.d.ts.map +0 -1
  63. package/dist/components/ErrorPage.d.mts +0 -9
  64. package/dist/components/ErrorPage.d.mts.map +0 -1
  65. package/dist/components/ErrorPage.d.ts.map +0 -1
  66. package/dist/components/NotFoundPage/Page.d.mts +0 -6
  67. package/dist/components/NotFoundPage/Page.d.mts.map +0 -1
  68. package/dist/components/NotFoundPage/Page.d.ts.map +0 -1
  69. package/dist/components/NotFoundPage/Page.stories.d.mts +0 -5
  70. package/dist/components/NotFoundPage/Page.stories.d.mts.map +0 -1
  71. package/dist/components/NotFoundPage/Page.stories.d.ts +0 -5
  72. package/dist/components/NotFoundPage/Page.stories.d.ts.map +0 -1
  73. package/dist/components/NotFoundPage/index.d.mts +0 -2
  74. package/dist/components/NotFoundPage/index.d.mts.map +0 -1
  75. package/dist/components/NotFoundPage/index.d.ts.map +0 -1
  76. package/dist/components/Page.d.mts +0 -13
  77. package/dist/components/Page.d.mts.map +0 -1
  78. package/dist/components/Page.d.ts.map +0 -1
  79. package/dist/components/index.d.mts.map +0 -1
  80. package/dist/components/index.d.ts.map +0 -1
  81. package/dist/components/lib/cssValues.d.mts +0 -6
  82. package/dist/components/lib/cssValues.d.mts.map +0 -1
  83. package/dist/components/lib/cssValues.d.ts.map +0 -1
  84. package/dist/components/lib/index.d.mts +0 -2
  85. package/dist/components/lib/index.d.mts.map +0 -1
  86. package/dist/components/lib/index.d.ts.map +0 -1
  87. package/dist/index.d.mts +0 -2
  88. package/dist/index.d.mts.map +0 -1
  89. package/dist/index.js +0 -272
  90. package/dist/index.js.map +0 -1
  91. package/dist/index.mjs +0 -238
  92. package/dist/index.mjs.map +0 -1
  93. /package/dist/{components → types/components}/Body.d.ts +0 -0
  94. /package/dist/{components → types/components}/Chrome.d.ts +0 -0
  95. /package/dist/{components → types/components}/ErrorPage.d.ts +0 -0
  96. /package/dist/{components → types/components}/NotFoundPage/Page.d.ts +0 -0
  97. /package/dist/{components → types/components}/NotFoundPage/index.d.ts +0 -0
  98. /package/dist/{components → types/components}/Page.d.ts +0 -0
  99. /package/dist/{components → types/components}/index.d.ts +0 -0
  100. /package/dist/{components → types/components}/lib/cssValues.d.ts +0 -0
  101. /package/dist/{components → types/components}/lib/index.d.ts +0 -0
  102. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
@@ -0,0 +1,61 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { styled } from '@mui/material';
3
+ import { FlexGrowCol, FlexRow } from '@xylabs/react-flexbox';
4
+ import { fixedContent, scrollableContent } from './lib';
5
+ const WebAppBodyName = 'WebAppBody';
6
+ const propsNotForwarded = ['mobileScrollingBreakpoint', 'variant', 'spacing', 'disableBreadcrumbGutter'];
7
+ const defaultStyledOptions = {
8
+ shouldForwardProp: (prop) => !propsNotForwarded.includes(prop),
9
+ };
10
+ const WebAppBodyRoot = styled(FlexGrowCol, {
11
+ ...defaultStyledOptions,
12
+ name: WebAppBodyName,
13
+ slot: 'Root',
14
+ })(({ spacing, theme, mobileScrollingBreakpoint = 'sm', variant }) => {
15
+ const scrollable = variant === 'scrollable';
16
+ return theme.unstable_sx({
17
+ alignItems: 'stretch',
18
+ gap: 1,
19
+ justifyContent: 'flex-start',
20
+ overflowX: 'visible',
21
+ overflowY: scrollable ? 'scroll' : 'hidden',
22
+ paddingY: spacing,
23
+ [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
24
+ overflowY: 'scroll',
25
+ },
26
+ });
27
+ });
28
+ const WebAppBodyBreadcrumb = styled(FlexRow, {
29
+ ...defaultStyledOptions,
30
+ name: WebAppBodyName,
31
+ slot: 'Breadcrumb',
32
+ })(({ theme, disableBreadcrumbGutter, spacing }) => theme.unstable_sx({
33
+ justifyContent: 'start',
34
+ marginX: disableBreadcrumbGutter ? 0 : spacing,
35
+ }));
36
+ const WebAppBodyScrollableWrapper = styled(FlexGrowCol, {
37
+ name: WebAppBodyName,
38
+ slot: 'ScrollableWrapper',
39
+ })(() => ({
40
+ alignItems: 'stretch',
41
+ }));
42
+ const WebAppBodyScrollable = styled(FlexGrowCol, {
43
+ ...defaultStyledOptions,
44
+ name: WebAppBodyName,
45
+ slot: 'Scrollable',
46
+ })(({ theme, mobileScrollingBreakpoint = 'sm', variant }) => {
47
+ const props = variant === 'scrollable' ? scrollableContent : fixedContent;
48
+ return {
49
+ ...props,
50
+ alignItems: 'stretch',
51
+ justifyContent: 'start',
52
+ [theme.breakpoints.down(mobileScrollingBreakpoint)]: {
53
+ inset: 'unset',
54
+ position: 'relative',
55
+ },
56
+ };
57
+ });
58
+ export const WebAppBody = ({ children, breadcrumbs, disableBreadcrumbGutter, mobileScrollingBreakpoint, spacing = 1, variant, ...props }) => {
59
+ return (_jsxs(WebAppBodyRoot, { mobileScrollingBreakpoint: mobileScrollingBreakpoint, spacing: spacing, variant: variant, ...props, children: [breadcrumbs ? (_jsx(WebAppBodyBreadcrumb, { disableBreadcrumbGutter: disableBreadcrumbGutter, spacing: spacing, children: breadcrumbs })) : null, _jsx(WebAppBodyScrollableWrapper, { children: _jsx(WebAppBodyScrollable, { mobileScrollingBreakpoint: mobileScrollingBreakpoint, variant: variant, children: children }) })] }));
60
+ };
61
+ //# sourceMappingURL=Body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../src/components/Body.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,MAAM,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAgB,WAAW,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAG1E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEvD,MAAM,cAAc,GAAG,YAAY,CAAA;AACnC,MAAM,iBAAiB,GAAG,CAAC,2BAA2B,EAAE,SAAS,EAAE,SAAS,EAAE,yBAAyB,CAAC,CAAA;AACxG,MAAM,oBAAoB,GAAG;IAC3B,iBAAiB,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC;CACvE,CAAA;AAED,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,EAAE;IACzC,GAAG,oBAAoB;IACvB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,MAAM;CACb,CAAC,CAAkB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,yBAAyB,GAAG,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IACpF,MAAM,UAAU,GAAG,OAAO,KAAK,YAAY,CAAA;IAC3C,OAAO,KAAK,C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O;QACL,GAAG,KAAK;QACR,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,OAAO;QACvB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,EAAE;YACnD,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;SACrB;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAUF,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,QAAQ,EACR,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,OAAO,GAAG,CAAC,EACX,OAAO,EACP,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,MAAC,cAAc,IAAC,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,KAAM,KAAK,aAChH,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,oBAAoB,IAAC,uBAAuB,EAAE,uBAAuB,EAAE,OAAO,EAAE,OAAO,YACrF,WAAW,GACS,CACxB,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,2BAA2B,cAC1B,KAAC,oBAAoB,IAAC,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,EAAE,OAAO,YACzF,QAAQ,GACY,GACK,IACf,CAClB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Divider, Paper } from '@mui/material';
3
+ import { FlexCol, FlexGrowCol, FlexGrowRow } from '@xylabs/react-flexbox';
4
+ import { ApplicationAppBar, SystemToolbar } from '@xyo-network/react-appbar';
5
+ import { Footer } from '@xyo-network/react-footer';
6
+ import { ErrorBoundary } from '@xyo-network/react-shared';
7
+ import { forwardRef } from 'react';
8
+ import { Helmet } from 'react-helmet';
9
+ import { WebAppErrorPage } from './ErrorPage';
10
+ export const WebAppChrome = forwardRef(({ appName, appbar, children, errorPage, footer, footerElevation = 4, menuItems, navigationType = 'menu', ...props }, ref) => {
11
+ return (_jsxs(FlexCol, { id: "web-chrome-flex", alignItems: "stretch", overflow: "hidden", height: "100vh", ref: ref, ...props, children: [_jsx(Helmet, { defaultTitle: appName, titleTemplate: `%s | ${appName}`, children: _jsx("meta", { content: "website", property: "og:type" }) }), appbar ?? _jsx(ApplicationAppBar, { systemToolbar: _jsx(SystemToolbar, { menuItems: navigationType === 'menu' ? menuItems : undefined }) }), _jsxs(FlexGrowRow, { id: "sidebar-nav-flex", overflow: "hidden", alignItems: "stretch", children: [navigationType !== 'menu' ? (_jsxs(_Fragment, { children: [menuItems, _jsx(Divider, { orientation: "vertical" })] })) : null, _jsx(FlexGrowCol, { id: "main-flex", justifyContent: "flex-start", alignItems: "stretch", children: _jsx(ErrorBoundary, { fallbackWithError: (error) => {
12
+ return errorPage ?? _jsx(WebAppErrorPage, { error: error });
13
+ }, children: children }) })] }), _jsx(FlexCol, { id: "footer-flex", alignItems: "stretch", children: _jsx(Paper, { elevation: footerElevation, square: true, children: footer ?? _jsx(Footer, { dynamicHeight: true }) }) })] }));
14
+ });
15
+ WebAppChrome.displayName = 'WebAppChrome';
16
+ //# sourceMappingURL=Chrome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chrome.js","sourceRoot":"","sources":["../../../src/components/Chrome.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAgB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEvF,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAa,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;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QAAQ,GACK,GACJ,IACF,EACd,KAAC,OAAO,IAAC,EAAE,EAAC,aAAa,EAAC,UAAU,EAAC,SAAS,YAC5C,KAAC,KAAK,IAAC,SAAS,EAAE,eAAe,EAAE,MAAM,kBACtC,MAAM,IAAI,KAAC,MAAM,IAAC,aAAa,SAAG,GAC7B,GACA,IACF,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ButtonEx } from '@xylabs/react-button';
3
+ import { WebAppPage } from './Page';
4
+ export const WebAppErrorPage = ({ error, ...props }) => (_jsxs(WebAppPage, { title: "Oops! Something went wrong", ...props, children: [_jsx("h1", { children: "Oops! Something went wrong!" }), _jsx("p", { children: `${error}` }), _jsx(ButtonEx, { href: "/", variant: "contained", children: "Homepage" })] }));
5
+ /** @deprecated use WebAppErrorPage instead */
6
+ export const ErrorPage = WebAppErrorPage;
7
+ //# sourceMappingURL=ErrorPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorPage.js","sourceRoot":"","sources":["../../../src/components/ErrorPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,UAAU,EAAmB,MAAM,QAAQ,CAAA;AAMpD,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACtF,MAAC,UAAU,IAAC,KAAK,EAAC,4BAA4B,KAAK,KAAK,aACtD,uDAAoC,EACpC,sBAAI,GAAG,KAAK,EAAE,GAAK,EACnB,KAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAC,WAAW,yBAE3B,IACA,CACd,CAAA;AAED,8CAA8C;AAC9C,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { NotFound } from '@xyo-network/react-shared';
3
+ import { WebAppPage } from '../Page';
4
+ export const WebAppNotFoundPage = ({ title, ...props }) => (_jsx(WebAppPage, { title: title ?? 'Sorry! Page Not Found', ...props, children: _jsx(NotFound, {}) }));
5
+ /** @deprecated use WebAppNotFoundPage instead */
6
+ export const NotFoundPage = WebAppNotFoundPage;
7
+ //# sourceMappingURL=Page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../../src/components/NotFoundPage/Page.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAmB,MAAM,SAAS,CAAA;AAErD,MAAM,CAAC,MAAM,kBAAkB,GAA8B,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACpF,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,IAAI,uBAAuB,KAAM,KAAK,YAC5D,KAAC,QAAQ,KAAG,GACD,CACd,CAAA;AAED,kDAAkD;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './Page';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NotFoundPage/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,39 @@
1
+ import { jsx as _jsx, jsxs as _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
+ export const WebAppPage = ({ disableGutters, disableBreadcrumbGutter, title, container, children, breadcrumbs, mobileScrollingBreakpoint, variant = 'scrollable', ...props }) => {
28
+ const userEvents = useUserEvents();
29
+ const { pathname } = useLocation();
30
+ useAsyncEffect(
31
+ // eslint-disable-next-line react-hooks/exhaustive-deps
32
+ async () => {
33
+ await userEvents?.viewContent({ name: title ?? 'NodeBasePage', path: location.pathname });
34
+ }, [pathname, title, userEvents]);
35
+ return (_jsxs(WebAppPageRoot, { mobileScrollingBreakpoint: mobileScrollingBreakpoint, variant: variant, ...props, children: [_jsx(Helmet, { title: title }), container && container !== 'none' ? (_jsx(Container, { disableGutters: disableGutters, style: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', flexGrow: 1, justifyContent: 'flex-start' }, maxWidth: container, children: _jsx(WebAppBody, { disableBreadcrumbGutter: disableBreadcrumbGutter, breadcrumbs: breadcrumbs, mobileScrollingBreakpoint: mobileScrollingBreakpoint, variant: variant, ...props, children: children }) })) : (_jsx(WebAppBody, { disableBreadcrumbGutter: disableBreadcrumbGutter, breadcrumbs: breadcrumbs, mobileScrollingBreakpoint: mobileScrollingBreakpoint, paddingX: disableGutters ? 0 : 1, variant: variant, ...props, children: children }))] }));
36
+ };
37
+ /** @deprecated use WebAppPagePage instead */
38
+ export const FlexPage = WebApp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AC,CAAC,CAAC,CAAC,CAAC,EAChC,OAAO,EAAE,OAAO,KACZ,KAAK,YAER,QAAQ,GACE,CACd,IACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,6CAA6C;AAC7C,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAA"}
@@ -3,4 +3,4 @@ export * from './Chrome';
3
3
  export * from './ErrorPage';
4
4
  export * from './NotFoundPage';
5
5
  export * from './Page';
6
- //# sourceMappingURL=index.d.ts.map
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","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,16 @@
1
+ export const scrollableWrap = {
2
+ inset: 0,
3
+ position: 'absolute',
4
+ };
5
+ export const fixedWrap = {
6
+ inset: 'unset',
7
+ position: 'relative',
8
+ };
9
+ // Making a scrollable vs fixed wrapper and content is an inversion of the wrap and content styles
10
+ export const scrollableContent = {
11
+ ...fixedWrap,
12
+ };
13
+ export const fixedContent = {
14
+ ...scrollableWrap,
15
+ };
16
+ //# sourceMappingURL=cssValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cssValues.js","sourceRoot":"","sources":["../../../../src/components/lib/cssValues.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAkB;IAC3C,KAAK,EAAE,CAAC;IACR,QAAQ,EAAE,UAAU;CACZ,CAAA;AAEV,MAAM,CAAC,MAAM,SAAS,GAAkB;IACtC,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAA;AAEV,kGAAkG;AAClG,MAAM,CAAC,MAAM,iBAAiB,GAAkB;IAC9C,GAAG,SAAS;CACJ,CAAA;AAEV,MAAM,CAAC,MAAM,YAAY,GAAkB;IACzC,GAAG,cAAc;CACT,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './cssValues';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../src/components/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,YAAY,EAAwB,MAAM,uBAAuB,CAAA;AAC1E,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAgExC,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,yBAAyB,CAAC,EAAE,UAAU,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAA;CACjC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuBhD,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chrome.d.ts","sourceRoot":"","sources":["../../../src/components/Chrome.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqC,MAAM,uBAAuB,CAAA;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAItE,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAK7C,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,cAAc,CAAC,EAAE,oBAAoB,CAAA;CACtC;AAED,eAAO,MAAM,YAAY,8GAiCxB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorPage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAQ1D,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,SAAS,0CAAkB,CAAA"}
@@ -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 @@
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":"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 @@
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":"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 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
package/package.json CHANGED
@@ -10,11 +10,11 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-async-effect": "~2.18.4",
14
- "@xyo-network/react-app-settings": "~2.62.3",
15
- "@xyo-network/react-appbar": "~2.62.3",
16
- "@xyo-network/react-footer": "~2.62.3",
17
- "@xyo-network/react-shared": "~2.62.3"
13
+ "@xylabs/react-async-effect": "~2.19.1",
14
+ "@xyo-network/react-app-settings": "~2.63.1",
15
+ "@xyo-network/react-appbar": "~2.63.1",
16
+ "@xyo-network/react-footer": "~2.63.1",
17
+ "@xyo-network/react-shared": "~2.63.1"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@mui/icons-material": "^5",
@@ -36,46 +36,38 @@
36
36
  "@storybook/react": "^7.4.3",
37
37
  "@types/react-helmet": "^6.1.6",
38
38
  "@xylabs/pixel": "^1.4.14",
39
- "@xylabs/react-button": "~2.18.4",
40
- "@xylabs/react-flexbox": "~2.18.4",
41
- "@xylabs/react-link": "~2.18.4",
42
- "@xylabs/react-pixel": "~2.18.4",
43
- "@xylabs/react-shared": "~2.18.4",
44
- "@xylabs/ts-scripts-yarn3": "^3.0.28",
45
- "@xylabs/tsconfig-react": "^3.0.28",
39
+ "@xylabs/react-button": "~2.19.1",
40
+ "@xylabs/react-flexbox": "~2.19.1",
41
+ "@xylabs/react-link": "~2.19.1",
42
+ "@xylabs/react-pixel": "~2.19.1",
43
+ "@xylabs/react-shared": "~2.19.1",
44
+ "@xylabs/ts-scripts-yarn3": "^2.19.12",
45
+ "@xylabs/tsconfig-react": "^2.19.12",
46
46
  "axios": "^1.5.0",
47
47
  "typescript": "^5.2.2"
48
48
  },
49
49
  "description": "Common React library for all XYO projects that use React",
50
+ "browser": "dist/esm/index.js",
50
51
  "docs": "dist/docs.json",
51
52
  "exports": {
52
53
  ".": {
53
54
  "node": {
54
- "import": {
55
- "types": "./dist/index.d.mts",
56
- "default": "./dist/index.mjs"
57
- },
58
- "require": {
59
- "types": "./dist/index.d.ts",
60
- "default": "./dist/index.js"
61
- }
55
+ "import": "./dist/esm/index.js",
56
+ "require": "./dist/cjs/index.js"
62
57
  },
63
58
  "browser": {
64
- "import": {
65
- "types": "./dist/index.d.mts",
66
- "default": "./dist/index.mjs"
67
- },
68
- "require": {
69
- "types": "./dist/index.d.ts",
70
- "default": "./dist/index.js"
71
- }
59
+ "import": "./dist/esm/index.js",
60
+ "require": "./dist/cjs/index.js"
72
61
  },
73
- "default": "./dist/index.mjs"
62
+ "default": "./dist/esm/index.js"
63
+ },
64
+ "./dist/docs.json": {
65
+ "default": "./dist/docs.json"
74
66
  },
75
67
  "./package.json": "./package.json"
76
68
  },
77
- "main": "dist/index.js",
78
- "module": "dist/index.mjs",
69
+ "main": "dist/cjs/index.js",
70
+ "module": "dist/esm/index.js",
79
71
  "homepage": "https://xyo.network",
80
72
  "keywords": [
81
73
  "xyo",
@@ -96,6 +88,6 @@
96
88
  "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\""
97
89
  },
98
90
  "sideEffects": false,
99
- "types": "dist/index.d.ts",
100
- "version": "2.62.3"
91
+ "types": "dist/types/index.d.ts",
92
+ "version": "2.63.1"
101
93
  }
@@ -1,12 +0,0 @@
1
- import { Breakpoint } from '@mui/material';
2
- import { FlexBoxProps } from '@xylabs/react-flexbox';
3
- import React, { ReactNode } from 'react';
4
- export interface WebAppBodyProps extends FlexBoxProps {
5
- breadcrumbs?: ReactNode;
6
- disableBreadcrumbGutter?: boolean;
7
- mobileScrollingBreakpoint?: Breakpoint;
8
- spacing?: string | number;
9
- variant?: 'scrollable' | 'fixed';
10
- }
11
- export declare const WebAppBody: React.FC<WebAppBodyProps>;
12
- //# sourceMappingURL=Body.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../src/components/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,YAAY,EAAwB,MAAM,uBAAuB,CAAA;AAC1E,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAgExC,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,yBAAyB,CAAC,EAAE,UAAU,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAA;CACjC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuBhD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../src/components/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,YAAY,EAAwB,MAAM,uBAAuB,CAAA;AAC1E,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAgExC,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,yBAAyB,CAAC,EAAE,UAAU,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAA;CACjC;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuBhD,CAAA"}
@@ -1,14 +0,0 @@
1
- import { FlexBoxProps } from '@xylabs/react-flexbox';
2
- import { WebAppNavigationType } from '@xyo-network/react-app-settings';
3
- import { ReactNode } from 'react';
4
- export interface WebAppChromeProps extends FlexBoxProps {
5
- appName: string;
6
- appbar?: ReactNode;
7
- errorPage?: ReactNode;
8
- footer?: ReactNode;
9
- footerElevation?: number;
10
- menuItems?: ReactNode;
11
- navigationType?: WebAppNavigationType;
12
- }
13
- export declare const WebAppChrome: import("react").ForwardRefExoticComponent<WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
14
- //# sourceMappingURL=Chrome.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chrome.d.ts","sourceRoot":"","sources":["../../src/components/Chrome.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqC,MAAM,uBAAuB,CAAA;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAItE,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAK7C,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,cAAc,CAAC,EAAE,oBAAoB,CAAA;CACtC;AAED,eAAO,MAAM,YAAY,8GAiCxB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chrome.d.ts","sourceRoot":"","sources":["../../src/components/Chrome.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAqC,MAAM,uBAAuB,CAAA;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAItE,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAK7C,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,cAAc,CAAC,EAAE,oBAAoB,CAAA;CACtC;AAED,eAAO,MAAM,YAAY,8GAiCxB,CAAA"}
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
3
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
4
- declare const DefaultSideBar: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
5
- declare const WithFixedSizePage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
6
- export { Default, DefaultSideBar, WithFixedSizePage };
7
- export default StorybookEntry;
8
- //# sourceMappingURL=Chrome.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chrome.stories.d.ts","sourceRoot":"","sources":["../../src/components/Chrome.stories.tsx"],"names":[],"mappings":";AAWA,QAAA,MAAM,cAAc,yLASU,CAAA;AAuC9B,QAAA,MAAM,OAAO,qLAAoB,CAAA;AAGjC,QAAA,MAAM,cAAc,qLAAoB,CAAA;AAGxC,QAAA,MAAM,iBAAiB,qLAAoB,CAAA;AAG3C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAA;AAGrD,eAAe,cAAc,CAAA"}
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
3
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
4
- declare const DefaultSideBar: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
5
- declare const WithFixedSizePage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Chrome").WebAppChromeProps & import("react").RefAttributes<HTMLDivElement>>;
6
- export { Default, DefaultSideBar, WithFixedSizePage };
7
- export default StorybookEntry;
8
- //# sourceMappingURL=Chrome.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chrome.stories.d.ts","sourceRoot":"","sources":["../../src/components/Chrome.stories.tsx"],"names":[],"mappings":";AAWA,QAAA,MAAM,cAAc,yLASU,CAAA;AAuC9B,QAAA,MAAM,OAAO,qLAAoB,CAAA;AAGjC,QAAA,MAAM,cAAc,qLAAoB,CAAA;AAGxC,QAAA,MAAM,iBAAiB,qLAAoB,CAAA;AAG3C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAA;AAGrD,eAAe,cAAc,CAAA"}
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { WebAppPageProps } from './Page';
3
- export interface WebAppErrorPageProps extends WebAppPageProps {
4
- error?: Error;
5
- }
6
- export declare const WebAppErrorPage: React.FC<WebAppErrorPageProps>;
7
- /** @deprecated use WebAppErrorPage instead */
8
- export declare const ErrorPage: import("react").FC<WebAppErrorPageProps>;
9
- //# sourceMappingURL=ErrorPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/components/ErrorPage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAQ1D,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,SAAS,0CAAkB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/components/ErrorPage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAQ1D,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,SAAS,0CAAkB,CAAA"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@xylabs/react-flexbox").BusyBoxProps>;
2
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@xylabs/react-flexbox").BusyBoxProps>;
3
- export { Default };
4
- export default StorybookEntry;
5
- //# sourceMappingURL=Page.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Page.stories.d.ts","sourceRoot":"","sources":["../../../src/components/NotFoundPage/Page.stories.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,cAAc,iJASM,CAAA;AAM1B,QAAA,MAAM,OAAO,6IAAoB,CAAA;AAGjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
@@ -1,5 +0,0 @@
1
- declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@xylabs/react-flexbox").BusyBoxProps>;
2
- declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("@xylabs/react-flexbox").BusyBoxProps>;
3
- export { Default };
4
- export default StorybookEntry;
5
- //# sourceMappingURL=Page.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Page.stories.d.ts","sourceRoot":"","sources":["../../../src/components/NotFoundPage/Page.stories.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,cAAc,iJASM,CAAA;AAM1B,QAAA,MAAM,OAAO,6IAAoB,CAAA;AAGjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './Page';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NotFoundPage/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NotFoundPage/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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 +0,0 @@
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,2 +0,0 @@
1
- export * from './cssValues';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
package/dist/index.d.mts DELETED
@@ -1,2 +0,0 @@
1
- export * from './components';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}