@learningpool/ui 1.2.1 → 1.3.0-beta.2

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.
@@ -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
+ };
@@ -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');
@@ -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" | "medium" | "large" | undefined;
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" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant">, keyof import("@mui/material/OverridableComponent").CommonProps | "form" | "slot" | "title" | "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" | "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" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value"> & React.RefAttributes<HTMLButtonElement>>;
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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { AvatarProps } from '@mui/material/Avatar';
3
+ declare const Avatar: (props: AvatarProps | any) => React.ReactElement;
4
+ export default Avatar;
@@ -0,0 +1,36 @@
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import MUIAvatar from '@mui/material/Avatar';
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
+ });
30
+ var Avatar = function (props) { return (_jsxs(_Fragment, { children: [_jsx(GlobalStyles, { styles: {
31
+ '.MuiAvatarGroup-root .MuiAvatar-root:first-of-type': {
32
+ backgroundColor: '#eee',
33
+ color: '#333'
34
+ }
35
+ } }), _jsx(StyledAvatar, __assign({}, props))] })); };
36
+ export default Avatar;
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DrawerProps } from '@mui/material/Drawer';
3
- declare const Drawer: (props: DrawerProps) => React.ReactElement;
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" | "components" | "componentsProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "container" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onClose" | "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 { DrawerStyles } from './DrawerStyles';
15
- var Drawer = function (props) { return (_jsx(MUIDrawer, __assign({}, props, { classes: DrawerStyles().classes }))); };
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, { 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;
@@ -0,0 +1,94 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react-addons-linked-state-mixin" />
3
+ import { Theme } from '@mui/material';
4
+ import { CSSObject } from '@mui/material/styles';
5
+ export declare const DRAWER_WIDTH: {
6
+ Collapsed: number;
7
+ Expanded: number;
8
+ };
9
+ export declare const paperStyles: (theme: Theme) => CSSObject;
10
+ export declare const openedMixin: (theme: Theme) => CSSObject;
11
+ export declare const closedMixin: (theme: Theme) => CSSObject;
12
+ export declare const DrawerHeader: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const ListItem: import("@emotion/styled").StyledComponent<{
14
+ button?: false | undefined;
15
+ } & import("@mui/material").ListItemBaseProps & {
16
+ components?: {
17
+ Root?: import("react").ElementType<any> | undefined;
18
+ } | undefined;
19
+ componentsProps?: {
20
+ root?: (import("react").HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides) | undefined;
21
+ } | undefined;
22
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
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>, {}, {}>;
25
+ export declare const DrawerToggle: import("@emotion/styled").StyledComponent<{
26
+ children?: import("react").ReactNode;
27
+ classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
28
+ color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | "default" | undefined;
29
+ disabled?: boolean | undefined;
30
+ disableFocusRipple?: boolean | undefined;
31
+ edge?: false | "end" | "start" | undefined;
32
+ size?: "small" | "large" | "medium" | undefined;
33
+ sx?: import("@mui/material").SxProps<Theme> | undefined;
34
+ } & Omit<{
35
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
36
+ centerRipple?: boolean | undefined;
37
+ children?: import("react").ReactNode;
38
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
39
+ disabled?: boolean | undefined;
40
+ disableRipple?: boolean | undefined;
41
+ disableTouchRipple?: boolean | undefined;
42
+ focusRipple?: boolean | undefined;
43
+ focusVisibleClassName?: string | undefined;
44
+ LinkComponent?: import("react").ElementType<any> | undefined;
45
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
46
+ sx?: import("@mui/material").SxProps<Theme> | undefined;
47
+ tabIndex?: number | undefined;
48
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
49
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
50
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
51
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
52
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
53
+ export declare const DrawerToggleHitboxContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
54
+ export declare const ListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
55
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
56
+ centerRipple?: boolean | undefined;
57
+ children?: import("react").ReactNode;
58
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
59
+ disabled?: boolean | undefined;
60
+ disableRipple?: boolean | undefined;
61
+ disableTouchRipple?: boolean | undefined;
62
+ focusRipple?: boolean | undefined;
63
+ focusVisibleClassName?: string | undefined;
64
+ LinkComponent?: import("react").ElementType<any> | undefined;
65
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
66
+ sx?: import("@mui/material").SxProps<Theme> | undefined;
67
+ tabIndex?: number | undefined;
68
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
69
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
70
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
71
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
72
+ }, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
73
+ export declare const ListItemAvatar: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
74
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
75
+ centerRipple?: boolean | undefined;
76
+ children?: import("react").ReactNode;
77
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
78
+ disabled?: boolean | undefined;
79
+ disableRipple?: boolean | undefined;
80
+ disableTouchRipple?: boolean | undefined;
81
+ focusRipple?: boolean | undefined;
82
+ focusVisibleClassName?: string | undefined;
83
+ LinkComponent?: import("react").ElementType<any> | undefined;
84
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
85
+ sx?: import("@mui/material").SxProps<Theme> | undefined;
86
+ tabIndex?: number | undefined;
87
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
88
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
89
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
90
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
91
+ }, "className" | "style" | "classes" | "tabIndex" | "children" | "sx" | "alignItems" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<Theme> & {
92
+ children?: import("react").ReactNode;
93
+ }, {}, {}>;
94
+ export declare const ListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
@@ -0,0 +1,146 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { ListItem as SSListItem, ListItemButton as SSListItemButton, ListItemIcon as SSListItemIcon, IconButton } from '../../../index';
13
+ import { styled } from '@mui/material/styles';
14
+ export var DRAWER_WIDTH = {
15
+ Collapsed: 60,
16
+ Expanded: 250
17
+ };
18
+ export var paperStyles = function (theme) { return ({
19
+ backgroundColor: theme.palette.mode === 'dark'
20
+ ? theme.palette.primary.main
21
+ : theme.palette.background.paper,
22
+ border: 0,
23
+ color: theme.palette.mode === 'dark'
24
+ ? theme.palette.primary.contrastText
25
+ : theme.palette.getContrastText(theme.palette.background.paper),
26
+ boxShadow: 'none'
27
+ }); };
28
+ export var openedMixin = function (theme) { return ({
29
+ width: DRAWER_WIDTH.Expanded,
30
+ transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
31
+ overflowX: 'hidden',
32
+ boxShadow: 'none'
33
+ }); };
34
+ export var closedMixin = function (theme) {
35
+ var _a;
36
+ return (_a = {
37
+ transition: 'width 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
38
+ width: "calc(".concat(theme.spacing(7), " + 1px)")
39
+ },
40
+ _a[theme.breakpoints.up('sm')] = {
41
+ width: "calc(".concat(theme.spacing(8), " + 1px)")
42
+ },
43
+ _a.overflowX = 'hidden',
44
+ _a.boxShadow = theme.shadows[1],
45
+ _a);
46
+ };
47
+ export var DrawerHeader = styled('div')(function (_a) {
48
+ var _b;
49
+ 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
+ ? theme.palette.primary.main
52
+ : theme.palette.background.paper, minHeight: '56px !important' }, _b[theme.breakpoints.up('sm')] = {
53
+ minHeight: '64px !important'
54
+ }, _b)));
55
+ });
56
+ export var ListItem = styled(SSListItem)(function (_a) {
57
+ var theme = _a.theme;
58
+ return ({
59
+ color: theme.palette.mode === 'dark'
60
+ ? theme.palette.primary.contrastText
61
+ : theme.palette.getContrastText(theme.palette.background.paper)
62
+ // paddingLeft: theme.spacing(2),
63
+ // paddingRight: theme.spacing(2),
64
+ // [theme.breakpoints.up('sm')]: {
65
+ // paddingLeft: theme.spacing(2.5),
66
+ // paddingRight: theme.spacing(2.5)
67
+ // }
68
+ });
69
+ });
70
+ export var DrawerToggle = styled(IconButton)(function (_a) {
71
+ var _b;
72
+ var theme = _a.theme;
73
+ return (_b = {
74
+ width: '44px',
75
+ height: '44px',
76
+ position: 'fixed',
77
+ zIndex: theme.zIndex.drawer + 1,
78
+ background: 'transparent',
79
+ paddingLeft: theme.spacing(2),
80
+ paddingRight: theme.spacing(2),
81
+ top: '80.5px'
82
+ },
83
+ _b[theme.breakpoints.up('sm')] = {
84
+ paddingLeft: theme.spacing(2.5),
85
+ paddingRight: theme.spacing(2.5),
86
+ top: '88.5px'
87
+ },
88
+ _b.transition = 'left 225ms cubic-bezier(0, 0, 0.2, 1) 0ms !important',
89
+ _b);
90
+ });
91
+ export var DrawerToggleHitboxContent = styled('span')(function (_a) {
92
+ var theme = _a.theme;
93
+ return ({
94
+ backgroundColor: theme.palette.mode === 'dark'
95
+ ? theme.palette.primary.main
96
+ : theme.palette.background.paper,
97
+ borderRadius: '50%',
98
+ boxShadow: '5px 0 15px 0 rgb(0 0 0 / 10%)',
99
+ height: '1.75rem',
100
+ padding: theme.spacing(0.5),
101
+ width: '1.75rem'
102
+ });
103
+ });
104
+ export var ListItemButton = styled(SSListItemButton)(function (_a) {
105
+ var _b;
106
+ var theme = _a.theme;
107
+ return (_b = {
108
+ alignItems: 'center',
109
+ color: theme.palette.mode === 'dark'
110
+ ? theme.palette.primary.contrastText
111
+ : theme.palette.getContrastText(theme.palette.background.paper),
112
+ display: 'flex',
113
+ textTransform: 'none',
114
+ textDecoration: 'none',
115
+ padding: "".concat(theme.spacing(1), " ").concat(theme.spacing(2))
116
+ },
117
+ _b[theme.breakpoints.up('sm')] = {
118
+ paddingLeft: theme.spacing(2.5),
119
+ paddingRight: theme.spacing(2.5)
120
+ },
121
+ _b.width = '100%',
122
+ _b);
123
+ });
124
+ export var ListItemAvatar = styled(ListItemButton)(function (_a) {
125
+ var theme = _a.theme;
126
+ return ({
127
+ minHeight: 48,
128
+ '& .MuiListItemIcon-root': {
129
+ justifyContent: 'center',
130
+ minWidth: 0,
131
+ marginLeft: '-4px'
132
+ },
133
+ '& .MuiAvatar-root': {
134
+ height: 32,
135
+ width: 32
136
+ }
137
+ });
138
+ });
139
+ export var ListItemIcon = styled(SSListItemIcon)(function (_a) {
140
+ var theme = _a.theme;
141
+ return ({
142
+ color: theme.palette.mode === 'dark'
143
+ ? theme.palette.primary.contrastText
144
+ : theme.palette.getContrastText(theme.palette.background.paper)
145
+ });
146
+ });
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function SideInSide(props: any): React.ReactElement;
@@ -0,0 +1,39 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { Button } from '../../../index';
14
+ import CssBaseline from '@mui/material/CssBaseline';
15
+ import Paper from '@mui/material/Paper';
16
+ import Box from '@mui/material/Box';
17
+ import Grid from '@mui/material/Grid';
18
+ import Typography from '@mui/material/Typography';
19
+ import Divider from '@mui/material/Divider';
20
+ import { createTheme, ThemeProvider } from '@mui/material/styles';
21
+ import { SideInSideStyles } from './SideInSideStyles';
22
+ import { LearningPoolLogo, StreamSuiteLogo } from '../../../assets/Images';
23
+ import { Link } from '@mui/material';
24
+ function Copyright(props) {
25
+ return (_jsxs(Typography, __assign({ variant: "body2", color: "text.secondary", align: "center" }, props, { children: ['Copyright © ', _jsx(Link, __assign({ color: "inherit", href: "https://learningpool.com/" }, { children: "Learning Pool" })), ' ', new Date().getFullYear(), '.'] })));
26
+ }
27
+ var theme = createTheme();
28
+ export default function SideInSide(props) {
29
+ var classes = SideInSideStyles(props).classes;
30
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Grid, __assign({ container: true, component: "main", className: classes.root, style: props === null || props === void 0 ? void 0 : props.style }, { children: [_jsx(CssBaseline, {}), _jsx(Grid, __assign({ item: true, xs: false, sm: false, md: 6, lg: 7, xl: 8, className: classes.pageBackgroundContainer }, { children: _jsx(Box, __assign({ className: classes.pageBackgroundLogoContainer }, { children: (props === null || props === void 0 ? void 0 : props.pageBackgroundLogo)
31
+ ? (_jsx("img", { src: "".concat(String(props.pageBackgroundLogo)), alt: "".concat(String(props.pageBackgroundLogoAlt)), className: classes.pageBackgroundLogo }))
32
+ : _jsx(StreamSuiteLogo, { style: { fill: '#fff', height: '200px', width: '200px' } }) })) })), _jsx(Grid, __assign({ item: true, xs: 12, sm: 12, md: 6, lg: 5, xl: 4, component: Paper, elevation: 6, square: true }, { children: _jsxs(Box, __assign({ className: classes.contentPanel }, { children: [_jsx(Box, __assign({ className: classes.contentPanelImageContainer }, { children: (props === null || props === void 0 ? void 0 : props.formLogo)
33
+ ? (_jsx("img", { src: "".concat(String(props.formLogo)), alt: "".concat(String(props.formLogoAlt)), className: classes.contentPanelImage }))
34
+ : _jsx(LearningPoolLogo, { inheritViewBox: true, style: { width: '250px', height: '60px' } }) })), _jsx(Typography, __assign({ component: "h1", variant: "h6" }, { children: props.welcomeMessage })), (props === null || props === void 0 ? void 0 : props.children) ? props.children : null, (props === null || props === void 0 ? void 0 : props.isStreamHomeEnabled)
35
+ ? (_jsxs(_Fragment, { children: [_jsx(Divider, __assign({ sx: { mt: 1 } }, { children: "Or" })), _jsx(Button, __assign({ type: "submit", onClick: props === null || props === void 0 ? void 0 : props.handleStreamHomeLogin, fullWidth: true, className: classes.streamHomeButton, startIcon: (props === null || props === void 0 ? void 0 : props.startIcon)
36
+ ? props.startIcon
37
+ : _jsx(StreamSuiteLogo, { style: { fill: '#fff', height: '25px', width: '25px' } }) }, { children: "Log in with Stream Home" }))] }))
38
+ : null, _jsx(Box, __assign({ className: classes.footerContent }, { children: (props === null || props === void 0 ? void 0 : props.footerContent) ? props.footerContent : _jsx(Copyright, {}) }))] })) }))] })) })));
39
+ }
@@ -0,0 +1,7 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ export declare const SideInSideStyles: (params: void) => {
3
+ classes: Record<"root" | "pageBackgroundContainer" | "pageBackgroundLogoContainer" | "pageBackgroundLogo" | "contentPanel" | "contentPanelImageContainer" | "contentPanelImage" | "submitButton" | "streamHomeButton" | "footerContent", string>;
4
+ theme: Theme;
5
+ css: import("tss-react").Css;
6
+ cx: import("tss-react").Cx;
7
+ };
@@ -0,0 +1,60 @@
1
+ import { makeStyles } from 'tss-react/mui';
2
+ export var SideInSideStyles = makeStyles()(function (theme, props) { return ({
3
+ root: {
4
+ height: '100vh',
5
+ width: '100%'
6
+ },
7
+ pageBackgroundContainer: {
8
+ backgroundImage: (props === null || props === void 0 ? void 0 : props.pageBackgroundImage)
9
+ ? "url(".concat(String(props.pageBackgroundImage), ")")
10
+ : 'url(https://source.unsplash.com/YWIOwHvRBvU)',
11
+ backgroundRepeat: 'no-repeat',
12
+ backgroundColor: theme.palette.mode === 'light' ? theme.palette.grey[50] : theme.palette.grey[900],
13
+ backgroundSize: 'cover',
14
+ backgroundPosition: 'center',
15
+ flex: 1
16
+ },
17
+ pageBackgroundLogoContainer: {
18
+ alignItems: 'center',
19
+ display: 'flex',
20
+ flexDirection: 'column',
21
+ height: '100%',
22
+ justifyContent: 'center'
23
+ },
24
+ pageBackgroundLogo: {
25
+ maxWidth: '250px'
26
+ },
27
+ contentPanel: {
28
+ alignItems: 'center',
29
+ display: 'flex',
30
+ flexDirection: 'column',
31
+ height: '100%',
32
+ marginLeft: theme.spacing(6),
33
+ marginRight: theme.spacing(6),
34
+ paddingBottom: theme.spacing(2),
35
+ paddingTop: theme.spacing(8)
36
+ },
37
+ contentPanelImageContainer: {
38
+ alignItems: 'center',
39
+ display: 'flex',
40
+ flexDirection: 'column',
41
+ marginBottom: theme.spacing(3),
42
+ marginTop: theme.spacing(1)
43
+ },
44
+ contentPanelImage: {
45
+ maxWidth: '400px',
46
+ width: '66%'
47
+ },
48
+ submitButton: {
49
+ marginBottom: theme.spacing(2),
50
+ marginTop: theme.spacing(3)
51
+ },
52
+ streamHomeButton: {
53
+ marginBottom: "".concat(theme.spacing(5), " !important"),
54
+ marginTop: "".concat(theme.spacing(3), " !important")
55
+ },
56
+ footerContent: {
57
+ marginTop: 'auto',
58
+ width: '100%'
59
+ }
60
+ }); });
package/index.d.ts CHANGED
@@ -1,7 +1,16 @@
1
+ export { default as Avatar } from './components/datadisplay/Avatar/Avatar';
1
2
  export { default as Button } from './components/atoms/Button/Button';
