@learningpool/ui 1.2.1 → 1.3.0

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,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,22 @@
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 { AvatarStyles } from './AvatarStyles';
15
+ import GlobalStyles from '@mui/material/GlobalStyles';
16
+ var Avatar = function (props) { return (_jsxs(_Fragment, { children: [_jsx(GlobalStyles, { styles: {
17
+ '.MuiAvatarGroup-root .MuiAvatar-root:first-of-type': {
18
+ backgroundColor: '#eee',
19
+ color: '#333'
20
+ }
21
+ } }), _jsx(MUIAvatar, __assign({ classes: AvatarStyles(props).classes }, props))] })); };
22
+ export default Avatar;
@@ -0,0 +1,7 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ export declare const AvatarStyles: (params: void) => {
3
+ classes: Record<"root", string>;
4
+ theme: Theme;
5
+ css: import("tss-react").Css;
6
+ cx: import("tss-react").Cx;
7
+ };
@@ -0,0 +1,14 @@
1
+ import { makeStyles } from 'tss-react/mui';
2
+ export var AvatarStyles = makeStyles()(function (theme, props) {
3
+ var _a, _b, _c;
4
+ return ({
5
+ root: {
6
+ backgroundColor: ((_a = props === null || props === void 0 ? void 0 : props.sx) === null || _a === void 0 ? void 0 : _a.bgcolor)
7
+ ? props.sx.bgcolor
8
+ : theme.palette.primary.main,
9
+ color: ((_b = props === null || props === void 0 ? void 0 : props.sx) === null || _b === void 0 ? void 0 : _b.bgcolor)
10
+ ? (_c = props.sx.color) !== null && _c !== void 0 ? _c : theme.palette.getContrastText(props.sx.bgcolor)
11
+ : theme.palette.primary.contrastText
12
+ }
13
+ });
14
+ });
package/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
+ export { default as Avatar } from './components/datadisplay/Avatar/Avatar';
1
2
  export { default as Button } from './components/atoms/Button/Button';
2
3
  export { default as Drawer } from './components/navigation/Drawer/Drawer';
3
4
  export { default as List } from './components/datadisplay/List/List';
5
+ export { default as AvatarGroup } from '@mui/material/AvatarGroup';
4
6
  export { default as Backdrop } from '@mui/material/Backdrop';
5
7
  export { default as ListItem } from '@mui/material/ListItem';
6
8
  export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
package/index.js CHANGED
@@ -1,8 +1,10 @@
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';
3
4
  export { default as Drawer } from './components/navigation/Drawer/Drawer';
4
5
  export { default as List } from './components/datadisplay/List/List';
5
6
  // Straight through MUI
7
+ export { default as AvatarGroup } from '@mui/material/AvatarGroup';
6
8
  export { default as Backdrop } from '@mui/material/Backdrop';
7
9
  export { default as ListItem } from '@mui/material/ListItem';
8
10
  export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "components",
9
9
  "ui"
10
10
  ],
11
- "version": "1.2.1",
11
+ "version": "1.3.0",
12
12
  "private": false,
13
13
  "main": "dist/index.js",
14
14
  "module": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "anysort": "^2.0.0",
28
28
  "react": "^17.0.2",
29
29
  "react-dom": "^17.0.2",
30
- "react-scripts": "5.0.0",
30
+ "react-scripts": "5.0.1",
31
31
  "tss-react": "^3.3.6",
32
32
  "typescript": "^4.6.2",
33
33
  "web-vitals": "^2.1.4"
@@ -64,7 +64,7 @@
64
64
  "@babel/preset-env": "7.16.11",
65
65
  "@babel/preset-react": "7.16.7",
66
66
  "@babel/preset-typescript": "7.16.7",
67
- "@ht2-labs/semantic-release": "2.0.100",
67
+ "@ht2-labs/semantic-release": "2.0.105",
68
68
  "@storybook/addon-a11y": "6.4.20",
69
69
  "@storybook/addon-actions": "6.5.0-alpha.57",
70
70
  "@storybook/addon-essentials": "6.5.0-alpha.57",
@@ -74,22 +74,29 @@
74
74
  "@storybook/builder-webpack5": "6.5.0-alpha.57",
75
75
  "@storybook/manager-webpack5": "6.5.0-alpha.57",
76
76
  "@storybook/node-logger": "6.5.0-alpha.57",
77
- "@storybook/preset-create-react-app": "4.1.0",
77
+ "@storybook/preset-create-react-app": "4.1.1",
78
78
  "@storybook/react": "6.5.0-alpha.57",
79
79
  "@storybook/theming": "6.4.20",
80
- "babel-preset-minify": "0.5.1",
80
+ "babel-preset-minify": "0.5.2",
81
81
  "eslint-config-standard": "16.0.3",
82
82
  "eslint-config-standard-with-typescript": "21.0.1",
83
83
  "eslint-plugin-node": "11.1.0",
84
84
  "eslint-plugin-promise": "6.0.0",
85
85
  "source-map-explorer": "2.5.2",
86
86
  "source-map-loader": "3.0.1",
87
- "ts-node": "10.7.0",
87
+ "ts-node": "10.8.0",
88
88
  "webpack": "5.71.0"
89
89
  },
90
90
  "release": {
91
91
  "branches": [
92
- "main"
92
+ {
93
+ "name": "main"
94
+ },
95
+ {
96
+ "name": "beta",
97
+ "channel": "beta",
98
+ "prerelease": true
99
+ }
93
100
  ]
94
101
  },
95
102
  "publishConfig": {