@learningpool/ui 1.4.0-beta.1 → 1.4.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/components/atoms/Autocomplete/Autocomplete.js +1 -2
  2. package/components/atoms/Button/Button.js +1 -2
  3. package/components/atoms/Checkbox/Checkbox.js +1 -2
  4. package/components/atoms/IconButton/IconButton.js +1 -2
  5. package/components/atoms/Radio/Radio.js +1 -2
  6. package/components/atoms/Select/Select.js +1 -2
  7. package/components/atoms/Slider/Slider.js +1 -2
  8. package/components/atoms/Switch/Switch.js +1 -2
  9. package/components/atoms/TextField/TextField.js +1 -2
  10. package/components/atoms/ToggleButton/ToggleButton.js +1 -2
  11. package/components/datadisplay/Chip/Chip.js +1 -2
  12. package/components/datadisplay/List/List.js +1 -2
  13. package/components/datadisplay/Tooltip/Tooltip.js +1 -2
  14. package/components/feedback/Alert/Alert.js +1 -2
  15. package/components/navigation/Drawer/Drawer.d.ts +1 -1
  16. package/components/navigation/VerticalNavigation/VerticalNavigation.js +83 -86
  17. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +1 -1
  18. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +8 -7
  19. package/components/pages/ErrorPage/ErrorPage.d.ts +8 -0
  20. package/components/pages/ErrorPage/ErrorPage.js +27 -0
  21. package/components/pages/ErrorPage/ErrorPageStyles.d.ts +28 -0
  22. package/components/pages/ErrorPage/ErrorPageStyles.js +32 -0
  23. package/components/pages/SideInSide/SideInSideStyles.d.ts +8 -3
  24. package/index.d.ts +2 -0
  25. package/index.js +2 -0
  26. package/package.json +12 -12
  27. package/readme.md +8 -8
  28. package/components/atoms/Autocomplete/AutocompleteStyles.d.ts +0 -7
  29. package/components/atoms/Autocomplete/AutocompleteStyles.js +0 -2
  30. package/components/atoms/Button/ButtonStyles.d.ts +0 -7
  31. package/components/atoms/Button/ButtonStyles.js +0 -2
  32. package/components/atoms/Checkbox/CheckboxStyles.d.ts +0 -7
  33. package/components/atoms/Checkbox/CheckboxStyles.js +0 -2
  34. package/components/atoms/IconButton/IconButtonStyles.d.ts +0 -7
  35. package/components/atoms/IconButton/IconButtonStyles.js +0 -2
  36. package/components/atoms/Radio/RadioStyles.d.ts +0 -7
  37. package/components/atoms/Radio/RadioStyles.js +0 -2
  38. package/components/atoms/Select/SelectStyles.d.ts +0 -7
  39. package/components/atoms/Select/SelectStyles.js +0 -2
  40. package/components/atoms/Slider/SliderStyles.d.ts +0 -7
  41. package/components/atoms/Slider/SliderStyles.js +0 -2
  42. package/components/atoms/Switch/SwitchStyles.d.ts +0 -7
  43. package/components/atoms/Switch/SwitchStyles.js +0 -2
  44. package/components/atoms/TextField/TextFieldStyles.d.ts +0 -7
  45. package/components/atoms/TextField/TextFieldStyles.js +0 -2
  46. package/components/atoms/ToggleButton/ToggleButtonStyles.d.ts +0 -7
  47. package/components/atoms/ToggleButton/ToggleButtonStyles.js +0 -2
  48. package/components/datadisplay/Avatar/AvatarStyles.d.ts +0 -7
  49. package/components/datadisplay/Avatar/AvatarStyles.js +0 -14
  50. package/components/datadisplay/Chip/ChipStyles.d.ts +0 -7
  51. package/components/datadisplay/Chip/ChipStyles.js +0 -2
  52. package/components/datadisplay/List/ListStyles.d.ts +0 -7
  53. package/components/datadisplay/List/ListStyles.js +0 -2
  54. package/components/datadisplay/Tooltip/TooltipStyles.d.ts +0 -7
  55. package/components/datadisplay/Tooltip/TooltipStyles.js +0 -2
  56. package/components/feedback/Alert/AlertStyles.d.ts +0 -7
  57. package/components/feedback/Alert/AlertStyles.js +0 -2
