@learningpool/ui 1.3.0 → 1.4.0-beta.11
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/{license → LICENSE} +0 -0
- package/{readme.md → README.md} +9 -8
- package/assets/Images.d.ts +9 -0
- package/assets/Images.js +16 -0
- package/components/atoms/Autocomplete/Autocomplete.js +1 -2
- package/components/atoms/Button/Button.d.ts +2 -2
- package/components/atoms/Button/Button.js +1 -2
- package/components/atoms/Checkbox/Checkbox.js +1 -2
- package/components/atoms/IconButton/IconButton.js +1 -2
- package/components/atoms/Radio/Radio.js +1 -2
- package/components/atoms/Select/Select.js +1 -2
- package/components/atoms/Slider/Slider.js +1 -2
- package/components/atoms/Switch/Switch.js +1 -2
- package/components/atoms/TextField/TextField.js +1 -2
- package/components/atoms/ToggleButton/ToggleButton.js +1 -2
- package/components/datadisplay/Avatar/Avatar.js +16 -2
- package/components/datadisplay/Chip/Chip.js +1 -2
- package/components/datadisplay/List/List.js +1 -2
- package/components/datadisplay/Tooltip/Tooltip.js +1 -2
- package/components/feedback/Alert/Alert.js +1 -2
- package/components/navigation/Drawer/Drawer.d.ts +4 -1
- package/components/navigation/Drawer/Drawer.js +21 -2
- package/components/navigation/VerticalNavigation/VerticalNavigation.d.ts +18 -0
- package/components/navigation/VerticalNavigation/VerticalNavigation.js +140 -0
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +147 -0
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +275 -0
- package/components/pages/ErrorPage/ErrorPage.d.ts +8 -0
- package/components/pages/ErrorPage/ErrorPage.js +27 -0
- package/components/pages/ErrorPage/ErrorPageStyles.d.ts +27 -0
- package/components/pages/ErrorPage/ErrorPageStyles.js +32 -0
- package/components/pages/SideInSide/SideInSide.d.ts +2 -0
- package/components/pages/SideInSide/SideInSide.js +39 -0
- package/components/pages/SideInSide/SideInSideStyles.d.ts +12 -0
- package/components/pages/SideInSide/SideInSideStyles.js +60 -0
- package/index.d.ts +122 -4
- package/index.js +134 -6
- package/package.json +13 -80
- package/utils/theme.d.ts +6 -0
- package/utils/theme.js +18 -2
- package/components/atoms/Autocomplete/AutocompleteStyles.d.ts +0 -7
- package/components/atoms/Autocomplete/AutocompleteStyles.js +0 -2
- package/components/atoms/Button/ButtonStyles.d.ts +0 -7
- package/components/atoms/Button/ButtonStyles.js +0 -2
- package/components/atoms/Checkbox/CheckboxStyles.d.ts +0 -7
- package/components/atoms/Checkbox/CheckboxStyles.js +0 -2
- package/components/atoms/IconButton/IconButtonStyles.d.ts +0 -7
- package/components/atoms/IconButton/IconButtonStyles.js +0 -2
- package/components/atoms/Radio/RadioStyles.d.ts +0 -7
- package/components/atoms/Radio/RadioStyles.js +0 -2
- package/components/atoms/Select/SelectStyles.d.ts +0 -7
- package/components/atoms/Select/SelectStyles.js +0 -2
- package/components/atoms/Slider/SliderStyles.d.ts +0 -7
- package/components/atoms/Slider/SliderStyles.js +0 -2
- package/components/atoms/Switch/SwitchStyles.d.ts +0 -7
- package/components/atoms/Switch/SwitchStyles.js +0 -2
- package/components/atoms/TextField/TextFieldStyles.d.ts +0 -7
- package/components/atoms/TextField/TextFieldStyles.js +0 -2
- package/components/atoms/ToggleButton/ToggleButtonStyles.d.ts +0 -7
- package/components/atoms/ToggleButton/ToggleButtonStyles.js +0 -2
- package/components/datadisplay/Avatar/AvatarStyles.d.ts +0 -7
- package/components/datadisplay/Avatar/AvatarStyles.js +0 -14
- package/components/datadisplay/Chip/ChipStyles.d.ts +0 -7
- package/components/datadisplay/Chip/ChipStyles.js +0 -2
- package/components/datadisplay/List/ListStyles.d.ts +0 -7
- package/components/datadisplay/List/ListStyles.js +0 -2
- package/components/datadisplay/Tooltip/TooltipStyles.d.ts +0 -7
- package/components/datadisplay/Tooltip/TooltipStyles.js +0 -2
- package/components/feedback/Alert/AlertStyles.d.ts +0 -7
- package/components/feedback/Alert/AlertStyles.js +0 -2
- package/components/index.d.ts +0 -1
- package/components/index.js +0 -3
- package/components/navigation/Drawer/DrawerStyles.d.ts +0 -7
- package/components/navigation/Drawer/DrawerStyles.js +0 -2
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
import { CSSObject } from '@mui/material/styles';
|
|
4
|
+
export declare const DRAWER_WIDTH: {
|
|
5
|
+
Collapsed: number;
|
|
6
|
+
Expanded: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const paperStyles: (theme: Theme) => CSSObject;
|
|
9
|
+
export declare const openedMixin: () => CSSObject;
|
|
10
|
+
export declare const closedMixin: (theme: Theme) => CSSObject;
|
|
11
|
+
export declare const DrawerHeader: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
button?: false | undefined;
|
|
14
|
+
} & import("@mui/material").ListItemBaseProps & {
|
|
15
|
+
components?: {
|
|
16
|
+
Root?: import("react").ElementType<any> | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
componentsProps?: {
|
|
19
|
+
root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
|
|
22
|
+
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
23
|
+
}, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
24
|
+
export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
25
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
26
|
+
centerRipple?: boolean | undefined;
|
|
27
|
+
children?: import("react").ReactNode;
|
|
28
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
disableRipple?: boolean | undefined;
|
|
31
|
+
disableTouchRipple?: boolean | undefined;
|
|
32
|
+
focusRipple?: boolean | undefined;
|
|
33
|
+
focusVisibleClassName?: string | undefined;
|
|
34
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
35
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
36
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
37
|
+
tabIndex?: number | undefined;
|
|
38
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
39
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
40
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
42
|
+
}, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
43
|
+
isDrawerOpen?: any;
|
|
44
|
+
}, {}, {}>;
|
|
45
|
+
export declare const ListItemAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
46
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
47
|
+
centerRipple?: boolean | undefined;
|
|
48
|
+
children?: import("react").ReactNode;
|
|
49
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
50
|
+
disabled?: boolean | undefined;
|
|
51
|
+
disableRipple?: boolean | undefined;
|
|
52
|
+
disableTouchRipple?: boolean | undefined;
|
|
53
|
+
focusRipple?: boolean | undefined;
|
|
54
|
+
focusVisibleClassName?: string | undefined;
|
|
55
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
56
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
57
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
58
|
+
tabIndex?: number | undefined;
|
|
59
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
60
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
61
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
62
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
63
|
+
}, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
64
|
+
isDrawerOpen?: any;
|
|
65
|
+
} & {
|
|
66
|
+
children?: import("react").ReactNode;
|
|
67
|
+
} & {
|
|
68
|
+
isDrawerOpen?: any;
|
|
69
|
+
}, {}, {}>;
|
|
70
|
+
export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
71
|
+
export declare const ListItemText: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
72
|
+
isDrawerOpen?: any;
|
|
73
|
+
index?: number | undefined;
|
|
74
|
+
}, {}, {}>;
|
|
75
|
+
export declare const DrawerToggle: import("@emotion/styled").StyledComponent<{
|
|
76
|
+
children?: import("react").ReactNode;
|
|
77
|
+
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
78
|
+
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | "default" | undefined;
|
|
79
|
+
disabled?: boolean | undefined;
|
|
80
|
+
disableFocusRipple?: boolean | undefined;
|
|
81
|
+
edge?: false | "end" | "start" | undefined;
|
|
82
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
83
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
84
|
+
} & Omit<{
|
|
85
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
86
|
+
centerRipple?: boolean | undefined;
|
|
87
|
+
children?: import("react").ReactNode;
|
|
88
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
89
|
+
disabled?: boolean | undefined;
|
|
90
|
+
disableRipple?: boolean | undefined;
|
|
91
|
+
disableTouchRipple?: boolean | undefined;
|
|
92
|
+
focusRipple?: boolean | undefined;
|
|
93
|
+
focusVisibleClassName?: string | undefined;
|
|
94
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
95
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
96
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
97
|
+
tabIndex?: number | undefined;
|
|
98
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
99
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
100
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
101
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
102
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
103
|
+
export declare const DrawerToggleHitboxContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
104
|
+
export declare const StyledAside: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
105
|
+
export declare const StyledNav: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
106
|
+
export declare const DrawerShadow: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
107
|
+
children?: import("react").ReactNode;
|
|
108
|
+
component?: import("react").ElementType<any> | undefined;
|
|
109
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
110
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
111
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
112
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
113
|
+
}, 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<Theme> & {
|
|
114
|
+
isDrawerOpen?: any;
|
|
115
|
+
}, {}, {}>;
|
|
116
|
+
export declare const NotchContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
117
|
+
children?: import("react").ReactNode;
|
|
118
|
+
component?: import("react").ElementType<any> | undefined;
|
|
119
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
120
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
121
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
122
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
123
|
+
}, 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<Theme>, {}, {}>;
|
|
124
|
+
export declare const NotchBackground: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
125
|
+
children?: import("react").ReactNode;
|
|
126
|
+
component?: import("react").ElementType<any> | undefined;
|
|
127
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
128
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
129
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
130
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
131
|
+
}, 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<Theme>, {}, {}>;
|
|
132
|
+
export declare const NotchBackgroundClip: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
133
|
+
children?: import("react").ReactNode;
|
|
134
|
+
component?: import("react").ElementType<any> | undefined;
|
|
135
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
136
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
137
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
138
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
139
|
+
}, 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<Theme>, {}, {}>;
|
|
140
|
+
export declare const NotchSeemMask: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
141
|
+
children?: import("react").ReactNode;
|
|
142
|
+
component?: import("react").ElementType<any> | undefined;
|
|
143
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
144
|
+
sx?: import("@mui/material").SxProps<Theme> | undefined;
|
|
145
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
146
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
147
|
+
}, 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<Theme>, {}, {}>;
|
|
@@ -0,0 +1,275 @@
|
|
|
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 { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemText as SSListItemText, ListItemIcon as SSListItemIcon, IconButton } from '../../../index';
|
|
13
|
+
import { Box } from '@mui/material';
|
|
14
|
+
import { styled } from '@mui/material/styles';
|
|
15
|
+
import { motion } from '../../../utils/theme';
|
|
16
|
+
export var DRAWER_WIDTH = {
|
|
17
|
+
Collapsed: 60,
|
|
18
|
+
Expanded: 300
|
|
19
|
+
};
|
|
20
|
+
var ICON = {
|
|
21
|
+
Height: 40,
|
|
22
|
+
Width: 57
|
|
23
|
+
};
|
|
24
|
+
export var paperStyles = function (theme) { return ({
|
|
25
|
+
background: 'transparent none',
|
|
26
|
+
border: 0,
|
|
27
|
+
boxShadow: 'none',
|
|
28
|
+
color: theme.palette.mode === 'dark'
|
|
29
|
+
? theme.palette.primary.contrastText
|
|
30
|
+
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
31
|
+
overflow: 'visible !important',
|
|
32
|
+
transform: 'translateX(0) !important',
|
|
33
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
34
|
+
visibility: 'visible'
|
|
35
|
+
}); };
|
|
36
|
+
export var openedMixin = function () { return ({
|
|
37
|
+
boxShadow: 'none',
|
|
38
|
+
overflowX: 'visible',
|
|
39
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
40
|
+
width: DRAWER_WIDTH.Expanded
|
|
41
|
+
}); };
|
|
42
|
+
export var closedMixin = function (theme) {
|
|
43
|
+
var _a;
|
|
44
|
+
return (_a = {
|
|
45
|
+
boxShadow: theme.shadows[1],
|
|
46
|
+
overflowX: 'visible',
|
|
47
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
48
|
+
width: "calc(".concat(theme.spacing(7), " + 1px)")
|
|
49
|
+
},
|
|
50
|
+
_a[theme.breakpoints.up('sm')] = {
|
|
51
|
+
width: "calc(".concat(theme.spacing(8), " + 1px)")
|
|
52
|
+
},
|
|
53
|
+
_a);
|
|
54
|
+
};
|
|
55
|
+
export var DrawerHeader = styled('div')(function (_a) {
|
|
56
|
+
var _b;
|
|
57
|
+
var theme = _a.theme;
|
|
58
|
+
return (__assign(__assign({ alignItems: 'center', display: 'flex', justifyContent: 'flex-start', overflow: 'hidden', padding: "".concat(theme.spacing(1), " 10px 0") }, theme.mixins.toolbar), (_b = { backgroundColor: theme.palette.mode === 'dark'
|
|
59
|
+
? theme.palette.primary.main
|
|
60
|
+
: theme.palette.background.paper, minHeight: '56px !important' }, _b[theme.breakpoints.up('sm')] = {
|
|
61
|
+
minHeight: '64px !important'
|
|
62
|
+
}, _b)));
|
|
63
|
+
});
|
|
64
|
+
export var ListItem = styled(SSListItem)(function (_a) {
|
|
65
|
+
var theme = _a.theme;
|
|
66
|
+
return ({
|
|
67
|
+
alignItems: 'flex-start',
|
|
68
|
+
color: theme.palette.mode === 'dark'
|
|
69
|
+
? theme.palette.primary.contrastText
|
|
70
|
+
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
71
|
+
overflow: 'hidden',
|
|
72
|
+
minHeight: 48,
|
|
73
|
+
'& .MuiListItemIcon-root': {
|
|
74
|
+
marginTop: theme.spacing(0.5)
|
|
75
|
+
},
|
|
76
|
+
'& .MuiListItemText-root .MuiTypography-root': {
|
|
77
|
+
whiteSpace: 'normal'
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
export var ListItemButton = styled(SSListItemButton, {
|
|
82
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
|
|
83
|
+
})(function (_a) {
|
|
84
|
+
var _b;
|
|
85
|
+
var theme = _a.theme, isDrawerOpen = _a.isDrawerOpen;
|
|
86
|
+
return (_b = {
|
|
87
|
+
alignItems: 'flex-start',
|
|
88
|
+
color: theme.palette.mode === 'dark'
|
|
89
|
+
? theme.palette.primary.contrastText
|
|
90
|
+
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
91
|
+
display: 'flex',
|
|
92
|
+
minHeight: 48,
|
|
93
|
+
maxHeight: isDrawerOpen ? '200px' : ICON.Height + 8,
|
|
94
|
+
textDecoration: 'none',
|
|
95
|
+
textTransform: 'none',
|
|
96
|
+
transition: "max-height 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
97
|
+
padding: 0,
|
|
98
|
+
width: '100%'
|
|
99
|
+
},
|
|
100
|
+
_b[theme.breakpoints.up('sm')] = {
|
|
101
|
+
maxHeight: isDrawerOpen ? '200px' : ICON.Height + 8
|
|
102
|
+
},
|
|
103
|
+
_b);
|
|
104
|
+
});
|
|
105
|
+
export var ListItemAvatar = styled(ListItemButton, {
|
|
106
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
|
|
107
|
+
})(function (_a) {
|
|
108
|
+
var isDrawerOpen = _a.isDrawerOpen;
|
|
109
|
+
return ({
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
minHeight: 52,
|
|
112
|
+
maxHeight: isDrawerOpen ? '200px' : '48px',
|
|
113
|
+
transition: "max-height 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
114
|
+
'& .MuiListItemIcon-root': {
|
|
115
|
+
justifyContent: 'center',
|
|
116
|
+
minWidth: 0,
|
|
117
|
+
margin: 0
|
|
118
|
+
},
|
|
119
|
+
'& .MuiAvatar-root': {
|
|
120
|
+
height: 32,
|
|
121
|
+
width: 32
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
export var ListItemIcon = styled(SSListItemIcon)(function (_a) {
|
|
126
|
+
var _b;
|
|
127
|
+
var theme = _a.theme;
|
|
128
|
+
return (_b = {
|
|
129
|
+
alignItems: 'center',
|
|
130
|
+
color: theme.palette.mode === 'dark'
|
|
131
|
+
? theme.palette.primary.contrastText
|
|
132
|
+
: theme.palette.getContrastText(theme.palette.background.paper),
|
|
133
|
+
height: ICON.Height + 8,
|
|
134
|
+
justifyContent: 'center',
|
|
135
|
+
marginTop: '0 !important',
|
|
136
|
+
minWidth: ICON.Width,
|
|
137
|
+
width: ICON.Width
|
|
138
|
+
},
|
|
139
|
+
_b[theme.breakpoints.up('sm')] = {
|
|
140
|
+
minWidth: ICON.Width + 8,
|
|
141
|
+
width: ICON.Width + 8
|
|
142
|
+
},
|
|
143
|
+
_b);
|
|
144
|
+
});
|
|
145
|
+
export var ListItemText = styled(SSListItemText, {
|
|
146
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen' && prop !== 'index'; }
|
|
147
|
+
})(function (_a) {
|
|
148
|
+
var isDrawerOpen = _a.isDrawerOpen, index = _a.index;
|
|
149
|
+
return ({
|
|
150
|
+
opacity: isDrawerOpen ? 1 : 0,
|
|
151
|
+
padding: '0.5rem',
|
|
152
|
+
transition: "opacity 225ms ".concat(motion.easeInOut, " ").concat(index !== undefined ? index / 50 : 0.02, "s !important")
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
export var DrawerToggle = styled(IconButton)(function (_a) {
|
|
156
|
+
var _b;
|
|
157
|
+
var theme = _a.theme;
|
|
158
|
+
return (_b = {
|
|
159
|
+
background: 'transparent',
|
|
160
|
+
height: '44px',
|
|
161
|
+
paddingLeft: theme.spacing(2),
|
|
162
|
+
paddingRight: theme.spacing(2),
|
|
163
|
+
position: 'fixed',
|
|
164
|
+
top: '80.5px',
|
|
165
|
+
transition: "all 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
166
|
+
width: '44px',
|
|
167
|
+
zIndex: theme.zIndex.drawer + 1
|
|
168
|
+
},
|
|
169
|
+
_b[theme.breakpoints.up('sm')] = {
|
|
170
|
+
paddingLeft: theme.spacing(2.5),
|
|
171
|
+
paddingRight: theme.spacing(2.5),
|
|
172
|
+
top: '88.5px'
|
|
173
|
+
},
|
|
174
|
+
_b);
|
|
175
|
+
});
|
|
176
|
+
export var DrawerToggleHitboxContent = styled('span')(function (_a) {
|
|
177
|
+
var theme = _a.theme;
|
|
178
|
+
return ({
|
|
179
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
180
|
+
? theme.palette.primary.main
|
|
181
|
+
: theme.palette.background.paper,
|
|
182
|
+
borderRadius: '50%',
|
|
183
|
+
boxShadow: '5px 0 15px 0 rgb(0 0 0 / 10%)',
|
|
184
|
+
height: '1.75rem',
|
|
185
|
+
padding: theme.spacing(0.5),
|
|
186
|
+
width: '1.75rem'
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
export var StyledAside = styled('aside')(function () { return ({}); });
|
|
190
|
+
export var StyledNav = styled('nav')(function (_a) {
|
|
191
|
+
var theme = _a.theme;
|
|
192
|
+
return ({
|
|
193
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
194
|
+
? theme.palette.primary.main
|
|
195
|
+
: theme.palette.background.paper,
|
|
196
|
+
display: 'flex',
|
|
197
|
+
flex: '1 auto',
|
|
198
|
+
flexDirection: 'column',
|
|
199
|
+
justifyContent: 'flex-start',
|
|
200
|
+
marginTop: '-1px',
|
|
201
|
+
overflow: 'hidden'
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
export var DrawerShadow = styled(Box, {
|
|
205
|
+
shouldForwardProp: function (prop) { return prop !== 'isDrawerOpen'; }
|
|
206
|
+
})(function (_a) {
|
|
207
|
+
var _b;
|
|
208
|
+
var theme = _a.theme, isDrawerOpen = _a.isDrawerOpen;
|
|
209
|
+
return (_b = {
|
|
210
|
+
background: 'rgba(0,0,0,0.125)',
|
|
211
|
+
content: '""',
|
|
212
|
+
display: 'block',
|
|
213
|
+
filter: 'blur(13px)',
|
|
214
|
+
height: '100%',
|
|
215
|
+
left: isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded - 38, "px") : "".concat(DRAWER_WIDTH.Collapsed - 41, "px"),
|
|
216
|
+
position: 'fixed',
|
|
217
|
+
top: '0',
|
|
218
|
+
transition: "left 225ms ".concat(motion.easeInOut, " 0ms"),
|
|
219
|
+
visibility: 'visible',
|
|
220
|
+
width: '40px'
|
|
221
|
+
},
|
|
222
|
+
_b[theme.breakpoints.up('sm')] = {
|
|
223
|
+
left: isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded - 38, "px") : "".concat(DRAWER_WIDTH.Collapsed - 33, "px")
|
|
224
|
+
},
|
|
225
|
+
_b);
|
|
226
|
+
});
|
|
227
|
+
export var NotchContainer = styled(Box)(function (_a) {
|
|
228
|
+
var theme = _a.theme;
|
|
229
|
+
return ({
|
|
230
|
+
display: 'flex',
|
|
231
|
+
justifyContent: 'flex-end',
|
|
232
|
+
height: 'auto',
|
|
233
|
+
marginTop: "-".concat(theme.spacing(0.5)),
|
|
234
|
+
position: 'relative',
|
|
235
|
+
transition: "width 225ms ".concat(motion.easeInOut, " 0ms !important"),
|
|
236
|
+
width: '100%',
|
|
237
|
+
zIndex: '-1'
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
export var NotchBackground = styled(Box)(function (_a) {
|
|
241
|
+
var theme = _a.theme;
|
|
242
|
+
return ({
|
|
243
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
244
|
+
? theme.palette.primary.main
|
|
245
|
+
: theme.palette.background.paper,
|
|
246
|
+
flex: '1',
|
|
247
|
+
height: 'auto',
|
|
248
|
+
width: 'auto'
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
export var NotchBackgroundClip = styled(Box)(function (_a) {
|
|
252
|
+
var theme = _a.theme;
|
|
253
|
+
return ({
|
|
254
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
255
|
+
? theme.palette.primary.main
|
|
256
|
+
: theme.palette.background.paper,
|
|
257
|
+
clipPath: 'url("#notch")',
|
|
258
|
+
display: 'flex',
|
|
259
|
+
height: '85px',
|
|
260
|
+
width: '45px'
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
export var NotchSeemMask = styled(Box)(function (_a) {
|
|
264
|
+
var theme = _a.theme;
|
|
265
|
+
return ({
|
|
266
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
267
|
+
? theme.palette.primary.main
|
|
268
|
+
: theme.palette.background.paper,
|
|
269
|
+
height: '90px',
|
|
270
|
+
position: 'absolute',
|
|
271
|
+
right: '25px',
|
|
272
|
+
top: '-2px',
|
|
273
|
+
width: 'calc(100% - 25px)'
|
|
274
|
+
});
|
|
275
|
+
});
|
|
@@ -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,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
classes?: Partial<import("@mui/material/Container").ContainerClasses> | undefined;
|
|
5
|
+
disableGutters?: boolean | undefined;
|
|
6
|
+
fixed?: boolean | undefined;
|
|
7
|
+
maxWidth?: false | import("@mui/material/styles").Breakpoint | undefined;
|
|
8
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
9
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "fixed" | "maxWidth" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
12
|
+
export declare const StyledBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
13
|
+
children?: import("react").ReactNode;
|
|
14
|
+
component?: import("react").ElementType<any> | undefined;
|
|
15
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
16
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
17
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, 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>, {}, {}>;
|
|
20
|
+
export declare const StyledLogoBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
21
|
+
children?: import("react").ReactNode;
|
|
22
|
+
component?: import("react").ElementType<any> | undefined;
|
|
23
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
24
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
25
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
26
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
+
}, 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
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
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, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
+
import { Button } from '../../../index';
|
|
14
|
+
import CssBaseline from '@mui/material/CssBaseline';
|
|
15
|
+
import Paper from '@mui/material/Paper';
|
|
16
|
+
import Box from '@mui/material/Box';
|
|
17
|
+
import Grid from '@mui/material/Grid';
|
|
18
|
+
import Typography from '@mui/material/Typography';
|
|
19
|
+
import Divider from '@mui/material/Divider';
|
|
20
|
+
import { createTheme, ThemeProvider } from '@mui/material/styles';
|
|
21
|
+
import { SideInSideStyles } from './SideInSideStyles';
|
|
22
|
+
import { LearningPoolLogo, StreamSuiteLogo } from '../../../assets/Images';
|
|
23
|
+
import { Link } from '@mui/material';
|
|
24
|
+
function Copyright(props) {
|
|
25
|
+
return (_jsxs(Typography, __assign({ variant: "body2", color: "text.secondary", align: "center" }, props, { children: ['Copyright © ', _jsx(Link, __assign({ color: "inherit", href: "https://learningpool.com/" }, { children: "Learning Pool" })), ' ', new Date().getFullYear(), '.'] })));
|
|
26
|
+
}
|
|
27
|
+
var theme = createTheme();
|
|
28
|
+
export default function SideInSide(props) {
|
|
29
|
+
var classes = SideInSideStyles(props).classes;
|
|
30
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Grid, __assign({ container: true, component: "main", className: classes.root, style: props === null || props === void 0 ? void 0 : props.style }, { children: [_jsx(CssBaseline, {}), _jsx(Grid, __assign({ item: true, xs: false, sm: false, md: 6, lg: 7, xl: 8, className: classes.pageBackgroundContainer }, { children: _jsx(Box, __assign({ className: classes.pageBackgroundLogoContainer }, { children: (props === null || props === void 0 ? void 0 : props.pageBackgroundLogo)
|
|
31
|
+
? (_jsx("img", { src: "".concat(String(props.pageBackgroundLogo)), alt: "".concat(String(props.pageBackgroundLogoAlt)), className: classes.pageBackgroundLogo }))
|
|
32
|
+
: _jsx(StreamSuiteLogo, { style: { fill: '#fff', height: '200px', width: '200px' } }) })) })), _jsx(Grid, __assign({ item: true, xs: 12, sm: 12, md: 6, lg: 5, xl: 4, component: Paper, elevation: 6, square: true }, { children: _jsxs(Box, __assign({ className: classes.contentPanel }, { children: [_jsx(Box, __assign({ className: classes.contentPanelImageContainer }, { children: (props === null || props === void 0 ? void 0 : props.formLogo)
|
|
33
|
+
? (_jsx("img", { src: "".concat(String(props.formLogo)), alt: "".concat(String(props.formLogoAlt)), className: classes.contentPanelImage }))
|
|
34
|
+
: _jsx(LearningPoolLogo, { inheritViewBox: true, style: { width: '250px', height: '60px' } }) })), _jsx(Typography, __assign({ component: "h1", variant: "h6" }, { children: props.welcomeMessage })), (props === null || props === void 0 ? void 0 : props.children) ? props.children : null, (props === null || props === void 0 ? void 0 : props.isStreamHomeEnabled)
|
|
35
|
+
? (_jsxs(_Fragment, { children: [_jsx(Divider, __assign({ sx: { mt: 1 } }, { children: "Or" })), _jsx(Button, __assign({ type: "submit", onClick: props === null || props === void 0 ? void 0 : props.handleStreamHomeLogin, fullWidth: true, className: classes.streamHomeButton, startIcon: (props === null || props === void 0 ? void 0 : props.startIcon)
|
|
36
|
+
? props.startIcon
|
|
37
|
+
: _jsx(StreamSuiteLogo, { style: { fill: '#fff', height: '25px', width: '25px' } }) }, { children: "Log in with Stream Home" }))] }))
|
|
38
|
+
: null, _jsx(Box, __assign({ className: classes.footerContent }, { children: (props === null || props === void 0 ? void 0 : props.footerContent) ? props.footerContent : _jsx(Copyright, {}) }))] })) }))] })) })));
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
export declare const SideInSideStyles: (params: void, styleOverrides?: {
|
|
3
|
+
props: {
|
|
4
|
+
classes?: Record<string, string> | undefined;
|
|
5
|
+
} & Record<string, unknown>;
|
|
6
|
+
ownerState?: Record<string, unknown> | undefined;
|
|
7
|
+
} | undefined) => {
|
|
8
|
+
classes: Record<"root" | "pageBackgroundContainer" | "pageBackgroundLogoContainer" | "pageBackgroundLogo" | "contentPanel" | "contentPanelImageContainer" | "contentPanelImage" | "submitButton" | "streamHomeButton" | "footerContent", string>;
|
|
9
|
+
theme: Theme;
|
|
10
|
+
css: import("tss-react/types").Css;
|
|
11
|
+
cx: import("tss-react/types").Cx;
|
|
12
|
+
};
|