@learningpool/ui 1.3.0 → 1.4.0-beta.11

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 (73) hide show
  1. package/{license → LICENSE} +0 -0
  2. package/{readme.md → README.md} +9 -8
  3. package/assets/Images.d.ts +9 -0
  4. package/assets/Images.js +16 -0
  5. package/components/atoms/Autocomplete/Autocomplete.js +1 -2
  6. package/components/atoms/Button/Button.d.ts +2 -2
  7. package/components/atoms/Button/Button.js +1 -2
  8. package/components/atoms/Checkbox/Checkbox.js +1 -2
  9. package/components/atoms/IconButton/IconButton.js +1 -2
  10. package/components/atoms/Radio/Radio.js +1 -2
  11. package/components/atoms/Select/Select.js +1 -2
  12. package/components/atoms/Slider/Slider.js +1 -2
  13. package/components/atoms/Switch/Switch.js +1 -2
  14. package/components/atoms/TextField/TextField.js +1 -2
  15. package/components/atoms/ToggleButton/ToggleButton.js +1 -2
  16. package/components/datadisplay/Avatar/Avatar.js +16 -2
  17. package/components/datadisplay/Chip/Chip.js +1 -2
  18. package/components/datadisplay/List/List.js +1 -2
  19. package/components/datadisplay/Tooltip/Tooltip.js +1 -2
  20. package/components/feedback/Alert/Alert.js +1 -2
  21. package/components/navigation/Drawer/Drawer.d.ts +4 -1
  22. package/components/navigation/Drawer/Drawer.js +21 -2
  23. package/components/navigation/VerticalNavigation/VerticalNavigation.d.ts +18 -0
  24. package/components/navigation/VerticalNavigation/VerticalNavigation.js +140 -0
  25. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +147 -0
  26. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +275 -0
  27. package/components/pages/ErrorPage/ErrorPage.d.ts +8 -0
  28. package/components/pages/ErrorPage/ErrorPage.js +27 -0
  29. package/components/pages/ErrorPage/ErrorPageStyles.d.ts +27 -0
  30. package/components/pages/ErrorPage/ErrorPageStyles.js +32 -0
  31. package/components/pages/SideInSide/SideInSide.d.ts +2 -0
  32. package/components/pages/SideInSide/SideInSide.js +39 -0
  33. package/components/pages/SideInSide/SideInSideStyles.d.ts +12 -0
  34. package/components/pages/SideInSide/SideInSideStyles.js +60 -0
  35. package/index.d.ts +122 -4
  36. package/index.js +134 -6
  37. package/package.json +13 -80
  38. package/utils/theme.d.ts +6 -0
  39. package/utils/theme.js +18 -2
  40. package/components/atoms/Autocomplete/AutocompleteStyles.d.ts +0 -7
  41. package/components/atoms/Autocomplete/AutocompleteStyles.js +0 -2
  42. package/components/atoms/Button/ButtonStyles.d.ts +0 -7
  43. package/components/atoms/Button/ButtonStyles.js +0 -2
  44. package/components/atoms/Checkbox/CheckboxStyles.d.ts +0 -7
  45. package/components/atoms/Checkbox/CheckboxStyles.js +0 -2
  46. package/components/atoms/IconButton/IconButtonStyles.d.ts +0 -7
  47. package/components/atoms/IconButton/IconButtonStyles.js +0 -2
  48. package/components/atoms/Radio/RadioStyles.d.ts +0 -7
  49. package/components/atoms/Radio/RadioStyles.js +0 -2
  50. package/components/atoms/Select/SelectStyles.d.ts +0 -7
  51. package/components/atoms/Select/SelectStyles.js +0 -2
  52. package/components/atoms/Slider/SliderStyles.d.ts +0 -7
  53. package/components/atoms/Slider/SliderStyles.js +0 -2
  54. package/components/atoms/Switch/SwitchStyles.d.ts +0 -7
  55. package/components/atoms/Switch/SwitchStyles.js +0 -2
  56. package/components/atoms/TextField/TextFieldStyles.d.ts +0 -7
  57. package/components/atoms/TextField/TextFieldStyles.js +0 -2
  58. package/components/atoms/ToggleButton/ToggleButtonStyles.d.ts +0 -7
  59. package/components/atoms/ToggleButton/ToggleButtonStyles.js +0 -2
  60. package/components/datadisplay/Avatar/AvatarStyles.d.ts +0 -7
  61. package/components/datadisplay/Avatar/AvatarStyles.js +0 -14
  62. package/components/datadisplay/Chip/ChipStyles.d.ts +0 -7
  63. package/components/datadisplay/Chip/ChipStyles.js +0 -2
  64. package/components/datadisplay/List/ListStyles.d.ts +0 -7
  65. package/components/datadisplay/List/ListStyles.js +0 -2
  66. package/components/datadisplay/Tooltip/TooltipStyles.d.ts +0 -7
  67. package/components/datadisplay/Tooltip/TooltipStyles.js +0 -2
  68. package/components/feedback/Alert/AlertStyles.d.ts +0 -7
  69. package/components/feedback/Alert/AlertStyles.js +0 -2
  70. package/components/index.d.ts +0 -1
  71. package/components/index.js +0 -3
  72. package/components/navigation/Drawer/DrawerStyles.d.ts +0 -7
  73. package/components/navigation/Drawer/DrawerStyles.js +0 -2