3
+ export { default as IconButton } from './components/atoms/IconButton/IconButton';
4
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
5
+ export { default as TextField } from './components/atoms/TextField/TextField';
2
6
  export { default as Drawer } from './components/navigation/Drawer/Drawer';
3
7
  export { default as List } from './components/datadisplay/List/List';
8
+ export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
9
+ export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
10
+ export { default as AvatarGroup } from '@mui/material/AvatarGroup';
4
11
  export { default as Backdrop } from '@mui/material/Backdrop';
12
+ export { default as CircularProgress } from '@mui/material/CircularProgress';
13
+ export { default as LinearProgress } from '@mui/material/LinearProgress';
5
14
  export { default as ListItem } from '@mui/material/ListItem';
6
15
  export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
7
16
  export { default as ListItemButton } from '@mui/material/ListItemButton';
@@ -9,3 +18,4 @@ export { default as ListItemIcon } from '@mui/material/ListItemIcon';
9
18
  export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
10
19
  export { default as ListItemText } from '@mui/material/ListItemText';
11
20
  export { default as ListSubheader } from '@mui/material/ListSubheader';
21
+ export { default as VerticalNavigation } from './components/navigation/VerticalNavigation/VerticalNavigation';
package/index.js CHANGED
@@ -1,9 +1,18 @@
1
1
  // Learning Pool intercepted
