@sikka/hawa 0.46.4-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.
- package/dist/{Radio-Dyvlywnk.d.mts → Radio-BPHTeDMz.d.mts} +8 -7
- package/dist/{Radio-DlPwVCG4.d.ts → Radio-cRcIH8_L.d.ts} +8 -7
- package/dist/blocks/auth/index.d.mts +34 -17
- package/dist/blocks/auth/index.d.ts +34 -17
- package/dist/blocks/auth/index.js +1008 -430
- package/dist/blocks/auth/index.mjs +427 -297
- package/dist/blocks/feedback/index.d.mts +1 -1
- package/dist/blocks/feedback/index.d.ts +1 -1
- package/dist/blocks/feedback/index.js +68 -79
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.d.mts +28 -11
- package/dist/blocks/index.d.ts +28 -11
- package/dist/blocks/index.js +2340 -2233
- package/dist/blocks/index.mjs +407 -269
- package/dist/blocks/misc/index.d.mts +1 -1
- package/dist/blocks/misc/index.d.ts +1 -1
- package/dist/blocks/misc/index.js +68 -79
- package/dist/blocks/misc/index.mjs +50 -367
- package/dist/blocks/pricing/index.d.mts +1 -1
- package/dist/blocks/pricing/index.d.ts +1 -1
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-6TG2PHZK.mjs → chunk-AWJSHOYU.mjs} +68 -79
- package/dist/{chunk-5CTMGPEF.mjs → chunk-GBLWUEYN.mjs} +650 -674
- package/dist/chunk-JFWD2ICY.mjs +511 -0
- package/dist/elements/index.d.mts +2 -2
- package/dist/elements/index.d.ts +2 -2
- package/dist/elements/index.js +81 -105
- package/dist/elements/index.mjs +1 -1
- package/dist/index.css +7 -0
- package/dist/index.d.mts +36 -17
- package/dist/index.d.ts +36 -17
- package/dist/index.js +482 -373
- package/dist/index.mjs +487 -373
- package/dist/phoneInput/index.d.mts +7 -7
- package/dist/phoneInput/index.d.ts +7 -7
- package/dist/phoneInput/index.js +78 -85
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +78 -85
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +3 -20
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +3 -20
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/select/index.d.mts +1 -0
- package/dist/select/index.d.ts +1 -0
- package/dist/select/index.js +68 -79
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +68 -79
- package/dist/select/index.mjs.map +1 -1
- package/dist/{textTypes-DXLtO2fL.d.mts → textTypes-CYQYIsFt.d.mts} +1 -0
- package/dist/{textTypes-DXLtO2fL.d.ts → textTypes-CYQYIsFt.d.ts} +1 -0
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-EOH6A3GR.mjs +0 -183
@@ -11,19 +11,19 @@ type LabelProps = {
|
|
11
11
|
};
|
12
12
|
declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
13
13
|
|
14
|
+
type PhoneCodeValue = {
|
15
|
+
label: string;
|
16
|
+
value?: string;
|
17
|
+
};
|
14
18
|
type PhoneInputProps = {
|
15
|
-
preferredCountry?:
|
16
|
-
label: string;
|
17
|
-
};
|
19
|
+
preferredCountry?: PhoneCodeValue;
|
18
20
|
helperText?: any;
|
19
21
|
label?: string;
|
20
22
|
labelProps?: LabelProps;
|
21
23
|
placeholder?: string;
|
22
24
|
handleChange?: (value: string) => void;
|
23
25
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
24
|
-
countryCodes?:
|
25
|
-
label: string;
|
26
|
-
}[];
|
26
|
+
countryCodes?: PhoneCodeValue[];
|
27
27
|
};
|
28
28
|
declare const PhoneInput: FC<PhoneInputProps>;
|
29
29
|
|
@@ -36,6 +36,7 @@ type SelectTypes = {
|
|
36
36
|
hideHelperText?: boolean;
|
37
37
|
options: SelectOptionProps[];
|
38
38
|
labelKey?: string;
|
39
|
+
valueKey?: string;
|
39
40
|
isCreatable?: boolean;
|
40
41
|
isClearable?: boolean;
|
41
42
|
isMulti?: boolean;
|
@@ -101,4 +102,4 @@ type RadioTypes = {
|
|
101
102
|
};
|
102
103
|
declare const Radio: React__default.ForwardRefExoticComponent<RadioTypes & React__default.RefAttributes<HTMLInputElement>>;
|
103
104
|
|
104
|
-
export { type LabelProps as L, type PhoneInputProps as P, type RadioOptionsTypes as R, type SelectOptionProps as S, Radio as a, Label as b, Select as c,
|
105
|
+
export { type LabelProps as L, type PhoneInputProps as P, type RadioOptionsTypes as R, type SelectOptionProps as S, Radio as a, Label as b, Select as c, type PhoneCodeValue as d, PhoneInput as e };
|
@@ -11,19 +11,19 @@ type LabelProps = {
|
|
11
11
|
};
|
12
12
|
declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
13
13
|
|
14
|
+
type PhoneCodeValue = {
|
15
|
+
label: string;
|
16
|
+
value?: string;
|
17
|
+
};
|
14
18
|
type PhoneInputProps = {
|
15
|
-
preferredCountry?:
|
16
|
-
label: string;
|
17
|
-
};
|
19
|
+
preferredCountry?: PhoneCodeValue;
|
18
20
|
helperText?: any;
|
19
21
|
label?: string;
|
20
22
|
labelProps?: LabelProps;
|
21
23
|
placeholder?: string;
|
22
24
|
handleChange?: (value: string) => void;
|
23
25
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
24
|
-
countryCodes?:
|
25
|
-
label: string;
|
26
|
-
}[];
|
26
|
+
countryCodes?: PhoneCodeValue[];
|
27
27
|
};
|
28
28
|
declare const PhoneInput: FC<PhoneInputProps>;
|
29
29
|
|
@@ -36,6 +36,7 @@ type SelectTypes = {
|
|
36
36
|
hideHelperText?: boolean;
|
37
37
|
options: SelectOptionProps[];
|
38
38
|
labelKey?: string;
|
39
|
+
valueKey?: string;
|
39
40
|
isCreatable?: boolean;
|
40
41
|
isClearable?: boolean;
|
41
42
|
isMulti?: boolean;
|
@@ -101,4 +102,4 @@ type RadioTypes = {
|
|
101
102
|
};
|
102
103
|
declare const Radio: React__default.ForwardRefExoticComponent<RadioTypes & React__default.RefAttributes<HTMLInputElement>>;
|
103
104
|
|
104
|
-
export { type LabelProps as L, type PhoneInputProps as P, type RadioOptionsTypes as R, type SelectOptionProps as S, Radio as a, Label as b, Select as c,
|
105
|
+
export { type LabelProps as L, type PhoneInputProps as P, type RadioOptionsTypes as R, type SelectOptionProps as S, Radio as a, Label as b, Select as c, type PhoneCodeValue as d, PhoneInput as e };
|
@@ -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-
|
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;
|
@@ -41,19 +41,19 @@ type LabelProps = {
|
|
41
41
|
required?: boolean;
|
42
42
|
};
|
43
43
|
|
44
|
+
type PhoneCodeValue = {
|
45
|
+
label: string;
|
46
|
+
value?: string;
|
47
|
+
};
|
44
48
|
type PhoneInputProps = {
|
45
|
-
preferredCountry?:
|
46
|
-
label: string;
|
47
|
-
};
|
49
|
+
preferredCountry?: PhoneCodeValue;
|
48
50
|
helperText?: any;
|
49
51
|
label?: string;
|
50
52
|
labelProps?: LabelProps;
|
51
53
|
placeholder?: string;
|
52
54
|
handleChange?: (value: string) => void;
|
53
55
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
54
|
-
countryCodes?:
|
55
|
-
label: string;
|
56
|
-
}[];
|
56
|
+
countryCodes?: PhoneCodeValue[];
|
57
57
|
};
|
58
58
|
|
59
59
|
type LoginFormTypes = {
|
@@ -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,14 @@ 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
|
+
/** Determines whether to show an error alert. */
|
164
|
+
showError?: boolean;
|
159
165
|
/** Title for the error alert. */
|
160
166
|
errorTitle?: any;
|
161
167
|
/** Text for the error alert. */
|
162
168
|
errorText?: any;
|
163
|
-
/** Array containing the fields to be included in the form. */
|
164
|
-
registerFields?: string[];
|
165
169
|
/** Indicates whether the form submission is in progress. */
|
166
170
|
isLoading?: boolean;
|
167
171
|
/** If true, a loading spinner is displayed within the Google login button. */
|
@@ -187,8 +191,21 @@ type RegisterFormTypes = {
|
|
187
191
|
};
|
188
192
|
/** The minimum length of the password input field */
|
189
193
|
minPasswordLength?: number;
|
190
|
-
/** If true, the form is displayed without a card container styling
|
194
|
+
/** If true, the form is displayed without a card container styling.
|
195
|
+
* @default false
|
196
|
+
*/
|
191
197
|
cardless?: boolean;
|
198
|
+
/** Array containing the fields to be included in the form. */
|
199
|
+
registerFields?: ("fullname" | "email" | "username" | "phone")[];
|
200
|
+
/** To show the register form in a different type, either "email" or "phone"
|
201
|
+
* @default "email"
|
202
|
+
*/
|
203
|
+
registerTypes?: {
|
204
|
+
label: string;
|
205
|
+
value: string;
|
206
|
+
}[];
|
207
|
+
/** Props to pass to the PhoneInput component */
|
208
|
+
phoneInputProps?: PhoneInputProps;
|
192
209
|
};
|
193
210
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
194
211
|
|
@@ -266,7 +283,7 @@ declare const ResetPasswordForm: FC<ResetPasswordType>;
|
|
266
283
|
|
267
284
|
type TConfirmation = {
|
268
285
|
texts?: {
|
269
|
-
|
286
|
+
checkYourIdentifier?: string;
|
270
287
|
weSentCode?: string;
|
271
288
|
didntGetCode?: string;
|
272
289
|
resendCode?: string;
|
@@ -280,7 +297,7 @@ type TConfirmation = {
|
|
280
297
|
showError?: any;
|
281
298
|
errorTitle?: any;
|
282
299
|
errorText?: any;
|
283
|
-
|
300
|
+
identifier?: string;
|
284
301
|
confirmLoading?: boolean;
|
285
302
|
onConfirm?: any;
|
286
303
|
onResend?: any;
|
@@ -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-
|
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;
|
@@ -41,19 +41,19 @@ type LabelProps = {
|
|
41
41
|
required?: boolean;
|
42
42
|
};
|
43
43
|
|
44
|
+
type PhoneCodeValue = {
|
45
|
+
label: string;
|
46
|
+
value?: string;
|
47
|
+
};
|
44
48
|
type PhoneInputProps = {
|
45
|
-
preferredCountry?:
|
46
|
-
label: string;
|
47
|
-
};
|
49
|
+
preferredCountry?: PhoneCodeValue;
|
48
50
|
helperText?: any;
|
49
51
|
label?: string;
|
50
52
|
labelProps?: LabelProps;
|
51
53
|
placeholder?: string;
|
52
54
|
handleChange?: (value: string) => void;
|
53
55
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
54
|
-
countryCodes?:
|
55
|
-
label: string;
|
56
|
-
}[];
|
56
|
+
countryCodes?: PhoneCodeValue[];
|
57
57
|
};
|
58
58
|
|
59
59
|
type LoginFormTypes = {
|
@@ -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,14 @@ 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
|
+
/** Determines whether to show an error alert. */
|
164
|
+
showError?: boolean;
|
159
165
|
/** Title for the error alert. */
|
160
166
|
errorTitle?: any;
|
161
167
|
/** Text for the error alert. */
|
162
168
|
errorText?: any;
|
163
|
-
/** Array containing the fields to be included in the form. */
|
164
|
-
registerFields?: string[];
|
165
169
|
/** Indicates whether the form submission is in progress. */
|
166
170
|
isLoading?: boolean;
|
167
171
|
/** If true, a loading spinner is displayed within the Google login button. */
|
@@ -187,8 +191,21 @@ type RegisterFormTypes = {
|
|
187
191
|
};
|
188
192
|
/** The minimum length of the password input field */
|
189
193
|
minPasswordLength?: number;
|
190
|
-
/** If true, the form is displayed without a card container styling
|
194
|
+
/** If true, the form is displayed without a card container styling.
|
195
|
+
* @default false
|
196
|
+
*/
|
191
197
|
cardless?: boolean;
|
198
|
+
/** Array containing the fields to be included in the form. */
|
199
|
+
registerFields?: ("fullname" | "email" | "username" | "phone")[];
|
200
|
+
/** To show the register form in a different type, either "email" or "phone"
|
201
|
+
* @default "email"
|
202
|
+
*/
|
203
|
+
registerTypes?: {
|
204
|
+
label: string;
|
205
|
+
value: string;
|
206
|
+
}[];
|
207
|
+
/** Props to pass to the PhoneInput component */
|
208
|
+
phoneInputProps?: PhoneInputProps;
|
192
209
|
};
|
193
210
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
194
211
|
|
@@ -266,7 +283,7 @@ declare const ResetPasswordForm: FC<ResetPasswordType>;
|
|
266
283
|
|
267
284
|
type TConfirmation = {
|
268
285
|
texts?: {
|
269
|
-
|
286
|
+
checkYourIdentifier?: string;
|
270
287
|
weSentCode?: string;
|
271
288
|
didntGetCode?: string;
|
272
289
|
resendCode?: string;
|
@@ -280,7 +297,7 @@ type TConfirmation = {
|
|
280
297
|
showError?: any;
|
281
298
|
errorTitle?: any;
|
282
299
|
errorText?: any;
|
283
|
-
|
300
|
+
identifier?: string;
|
284
301
|
confirmLoading?: boolean;
|
285
302
|
onConfirm?: any;
|
286
303
|
onResend?: any;
|