@learningpool/ui 1.1.1 → 1.3.0-beta.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.
Files changed (29) hide show
  1. package/assets/Images.d.ts +6 -0
  2. package/assets/Images.js +15 -0
  3. package/components/atoms/Autocomplete/Autocomplete.d.ts +6 -0
  4. package/components/atoms/Autocomplete/Autocomplete.js +18 -0
  5. package/components/atoms/Autocomplete/AutocompleteStyles.d.ts +7 -0
  6. package/components/atoms/Autocomplete/AutocompleteStyles.js +2 -0
  7. package/components/atoms/IconButton/IconButton.d.ts +5 -4
  8. package/components/atoms/IconButton/IconButton.js +3 -15
  9. package/components/datadisplay/Chip/Chip.d.ts +1 -1
  10. package/components/datadisplay/List/List.d.ts +4 -0
  11. package/components/datadisplay/List/List.js +16 -0
  12. package/components/datadisplay/List/ListStyles.d.ts +7 -0
  13. package/components/datadisplay/List/ListStyles.js +2 -0
  14. package/components/datadisplay/Tooltip/Tooltip.d.ts +4 -3
  15. package/components/datadisplay/Tooltip/Tooltip.js +2 -3
  16. package/components/navigation/Drawer/Drawer.d.ts +4 -0
  17. package/components/navigation/Drawer/Drawer.js +16 -0
  18. package/components/navigation/Drawer/DrawerStyles.d.ts +7 -0
  19. package/components/navigation/Drawer/DrawerStyles.js +2 -0
  20. package/components/pages/SideInSide/SideInSide.d.ts +2 -0
  21. package/components/pages/SideInSide/SideInSide.js +39 -0
  22. package/components/pages/SideInSide/SideInSideStyles.d.ts +7 -0
  23. package/components/pages/SideInSide/SideInSideStyles.js +60 -0
  24. package/index.d.ts +14 -2
  25. package/index.js +16 -2
  26. package/package.json +43 -55
  27. package/readme.md +7 -4
  28. package/components/atoms/Button/PrimaryButton.d.ts +0 -3
  29. package/components/atoms/Button/PrimaryButton.js +0 -29