2
+ export { default as Avatar } from './components/datadisplay/Avatar/Avatar';
2
3
  export { default as Button } from './components/atoms/Button/Button';
4
+ export { default as IconButton } from './components/atoms/IconButton/IconButton';
5
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
6
+ export { default as TextField } from './components/atoms/TextField/TextField';
3
7
  export { default as Drawer } from './components/navigation/Drawer/Drawer';
4
8
  export { default as List } from './components/datadisplay/List/List';
9
+ export { default as Tooltip } from './components/datadisplay/Tooltip/Tooltip';
10
+ export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
5
11
  // Straight through MUI
12
+ export { default as AvatarGroup } from '@mui/material/AvatarGroup';
6
13
  export { default as Backdrop } from '@mui/material/Backdrop';
14
+ export { default as CircularProgress } from '@mui/material/CircularProgress';
15
+ export { default as LinearProgress } from '@mui/material/LinearProgress';
7
16
  export { default as ListItem } from '@mui/material/ListItem';
8
17
  export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
9
18
  export { default as ListItemButton } from '@mui/material/ListItemButton';
@@ -11,3 +20,5 @@ export { default as ListItemIcon } from '@mui/material/ListItemIcon';
11
20
  export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
12
21
  export { default as ListItemText } from '@mui/material/ListItemText';
