@learningpool/ui 1.3.0-beta.3 → 1.4.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.
- package/components/atoms/Autocomplete/Autocomplete.js +1 -2
- package/components/atoms/Button/Button.js +1 -2
- package/components/atoms/Checkbox/Checkbox.js +1 -2
- package/components/atoms/IconButton/IconButton.js +1 -2
- package/components/atoms/Radio/Radio.js +1 -2
- package/components/atoms/Select/Select.js +1 -2
- package/components/atoms/Slider/Slider.js +1 -2
- package/components/atoms/Switch/Switch.js +1 -2
- package/components/atoms/TextField/TextField.js +1 -2
- package/components/atoms/ToggleButton/ToggleButton.js +1 -2
- package/components/datadisplay/Chip/Chip.js +1 -2
- package/components/datadisplay/List/List.js +1 -2
- package/components/datadisplay/Tooltip/Tooltip.js +1 -2
- package/components/feedback/Alert/Alert.js +1 -2
- package/components/navigation/Drawer/Drawer.d.ts +1 -1
- package/components/navigation/VerticalNavigation/VerticalNavigation.js +2 -2
- package/components/pages/SideInSide/SideInSideStyles.d.ts +8 -3
- package/package.json +21 -21
- package/readme.md +9 -8
- package/components/atoms/Autocomplete/AutocompleteStyles.d.ts +0 -7
- package/components/atoms/Autocomplete/AutocompleteStyles.js +0 -2
- package/components/atoms/Button/ButtonStyles.d.ts +0 -7
- package/components/atoms/Button/ButtonStyles.js +0 -2
- package/components/atoms/Checkbox/CheckboxStyles.d.ts +0 -7
- package/components/atoms/Checkbox/CheckboxStyles.js +0 -2
- package/components/atoms/IconButton/IconButtonStyles.d.ts +0 -7
- package/components/atoms/IconButton/IconButtonStyles.js +0 -2
- package/components/atoms/Radio/RadioStyles.d.ts +0 -7
- package/components/atoms/Radio/RadioStyles.js +0 -2
- package/components/atoms/Select/SelectStyles.d.ts +0 -7
- package/components/atoms/Select/SelectStyles.js +0 -2
- package/components/atoms/Slider/SliderStyles.d.ts +0 -7
- package/components/atoms/Slider/SliderStyles.js +0 -2
- package/components/atoms/Switch/SwitchStyles.d.ts +0 -7
- package/components/atoms/Switch/SwitchStyles.js +0 -2
- package/components/atoms/TextField/TextFieldStyles.d.ts +0 -7
- package/components/atoms/TextField/TextFieldStyles.js +0 -2
- package/components/atoms/ToggleButton/ToggleButtonStyles.d.ts +0 -7
- package/components/atoms/ToggleButton/ToggleButtonStyles.js +0 -2
- package/components/datadisplay/Chip/ChipStyles.d.ts +0 -7
- package/components/datadisplay/Chip/ChipStyles.js +0 -2
- package/components/datadisplay/List/ListStyles.d.ts +0 -7
- package/components/datadisplay/List/ListStyles.js +0 -2
- package/components/datadisplay/Tooltip/TooltipStyles.d.ts +0 -7
- package/components/datadisplay/Tooltip/TooltipStyles.js +0 -2
- package/components/feedback/Alert/AlertStyles.d.ts +0 -7
- package/components/feedback/Alert/AlertStyles.js +0 -2
|
@@ -11,8 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUIAutocomplete from '@mui/material/Autocomplete';
|
|
14
|
-
import { AutocompleteStyles } from './AutocompleteStyles';
|
|
15
14
|
var Autocomplete = function (props) {
|
|
16
|
-
return (_jsx(MUIAutocomplete, __assign({}, props
|
|
15
|
+
return (_jsx(MUIAutocomplete, __assign({}, props)));
|
|
17
16
|
};
|
|
18
17
|
export default Autocomplete;
|
|
@@ -12,6 +12,5 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import MUIButton from '@mui/material/Button';
|
|
15
|
-
|
|
16
|
-
var Button = React.forwardRef(function (props, ref) { return (_jsx(MUIButton, __assign({ disableElevation: true, variant: 'contained' }, props, { classes: ButtonStyles().classes, ref: ref }))); });
|
|
15
|
+
var Button = React.forwardRef(function (props, ref) { return (_jsx(MUIButton, __assign({ disableElevation: true, variant: 'contained' }, props, { ref: ref }))); });
|
|
17
16
|
export default Button;
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUICheckbox from '@mui/material/Checkbox';
|
|
25
|
-
import { CheckboxStyles } from './CheckboxStyles';
|
|
26
25
|
export default function Checkbox(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUICheckbox, __assign({
|
|
27
|
+
return (_jsx(MUICheckbox, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUIIconButton from '@mui/material/IconButton';
|
|
14
|
-
|
|
15
|
-
var IconButton = function (props) { return (_jsx(MUIIconButton, __assign({ classes: IconButtonStyles().classes }, props))); };
|
|
14
|
+
var IconButton = function (props) { return (_jsx(MUIIconButton, __assign({}, props))); };
|
|
16
15
|
IconButton.muiName = 'MUIIconButton';
|
|
17
16
|
export default IconButton;
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIRadio from '@mui/material/Radio';
|
|
25
|
-
import { RadioStyles } from './RadioStyles';
|
|
26
25
|
export default function Radio(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIRadio, __assign({
|
|
27
|
+
return (_jsx(MUIRadio, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUISelect from '@mui/material/Select';
|
|
25
|
-
import { SelectStyles } from './SelectStyles';
|
|
26
25
|
export default function Select(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUISelect, __assign({
|
|
27
|
+
return (_jsx(MUISelect, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUISlider from '@mui/material/Slider';
|
|
25
|
-
import { SliderStyles } from './SliderStyles';
|
|
26
25
|
export default function Slider(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUISlider, __assign({
|
|
27
|
+
return (_jsx(MUISlider, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUISwitch from '@mui/material/Switch';
|
|
25
|
-
import { SwitchStyles } from './SwitchStyles';
|
|
26
25
|
export default function Switch(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUISwitch, __assign({
|
|
27
|
+
return (_jsx(MUISwitch, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUITextField from '@mui/material/TextField';
|
|
14
|
-
import { TextFieldStyles } from './TextFieldStyles';
|
|
15
14
|
export default function TextField(props) {
|
|
16
|
-
return (_jsx(MUITextField, __assign({
|
|
15
|
+
return (_jsx(MUITextField, __assign({}, props)));
|
|
17
16
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIToggleButton from '@mui/material/ToggleButton';
|
|
25
|
-
import { ToggleButtonStyles } from './ToggleButtonStyles';
|
|
26
25
|
export default function ToggleButton(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIToggleButton, __assign({
|
|
27
|
+
return (_jsx(MUIToggleButton, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIChip from '@mui/material/Chip';
|
|
25
|
-
import { ChipStyles } from './ChipStyles';
|
|
26
25
|
export default function Chip(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIChip, __assign({
|
|
27
|
+
return (_jsx(MUIChip, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -11,6 +11,5 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUIList from '@mui/material/List';
|
|
14
|
-
|
|
15
|
-
var List = function (props) { return (_jsx(MUIList, __assign({}, props, { classes: ListStyles().classes }))); };
|
|
14
|
+
var List = function (props) { return (_jsx(MUIList, __assign({}, props))); };
|
|
16
15
|
export default List;
|
|
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUITooltip from '@mui/material/Tooltip';
|
|
14
|
-
|
|
15
|
-
var Tooltip = function (props) { return (_jsx(MUITooltip, __assign({}, props, { classes: TooltipStyles().classes }))); };
|
|
14
|
+
var Tooltip = function (props) { return (_jsx(MUITooltip, __assign({}, props))); };
|
|
16
15
|
Tooltip.muiName = 'MUITooltip';
|
|
17
16
|
export default Tooltip;
|
|
@@ -22,8 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import MUIAlert from '@mui/material/Alert';
|
|
25
|
-
import { AlertStyles } from './AlertStyles';
|
|
26
25
|
export default function Alert(_a) {
|
|
27
26
|
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIAlert, __assign({
|
|
27
|
+
return (_jsx(MUIAlert, __assign({}, rest)));
|
|
29
28
|
}
|
|
@@ -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" | "
|
|
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;
|
|
@@ -133,11 +133,11 @@ var VerticalNavigation = function (props) {
|
|
|
133
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
134
|
: null, secondaryItems === null || secondaryItems === void 0 ? void 0 : secondaryItems.map(function (item, index) {
|
|
135
135
|
var _a;
|
|
136
|
-
return (_jsx(ListItem, { children: _jsxs(ListItemButton
|
|
136
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
|
|
137
137
|
// @ts-expect-error
|
|
138
138
|
, __assign({
|
|
139
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) }));
|
|
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
141
|
}), _jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemAvatar
|
|
142
142
|
// @ts-expect-error
|
|
143
143
|
, __assign({
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learningpool/ui",
|
|
3
3
|
"author": "Learning Pool",
|
|
4
|
+
"description": "UI library for use on modern Learning Pool projects, built on top of MUI.",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"learning-pool",
|
|
@@ -8,20 +9,16 @@
|
|
|
8
9
|
"components",
|
|
9
10
|
"ui"
|
|
10
11
|
],
|
|
11
|
-
"version": "1.
|
|
12
|
+
"version": "1.4.0-beta.2",
|
|
12
13
|
"private": false,
|
|
13
14
|
"main": "dist/index.js",
|
|
14
15
|
"module": "dist/index.js",
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"react": ">=17.0.2",
|
|
17
|
-
"react-dom": ">=17.0.2"
|
|
18
|
-
},
|
|
19
16
|
"dependencies": {
|
|
20
17
|
"@emotion/react": "^11.7.1",
|
|
21
18
|
"@emotion/styled": "^11.6.0",
|
|
22
19
|
"@learningpool/app-switcher": "^1.0.4",
|
|
23
|
-
"@mui/icons-material": "^5.4
|
|
24
|
-
"@mui/material": "^5.
|
|
20
|
+
"@mui/icons-material": "^5.8.4",
|
|
21
|
+
"@mui/material": "^5.8.5",
|
|
25
22
|
"@testing-library/jest-dom": "^5.16.1",
|
|
26
23
|
"@testing-library/react": "^12.1.2",
|
|
27
24
|
"@testing-library/user-event": "^13.5.0",
|
|
@@ -31,7 +28,9 @@
|
|
|
31
28
|
"@types/react-dom": "^17.0.11",
|
|
32
29
|
"anysort": "^2.0.0",
|
|
33
30
|
"focus-trap-react": "^8.11.0",
|
|
34
|
-
"react
|
|
31
|
+
"react": "^17.0.2",
|
|
32
|
+
"react-dom": "^17.0.2",
|
|
33
|
+
"react-scripts": "5.0.1",
|
|
35
34
|
"tss-react": "^3.3.6",
|
|
36
35
|
"typescript": "^4.6.2",
|
|
37
36
|
"web-vitals": "^2.1.4"
|
|
@@ -40,14 +39,15 @@
|
|
|
40
39
|
"analyze:build": "source-map-explorer 'build/static/js/*.js'",
|
|
41
40
|
"analyze:module": "source-map-explorer 'dist/*.js'",
|
|
42
41
|
"build": "build-storybook",
|
|
43
|
-
"build:module": "rm -rf dist &&
|
|
42
|
+
"build:module": "rm -rf dist && tsc && npm run generate:package",
|
|
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": "
|
|
48
|
+
"start:run-tests": "npm run test:generate-output && npm run start",
|
|
49
49
|
"test": "jest",
|
|
50
|
-
"test:u": "jest --updateSnapshot &&
|
|
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,12 +64,12 @@
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@babel/cli": "7.17.
|
|
68
|
-
"@babel/core": "7.
|
|
69
|
-
"@babel/preset-env": "7.
|
|
70
|
-
"@babel/preset-react": "7.
|
|
71
|
-
"@babel/preset-typescript": "7.
|
|
72
|
-
"@ht2-labs/semantic-release": "
|
|
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
|
+
"@ht2-labs/semantic-release": "3.0.0",
|
|
73
73
|
"@storybook/addon-a11y": "6.5.6",
|
|
74
74
|
"@storybook/addon-actions": "6.5.6",
|
|
75
75
|
"@storybook/addon-essentials": "6.5.6",
|
|
@@ -82,15 +82,15 @@
|
|
|
82
82
|
"@storybook/preset-create-react-app": "4.1.1",
|
|
83
83
|
"@storybook/react": "6.5.6",
|
|
84
84
|
"@storybook/theming": "6.5.6",
|
|
85
|
-
"babel-preset-minify": "0.5.
|
|
85
|
+
"babel-preset-minify": "0.5.2",
|
|
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": "
|
|
89
|
+
"eslint-plugin-promise": "4.2.1",
|
|
90
90
|
"source-map-explorer": "2.5.2",
|
|
91
91
|
"source-map-loader": "3.0.1",
|
|
92
|
-
"ts-node": "10.
|
|
93
|
-
"webpack": "5.
|
|
92
|
+
"ts-node": "10.8.0",
|
|
93
|
+
"webpack": "5.72.1"
|
|
94
94
|
},
|
|
95
95
|
"release": {
|
|
96
96
|
"branches": [
|
package/readme.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @learningpool/ui
|
|
2
2
|
|
|
3
3
|

|
|
4
|
+

|
|
4
5
|

|
|
5
6
|

|
|
6
7
|

|
|
@@ -13,13 +14,13 @@ Our documentation is provided via [Storybook](https://storybook.js.org) and our
|
|
|
13
14
|
|
|
14
15
|
First clone the repo then run:
|
|
15
16
|
|
|
16
|
-
### `
|
|
17
|
+
### `npm install`
|
|
17
18
|
|
|
18
19
|
## Available Scripts
|
|
19
20
|
|
|
20
21
|
In the project directory, you can run:
|
|
21
22
|
|
|
22
|
-
### `
|
|
23
|
+
### `npm run start`
|
|
23
24
|
|
|
24
25
|
Runs the app in the development mode.\
|
|
25
26
|
Open [http://localhost:6006](http://localhost:6006) to view it in the browser.
|
|
@@ -27,19 +28,19 @@ Open [http://localhost:6006](http://localhost:6006) to view it in the browser.
|
|
|
27
28
|
The page will reload if you make edits.\
|
|
28
29
|
You will also see any lint errors in the console.
|
|
29
30
|
|
|
30
|
-
### `
|
|
31
|
-
The same as the `
|
|
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.
|
|
32
33
|
|
|
33
|
-
### `
|
|
34
|
+
### `npm run build-storybook`
|
|
34
35
|
Builds the Storybook app for pushing to the public subdomain.
|
|
35
36
|
|
|
36
|
-
### `
|
|
37
|
+
### `npm run test`
|
|
37
38
|
Runs the component Jest tests. If its the first run it also takes a snapshot for comparison, on successive runs.
|
|
38
39
|
|
|
39
|
-
### `
|
|
40
|
+
### `npm run test:update-snapshot`
|
|
40
41
|
Updates the Jest snapshot.
|
|
41
42
|
|
|
42
|
-
### `
|
|
43
|
+
### `npm run test:generate-output`
|
|
43
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/)
|
|
44
45
|
|
|
45
46
|
## Getting started
|