@@ -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, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { createSvgIcon } from '@mui/material/utils';
14
+ export var StreamSuiteLogo = createSvgIcon(_jsxs("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 199 203" }, { children: [_jsx("mask", __assign({ width: "116", height: "118", x: "48", y: "0", maskUnits: "userSpaceOnUse", style: { maskType: 'alpha' } }, { children: _jsx("path", { fill: "#C4C4C4", d: "M89.5 117.5 48 39l73.5-39 42 80.5-74 37Z" }) })), _jsx("g", __assign({ mask: "url(#a)" }, { children: _jsx("path", { fill: "#fff", d: "M108.125 153.152c-6.057 6.725-19.105 5.563-20.557-10.503l-18.801 13.728c7.301 19.439 25.993 25.754 42.301 21.5 14.808-3.863 24.579-23.825 25.061-35.228-16.591-31.39-27.366-51.232-34.352-63.772l-5.209 8 3.308-9.254s-8-14.375-10.856-20.257c-1.644-4.118-.82-12.532 6.845-15.146 13.113-4.472 19.203 10.157 19.203 15.146l19-12.49c-11-25-33-30-52.53-19.53-18.234 11.749-12.771 35.527-12.771 35.527s19.138 34.58 32.109 59.67l6-9.92-4.415 13c6.065 11.836 10.406 20.97 10.071 22.261-1.048 4.042-3.374 6.53-4.407 7.268Z" }) })), _jsx("mask", __assign({ width: "119", height: "78", x: "80", y: "30", maskUnits: "userSpaceOnUse", style: { maskType: 'alpha' } }, { children: _jsx("path", { fill: "#C4C4C4", d: "M102 108 80 89.5 126.5 30 174 46.5l24.5 46L102 108Z" }) })), _jsx("g", __assign({ mask: "url(#b)" }, { children: _jsx("path", { fill: "#fff", d: "M55.14 132.916c-3.87-1.936-8.679-8.555-4.904-19.858a1.084 1.084 0 0 0-.782-1.385c-6.268-1.492-11.555-6.052-13.74-8.163-.52-.503-1.406-.348-1.688.319-7.793 18.441-5.833 35.139 8.307 46.841 11.51 9.525 29.714 7.532 39.765 2.128.156-.084.287-.215.378-.367 48.352-80.76 45.667-80.393 48.357-84.261 2.176-3.129 9.7-6.4 16.5-2 7.602 5.716 4.898 14.401 3.235 19.155-.216.618.21 1.267.859 1.349 8.82 1.106 14.268 5.99 16.39 8.29.498.54 1.415.469 1.727-.198 5.014-10.735 8.838-37.175-13.903-49.35-18.632-9.077-36.631 5.814-38.198 7.158l-.009.008c-.074.064-.099.085-.151.175-1.698 2.962-46.027 80.236-49.95 81.413-5.192 1.558-8.192.746-12.192-1.254Z" }) })), _jsx("mask", __assign({ width: "85", height: "84", x: "97", y: "79", maskUnits: "userSpaceOnUse", style: { maskType: 'alpha' } }, { children: _jsx("path", { fill: "#C4C4C4", d: "M97 163V79h85v84H97Z" }) })), _jsx("g", __assign({ mask: "url(#c)" }, { children: _jsx("path", { fill: "#fff", d: "M151.697 119.826c3.022 8.531-6.836 19.226-21.649 12.841l3.5 23c22.273 4.5 36.999-6.5 41.284-26.637 4.715-28.863-17.592-38.735-23.785-38.863-6.192-.129-92.653.769-92.653.769-3.503-1.042-10.205-7.284-8.846-15.27 2.516-14.792 19.614-10.878 24-8.5-8.693-9.753-2.693-20.753-4.647-21.781-29.546-1.972-44.046 18.028-42.219 36.857 1.673 17.943 21.673 27.171 25.136 28.168 8.037 3.503 90.037-2.997 95.592 2.076 3.054 2.848 4.13 6.08 4.287 7.34Z" }) })), _jsx("mask", __assign({ width: "116", height: "118", x: "43", y: "85", maskUnits: "userSpaceOnUse", style: { maskType: 'alpha' } }, { children: _jsx("path", { fill: "#C4C4C4", d: "M84.5 202.5 43 124l73.5-39 42 80.5-74 37Z" }) })), _jsx("g", __assign({ mask: "url(#d)" }, { children: _jsx("path", { fill: "#fff", d: "M108.125 154.152c-6.057 6.725-19.105 5.563-20.557-10.503l-18.801 13.728c7.301 19.439 25.993 25.754 42.301 21.5 14.808-3.863 24.579-23.825 25.061-35.228-16.591-31.39-27.366-51.232-34.352-63.772l-5.209 8 3.308-9.254s-8-14.375-10.856-20.257c-1.644-4.118-.82-12.532 6.845-15.146 13.113-4.472 19.203 10.157 19.203 15.146l19-12.49c-11-25-33-30-52.53-19.53-18.234 11.749-12.771 35.527-12.771 35.527s19.138 34.58 32.109 59.67l6-9.92-4.415 13c6.065 11.836 10.406 20.97 10.071 22.261-1.048 4.042-3.374 6.53-4.407 7.268Z" }) })), _jsx("mask", __assign({ width: "119", height: "78", x: "0", y: "88", maskUnits: "userSpaceOnUse", style: { maskType: 'alpha' } }, { children: _jsx("path", { fill: "#C4C4C4", d: "m96.5 88 22 18.5L72 166l-47.5-16.5-24.5-46L96.5 88Z" }) })), _jsx("g", __assign({ mask: "url(#e)" }, { children: _jsx("path", { fill: "#fff", d: "M55.14 132.916c-3.87-1.936-8.679-8.555-4.904-19.858a1.084 1.084 0 0 0-.782-1.385c-6.268-1.492-11.555-6.052-13.74-8.163-.52-.503-1.406-.348-1.688.319-7.793 18.441-5.833 35.139 8.307 46.841 11.51 9.525 29.714 7.532 39.765 2.128.156-.084.287-.215.378-.367 48.352-80.76 45.667-80.393 48.357-84.261 2.176-3.129 9.7-6.4 16.5-2 7.602 5.716 4.898 14.401 3.235 19.155-.216.618.21 1.267.859 1.349 8.82 1.106 14.268 5.99 16.39 8.29.498.54 1.415.469 1.727-.198 5.014-10.735 8.838-37.175-13.903-49.35-18.632-9.077-36.631 5.814-38.198 7.158l-.009.008c-.074.064-.099.085-.151.175-1.698 2.962-46.027 80.236-49.95 81.413-5.192 1.558-8.192.746-12.192-1.254Z" }) })), _jsx("mask", __assign({ width: "85", height: "84", x: "16", y: "43", maskUnits: "userSpaceOnUse", style: { maskType: 'alpha' } }, { children: _jsx("path", { fill: "#C4C4C4", d: "M16 127V43h85v84H16Z" }) })), _jsx("g", __assign({ mask: "url(#f)" }, { children: _jsx("path", { fill: "#fff", d: "M151.697 119.826c3.022 8.531-6.836 19.226-21.649 12.841l3.5 23c22.273 4.5 36.999-6.5 41.284-26.637 4.715-28.863-17.592-38.735-23.785-38.863-6.192-.129-92.653.769-92.653.769-3.503-1.042-10.205-7.284-8.846-15.27 2.516-14.792 19.614-10.878 24-8.5-8.693-9.753-2.693-20.753-4.647-21.781-29.546-1.972-44.046 18.028-42.219 36.857 1.673 17.943 21.673 27.171 25.136 28.168 8.037 3.503 90.037-2.997 95.592 2.076 3.054 2.848 4.13 6.08 4.287 7.34Z" }) }))] })), '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');
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ export declare const AutocompleteStyles: (params: void) => {
3
+ classes: Record<never, string>;
4
+ theme: Theme;
5
+ css: import("tss-react").Css;
6
+ cx: import("tss-react").Cx;
7
+ };
@@ -0,0 +1,2 @@
1
+ import { makeStyles } from 'tss-react/mui';
2
+ export var AutocompleteStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IconButtonProps } from '@mui/material/IconButton';
3
- interface IIconButtonProps extends IconButtonProps {
4
- }
5
- export default function IconButton({ ...rest }: IIconButtonProps): JSX.Element;
6
- export {};
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
- export default function IconButton(_a) {
27
- var rest = __rest(_a, []);
28
- return (_jsx(MUIIconButton, __assign({ classes: IconButtonStyles().classes }, rest)));
29
- }
15
+ var IconButton = function (props) { return (_jsx(MUIIconButton, __assign({ classes: IconButtonStyles().classes }, props))); };
16
+ IconButton.muiName = 'MUIIconButton';
17
+ export default IconButton;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChipProps } from '@mui/material/Chip';
2
+ import type { ChipProps } from '@mui/material/Chip';
3
3
  interface IChipProps extends ChipProps {
4
4
  }