File without changes
@@ -1,6 +1,7 @@
1
1
  # @learningpool/ui
2
2
 
3
3
  ![npm (scoped)](https://img.shields.io/npm/v/@learningpool/ui)
4
+ ![npm (tag)](https://img.shields.io/npm/v/@learningpool/ui/beta)
4
5
  ![Libraries.io dependency status for latest release, scoped npm package](https://img.shields.io/librariesio/release/npm/@learningpool/ui)
5
6
  ![NPM](https://img.shields.io/npm/l/@learningpool/ui)
6
7
  ![Website](https://img.shields.io/website?label=documentation&url=https%3A%2F%2Fmain.d5creizgamf62.amplifyapp.com)
@@ -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
- ### `yarn install`
17
+ ### `npm install`
17
18
 
18
19
  ## Available Scripts
19
20
 
20
21
  In the project directory, you can run:
21
22
 
22
- ### `yarn start`
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
- ### `yarn start:run-test`
31
- The same as the `yarn start` command but runs the `yarn test:generate-output` command first, so the test results displayed within Storybook are up-to-date.
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
- ### `yarn build-storybook`
34
+ ### `npm run build-storybook`
34
35
  Builds the Storybook app for pushing to the public subdomain.
35
36
 
36
- ### `yarn test`
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
- ### `yarn test:update-snapshot`
40
+ ### `npm run test:update-snapshot`
40
41
  Updates the Jest snapshot.
41
42
 
42
- ### `yarn test:generate-output`
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
@@ -0,0 +1,9 @@
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
+ };
7
+ export declare const NotchSVG: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
8
+ muiName: string;
9
+ };
@@ -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 { createSvgIcon } from '@mui/material/utils';
14
+ export var StreamSuiteLogo = createSvgIcon(_jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", "data-name": "Layer 1", viewBox: "0 0 447.9 484.8" }, { children: _jsx("path", { d: "M447.9 304.4V321l-1 5.2c-3 21.8-12.5 40.5-27.4 56.4a102.6 102.6 0 0 1-34.1 24A98 98 0 0 1 325 413c-2.2-.5-3.2 0-4 2.1a100.5 100.5 0 0 1-32.4 47.2 101.3 101.3 0 0 1-48 21l-11 1.4h-11.7a6.8 6.8 0 0 0-1.5-.4A102.5 102.5 0 0 1 172 471a96.6 96.6 0 0 1-30.8-27.6 103.7 103.7 0 0 1-14.6-28.7c-.5-1.4-.8-2.5-2.8-2a98.5 98.5 0 0 1-32.5 1.5 101 101 0 0 1-35.8-10.8 97.8 97.8 0 0 1-29.7-23A102 102 0 0 1 7 350a105.4 105.4 0 0 1-5.5-55.2 100.7 100.7 0 0 1 13-35.3c2.7-4.7 6.3-5.1 10.2-1.3l4.8 4.3a102 102 0 0 0 37.7 20.6c5.1 1.6 6.5 5 3.7 9.6a35.7 35.7 0 0 0 7.9 48.3 36.3 36.3 0 0 0 22.4 9c15.2.5 26.3-6.9 33.8-19.3 10.5-17.2 20.3-34.8 30.3-52.2.6-1 1-2 1.7-3.5l-4-.2c-22.2 0-44.5 0-66.7-.3a103 103 0 0 1-76.3-41A95.8 95.8 0 0 1 .8 161a106 106 0 0 1 33.9-66A90 90 0 0 1 54 81.4c20.6-11 42.5-13.6 65.4-10.3 7.5 1.2 5.5 2.5 8.2-4.7a99 99 0 0 1 32-44.8A102.2 102.2 0 0 1 222.4 0a106 106 0 0 1 32.2 4.5A98.4 98.4 0 0 1 293 25.8a100.2 100.2 0 0 1 28 43.5c.8 2.2 1.6 2.9 4 2.4a102 102 0 0 1 28-1.9 92.8 92.8 0 0 1 37.9 10.6q46 24.9 55.6 76.4c.6 3 1 6 1.4 9.1v14.4a23.2 23.2 0 0 0-.6 2.6 100.8 100.8 0 0 1-14.6 43c-2.3 3.6-6 4-9.1 1-2.1-2-4.1-4-6.3-5.8a97.4 97.4 0 0 0-35.4-19.1c-7-2-8-5.7-4.3-11.5a32.5 32.5 0 0 0 5.1-22.2 37.6 37.6 0 0 0-15-25.7 36.4 36.4 0 0 0-52.8 8c-3.6 4.7-6.2 10-9.2 15l-24 41.6a17 17 0 0 0-.9 2.4l3.7.2 64.2.3a86.7 86.7 0 0 1 24.3 3.4 102.6 102.6 0 0 1 50 32.1 100.7 100.7 0 0 1 23 48l1.9 10.8ZM261.5 102.9a37.2 37.2 0 0 0-4-17c-7-13.4-17.8-21.3-33.2-21.4-13.3 0-24 5.8-31.5 16.7a34.9 34.9 0 0 0-2.3 38.2c7.6 14.2 16 28 24.2 42a9.8 9.8 0 0 1 1 8.7l-12.4 37.7a9.1 9.1 0 0 0 0 2.9 9.3 9.3 0 0 0 2.2-2c2.5-4 4.8-8.2 7.2-12.4l42-72.5c3.9-6.5 7-13.2 6.8-21Zm-.2 278.7a30.6 30.6 0 0 0-4-16c-8.3-14.8-16.9-29.5-25.4-44.2a6 6 0 0 1-.5-5.5l13.1-39.5a6.6 6.6 0 0 0-.2-2.5c-.6.5-1.5.9-1.9 1.5l-20 34.5-29.6 51.2a42.3 42.3 0 0 0-6.5 19.7 35 35 0 0 0 13 29.8 37.3 37.3 0 0 0 62-29Zm-94.2-172-1.4-2.9-27.7-48a54 54 0 0 0-11.5-15.4c-20.4-17-48.8-7-58.2 13.3-12 25.8 9.4 53.5 34 53.2 20.4-.2 41 0 61.4 0l3.4-.3ZM280.7 275a22.1 22.1 0 0 0 .9 2.2c10.4 18 20.7 36 31.3 54a35.5 35.5 0 0 0 29.4 18.6 37.7 37.7 0 0 0 39.9-43.7 37.9 37.9 0 0 0-36-31.2h-65.5Z" }) })), 'StreamSuite');
15
+ export var LearningPoolLogo = createSvgIcon(_jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 804 174" }, { children: _jsx("path", { fill: "#0069B4", d: "M155.5 0A44 44 0 0 0 121 16.5l-1 1.2-1.2-1a72.5 72.5 0 1 0-46.4 128.1 72.8 72.8 0 0 0 70.7-56.6l.4-1.5 1.5.4a44.2 44.2 0 0 0 44.8-15 44.2 44.2 0 0 0 5.6-47 44.2 44.2 0 0 0-40-25.1zM113 115.2H72.4a42.9 42.9 0 1 1 29.2-11.5l11.4 11.5zm42.5-47.8h-22l6.1-6.2a23.2 23.2 0 1 1 15.9 6.2zm56.2-8.5h14v84h-14zm76 54.3a31.1 31.1 0 0 0-7.5-21.1 29.2 29.2 0 0 0-40.7.2 31.8 31.8 0 0 0-7.8 22 31.2 31.2 0 0 0 7.9 22.2 27.8 27.8 0 0 0 20.9 8.3c2.8 0 5.6-.3 8.4-1a24 24 0 0 0 7.3-3 28.4 28.4 0 0 0 6.3-5.1c1.7-2 3.3-4 4.7-6.2l-12.7-7a28 28 0 0 1-6 6.9 12.3 12.3 0 0 1-7.4 2.1 13 13 0 0 1-9.6-3.7 15.6 15.6 0 0 1-4-9.1v-.4h40.1v-5.1zm-41.7-5.3.3-1.1a16.8 16.8 0 0 1 2-4.6 14 14 0 0 1 3-3.5 13.3 13.3 0 0 1 4.1-2.2 14.5 14.5 0 0 1 4.8-.8c6.8-.4 12.8 4.4 14 11l.3 1.2H246zm90.4-22.4V91a24.2 24.2 0 0 0-16.9-7.2 24.9 24.9 0 0 0-19.2 8.6 30.7 30.7 0 0 0-7.7 21.2 31.7 31.7 0 0 0 7.7 21.6 25.4 25.4 0 0 0 19.6 8.5 25 25 0 0 0 16.5-6.7v5.1h14.2V85.5h-14.2zm-3.6 41a14.3 14.3 0 0 1-11.1 4.7 13.5 13.5 0 0 1-10.6-4.9 18.9 18.9 0 0 1-4.1-12.6 18 18 0 0 1 4.1-12.2 13.8 13.8 0 0 1 10.9-4.8 14 14 0 0 1 10.8 4.8A18.3 18.3 0 0 1 337 114a18.5 18.5 0 0 1-4.3 12.5zm61.7-38.9-6.3 13-.6-.4a11.3 11.3 0 0 0-6.6-2.5c-6.5 0-9.7 5-9.7 15.4v29.7h-13.7V85.5h13.7v4a23.9 23.9 0 0 1 5.3-4.1 14.6 14.6 0 0 1 6.7-1.5 20.7 20.7 0 0 1 10.7 3.4l.5.3zm53 20.2v35H433v-32a19.7 19.7 0 0 0-2.2-11 8.8 8.8 0 0 0-7.8-3 9.4 9.4 0 0 0-8.7 4 28.9 28.9 0 0 0-2.6 14.3v27.7h-14.3V85.5h14.3v4.4a21.8 21.8 0 0 1 14.9-6 20.3 20.3 0 0 1 15.8 6.4c3.3 3.6 5 9.5 5 17.5m22.9-40a8.7 8.7 0 0 1-2.7 6.4 8.5 8.5 0 0 1-6.3 2.7 9 9 0 0 1-6.4-2.6 9 9 0 0 1-2.6-6.4 8.5 8.5 0 0 1 2.7-6.3 8.6 8.6 0 0 1 6.3-2.7 8.7 8.7 0 0 1 6.3 2.7 8.5 8.5 0 0 1 2.7 6.3m-16 18h14v57h-14zm71 22v35H511v-32a19.7 19.7 0 0 0-2.2-11.1 8.8 8.8 0 0 0-7.8-3 9.4 9.4 0 0 0-8.7 4 28.9 28.9 0 0 0-2.5 14.3v27.7h-14.4V85.5h14.4v4.4a21.8 21.8 0 0 1 14.8-6 20.2 20.2 0 0 1 15.8 6.4c3.3 3.6 5 9.5 5 17.5M574 85.4v5.4a23 23 0 0 0-16.9-6.9 24.4 24.4 0 0 0-19.9 9.3 32.9 32.9 0 0 0-7 21 31.2 31.2 0 0 0 7.6 21.3 25.1 25.1 0 0 0 17.8 8.5 25.2 25.2 0 0 0 18.4-7v6.3c0 11.2-4.4 16.7-13.5 16.7a13.4 13.4 0 0 1-11.2-5 14.2 14.2 0 0 1-2.4-6v-.6h-14.2v.7a25.2 25.2 0 0 0 8.8 17.5 28.4 28.4 0 0 0 19 6.2 26.9 26.9 0 0 0 21.3-9 24.1 24.1 0 0 0 5.4-11 51.2 51.2 0 0 0 .7-5.4c.2-2 .3-4.4.3-7v-55H574zm-3.3 40.6a13.6 13.6 0 0 1-11.2 5 13.6 13.6 0 0 1-11.1-5 18.9 18.9 0 0 1-3.7-12 19.1 19.1 0 0 1 3.7-12.3 13.3 13.3 0 0 1 11-5.1 13.9 13.9 0 0 1 11 4.7 18 18 0 0 1 4.1 12.6 18.6 18.6 0 0 1-3.8 12zm73.7-33.4a24.8 24.8 0 0 0-19.5-8.7 24.4 24.4 0 0 0-16.7 6.8v-5.2h-14v87.3h14V137a24.4 24.4 0 0 0 17 7 24.9 24.9 0 0 0 19.2-8.5 30.9 30.9 0 0 0 7.7-21.3 31.3 31.3 0 0 0-7.7-21.6m-32.5 8.8a14.3 14.3 0 0 1 11-4.7 13.5 13.5 0 0 1 10.7 5 18.6 18.6 0 0 1 4.1 12.5 17.8 17.8 0 0 1-4.3 12.3 13.5 13.5 0 0 1-10.6 4.8 14 14 0 0 1-11-4.8 18.4 18.4 0 0 1-4.2-12.5 18.2 18.2 0 0 1 4.2-12.6m97.4-7.9a31.3 31.3 0 0 0-43.2 0 28.3 28.3 0 0 0-9 21 29.4 29.4 0 0 0 9 21.5 29.3 29.3 0 0 0 21.5 8.8 30.4 30.4 0 0 0 21.9-8.6A28.8 28.8 0 0 0 718 115a29 29 0 0 0-8.8-21.4m-10 34a16.9 16.9 0 0 1-23.3 0 18.1 18.1 0 0 1-4.4-12.8 17.2 17.2 0 0 1 4.5-12.3 15.1 15.1 0 0 1 11.5-4.7c4.4-.1 8.7 1.6 11.7 4.7a17.7 17.7 0 0 1 4.4 12.6 17.7 17.7 0 0 1-4.4 12.5m75-35a31.3 31.3 0 0 0-43.3 0 28.2 28.2 0 0 0-8.9 21 29.4 29.4 0 0 0 8.7 21.5 29.3 29.3 0 0 0 21.5 8.8 30.4 30.4 0 0 0 21.9-8.6 28.8 28.8 0 0 0 8.8-21.4 29 29 0 0 0-8.8-21.3m-10 34a16.8 16.8 0 0 1-23.3 0 18.2 18.2 0 0 1-4.3-12.8 17.2 17.2 0 0 1 4.5-12.3 15.1 15.1 0 0 1 11.6-4.7 15.3 15.3 0 0 1 11.6 4.7 17.7 17.7 0 0 1 4.4 12.6 17.7 17.7 0 0 1-4.4 12.5M790 59h14v84h-14z" }) })), 'LearningPool');
16
+ export var NotchSVG = createSvgIcon(_jsx("svg", __assign({ className: 'notch-svg' }, { children: _jsx("clipPath", __assign({ id: 'notch', clipPathUnits: 'objectBoundingBox' }, { children: _jsx("path", { d: 'M1,0 H0 v1 h1 v-0.105 c-0.017,-0.074,-0.109,-0.132,-0.168,-0.146 l-0.008,-0.002 a0.5,0.265,0,0,1,0.006,-0.493 c0.062,-0.015,0.16,-0.079,0.169,-0.158 V0' }) })) })), 'Notch');
@@ -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, { classes: AutocompleteStyles().classes })));
15
+ return (_jsx(MUIAutocomplete, __assign({}, props)));
17
16
  };
18
17
  export default Autocomplete;
@@ -9,7 +9,7 @@ declare const Button: React.ForwardRefExoticComponent<Pick<{
9
9
  endIcon?: React.ReactNode;
10
10
  fullWidth?: boolean | undefined;
11
11
  href?: string | undefined;
12
- size?: "small" | "medium" | "large" | undefined;
12
+ size?: "small" | "large" | "medium" | undefined;
13
13
  startIcon?: React.ReactNode;
14
14
  sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
15
15
  variant?: "text" | "outlined" | "contained" | undefined;
@@ -31,5 +31,5 @@ declare const Button: React.ForwardRefExoticComponent<Pick<{
31
31
  touchRippleRef?: React.Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
32
32
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
33
33
  ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
34
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant">, keyof import("@mui/material/OverridableComponent").CommonProps | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value"> & React.RefAttributes<HTMLButtonElement>>;
34
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "variant" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon">, keyof import("@mui/material/OverridableComponent").CommonProps | "form" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "variant" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value"> & React.RefAttributes<HTMLButtonElement>>;
35
35
  export default Button;
@@ -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
- import { ButtonStyles } from './ButtonStyles';
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({ classes: CheckboxStyles().classes }, rest)));
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
- import { IconButtonStyles } from './IconButtonStyles';
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({ classes: RadioStyles().classes }, rest)));
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({ classes: SelectStyles().classes }, rest)));
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({ classes: SliderStyles().classes }, rest)));
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({ classes: SwitchStyles().classes }, rest)));
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({ classes: TextFieldStyles().classes }, props)));
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({ classes: ToggleButtonStyles().classes }, rest)));
27
+ return (_jsx(MUIToggleButton, __assign({}, rest)));
29
28
  }
