@learningpool/ui 1.4.0-beta.2 → 1.4.0-beta.3
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/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +1 -1
- package/components/pages/ErrorPage/ErrorPage.d.ts +8 -0
- package/components/pages/ErrorPage/ErrorPage.js +27 -0
- package/components/pages/ErrorPage/ErrorPageStyles.d.ts +28 -0
- package/components/pages/ErrorPage/ErrorPageStyles.js +32 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
|
21
21
|
} | undefined;
|
|
22
22
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
|
|
23
23
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
24
|
-
}, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "
|
|
24
|
+
}, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
25
25
|
export declare const DrawerToggle: import("@emotion/styled").StyledComponent<{
|
|
26
26
|
children?: import("react").ReactNode;
|
|
27
27
|
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { LearningPoolLogo } from '../../../assets/Images';
|
|
14
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
15
|
+
import Typography from '@mui/material/Typography';
|
|
16
|
+
import { createTheme, ThemeProvider } from '@mui/material/styles';
|
|
17
|
+
import { StyledContainer, StyledBox, StyledLogoBox } from './ErrorPageStyles';
|
|
18
|
+
export default function ErrorPage(props) {
|
|
19
|
+
var errorCode = props.errorCode, errorTitle = props.errorTitle, errorMessage = props.errorMessage;
|
|
20
|
+
var theme = createTheme();
|
|
21
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(StyledContainer, __assign({ component: 'main' }, { children: [_jsx(CssBaseline, {}), _jsxs(StyledBox, { children: [_jsxs(Typography, __assign({ component: 'h1', variant: 'h4', sx: {
|
|
22
|
+
mb: 2
|
|
23
|
+
} }, { children: [errorCode ? (_jsxs("span", { children: [errorCode, " | "] })) : '', _jsx("span", { children: errorTitle })] })), _jsx(Typography, __assign({ variant: 'body1', sx: {
|
|
24
|
+
color: 'text.secondary',
|
|
25
|
+
mb: 3
|
|
26
|
+
} }, { children: errorMessage }))] }), _jsx(StyledLogoBox, { children: _jsx(LearningPoolLogo, { inheritViewBox: true, style: { width: '200px', height: '45px' } }) })] })) })));
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-addons-linked-state-mixin" />
|
|
3
|
+
export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
classes?: Partial<import("@mui/material/Container").ContainerClasses> | undefined;
|
|
6
|
+
disableGutters?: boolean | undefined;
|
|
7
|
+
fixed?: boolean | undefined;
|
|
8
|
+
maxWidth?: false | import("@mui/material/styles").Breakpoint | undefined;
|
|
9
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
10
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "fixed" | "maxWidth" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
13
|
+
export declare const StyledBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
component?: import("react").ElementType<any> | undefined;
|
|
16
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
17
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
19
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
21
|
+
export declare const StyledLogoBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
22
|
+
children?: import("react").ReactNode;
|
|
23
|
+
component?: import("react").ElementType<any> | undefined;
|
|
24
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
25
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
26
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
27
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
28
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Box from '@mui/material/Box';
|
|
2
|
+
import Container from '@mui/material/Container';
|
|
3
|
+
import { styled } from '@mui/material/styles';
|
|
4
|
+
export var StyledContainer = styled(Container)(function () { return ({
|
|
5
|
+
display: 'flex',
|
|
6
|
+
flexDirection: 'column',
|
|
7
|
+
height: '100vh',
|
|
8
|
+
textAlign: 'center'
|
|
9
|
+
}); });
|
|
10
|
+
export var StyledBox = styled(Box)(function () { return ({
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
display: 'flex',
|
|
13
|
+
flex: '1',
|
|
14
|
+
flexDirection: 'column',
|
|
15
|
+
height: '100%',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
overflow: 'hidden'
|
|
18
|
+
}); });
|
|
19
|
+
export var StyledLogoBox = styled(Box)(function (_a) {
|
|
20
|
+
var _b;
|
|
21
|
+
var theme = _a.theme;
|
|
22
|
+
return (_b = {
|
|
23
|
+
alignSelf: 'center',
|
|
24
|
+
marginRight: 0,
|
|
25
|
+
marginBottom: theme.spacing(5)
|
|
26
|
+
},
|
|
27
|
+
_b[theme.breakpoints.up('md')] = {
|
|
28
|
+
alignSelf: 'flex-end',
|
|
29
|
+
marginRight: theme.spacing(5)
|
|
30
|
+
},
|
|
31
|
+
_b);
|
|
32
|
+
});
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { default as Drawer } from './components/navigation/Drawer/Drawer';
|
|
|
7
7
|
export { default as List } from './components/datadisplay/List/List';
|
|
8
8
|
export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
|
|
9
9
|
export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
|
|
10
|
+
export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
|
|
10
11
|
export { default as AvatarGroup } from '@mui/material/AvatarGroup';
|
|
11
12
|
export { default as Backdrop } from '@mui/material/Backdrop';
|
|
12
13
|
export { default as CircularProgress } from '@mui/material/CircularProgress';
|
package/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export { default as Drawer } from './components/navigation/Drawer/Drawer';
|
|
|
8
8
|
export { default as List } from './components/datadisplay/List/List';
|
|
9
9
|
export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
|
|
10
10
|
export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
|
|
11
|
+
export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
|
|
11
12
|
// Straight through MUI
|
|
12
13
|
export { default as AvatarGroup } from '@mui/material/AvatarGroup';
|
|
13
14
|
export { default as Backdrop } from '@mui/material/Backdrop';
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"components",
|
|
10
10
|
"ui"
|
|
11
11
|
],
|
|
12
|
-
"version": "1.4.0-beta.
|
|
12
|
+
"version": "1.4.0-beta.3",
|
|
13
13
|
"private": false,
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"module": "dist/index.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"eslint-config-standard": "16.0.3",
|
|
87
87
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
88
88
|
"eslint-plugin-node": "11.1.0",
|
|
89
|
-
"eslint-plugin-promise": "4.
|
|
89
|
+
"eslint-plugin-promise": "4.3.1",
|
|
90
90
|
"source-map-explorer": "2.5.2",
|
|
91
91
|
"source-map-loader": "3.0.1",
|
|
92
92
|
"ts-node": "10.8.0",
|