5
5
  export default function Chip({ ...rest }: IChipProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ListProps } from '@mui/material/List';
3
+ declare const List: (props: ListProps) => React.ReactElement;
4
+ export default List;
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ export declare const ListStyles: (params: void) => {
3
+ classes: Record<never, string>;
4
+ theme: Theme;
5
+ css: import("tss-react").Css;
6
+ cx: import("tss-react").Cx;
7
+ };
@@ -0,0 +1,2 @@
1
+ import { makeStyles } from 'tss-react/mui';
2
+ export var ListStyles = makeStyles()(function (theme) { return ({}); });
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { TooltipProps } from '@mui/material/Tooltip';
3
- interface ITooltipProps extends TooltipProps {
4
- }
5
- declare const Tooltip: (props: ITooltipProps) => JSX.Element;
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
- return (_jsx(MUITooltip, __assign({}, props, { classes: TooltipStyles().classes })));
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,4 @@
1
+ import React from 'react';
2
+ import { DrawerProps } from '@mui/material/Drawer';
3
+ declare const Drawer: (props: DrawerProps) => React.ReactElement;
4
+ export default Drawer;
@@ -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;
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,2 @@
1
+ import { makeStyles } from 'tss-react/mui';
2
+ export var DrawerStyles = makeStyles()(function (theme) { return ({}); });
@@ -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://mui.com/" }, { children: "Your Website" })), ' ', 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: { 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: { 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,2 +1,14 @@
1
- import Button from './components/atoms/Button/Button';
2
- export { Button };
1
+ export { default as Button } from './components/atoms/Button/Button';
2
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
3
+ export { default as TextField } from './components/atoms/TextField/TextField';
4
+ export { default as Drawer } from './components/navigation/Drawer/Drawer';
5
+ export { default as List } from './components/datadisplay/List/List';
6
+ export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
7
+ export { default as Backdrop } from '@mui/material/Backdrop';
8
+ export { default as ListItem } from '@mui/material/ListItem';
9
+ export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
10
+ export { default as ListItemButton } from '@mui/material/ListItemButton';
11
+ export { default as ListItemIcon } from '@mui/material/ListItemIcon';
12
+ export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
13
+ export { default as ListItemText } from '@mui/material/ListItemText';
14
+ export { default as ListSubheader } from '@mui/material/ListSubheader';
package/index.js CHANGED
@@ -1,2 +1,16 @@
1
- import Button from './components/atoms/Button/Button';
2
- export { Button };
1
+ // Learning Pool intercepted
2
+ export { default as Button } from './components/atoms/Button/Button';
3
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
4
+ export { default as TextField } from './components/atoms/TextField/TextField';
5
+ export { default as Drawer } from './components/navigation/Drawer/Drawer';
6
+ export { default as List } from './components/datadisplay/List/List';
7
+ export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
8
+ // Straight through MUI
9
+ export { default as Backdrop } from '@mui/material/Backdrop';
10
+ export { default as ListItem } from '@mui/material/ListItem';
11
+ export { default as ListItemAvatar } from '@mui/material/ListItemAvatar';
12
+ export { default as ListItemButton } from '@mui/material/ListItemButton';
13
+ export { default as ListItemIcon } from '@mui/material/ListItemIcon';
14
+ export { default as ListItemSecondaryAction } from '@mui/material/ListItemSecondaryAction';
15
+ export { default as ListItemText } from '@mui/material/ListItemText';
16
+ 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.1",
11
+ "version": "1.3.0-beta.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.21",
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,33 +59,44 @@
82
59
  ]