@@ -11,12 +11,26 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import MUIAvatar from '@mui/material/Avatar';
14
- import { AvatarStyles } from './AvatarStyles';
15
14
  import GlobalStyles from '@mui/material/GlobalStyles';
15
+ import { styled } from '@mui/material/styles';
16
+ var StyledAvatar = styled(MUIAvatar, { shouldForwardProp: function (prop) { return prop !== 'sx'; } })(function (_a) {
17
+ var _b;
18
+ var theme = _a.theme, sx = _a.sx;
19
+ return ({
20
+ backgroundColor: (sx === null || sx === void 0 ? void 0 : sx.bgcolor)
21
+ ? sx.bgcolor
22
+ : theme.palette.primary.main,
23
+ color: (sx === null || sx === void 0 ? void 0 : sx.bgcolor)
24
+ ? (_b = sx.color) !== null && _b !== void 0 ? _b : theme.palette.getContrastText(sx.bgcolor)
25
+ : theme.palette.primary.contrastText,
26
+ fontSize: '0.9rem',
27
+ textTransform: 'uppercase'
28
+ });
29
+ });
16
30
  var Avatar = function (props) { return (_jsxs(_Fragment, { children: [_jsx(GlobalStyles, { styles: {
17
31
  '.MuiAvatarGroup-root .MuiAvatar-root:first-of-type': {
18
32
  backgroundColor: '#eee',
19
33
  color: '#333'
20
34
  }
21
- } }), _jsx(MUIAvatar, __assign({ classes: AvatarStyles(props).classes }, props))] })); };
35
+ } }), _jsx(StyledAvatar, __assign({}, props))] })); };
22
36
  export default Avatar;
