@sikka/hawa 0.23.8-next → 0.23.9-next

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.
@@ -0,0 +1,202 @@
1
+ import { FC } from 'react';
2
+ import { D as DirectionType } from '../../commonTypes-MxCJyrHv.mjs';
3
+ import { L as LoginFormTextsTypes, R as RegisterFormTextsTypes, a as ThirdPartyAuthTextsTypes, N as NewPasswordTextsTypes, b as ResetPasswordTextsTypes } from '../../textTypes-559CaoOV.mjs';
4
+
5
+ type LoginFormTypes = {
6
+ /** Object containing text labels used throughout the form. */
7
+ texts?: LoginFormTextsTypes;
8
+ /** If true, only logos are displayed in third-party auth buttons. */
9
+ logosOnly?: boolean;
10
+ /** Direction of text and UI elements, either left-to-right or right-to-left. */
11
+ direction?: DirectionType;
12
+ /** If true, an error alert is displayed at the top of the form. */
13
+ showError?: boolean;
14
+ /** Title text of error alert. */
15
+ errorTitle?: string;
16
+ /** Description text of error alert. */
17
+ errorText?: string;
18
+ /** Login identifier type user will use to log in. */
19
+ loginType?: "email" | "username" | "phone" | "link";
20
+ /** If true, the reset password option is hidden. */
21
+ withoutResetPassword?: boolean;
22
+ /** If true, the register option is hidden. */
23
+ allowRegister?: boolean;
24
+ /** If true, a loading spinner is displayed within the main form submit button. */
25
+ isLoading?: boolean;
26
+ /** If true, a loading spinner is displayed within the Google login button. */
27
+ isGoogleLoading?: boolean;
28
+ /** If true, a loading spinner is displayed within the Twitter login button. */
29
+ isTwitterLoading?: boolean;
30
+ /** If true, a loading spinner is displayed within the Github login button. */
31
+ isGithubLoading?: boolean;
32
+ /** If true, Google login option is displayed. */
33
+ viaGoogle?: boolean;
34
+ /** If true, Github login option is displayed. */
35
+ viaGithub?: boolean;
36
+ /** If true, Twitter login option is displayed. */
37
+ viaTwitter?: boolean;
38
+ /** Function to handle form submission. */
39
+ onLogin?: (e: any) => void;
40
+ /** Function to route user to the register page. */
41
+ onRouteToRegister?: () => void;
42
+ /** Function to handle forgotten password case. */
43
+ onForgotPassword?: () => void;
44
+ /** Function to handle Google login. */
45
+ onGoogleLogin?: () => void;
46
+ /** Function to handle Github login. */
47
+ onGithubLogin?: () => void;
48
+ /** Function to handle Twitter login. */
49
+ onTwitterLogin?: () => void;
50
+ /** Additional buttons to add under the login button */
51
+ additionalButtons?: any;
52
+ /** The allowed length of the password input field */
53
+ passwordLength?: number;
54
+ };
55
+ declare const LoginForm: FC<LoginFormTypes>;
56
+
57
+ type SelectOptionProps = {
58
+ value: any;
59
+ label: any;
60
+ };
61
+
62
+ type RegisterFormTypes = {
63
+ /** Object containing text labels used throughout the form. */
64
+ texts?: RegisterFormTextsTypes;
65
+ /** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
66
+ direction?: DirectionType;
67
+ /** Determines whether to display logos only or with text in the social media registration section. */
68
+ logosOnly?: boolean;
69
+ /** Enables registration via Google when set to true. */
70
+ viaGoogle?: boolean;
71
+ /** Enables registration via Github when set to true. */
72
+ viaGithub?: boolean;
73
+ /** Enables registration via Twitter when set to true. */
74
+ viaTwitter?: boolean;
75
+ /** Determines whether to show the referral code field. */
76
+ showRefCode?: boolean;
77
+ /** Determines whether to show the user source selection. */
78
+ showUserSource?: boolean;
79
+ /** Determines whether to show the terms acceptance checkbox. */
80
+ showTermsOption?: boolean;
81
+ /** Determines whether to show the newsletter subscription checkbox. */
82
+ showNewsletterOption?: boolean;
83
+ /** Callback function triggered on form submission. */
84
+ onRegister: (e: any) => void;
85
+ /** Callback function triggered to route to the login page. */
86
+ onRouteToLogin?: () => void;
87
+ /** Callback function triggered to handle registration via Google. */
88
+ onGoogleRegister?: () => void;
89
+ /** Callback function triggered to handle registration via Github. */
90
+ onGithubRegister?: () => void;
91
+ /** Callback function triggered to handle registration via Twitter. */
92
+ onTwitterRegister?: () => void;
93
+ /** Callback function triggered to route to the Terms of Service page. */
94
+ onRouteToTOS?: () => void;
95
+ /** Determines whether to show an error alert. */
96
+ showError?: boolean;
97
+ /** Title for the error alert. */
98
+ errorTitle?: any;
99
+ /** Text for the error alert. */
100
+ errorText?: any;
101
+ /** Array containing the fields to be included in the form. */
102
+ registerFields?: string[];
103
+ /** Indicates whether the form submission is in progress. */
104
+ isLoading?: boolean;
105
+ /** If true, a loading spinner is displayed within the Google login button. */
106
+ isGoogleLoading?: boolean;
107
+ /** If true, a loading spinner is displayed within the Twitter login button. */
108
+ isTwitterLoading?: boolean;
109
+ /** If true, a loading spinner is displayed within the Github login button. */
110
+ isGithubLoading?: boolean;
111
+ /** The options of "How did you learn about us?" select field. */
112
+ userReferenceOptions?: SelectOptionProps[];
113
+ /** To add more custom buttons under the register button. */
114
+ additionalButtons?: any;
115
+ /** To add more custom input fields */
116
+ additionalInputs?: any;
117
+ };
118
+ declare const RegisterForm: FC<RegisterFormTypes>;
119
+
120
+ type AppLandingTextsTypes = ThirdPartyAuthTextsTypes & {
121
+ newUserText?: string;
122
+ createAccount?: string;
123
+ };
124
+ type AppLandingTypes = {
125
+ texts?: AppLandingTextsTypes;
126
+ viaGoogle?: boolean;
127
+ viaTwitter?: boolean;
128
+ viaGithub?: boolean;
129
+ viaMicrosoft?: boolean;
130
+ viaEmail?: boolean;
131
+ viaPhone?: boolean;
132
+ viaApple?: boolean;
133
+ allowRegister?: boolean;
134
+ size?: "small" | "normal" | "full";
135
+ direction?: DirectionType;
136
+ handleRouteToRegister?: () => void;
137
+ handleGoogle?: () => void;
138
+ handleTwitter?: () => void;
139
+ handleApple?: () => void;
140
+ handleMicrosoft?: () => void;
141
+ handleGithub?: () => void;
142
+ handleEmail?: () => void;
143
+ handlePhone?: () => void;
144
+ };
145
+ declare const AppLanding: FC<AppLandingTypes>;
146
+
147
+ type CheckEmailBlocks = {
148
+ handleResend?: () => void;
149
+ texts?: {
150
+ checkEmail: string;
151
+ resendEmail: string;
152
+ pleaseVerify: string;
153
+ };
154
+ };
155
+ declare const CheckEmail: FC<CheckEmailBlocks>;
156
+
157
+ type NewPasswordTypes = {
158
+ handleNewPassword: (e: any) => void;
159
+ handleRouteToRegister: () => void;
160
+ direction?: DirectionType;
161
+ headless?: boolean;
162
+ allowRegister?: boolean;
163
+ passwordChanged: any;
164
+ texts: NewPasswordTextsTypes;
165
+ };
166
+ declare const NewPasswordForm: FC<NewPasswordTypes>;
167
+
168
+ type ResetPasswordType = {
169
+ handleResetPassword: (e: any) => void;
170
+ handleRouteToRegister: () => void;
171
+ sent: any;
172
+ headless?: boolean;
173
+ allowRegister?: boolean;
174
+ direction?: DirectionType;
175
+ texts?: ResetPasswordTextsTypes;
176
+ };
177
+ declare const ResetPasswordForm: FC<ResetPasswordType>;
178
+
179
+ type TConfirmation = {
180
+ texts?: {
181
+ checkYourPhone?: string;
182
+ weSentCode?: string;
183
+ didntGetCode?: string;
184
+ resendCode?: string;
185
+ resendCodeTimer?: string;
186
+ codeRequiredText?: string;
187
+ codeTooShort?: string;
188
+ confirm?: string;
189
+ cancel?: string;
190
+ seconds?: string;
191
+ };
192
+ showError?: any;
193
+ errorTitle?: any;
194
+ errorText?: any;
195
+ phoneNumber?: string;
196
+ confirmLoading?: boolean;
197
+ handleConfirm?: any;
198
+ handleResend?: any;
199
+ };
200
+ declare const CodeConfirmation: FC<TConfirmation>;
201
+
202
+ export { AppLanding, CheckEmail, CodeConfirmation, LoginForm, NewPasswordForm, RegisterForm, ResetPasswordForm };
@@ -0,0 +1,202 @@
1
+ import { FC } from 'react';
2
+ import { D as DirectionType } from '../../commonTypes-MxCJyrHv.js';
3
+ import { L as LoginFormTextsTypes, R as RegisterFormTextsTypes, a as ThirdPartyAuthTextsTypes, N as NewPasswordTextsTypes, b as ResetPasswordTextsTypes } from '../../textTypes-559CaoOV.js';
4
+
5
+ type LoginFormTypes = {
6
+ /** Object containing text labels used throughout the form. */
7
+ texts?: LoginFormTextsTypes;
8
+ /** If true, only logos are displayed in third-party auth buttons. */
9
+ logosOnly?: boolean;
10
+ /** Direction of text and UI elements, either left-to-right or right-to-left. */
11
+ direction?: DirectionType;
12
+ /** If true, an error alert is displayed at the top of the form. */
13
+ showError?: boolean;
14
+ /** Title text of error alert. */
15
+ errorTitle?: string;
16
+ /** Description text of error alert. */
17
+ errorText?: string;
18
+ /** Login identifier type user will use to log in. */
19
+ loginType?: "email" | "username" | "phone" | "link";
20
+ /** If true, the reset password option is hidden. */
21
+ withoutResetPassword?: boolean;
22
+ /** If true, the register option is hidden. */
23
+ allowRegister?: boolean;
24
+ /** If true, a loading spinner is displayed within the main form submit button. */
25
+ isLoading?: boolean;
26
+ /** If true, a loading spinner is displayed within the Google login button. */
27
+ isGoogleLoading?: boolean;
28
+ /** If true, a loading spinner is displayed within the Twitter login button. */
29
+ isTwitterLoading?: boolean;
30
+ /** If true, a loading spinner is displayed within the Github login button. */
31
+ isGithubLoading?: boolean;
32
+ /** If true, Google login option is displayed. */
33
+ viaGoogle?: boolean;
34
+ /** If true, Github login option is displayed. */
35
+ viaGithub?: boolean;
36
+ /** If true, Twitter login option is displayed. */
37
+ viaTwitter?: boolean;
38
+ /** Function to handle form submission. */
39
+ onLogin?: (e: any) => void;
40
+ /** Function to route user to the register page. */
41
+ onRouteToRegister?: () => void;
42
+ /** Function to handle forgotten password case. */
43
+ onForgotPassword?: () => void;
44
+ /** Function to handle Google login. */
45
+ onGoogleLogin?: () => void;
46
+ /** Function to handle Github login. */
47
+ onGithubLogin?: () => void;
48
+ /** Function to handle Twitter login. */
49
+ onTwitterLogin?: () => void;
50
+ /** Additional buttons to add under the login button */
51
+ additionalButtons?: any;
52
+ /** The allowed length of the password input field */
53
+ passwordLength?: number;
54
+ };
55
+ declare const LoginForm: FC<LoginFormTypes>;
56
+
57
+ type SelectOptionProps = {
58
+ value: any;
59
+ label: any;
60
+ };
61
+
62
+ type RegisterFormTypes = {
63
+ /** Object containing text labels used throughout the form. */
64
+ texts?: RegisterFormTextsTypes;
65
+ /** Direction of text and layout, either 'rtl' (right-to-left) or 'ltr' (left-to-right). */
66
+ direction?: DirectionType;
67
+ /** Determines whether to display logos only or with text in the social media registration section. */
68
+ logosOnly?: boolean;
69
+ /** Enables registration via Google when set to true. */
70
+ viaGoogle?: boolean;
71
+ /** Enables registration via Github when set to true. */
72
+ viaGithub?: boolean;
73
+ /** Enables registration via Twitter when set to true. */
74
+ viaTwitter?: boolean;
75
+ /** Determines whether to show the referral code field. */
76
+ showRefCode?: boolean;
77
+ /** Determines whether to show the user source selection. */
78
+ showUserSource?: boolean;
79
+ /** Determines whether to show the terms acceptance checkbox. */
80
+ showTermsOption?: boolean;
81
+ /** Determines whether to show the newsletter subscription checkbox. */
82
+ showNewsletterOption?: boolean;
83
+ /** Callback function triggered on form submission. */
84
+ onRegister: (e: any) => void;
85
+ /** Callback function triggered to route to the login page. */
86
+ onRouteToLogin?: () => void;
87
+ /** Callback function triggered to handle registration via Google. */
88
+ onGoogleRegister?: () => void;
89
+ /** Callback function triggered to handle registration via Github. */
90
+ onGithubRegister?: () => void;
91
+ /** Callback function triggered to handle registration via Twitter. */
92
+ onTwitterRegister?: () => void;
93
+ /** Callback function triggered to route to the Terms of Service page. */
94
+ onRouteToTOS?: () => void;
95
+ /** Determines whether to show an error alert. */
96
+ showError?: boolean;
97
+ /** Title for the error alert. */
98
+ errorTitle?: any;
99
+ /** Text for the error alert. */
100
+ errorText?: any;
101
+ /** Array containing the fields to be included in the form. */
102
+ registerFields?: string[];
103
+ /** Indicates whether the form submission is in progress. */
104
+ isLoading?: boolean;
105
+ /** If true, a loading spinner is displayed within the Google login button. */
106
+ isGoogleLoading?: boolean;
107
+ /** If true, a loading spinner is displayed within the Twitter login button. */
108
+ isTwitterLoading?: boolean;
109
+ /** If true, a loading spinner is displayed within the Github login button. */
110
+ isGithubLoading?: boolean;
111
+ /** The options of "How did you learn about us?" select field. */
112
+ userReferenceOptions?: SelectOptionProps[];
113
+ /** To add more custom buttons under the register button. */
114
+ additionalButtons?: any;
115
+ /** To add more custom input fields */
116
+ additionalInputs?: any;
117
+ };
118
+ declare const RegisterForm: FC<RegisterFormTypes>;
119
+
120
+ type AppLandingTextsTypes = ThirdPartyAuthTextsTypes & {
121
+ newUserText?: string;
122
+ createAccount?: string;
123
+ };
124
+ type AppLandingTypes = {
125
+ texts?: AppLandingTextsTypes;
126
+ viaGoogle?: boolean;
127
+ viaTwitter?: boolean;
128
+ viaGithub?: boolean;
129
+ viaMicrosoft?: boolean;
130
+ viaEmail?: boolean;
131
+ viaPhone?: boolean;
132
+ viaApple?: boolean;
133
+ allowRegister?: boolean;
134
+ size?: "small" | "normal" | "full";
135
+ direction?: DirectionType;
136
+ handleRouteToRegister?: () => void;
137
+ handleGoogle?: () => void;
138
+ handleTwitter?: () => void;
139
+ handleApple?: () => void;
140
+ handleMicrosoft?: () => void;
141
+ handleGithub?: () => void;
142
+ handleEmail?: () => void;
143
+ handlePhone?: () => void;
144
+ };
145
+ declare const AppLanding: FC<AppLandingTypes>;
146
+
147
+ type CheckEmailBlocks = {
148
+ handleResend?: () => void;
149
+ texts?: {
150
+ checkEmail: string;
151
+ resendEmail: string;
152
+ pleaseVerify: string;
153
+ };
154
+ };
155
+ declare const CheckEmail: FC<CheckEmailBlocks>;
156
+
157
+ type NewPasswordTypes = {
158
+ handleNewPassword: (e: any) => void;
159
+ handleRouteToRegister: () => void;
160
+ direction?: DirectionType;
161
+ headless?: boolean;
162
+ allowRegister?: boolean;
163
+ passwordChanged: any;
164
+ texts: NewPasswordTextsTypes;
165
+ };
166
+ declare const NewPasswordForm: FC<NewPasswordTypes>;
167
+
168
+ type ResetPasswordType = {
169
+ handleResetPassword: (e: any) => void;
170
+ handleRouteToRegister: () => void;
171
+ sent: any;
172
+ headless?: boolean;
173
+ allowRegister?: boolean;
174
+ direction?: DirectionType;
175
+ texts?: ResetPasswordTextsTypes;
176
+ };
177
+ declare const ResetPasswordForm: FC<ResetPasswordType>;
178
+
179
+ type TConfirmation = {
180
+ texts?: {
181
+ checkYourPhone?: string;
182
+ weSentCode?: string;
183
+ didntGetCode?: string;
184
+ resendCode?: string;
185
+ resendCodeTimer?: string;
186
+ codeRequiredText?: string;
187
+ codeTooShort?: string;
188
+ confirm?: string;
189
+ cancel?: string;
190
+ seconds?: string;
191
+ };
192
+ showError?: any;
193
+ errorTitle?: any;
194
+ errorText?: any;
195
+ phoneNumber?: string;
196
+ confirmLoading?: boolean;
197
+ handleConfirm?: any;
198
+ handleResend?: any;
199
+ };
200
+ declare const CodeConfirmation: FC<TConfirmation>;
201
+
202
+ export { AppLanding, CheckEmail, CodeConfirmation, LoginForm, NewPasswordForm, RegisterForm, ResetPasswordForm };