@@ -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, { classes: AutocompleteStyles().classes })));
15
+ return (_jsx(MUIAutocomplete, __assign({}, props)));
17
16
  };
18
17
  export default Autocomplete;
@@ -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
- import { ButtonStyles } from './ButtonStyles';
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({ classes: CheckboxStyles().classes }, rest)));
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
- import { IconButtonStyles } from './IconButtonStyles';
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({ classes: RadioStyles().classes }, rest)));
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({ classes: SelectStyles().classes }, rest)));
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({ classes: SliderStyles().classes }, rest)));
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({ classes: SwitchStyles().classes }, rest)));
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({ classes: TextFieldStyles().classes }, props)));
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({ classes: ToggleButtonStyles().classes }, rest)));
27
+ return (_jsx(MUIToggleButton, __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 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({ classes: ChipStyles().classes }, rest)));
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
- import { ListStyles } from './ListStyles';
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
- import { TooltipStyles } from './TooltipStyles';
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({ classes: AlertStyles().classes }, rest)));
27
+ return (_jsx(MUIAlert, __assign({}, rest)));
29
28
  }
@@ -3,5 +3,5 @@ import { DrawerProps } from '@mui/material/Drawer';
3
3
  interface IDrawerProps extends DrawerProps {
4
4
  component?: string | JSX.Element;
5
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" | "components" | "componentsProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "container" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onClose" | "component" | "ModalProps" | "PaperProps" | "SlideProps"> & React.RefAttributes<HTMLDivElement>>;
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>>;
7
7
  export default Drawer;
@@ -9,11 +9,11 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import React from 'react';
14
14
  import { styled, useTheme } from '@mui/material/styles';
15
15
  import useMediaQuery from '@mui/material/useMediaQuery';
16
- import { Avatar, Drawer as SSDrawer, List, ListItemText } from '../../../index';
16
+ import { Avatar, Drawer as SSDrawer, Modal, List, ListItemText } from '../../../index';
17
17
  import { Box, Link } from '@mui/material';
18
18
  import MailIcon from '@mui/icons-material/Mail';
19
19
  import { StreamSuiteLogo } from '../../../assets/Images';
@@ -44,13 +44,7 @@ var VerticalNavigation = function (props) {
44
44
  }; };
