@sikka/hawa 0.47.0-next → 0.48.1-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.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { FC } from 'react';
3
- import { a as ThirdPartyAuthTextsTypes, P as PositionType, L as LoginFormTextsTypes, D as DirectionType, b as RegisterFormTextsTypes, N as NewPasswordTextsTypes, c as ResetPasswordTextsTypes } from '../../textTypes-DXLtO2fL.mjs';
3
+ import { a as ThirdPartyAuthTextsTypes, P as PositionType, L as LoginFormTextsTypes, D as DirectionType, b as RegisterFormTextsTypes, N as NewPasswordTextsTypes, c as ResetPasswordTextsTypes } from '../../textTypes-CYQYIsFt.mjs';
4
4
 
5
5
  type AuthButtonsType = {
6
6
  texts?: ThirdPartyAuthTextsTypes;
@@ -126,11 +126,17 @@ type RegisterFormTypes = {
126
126
  direction?: DirectionType;
127
127
  /** Determines whether to display logos only or with text in the social media registration section. */
128
128
  logosOnly?: boolean;
129
- /** Enables registration via Google when set to true. */
129
+ /** Enables registration via Google when set to true.
130
+ * @default false
131
+ */
130
132
  viaGoogle?: boolean;
131
- /** Enables registration via Github when set to true. */
133
+ /** Enables registration via Github when set to true.
134
+ * @default false
135
+ */
132
136
  viaGithub?: boolean;
133
- /** Enables registration via Twitter when set to true. */
137
+ /** Enables registration via Twitter when set to true.
138
+ * @default false
139
+ */
134
140
  viaTwitter?: boolean;
135
141
  /** Determines whether to show the referral code field. */
136
142
  showRefCode?: boolean;
@@ -152,16 +158,15 @@ type RegisterFormTypes = {
152
158
  onTwitterRegister?: () => void;
153
159
  /** Callback function triggered to route to the Terms of Service page. */
154
160
  onRouteToTOS?: () => void;
155
- /** Determines whether to show an error alert. */
156
- showError?: boolean;
157
161
  /** Callback function triggered when the error alert is dismissed. */
158
162
  onErrorDismissed?: () => void;
163
+ onRegisterTypeChange?: (e: string) => void;
164
+ /** Determines whether to show an error alert. */
165
+ showError?: boolean;
159
166
  /** Title for the error alert. */
160
167
  errorTitle?: any;
161
168
  /** Text for the error alert. */
162
169
  errorText?: any;
163
- /** Array containing the fields to be included in the form. */
164
- registerFields?: string[];
165
170
  /** Indicates whether the form submission is in progress. */
166
171
  isLoading?: boolean;
167
172
  /** If true, a loading spinner is displayed within the Google login button. */
@@ -187,8 +192,21 @@ type RegisterFormTypes = {
187
192
  };
188
193
  /** The minimum length of the password input field */
189
194
  minPasswordLength?: number;
190
- /** If true, the form is displayed without a card container styling.*/
195
+ /** If true, the form is displayed without a card container styling.
196
+ * @default false
197
+ */
191
198
  cardless?: boolean;
199
+ /** Array containing the fields to be included in the form. */
200
+ registerFields?: ("fullname" | "email" | "username" | "phone")[];
201
+ /** To show the register form in a different type, either "email" or "phone"
202
+ * @default "email"
203
+ */
204
+ registerTypes?: {
205
+ label: string;
206
+ value: string;
207
+ }[];
208
+ /** Props to pass to the PhoneInput component */
209
+ phoneInputProps?: PhoneInputProps;
192
210
  };
193
211
  declare const RegisterForm: FC<RegisterFormTypes>;
194
212
 
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { FC } from 'react';
3
- import { a as ThirdPartyAuthTextsTypes, P as PositionType, L as LoginFormTextsTypes, D as DirectionType, b as RegisterFormTextsTypes, N as NewPasswordTextsTypes, c as ResetPasswordTextsTypes } from '../../textTypes-DXLtO2fL.js';
3
+ import { a as ThirdPartyAuthTextsTypes, P as PositionType, L as LoginFormTextsTypes, D as DirectionType, b as RegisterFormTextsTypes, N as NewPasswordTextsTypes, c as ResetPasswordTextsTypes } from '../../textTypes-CYQYIsFt.js';
4
4
 
5
5
  type AuthButtonsType = {
6
6
  texts?: ThirdPartyAuthTextsTypes;
@@ -126,11 +126,17 @@ type RegisterFormTypes = {
126
126
  direction?: DirectionType;
127
127
  /** Determines whether to display logos only or with text in the social media registration section. */
128
128
  logosOnly?: boolean;
129
- /** Enables registration via Google when set to true. */
129
+ /** Enables registration via Google when set to true.
130
+ * @default false
131
+ */
130
132
  viaGoogle?: boolean;
131
- /** Enables registration via Github when set to true. */
133
+ /** Enables registration via Github when set to true.
134
+ * @default false
135
+ */
132
136
  viaGithub?: boolean;
133
- /** Enables registration via Twitter when set to true. */
137
+ /** Enables registration via Twitter when set to true.
138
+ * @default false
139
+ */
134
140
  viaTwitter?: boolean;
135
141
  /** Determines whether to show the referral code field. */
136
142
  showRefCode?: boolean;
@@ -152,16 +158,15 @@ type RegisterFormTypes = {
152
158
  onTwitterRegister?: () => void;
153
159
  /** Callback function triggered to route to the Terms of Service page. */
154
160
  onRouteToTOS?: () => void;
155
- /** Determines whether to show an error alert. */
156
- showError?: boolean;
157
161
  /** Callback function triggered when the error alert is dismissed. */
158
162
  onErrorDismissed?: () => void;
163
+ onRegisterTypeChange?: (e: string) => void;
164
+ /** Determines whether to show an error alert. */
165
+ showError?: boolean;
159
166
  /** Title for the error alert. */
160
167
  errorTitle?: any;
161
168
  /** Text for the error alert. */
162
169
  errorText?: any;
163
- /** Array containing the fields to be included in the form. */
164
- registerFields?: string[];
165
170
  /** Indicates whether the form submission is in progress. */
166
171
  isLoading?: boolean;
167
172
  /** If true, a loading spinner is displayed within the Google login button. */
@@ -187,8 +192,21 @@ type RegisterFormTypes = {
187
192
  };
188
193
  /** The minimum length of the password input field */
189
194
  minPasswordLength?: number;
190
- /** If true, the form is displayed without a card container styling.*/
195
+ /** If true, the form is displayed without a card container styling.
196
+ * @default false
197
+ */
191
198
  cardless?: boolean;
199
+ /** Array containing the fields to be included in the form. */
200
+ registerFields?: ("fullname" | "email" | "username" | "phone")[];
201
+ /** To show the register form in a different type, either "email" or "phone"
202
+ * @default "email"
203
+ */
204
+ registerTypes?: {
205
+ label: string;
206
+ value: string;
207
+ }[];
208
+ /** Props to pass to the PhoneInput component */
209
+ phoneInputProps?: PhoneInputProps;
192
210
  };
193
211
  declare const RegisterForm: FC<RegisterFormTypes>;
194
212