@learningpool/ui 1.15.4 → 1.16.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.
Files changed (86) hide show
  1. package/assets/Images.js +7 -18
  2. package/components/atoms/Autocomplete/Autocomplete.js +3 -14
  3. package/components/atoms/Button/Button.js +2 -13
  4. package/components/atoms/Checkbox/Checkbox.js +3 -26
  5. package/components/atoms/IconButton/IconButton.js +2 -13
  6. package/components/atoms/Radio/Radio.js +3 -26
  7. package/components/atoms/Select/Select.js +3 -26
  8. package/components/atoms/Slider/Slider.js +3 -26
  9. package/components/atoms/Switch/Switch.js +3 -26
  10. package/components/atoms/TextField/TextField.js +2 -13
  11. package/components/atoms/ToggleButton/ToggleButton.js +3 -26
  12. package/components/datadisplay/Avatar/Avatar.js +13 -28
  13. package/components/datadisplay/Chip/Chip.js +3 -26
  14. package/components/datadisplay/List/List.js +2 -13
  15. package/components/feedback/Alert/Alert.js +3 -26
  16. package/components/landmarks/Header/Header.js +15 -41
  17. package/components/landmarks/Header/HeaderActionButtons.d.ts +1 -2
  18. package/components/landmarks/Header/HeaderActionButtons.js +22 -33
  19. package/components/landmarks/Header/HeaderStyles.js +54 -11
  20. package/components/navigation/Drawer/Drawer.js +5 -31
  21. package/components/navigation/MobileNavigation/MobileNavigation.js +70 -82
  22. package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +75 -83
  23. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.d.ts +102 -52
  24. package/components/navigation/MobileNavigation/MobileNavigationAvatarStyles.js +71 -13
  25. package/components/navigation/MobileNavigation/MobileNavigationDrawer.d.ts +1 -1
  26. package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +41 -68
  27. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +34 -18
  28. package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.js +133 -20
  29. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +22 -45
  30. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenu.js +8 -19
  31. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.js +151 -52
  32. package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.js +171 -50
  33. package/components/navigation/MobileNavigation/MobileNavigationMotion.js +11 -11
  34. package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +11 -15
  35. package/components/navigation/MobileNavigation/MobileNavigationSearch.d.ts +1 -2
  36. package/components/navigation/MobileNavigation/MobileNavigationSearch.js +25 -34
  37. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.d.ts +34 -18
  38. package/components/navigation/MobileNavigation/MobileNavigationSearchStyles.js +47 -9
  39. package/components/navigation/MobileNavigation/MobileNavigationStyles.js +262 -66
  40. package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +21 -20
  41. package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +21 -20
  42. package/components/navigation/VerticalNavigation/VerticalNavigation.js +150 -185
  43. package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +50 -61
  44. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.d.ts +102 -52
  45. package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +86 -14
  46. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +27 -51
  47. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +15 -28
  48. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.js +135 -39
  49. package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +167 -29
  50. package/components/navigation/VerticalNavigation/VerticalNavigationMotion.js +11 -11
  51. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.d.ts +34 -18
  52. package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +236 -42
  53. package/components/navigation/helpers.d.ts +1 -2
  54. package/components/navigation/helpers.js +28 -32
  55. package/components/pages/ErrorPage/ErrorPage.js +6 -17
  56. package/components/pages/ErrorPage/ErrorPageStyles.js +13 -18
  57. package/components/pages/SideInSide/SideInSide.js +12 -23
  58. package/components/pages/SideInSide/SideInSideStyles.js +6 -6
  59. package/components/stream/AppHub/AppHub.js +13 -42
  60. package/components/stream/AppHub/AppHubAdvertStyles.js +24 -8
  61. package/components/stream/AppHub/AppHubBannerAdvert.d.ts +1 -2
  62. package/components/stream/AppHub/AppHubBannerAdvert.js +10 -20
  63. package/components/stream/AppHub/AppHubCustom.js +8 -19
  64. package/components/stream/AppHub/AppHubCustomStyles.d.ts +1 -1
  65. package/components/stream/AppHub/AppHubCustomStyles.js +78 -18
  66. package/components/stream/AppHub/AppHubProduct.js +26 -48
  67. package/components/stream/AppHub/AppHubProductStyles.js +104 -19
  68. package/components/stream/AppHub/AppHubStyles.js +31 -11
  69. package/components/stream/AppHub/constants.d.ts +1 -2
  70. package/components/stream/AppHub/constants.js +14 -14
  71. package/components/stream/AppSwitcher/AppSwitcher.js +225 -316
  72. package/components/stream/AppSwitcher/AppSwitcherItem.js +11 -22
  73. package/components/stream/AppSwitcher/AppSwitcherStyles.js +337 -42
  74. package/components/stream/AppSwitcher/AppSwitcherStylesStandalone.js +255 -21
  75. package/components/stream/AppSwitcher/PromotionalCampaignItem.js +7 -19
  76. package/components/stream/AppSwitcher/constants.d.ts +1 -0
  77. package/components/stream/AppSwitcher/constants.js +6 -5
  78. package/lang/en-us.d.ts +1 -0
  79. package/lang/en-us.js +2 -1
  80. package/package.json +7 -2
  81. package/utils/constants.d.ts +7 -0
  82. package/utils/constants.js +11 -4
  83. package/utils/dataAttributes.js +1 -1
  84. package/utils/helpers.js +33 -40
  85. package/utils/hooks.js +10 -11
  86. package/utils/theme.js +26 -19