13
22
  export { default as ListSubheader } from '@mui/material/ListSubheader';
23
+ // Stream Suite components
24
+ export { default as VerticalNavigation } from './components/navigation/VerticalNavigation/VerticalNavigation';
package/package.json CHANGED
@@ -8,13 +8,14 @@
8
8
  "components",
9
9
  "ui"
10
10
  ],
11
- "version": "1.2.1",
11
+ "version": "1.3.0-beta.2",
12
12
  "private": false,
13
13
  "main": "dist/index.js",
14
14
  "module": "dist/index.js",
15
15
  "dependencies": {
16
16
  "@emotion/react": "^11.7.1",
17
17
  "@emotion/styled": "^11.6.0",
18
+ "@learningpool/app-switcher": "^1.0.4",
18
19
  "@mui/icons-material": "^5.4.1",
19
20
  "@mui/material": "^5.3.1",
20
21
  "@testing-library/jest-dom": "^5.16.1",
@@ -25,6 +26,7 @@
25
26
  "@types/react": "^17.0.38",
26
27
  "@types/react-dom": "^17.0.11",
27
28
  "anysort": "^2.0.0",
29
+ "focus-trap-react": "^8.11.0",
28
30
  "react": "^17.0.2",
29
31
  "react-dom": "^17.0.2",
30
32
  "react-scripts": "5.0.0",
@@ -43,7 +45,8 @@
43
45
  "start": "start-storybook -p 6006",
44
46
  "start:run-tests": "yarn test:generate-output && yarn start",
45
47
  "test": "jest",
46
- "test:update-snapshot": "jest --updateSnapshot",
48
+ "test:u": "jest --updateSnapshot && yarn run lint:fix",
49
+ "test:update-snapshot": "test:u",
47
50
  "test:generate-output": "jest --json --outputFile=.jest-test-results.json"
48
51
  },
