@learningpool/ui 1.6.0-beta.8 → 1.6.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.
- package/components/landmarks/Header/Header.d.ts +26 -0
- package/components/landmarks/Header/Header.js +75 -0
- package/components/landmarks/Header/HeaderActionButtons.d.ts +3 -0
- package/components/landmarks/Header/HeaderActionButtons.js +66 -0
- package/components/landmarks/Header/HeaderStyles.d.ts +55 -0
- package/components/landmarks/Header/HeaderStyles.js +13 -0
- package/components/navigation/MobileNavigation/MobileNavigation.d.ts +1 -2
- package/components/navigation/MobileNavigation/MobileNavigation.js +29 -82
- package/components/navigation/MobileNavigation/MobileNavigationAvatar.d.ts +1 -1
- package/components/navigation/MobileNavigation/MobileNavigationAvatar.js +26 -8
- package/components/navigation/MobileNavigation/MobileNavigationDrawer.js +3 -4
- package/components/navigation/MobileNavigation/MobileNavigationDrawerStyles.d.ts +3 -3
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemFlyoutMenuStyles.d.ts +1 -1
- package/components/navigation/MobileNavigation/MobileNavigationItem/MobileNavigationItemStyles.d.ts +1 -1
- package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.d.ts +3 -0
- package/components/navigation/MobileNavigation/MobileNavigationNotchIndicator.js +31 -0
- package/components/navigation/MobileNavigation/MobileNavigationStyles.d.ts +0 -254
- package/components/navigation/MobileNavigation/MobileNavigationStyles.js +19 -24
- package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.d.ts +2 -1
- package/components/navigation/MobileNavigation/MobileNavigationToggleSearchX.js +2 -1
- package/components/navigation/MobileNavigation/MobileNavigationToggleX.d.ts +2 -1
- package/components/navigation/MobileNavigation/MobileNavigationToggleX.js +2 -1
- package/components/navigation/VerticalNavigation/VerticalNavigation.d.ts +4 -2
- package/components/navigation/VerticalNavigation/VerticalNavigation.js +19 -22
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.d.ts +1 -21
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatar.js +4 -4
- package/components/navigation/VerticalNavigation/VerticalNavigationAvatarStyles.js +3 -3
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.d.ts +1 -15
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItem.js +28 -24
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.d.ts +1 -1
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenu.js +1 -1
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemFlyoutMenuStyles.d.ts +1 -1
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.d.ts +1 -3
- package/components/navigation/VerticalNavigation/VerticalNavigationItem/VerticalNavigationItemStyles.js +3 -5
- package/components/navigation/VerticalNavigation/VerticalNavigationStyles.js +2 -2
- package/components/stream/AppSwitcher/AppSwitcher.d.ts +36 -0
- package/components/stream/AppSwitcher/AppSwitcher.js +307 -0
- package/components/stream/AppSwitcher/AppSwitcherItem.d.ts +16 -0
- package/components/stream/AppSwitcher/AppSwitcherItem.js +51 -0
- package/components/stream/AppSwitcher/AppSwitcherStyles.d.ts +17 -0
- package/components/stream/AppSwitcher/AppSwitcherStyles.js +48 -0
- package/components/stream/AppSwitcher/constants.d.ts +34 -0
- package/components/stream/AppSwitcher/constants.js +27 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/lang/en-us.d.ts +6 -0
- package/lang/en-us.js +6 -0
- package/package.json +4 -3
- package/types/components/navigation/VerticalNavigation.d.ts +49 -0
- package/types/components/navigation/VerticalNavigation.js +1 -0
- package/types/components/navigation/VerticalNavigationAvatar.d.ts +22 -0
- package/types/components/navigation/VerticalNavigationAvatar.js +1 -0
- package/types/components/stream/AppSwitcher.d.ts +9 -0
- package/types/components/stream/AppSwitcher.js +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +3 -0
- package/utils/constants.d.ts +1 -0
- package/utils/constants.js +3 -0
- package/utils/theme.d.ts +2 -2
- package/utils/theme.js +3 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IApplication } from '../stream/AppSwitcher';
|
|
3
|
+
import { IAvatarMenuItemProps } from './VerticalNavigationAvatar';
|
|
4
|
+
export interface IVerticalNavigationItemProps {
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: JSX.Element;
|
|
7
|
+
onClick?: any;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
children?: IVerticalNavigationItemProps[];
|
|
10
|
+
isDrawerOpen?: boolean;
|
|
11
|
+
index?: number;
|
|
12
|
+
isSecondary?: boolean;
|
|
13
|
+
hasFlyout?: boolean;
|
|
14
|
+
fullHeightFlyout?: boolean;
|
|
15
|
+
content?: JSX.Element;
|
|
16
|
+
style?: any;
|
|
17
|
+
open?: boolean;
|
|
18
|
+
hasCustomContent?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IVerticalNavigationProps {
|
|
21
|
+
logo?: string;
|
|
22
|
+
logoText?: string;
|
|
23
|
+
logoOnClick?: any;
|
|
24
|
+
items?: IVerticalNavigationItemProps[];
|
|
25
|
+
secondaryItems?: IVerticalNavigationItemProps[];
|
|
26
|
+
hasStreamHome?: boolean;
|
|
27
|
+
streamHomeAccessToken?: string;
|
|
28
|
+
streamHomeBaseUrl?: string;
|
|
29
|
+
streamHomeApiKey?: string;
|
|
30
|
+
streamHomeApplications?: IApplication[];
|
|
31
|
+
avatarName?: string;
|
|
32
|
+
isDrawerOpen?: boolean;
|
|
33
|
+
isPersistent?: boolean;
|
|
34
|
+
setIsPersistent?: any;
|
|
35
|
+
appRootID?: string;
|
|
36
|
+
hasAvatar?: boolean;
|
|
37
|
+
avatarPanelLogoutString?: string;
|
|
38
|
+
avatarPanelOnClickSwitchDirection?: any;
|
|
39
|
+
avatarPanelOnClickLogout?: any;
|
|
40
|
+
avatarPanelOnClickViewProfile?: any;
|
|
41
|
+
avatarPanelViewProfileString?: string;
|
|
42
|
+
avatarPanelOnClickEditProfile?: any;
|
|
43
|
+
avatarPanelEditProfileString?: string;
|
|
44
|
+
avatarPanelMenuItems?: Array<IAvatarMenuItemProps>;
|
|
45
|
+
avatarPanelOnClickMainAction?: any;
|
|
46
|
+
avatarPanelMainActionString?: string;
|
|
47
|
+
avatarPanelSettingItems?: Array<IAvatarMenuItemProps>;
|
|
48
|
+
avatarPanelFootnote?: any;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IAvatarMenuItemProps {
|
|
2
|
+
label: string;
|
|
3
|
+
icon: any;
|
|
4
|
+
onClick: any;
|
|
5
|
+
}
|
|
6
|
+
export interface IAvatarPanelProps {
|
|
7
|
+
avatarName: string;
|
|
8
|
+
editProfileText?: string;
|
|
9
|
+
avatarPanelLogoutString?: string;
|
|
10
|
+
avatarPanelOnClickSwitchDirection?: any;
|
|
11
|
+
avatarPanelOnClickLogout?: any;
|
|
12
|
+
avatarPanelOnClickViewProfile?: any;
|
|
13
|
+
avatarPanelViewProfileString?: string;
|
|
14
|
+
avatarPanelOnClickEditProfile?: any;
|
|
15
|
+
avatarPanelEditProfileString?: string;
|
|
16
|
+
avatarPanelMenuItems?: Array<IAvatarMenuItemProps>;
|
|
17
|
+
avatarPanelOnClickMainAction?: any;
|
|
18
|
+
avatarPanelMainActionString?: string;
|
|
19
|
+
avatarPanelSettingItems?: Array<IAvatarMenuItemProps>;
|
|
20
|
+
avatarPanelInvertNavString?: string;
|
|
21
|
+
avatarPanelFootnote?: any;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { IVerticalNavigationItemProps, IVerticalNavigationProps } from './components/navigation/VerticalNavigation';
|
|
2
|
+
export type { IAvatarMenuItemProps, IAvatarPanelProps } from './components/navigation/VerticalNavigationAvatar';
|
|
3
|
+
export type { IApplication } from './components/stream/AppSwitcher';
|
package/types/index.js
ADDED
package/utils/constants.d.ts
CHANGED
package/utils/constants.js
CHANGED
package/utils/theme.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare const lightTheme: {
|
|
|
53
53
|
};
|
|
54
54
|
divider: string;
|
|
55
55
|
text: {
|
|
56
|
-
primary:
|
|
56
|
+
primary: string;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
};
|
|
@@ -77,7 +77,7 @@ export declare const darkTheme: {
|
|
|
77
77
|
};
|
|
78
78
|
divider: string;
|
|
79
79
|
text: {
|
|
80
|
-
primary:
|
|
80
|
+
primary: string;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
};
|
package/utils/theme.js
CHANGED
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { amber, blue
|
|
12
|
+
import { amber, blue } from '@mui/material/colors';
|
|
13
13
|
var DEFAULT_HEADER_TYPOGRAPHY = {
|
|
14
14
|
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif'
|
|
15
15
|
};
|
|
@@ -40,7 +40,7 @@ export var lightTheme = {
|
|
|
40
40
|
},
|
|
41
41
|
divider: 'rgba(0, 0, 0, 0.075)',
|
|
42
42
|
text: {
|
|
43
|
-
primary:
|
|
43
|
+
primary: 'rgba(0,0,0,0.95)'
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
};
|
|
@@ -49,7 +49,7 @@ export var darkTheme = {
|
|
|
49
49
|
primary: amber,
|
|
50
50
|
divider: 'rgba(255, 255, 255, 0.075)',
|
|
51
51
|
text: {
|
|
52
|
-
primary:
|
|
52
|
+
primary: 'rgba(255,255,255,0.95)'
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
};
|