@sikka/hawa 0.47.0-next → 0.48.0-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 React__default, { FC } from 'react';
2
2
  import { PopoverContentProps } from '@radix-ui/react-popover';
3
- import { D as DirectionType, B as BaseInputType } from '../../textTypes-DXLtO2fL.mjs';
3
+ import { D as DirectionType, B as BaseInputType } from '../../textTypes-CYQYIsFt.mjs';
4
4
 
5
5
  type RadioOptionsTypes = {
6
6
  value: any;
@@ -1,6 +1,6 @@
1
1
  import React__default, { FC } from 'react';
2
2
  import { PopoverContentProps } from '@radix-ui/react-popover';
3
- import { D as DirectionType, B as BaseInputType } from '../../textTypes-DXLtO2fL.js';
3
+ import { D as DirectionType, B as BaseInputType } from '../../textTypes-CYQYIsFt.js';
4
4
 
5
5
  type RadioOptionsTypes = {
6
6
  value: any;
@@ -103,11 +103,17 @@ type RegisterFormTypes = {
103
103
  direction?: DirectionType;
104
104
  /** Determines whether to display logos only or with text in the social media registration section. */
105
105
  logosOnly?: boolean;
106
- /** Enables registration via Google when set to true. */
106
+ /** Enables registration via Google when set to true.
107
+ * @default false
108
+ */
107
109
  viaGoogle?: boolean;
108
- /** Enables registration via Github when set to true. */
110
+ /** Enables registration via Github when set to true.
111
+ * @default false
112
+ */
109
113
  viaGithub?: boolean;
110
- /** Enables registration via Twitter when set to true. */
114
+ /** Enables registration via Twitter when set to true.
115
+ * @default false
116
+ */
111
117
  viaTwitter?: boolean;
112
118
  /** Determines whether to show the referral code field. */
113
119
  showRefCode?: boolean;
@@ -129,16 +135,14 @@ type RegisterFormTypes = {
129
135
  onTwitterRegister?: () => void;
130
136
  /** Callback function triggered to route to the Terms of Service page. */
131
137
  onRouteToTOS?: () => void;
132
- /** Determines whether to show an error alert. */
133
- showError?: boolean;
134
138
  /** Callback function triggered when the error alert is dismissed. */
135
139
  onErrorDismissed?: () => void;
140
+ /** Determines whether to show an error alert. */
141
+ showError?: boolean;
136
142
  /** Title for the error alert. */
137
143
  errorTitle?: any;
138
144
  /** Text for the error alert. */
139
145
  errorText?: any;
140
- /** Array containing the fields to be included in the form. */
141
- registerFields?: string[];
142
146
  /** Indicates whether the form submission is in progress. */
143
147
  isLoading?: boolean;
144
148
  /** If true, a loading spinner is displayed within the Google login button. */
@@ -164,8 +168,21 @@ type RegisterFormTypes = {
164
168
  };
165
169
  /** The minimum length of the password input field */
166
170
  minPasswordLength?: number;
167
- /** If true, the form is displayed without a card container styling.*/
171
+ /** If true, the form is displayed without a card container styling.
172
+ * @default false
173
+ */
168
174
  cardless?: boolean;
175
+ /** Array containing the fields to be included in the form. */
176
+ registerFields?: ("fullname" | "email" | "username" | "phone")[];
177
+ /** To show the register form in a different type, either "email" or "phone"
178
+ * @default "email"
179
+ */
180
+ registerTypes?: {
181
+ label: string;
182
+ value: string;
183
+ }[];
184
+ /** Props to pass to the PhoneInput component */
185
+ phoneInputProps?: PhoneInputProps;
169
186
  };
170
187
  declare const RegisterForm: FC<RegisterFormTypes>;
171
188
 
@@ -103,11 +103,17 @@ type RegisterFormTypes = {
103
103
  direction?: DirectionType;
104
104
  /** Determines whether to display logos only or with text in the social media registration section. */
105
105
  logosOnly?: boolean;
106
- /** Enables registration via Google when set to true. */
106
+ /** Enables registration via Google when set to true.
107
+ * @default false
108
+ */
107
109
  viaGoogle?: boolean;
108
- /** Enables registration via Github when set to true. */
110
+ /** Enables registration via Github when set to true.
111
+ * @default false
112
+ */
109
113
  viaGithub?: boolean;
110
- /** Enables registration via Twitter when set to true. */
114
+ /** Enables registration via Twitter when set to true.
115
+ * @default false
116
+ */
111
117
  viaTwitter?: boolean;
112
118
  /** Determines whether to show the referral code field. */
113
119
  showRefCode?: boolean;
@@ -129,16 +135,14 @@ type RegisterFormTypes = {
129
135
  onTwitterRegister?: () => void;
130
136
  /** Callback function triggered to route to the Terms of Service page. */
131
137
  onRouteToTOS?: () => void;
132
- /** Determines whether to show an error alert. */
133
- showError?: boolean;
134
138
  /** Callback function triggered when the error alert is dismissed. */
135
139
  onErrorDismissed?: () => void;
140
+ /** Determines whether to show an error alert. */
141
+ showError?: boolean;
136
142
  /** Title for the error alert. */
137
143
  errorTitle?: any;
138
144
  /** Text for the error alert. */
139
145
  errorText?: any;
140
- /** Array containing the fields to be included in the form. */
141
- registerFields?: string[];
142
146
  /** Indicates whether the form submission is in progress. */
143
147
  isLoading?: boolean;
144
148
  /** If true, a loading spinner is displayed within the Google login button. */
@@ -164,8 +168,21 @@ type RegisterFormTypes = {
164
168
  };
165
169
  /** The minimum length of the password input field */
166
170
  minPasswordLength?: number;
167
- /** If true, the form is displayed without a card container styling.*/
171
+ /** If true, the form is displayed without a card container styling.
172
+ * @default false
173
+ */
168
174
  cardless?: boolean;
175
+ /** Array containing the fields to be included in the form. */
176
+ registerFields?: ("fullname" | "email" | "username" | "phone")[];
177
+ /** To show the register form in a different type, either "email" or "phone"
178
+ * @default "email"
179
+ */
180
+ registerTypes?: {
181
+ label: string;
182
+ value: string;
183
+ }[];
184
+ /** Props to pass to the PhoneInput component */
185
+ phoneInputProps?: PhoneInputProps;
169
186
  };
170
187
  declare const RegisterForm: FC<RegisterFormTypes>;
171
188