@@ -1,13 +1,33 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
1
  import { styled } from '@mui/material/styles';
6
2
  import { Paper, Box, Typography } from '../../../index';
7
- export var AppHubPanel = styled('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 1rem;\n max-width: 1000px;\n"], ["\n padding: 1rem;\n max-width: 1000px;\n"])));
8
- export var AppHubRow = styled(Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: 2rem 0 0;\n"], ["\n margin: 2rem 0 0;\n"])));
9
- export var AppHubTitle = styled(Typography)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 2rem;\n font-weight: 700;\n line-height: 1.3;\n color: ", ";\n margin-bottom: 0.5rem;\n"], ["\n font-size: 2rem;\n font-weight: 700;\n line-height: 1.3;\n color: ", ";\n margin-bottom: 0.5rem;\n"])), function (props) { return props.theme.palette.text.primary; });
10
- export var AppHubHeader = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n margin: 0 0 1rem;\n"], ["\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n margin: 0 0 1rem;\n"])), function (props) { return props.theme.palette.text.secondary; });
11
- export var StyledPaper = styled(Paper)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n background: #fff;\n"], ["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n background: #fff;\n"])));
12
- export var StyledBox = styled(Box)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
13
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
3
+ export const AppHubPanel = styled('div') `
4
+ padding: 1rem;
5
+ max-width: 1000px;
6
+ `;
7
+ export const AppHubRow = styled(Box) `
8
+ margin: 2rem 0 0;
9
+ `;
10
+ export const AppHubTitle = styled(Typography) `
11
+ font-size: 2rem;
12
+ font-weight: 700;
13
+ line-height: 1.3;
14
+ color: ${props => props.theme.palette.text.primary};
15
+ margin-bottom: 0.5rem;
16
+ `;
17
+ export const AppHubHeader = styled(Typography) `
18
+ font-size: 1rem;
19
+ font-weight: 500;
20
+ color: ${props => props.theme.palette.text.secondary};
21
+ margin: 0 0 1rem;
22
+ `;
23
+ export const StyledPaper = styled(Paper) `
24
+ display: flex;
25
+ flex-direction: row;
26
+ width: 100%;
27
+ height: 100%;
28
+ background: #fff;
29
+ `;
30
+ export const StyledBox = styled(Box) `
31
+ display: flex;
32
+ flex-direction: column;
33
+ `;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Constants: Readonly<{
3
2
  DataRowType: {
4
3
  Product: string;
@@ -82,7 +81,7 @@ export declare const hubCustomLinks: ({
82
81
  export declare const hubSupportItems: {
83
82
  name: string;
84
83
  url: string;
85
- icon: JSX.Element;
84
+ icon: import("@emotion/react/jsx-runtime").JSX.Element;
86
85
  }[];
87
86
  export declare const hubBannerAdverts: {
88
87
  name: string;
@@ -1,6 +1,6 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
2
2
  import HomeIcon from '@mui/icons-material/Home';
3
- export var Constants = Object.freeze({
3
+ export const Constants = Object.freeze({
4
4
  DataRowType: {
5
5
  Product: 'product',
6
6
  CustomLink: 'custom-link',
@@ -12,7 +12,7 @@ export var Constants = Object.freeze({
12
12
  End: 'end'
13
13
  }
14
14
  });
15
- export var hubApplications = [
15
+ export const hubApplications = [
16
16
  { applicationId: 1, applicationName: 'Stream LXP', shortName: 'LXP', internalName: 'stream', url: 'https://learningpool.com' },
17
17
  {
18
18
  applicationId: 2,
@@ -20,11 +20,11 @@ export var hubApplications = [
20
20
  shortName: 'Long Wrapping Text Name Truncation Test Stream Analytics',
21
21
  internalName: 'analytics',
22
22
  children: [
23
- { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
24
- { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
25
- { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
26
- { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
27
- { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } }
23
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: () => window.open('http://learningpool.com', '_blank') },
24
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: () => window.open('http://learningpool.com', '_blank') },
25
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: () => window.open('http://learningpool.com', '_blank') },
26
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: () => window.open('http://learningpool.com', '_blank') },
27
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: () => window.open('http://learningpool.com', '_blank') }
28
28
  ]
29
29
  },
30
30
  { applicationId: 3, applicationName: 'Stream Automation', shortName: 'Event Management', internalName: 'automation', customName: 'Waves 1', url: 'https://learningpool.com' },
@@ -35,14 +35,14 @@ export var hubApplications = [
35
35
  internalName: 'lms',
36
36
  customName: 'Custom Name Test',
37
37
  children: [
38
- { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
39
- { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
40
- { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: function () { return window.open('http://learningpool.com', '_blank'); } }
38
+ { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: () => window.open('http://learningpool.com', '_blank') },
39
+ { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: () => window.open('http://learningpool.com', '_blank') },
40
+ { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: () => window.open('http://learningpool.com', '_blank') }
41
41
  ]
42
42
  },
43
43
  { applicationId: 4, applicationName: 'Stream Authoring', shortName: 'Authoring', internalName: 'authoring', customName: '', subtitle: 'Subtitle Test', url: 'https://learningpool.com' }
44
44
  ];
45
- export var hubCustomLinks = [
45
+ export const hubCustomLinks = [
46
46
  { name: 'Learning Pool', url: 'https://learningpool.com' },
47
47
  { name: 'Custom Link', url: 'https://learningpool.com' },
48
48
  { name: 'Another Custom Link', url: 'https://learningpool.com', customLinkBgColor: '#ff0000' },
@@ -53,10 +53,10 @@ export var hubCustomLinks = [
53
53
  { name: 'Another Custom Link', url: 'https://learningpool.com' },
54
54
  { name: 'Another Custom Link', url: 'https://learningpool.com' }
55
55
  ];
56
- export var hubSupportItems = [
56
+ export const hubSupportItems = [
57
57
  { name: 'Contact us', url: 'https://learningpool.com', icon: _jsx(HomeIcon, {}) }
58
58
  ];
59
- export var hubBannerAdverts = [
59
+ export const hubBannerAdverts = [
60
60
  { name: 'Banner Advert', imageUrl: 'https://uuicdn.learningpool.com/promotionalcampaigns/banner/latest/1000x138.png', url: 'https://learningpool.com' },
61
61
  { name: 'Another Banner Advert no image', imageUrl: '3', url: 'https://learningpool.com' },
62
62
  { name: 'Another Banner Advert', imageUrl: 'https://uuicdn.learningpool.com/promotionalcampaigns/banner/latest/1000x138.png', url: 'https://learningpool.com' }