49
52
  "browserslist": {
@@ -65,18 +68,18 @@
65
68
  "@babel/preset-react": "7.16.7",
66
69
  "@babel/preset-typescript": "7.16.7",
67
70
  "@ht2-labs/semantic-release": "2.0.100",
68
- "@storybook/addon-a11y": "6.4.20",
69
- "@storybook/addon-actions": "6.5.0-alpha.57",
70
- "@storybook/addon-essentials": "6.5.0-alpha.57",
71
- "@storybook/addon-jest": "6.4.20",
72
- "@storybook/addon-links": "6.5.0-alpha.57",
73
- "@storybook/addons": "6.4.20",
74
- "@storybook/builder-webpack5": "6.5.0-alpha.57",
75
- "@storybook/manager-webpack5": "6.5.0-alpha.57",
76
- "@storybook/node-logger": "6.5.0-alpha.57",
77
- "@storybook/preset-create-react-app": "4.1.0",
78
- "@storybook/react": "6.5.0-alpha.57",
79
- "@storybook/theming": "6.4.20",
71
+ "@storybook/addon-a11y": "6.5.6",
72
+ "@storybook/addon-actions": "6.5.6",
73
+ "@storybook/addon-essentials": "6.5.6",
74
+ "@storybook/addon-jest": "6.5.6",
75
+ "@storybook/addon-links": "6.5.6",
76
+ "@storybook/addons": "6.5.6",
77
+ "@storybook/builder-webpack5": "6.5.6",
78
+ "@storybook/manager-webpack5": "6.5.6",
79
+ "@storybook/node-logger": "6.5.6",
80
+ "@storybook/preset-create-react-app": "4.1.1",
81
+ "@storybook/react": "6.5.6",
82
+ "@storybook/theming": "6.5.6",
80
83
  "babel-preset-minify": "0.5.1",
81
84
  "eslint-config-standard": "16.0.3",
82
85
  "eslint-config-standard-with-typescript": "21.0.1",
@@ -89,7 +92,14 @@
89
92
  },
