@frontegg/types 5.61.0 → 6.0.1-alpha.2
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/CheckoutDialogOptions.d.ts +6 -6
- package/CheckoutDialogOptions.js +1 -0
- package/Common.d.ts +6 -6
- package/Common.js +1 -0
- package/ContextOptions.d.ts +31 -31
- package/ContextOptions.js +1 -0
- package/CustomComponents.d.ts +19 -19
- package/CustomComponents.js +1 -0
- package/FronteggAppInstance.d.ts +23 -23
- package/FronteggAppInstance.js +1 -0
- package/FronteggAppOptions.d.ts +76 -76
- package/FronteggAppOptions.js +1 -0
- package/FronteggMetadata.d.ts +88 -88
- package/FronteggMetadata.js +1 -0
- package/FronteggStoreOptions.d.ts +13 -13
- package/FronteggStoreOptions.js +1 -0
- package/Localizations/AdminPortalLocalizations/accountSettings.d.ts +216 -216
- package/Localizations/AdminPortalLocalizations/accountSettings.js +1 -0
- package/Localizations/AdminPortalLocalizations/allUsers.d.ts +275 -275
- package/Localizations/AdminPortalLocalizations/allUsers.js +1 -0
- package/Localizations/AdminPortalLocalizations/apiTokens.d.ts +137 -137
- package/Localizations/AdminPortalLocalizations/apiTokens.js +1 -0
- package/Localizations/AdminPortalLocalizations/auditLogs.d.ts +51 -51
- package/Localizations/AdminPortalLocalizations/auditLogs.js +1 -0
- package/Localizations/AdminPortalLocalizations/index.d.ts +29 -29
- package/Localizations/AdminPortalLocalizations/index.js +15 -0
- package/Localizations/AdminPortalLocalizations/navigation.d.ts +85 -85
- package/Localizations/AdminPortalLocalizations/navigation.js +1 -0
- package/Localizations/AdminPortalLocalizations/personalTokens.d.ts +117 -117
- package/Localizations/AdminPortalLocalizations/personalTokens.js +1 -0
- package/Localizations/AdminPortalLocalizations/privacy.d.ts +182 -182
- package/Localizations/AdminPortalLocalizations/privacy.js +1 -0
- package/Localizations/AdminPortalLocalizations/profile.d.ts +243 -243
- package/Localizations/AdminPortalLocalizations/profile.js +1 -0
- package/Localizations/AdminPortalLocalizations/roles.d.ts +88 -88
- package/Localizations/AdminPortalLocalizations/roles.js +1 -0
- package/Localizations/AdminPortalLocalizations/security.d.ts +182 -182
- package/Localizations/AdminPortalLocalizations/security.js +1 -0
- package/Localizations/AdminPortalLocalizations/sso.d.ts +398 -398
- package/Localizations/AdminPortalLocalizations/sso.js +1 -0
- package/Localizations/AdminPortalLocalizations/subscriptions.d.ts +252 -252
- package/Localizations/AdminPortalLocalizations/subscriptions.js +1 -0
- package/Localizations/AdminPortalLocalizations/users.d.ts +288 -288
- package/Localizations/AdminPortalLocalizations/users.js +1 -0
- package/Localizations/AdminPortalLocalizations/webhooks.d.ts +157 -157
- package/Localizations/AdminPortalLocalizations/webhooks.js +1 -0
- package/Localizations/LocalizationOverrides.d.ts +21 -21
- package/Localizations/LocalizationOverrides.js +1 -0
- package/Localizations/LocalizationType.d.ts +45 -45
- package/Localizations/LocalizationType.js +1 -0
- package/Localizations/LoginBoxLocalization/SplitPageTypes/index.d.ts +25 -25
- package/Localizations/LoginBoxLocalization/SplitPageTypes/index.js +1 -0
- package/Localizations/LoginBoxLocalization/acceptInvitation.d.ts +31 -31
- package/Localizations/LoginBoxLocalization/acceptInvitation.js +1 -0
- package/Localizations/LoginBoxLocalization/activateAccount.d.ts +79 -79
- package/Localizations/LoginBoxLocalization/activateAccount.js +1 -0
- package/Localizations/LoginBoxLocalization/forgetPassword.d.ts +35 -35
- package/Localizations/LoginBoxLocalization/forgetPassword.js +1 -0
- package/Localizations/LoginBoxLocalization/index.d.ts +20 -20
- package/Localizations/LoginBoxLocalization/index.js +11 -0
- package/Localizations/LoginBoxLocalization/login.d.ts +307 -335
- package/Localizations/LoginBoxLocalization/login.js +1 -0
- package/Localizations/LoginBoxLocalization/recoveryMfa.d.ts +23 -23
- package/Localizations/LoginBoxLocalization/recoveryMfa.js +1 -0
- package/Localizations/LoginBoxLocalization/resetPassword.d.ts +67 -67
- package/Localizations/LoginBoxLocalization/resetPassword.js +1 -0
- package/Localizations/LoginBoxLocalization/resetPhoneNumber.d.ts +34 -34
- package/Localizations/LoginBoxLocalization/resetPhoneNumber.js +1 -0
- package/Localizations/LoginBoxLocalization/signup.d.ts +186 -186
- package/Localizations/LoginBoxLocalization/signup.js +1 -0
- package/Localizations/LoginBoxLocalization/socialLogins.d.ts +34 -34
- package/Localizations/LoginBoxLocalization/socialLogins.js +1 -0
- package/Localizations/index.d.ts +4 -4
- package/Localizations/index.js +4 -0
- package/Localizations/package.json +6 -0
- package/Metadata/colorManipulator.d.ts +73 -73
- package/Metadata/colorManipulator.js +186 -0
- package/Metadata/getPalette.d.ts +3 -3
- package/Metadata/getPalette.js +58 -0
- package/Metadata/index.d.ts +15 -15
- package/Metadata/index.js +126 -0
- package/Metadata/package.json +6 -0
- package/PrivateOptions.d.ts +25 -25
- package/PrivateOptions.js +1 -0
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +84 -84
- package/ThemeOptions/AdminPortalThemeOptions.js +16 -0
- package/ThemeOptions/BreakpointsOptions.d.ts +17 -17
- package/ThemeOptions/BreakpointsOptions.js +1 -0
- package/ThemeOptions/ComponentsOptions.d.ts +751 -751
- package/ThemeOptions/ComponentsOptions.js +2 -0
- package/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.d.ts +21 -21
- package/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.d.ts +51 -51
- package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/CustomLoginComponents.d.ts +12 -12
- package/ThemeOptions/LoginBoxTheme/CustomLoginComponents.js +1 -0
- package/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.d.ts +45 -45
- package/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/LoaderTheme.d.ts +7 -7
- package/ThemeOptions/LoginBoxTheme/LoaderTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.d.ts +226 -226
- package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.js +1 -0
- package/ThemeOptions/LoginBoxTheme/LoginPageTheme.d.ts +136 -148
- package/ThemeOptions/LoginBoxTheme/LoginPageTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.d.ts +47 -47
- package/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/ResetPhoneNumberTheme.d.ts +71 -71
- package/ThemeOptions/LoginBoxTheme/ResetPhoneNumberTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +95 -95
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.d.ts +64 -64
- package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.js +1 -0
- package/ThemeOptions/LoginBoxTheme/index.d.ts +53 -53
- package/ThemeOptions/LoginBoxTheme/index.js +11 -0
- package/ThemeOptions/LoginBoxThemeOptions.d.ts +46 -46
- package/ThemeOptions/LoginBoxThemeOptions.js +1 -0
- package/ThemeOptions/Palette.d.ts +85 -85
- package/ThemeOptions/Palette.js +1 -0
- package/ThemeOptions/Shadows.d.ts +1 -1
- package/ThemeOptions/Shadows.js +1 -0
- package/ThemeOptions/SpacingOptions.d.ts +9 -9
- package/ThemeOptions/SpacingOptions.js +1 -0
- package/ThemeOptions/TransitionsOptions.d.ts +23 -23
- package/ThemeOptions/TransitionsOptions.js +1 -0
- package/ThemeOptions/TypographyOptions.d.ts +13 -13
- package/ThemeOptions/TypographyOptions.js +1 -0
- package/ThemeOptions/index.d.ts +41 -41
- package/ThemeOptions/index.js +3 -0
- package/ThemeOptions/package.json +6 -0
- package/index.d.ts +7 -7
- package/index.js +12 -444
- package/node/CheckoutDialogOptions.js +5 -0
- package/node/Common.js +5 -0
- package/node/ContextOptions.js +5 -0
- package/node/CustomComponents.js +5 -0
- package/node/FronteggAppInstance.js +5 -0
- package/node/FronteggAppOptions.js +5 -0
- package/node/FronteggMetadata.js +5 -0
- package/node/FronteggStoreOptions.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/accountSettings.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/allUsers.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/apiTokens.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/auditLogs.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/index.js +187 -0
- package/node/Localizations/AdminPortalLocalizations/navigation.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/personalTokens.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/privacy.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/profile.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/roles.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/security.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/sso.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/subscriptions.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/users.js +5 -0
- package/node/Localizations/AdminPortalLocalizations/webhooks.js +5 -0
- package/node/Localizations/LocalizationOverrides.js +5 -0
- package/node/Localizations/LocalizationType.js +5 -0
- package/node/Localizations/LoginBoxLocalization/SplitPageTypes/index.js +5 -0
- package/node/Localizations/LoginBoxLocalization/acceptInvitation.js +5 -0
- package/node/Localizations/LoginBoxLocalization/activateAccount.js +5 -0
- package/node/Localizations/LoginBoxLocalization/forgetPassword.js +5 -0
- package/node/Localizations/LoginBoxLocalization/index.js +135 -0
- package/node/Localizations/LoginBoxLocalization/login.js +5 -0
- package/node/Localizations/LoginBoxLocalization/recoveryMfa.js +5 -0
- package/node/Localizations/LoginBoxLocalization/resetPassword.js +5 -0
- package/node/Localizations/LoginBoxLocalization/resetPhoneNumber.js +5 -0
- package/node/Localizations/LoginBoxLocalization/signup.js +5 -0
- package/node/Localizations/LoginBoxLocalization/socialLogins.js +5 -0
- package/node/Localizations/index.js +57 -0
- package/node/Metadata/colorManipulator.js +210 -0
- package/node/Metadata/getPalette.js +70 -0
- package/node/Metadata/index.js +140 -0
- package/node/PrivateOptions.js +5 -0
- package/node/ThemeOptions/AdminPortalThemeOptions.js +23 -0
- package/node/ThemeOptions/BreakpointsOptions.js +5 -0
- package/node/ThemeOptions/ComponentsOptions.js +6 -0
- package/node/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/CustomLoginComponents.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/LoaderTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/LoginBoxCommon.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/LoginPageTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/ResetPhoneNumberTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.js +5 -0
- package/node/ThemeOptions/LoginBoxTheme/index.js +135 -0
- package/node/ThemeOptions/LoginBoxThemeOptions.js +5 -0
- package/node/ThemeOptions/Palette.js +5 -0
- package/node/ThemeOptions/Shadows.js +5 -0
- package/node/ThemeOptions/SpacingOptions.js +5 -0
- package/node/ThemeOptions/TransitionsOptions.js +5 -0
- package/node/ThemeOptions/TypographyOptions.js +5 -0
- package/node/ThemeOptions/index.js +31 -0
- package/node/index.js +101 -446
- package/package.json +8 -5
- package/ThemeOptions/helpers.d.ts +0 -0
|
@@ -1,226 +1,226 @@
|
|
|
1
|
-
import { ExtendedCSSProperties } from '../../Common';
|
|
2
|
-
import { BaseTheme, BaseThemeOptions, SocialLoginsThemeOptions } from '../index';
|
|
3
|
-
import { SideElement, ButtonThemeOptions, CustomComponent, InputThemeOptions, ILogosComponent, ITestimonialComponent } 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
|
-
export 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
|
-
* splitSize is for the side element to setup how much % of the window side elements wi'll take
|
|
46
|
-
* default is 50 = 50%;
|
|
47
|
-
*/
|
|
48
|
-
splitSize: number;
|
|
49
|
-
/**
|
|
50
|
-
* Will be displayed if type is 'float-right' or 'float-left',
|
|
51
|
-
* Accepts:
|
|
52
|
-
* - html element as string
|
|
53
|
-
* - function that return html element as string
|
|
54
|
-
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
55
|
-
*/
|
|
56
|
-
sideElement?: CustomComponent;
|
|
57
|
-
sideElementStyle?: ExtendedCSSProperties;
|
|
58
|
-
/**
|
|
59
|
-
* Will be displayed if type is 'float-right' or 'float-left',
|
|
60
|
-
* Accepts:
|
|
61
|
-
* - values, testimonials, titleDescription, logos
|
|
62
|
-
* only two elements can be active together
|
|
63
|
-
*/
|
|
64
|
-
splitModeElements?: {
|
|
65
|
-
logos?: ILogosComponent;
|
|
66
|
-
testimonials?: ITestimonialComponent;
|
|
67
|
-
showDivider?: boolean;
|
|
68
|
-
showTitleDivider?: boolean;
|
|
69
|
-
activeElements?: {
|
|
70
|
-
titleDescription?: boolean;
|
|
71
|
-
element1: SideElement;
|
|
72
|
-
element2?: SideElement;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
splitModeStyles?: {
|
|
76
|
-
dividerStyle?: ExtendedCSSProperties;
|
|
77
|
-
splitContainerStyle?: ExtendedCSSProperties;
|
|
78
|
-
logos?: {
|
|
79
|
-
logoStyle?: ExtendedCSSProperties;
|
|
80
|
-
logosContainerStyle?: ExtendedCSSProperties;
|
|
81
|
-
};
|
|
82
|
-
values?: {
|
|
83
|
-
valuesIconStyle?: ExtendedCSSProperties;
|
|
84
|
-
valuesContainerStyle?: ExtendedCSSProperties;
|
|
85
|
-
valuesTextStyle?: ExtendedCSSProperties;
|
|
86
|
-
};
|
|
87
|
-
testimonials?: {
|
|
88
|
-
testimonialsContainerStyle?: ExtendedCSSProperties;
|
|
89
|
-
testimonialsTitleStyle?: ExtendedCSSProperties;
|
|
90
|
-
testtomonialsSubtitleStyle?: ExtendedCSSProperties;
|
|
91
|
-
testimonialsTextStyle?: ExtendedCSSProperties;
|
|
92
|
-
testimonialsIndicatorStyle?: ExtendedCSSProperties;
|
|
93
|
-
testimonialsActiveIndicatorStyle?: ExtendedCSSProperties;
|
|
94
|
-
testimonialsIndicatorContainerStyle?: ExtendedCSSProperties;
|
|
95
|
-
};
|
|
96
|
-
titleDescription?: {
|
|
97
|
-
titleDescriptionContainerStyle?: ExtendedCSSProperties;
|
|
98
|
-
titleDescriptionTitleStyle?: ExtendedCSSProperties;
|
|
99
|
-
titleDescriptionCompanyNameStyle?: ExtendedCSSProperties;
|
|
100
|
-
titleDescriptionDescriptionStyle?: ExtendedCSSProperties;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
interface LoginBoxOptionalCommon {
|
|
105
|
-
/**
|
|
106
|
-
* Options to specify the login box page structure
|
|
107
|
-
* Ex. split screen and display login in the left/right side
|
|
108
|
-
*/
|
|
109
|
-
layout?: LayoutOptions;
|
|
110
|
-
/**
|
|
111
|
-
* Header component placed in before section content.
|
|
112
|
-
* Mostly used for Company Logo or Page title
|
|
113
|
-
* Accepts:
|
|
114
|
-
* - string as url for rendering image element with src='url'
|
|
115
|
-
* - string as base64 for rendering image as base64 content
|
|
116
|
-
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
117
|
-
*/
|
|
118
|
-
pageHeader?: CustomComponent;
|
|
119
|
-
/**
|
|
120
|
-
* Footer component placed in before section content
|
|
121
|
-
* Mostly used for Disclaimers or Back buttons
|
|
122
|
-
* Accepts:
|
|
123
|
-
* - string as url for rendering image element with src='url'
|
|
124
|
-
* - string as base64 for rendering image as base64 content
|
|
125
|
-
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
126
|
-
*/
|
|
127
|
-
pageFooter?: CustomComponent;
|
|
128
|
-
/**
|
|
129
|
-
* Company logo Url or native html element as string
|
|
130
|
-
*/
|
|
131
|
-
logo?: LogoComponent;
|
|
132
|
-
/**
|
|
133
|
-
* Powered by frontegg placement
|
|
134
|
-
* box = inside the login box element
|
|
135
|
-
* page = displayed at the bottom of the page
|
|
136
|
-
*/
|
|
137
|
-
poweredByPlacement?: 'box' | 'page' | 'leftBottomCorner';
|
|
138
|
-
/**
|
|
139
|
-
* BoxElement
|
|
140
|
-
* It is a Card component placed inside the [WrapperElement]{@link pageStyle}
|
|
141
|
-
* The purpose of this element is to contain page field
|
|
142
|
-
* By default it's have flex display and justify content center
|
|
143
|
-
*/
|
|
144
|
-
boxStyle?: ExtendedCSSProperties;
|
|
145
|
-
/**
|
|
146
|
-
* Header component placed in inside the login box and before login inputs.
|
|
147
|
-
* Accepts:
|
|
148
|
-
* - string as url for rendering image element with src='url'
|
|
149
|
-
* - string as base64 for rendering image as base64 content
|
|
150
|
-
* - ReactElement will be rendered inside LoginBox VirtualTree (should be pure component without hooks and HOC)
|
|
151
|
-
*/
|
|
152
|
-
boxHeader?: CustomComponent;
|
|
153
|
-
/**
|
|
154
|
-
* Direct css styling for applying css for all (Box title) in LoginBox pages
|
|
155
|
-
*/
|
|
156
|
-
boxTitleStyle?: ExtendedCSSProperties;
|
|
157
|
-
/**
|
|
158
|
-
* Direct css styling for applying css for all (Box message or Box subtitle) in LoginBox pages
|
|
159
|
-
*/
|
|
160
|
-
boxMessageStyle?: ExtendedCSSProperties;
|
|
161
|
-
/**
|
|
162
|
-
* Footer component placed in inside the login box and after login inputs.
|
|
163
|
-
* Mostly used for Disclaimers or Back buttons
|
|
164
|
-
* Accepts:
|
|
165
|
-
* - string as url for rendering image element with src='url'
|
|
166
|
-
* - string as base64 for rendering image as base64 content
|
|
167
|
-
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
168
|
-
*/
|
|
169
|
-
boxFooter?: CustomComponent;
|
|
170
|
-
/**
|
|
171
|
-
* Option to customize login box inputs by providing
|
|
172
|
-
* css style for every state (base, hover, focus, disabled, etc...)
|
|
173
|
-
*/
|
|
174
|
-
inputTheme?: InputThemeOptions;
|
|
175
|
-
/**
|
|
176
|
-
* Option to customize login box standard buttons by providing
|
|
177
|
-
* css style for every state (base, hover, focus, disabled, etc...)
|
|
178
|
-
*/
|
|
179
|
-
buttonTheme?: ButtonThemeOptions;
|
|
180
|
-
/**
|
|
181
|
-
* Option to customize login box link buttons by providing
|
|
182
|
-
* css style for every state (base, hover, focus, disabled, etc...)
|
|
183
|
-
*/
|
|
184
|
-
linkButtonTheme?: ButtonThemeOptions;
|
|
185
|
-
/**
|
|
186
|
-
* Option to customize login box submit buttons by providing
|
|
187
|
-
* css style for every state (base, hover, focus, disabled, etc...)
|
|
188
|
-
*/
|
|
189
|
-
submitButtonTheme?: ButtonThemeOptions;
|
|
190
|
-
/**
|
|
191
|
-
* Option to customize login box social logins buttons by providing
|
|
192
|
-
* layous options for every button and element
|
|
193
|
-
*/
|
|
194
|
-
socialLogins?: SocialLoginsThemeOptions;
|
|
195
|
-
}
|
|
196
|
-
export interface LoginBoxCommonTheme extends BaseTheme, LoginBoxOptionalCommon {
|
|
197
|
-
/**
|
|
198
|
-
* RootElement
|
|
199
|
-
* The root DIV element of specific login box page
|
|
200
|
-
* By default it's have fixed and full width/height size
|
|
201
|
-
*/
|
|
202
|
-
rootStyle: ExtendedCSSProperties;
|
|
203
|
-
/**
|
|
204
|
-
* PageElement
|
|
205
|
-
* It is DIV element placed inside the [RootElement]{@link rootStyle}
|
|
206
|
-
* The purpose of this element is to wrapper the Box Component and other custom components
|
|
207
|
-
* By default it's have flex display and justify content center
|
|
208
|
-
*/
|
|
209
|
-
pageStyle: ExtendedCSSProperties;
|
|
210
|
-
}
|
|
211
|
-
export interface LoginBoxCommonThemeOptions extends BaseThemeOptions, LoginBoxOptionalCommon {
|
|
212
|
-
/**
|
|
213
|
-
* RootElement
|
|
214
|
-
* The root DIV element of specific login box page
|
|
215
|
-
* By default it's have fixed and full width/height size
|
|
216
|
-
*/
|
|
217
|
-
rootStyle?: ExtendedCSSProperties;
|
|
218
|
-
/**
|
|
219
|
-
* PageElement
|
|
220
|
-
* It is DIV element placed inside the [RootElement]{@link rootStyle}
|
|
221
|
-
* The purpose of this element is to wrapper the Box Component and other custom components
|
|
222
|
-
* By default it's have flex display and justify content center
|
|
223
|
-
*/
|
|
224
|
-
pageStyle?: ExtendedCSSProperties;
|
|
225
|
-
}
|
|
226
|
-
export {};
|
|
1
|
+
import { ExtendedCSSProperties } from '../../Common';
|
|
2
|
+
import { BaseTheme, BaseThemeOptions, SocialLoginsThemeOptions } from '../index';
|
|
3
|
+
import { SideElement, ButtonThemeOptions, CustomComponent, InputThemeOptions, ILogosComponent, ITestimonialComponent } 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
|
+
export 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
|
+
* splitSize is for the side element to setup how much % of the window side elements wi'll take
|
|
46
|
+
* default is 50 = 50%;
|
|
47
|
+
*/
|
|
48
|
+
splitSize: number;
|
|
49
|
+
/**
|
|
50
|
+
* Will be displayed if type is 'float-right' or 'float-left',
|
|
51
|
+
* Accepts:
|
|
52
|
+
* - html element as string
|
|
53
|
+
* - function that return html element as string
|
|
54
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
55
|
+
*/
|
|
56
|
+
sideElement?: CustomComponent;
|
|
57
|
+
sideElementStyle?: ExtendedCSSProperties;
|
|
58
|
+
/**
|
|
59
|
+
* Will be displayed if type is 'float-right' or 'float-left',
|
|
60
|
+
* Accepts:
|
|
61
|
+
* - values, testimonials, titleDescription, logos
|
|
62
|
+
* only two elements can be active together
|
|
63
|
+
*/
|
|
64
|
+
splitModeElements?: {
|
|
65
|
+
logos?: ILogosComponent;
|
|
66
|
+
testimonials?: ITestimonialComponent;
|
|
67
|
+
showDivider?: boolean;
|
|
68
|
+
showTitleDivider?: boolean;
|
|
69
|
+
activeElements?: {
|
|
70
|
+
titleDescription?: boolean;
|
|
71
|
+
element1: SideElement;
|
|
72
|
+
element2?: SideElement;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
splitModeStyles?: {
|
|
76
|
+
dividerStyle?: ExtendedCSSProperties;
|
|
77
|
+
splitContainerStyle?: ExtendedCSSProperties;
|
|
78
|
+
logos?: {
|
|
79
|
+
logoStyle?: ExtendedCSSProperties;
|
|
80
|
+
logosContainerStyle?: ExtendedCSSProperties;
|
|
81
|
+
};
|
|
82
|
+
values?: {
|
|
83
|
+
valuesIconStyle?: ExtendedCSSProperties;
|
|
84
|
+
valuesContainerStyle?: ExtendedCSSProperties;
|
|
85
|
+
valuesTextStyle?: ExtendedCSSProperties;
|
|
86
|
+
};
|
|
87
|
+
testimonials?: {
|
|
88
|
+
testimonialsContainerStyle?: ExtendedCSSProperties;
|
|
89
|
+
testimonialsTitleStyle?: ExtendedCSSProperties;
|
|
90
|
+
testtomonialsSubtitleStyle?: ExtendedCSSProperties;
|
|
91
|
+
testimonialsTextStyle?: ExtendedCSSProperties;
|
|
92
|
+
testimonialsIndicatorStyle?: ExtendedCSSProperties;
|
|
93
|
+
testimonialsActiveIndicatorStyle?: ExtendedCSSProperties;
|
|
94
|
+
testimonialsIndicatorContainerStyle?: ExtendedCSSProperties;
|
|
95
|
+
};
|
|
96
|
+
titleDescription?: {
|
|
97
|
+
titleDescriptionContainerStyle?: ExtendedCSSProperties;
|
|
98
|
+
titleDescriptionTitleStyle?: ExtendedCSSProperties;
|
|
99
|
+
titleDescriptionCompanyNameStyle?: ExtendedCSSProperties;
|
|
100
|
+
titleDescriptionDescriptionStyle?: ExtendedCSSProperties;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
interface LoginBoxOptionalCommon {
|
|
105
|
+
/**
|
|
106
|
+
* Options to specify the login box page structure
|
|
107
|
+
* Ex. split screen and display login in the left/right side
|
|
108
|
+
*/
|
|
109
|
+
layout?: LayoutOptions;
|
|
110
|
+
/**
|
|
111
|
+
* Header component placed in before section content.
|
|
112
|
+
* Mostly used for Company Logo or Page title
|
|
113
|
+
* Accepts:
|
|
114
|
+
* - string as url for rendering image element with src='url'
|
|
115
|
+
* - string as base64 for rendering image as base64 content
|
|
116
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
117
|
+
*/
|
|
118
|
+
pageHeader?: CustomComponent;
|
|
119
|
+
/**
|
|
120
|
+
* Footer component placed in before section content
|
|
121
|
+
* Mostly used for Disclaimers or Back buttons
|
|
122
|
+
* Accepts:
|
|
123
|
+
* - string as url for rendering image element with src='url'
|
|
124
|
+
* - string as base64 for rendering image as base64 content
|
|
125
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
126
|
+
*/
|
|
127
|
+
pageFooter?: CustomComponent;
|
|
128
|
+
/**
|
|
129
|
+
* Company logo Url or native html element as string
|
|
130
|
+
*/
|
|
131
|
+
logo?: LogoComponent;
|
|
132
|
+
/**
|
|
133
|
+
* Powered by frontegg placement
|
|
134
|
+
* box = inside the login box element
|
|
135
|
+
* page = displayed at the bottom of the page
|
|
136
|
+
*/
|
|
137
|
+
poweredByPlacement?: 'box' | 'page' | 'leftBottomCorner';
|
|
138
|
+
/**
|
|
139
|
+
* BoxElement
|
|
140
|
+
* It is a Card component placed inside the [WrapperElement]{@link pageStyle}
|
|
141
|
+
* The purpose of this element is to contain page field
|
|
142
|
+
* By default it's have flex display and justify content center
|
|
143
|
+
*/
|
|
144
|
+
boxStyle?: ExtendedCSSProperties;
|
|
145
|
+
/**
|
|
146
|
+
* Header component placed in inside the login box and before login inputs.
|
|
147
|
+
* Accepts:
|
|
148
|
+
* - string as url for rendering image element with src='url'
|
|
149
|
+
* - string as base64 for rendering image as base64 content
|
|
150
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree (should be pure component without hooks and HOC)
|
|
151
|
+
*/
|
|
152
|
+
boxHeader?: CustomComponent;
|
|
153
|
+
/**
|
|
154
|
+
* Direct css styling for applying css for all (Box title) in LoginBox pages
|
|
155
|
+
*/
|
|
156
|
+
boxTitleStyle?: ExtendedCSSProperties;
|
|
157
|
+
/**
|
|
158
|
+
* Direct css styling for applying css for all (Box message or Box subtitle) in LoginBox pages
|
|
159
|
+
*/
|
|
160
|
+
boxMessageStyle?: ExtendedCSSProperties;
|
|
161
|
+
/**
|
|
162
|
+
* Footer component placed in inside the login box and after login inputs.
|
|
163
|
+
* Mostly used for Disclaimers or Back buttons
|
|
164
|
+
* Accepts:
|
|
165
|
+
* - string as url for rendering image element with src='url'
|
|
166
|
+
* - string as base64 for rendering image as base64 content
|
|
167
|
+
* - ReactElement will be rendered inside LoginBox VirtualTree
|
|
168
|
+
*/
|
|
169
|
+
boxFooter?: CustomComponent;
|
|
170
|
+
/**
|
|
171
|
+
* Option to customize login box inputs by providing
|
|
172
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
173
|
+
*/
|
|
174
|
+
inputTheme?: InputThemeOptions;
|
|
175
|
+
/**
|
|
176
|
+
* Option to customize login box standard buttons by providing
|
|
177
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
178
|
+
*/
|
|
179
|
+
buttonTheme?: ButtonThemeOptions;
|
|
180
|
+
/**
|
|
181
|
+
* Option to customize login box link buttons by providing
|
|
182
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
183
|
+
*/
|
|
184
|
+
linkButtonTheme?: ButtonThemeOptions;
|
|
185
|
+
/**
|
|
186
|
+
* Option to customize login box submit buttons by providing
|
|
187
|
+
* css style for every state (base, hover, focus, disabled, etc...)
|
|
188
|
+
*/
|
|
189
|
+
submitButtonTheme?: ButtonThemeOptions;
|
|
190
|
+
/**
|
|
191
|
+
* Option to customize login box social logins buttons by providing
|
|
192
|
+
* layous options for every button and element
|
|
193
|
+
*/
|
|
194
|
+
socialLogins?: SocialLoginsThemeOptions;
|
|
195
|
+
}
|
|
196
|
+
export interface LoginBoxCommonTheme extends BaseTheme, LoginBoxOptionalCommon {
|
|
197
|
+
/**
|
|
198
|
+
* RootElement
|
|
199
|
+
* The root DIV element of specific login box page
|
|
200
|
+
* By default it's have fixed and full width/height size
|
|
201
|
+
*/
|
|
202
|
+
rootStyle: ExtendedCSSProperties;
|
|
203
|
+
/**
|
|
204
|
+
* PageElement
|
|
205
|
+
* It is DIV element placed inside the [RootElement]{@link rootStyle}
|
|
206
|
+
* The purpose of this element is to wrapper the Box Component and other custom components
|
|
207
|
+
* By default it's have flex display and justify content center
|
|
208
|
+
*/
|
|
209
|
+
pageStyle: ExtendedCSSProperties;
|
|
210
|
+
}
|
|
211
|
+
export interface LoginBoxCommonThemeOptions extends BaseThemeOptions, LoginBoxOptionalCommon {
|
|
212
|
+
/**
|
|
213
|
+
* RootElement
|
|
214
|
+
* The root DIV element of specific login box page
|
|
215
|
+
* By default it's have fixed and full width/height size
|
|
216
|
+
*/
|
|
217
|
+
rootStyle?: ExtendedCSSProperties;
|
|
218
|
+
/**
|
|
219
|
+
* PageElement
|
|
220
|
+
* It is DIV element placed inside the [RootElement]{@link rootStyle}
|
|
221
|
+
* The purpose of this element is to wrapper the Box Component and other custom components
|
|
222
|
+
* By default it's have flex display and justify content center
|
|
223
|
+
*/
|
|
224
|
+
pageStyle?: ExtendedCSSProperties;
|
|
225
|
+
}
|
|
226
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|