@learningpool/ui 1.3.0 → 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/assets/Images.d.ts +6 -0
- package/assets/Images.js +15 -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 +194 -0
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +94 -0
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +146 -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 +28 -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 +9 -0
- package/index.js +10 -0
- package/package.json +30 -25
- package/readme.md +9 -8
- package/utils/theme.js +10 -0
- 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,6 @@
|
|
|
1
|
+
export declare const StreamSuiteLogo: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const LearningPoolLogo: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
5
|
+
muiName: string;
|
|
6
|
+
};
|
package/assets/Images.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import { createSvgIcon } from '@mui/material/utils';
|
|
14
|
+
export var StreamSuiteLogo = createSvgIcon(_jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", "data-name": "Layer 1", viewBox: "0 0 447.9 484.8" }, { children: _jsx("path", { d: "M447.9 304.4V321l-1 5.2c-3 21.8-12.5 40.5-27.4 56.4a102.6 102.6 0 0 1-34.1 24A98 98 0 0 1 325 413c-2.2-.5-3.2 0-4 2.1a100.5 100.5 0 0 1-32.4 47.2 101.3 101.3 0 0 1-48 21l-11 1.4h-11.7a6.8 6.8 0 0 0-1.5-.4A102.5 102.5 0 0 1 172 471a96.6 96.6 0 0 1-30.8-27.6 103.7 103.7 0 0 1-14.6-28.7c-.5-1.4-.8-2.5-2.8-2a98.5 98.5 0 0 1-32.5 1.5 101 101 0 0 1-35.8-10.8 97.8 97.8 0 0 1-29.7-23A102 102 0 0 1 7 350a105.4 105.4 0 0 1-5.5-55.2 100.7 100.7 0 0 1 13-35.3c2.7-4.7 6.3-5.1 10.2-1.3l4.8 4.3a102 102 0 0 0 37.7 20.6c5.1 1.6 6.5 5 3.7 9.6a35.7 35.7 0 0 0 7.9 48.3 36.3 36.3 0 0 0 22.4 9c15.2.5 26.3-6.9 33.8-19.3 10.5-17.2 20.3-34.8 30.3-52.2.6-1 1-2 1.7-3.5l-4-.2c-22.2 0-44.5 0-66.7-.3a103 103 0 0 1-76.3-41A95.8 95.8 0 0 1 .8 161a106 106 0 0 1 33.9-66A90 90 0 0 1 54 81.4c20.6-11 42.5-13.6 65.4-10.3 7.5 1.2 5.5 2.5 8.2-4.7a99 99 0 0 1 32-44.8A102.2 102.2 0 0 1 222.4 0a106 106 0 0 1 32.2 4.5A98.4 98.4 0 0 1 293 25.8a100.2 100.2 0 0 1 28 43.5c.8 2.2 1.6 2.9 4 2.4a102 102 0 0 1 28-1.9 92.8 92.8 0 0 1 37.9 10.6q46 24.9 55.6 76.4c.6 3 1 6 1.4 9.1v14.4a23.2 23.2 0 0 0-.6 2.6 100.8 100.8 0 0 1-14.6 43c-2.3 3.6-6 4-9.1 1-2.1-2-4.1-4-6.3-5.8a97.4 97.4 0 0 0-35.4-19.1c-7-2-8-5.7-4.3-11.5a32.5 32.5 0 0 0 5.1-22.2 37.6 37.6 0 0 0-15-25.7 36.4 36.4 0 0 0-52.8 8c-3.6 4.7-6.2 10-9.2 15l-24 41.6a17 17 0 0 0-.9 2.4l3.7.2 64.2.3a86.7 86.7 0 0 1 24.3 3.4 102.6 102.6 0 0 1 50 32.1 100.7 100.7 0 0 1 23 48l1.9 10.8ZM261.5 102.9a37.2 37.2 0 0 0-4-17c-7-13.4-17.8-21.3-33.2-21.4-13.3 0-24 5.8-31.5 16.7a34.9 34.9 0 0 0-2.3 38.2c7.6 14.2 16 28 24.2 42a9.8 9.8 0 0 1 1 8.7l-12.4 37.7a9.1 9.1 0 0 0 0 2.9 9.3 9.3 0 0 0 2.2-2c2.5-4 4.8-8.2 7.2-12.4l42-72.5c3.9-6.5 7-13.2 6.8-21Zm-.2 278.7a30.6 30.6 0 0 0-4-16c-8.3-14.8-16.9-29.5-25.4-44.2a6 6 0 0 1-.5-5.5l13.1-39.5a6.6 6.6 0 0 0-.2-2.5c-.6.5-1.5.9-1.9 1.5l-20 34.5-29.6 51.2a42.3 42.3 0 0 0-6.5 19.7 35 35 0 0 0 13 29.8 37.3 37.3 0 0 0 62-29Zm-94.2-172-1.4-2.9-27.7-48a54 54 0 0 0-11.5-15.4c-20.4-17-48.8-7-58.2 13.3-12 25.8 9.4 53.5 34 53.2 20.4-.2 41 0 61.4 0l3.4-.3ZM280.7 275a22.1 22.1 0 0 0 .9 2.2c10.4 18 20.7 36 31.3 54a35.5 35.5 0 0 0 29.4 18.6 37.7 37.7 0 0 0 39.9-43.7 37.9 37.9 0 0 0-36-31.2h-65.5Z" }) })), 'StreamSuite');
|
|
15
|
+
export var LearningPoolLogo = createSvgIcon(_jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 804 174" }, { children: _jsx("path", { fill: "#0069B4", d: "M155.5 0A44 44 0 0 0 121 16.5l-1 1.2-1.2-1a72.5 72.5 0 1 0-46.4 128.1 72.8 72.8 0 0 0 70.7-56.6l.4-1.5 1.5.4a44.2 44.2 0 0 0 44.8-15 44.2 44.2 0 0 0 5.6-47 44.2 44.2 0 0 0-40-25.1zM113 115.2H72.4a42.9 42.9 0 1 1 29.2-11.5l11.4 11.5zm42.5-47.8h-22l6.1-6.2a23.2 23.2 0 1 1 15.9 6.2zm56.2-8.5h14v84h-14zm76 54.3a31.1 31.1 0 0 0-7.5-21.1 29.2 29.2 0 0 0-40.7.2 31.8 31.8 0 0 0-7.8 22 31.2 31.2 0 0 0 7.9 22.2 27.8 27.8 0 0 0 20.9 8.3c2.8 0 5.6-.3 8.4-1a24 24 0 0 0 7.3-3 28.4 28.4 0 0 0 6.3-5.1c1.7-2 3.3-4 4.7-6.2l-12.7-7a28 28 0 0 1-6 6.9 12.3 12.3 0 0 1-7.4 2.1 13 13 0 0 1-9.6-3.7 15.6 15.6 0 0 1-4-9.1v-.4h40.1v-5.1zm-41.7-5.3.3-1.1a16.8 16.8 0 0 1 2-4.6 14 14 0 0 1 3-3.5 13.3 13.3 0 0 1 4.1-2.2 14.5 14.5 0 0 1 4.8-.8c6.8-.4 12.8 4.4 14 11l.3 1.2H246zm90.4-22.4V91a24.2 24.2 0 0 0-16.9-7.2 24.9 24.9 0 0 0-19.2 8.6 30.7 30.7 0 0 0-7.7 21.2 31.7 31.7 0 0 0 7.7 21.6 25.4 25.4 0 0 0 19.6 8.5 25 25 0 0 0 16.5-6.7v5.1h14.2V85.5h-14.2zm-3.6 41a14.3 14.3 0 0 1-11.1 4.7 13.5 13.5 0 0 1-10.6-4.9 18.9 18.9 0 0 1-4.1-12.6 18 18 0 0 1 4.1-12.2 13.8 13.8 0 0 1 10.9-4.8 14 14 0 0 1 10.8 4.8A18.3 18.3 0 0 1 337 114a18.5 18.5 0 0 1-4.3 12.5zm61.7-38.9-6.3 13-.6-.4a11.3 11.3 0 0 0-6.6-2.5c-6.5 0-9.7 5-9.7 15.4v29.7h-13.7V85.5h13.7v4a23.9 23.9 0 0 1 5.3-4.1 14.6 14.6 0 0 1 6.7-1.5 20.7 20.7 0 0 1 10.7 3.4l.5.3zm53 20.2v35H433v-32a19.7 19.7 0 0 0-2.2-11 8.8 8.8 0 0 0-7.8-3 9.4 9.4 0 0 0-8.7 4 28.9 28.9 0 0 0-2.6 14.3v27.7h-14.3V85.5h14.3v4.4a21.8 21.8 0 0 1 14.9-6 20.3 20.3 0 0 1 15.8 6.4c3.3 3.6 5 9.5 5 17.5m22.9-40a8.7 8.7 0 0 1-2.7 6.4 8.5 8.5 0 0 1-6.3 2.7 9 9 0 0 1-6.4-2.6 9 9 0 0 1-2.6-6.4 8.5 8.5 0 0 1 2.7-6.3 8.6 8.6 0 0 1 6.3-2.7 8.7 8.7 0 0 1 6.3 2.7 8.5 8.5 0 0 1 2.7 6.3m-16 18h14v57h-14zm71 22v35H511v-32a19.7 19.7 0 0 0-2.2-11.1 8.8 8.8 0 0 0-7.8-3 9.4 9.4 0 0 0-8.7 4 28.9 28.9 0 0 0-2.5 14.3v27.7h-14.4V85.5h14.4v4.4a21.8 21.8 0 0 1 14.8-6 20.2 20.2 0 0 1 15.8 6.4c3.3 3.6 5 9.5 5 17.5M574 85.4v5.4a23 23 0 0 0-16.9-6.9 24.4 24.4 0 0 0-19.9 9.3 32.9 32.9 0 0 0-7 21 31.2 31.2 0 0 0 7.6 21.3 25.1 25.1 0 0 0 17.8 8.5 25.2 25.2 0 0 0 18.4-7v6.3c0 11.2-4.4 16.7-13.5 16.7a13.4 13.4 0 0 1-11.2-5 14.2 14.2 0 0 1-2.4-6v-.6h-14.2v.7a25.2 25.2 0 0 0 8.8 17.5 28.4 28.4 0 0 0 19 6.2 26.9 26.9 0 0 0 21.3-9 24.1 24.1 0 0 0 5.4-11 51.2 51.2 0 0 0 .7-5.4c.2-2 .3-4.4.3-7v-55H574zm-3.3 40.6a13.6 13.6 0 0 1-11.2 5 13.6 13.6 0 0 1-11.1-5 18.9 18.9 0 0 1-3.7-12 19.1 19.1 0 0 1 3.7-12.3 13.3 13.3 0 0 1 11-5.1 13.9 13.9 0 0 1 11 4.7 18 18 0 0 1 4.1 12.6 18.6 18.6 0 0 1-3.8 12zm73.7-33.4a24.8 24.8 0 0 0-19.5-8.7 24.4 24.4 0 0 0-16.7 6.8v-5.2h-14v87.3h14V137a24.4 24.4 0 0 0 17 7 24.9 24.9 0 0 0 19.2-8.5 30.9 30.9 0 0 0 7.7-21.3 31.3 31.3 0 0 0-7.7-21.6m-32.5 8.8a14.3 14.3 0 0 1 11-4.7 13.5 13.5 0 0 1 10.7 5 18.6 18.6 0 0 1 4.1 12.5 17.8 17.8 0 0 1-4.3 12.3 13.5 13.5 0 0 1-10.6 4.8 14 14 0 0 1-11-4.8 18.4 18.4 0 0 1-4.2-12.5 18.2 18.2 0 0 1 4.2-12.6m97.4-7.9a31.3 31.3 0 0 0-43.2 0 28.3 28.3 0 0 0-9 21 29.4 29.4 0 0 0 9 21.5 29.3 29.3 0 0 0 21.5 8.8 30.4 30.4 0 0 0 21.9-8.6A28.8 28.8 0 0 0 718 115a29 29 0 0 0-8.8-21.4m-10 34a16.9 16.9 0 0 1-23.3 0 18.1 18.1 0 0 1-4.4-12.8 17.2 17.2 0 0 1 4.5-12.3 15.1 15.1 0 0 1 11.5-4.7c4.4-.1 8.7 1.6 11.7 4.7a17.7 17.7 0 0 1 4.4 12.6 17.7 17.7 0 0 1-4.4 12.5m75-35a31.3 31.3 0 0 0-43.3 0 28.2 28.2 0 0 0-8.9 21 29.4 29.4 0 0 0 8.7 21.5 29.3 29.3 0 0 0 21.5 8.8 30.4 30.4 0 0 0 21.9-8.6 28.8 28.8 0 0 0 8.8-21.4 29 29 0 0 0-8.8-21.3m-10 34a16.8 16.8 0 0 1-23.3 0 18.2 18.2 0 0 1-4.3-12.8 17.2 17.2 0 0 1 4.5-12.3 15.1 15.1 0 0 1 11.6-4.7 15.3 15.3 0 0 1 11.6 4.7 17.7 17.7 0 0 1 4.4 12.6 17.7 17.7 0 0 1-4.4 12.5M790 59h14v84h-14z" }) })), 'LearningPool');
|
|
@@ -11,8 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUIAutocomplete from '@mui/material/Autocomplete';
|
|
14
|
-
import { AutocompleteStyles } from './AutocompleteStyles';
|
|
15
14
|
var Autocomplete = function (props) {
|
|
16
|
-
return (_jsx(MUIAutocomplete, __assign({}, props
|
|
15
|
+
return (_jsx(MUIAutocomplete, __assign({}, props)));
|
|
17
16
|
};
|
|
18
17
|
export default Autocomplete;
|
|
@@ -9,7 +9,7 @@ declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
|
9
9
|
endIcon?: React.ReactNode;
|
|
10
10
|
fullWidth?: boolean | undefined;
|
|
11
11
|
href?: string | undefined;
|
|
12
|
-
size?: "small" | "
|
|
12
|
+
size?: "small" | "large" | "medium" | undefined;
|
|
13
13
|
startIcon?: React.ReactNode;
|
|
14
14
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
15
|
variant?: "text" | "outlined" | "contained" | undefined;
|
|
@@ -31,5 +31,5 @@ declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
|
31
31
|
touchRippleRef?: React.Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
32
32
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
33
33
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
34
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "
|
|
34
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "variant" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon">, keyof import("@mui/material/OverridableComponent").CommonProps | "form" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "checkedLink" | "valueLink" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "variant" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value"> & React.RefAttributes<HTMLButtonElement>>;
|
|
35
35
|
export default Button;
|
|
@@ -12,6 +12,5 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import MUIButton from '@mui/material/Button';
|
|
15
|
-
|
|
16
|
-
var Button = React.forwardRef(function (props, ref) { return (_jsx(MUIButton, __assign({ disableElevation: true, variant: 'contained' }, props, { classes: ButtonStyles().classes, ref: ref }))); });
|
|
15
|
+
var Button = React.forwardRef(function (props, ref) { return (_jsx(MUIButton, __assign({ disableElevation: true, variant: 'contained' }, props, { ref: ref }))); });
|
|
17
16
|
export default Button;
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUICheckbox from '@mui/material/Checkbox';
|
|
25
|
-
import { CheckboxStyles } from './CheckboxStyles';
|
|
26
25
|
export default function Checkbox(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUICheckbox, __assign({
|
|
27
|
+
return (_jsx(MUICheckbox, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUIIconButton from '@mui/material/IconButton';
|
|
14
|
-
|
|
15
|
-
var IconButton = function (props) { return (_jsx(MUIIconButton, __assign({ classes: IconButtonStyles().classes }, props))); };
|
|
14
|
+
var IconButton = function (props) { return (_jsx(MUIIconButton, __assign({}, props))); };
|
|
16
15
|
IconButton.muiName = 'MUIIconButton';
|
|
17
16
|
export default IconButton;
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIRadio from '@mui/material/Radio';
|
|
25
|
-
import { RadioStyles } from './RadioStyles';
|
|
26
25
|
export default function Radio(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIRadio, __assign({
|
|
27
|
+
return (_jsx(MUIRadio, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUISelect from '@mui/material/Select';
|
|
25
|
-
import { SelectStyles } from './SelectStyles';
|
|
26
25
|
export default function Select(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUISelect, __assign({
|
|
27
|
+
return (_jsx(MUISelect, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUISlider from '@mui/material/Slider';
|
|
25
|
-
import { SliderStyles } from './SliderStyles';
|
|
26
25
|
export default function Slider(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUISlider, __assign({
|
|
27
|
+
return (_jsx(MUISlider, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUISwitch from '@mui/material/Switch';
|
|
25
|
-
import { SwitchStyles } from './SwitchStyles';
|
|
26
25
|
export default function Switch(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUISwitch, __assign({
|
|
27
|
+
return (_jsx(MUISwitch, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUITextField from '@mui/material/TextField';
|
|
14
|
-
import { TextFieldStyles } from './TextFieldStyles';
|
|
15
14
|
export default function TextField(props) {
|
|
16
|
-
return (_jsx(MUITextField, __assign({
|
|
15
|
+
return (_jsx(MUITextField, __assign({}, props)));
|
|
17
16
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIToggleButton from '@mui/material/ToggleButton';
|
|
25
|
-
import { ToggleButtonStyles } from './ToggleButtonStyles';
|
|
26
25
|
export default function ToggleButton(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIToggleButton, __assign({
|
|
27
|
+
return (_jsx(MUIToggleButton, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -11,12 +11,26 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import MUIAvatar from '@mui/material/Avatar';
|
|
14
|
-
import { AvatarStyles } from './AvatarStyles';
|
|
15
14
|
import GlobalStyles from '@mui/material/GlobalStyles';
|
|
15
|
+
import { styled } from '@mui/material/styles';
|
|
16
|
+
var StyledAvatar = styled(MUIAvatar, { shouldForwardProp: function (prop) { return prop !== 'sx'; } })(function (_a) {
|
|
17
|
+
var _b;
|
|
18
|
+
var theme = _a.theme, sx = _a.sx;
|
|
19
|
+
return ({
|
|
20
|
+
backgroundColor: (sx === null || sx === void 0 ? void 0 : sx.bgcolor)
|
|
21
|
+
? sx.bgcolor
|
|
22
|
+
: theme.palette.primary.main,
|
|
23
|
+
color: (sx === null || sx === void 0 ? void 0 : sx.bgcolor)
|
|
24
|
+
? (_b = sx.color) !== null && _b !== void 0 ? _b : theme.palette.getContrastText(sx.bgcolor)
|
|
25
|
+
: theme.palette.primary.contrastText,
|
|
26
|
+
fontSize: '0.9rem',
|
|
27
|
+
textTransform: 'uppercase'
|
|
28
|
+
});
|
|
29
|
+
});
|
|
16
30
|
var Avatar = function (props) { return (_jsxs(_Fragment, { children: [_jsx(GlobalStyles, { styles: {
|
|
17
31
|
'.MuiAvatarGroup-root .MuiAvatar-root:first-of-type': {
|
|
18
32
|
backgroundColor: '#eee',
|
|
19
33
|
color: '#333'
|
|
20
34
|
}
|
|
21
|
-
} }), _jsx(
|
|
35
|
+
} }), _jsx(StyledAvatar, __assign({}, props))] })); };
|
|
22
36
|
export default Avatar;
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIChip from '@mui/material/Chip';
|
|
25
|
-
import { ChipStyles } from './ChipStyles';
|
|
26
25
|
export default function Chip(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIChip, __assign({
|
|
27
|
+
return (_jsx(MUIChip, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -11,6 +11,5 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUIList from '@mui/material/List';
|
|
14
|
-
|
|
15
|
-
var List = function (props) { return (_jsx(MUIList, __assign({}, props, { classes: ListStyles().classes }))); };
|
|
14
|
+
var List = function (props) { return (_jsx(MUIList, __assign({}, props))); };
|
|
16
15
|
export default List;
|
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUITooltip from '@mui/material/Tooltip';
|
|
14
|
-
|
|
15
|
-
var Tooltip = function (props) { return (_jsx(MUITooltip, __assign({}, props, { classes: TooltipStyles().classes }))); };
|
|
14
|
+
var Tooltip = function (props) { return (_jsx(MUITooltip, __assign({}, props))); };
|
|
16
15
|
Tooltip.muiName = 'MUITooltip';
|
|
17
16
|
export default Tooltip;
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIAlert from '@mui/material/Alert';
|
|
25
|
-
import { AlertStyles } from './AlertStyles';
|
|
26
25
|
export default function Alert(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIAlert, __assign({
|
|
27
|
+
return (_jsx(MUIAlert, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerProps } from '@mui/material/Drawer';
|
|
3
|
-
|
|
3
|
+
interface IDrawerProps extends DrawerProps {
|
|
4
|
+
component?: string | JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
declare const Drawer: React.ForwardRefExoticComponent<Pick<IDrawerProps, "className" | "style" | "classes" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "checkedLink" | "valueLink" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "variant" | "anchor" | "transitionDuration" | "elevation" | "open" | "onClose" | "components" | "componentsProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "container" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "component" | "ModalProps" | "PaperProps" | "SlideProps"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
7
|
export default Drawer;
|
|
@@ -9,8 +9,27 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
12
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import React from 'react';
|
|
13
25
|
import MUIDrawer from '@mui/material/Drawer';
|
|
14
|
-
import {
|
|
15
|
-
var
|
|
26
|
+
import { styled } from '@mui/material/styles';
|
|
27
|
+
var StyledDrawer = styled(MUIDrawer)(function (_a) {
|
|
28
|
+
var theme = _a.theme;
|
|
29
|
+
return ({});
|
|
30
|
+
});
|
|
31
|
+
var Drawer = React.forwardRef(function (_a, ref) {
|
|
32
|
+
var rest = __rest(_a, []);
|
|
33
|
+
return (_jsx(StyledDrawer, __assign({}, rest, { ref: ref })));
|
|
34
|
+
});
|
|
16
35
|
export default Drawer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface VerticalNaviationItemProps {
|
|
3
|
+
label: string;
|
|
4
|
+
icon: React.ReactElement;
|
|
5
|
+
onClick?: any;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface VerticalNaviationProps {
|
|
9
|
+
logo?: string;
|
|
10
|
+
logoText?: string;
|
|
11
|
+
items?: VerticalNaviationItemProps[];
|
|
12
|
+
secondaryItems?: VerticalNaviationItemProps[];
|
|
13
|
+
hasStreamHome?: boolean;
|
|
14
|
+
avatarName?: string;
|
|
15
|
+
isDrawerOpen?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const VerticalNavigation: (props: VerticalNaviationProps) => React.ReactElement;
|
|
18
|
+
export default VerticalNavigation;
|
|
@@ -0,0 +1,194 @@
|
|
|
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 React from 'react';
|
|
14
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
15
|
+
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
16
|
+
import { Avatar, Drawer as SSDrawer, List, ListItemText } from '../../../index';
|
|
17
|
+
import { Box, Link } from '@mui/material';
|
|
18
|
+
import MailIcon from '@mui/icons-material/Mail';
|
|
19
|
+
import { StreamSuiteLogo } from '../../../assets/Images';
|
|
20
|
+
import { AppSwitcher } from '@learningpool/app-switcher';
|
|
21
|
+
import { ChevronLeft, ChevronRight } from '@mui/icons-material';
|
|
22
|
+
import { DRAWER_WIDTH, paperStyles, openedMixin, closedMixin, DrawerHeader, ListItem, DrawerToggle, DrawerToggleHitboxContent, ListItemButton, ListItemAvatar, ListItemIcon } from './VerticalNavigationStyles';
|
|
23
|
+
var Drawer = styled(SSDrawer)(function (_a) {
|
|
24
|
+
var theme = _a.theme, open = _a.open;
|
|
25
|
+
return (__assign(__assign({ width: DRAWER_WIDTH.Expanded, flexShrink: 0, whiteSpace: 'nowrap', boxSizing: 'border-box', boxShadow: 'none' }, (open && __assign(__assign({}, openedMixin(theme)), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), openedMixin(theme)) }))), (!open && __assign(__assign({}, closedMixin(theme)), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), closedMixin(theme)) }))));
|
|
26
|
+
});
|
|
27
|
+
var VerticalNavigation = function (props) {
|
|
28
|
+
var _a;
|
|
29
|
+
var theme = useTheme();
|
|
30
|
+
var items = props.items, secondaryItems = props.secondaryItems, hasStreamHome = props.hasStreamHome, logo = props.logo, logoText = props.logoText;
|
|
31
|
+
var avatarName = (_a = props === null || props === void 0 ? void 0 : props.avatarName) !== null && _a !== void 0 ? _a : 'Avatar name';
|
|
32
|
+
var _b = React.useState(false), isDrawerOpen = _b[0], setIsDrawerOpen = _b[1];
|
|
33
|
+
var isMediumAndUp = useMediaQuery(theme.breakpoints.up('sm'));
|
|
34
|
+
var logoHeight = isMediumAndUp ? '46px' : '38px';
|
|
35
|
+
var logoWidth = isMediumAndUp ? '46px' : '38px';
|
|
36
|
+
var toggleDrawer = function (open) { return function (event) {
|
|
37
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
38
|
+
if (event.type === 'keydown') {
|
|
39
|
+
if (event.key === 'Tab' || event.key === 'Shift') {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
setIsDrawerOpen(open !== null && open !== void 0 ? open : !isDrawerOpen);
|
|
44
|
+
}; };
|
|
45
|
+
var listContent = function () {
|
|
46
|
+
var _a, _b, _c, _d;
|
|
47
|
+
return (_jsxs(Box
|
|
48
|
+
// onClick={toggleDrawer(false)}
|
|
49
|
+
// onKeyDown={toggleDrawer(false)}
|
|
50
|
+
, __assign({
|
|
51
|
+
// onClick={toggleDrawer(false)}
|
|
52
|
+
// onKeyDown={toggleDrawer(false)}
|
|
53
|
+
sx: {
|
|
54
|
+
display: 'flex',
|
|
55
|
+
flex: '1 auto',
|
|
56
|
+
flexDirection: 'column',
|
|
57
|
+
justifyContent: 'flex-start'
|
|
58
|
+
} }, { children: [_jsxs(DrawerHeader, { children: [logo
|
|
59
|
+
? (_jsx("img", { src: logo, height: logoHeight, width: logoWidth, style: {
|
|
60
|
+
marginRight: isMediumAndUp ? '20px' : '24px'
|
|
61
|
+
}, alt: "Site Logo" }))
|
|
62
|
+
: (_jsx(StreamSuiteLogo, { style: {
|
|
63
|
+
height: logoHeight,
|
|
64
|
+
width: logoWidth,
|
|
65
|
+
marginRight: isMediumAndUp ? '20px' : '24px',
|
|
66
|
+
fill: theme.palette.mode === 'dark'
|
|
67
|
+
? theme.palette.primary.contrastText
|
|
68
|
+
: theme.palette.primary.main
|
|
69
|
+
} })), _jsx(ListItemText, { primary: logoText !== null && logoText !== void 0 ? logoText : '' })] }), _jsxs("div", __assign({ style: {
|
|
70
|
+
display: 'flex',
|
|
71
|
+
justifyContent: 'flex-end',
|
|
72
|
+
height: 'auto',
|
|
73
|
+
marginTop: "-".concat(theme.spacing(0.5)),
|
|
74
|
+
position: 'relative',
|
|
75
|
+
transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
|
|
76
|
+
width: '100%',
|
|
77
|
+
zIndex: '-1'
|
|
78
|
+
} }, { children: [_jsx("div", { style: {
|
|
79
|
+
flex: '1',
|
|
80
|
+
width: 'auto',
|
|
81
|
+
height: 'auto',
|
|
82
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
83
|
+
? theme.palette.primary.main
|
|
84
|
+
: theme.palette.background.paper
|
|
85
|
+
} }), _jsx("div", { style: {
|
|
86
|
+
display: 'flex',
|
|
87
|
+
width: '45px',
|
|
88
|
+
height: '85px',
|
|
89
|
+
clipPath: 'url("#notch")',
|
|
90
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
91
|
+
? theme.palette.primary.main
|
|
92
|
+
: theme.palette.background.paper
|
|
93
|
+
} }), _jsx("div", { style: {
|
|
94
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
95
|
+
? theme.palette.primary.main
|
|
96
|
+
: theme.palette.background.paper,
|
|
97
|
+
height: '90px',
|
|
98
|
+
position: 'absolute',
|
|
99
|
+
right: '25px',
|
|
100
|
+
top: '-2px',
|
|
101
|
+
width: 'calc(100% - 25px)'
|
|
102
|
+
} })] })), _jsx("svg", __assign({ className: 'notch-svg', style: {
|
|
103
|
+
width: '0',
|
|
104
|
+
height: '0',
|
|
105
|
+
position: 'absolute'
|
|
106
|
+
} }, { children: _jsx("clipPath", __assign({ id: 'notch', clipPathUnits: 'objectBoundingBox' }, { children: _jsx("path", { d: 'M1,0 H0 v1 h1 v-0.105 c-0.017,-0.074,-0.109,-0.132,-0.168,-0.146 l-0.008,-0.002 a0.5,0.265,0,0,1,0.006,-0.493 c0.062,-0.015,0.16,-0.079,0.169,-0.158 V0' }) })) })), _jsx(List, __assign({ sx: {
|
|
107
|
+
height: '100%',
|
|
108
|
+
// padding: `${theme.spacing(0)} 10px`,
|
|
109
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
110
|
+
? theme.palette.primary.main
|
|
111
|
+
: theme.palette.background.paper,
|
|
112
|
+
marginTop: "-".concat(theme.spacing(0.5))
|
|
113
|
+
} }, { children: items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
|
114
|
+
var _a;
|
|
115
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
|
|
116
|
+
// @ts-expect-error
|
|
117
|
+
, __assign({
|
|
118
|
+
// @ts-expect-error
|
|
119
|
+
component: Link, onClick: item.onClick, isActive: item.isActive }, { children: [_jsx(ListItemIcon, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) }), _jsx(ListItemText, { primary: item.label })] }), item.label) })));
|
|
120
|
+
}) })), _jsxs(List, __assign({ sx: {
|
|
121
|
+
marginTop: 'auto',
|
|
122
|
+
backgroundColor: theme.palette.mode === 'dark'
|
|
123
|
+
? theme.palette.primary.main
|
|
124
|
+
: theme.palette.background.paper
|
|
125
|
+
} }, { children: [hasStreamHome
|
|
126
|
+
? (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ sx: {
|
|
127
|
+
minHeight: 48,
|
|
128
|
+
justifyContent: isDrawerOpen ? 'initial' : 'center'
|
|
129
|
+
} }, { children: [_jsx(ListItemIcon, __assign({ sx: {
|
|
130
|
+
minWidth: 0,
|
|
131
|
+
mr: isDrawerOpen ? 2.5 : 'auto',
|
|
132
|
+
justifyContent: 'center'
|
|
133
|
+
} }, { children: _jsx(AppSwitcher, { apiKey: (_b = (_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.REACT_APP_STREAM_HOME_API_KEY) !== null && _b !== void 0 ? _b : '7wxswYRq238tj65RVina32VSzmpGamju7Edvbrab', baseUrl: (_d = (_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c.REACT_APP_STREAM_HOME_API_URL) !== null && _d !== void 0 ? _d : 'https://6cqjg9ua08.execute-api.us-east-1.amazonaws.com/dev-api', token: 'hfcfgcgfcgfhcfhgcfg' }) })), _jsx(ListItemText, { primary: 'App switcher', sx: { opacity: isDrawerOpen ? 1 : 0 } })] })) })))
|
|
134
|
+
: null, secondaryItems === null || secondaryItems === void 0 ? void 0 : secondaryItems.map(function (item, index) {
|
|
135
|
+
var _a;
|
|
136
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
|
|
137
|
+
// @ts-expect-error
|
|
138
|
+
, __assign({
|
|
139
|
+
// @ts-expect-error
|
|
140
|
+
component: Link, onClick: item.onClick, isActive: item.isActive }, { children: [_jsx(ListItemIcon, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) }), _jsx(ListItemText, { primary: item.label })] }), item.label) })));
|
|
141
|
+
}), _jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemAvatar
|
|
142
|
+
// @ts-expect-error
|
|
143
|
+
, __assign({
|
|
144
|
+
// @ts-expect-error
|
|
145
|
+
component: Link }, { children: [_jsx(ListItemIcon, __assign({ sx: { mr: isDrawerOpen ? 3.5 : 'auto' } }, { children: _jsxs(Avatar, __assign({ sx: {
|
|
146
|
+
bgcolor: theme.palette.mode === 'dark'
|
|
147
|
+
? theme.palette.primary.contrastText
|
|
148
|
+
: theme.palette.primary.main
|
|
149
|
+
} }, { children: [avatarName.split(' ')[0][0], avatarName.split(' ')[1][0]] })) })), _jsx(ListItemText, { primary: avatarName, sx: {
|
|
150
|
+
opacity: isDrawerOpen ? 1 : 0,
|
|
151
|
+
textAlign: 'left'
|
|
152
|
+
} })] })) }))] }))] })));
|
|
153
|
+
};
|
|
154
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: 'drawerShadow', style: {
|
|
155
|
+
position: 'fixed',
|
|
156
|
+
top: '0',
|
|
157
|
+
left: '27px',
|
|
158
|
+
content: '',
|
|
159
|
+
background: 'rgba(0,0,0,0.125)',
|
|
160
|
+
height: '100%',
|
|
161
|
+
width: '40px',
|
|
162
|
+
display: 'block',
|
|
163
|
+
visibility: 'visible',
|
|
164
|
+
filter: 'blur(13px)'
|
|
165
|
+
} }), _jsx(DrawerToggle, __assign({ onClick: toggleDrawer(!isDrawerOpen), "aria-label": isDrawerOpen ? 'Close drawer' : 'Open drawer', "aria-expanded": isDrawerOpen ? 'true' : 'false', "aria-controls": "vertical-navigation", sx: {
|
|
166
|
+
left: isDrawerOpen ? '229px' : (isMediumAndUp ? '44px' : '36px')
|
|
167
|
+
} }, { children: _jsx(DrawerToggleHitboxContent, { children: isDrawerOpen
|
|
168
|
+
? (_jsx(ChevronLeft, { sx: {
|
|
169
|
+
fontSize: '1.75rem',
|
|
170
|
+
height: '1.75rem',
|
|
171
|
+
width: '1.75rem'
|
|
172
|
+
} }))
|
|
173
|
+
: (_jsx(ChevronRight, { sx: {
|
|
174
|
+
fontSize: '1.75rem',
|
|
175
|
+
height: '1.75rem',
|
|
176
|
+
width: '1.75rem'
|
|
177
|
+
} })) }) })), _jsx(Drawer, __assign({ "aria-label": "Navigation menu", id: "vertical-navigation", component: 'aside', role: "complementary", anchor: 'left', open: isDrawerOpen, onClose: toggleDrawer(false), ModalProps: {
|
|
178
|
+
keepMounted: true
|
|
179
|
+
}, sx: {
|
|
180
|
+
'.MuiDrawer-paper': {
|
|
181
|
+
background: 'transparent none',
|
|
182
|
+
boxShadow: 'none',
|
|
183
|
+
visibility: 'visible !important',
|
|
184
|
+
transform: 'translateX(0) !important',
|
|
185
|
+
// width: isDrawerOpen
|
|
186
|
+
// ? `${DRAWER_WIDTH.Expanded}px`
|
|
187
|
+
// : `${DRAWER_WIDTH.Collapsed}px`,
|
|
188
|
+
// boxShadow: 'none',
|
|
189
|
+
overflow: 'hidden',
|
|
190
|
+
transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important'
|
|
191
|
+
}
|
|
192
|
+
} }, { children: listContent() }))] }));
|
|
193
|
+
};
|
|
194
|
+
export default VerticalNavigation;
|