@frontegg/types 4.43.0-dashboard → 5.2.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.
@@ -9,12 +9,16 @@ export interface FronteggAppOptions extends FronteggStoreOptions {
9
9
  withCompanyName?: boolean;
10
10
  contextOptions: ContextOptions;
11
11
  themeOptions?: FronteggThemeOptions;
12
- headerImage?: string;
13
12
  /**
14
13
  * Authentication background logo image
15
- * @deprecated, use components.authPage.backgroundImage
14
+ * @deprecated, use themeOptions.loginBox.rootStyle.background
16
15
  */
17
16
  backgroundImage?: string;
17
+ /**
18
+ * Authentication background logo image
19
+ * @deprecated, use themeOptions.loginBox.logo.image from @LogoComponent
20
+ */
21
+ headerImage?: string;
18
22
  /**
19
23
  * pass true to customLoginBox to prevent loading LoginBox and implement authentication pages with @frontegg/react-hooks
20
24
  */
@@ -1,8 +1,32 @@
1
1
  import { BaseTheme, BaseThemeOptions } from './index';
2
+ import { Color, CSSProperties } from '../Common';
3
+ export interface NavigationThemeOptionsState {
4
+ color?: Color;
5
+ background?: Color;
6
+ borderColor?: Color;
7
+ avatarColor?: Color;
8
+ avatarBgColor?: Color;
9
+ }
2
10
  export interface NavigationThemeOptions extends BaseThemeOptions {
3
11
  header?: BaseThemeOptions;
4
12
  content?: BaseThemeOptions;
5
13
  footer?: BaseThemeOptions;
14
+ groupTitleColor?: Color;
15
+ groupTitleSize?: CSSProperties['fontSize'];
16
+ background?: Color;
17
+ headerColor?: Color;
18
+ subHeaderColor?: Color;
19
+ default?: Partial<Omit<NavigationThemeOptionsState, 'background'>>;
20
+ hover?: Partial<NavigationThemeOptionsState>;
21
+ selected?: Partial<NavigationThemeOptionsState>;
22
+ }
23
+ export interface RightPanelThemeOptions {
24
+ headerBackground: Color;
25
+ pageBackground: Color;
26
+ elementBackground: Color;
27
+ profileHeader: Color;
28
+ tableHeaderBackground: Color;
29
+ tableBodyBackground: Color;
6
30
  }
7
31
  export declare const enum AdminPortalPages {
8
32
  Profile = "profile",
@@ -44,9 +68,14 @@ export interface AdminPortalThemeOptions extends BaseThemeOptions {
44
68
  layout?: {
45
69
  fullScreenMode?: boolean;
46
70
  };
71
+ navigation?: NavigationThemeOptions;
72
+ pages?: PagesThemeOptions;
47
73
  }
48
74
  export interface AdminPortalTheme extends BaseTheme {
49
75
  layout: {
50
76
  fullScreenMode: boolean;
51
77
  };
78
+ navigation: NavigationThemeOptions;
79
+ rightPanel: RightPanelThemeOptions;
80
+ pages: PagesThemeOptions;
52
81
  }
@@ -18,9 +18,13 @@ export interface SocialLoginsThemeOptions extends BaseThemeOptions {
18
18
  buttonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
19
19
  iconsOnly?: boolean;
20
20
  googleIcon?: SocialLoginCustomComponent<'googleIcon'>;
21
+ googleButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
21
22
  microsoftIcon?: SocialLoginCustomComponent<'microsoftIcon'>;
23
+ microsoftButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
22
24
  facebookIcon?: SocialLoginCustomComponent<'facebookIcon'>;
25
+ facebookButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
23
26
  githubIcon?: SocialLoginCustomComponent<'githubIcon'>;
27
+ githubButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
24
28
  }
25
29
  export interface SocialLoginsTheme extends BaseTheme {
26
30
  dividerStyle?: ExtendedCSSProperties;
@@ -30,7 +34,11 @@ export interface SocialLoginsTheme extends BaseTheme {
30
34
  buttonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
31
35
  iconsOnly?: boolean;
32
36
  googleIcon?: SocialLoginCustomComponent<'googleIcon'>;
37
+ googleButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
33
38
  microsoftIcon?: SocialLoginCustomComponent<'microsoftIcon'>;
39
+ microsoftButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
34
40
  facebookIcon?: SocialLoginCustomComponent<'facebookIcon'>;
41
+ facebookButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
35
42
  githubIcon?: SocialLoginCustomComponent<'githubIcon'>;
43
+ githubButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
36
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/types",
3
- "version": "4.43.0-dashboard",
3
+ "version": "5.2.0",
4
4
  "main": "./node/index.js",
5
5
  "module": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -9,4 +9,4 @@
9
9
  "dependencies": {
10
10
  "csstype": "^3.0.9"
11
11
  }
12
- }
12
+ }