45
45
  var listContent = function () {
46
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: {
47
+ return (_jsxs(Box, __assign({ sx: {
54
48
  display: 'flex',
55
49
  flex: '1 auto',
56
50
  flexDirection: 'column',
@@ -72,7 +66,7 @@ var VerticalNavigation = function (props) {
72
66
  height: 'auto',
73
67
  marginTop: "-".concat(theme.spacing(0.5)),
74
68
  position: 'relative',
75
- transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
69
+ transition: 'width 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important',
76
70
  width: '100%',
77
71
  zIndex: '-1'
78
72
  } }, { children: [_jsx("div", { style: {
@@ -103,58 +97,65 @@ var VerticalNavigation = function (props) {
103
97
  width: '0',
104
98
  height: '0',
105
99
  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({
100
+ } }, { 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' }) })) })), _jsxs("nav", __assign({ style: {
101
+ display: 'flex',
102
+ flex: '1 auto',
103
+ flexDirection: 'column',
104
+ justifyContent: 'flex-start'
105
+ } }, { children: [_jsx(List, __assign({ sx: {
106
+ height: '100%',
107
+ backgroundColor: theme.palette.mode === 'dark'
108
+ ? theme.palette.primary.main
109
+ : theme.palette.background.paper,
110
+ marginTop: "-".concat(theme.spacing(0.5)),
111
+ overflow: 'hidden'
112
+ } }, { children: items === null || items === void 0 ? void 0 : items.map(function (item, index) {
113
+ var _a;
114
+ return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
115
+ // @ts-expect-error
116
+ , __assign({
117
+ // @ts-expect-error
118
+ 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) })));
119
+ }) })), _jsxs(List, __assign({ sx: {
120
+ marginTop: 'auto',
121
+ backgroundColor: theme.palette.mode === 'dark'
122
+ ? theme.palette.primary.main
123
+ : theme.palette.background.paper
124
+ } }, { children: [hasStreamHome
125
+ ? (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ sx: {
126
+ minHeight: 48,
127
+ justifyContent: isDrawerOpen ? 'initial' : 'center'
128
+ } }, { children: [_jsx(ListItemIcon, __assign({ sx: {
129
+ minWidth: 0,
130
+ mr: isDrawerOpen ? 2.5 : 'auto',
131
+ justifyContent: 'center'
132
+ } }, { 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 } })] })) })))
133
+ : null, secondaryItems === null || secondaryItems === void 0 ? void 0 : secondaryItems.map(function (item, index) {
134
+ var _a;
135
+ return (_jsx(ListItem, { children: _jsxs(ListItemButton
136
+ // @ts-expect-error
137
+ , __assign({
138
+ // @ts-expect-error
139
+ 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) }));
140
+ }), _jsx(ListItem, __assign({ disablePadding: true, sx: {
141
+ overflow: 'hidden'
142
+ } }, { children: _jsxs(ListItemAvatar
139
143
  // @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
- } })] })) }))] }))] })));
144
+ , __assign({
145
+ // @ts-expect-error
146
+ component: Link }, { children: [_jsx(ListItemIcon, __assign({ sx: { mr: 3 } }, { children: _jsxs(Avatar, __assign({ sx: {
147
+ bgcolor: theme.palette.mode === 'dark'
148
+ ? theme.palette.primary.contrastText
149
+ : theme.palette.primary.main
150
+ } }, { children: [avatarName.split(' ')[0][0], avatarName.split(' ')[1][0]] })) })), _jsx(ListItemText, { primary: avatarName })] })) }))] }))] }))] })));
153
151
  };
154
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: 'drawerShadow', style: {
152
+ return (_jsxs("aside", { children: [_jsx("div", { className: 'drawerShadow', "aria-hidden": 'true', style: {
155
153
  position: 'fixed',
156
154
  top: '0',
157
- left: '27px',
155
+ left: isDrawerOpen
156
+ ? '212px'
157
+ : (isMediumAndUp ? '27px' : '19px'),
158
+ transition: 'left 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms',
158
159
  content: '',
159
160
  background: 'rgba(0,0,0,0.125)',
160
161
  height: '100%',
@@ -162,33 +163,29 @@ var VerticalNavigation = function (props) {
162
163
  display: 'block',
163
164
  visibility: 'visible',
164
165
  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() }))] }));
166
+ } }), _jsx(Modal, __assign({ keepMounted: true, disablePortal: true, open: isDrawerOpen, onClose: toggleDrawer(false) }, { children: _jsxs(Drawer, __assign({ "aria-label": 'Navigation Menu', id: 'vertical-navigation', anchor: 'left', open: isDrawerOpen, onClose: toggleDrawer(false), ModalProps: {
167
+ keepMounted: true
168
+ }, variant: 'permanent', sx: {
169
+ '.MuiDrawer-paper': {
170
+ background: 'transparent none',
171
+ boxShadow: 'none',
172
+ visibility: 'visible !important',
173
+ transform: 'translateX(0) !important',
174
+ overflow: 'hidden',
175
+ transition: 'width 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important'
176
+ }
177
+ } }, { children: [_jsx(DrawerToggle, __assign({ onClick: toggleDrawer(!isDrawerOpen), "aria-label": isDrawerOpen ? 'Close Navigation Menu' : 'Open Navigation Menu', "aria-expanded": isDrawerOpen ? 'true' : 'false', "aria-controls": "vertical-navigation", sx: {
178
+ left: isDrawerOpen ? '229px' : (isMediumAndUp ? '44px' : '36px')
179
+ } }, { children: _jsx(DrawerToggleHitboxContent, { children: isDrawerOpen
180
+ ? (_jsx(ChevronLeft, { sx: {
181
+ fontSize: '1.75rem',
182
+ height: '1.75rem',
183
+ width: '1.75rem'
184
+ } }))
185
+ : (_jsx(ChevronRight, { sx: {
186
+ fontSize: '1.75rem',
187
+ height: '1.75rem',
188
+ width: '1.75rem'
189
+ } })) }) })), listContent()] })) }))] }));
193
190
  };
