@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.
Files changed (197) hide show
  1. package/CheckoutDialogOptions.d.ts +6 -6
  2. package/CheckoutDialogOptions.js +1 -0
  3. package/Common.d.ts +6 -6
  4. package/Common.js +1 -0
  5. package/ContextOptions.d.ts +31 -31
  6. package/ContextOptions.js +1 -0
  7. package/CustomComponents.d.ts +19 -19
  8. package/CustomComponents.js +1 -0
  9. package/FronteggAppInstance.d.ts +23 -23
  10. package/FronteggAppInstance.js +1 -0
  11. package/FronteggAppOptions.d.ts +76 -76
  12. package/FronteggAppOptions.js +1 -0
  13. package/FronteggMetadata.d.ts +88 -88
  14. package/FronteggMetadata.js +1 -0
  15. package/FronteggStoreOptions.d.ts +13 -13
  16. package/FronteggStoreOptions.js +1 -0
  17. package/Localizations/AdminPortalLocalizations/accountSettings.d.ts +216 -216
  18. package/Localizations/AdminPortalLocalizations/accountSettings.js +1 -0
  19. package/Localizations/AdminPortalLocalizations/allUsers.d.ts +275 -275
  20. package/Localizations/AdminPortalLocalizations/allUsers.js +1 -0
  21. package/Localizations/AdminPortalLocalizations/apiTokens.d.ts +137 -137
  22. package/Localizations/AdminPortalLocalizations/apiTokens.js +1 -0
  23. package/Localizations/AdminPortalLocalizations/auditLogs.d.ts +51 -51
  24. package/Localizations/AdminPortalLocalizations/auditLogs.js +1 -0
  25. package/Localizations/AdminPortalLocalizations/index.d.ts +29 -29
  26. package/Localizations/AdminPortalLocalizations/index.js +15 -0
  27. package/Localizations/AdminPortalLocalizations/navigation.d.ts +85 -85
  28. package/Localizations/AdminPortalLocalizations/navigation.js +1 -0
  29. package/Localizations/AdminPortalLocalizations/personalTokens.d.ts +117 -117
  30. package/Localizations/AdminPortalLocalizations/personalTokens.js +1 -0
  31. package/Localizations/AdminPortalLocalizations/privacy.d.ts +182 -182
  32. package/Localizations/AdminPortalLocalizations/privacy.js +1 -0
  33. package/Localizations/AdminPortalLocalizations/profile.d.ts +243 -243
  34. package/Localizations/AdminPortalLocalizations/profile.js +1 -0
  35. package/Localizations/AdminPortalLocalizations/roles.d.ts +88 -88
  36. package/Localizations/AdminPortalLocalizations/roles.js +1 -0
  37. package/Localizations/AdminPortalLocalizations/security.d.ts +182 -182
  38. package/Localizations/AdminPortalLocalizations/security.js +1 -0
  39. package/Localizations/AdminPortalLocalizations/sso.d.ts +398 -398
  40. package/Localizations/AdminPortalLocalizations/sso.js +1 -0
  41. package/Localizations/AdminPortalLocalizations/subscriptions.d.ts +252 -252
  42. package/Localizations/AdminPortalLocalizations/subscriptions.js +1 -0
  43. package/Localizations/AdminPortalLocalizations/users.d.ts +288 -288
  44. package/Localizations/AdminPortalLocalizations/users.js +1 -0
  45. package/Localizations/AdminPortalLocalizations/webhooks.d.ts +157 -157
  46. package/Localizations/AdminPortalLocalizations/webhooks.js +1 -0
  47. package/Localizations/LocalizationOverrides.d.ts +21 -21
  48. package/Localizations/LocalizationOverrides.js +1 -0
  49. package/Localizations/LocalizationType.d.ts +45 -45
  50. package/Localizations/LocalizationType.js +1 -0
  51. package/Localizations/LoginBoxLocalization/SplitPageTypes/index.d.ts +25 -25
  52. package/Localizations/LoginBoxLocalization/SplitPageTypes/index.js +1 -0
  53. package/Localizations/LoginBoxLocalization/acceptInvitation.d.ts +31 -31
  54. package/Localizations/LoginBoxLocalization/acceptInvitation.js +1 -0
  55. package/Localizations/LoginBoxLocalization/activateAccount.d.ts +79 -79
  56. package/Localizations/LoginBoxLocalization/activateAccount.js +1 -0
  57. package/Localizations/LoginBoxLocalization/forgetPassword.d.ts +35 -35
  58. package/Localizations/LoginBoxLocalization/forgetPassword.js +1 -0
  59. package/Localizations/LoginBoxLocalization/index.d.ts +20 -20
  60. package/Localizations/LoginBoxLocalization/index.js +11 -0
  61. package/Localizations/LoginBoxLocalization/login.d.ts +307 -335
  62. package/Localizations/LoginBoxLocalization/login.js +1 -0
  63. package/Localizations/LoginBoxLocalization/recoveryMfa.d.ts +23 -23
  64. package/Localizations/LoginBoxLocalization/recoveryMfa.js +1 -0
  65. package/Localizations/LoginBoxLocalization/resetPassword.d.ts +67 -67
  66. package/Localizations/LoginBoxLocalization/resetPassword.js +1 -0
  67. package/Localizations/LoginBoxLocalization/resetPhoneNumber.d.ts +34 -34
  68. package/Localizations/LoginBoxLocalization/resetPhoneNumber.js +1 -0
  69. package/Localizations/LoginBoxLocalization/signup.d.ts +186 -186
  70. package/Localizations/LoginBoxLocalization/signup.js +1 -0
  71. package/Localizations/LoginBoxLocalization/socialLogins.d.ts +34 -34
  72. package/Localizations/LoginBoxLocalization/socialLogins.js +1 -0
  73. package/Localizations/index.d.ts +4 -4
  74. package/Localizations/index.js +4 -0
  75. package/Localizations/package.json +6 -0
  76. package/Metadata/colorManipulator.d.ts +73 -73
  77. package/Metadata/colorManipulator.js +186 -0
  78. package/Metadata/getPalette.d.ts +3 -3
  79. package/Metadata/getPalette.js +58 -0
  80. package/Metadata/index.d.ts +15 -15
  81. package/Metadata/index.js +126 -0
  82. package/Metadata/package.json +6 -0
  83. package/PrivateOptions.d.ts +25 -25
  84. package/PrivateOptions.js +1 -0
  85. package/ThemeOptions/AdminPortalThemeOptions.d.ts +84 -84
  86. package/ThemeOptions/AdminPortalThemeOptions.js +16 -0
  87. package/ThemeOptions/BreakpointsOptions.d.ts +17 -17
  88. package/ThemeOptions/BreakpointsOptions.js +1 -0
  89. package/ThemeOptions/ComponentsOptions.d.ts +751 -751
  90. package/ThemeOptions/ComponentsOptions.js +2 -0
  91. package/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.d.ts +21 -21
  92. package/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.js +1 -0
  93. package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.d.ts +51 -51
  94. package/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.js +1 -0
  95. package/ThemeOptions/LoginBoxTheme/CustomLoginComponents.d.ts +12 -12
  96. package/ThemeOptions/LoginBoxTheme/CustomLoginComponents.js +1 -0
  97. package/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.d.ts +45 -45
  98. package/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.js +1 -0
  99. package/ThemeOptions/LoginBoxTheme/LoaderTheme.d.ts +7 -7
  100. package/ThemeOptions/LoginBoxTheme/LoaderTheme.js +1 -0
  101. package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.d.ts +226 -226
  102. package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.js +1 -0
  103. package/ThemeOptions/LoginBoxTheme/LoginPageTheme.d.ts +136 -148
  104. package/ThemeOptions/LoginBoxTheme/LoginPageTheme.js +1 -0
  105. package/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.d.ts +47 -47
  106. package/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.js +1 -0
  107. package/ThemeOptions/LoginBoxTheme/ResetPhoneNumberTheme.d.ts +71 -71
  108. package/ThemeOptions/LoginBoxTheme/ResetPhoneNumberTheme.js +1 -0
  109. package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +95 -95
  110. package/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +1 -0
  111. package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.d.ts +64 -64
  112. package/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.js +1 -0
  113. package/ThemeOptions/LoginBoxTheme/index.d.ts +53 -53
  114. package/ThemeOptions/LoginBoxTheme/index.js +11 -0
  115. package/ThemeOptions/LoginBoxThemeOptions.d.ts +46 -46
  116. package/ThemeOptions/LoginBoxThemeOptions.js +1 -0
  117. package/ThemeOptions/Palette.d.ts +85 -85
  118. package/ThemeOptions/Palette.js +1 -0
  119. package/ThemeOptions/Shadows.d.ts +1 -1
  120. package/ThemeOptions/Shadows.js +1 -0
  121. package/ThemeOptions/SpacingOptions.d.ts +9 -9
  122. package/ThemeOptions/SpacingOptions.js +1 -0
  123. package/ThemeOptions/TransitionsOptions.d.ts +23 -23
  124. package/ThemeOptions/TransitionsOptions.js +1 -0
  125. package/ThemeOptions/TypographyOptions.d.ts +13 -13
  126. package/ThemeOptions/TypographyOptions.js +1 -0
  127. package/ThemeOptions/index.d.ts +41 -41
  128. package/ThemeOptions/index.js +3 -0
  129. package/ThemeOptions/package.json +6 -0
  130. package/index.d.ts +7 -7
  131. package/index.js +12 -444
  132. package/node/CheckoutDialogOptions.js +5 -0
  133. package/node/Common.js +5 -0
  134. package/node/ContextOptions.js +5 -0
  135. package/node/CustomComponents.js +5 -0
  136. package/node/FronteggAppInstance.js +5 -0
  137. package/node/FronteggAppOptions.js +5 -0
  138. package/node/FronteggMetadata.js +5 -0
  139. package/node/FronteggStoreOptions.js +5 -0
  140. package/node/Localizations/AdminPortalLocalizations/accountSettings.js +5 -0
  141. package/node/Localizations/AdminPortalLocalizations/allUsers.js +5 -0
  142. package/node/Localizations/AdminPortalLocalizations/apiTokens.js +5 -0
  143. package/node/Localizations/AdminPortalLocalizations/auditLogs.js +5 -0
  144. package/node/Localizations/AdminPortalLocalizations/index.js +187 -0
  145. package/node/Localizations/AdminPortalLocalizations/navigation.js +5 -0
  146. package/node/Localizations/AdminPortalLocalizations/personalTokens.js +5 -0
  147. package/node/Localizations/AdminPortalLocalizations/privacy.js +5 -0
  148. package/node/Localizations/AdminPortalLocalizations/profile.js +5 -0
  149. package/node/Localizations/AdminPortalLocalizations/roles.js +5 -0
  150. package/node/Localizations/AdminPortalLocalizations/security.js +5 -0
  151. package/node/Localizations/AdminPortalLocalizations/sso.js +5 -0
  152. package/node/Localizations/AdminPortalLocalizations/subscriptions.js +5 -0
  153. package/node/Localizations/AdminPortalLocalizations/users.js +5 -0
  154. package/node/Localizations/AdminPortalLocalizations/webhooks.js +5 -0
  155. package/node/Localizations/LocalizationOverrides.js +5 -0
  156. package/node/Localizations/LocalizationType.js +5 -0
  157. package/node/Localizations/LoginBoxLocalization/SplitPageTypes/index.js +5 -0
  158. package/node/Localizations/LoginBoxLocalization/acceptInvitation.js +5 -0
  159. package/node/Localizations/LoginBoxLocalization/activateAccount.js +5 -0
  160. package/node/Localizations/LoginBoxLocalization/forgetPassword.js +5 -0
  161. package/node/Localizations/LoginBoxLocalization/index.js +135 -0
  162. package/node/Localizations/LoginBoxLocalization/login.js +5 -0
  163. package/node/Localizations/LoginBoxLocalization/recoveryMfa.js +5 -0
  164. package/node/Localizations/LoginBoxLocalization/resetPassword.js +5 -0
  165. package/node/Localizations/LoginBoxLocalization/resetPhoneNumber.js +5 -0
  166. package/node/Localizations/LoginBoxLocalization/signup.js +5 -0
  167. package/node/Localizations/LoginBoxLocalization/socialLogins.js +5 -0
  168. package/node/Localizations/index.js +57 -0
  169. package/node/Metadata/colorManipulator.js +210 -0
  170. package/node/Metadata/getPalette.js +70 -0
  171. package/node/Metadata/index.js +140 -0
  172. package/node/PrivateOptions.js +5 -0
  173. package/node/ThemeOptions/AdminPortalThemeOptions.js +23 -0
  174. package/node/ThemeOptions/BreakpointsOptions.js +5 -0
  175. package/node/ThemeOptions/ComponentsOptions.js +6 -0
  176. package/node/ThemeOptions/LoginBoxTheme/AcceptInvitationTheme.js +5 -0
  177. package/node/ThemeOptions/LoginBoxTheme/ActivateAccountPageTheme.js +5 -0
  178. package/node/ThemeOptions/LoginBoxTheme/CustomLoginComponents.js +5 -0
  179. package/node/ThemeOptions/LoginBoxTheme/ForgotPasswordTheme.js +5 -0
  180. package/node/ThemeOptions/LoginBoxTheme/LoaderTheme.js +5 -0
  181. package/node/ThemeOptions/LoginBoxTheme/LoginBoxCommon.js +5 -0
  182. package/node/ThemeOptions/LoginBoxTheme/LoginPageTheme.js +5 -0
  183. package/node/ThemeOptions/LoginBoxTheme/ResetPasswordTheme.js +5 -0
  184. package/node/ThemeOptions/LoginBoxTheme/ResetPhoneNumberTheme.js +5 -0
  185. package/node/ThemeOptions/LoginBoxTheme/SignupPageTheme.js +5 -0
  186. package/node/ThemeOptions/LoginBoxTheme/SocialLoginsTheme.js +5 -0
  187. package/node/ThemeOptions/LoginBoxTheme/index.js +135 -0
  188. package/node/ThemeOptions/LoginBoxThemeOptions.js +5 -0
  189. package/node/ThemeOptions/Palette.js +5 -0
  190. package/node/ThemeOptions/Shadows.js +5 -0
  191. package/node/ThemeOptions/SpacingOptions.js +5 -0
  192. package/node/ThemeOptions/TransitionsOptions.js +5 -0
  193. package/node/ThemeOptions/TypographyOptions.js +5 -0
  194. package/node/ThemeOptions/index.js +31 -0
  195. package/node/index.js +101 -446
  196. package/package.json +8 -5
  197. 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 {};