@@ -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({ classes: ChipStyles().classes }, rest)));
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
- import { ListStyles } from './ListStyles';
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
- import { TooltipStyles } from './TooltipStyles';
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({ classes: AlertStyles().classes }, rest)));
27
+ return (_jsx(MUIAlert, __assign({}, rest)));
29
28
  }
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DrawerProps } from '@mui/material/Drawer';
3
- declare const Drawer: (props: DrawerProps) => React.ReactElement;
3
+ interface IDrawerProps extends DrawerProps {
4
+ component?: string | JSX.Element;
5
+ }
6
+ declare const Drawer: React.ForwardRefExoticComponent<Pick<IDrawerProps, "className" | "style" | "classes" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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>>;
4
7
  export default Drawer;
@@ -9,8 +9,27 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
12
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
+ import React from 'react';
13
25
  import MUIDrawer from '@mui/material/Drawer';
14
- import { DrawerStyles } from './DrawerStyles';
15
- var Drawer = function (props) { return (_jsx(MUIDrawer, __assign({}, props, { classes: DrawerStyles().classes }))); };
26
+ import { styled } from '@mui/material/styles';
27
+ var StyledDrawer = styled(MUIDrawer)(function (_a) {
28
+ var theme = _a.theme;
29
+ return ({});
30
+ });
31
+ var Drawer = React.forwardRef(function (_a, ref) {
32
+ var rest = __rest(_a, []);
33
+ return (_jsx(StyledDrawer, __assign({}, rest, { ref: ref })));
34
+ });
16
35
  export default Drawer;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ interface VerticalNaviationItemProps {
3
+ label: string;
4
+ icon: React.ReactElement;
5
+ onClick?: any;
6
+ isActive?: boolean;
7
+ }
8
+ interface VerticalNaviationProps {
9
+ logo?: string;
10
+ logoText?: string;
11
+ items?: VerticalNaviationItemProps[];
12
+ secondaryItems?: VerticalNaviationItemProps[];
13
+ hasStreamHome?: boolean;
14
+ avatarName?: string;
15
+ isDrawerOpen?: boolean;
16
+ }
17
+ declare const VerticalNavigation: (props: VerticalNaviationProps) => React.ReactElement;
18
+ export default VerticalNavigation;
@@ -0,0 +1,140 @@
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 React, { useEffect } from 'react';
14
+ import { styled, useTheme } from '@mui/material/styles';
15
+ import useMediaQuery from '@mui/material/useMediaQuery';
16
+ import { Avatar, Drawer, Modal, List, Tooltip } from '../../../index';
17
+ import { Box, Link } from '@mui/material';
18
+ import MailIcon from '@mui/icons-material/Mail';
19
+ import { StreamSuiteLogo, NotchSVG } from '../../../assets/Images';
20
+ import { AppSwitcher } from '@learningpool/app-switcher';
21
+ import { ChevronLeft, ChevronRight } from '@mui/icons-material';
22
+ import { DRAWER_WIDTH, DrawerHeader, ListItem, DrawerToggle, DrawerToggleHitboxContent, ListItemButton, ListItemAvatar, ListItemIcon, ListItemText, StyledNav, DrawerShadow, StyledAside, NotchContainer, NotchBackground, NotchBackgroundClip, NotchSeemMask, paperStyles, closedMixin, openedMixin } from './VerticalNavigationStyles';
23
+ var StyledDrawer = styled(Drawer)(function (_a) {
24
+ var theme = _a.theme, open = _a.open;
25
+ return (__assign(__assign({ boxShadow: 'none', boxSizing: 'border-box', flexShrink: 0, whiteSpace: 'nowrap', width: DRAWER_WIDTH.Expanded }, (open && __assign(__assign({}, openedMixin()), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), openedMixin()) }))), (!open && __assign(__assign({}, closedMixin(theme)), { '& .MuiDrawer-paper': __assign(__assign({}, paperStyles(theme)), closedMixin(theme)) }))));
26
+ });
27
+ var VerticalNavigation = function (props) {
28
+ var _a, _b;
29
+ var theme = useTheme();
30
+ var items = props.items, secondaryItems = props.secondaryItems, hasStreamHome = props.hasStreamHome, logo = props.logo, logoText = props.logoText;
31
+ var propIsDrawerOpen = typeof (props === null || props === void 0 ? void 0 : props.isDrawerOpen) === 'boolean' ? props.isDrawerOpen : undefined;
32
+ var avatarName = (_a = props === null || props === void 0 ? void 0 : props.avatarName) !== null && _a !== void 0 ? _a : 'Avatar name';
33
+ var _c = React.useState(propIsDrawerOpen !== null && propIsDrawerOpen !== void 0 ? propIsDrawerOpen : false), isDrawerOpen = _c[0], setIsDrawerOpen = _c[1];
34
+ var isMediumAndUp = useMediaQuery(theme.breakpoints.up('sm'));
35
+ var logoHeight = isMediumAndUp ? '46px' : '38px';
36
+ var logoWidth = isMediumAndUp ? '46px' : '38px';
37
+ useEffect(function () { return setIsDrawerOpen(propIsDrawerOpen !== null && propIsDrawerOpen !== void 0 ? propIsDrawerOpen : false); }, [propIsDrawerOpen]);
38
+ useEffect(function () { return setAvatarInitials(handleAvatarInitials(avatarName)); }, [avatarName]);
39
+ var handleAvatarInitials = function (avatarName) {
40
+ var _a, _b;
41
+ var firstInitial = avatarName.split('')[0] || '';
42
+ var secondInitial = '';
43
+ if (((_a = avatarName.split(' ')) === null || _a === void 0 ? void 0 : _a.length) > 1) {
44
+ firstInitial = avatarName.split(' ')[0][0];
45
+ if (((_b = avatarName.split(' ')[1]) === null || _b === void 0 ? void 0 : _b.length) > 0) {
46
+ secondInitial = avatarName === null || avatarName === void 0 ? void 0 : avatarName.split(' ')[1][0];
47
+ }
48
+ }
49
+ return "".concat(firstInitial).concat(secondInitial);
50
+ };
51
+ var _d = React.useState((_b = handleAvatarInitials(avatarName)) !== null && _b !== void 0 ? _b : 'AN'), avatarInitials = _d[0], setAvatarInitials = _d[1];
52
+ var toggleDrawer = function (open) { return function (event) {
53
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
54
+ if (event.type === 'keydown') {
55
+ if (event.key === 'Tab' || event.key === 'Shift') {
56
+ return;
57
+ }
58
+ }
59
+ setIsDrawerOpen(open !== null && open !== void 0 ? open : !isDrawerOpen);
60
+ }; };
61
+ var listContent = function () {
62
+ var _a, _b, _c, _d;
63
+ return (_jsxs(Box, __assign({ sx: {
64
+ display: 'flex',
65
+ flex: '1 auto',
66
+ flexDirection: 'column',
67
+ justifyContent: 'flex-start'
68
+ } }, { children: [_jsxs(DrawerHeader, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: logoText !== null && logoText !== void 0 ? logoText : '', placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: logo
69
+ ? typeof logo === 'string'
70
+ ? (_jsx("img", { src: logo, height: logoHeight, width: logoWidth, style: {
71
+ marginRight: isMediumAndUp ? '20px' : '24px'
72
+ }, alt: "Site Logo" }))
73
+ : logo
74
+ : (_jsx(StreamSuiteLogo, { style: {
75
+ height: logoHeight,
76
+ width: logoWidth,
77
+ marginRight: isMediumAndUp ? '20px' : '24px',
78
+ fill: theme.palette.mode === 'dark'
79
+ ? theme.palette.primary.contrastText
80
+ : theme.palette.primary.main
81
+ } })) })), _jsx(ListItemText, { primary: logoText !== null && logoText !== void 0 ? logoText : '', isDrawerOpen: isDrawerOpen })] }), _jsxs(NotchContainer, { children: [_jsx(NotchBackground, {}), _jsx(NotchBackgroundClip, {}), _jsx(NotchSeemMask, {})] }), _jsx(NotchSVG, { style: { height: '0', position: 'absolute', width: '0' } }), _jsxs(StyledNav, { children: [_jsx(List, __assign({ sx: {
82
+ height: '100%',
83
+ width: DRAWER_WIDTH.Expanded,
84
+ marginTop: "-".concat(theme.spacing(0.5))
85
+ } }, { children: items && items.length > 0 && items.map(function (item, index) {
86
+ var _a;
87
+ return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
88
+ // @ts-expect-error
89
+ , __assign({
90
+ // @ts-expect-error
91
+ component: Link, onClick: item.onClick, isActive: item.isActive, isDrawerOpen: isDrawerOpen }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: item.label, placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true }, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) })) })), _jsx(ListItemText, { primary: item.label, isDrawerOpen: isDrawerOpen, index: index })] }), item.label) })));
92
+ }) })), _jsxs(List, __assign({ sx: {
93
+ width: DRAWER_WIDTH.Expanded,
94
+ marginTop: 'auto',
95
+ backgroundColor: theme.palette.mode === 'dark'
96
+ ? theme.palette.primary.main
97
+ : theme.palette.background.paper
98
+ } }, { children: [hasStreamHome
99
+ ? (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ sx: {
100
+ minHeight: 48,
101
+ justifyContent: isDrawerOpen ? 'initial' : 'center'
102
+ } }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: 'App switcher', placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ sx: {
103
+ minWidth: 0,
104
+ mr: isDrawerOpen ? 2.5 : 'auto',
105
+ justifyContent: 'center'
106
+ } }, { 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', isDrawerOpen: isDrawerOpen })] })) })))
107
+ : null, secondaryItems && secondaryItems.length > 0 && secondaryItems.map(function (item, index) {
108
+ var _a;
109
+ return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton
110
+ // @ts-expect-error
111
+ , __assign({
112
+ // @ts-expect-error
113
+ component: Link, onClick: item.onClick, isActive: item.isActive, isDrawerOpen: isDrawerOpen, index: index }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: item.label, placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true }, { children: (_a = item.icon) !== null && _a !== void 0 ? _a : _jsx(MailIcon, {}) })) })), _jsx(ListItemText, { primary: item.label, isDrawerOpen: isDrawerOpen })] }), item.label) })));
114
+ }), avatarName
115
+ ? (_jsx(ListItem, __assign({ disablePadding: true, sx: {
116
+ overflow: 'hidden'
117
+ } }, { children: _jsxs(ListItemAvatar, __assign({ isDrawerOpen: isDrawerOpen, component: Link }, { children: [_jsx(Tooltip, __assign({ disableHoverListener: isDrawerOpen, disableFocusListener: isDrawerOpen, disableTouchListener: isDrawerOpen, title: avatarName, placement: theme.direction === 'rtl' ? 'left' : 'right' }, { children: _jsx(ListItemIcon, __assign({ "aria-hidden": true, sx: { mr: 3 } }, { children: _jsx(Avatar, __assign({ sx: {
118
+ bgcolor: theme.palette.mode === 'dark'
119
+ ? theme.palette.primary.contrastText
120
+ : theme.palette.primary.main
121
+ } }, { children: avatarInitials })) })) })), _jsx(ListItemText, { primary: avatarName, isDrawerOpen: isDrawerOpen })] })) })))
122
+ : null] }))] })] })));
123
+ };
124
+ return (_jsxs(StyledAside, { children: [_jsx(DrawerShadow, { className: 'drawerShadow', "aria-hidden": 'true', isDrawerOpen: isDrawerOpen }), _jsx(Modal, __assign({ "aria-hidden": false, keepMounted: true, disablePortal: true, open: isDrawerOpen, onClose: toggleDrawer(false) }, { children: _jsxs(StyledDrawer, __assign({ "aria-label": 'Navigation Menu', id: 'vertical-navigation', anchor: 'left', open: isDrawerOpen, onClose: toggleDrawer(false), ModalProps: {
125
+ keepMounted: true
126
+ }, variant: 'permanent' }, { children: [_jsx(DrawerToggle, __assign({ onClick: toggleDrawer(!isDrawerOpen), "aria-label": isDrawerOpen ? 'Close Navigation Menu' : 'Open Navigation Menu', "aria-expanded": isDrawerOpen ? 'true' : 'false', "aria-controls": "vertical-navigation", sx: {
127
+ left: isDrawerOpen ? "".concat(DRAWER_WIDTH.Expanded - 21, "px") : (isMediumAndUp ? '44px' : '36px')
128
+ } }, { children: _jsx(DrawerToggleHitboxContent, { children: isDrawerOpen
129
+ ? (_jsx(ChevronLeft, { sx: {
130
+ fontSize: '1.75rem',
131
+ height: '1.75rem',
132
+ width: '1.75rem'
133
+ } }))
134
+ : (_jsx(ChevronRight, { sx: {
135
+ fontSize: '1.75rem',
136
+ height: '1.75rem',
137
+ width: '1.75rem'
138
+ } })) }) })), listContent()] })) }))] }));
139
+ };
140
+ export default VerticalNavigation;