194
191
  export default VerticalNavigation;
@@ -21,7 +21,7 @@ export declare const ListItem: import("@emotion/styled").StyledComponent<{
21
21
  } | undefined;
22
22
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
23
23
  ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
24
- }, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "ContainerComponent" | "ContainerProps" | "disableGutters" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
24
+ }, "className" | "style" | "classes" | "button" | "children" | "sx" | "alignItems" | "disabled" | "autoFocus" | "selected" | "dense" | "components" | "componentsProps" | "disablePadding" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "divider" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
25
25
  export declare const DrawerToggle: import("@emotion/styled").StyledComponent<{
26
26
  children?: import("react").ReactNode;
27
27
  classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
@@ -23,31 +23,32 @@ export var paperStyles = function (theme) { return ({
23
23
  color: theme.palette.mode === 'dark'
24
24
  ? theme.palette.primary.contrastText
25
25
  : theme.palette.getContrastText(theme.palette.background.paper),
26
- boxShadow: 'none'
26
+ boxShadow: 'none',
27
+ overflow: 'visible !important'
27
28
  }); };
28
29
  export var openedMixin = function (theme) { return ({
29
30
  width: DRAWER_WIDTH.Expanded,
30
- transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
31
- overflowX: 'hidden',
31
+ transition: 'width 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important',
32
+ overflowX: 'visible',
32
33
  boxShadow: 'none'
33
34
  }); };
34
35
  export var closedMixin = function (theme) {
35
36
  var _a;
36
37
  return (_a = {
37
- transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
38
+ transition: 'width 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important',
38
39
  width: "calc(".concat(theme.spacing(7), " + 1px)")
39
40
  },
40
41
  _a[theme.breakpoints.up('sm')] = {
41
42
  width: "calc(".concat(theme.spacing(8), " + 1px)")
42
43
  },
43
- _a.overflowX = 'hidden',
44
+ _a.overflowX = 'visible',
44
45
  _a.boxShadow = theme.shadows[1],
45
46
  _a);
46
47
  };
47
48
  export var DrawerHeader = styled('div')(function (_a) {
48
49
  var _b;
49
50
  var theme = _a.theme;
50
- return (__assign(__assign({ display: 'flex', alignItems: 'center', justifyContent: 'flex-start', padding: "".concat(theme.spacing(1), " 10px 0") }, theme.mixins.toolbar), (_b = { backgroundColor: theme.palette.mode === 'dark'
51
+ return (__assign(__assign({ display: 'flex', alignItems: 'center', justifyContent: 'flex-start', overflow: 'hidden', padding: "".concat(theme.spacing(1), " 10px 0") }, theme.mixins.toolbar), (_b = { backgroundColor: theme.palette.mode === 'dark'
51
52
  ? theme.palette.primary.main
52
53
  : theme.palette.background.paper, minHeight: '56px !important' }, _b[theme.breakpoints.up('sm')] = {
53
54
  minHeight: '64px !important'
@@ -85,7 +86,7 @@ export var DrawerToggle = styled(IconButton)(function (_a) {
85
86
  paddingRight: theme.spacing(2.5),
86
87
  top: '88.5px'
87
88
  },
88
- _b.transition = 'left 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
89
+ _b.transition = 'all 225ms cubic-bezier(0.4, 0.0, 0.6, 1) 0ms !important',
89
90
  _b);
90
91
  });
91
92
  export var DrawerToggleHitboxContent = styled('span')(function (_a) {
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface ErrorPageProps {
3
+ errorCode: string;
4
+ errorTitle: string;
5
+ errorMessage: string;
6
+ }
7
+ export default function ErrorPage(props: ErrorPageProps): React.ReactElement;
8
+ export {};
@@ -0,0 +1,27 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { LearningPoolLogo } from '../../../assets/Images';
14
+ import CssBaseline from '@mui/material/CssBaseline';
15
+ import Typography from '@mui/material/Typography';
16
+ import { createTheme, ThemeProvider } from '@mui/material/styles';
17
+ import { StyledContainer, StyledBox, StyledLogoBox } from './ErrorPageStyles';
18
+ export default function ErrorPage(props) {
19
+ var errorCode = props.errorCode, errorTitle = props.errorTitle, errorMessage = props.errorMessage;
20
+ var theme = createTheme();
21
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(StyledContainer, __assign({ component: 'main' }, { children: [_jsx(CssBaseline, {}), _jsxs(StyledBox, { children: [_jsxs(Typography, __assign({ component: 'h1', variant: 'h4', sx: {
22
+ mb: 2
23
+ } }, { children: [errorCode ? (_jsxs("span", { children: [errorCode, " | "] })) : '', _jsx("span", { children: errorTitle })] })), _jsx(Typography, __assign({ variant: 'body1', sx: {
24
+ color: 'text.secondary',
25
+ mb: 3
26
+ } }, { children: errorMessage }))] }), _jsx(StyledLogoBox, { children: _jsx(LearningPoolLogo, { inheritViewBox: true, style: { width: '200px', height: '45px' } }) })] })) })));
27
+ }
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react-addons-linked-state-mixin" />
3
+ export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
4
+ children?: import("react").ReactNode;
5
+ classes?: Partial<import("@mui/material/Container").ContainerClasses> | undefined;
6
+ disableGutters?: boolean | undefined;
7
+ fixed?: boolean | undefined;
8
+ maxWidth?: false | import("@mui/material/styles").Breakpoint | undefined;
9
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
10
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
11
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "fixed" | "maxWidth" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
13
+ export declare const StyledBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
14
+ children?: import("react").ReactNode;
15
+ component?: import("react").ElementType<any> | undefined;
16
+ ref?: import("react").Ref<unknown> | undefined;
17
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
19
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
20
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
21
+ export declare const StyledLogoBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
22
+ children?: import("react").ReactNode;
23
+ component?: import("react").ElementType<any> | undefined;
24
+ ref?: import("react").Ref<unknown> | undefined;
25
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
26
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
27
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
28
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,32 @@
1
+ import Box from '@mui/material/Box';
2
+ import Container from '@mui/material/Container';
3
+ import { styled } from '@mui/material/styles';
4
+ export var StyledContainer = styled(Container)(function () { return ({
5
+ display: 'flex',
6
+ flexDirection: 'column',
7
+ height: '100vh',
8
+ textAlign: 'center'
9
+ }); });
10
+ export var StyledBox = styled(Box)(function () { return ({
11
+ alignItems: 'center',
12
+ display: 'flex',
13
+ flex: '1',
14
+ flexDirection: 'column',
15
+ height: '100%',
16
+ justifyContent: 'center',
17
+ overflow: 'hidden'
18
+ }); });
19
+ export var StyledLogoBox = styled(Box)(function (_a) {
20
+ var _b;
21
+ var theme = _a.theme;
22
+ return (_b = {
23
+ alignSelf: 'center',
24
+ marginRight: 0,
25
+ marginBottom: theme.spacing(5)
26
+ },
27
+ _b[theme.breakpoints.up('md')] = {
28
+ alignSelf: 'flex-end',
29
+ marginRight: theme.spacing(5)
30
+ },
31
+ _b);
32
+ });
@@ -1,7 +1,12 @@
1
1
  import { Theme } from '@mui/material/styles';
2
- export declare const SideInSideStyles: (params: void) => {
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) => {
3
8
  classes: Record<"root" | "pageBackgroundContainer" | "pageBackgroundLogoContainer" | "pageBackgroundLogo" | "contentPanel" | "contentPanelImageContainer" | "contentPanelImage" | "submitButton" | "streamHomeButton" | "footerContent", string>;
4
9
  theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
10
+ css: import("tss-react/types").Css;
11
+ cx: import("tss-react/types").Cx;
7
12
  };
package/index.d.ts CHANGED
@@ -7,8 +7,10 @@ export { default as Drawer } from './components/navigation/Drawer/Drawer';
7
7
  export { default as List } from './components/datadisplay/List/List';
8
8
  export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
9
9
  export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
10
+ export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
10
11
  export { default as AvatarGroup } from '@mui/material/AvatarGroup';
11
12
  export { default as Backdrop } from '@mui/material/Backdrop';
13
+ export { default as Modal } from '@mui/material/Modal';
12
14
  export { default as CircularProgress } from '@mui/material/CircularProgress';
13
15
  export { default as LinearProgress } from '@mui/material/LinearProgress';
14
16
  export { default as ListItem } from '@mui/material/ListItem';
package/index.js CHANGED
@@ -8,9 +8,11 @@ export { default as Drawer } from './components/navigation/Drawer/Drawer';
8
8
  export { default as List } from './components/datadisplay/List/List';
9
9
  export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
10
10
  export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
11
+ export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
11
12
  // Straight through MUI
12
13
  export { default as AvatarGroup } from '@mui/material/AvatarGroup';
13
14
  export { default as Backdrop } from '@mui/material/Backdrop';
15
+ export { default as Modal } from '@mui/material/Modal';
14
16
  export { default as CircularProgress } from '@mui/material/CircularProgress';
15
17
  export { default as LinearProgress } from '@mui/material/LinearProgress';
16
18
  export { default as ListItem } from '@mui/material/ListItem';
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
- "version": "1.4.0-beta.1",
12
+ "version": "1.4.0-beta.4",
13
13
  "private": false,
14
14
  "main": "dist/index.js",
15
15
  "module": "dist/index.js",
@@ -17,8 +17,8 @@
17
17
  "@emotion/react": "^11.7.1",
18
18
  "@emotion/styled": "^11.6.0",
19
19
  "@learningpool/app-switcher": "^1.0.4",
20
- "@mui/icons-material": "^5.4.1",
21
- "@mui/material": "^5.3.1",
20
+ "@mui/icons-material": "^5.8.4",
21
+ "@mui/material": "^5.8.5",
22
22
  "@testing-library/jest-dom": "^5.16.1",
23
23
  "@testing-library/react": "^12.1.2",
24
24
  "@testing-library/user-event": "^13.5.0",
@@ -39,15 +39,15 @@
39
39
  "analyze:build": "source-map-explorer 'build/static/js/*.js'",
40
40
  "analyze:module": "source-map-explorer 'dist/*.js'",
41
41
  "build": "build-storybook",
42
- "build:module": "rm -rf dist && yarn run tsc && yarn run generate:package",
42
+ "build:module": "rm -rf dist && tsc && npm run generate:package",
43
43
  "generate:package": "node ./merge.js",
44
44
  "lint": "eslint --ext .tsx ./src",
45
45
  "lint:fix": "eslint --ext .tsx ./src --fix",
46
46
  "semantic-release": "ht2-release-public-circleci-lib-dist",
47
47
  "start": "start-storybook -p 6006",
48
- "start:run-tests": "yarn test:generate-output && yarn start",
48
+ "start:run-tests": "npm run test:generate-output && npm run start",
49
49
  "test": "jest",
50
- "test:u": "jest --updateSnapshot && yarn run lint:fix",
50
+ "test:u": "jest --updateSnapshot && npm run lint:fix",
51
51
  "test:update-snapshot": "test:u",
52
52
  "test:generate-output": "jest --json --outputFile=.jest-test-results.json"
53
53
  },
@@ -64,11 +64,11 @@
64
64
  ]
65
65
  },
66
66
  "devDependencies": {
67
- "@babel/cli": "7.17.6",
68
- "@babel/core": "7.17.8",
69
- "@babel/preset-env": "7.16.11",
70
- "@babel/preset-react": "7.16.7",
71
- "@babel/preset-typescript": "7.16.7",
67
+ "@babel/cli": "7.17.10",
68
+ "@babel/core": "7.18.5",
69
+ "@babel/preset-env": "7.18.2",
70
+ "@babel/preset-react": "7.17.12",
71
+ "@babel/preset-typescript": "7.17.12",
72
72
  "@ht2-labs/semantic-release": "3.0.0",
73
73
  "@storybook/addon-a11y": "6.5.6",
74
74
  "@storybook/addon-actions": "6.5.6",
@@ -86,7 +86,7 @@
86
86
  "eslint-config-standard": "16.0.3",
87
87
  "eslint-config-standard-with-typescript": "21.0.1",
88
88
  "eslint-plugin-node": "11.1.0",
89
- "eslint-plugin-promise": "6.0.0",
89
+ "eslint-plugin-promise": "4.3.1",
90
90
  "source-map-explorer": "2.5.2",
91
91
  "source-map-loader": "3.0.1",
92
92
  "ts-node": "10.8.0",
package/readme.md CHANGED
@@ -14,13 +14,13 @@ Our documentation is provided via [Storybook](https://storybook.js.org) and our
14
14
 
15
15
  First clone the repo then run:
16
16
 
17
- ### `yarn install`
17
+ ### `npm install`
18
18
 
19
19
  ## Available Scripts
20
20
 
21
21
  In the project directory, you can run:
22
22
 
23
- ### `yarn start`
23
+ ### `npm run start`
24
24
 
25
25
  Runs the app in the development mode.\
26
26
  Open [http://localhost:6006](http://localhost:6006) to view it in the browser.
@@ -28,19 +28,19 @@ Open [http://localhost:6006](http://localhost:6006) to view it in the browser.
28
28
  The page will reload if you make edits.\
29
29
  You will also see any lint errors in the console.
30
30
 
31
- ### `yarn start:run-test`
32
- The same as the `yarn start` command but runs the `yarn test:generate-output` command first, so the test results displayed within Storybook are up-to-date.
31
+ ### `npm run start:run-test`
32
+ The same as the `npm run start` command but runs the `npm run test:generate-output` command first, so the test results displayed within Storybook are up-to-date.
33
33
 
34
- ### `yarn build-storybook`
34
+ ### `npm run build-storybook`
35
35
  Builds the Storybook app for pushing to the public subdomain.
36
36
 
37
- ### `yarn test`
37
+ ### `npm run test`
38
38
  Runs the component Jest tests. If its the first run it also takes a snapshot for comparison, on successive runs.
39
39
 
40
- ### `yarn test:update-snapshot`
40
+ ### `npm run test:update-snapshot`
41
41
  Updates the Jest snapshot.
42
42
 
43
- ### `yarn test:generate-output`
43
+ ### `npm run test:generate-output`
44
44
  Runs the tests and outputs the results to a file `.jest-test-results.json` for use within the [Storybook addon Jest](https://storybook.js.org/addons/@storybook/addon-jest/)
45
45
 
46
46
  ## Getting started
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const AutocompleteStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var AutocompleteStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const ButtonStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var ButtonStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const CheckboxStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var CheckboxStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const IconButtonStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var IconButtonStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const RadioStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var RadioStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const SelectStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var SelectStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const SliderStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var SliderStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const SwitchStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var SwitchStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const TextFieldStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var TextFieldStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const ToggleButtonStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var ToggleButtonStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const AvatarStyles: (params: void) => {
3
- classes: Record<"root", string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,14 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var AvatarStyles = makeStyles()(function (theme, props) {
3
- var _a, _b, _c;
4
- return ({
5
- root: {
6
- backgroundColor: ((_a = props === null || props === void 0 ? void 0 : props.sx) === null || _a === void 0 ? void 0 : _a.bgcolor)
7
- ? props.sx.bgcolor
8
- : theme.palette.primary.main,
9
- color: ((_b = props === null || props === void 0 ? void 0 : props.sx) === null || _b === void 0 ? void 0 : _b.bgcolor)
10
- ? (_c = props.sx.color) !== null && _c !== void 0 ? _c : theme.palette.getContrastText(props.sx.bgcolor)
11
- : theme.palette.primary.contrastText
12
- }
13
- });
14
- });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const ChipStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var ChipStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const ListStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var ListStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const TooltipStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var TooltipStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const AlertStyles: (params: void) => {
3
- classes: Record<never, string>;
4
- theme: Theme;
5
- css: import("tss-react").Css;
6
- cx: import("tss-react").Cx;
7
- };
@@ -1,2 +0,0 @@
1
- import { makeStyles } from 'tss-react/mui';
2
- export var AlertStyles = makeStyles()(function (theme) { return ({}); });