90
93
  "release": {
91
94
  "branches": [
92
- "main"
95
+ {
96
+ "name": "main"
97
+ },
98
+ {
99
+ "name": "beta",
100
+ "channel": "beta",
101
+ "prerelease": true
102
+ }
93
103
  ]
94
104
  },
95
105
  "publishConfig": {
package/utils/theme.js CHANGED
@@ -19,6 +19,16 @@ var DEFAULT_BODY_TYPOGRAPHY = {
19
19
  // @TODO: Discuss this with the experience design team, according to the UUI Figma
20
20
  export var defaultTheme = {
21
21
  typography: __assign(__assign({}, DEFAULT_BODY_TYPOGRAPHY), { h1: DEFAULT_HEADER_TYPOGRAPHY, h2: DEFAULT_HEADER_TYPOGRAPHY, h3: DEFAULT_HEADER_TYPOGRAPHY, h4: DEFAULT_HEADER_TYPOGRAPHY, h5: DEFAULT_HEADER_TYPOGRAPHY, h6: DEFAULT_HEADER_TYPOGRAPHY, subtitle1: DEFAULT_BODY_TYPOGRAPHY, subtitle2: DEFAULT_BODY_TYPOGRAPHY, body1: DEFAULT_BODY_TYPOGRAPHY, body2: DEFAULT_BODY_TYPOGRAPHY, button: __assign(__assign({}, DEFAULT_BODY_TYPOGRAPHY), { fontWeight: 700 }), caption: DEFAULT_BODY_TYPOGRAPHY, overline: DEFAULT_BODY_TYPOGRAPHY })
22
+ // overrides: {
23
+ // MuiCssBaseline: {
24
+ // '@global': {
25
+ // '.MuiAvatarGroup-root .MuiAvatar-root:first-of-type': {
26
+ // backgroundColor: '#eee',
27
+ // color: '#333'
28
+ // }
29
+ // }
30
+ // }
31
+ // }
22
32
  };
23
33
  export var lightTheme = {
24
34
  palette: {
@@ -1 +0,0 @@
1
- export { default as Button } from './atoms/Button/Button';
@@ -1,3 +0,0 @@
1
- /* Export */
2
- /* Atoms */
3
- export { default as Button } from './atoms/Button/Button';
@@ -1,7 +0,0 @@
1
- import { Theme } from '@mui/material/styles';
2
- export declare const DrawerStyles: (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 DrawerStyles = makeStyles()(function (theme) { return ({}); });