83
60
  },
84
61
  "devDependencies": {
85
- "@babel/cli": "^7.13.16",
86
- "@babel/core": "^7.14.0",
87
- "@babel/preset-env": "^7.14.1",
88
- "@babel/preset-react": "^7.13.13",
89
- "@babel/preset-typescript": "^7.16.7",
90
- "@ht2-labs/semantic-release": "^2.0.99",
91
- "@storybook/addon-a11y": "^6.4.18",
92
- "@storybook/addon-actions": "^6.5.0-alpha.34",
93
- "@storybook/addon-essentials": "^6.5.0-alpha.34",
94
- "@storybook/addon-jest": "^6.4.18",
95
- "@storybook/addon-links": "^6.5.0-alpha.34",
96
- "@storybook/addons": "^6.4.18",
97
- "@storybook/builder-webpack5": "^6.5.0-alpha.34",
98
- "@storybook/manager-webpack5": "^6.5.0-alpha.34",
99
- "@storybook/node-logger": "^6.5.0-alpha.34",
100
- "@storybook/preset-create-react-app": "^4.0.0",
101
- "@storybook/react": "^6.5.0-alpha.34",
102
- "@storybook/theming": "^6.4.18",
103
- "babel-preset-minify": "^0.5.1",
104
- "source-map-explorer": "^2.5.2",
105
- "source-map-loader": "^3.0.1",
106
- "ts-node": "^10.5.0",
107
- "webpack": "^5.68.0"
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": [
111
- "main"
92
+ {
93
+ "name": "main"
94
+ },
95
+ {
96
+ "name": "beta",
97
+ "channel": "beta",
98
+ "prerelease": true
99
+ }
112
100
  ]
113
101
  },
114
102
  "publishConfig": {
package/readme.md CHANGED
@@ -1,10 +1,13 @@
1
- # Learningpool UI (Component library)
1
+ # @learningpool/ui
2
2
 
3
- Learningpool UI is the Component library for use on Learningpool projects. There is a long-term vision, for now though, there are only a handful of components to utilize.
3
+ ![npm (scoped)](https://img.shields.io/npm/v/@learningpool/ui)
4
+ ![Libraries.io dependency status for latest release, scoped npm package](https://img.shields.io/librariesio/release/npm/@learningpool/ui)
5
+ ![NPM](https://img.shields.io/npm/l/@learningpool/ui)
6
+ ![Website](https://img.shields.io/website?label=documentation&url=https%3A%2F%2Fmain.d5creizgamf62.amplifyapp.com)
4
7
 
5
- It is built on top of [MUI](https://mui.com) and bootstrapped with [Create React App](https://github.com/facebook/create-react-app). Our documentation is provided via [Storybook](https://storybook.js.org) and our tests are written using [Jest](https://jestjs.io).
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 module uses [semantic versionsing](https://semver.org) and publishes to [NPM](https://www.npmjs.com).
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,3 +0,0 @@
1
- import React from 'react';
2
- import MUIButton from '@mui/material/Button';
3
- export default function PrimaryButton({ ...rest }: {} & React.ComponentPropsWithoutRef<typeof MUIButton>): JSX.Element;
@@ -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
- }