@learningpool/ui 1.1.0 → 1.2.1
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.d.ts +6 -0
- package/components/atoms/Autocomplete/Autocomplete.js +18 -0
- package/components/atoms/Autocomplete/AutocompleteStyles.d.ts +7 -0
- package/components/atoms/Autocomplete/AutocompleteStyles.js +2 -0
- package/components/atoms/Button/Button.d.ts +34 -5
- package/components/atoms/Button/Button.js +3 -5
- package/components/atoms/IconButton/IconButton.d.ts +5 -4
- package/components/atoms/IconButton/IconButton.js +3 -15
- package/components/datadisplay/Chip/Chip.d.ts +1 -1
- package/components/datadisplay/List/List.d.ts +4 -0
- package/components/datadisplay/List/List.js +16 -0
- package/components/datadisplay/List/ListStyles.d.ts +7 -0
- package/components/datadisplay/List/ListStyles.js +2 -0
- package/components/datadisplay/Tooltip/Tooltip.d.ts +4 -3
- package/components/datadisplay/Tooltip/Tooltip.js +2 -3
- package/components/navigation/Drawer/Drawer.d.ts +4 -0
- package/components/navigation/Drawer/Drawer.js +16 -0
- package/components/navigation/Drawer/DrawerStyles.d.ts +7 -0
- package/components/navigation/Drawer/DrawerStyles.js +2 -0
- package/index.d.ts +11 -2
- package/index.js +13 -2
- package/package.json +35 -54
- package/readme.md +7 -4
- package/components/atoms/Button/PrimaryButton.d.ts +0 -3
- package/components/atoms/Button/PrimaryButton.js +0 -29
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
3
|
+
interface IAutocompleteProps extends AutocompleteProps<any, true, true, true, 'div'> {
|
|
4
|
+
}
|
|
5
|
+
declare const Autocomplete: (props: IAutocompleteProps) => JSX.Element;
|
|
6
|
+
export default Autocomplete;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 MUIAutocomplete from '@mui/material/Autocomplete';
|
|
14
|
+
import { AutocompleteStyles } from './AutocompleteStyles';
|
|
15
|
+
var Autocomplete = function (props) {
|
|
16
|
+
return (_jsx(MUIAutocomplete, __assign({}, props, { classes: AutocompleteStyles().classes })));
|
|
17
|
+
};
|
|
18
|
+
export default Autocomplete;
|
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
classes?: Partial<import("@mui/material/Button").ButtonClasses> | undefined;
|
|
5
|
+
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
disableElevation?: boolean | undefined;
|
|
8
|
+
disableFocusRipple?: boolean | undefined;
|
|
9
|
+
endIcon?: React.ReactNode;
|
|
10
|
+
fullWidth?: boolean | undefined;
|
|
11
|
+
href?: string | undefined;
|
|
12
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
13
|
+
startIcon?: React.ReactNode;
|
|
14
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
+
variant?: "text" | "outlined" | "contained" | undefined;
|
|
16
|
+
} & Omit<{
|
|
17
|
+
action?: React.Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
18
|
+
centerRipple?: boolean | undefined;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
disableRipple?: boolean | undefined;
|
|
23
|
+
disableTouchRipple?: boolean | undefined;
|
|
24
|
+
focusRipple?: boolean | undefined;
|
|
25
|
+
focusVisibleClassName?: string | undefined;
|
|
26
|
+
LinkComponent?: React.ElementType<any> | undefined;
|
|
27
|
+
onFocusVisible?: React.FocusEventHandler<any> | undefined;
|
|
28
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
29
|
+
tabIndex?: number | undefined;
|
|
30
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
31
|
+
touchRippleRef?: React.Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
32
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
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>>;
|
|
35
|
+
export default Button;
|
|
@@ -10,10 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
13
|
+
import React from 'react';
|
|
14
14
|
import MUIButton from '@mui/material/Button';
|
|
15
15
|
import { ButtonStyles } from './ButtonStyles';
|
|
16
|
-
var Button = function (props, ref) {
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
export default forwardRef(Button);
|
|
16
|
+
var Button = React.forwardRef(function (props, ref) { return (_jsx(MUIButton, __assign({ disableElevation: true, variant: 'contained' }, props, { classes: ButtonStyles().classes, ref: ref }))); });
|
|
17
|
+
export default Button;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconButtonProps } from '@mui/material/IconButton';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare const IconButton: {
|
|
4
|
+
(props: IconButtonProps): JSX.Element;
|
|
5
|
+
muiName: string;
|
|
6
|
+
};
|
|
7
|
+
export default IconButton;
|
|
@@ -9,21 +9,9 @@ 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
|
-
};
|
|
23
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
13
|
import MUIIconButton from '@mui/material/IconButton';
|
|
25
14
|
import { IconButtonStyles } from './IconButtonStyles';
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
15
|
+
var IconButton = function (props) { return (_jsx(MUIIconButton, __assign({ classes: IconButtonStyles().classes }, props))); };
|
|
16
|
+
IconButton.muiName = 'MUIIconButton';
|
|
17
|
+
export default IconButton;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 MUIList from '@mui/material/List';
|
|
14
|
+
import { ListStyles } from './ListStyles';
|
|
15
|
+
var List = function (props) { return (_jsx(MUIList, __assign({}, props, { classes: ListStyles().classes }))); };
|
|
16
|
+
export default List;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TooltipProps } from '@mui/material/Tooltip';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
declare const Tooltip: {
|
|
4
|
+
(props: TooltipProps): JSX.Element;
|
|
5
|
+
muiName: string;
|
|
6
|
+
};
|
|
6
7
|
export default Tooltip;
|
|
@@ -12,7 +12,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import MUITooltip from '@mui/material/Tooltip';
|
|
14
14
|
import { TooltipStyles } from './TooltipStyles';
|
|
15
|
-
var Tooltip = function (props) {
|
|
16
|
-
|
|
17
|
-
};
|
|
15
|
+
var Tooltip = function (props) { return (_jsx(MUITooltip, __assign({}, props, { classes: TooltipStyles().classes }))); };
|
|
16
|
+
Tooltip.muiName = 'MUITooltip';
|
|
18
17
|
export default Tooltip;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 MUIDrawer from '@mui/material/Drawer';
|
|
14
|
+
import { DrawerStyles } from './DrawerStyles';
|
|
15
|
+
var Drawer = function (props) { return (_jsx(MUIDrawer, __assign({}, props, { classes: DrawerStyles().classes }))); };
|
|
16
|
+
export default Drawer;
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
export { default as Button } from './components/atoms/Button/Button';
|
|
2
|
+
export { default as Drawer } from './components/navigation/Drawer/Drawer';
|
|
3
|
+
export { default as List } from './components/datadisplay/List/List';
|
|
4
|
+
export { default as Backdrop } from '@mui/material/Backdrop';
|
|
5
|
+
export { default as ListItem } from '@mui/material/ListItem';
|
|
6
|
+
export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
|
|
7
|
+
export { default as ListItemButton } from '@mui/material/ListItemButton';
|
|
8
|
+
export { default as ListItemIcon } from '@mui/material/ListItemIcon';
|
|
9
|
+
export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
|
|
10
|
+
export { default as ListItemText } from '@mui/material/ListItemText';
|
|
11
|
+
export { default as ListSubheader } from '@mui/material/ListSubheader';
|
package/index.js
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export { Button };
|
|
1
|
+
// Learning Pool intercepted
|
|
2
|
+
export { default as Button } from './components/atoms/Button/Button';
|
|
3
|
+
export { default as Drawer } from './components/navigation/Drawer/Drawer';
|
|
4
|
+
export { default as List } from './components/datadisplay/List/List';
|
|
5
|
+
// Straight through MUI
|
|
6
|
+
export { default as Backdrop } from '@mui/material/Backdrop';
|
|
7
|
+
export { default as ListItem } from '@mui/material/ListItem';
|
|
8
|
+
export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
|
|
9
|
+
export { default as ListItemButton } from '@mui/material/ListItemButton';
|
|
10
|
+
export { default as ListItemIcon } from '@mui/material/ListItemIcon';
|
|
11
|
+
export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
|
|
12
|
+
export { default as ListItemText } from '@mui/material/ListItemText';
|
|
13
|
+
export { default as ListSubheader } from '@mui/material/ListSubheader';
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"components",
|
|
9
9
|
"ui"
|
|
10
10
|
],
|
|
11
|
-
"version": "1.1
|
|
11
|
+
"version": "1.2.1",
|
|
12
12
|
"private": false,
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"module": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@testing-library/react": "^12.1.2",
|
|
22
22
|
"@testing-library/user-event": "^13.5.0",
|
|
23
23
|
"@types/jest": "^27.4.0",
|
|
24
|
-
"@types/node": "^16.11.
|
|
24
|
+
"@types/node": "^16.11.36",
|
|
25
25
|
"@types/react": "^17.0.38",
|
|
26
26
|
"@types/react-dom": "^17.0.11",
|
|
27
27
|
"anysort": "^2.0.0",
|
|
@@ -35,39 +35,16 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"analyze:build": "source-map-explorer 'build/static/js/*.js'",
|
|
37
37
|
"analyze:module": "source-map-explorer 'dist/*.js'",
|
|
38
|
-
"start": "start-storybook -p 6006",
|
|
39
|
-
"start:run-tests": "yarn test:generate-output && yarn start",
|
|
40
38
|
"build": "build-storybook",
|
|
41
39
|
"build:module": "rm -rf dist && yarn run tsc",
|
|
40
|
+
"lint": "eslint --ext .tsx ./src",
|
|
41
|
+
"lint:fix": "eslint --ext .tsx ./src --fix",
|
|
42
|
+
"semantic-release": "ht2-release-public-circleci-lib-dist",
|
|
43
|
+
"start": "start-storybook -p 6006",
|
|
44
|
+
"start:run-tests": "yarn test:generate-output && yarn start",
|
|
42
45
|
"test": "jest",
|
|
43
46
|
"test:update-snapshot": "jest --updateSnapshot",
|
|
44
|
-
"test:generate-output": "jest --json --outputFile=.jest-test-results.json"
|
|
45
|
-
"semantic-release": "ht2-release-public-circleci-lib-dist"
|
|
46
|
-
},
|
|
47
|
-
"jest": {
|
|
48
|
-
"setupFilesAfterEnv": [
|
|
49
|
-
"./jest.setup.ts"
|
|
50
|
-
],
|
|
51
|
-
"collectCoverageFrom": [
|
|
52
|
-
"./src/lib/**/*.{ts,tsx}"
|
|
53
|
-
],
|
|
54
|
-
"collectCoverage": true
|
|
55
|
-
},
|
|
56
|
-
"eslintConfig": {
|
|
57
|
-
"extends": [
|
|
58
|
-
"react-app",
|
|
59
|
-
"react-app/jest"
|
|
60
|
-
],
|
|
61
|
-
"overrides": [
|
|
62
|
-
{
|
|
63
|
-
"files": [
|
|
64
|
-
"**/*.stories.*"
|
|
65
|
-
],
|
|
66
|
-
"rules": {
|
|
67
|
-
"import/no-anonymous-default-export": "off"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
47
|
+
"test:generate-output": "jest --json --outputFile=.jest-test-results.json"
|
|
71
48
|
},
|
|
72
49
|
"browserslist": {
|
|
73
50
|
"production": [
|
|
@@ -82,29 +59,33 @@
|
|
|
82
59
|
]
|
|
83
60
|
},
|
|
84
61
|
"devDependencies": {
|
|
85
|
-
"@babel/cli": "
|
|
86
|
-
"@babel/core": "
|
|
87
|
-
"@babel/preset-env": "
|
|
88
|
-
"@babel/preset-react": "
|
|
89
|
-
"@babel/preset-typescript": "
|
|
90
|
-
"@ht2-labs/semantic-release": "
|
|
91
|
-
"@storybook/addon-a11y": "
|
|
92
|
-
"@storybook/addon-actions": "
|
|
93
|
-
"@storybook/addon-essentials": "
|
|
94
|
-
"@storybook/addon-jest": "
|
|
95
|
-
"@storybook/addon-links": "
|
|
96
|
-
"@storybook/addons": "
|
|
97
|
-
"@storybook/builder-webpack5": "
|
|
98
|
-
"@storybook/manager-webpack5": "
|
|
99
|
-
"@storybook/node-logger": "
|
|
100
|
-
"@storybook/preset-create-react-app": "
|
|
101
|
-
"@storybook/react": "
|
|
102
|
-
"@storybook/theming": "
|
|
103
|
-
"babel-preset-minify": "
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
62
|
+
"@babel/cli": "7.17.6",
|
|
63
|
+
"@babel/core": "7.17.8",
|
|
64
|
+
"@babel/preset-env": "7.16.11",
|
|
65
|
+
"@babel/preset-react": "7.16.7",
|
|
66
|
+
"@babel/preset-typescript": "7.16.7",
|
|
67
|
+
"@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",
|
|
80
|
+
"babel-preset-minify": "0.5.1",
|
|
81
|
+
"eslint-config-standard": "16.0.3",
|
|
82
|
+
"eslint-config-standard-with-typescript": "21.0.1",
|
|
83
|
+
"eslint-plugin-node": "11.1.0",
|
|
84
|
+
"eslint-plugin-promise": "6.0.0",
|
|
85
|
+
"source-map-explorer": "2.5.2",
|
|
86
|
+
"source-map-loader": "3.0.1",
|
|
87
|
+
"ts-node": "10.7.0",
|
|
88
|
+
"webpack": "5.71.0"
|
|
108
89
|
},
|
|
109
90
|
"release": {
|
|
110
91
|
"branches": [
|
package/readme.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @learningpool/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
@learningpool/ui is the Component library for use on modern Learning Pool projects, built on top of [MUI](https://mui.com) and bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
6
9
|
|
|
7
|
-
Our
|
|
10
|
+
Our documentation is provided via [Storybook](https://storybook.js.org) and our tests are written using [Jest](https://jestjs.io).
|
|
8
11
|
|
|
9
12
|
## Installation
|
|
10
13
|
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
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
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import MUIButton from '@mui/material/Button';
|
|
25
|
-
import { ButtonStyles } from './ButtonStyles';
|
|
26
|
-
export default function PrimaryButton(_a) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (_jsx(MUIButton, __assign({ disableElevation: true, variant: 'contained', color: 'primary' }, rest, { classes: ButtonStyles().classes })));
|
|
29
|
-
}
|