@frontegg/types 4.43.0 → 5.1.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/Common.d.ts +3 -0
- package/ContextOptions.d.ts +1 -1
- package/FronteggAppInstance.d.ts +1 -0
- package/FronteggAppOptions.d.ts +10 -2
- package/FronteggMetadata.d.ts +5 -0
- package/Localizations/AdminPortalLocalizations/navigation.d.ts +4 -0
- package/Localizations/AdminPortalLocalizations/sso.d.ts +27 -0
- package/Localizations/LocalizationOverrides.d.ts +1 -0
- package/Localizations/LocalizationType.d.ts +1 -0
- package/Localizations/LoginBoxLocalization/acceptInvitation.d.ts +4 -0
- package/Localizations/LoginBoxLocalization/activateAccount.d.ts +4 -0
- package/Localizations/LoginBoxLocalization/forgetPassword.d.ts +8 -0
- package/Localizations/LoginBoxLocalization/index.d.ts +8 -0
- package/Localizations/LoginBoxLocalization/login.d.ts +16 -0
- package/Localizations/LoginBoxLocalization/resetPassword.d.ts +8 -0
- package/Localizations/LoginBoxLocalization/signup.d.ts +8 -0
- package/Metadata/index.d.ts +2 -0
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +29 -0
- package/ThemeOptions/ComponentsOptions.d.ts +63 -0
- package/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.d.ts +21 -0
- package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.d.ts +52 -0
- package/ThemeOptions/LoginBoxTheme/CustomLoginComponents.d.ts +12 -0
- package/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.d.ts +46 -0
- package/ThemeOptions/LoginBoxTheme/LoaderTheme.d.ts +7 -0
- package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.d.ts +171 -0
- package/ThemeOptions/LoginBoxTheme/LoginPageTheme.d.ts +119 -0
- package/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.d.ts +48 -0
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +46 -0
- package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.d.ts +44 -0
- package/ThemeOptions/LoginBoxTheme/index.d.ts +51 -0
- package/ThemeOptions/LoginBoxThemeOptions.d.ts +3 -8
- package/ThemeOptions/helpers.d.ts +0 -0
- package/ThemeOptions/index.d.ts +6 -190
- package/index.js +16 -5
- package/node/index.js +16 -5
- package/package.json +1 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { ExtendedCSSProperties } from '../../Common';
|
|
2
|
+
import { BaseTheme, BaseThemeOptions } from '../index';
|
|
3
|
+
import { ButtonThemeOptions, CustomComponent, InputThemeOptions } from '../ComponentsOptions';
|
|
4
|
+
/**
|
|
5
|
+
* @RootElement
|
|
6
|
+
* - @WrapperElement
|
|
7
|
+
* | - Header
|
|
8
|
+
* | - Box
|
|
9
|
+
* | | - Header
|
|
10
|
+
* | | - Content
|
|
11
|
+
* | | - SocialLogin
|
|
12
|
+
* | | | - Divider
|
|
13
|
+
* | | | - Google
|
|
14
|
+
* | | | - Microsoft
|
|
15
|
+
* | | | - Footer
|
|
16
|
+
* | | - Footer
|
|
17
|
+
* | - Footer
|
|
18
|
+
*/
|
|
19
|
+
interface LogoComponent {
|
|
20
|
+
/**
|
|
21
|
+
* Company logo Url or native html element as string
|
|
22
|
+
*/
|
|
23
|
+
image?: string | any | CustomComponent;
|
|
24
|
+
/**
|
|
25
|
+
* Company logo placement in Login Pages
|
|
26
|
+
* box = inside the login box element
|
|
27
|
+
* page = displayed at the top of the page
|
|
28
|
+
*/
|
|
29
|
+
placement?: 'box' | 'page';
|
|
30
|
+
alignment?: 'left' | 'right' | 'center';
|
|
31
|
+
/**
|
|
32
|
+
* Direct css styling for Company Logo container component
|
|
33
|
+
*/
|
|
34
|
+
style?: ExtendedCSSProperties;
|
|
35
|
+
}
|
|
36
|
+
interface LayoutOptions {
|
|
37
|
+
/**
|
|
38
|
+
* Layout type for login box page, Default is Center login box elements
|
|
39
|
+
* By choosing Side type you can provide HTML element for the other
|
|
40
|
+
* side, floating right will display login box at the right element
|
|
41
|
+
* with default width equal to 50% of the window width
|
|
42
|
+
*/
|
|
43
|
+
type: 'float-right' | 'center' | 'float-left';
|
|
44
|
+
/**
|
|
45
|
+
* Will be displayed if type is 'float-right' or 'float-left',
|
|
46
|
+
* Accepts:
|
|
47
|
+
* - html element as string
|
|
48
|
+
* - function that return html element as string
|
|
49
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
50
|
+
*/
|
|
51
|
+
sideElement?: CustomComponent;
|
|
52
|
+
sideElementStyle?: ExtendedCSSProperties;
|
|
53
|
+
}
|
|
54
|
+
interface LoginBoxOptionalCommon {
|
|
55
|
+
/**
|
|
56
|
+
* Options to specify the login box page structure
|
|
57
|
+
* Ex. split screen and display login in the left/right side
|
|
58
|
+
*/
|
|
59
|
+
layout?: LayoutOptions;
|
|
60
|
+
/**
|
|
61
|
+
* Header component placed in before section content.
|
|
62
|
+
* Mostly used for Company Logo or Page title
|
|
63
|
+
* Accepts:
|
|
64
|
+
* - string as url for rendering image element with src='url'
|
|
65
|
+
* - string as base64 for rendering image as base64 content
|
|
66
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
67
|
+
*/
|
|
68
|
+
pageHeader?: CustomComponent;
|
|
69
|
+
/**
|
|
70
|
+
* Footer component placed in before section content
|
|
71
|
+
* Mostly used for Disclaimers or Back buttons
|
|
72
|
+
* Accepts:
|
|
73
|
+
* - string as url for rendering image element with src='url'
|
|
74
|
+
* - string as base64 for rendering image as base64 content
|
|
75
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
76
|
+
*/
|
|
77
|
+
pageFooter?: CustomComponent;
|
|
78
|
+
/**
|
|
79
|
+
* Company logo Url or native html element as string
|
|
80
|
+
*/
|
|
81
|
+
logo?: LogoComponent;
|
|
82
|
+
/**
|
|
83
|
+
* Powered by frontegg placement
|
|
84
|
+
* box = inside the login box element
|
|
85
|
+
* page = displayed at the bottom of the page
|
|
86
|
+
*/
|
|
87
|
+
poweredByPlacement?: 'box' | 'page';
|
|
88
|
+
/**
|
|
89
|
+
* BoxElement
|
|
90
|
+
* It is a Card component placed inside the [WrapperElement]{@link pageStyle}
|
|
91
|
+
* The purpose of this element is to contain page field
|
|
92
|
+
* By default it's have flex display and justify content center
|
|
93
|
+
*/
|
|
94
|
+
boxStyle?: ExtendedCSSProperties;
|
|
95
|
+
/**
|
|
96
|
+
* Header component placed in inside the login box and before login inputs.
|
|
97
|
+
* Accepts:
|
|
98
|
+
* - string as url for rendering image element with src='url'
|
|
99
|
+
* - string as base64 for rendering image as base64 content
|
|
100
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree (should be pure component without hooks and HOC)
|
|
101
|
+
*/
|
|
102
|
+
boxHeader?: CustomComponent;
|
|
103
|
+
/**
|
|
104
|
+
* Direct css styling for applying css for all (Box title) in LoginBox pages
|
|
105
|
+
*/
|
|
106
|
+
boxTitleStyle?: ExtendedCSSProperties;
|
|
107
|
+
/**
|
|
108
|
+
* Direct css styling for applying css for all (Box message or Box subtitle) in LoginBox pages
|
|
109
|
+
*/
|
|
110
|
+
boxMessageStyle?: ExtendedCSSProperties;
|
|
111
|
+
/**
|
|
112
|
+
* Footer component placed in inside the login box and after login inputs.
|
|
113
|
+
* Mostly used for Disclaimers or Back buttons
|
|
114
|
+
* Accepts:
|
|
115
|
+
* - string as url for rendering image element with src='url'
|
|
116
|
+
* - string as base64 for rendering image as base64 content
|
|
117
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
118
|
+
*/
|
|
119
|
+
boxFooter?: CustomComponent;
|
|
120
|
+
/**
|
|
121
|
+
* Option to customize login box inputs by providing
|
|
122
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
123
|
+
*/
|
|
124
|
+
inputTheme?: InputThemeOptions;
|
|
125
|
+
/**
|
|
126
|
+
* Option to customize login box standard buttons by providing
|
|
127
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
128
|
+
*/
|
|
129
|
+
buttonTheme?: ButtonThemeOptions;
|
|
130
|
+
/**
|
|
131
|
+
* Option to customize login box link buttons by providing
|
|
132
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
133
|
+
*/
|
|
134
|
+
linkButtonTheme?: ButtonThemeOptions;
|
|
135
|
+
/**
|
|
136
|
+
* Option to customize login box submit buttons by providing
|
|
137
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
138
|
+
*/
|
|
139
|
+
submitButtonTheme?: ButtonThemeOptions;
|
|
140
|
+
}
|
|
141
|
+
export interface LoginBoxCommonTheme extends BaseTheme, LoginBoxOptionalCommon {
|
|
142
|
+
/**
|
|
143
|
+
* RootElement
|
|
144
|
+
* The root DIV element of specific login box page
|
|
145
|
+
* By default it's have fixed and full width/height size
|
|
146
|
+
*/
|
|
147
|
+
rootStyle: ExtendedCSSProperties;
|
|
148
|
+
/**
|
|
149
|
+
* PageElement
|
|
150
|
+
* It is DIV element placed inside the [RootElement]{@link rootStyle}
|
|
151
|
+
* The purpose of this element is to wrapper the Box Component and other custom components
|
|
152
|
+
* By default it's have flex display and justify content center
|
|
153
|
+
*/
|
|
154
|
+
pageStyle: ExtendedCSSProperties;
|
|
155
|
+
}
|
|
156
|
+
export interface LoginBoxCommonThemeOptions extends BaseThemeOptions, LoginBoxOptionalCommon {
|
|
157
|
+
/**
|
|
158
|
+
* RootElement
|
|
159
|
+
* The root DIV element of specific login box page
|
|
160
|
+
* By default it's have fixed and full width/height size
|
|
161
|
+
*/
|
|
162
|
+
rootStyle?: ExtendedCSSProperties;
|
|
163
|
+
/**
|
|
164
|
+
* PageElement
|
|
165
|
+
* It is DIV element placed inside the [RootElement]{@link rootStyle}
|
|
166
|
+
* The purpose of this element is to wrapper the Box Component and other custom components
|
|
167
|
+
* By default it's have flex display and justify content center
|
|
168
|
+
*/
|
|
169
|
+
pageStyle?: ExtendedCSSProperties;
|
|
170
|
+
}
|
|
171
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
|
|
2
|
+
import { ExtendedCSSProperties } from '../../Common';
|
|
3
|
+
import { CustomComponent } from '../ComponentsOptions';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
interface TitleProps {
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
interface MessageProps {
|
|
9
|
+
message: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface GoToSignupMessageProps {
|
|
12
|
+
goToSignup: () => void;
|
|
13
|
+
goToSignupMessage: string;
|
|
14
|
+
goToSignupButtonText: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ResendOTCProps {
|
|
17
|
+
haventReceiveOTCMessage: string;
|
|
18
|
+
resendOTCMessage: string;
|
|
19
|
+
resendOTC: () => void;
|
|
20
|
+
}
|
|
21
|
+
export interface LoginPageComponentsTheme {
|
|
22
|
+
/**
|
|
23
|
+
* Login page container style
|
|
24
|
+
*/
|
|
25
|
+
containerStyle?: ExtendedCSSProperties;
|
|
26
|
+
/**
|
|
27
|
+
* Login page form container style
|
|
28
|
+
*/
|
|
29
|
+
formContainerStyle?: ExtendedCSSProperties;
|
|
30
|
+
/**
|
|
31
|
+
* Login page title default is 'Sign In'
|
|
32
|
+
* displayed in login screen (login with password, pre-login)
|
|
33
|
+
* passing 'null' will hide the title
|
|
34
|
+
*/
|
|
35
|
+
title?: CustomComponent<TitleProps>;
|
|
36
|
+
/**
|
|
37
|
+
* Direct css style for Login Page title
|
|
38
|
+
*/
|
|
39
|
+
titleStyle?: ExtendedCSSProperties;
|
|
40
|
+
/**
|
|
41
|
+
* Go to signup component displayed under box title default is 'Don't have an account? Sign up'
|
|
42
|
+
* displayed in login screen (login with password, pre-login)
|
|
43
|
+
* passing 'null' will hide the signup message
|
|
44
|
+
*/
|
|
45
|
+
signupMessage?: CustomComponent<GoToSignupMessageProps>;
|
|
46
|
+
/**
|
|
47
|
+
* Direct css style for 'Go to signup component'
|
|
48
|
+
*/
|
|
49
|
+
signupMessageStyle?: ExtendedCSSProperties;
|
|
50
|
+
/**
|
|
51
|
+
* Recover Multi-factor page title default is 'Recover MFA'
|
|
52
|
+
* displayed in recover mfa screen
|
|
53
|
+
* passing 'null' will hide the title
|
|
54
|
+
*/
|
|
55
|
+
recoverMfaTitle?: CustomComponent<TitleProps>;
|
|
56
|
+
/**
|
|
57
|
+
* Direct css style for Recover Multi-factor title
|
|
58
|
+
*/
|
|
59
|
+
recoverMfaTitleStyle?: ExtendedCSSProperties;
|
|
60
|
+
/**
|
|
61
|
+
* One time code login title default is 'Check your email'
|
|
62
|
+
* displayed after pre-login with OTC enabled
|
|
63
|
+
* passing 'null' will hide the title
|
|
64
|
+
*/
|
|
65
|
+
otcTitle?: CustomComponent<TitleProps>;
|
|
66
|
+
/**
|
|
67
|
+
* Direct css style for One time code
|
|
68
|
+
*/
|
|
69
|
+
otcTitleStyle?: ExtendedCSSProperties;
|
|
70
|
+
/**
|
|
71
|
+
* One time code login message component default is 'We have sent an six-digit code to smaple@email.com'
|
|
72
|
+
* displayed after pre-login with OTC enabled
|
|
73
|
+
* passing 'null' will hide the title
|
|
74
|
+
*/
|
|
75
|
+
otcMessage?: CustomComponent<MessageProps>;
|
|
76
|
+
/**
|
|
77
|
+
* Direct css style for One time code login message
|
|
78
|
+
*/
|
|
79
|
+
otcMessageStyle?: ExtendedCSSProperties;
|
|
80
|
+
/**
|
|
81
|
+
* Resend OTC container component, displaye after otc submit button,
|
|
82
|
+
* passing 'null' will hide the otc resend button
|
|
83
|
+
*/
|
|
84
|
+
resendOTC?: ExtendedCSSProperties;
|
|
85
|
+
/**
|
|
86
|
+
* Direct css style for Resent OTC container
|
|
87
|
+
*/
|
|
88
|
+
resendOTCStyle?: ExtendedCSSProperties;
|
|
89
|
+
/**
|
|
90
|
+
* Direct style for the text displayed before resend otc button,
|
|
91
|
+
* default is 'Haven’t received it?'
|
|
92
|
+
*/
|
|
93
|
+
resendOTCMessageStyle?: ExtendedCSSProperties;
|
|
94
|
+
/**
|
|
95
|
+
* MagicLink success login title default is 'Check your email'
|
|
96
|
+
* displayed after pre-login if MagicLink enabled
|
|
97
|
+
* passing 'null' will hide the title
|
|
98
|
+
*/
|
|
99
|
+
magicLinkTitle?: CustomComponent<TitleProps>;
|
|
100
|
+
/**
|
|
101
|
+
* Direct css style for MagicLink title
|
|
102
|
+
*/
|
|
103
|
+
magicLinkTitleStyle?: ExtendedCSSProperties;
|
|
104
|
+
/**
|
|
105
|
+
* MagicLink login message component default is 'We have sent an email to smaple@email.com'
|
|
106
|
+
* displayed after pre-login with MagicLink enabled
|
|
107
|
+
* passing 'null' will hide the title
|
|
108
|
+
*/
|
|
109
|
+
magicLinkMessage?: CustomComponent<MessageProps>;
|
|
110
|
+
/**
|
|
111
|
+
* Direct css style for MagicLink message
|
|
112
|
+
*/
|
|
113
|
+
magicLinkMessageStyle?: ExtendedCSSProperties;
|
|
114
|
+
}
|
|
115
|
+
export interface LoginPageThemeOptions extends LoginBoxCommonThemeOptions, LoginPageComponentsTheme {
|
|
116
|
+
}
|
|
117
|
+
export interface LoginPageTheme extends LoginBoxCommonTheme, LoginPageComponentsTheme {
|
|
118
|
+
}
|
|
119
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CustomComponent, LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
|
|
2
|
+
import { ExtendedCSSProperties } from '../../Common';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
interface TitleProps {
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
interface MessageProps {
|
|
8
|
+
message: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface ResetPasswordComponentsTheme {
|
|
11
|
+
/**
|
|
12
|
+
* Forgot password page container style
|
|
13
|
+
*/
|
|
14
|
+
containerStyle?: ExtendedCSSProperties;
|
|
15
|
+
/**
|
|
16
|
+
* Forgot password page form container style
|
|
17
|
+
*/
|
|
18
|
+
formContainerStyle?: ExtendedCSSProperties;
|
|
19
|
+
/**
|
|
20
|
+
* Reset password page success container style
|
|
21
|
+
*/
|
|
22
|
+
successContainerStyle?: ExtendedCSSProperties;
|
|
23
|
+
/**
|
|
24
|
+
* Reset password page title default is 'Reset Password'
|
|
25
|
+
* displayed in forgot password form screen
|
|
26
|
+
* passing 'null' will hide the title
|
|
27
|
+
*/
|
|
28
|
+
title?: CustomComponent<TitleProps>;
|
|
29
|
+
/**
|
|
30
|
+
* Direct css style for Forgot password Page title
|
|
31
|
+
*/
|
|
32
|
+
titleStyle?: ExtendedCSSProperties;
|
|
33
|
+
/**
|
|
34
|
+
* Reset password page message default is hidden
|
|
35
|
+
* displayed in forgot password form screen
|
|
36
|
+
* passing 'null' will hide the message
|
|
37
|
+
*/
|
|
38
|
+
message?: CustomComponent<MessageProps>;
|
|
39
|
+
/**
|
|
40
|
+
* Direct css style for Forgot password Page message
|
|
41
|
+
*/
|
|
42
|
+
messageStyle?: ExtendedCSSProperties;
|
|
43
|
+
}
|
|
44
|
+
export interface ResetPasswordPageThemeOptions extends LoginBoxCommonThemeOptions, ResetPasswordComponentsTheme {
|
|
45
|
+
}
|
|
46
|
+
export interface ResetPasswordPageTheme extends LoginBoxCommonTheme, ResetPasswordComponentsTheme {
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LoginBoxCommonTheme, LoginBoxCommonThemeOptions } from '../index';
|
|
2
|
+
import { ExtendedCSSProperties } from '../../Common';
|
|
3
|
+
import { CustomComponent } from '../ComponentsOptions';
|
|
4
|
+
interface TitleProps {
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GoToLoginMessageProps {
|
|
8
|
+
goToLogin: () => void;
|
|
9
|
+
goToLoginMessage: string;
|
|
10
|
+
goToLoginButtonText: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SignupPageComponentsTheme {
|
|
13
|
+
/**
|
|
14
|
+
* Login page container style
|
|
15
|
+
*/
|
|
16
|
+
containerStyle?: ExtendedCSSProperties;
|
|
17
|
+
/**
|
|
18
|
+
* Login page form container style
|
|
19
|
+
*/
|
|
20
|
+
formContainerStyle?: ExtendedCSSProperties;
|
|
21
|
+
/**
|
|
22
|
+
* Login page title default is 'Sign In'
|
|
23
|
+
* displayed in login screen (login with password, pre-login)
|
|
24
|
+
* passing 'null' will hide the title
|
|
25
|
+
*/
|
|
26
|
+
title?: CustomComponent<TitleProps>;
|
|
27
|
+
/**
|
|
28
|
+
* Direct css style for Login Page title
|
|
29
|
+
*/
|
|
30
|
+
titleStyle?: ExtendedCSSProperties;
|
|
31
|
+
/**
|
|
32
|
+
* Go to login component displayed under box title default is 'Already have an account?'
|
|
33
|
+
* displayed in login screen (login with password, pre-login)
|
|
34
|
+
* passing 'null' will hide the signup message
|
|
35
|
+
*/
|
|
36
|
+
loginMessage?: CustomComponent<GoToLoginMessageProps>;
|
|
37
|
+
/**
|
|
38
|
+
* Direct css style for 'Go to Login'
|
|
39
|
+
*/
|
|
40
|
+
loginMessageStyle?: ExtendedCSSProperties;
|
|
41
|
+
}
|
|
42
|
+
export interface SignupPageThemeOptions extends LoginBoxCommonThemeOptions, SignupPageComponentsTheme {
|
|
43
|
+
}
|
|
44
|
+
export interface SignupPageTheme extends LoginBoxCommonTheme, SignupPageComponentsTheme {
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ExtendedCSSProperties } from '../../Common';
|
|
2
|
+
import { BaseTheme, BaseThemeOptions, ButtonThemeOptions } from '../index';
|
|
3
|
+
export interface SocialLoginComponentKeyRender {
|
|
4
|
+
divider: {
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
googleIcon: {};
|
|
8
|
+
microsoftIcon: {};
|
|
9
|
+
facebookIcon: {};
|
|
10
|
+
githubIcon: {};
|
|
11
|
+
}
|
|
12
|
+
export declare type SocialLoginCustomComponent<T extends keyof SocialLoginComponentKeyRender> = string | ((props?: SocialLoginComponentKeyRender[T]) => string | any);
|
|
13
|
+
export interface SocialLoginsThemeOptions extends BaseThemeOptions {
|
|
14
|
+
divider?: SocialLoginCustomComponent<'divider'>;
|
|
15
|
+
dividerStyle?: ExtendedCSSProperties;
|
|
16
|
+
dividerTextStyle?: ExtendedCSSProperties;
|
|
17
|
+
containerStyle?: ExtendedCSSProperties;
|
|
18
|
+
buttonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
19
|
+
iconsOnly?: boolean;
|
|
20
|
+
googleIcon?: SocialLoginCustomComponent<'googleIcon'>;
|
|
21
|
+
googleButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
22
|
+
microsoftIcon?: SocialLoginCustomComponent<'microsoftIcon'>;
|
|
23
|
+
microsoftButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
24
|
+
facebookIcon?: SocialLoginCustomComponent<'facebookIcon'>;
|
|
25
|
+
facebookButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
26
|
+
githubIcon?: SocialLoginCustomComponent<'githubIcon'>;
|
|
27
|
+
githubButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
28
|
+
}
|
|
29
|
+
export interface SocialLoginsTheme extends BaseTheme {
|
|
30
|
+
dividerStyle?: ExtendedCSSProperties;
|
|
31
|
+
dividerTextStyle?: ExtendedCSSProperties;
|
|
32
|
+
divider?: SocialLoginCustomComponent<'divider'>;
|
|
33
|
+
containerStyle?: ExtendedCSSProperties;
|
|
34
|
+
buttonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
35
|
+
iconsOnly?: boolean;
|
|
36
|
+
googleIcon?: SocialLoginCustomComponent<'googleIcon'>;
|
|
37
|
+
googleButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
38
|
+
microsoftIcon?: SocialLoginCustomComponent<'microsoftIcon'>;
|
|
39
|
+
microsoftButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
40
|
+
facebookIcon?: SocialLoginCustomComponent<'facebookIcon'>;
|
|
41
|
+
facebookButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
42
|
+
githubIcon?: SocialLoginCustomComponent<'githubIcon'>;
|
|
43
|
+
githubButtonStyle?: Omit<ButtonThemeOptions, 'disabled'>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AcceptInvitationPageTheme, AcceptInvitationPageThemeOptions } from './AcceptInvitationTheme';
|
|
2
|
+
import { ActivateAccountPageTheme, ActivateAccountPageThemeOptions } from './ActivateAccountPageTheme';
|
|
3
|
+
import { BaseThemeOptions, LoginBoxCommonTheme, LoginBoxCommonThemeOptions, SignupPageThemeOptions } from '../index';
|
|
4
|
+
import { CSSProperties, ExtendedCSSProperties } from '../../Common';
|
|
5
|
+
import { AuthPageCustomComponents } from '../../CustomComponents';
|
|
6
|
+
import { ForgotPasswordPageTheme, ForgotPasswordPageThemeOptions } from './ForgotPasswordTheme';
|
|
7
|
+
import { ResetPasswordPageTheme, ResetPasswordPageThemeOptions } from './ResetPasswordTheme';
|
|
8
|
+
import { LoginPageTheme, LoginPageThemeOptions } from './LoginPageTheme';
|
|
9
|
+
import { SocialLoginsTheme, SocialLoginsThemeOptions } from './SocialLoginsTheme';
|
|
10
|
+
import { LoaderTheme, LoaderThemeOptions } from './LoaderTheme';
|
|
11
|
+
import { SignupPageTheme } from './SignupPageTheme';
|
|
12
|
+
export * from './LoginBoxCommon';
|
|
13
|
+
export * from './LoginPageTheme';
|
|
14
|
+
export * from './SignupPageTheme';
|
|
15
|
+
export * from './CustomLoginComponents';
|
|
16
|
+
export * from './SocialLoginsTheme';
|
|
17
|
+
export * from './ForgotPasswordTheme';
|
|
18
|
+
export * from './ResetPasswordTheme';
|
|
19
|
+
export * from './ActivateAccountPageTheme';
|
|
20
|
+
export * from './AcceptInvitationTheme';
|
|
21
|
+
export interface AuthPageThemeOptions extends BaseThemeOptions, AuthPageCustomComponents {
|
|
22
|
+
style?: ExtendedCSSProperties;
|
|
23
|
+
layout?: {
|
|
24
|
+
width?: CSSProperties['width'];
|
|
25
|
+
marginLeft?: CSSProperties['marginLeft'];
|
|
26
|
+
outerCustomBackground?: any;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface LoginBoxThemeOptions extends LoginBoxCommonThemeOptions {
|
|
30
|
+
themeName?: 'classic' | 'modern' | 'vivid' | 'dark';
|
|
31
|
+
poweredByPlacement?: 'box' | 'page';
|
|
32
|
+
acceptInvitation?: AcceptInvitationPageThemeOptions;
|
|
33
|
+
activateAccount?: ActivateAccountPageThemeOptions;
|
|
34
|
+
forgotPassword?: ForgotPasswordPageThemeOptions;
|
|
35
|
+
resetPassword?: ResetPasswordPageThemeOptions;
|
|
36
|
+
login?: LoginPageThemeOptions;
|
|
37
|
+
signup?: SignupPageThemeOptions;
|
|
38
|
+
socialLogins?: SocialLoginsThemeOptions;
|
|
39
|
+
loader?: LoaderThemeOptions;
|
|
40
|
+
}
|
|
41
|
+
export interface LoginBoxTheme extends LoginBoxCommonTheme {
|
|
42
|
+
themeName: 'classic' | 'modern' | 'vivid' | 'dark';
|
|
43
|
+
acceptInvitation: AcceptInvitationPageTheme;
|
|
44
|
+
activateAccount: ActivateAccountPageTheme;
|
|
45
|
+
forgotPassword: ForgotPasswordPageTheme;
|
|
46
|
+
resetPassword: ResetPasswordPageTheme;
|
|
47
|
+
login: LoginPageTheme;
|
|
48
|
+
signup: SignupPageTheme;
|
|
49
|
+
socialLogins: SocialLoginsTheme;
|
|
50
|
+
loader: LoaderTheme;
|
|
51
|
+
}
|
|
@@ -22,6 +22,9 @@ export declare type SocialLogins = BaseThemeOptions & {
|
|
|
22
22
|
iconWidth?: string;
|
|
23
23
|
} & Record<SocialLoginTypes, SocialLoginButton>;
|
|
24
24
|
export interface AuthPageThemeOptions extends BaseThemeOptions, AuthPageCustomComponents {
|
|
25
|
+
style?: CSSProperties & {
|
|
26
|
+
[k in string]: CSSProperties;
|
|
27
|
+
};
|
|
25
28
|
layout?: {
|
|
26
29
|
width?: CSSProperties['width'];
|
|
27
30
|
marginLeft?: CSSProperties['marginLeft'];
|
|
@@ -41,11 +44,3 @@ export interface LoginFormThemeOptions extends AuthPageThemeOptions {
|
|
|
41
44
|
loginWithSsoFailed?: AuthPageThemeOptions;
|
|
42
45
|
forceEnrollMfa?: AuthPageThemeOptions;
|
|
43
46
|
}
|
|
44
|
-
export interface LoginBoxThemeOptions extends AuthPageThemeOptions {
|
|
45
|
-
login?: LoginFormThemeOptions;
|
|
46
|
-
signup?: AuthPageThemeOptions;
|
|
47
|
-
acceptInvitation?: AuthPageThemeOptions;
|
|
48
|
-
activateAccount?: AuthPageThemeOptions;
|
|
49
|
-
forgetPassword?: AuthPageThemeOptions;
|
|
50
|
-
resetPassword?: AuthPageThemeOptions;
|
|
51
|
-
}
|
|
File without changes
|