@sikka/hawa 0.49.4-next → 0.49.6-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/blocks/auth/index.js +9 -6
- package/dist/blocks/auth/index.mjs +9 -6
- package/dist/blocks/index.js +9 -6
- package/dist/blocks/index.mjs +9 -6
- package/dist/index.js +9 -6
- package/dist/index.mjs +9 -6
- package/package.json +1 -1
@@ -3581,6 +3581,7 @@ var LoginForm = ({
|
|
3581
3581
|
}
|
3582
3582
|
));
|
3583
3583
|
case "email_link":
|
3584
|
+
case "email_code":
|
3584
3585
|
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
|
3585
3586
|
import_react_hook_form.Controller,
|
3586
3587
|
{
|
@@ -4429,6 +4430,7 @@ var RegisterForm = ({
|
|
4429
4430
|
/* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.FormProvider, { ...methods }, /* @__PURE__ */ import_react37.default.createElement(
|
4430
4431
|
"form",
|
4431
4432
|
{
|
4433
|
+
id: "register_form",
|
4432
4434
|
noValidate: true,
|
4433
4435
|
onSubmit: handleSubmit((e) => {
|
4434
4436
|
if (props.onRegister) {
|
@@ -4530,18 +4532,18 @@ var RegisterForm = ({
|
|
4530
4532
|
control,
|
4531
4533
|
name: "username",
|
4532
4534
|
render: ({ field }) => {
|
4533
|
-
var _a2, _b2, _c2, _d2;
|
4535
|
+
var _a2, _b2, _c2, _d2, _e2;
|
4534
4536
|
return /* @__PURE__ */ import_react37.default.createElement(
|
4535
4537
|
Input,
|
4536
4538
|
{
|
4537
4539
|
width: "full",
|
4538
4540
|
autoComplete: "username",
|
4539
4541
|
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
4540
|
-
labelProps: {
|
4541
|
-
...(
|
4542
|
-
},
|
4543
|
-
helperText: (
|
4544
|
-
placeholder: (
|
4542
|
+
labelProps: ((_b2 = props.usernameOptions) == null ? void 0 : _b2.label) ? {
|
4543
|
+
...(_c2 = props.usernameOptions) == null ? void 0 : _c2.label
|
4544
|
+
} : void 0,
|
4545
|
+
helperText: (_d2 = formState.errors.username) == null ? void 0 : _d2.message,
|
4546
|
+
placeholder: (_e2 = texts == null ? void 0 : texts.username) == null ? void 0 : _e2.placeholder,
|
4545
4547
|
...field
|
4546
4548
|
}
|
4547
4549
|
);
|
@@ -4790,6 +4792,7 @@ var RegisterForm = ({
|
|
4790
4792
|
{
|
4791
4793
|
className: "hawa-w-full",
|
4792
4794
|
type: "submit",
|
4795
|
+
form: "register_form",
|
4793
4796
|
isLoading: props.isLoading,
|
4794
4797
|
disabled: props.isLoading
|
4795
4798
|
},
|
@@ -2659,6 +2659,7 @@ var LoginForm = ({
|
|
2659
2659
|
}
|
2660
2660
|
));
|
2661
2661
|
case "email_link":
|
2662
|
+
case "email_code":
|
2662
2663
|
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(
|
2663
2664
|
Controller,
|
2664
2665
|
{
|
@@ -3056,6 +3057,7 @@ var RegisterForm = ({
|
|
3056
3057
|
/* @__PURE__ */ React7.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React7.createElement(
|
3057
3058
|
"form",
|
3058
3059
|
{
|
3060
|
+
id: "register_form",
|
3059
3061
|
noValidate: true,
|
3060
3062
|
onSubmit: handleSubmit((e) => {
|
3061
3063
|
if (props.onRegister) {
|
@@ -3157,18 +3159,18 @@ var RegisterForm = ({
|
|
3157
3159
|
control,
|
3158
3160
|
name: "username",
|
3159
3161
|
render: ({ field }) => {
|
3160
|
-
var _a2, _b2, _c2, _d2;
|
3162
|
+
var _a2, _b2, _c2, _d2, _e2;
|
3161
3163
|
return /* @__PURE__ */ React7.createElement(
|
3162
3164
|
Input,
|
3163
3165
|
{
|
3164
3166
|
width: "full",
|
3165
3167
|
autoComplete: "username",
|
3166
3168
|
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
3167
|
-
labelProps: {
|
3168
|
-
...(
|
3169
|
-
},
|
3170
|
-
helperText: (
|
3171
|
-
placeholder: (
|
3169
|
+
labelProps: ((_b2 = props.usernameOptions) == null ? void 0 : _b2.label) ? {
|
3170
|
+
...(_c2 = props.usernameOptions) == null ? void 0 : _c2.label
|
3171
|
+
} : void 0,
|
3172
|
+
helperText: (_d2 = formState.errors.username) == null ? void 0 : _d2.message,
|
3173
|
+
placeholder: (_e2 = texts == null ? void 0 : texts.username) == null ? void 0 : _e2.placeholder,
|
3172
3174
|
...field
|
3173
3175
|
}
|
3174
3176
|
);
|
@@ -3417,6 +3419,7 @@ var RegisterForm = ({
|
|
3417
3419
|
{
|
3418
3420
|
className: "hawa-w-full",
|
3419
3421
|
type: "submit",
|
3422
|
+
form: "register_form",
|
3420
3423
|
isLoading: props.isLoading,
|
3421
3424
|
disabled: props.isLoading
|
3422
3425
|
},
|
package/dist/blocks/index.js
CHANGED
@@ -3698,6 +3698,7 @@ var LoginForm = ({
|
|
3698
3698
|
}
|
3699
3699
|
));
|
3700
3700
|
case "email_link":
|
3701
|
+
case "email_code":
|
3701
3702
|
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
|
3702
3703
|
import_react_hook_form.Controller,
|
3703
3704
|
{
|
@@ -4604,6 +4605,7 @@ var RegisterForm = ({
|
|
4604
4605
|
/* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.FormProvider, { ...methods }, /* @__PURE__ */ import_react37.default.createElement(
|
4605
4606
|
"form",
|
4606
4607
|
{
|
4608
|
+
id: "register_form",
|
4607
4609
|
noValidate: true,
|
4608
4610
|
onSubmit: handleSubmit((e) => {
|
4609
4611
|
if (props.onRegister) {
|
@@ -4705,18 +4707,18 @@ var RegisterForm = ({
|
|
4705
4707
|
control,
|
4706
4708
|
name: "username",
|
4707
4709
|
render: ({ field }) => {
|
4708
|
-
var _a2, _b2, _c2, _d2;
|
4710
|
+
var _a2, _b2, _c2, _d2, _e2;
|
4709
4711
|
return /* @__PURE__ */ import_react37.default.createElement(
|
4710
4712
|
Input,
|
4711
4713
|
{
|
4712
4714
|
width: "full",
|
4713
4715
|
autoComplete: "username",
|
4714
4716
|
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
4715
|
-
labelProps: {
|
4716
|
-
...(
|
4717
|
-
},
|
4718
|
-
helperText: (
|
4719
|
-
placeholder: (
|
4717
|
+
labelProps: ((_b2 = props.usernameOptions) == null ? void 0 : _b2.label) ? {
|
4718
|
+
...(_c2 = props.usernameOptions) == null ? void 0 : _c2.label
|
4719
|
+
} : void 0,
|
4720
|
+
helperText: (_d2 = formState.errors.username) == null ? void 0 : _d2.message,
|
4721
|
+
placeholder: (_e2 = texts == null ? void 0 : texts.username) == null ? void 0 : _e2.placeholder,
|
4720
4722
|
...field
|
4721
4723
|
}
|
4722
4724
|
);
|
@@ -4965,6 +4967,7 @@ var RegisterForm = ({
|
|
4965
4967
|
{
|
4966
4968
|
className: "hawa-w-full",
|
4967
4969
|
type: "submit",
|
4970
|
+
form: "register_form",
|
4968
4971
|
isLoading: props.isLoading,
|
4969
4972
|
disabled: props.isLoading
|
4970
4973
|
},
|
package/dist/blocks/index.mjs
CHANGED
@@ -376,6 +376,7 @@ var LoginForm = ({
|
|
376
376
|
}
|
377
377
|
));
|
378
378
|
case "email_link":
|
379
|
+
case "email_code":
|
379
380
|
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(
|
380
381
|
Controller,
|
381
382
|
{
|
@@ -646,6 +647,7 @@ var RegisterForm = ({
|
|
646
647
|
/* @__PURE__ */ React3.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React3.createElement(
|
647
648
|
"form",
|
648
649
|
{
|
650
|
+
id: "register_form",
|
649
651
|
noValidate: true,
|
650
652
|
onSubmit: handleSubmit((e) => {
|
651
653
|
if (props.onRegister) {
|
@@ -747,18 +749,18 @@ var RegisterForm = ({
|
|
747
749
|
control,
|
748
750
|
name: "username",
|
749
751
|
render: ({ field }) => {
|
750
|
-
var _a2, _b2, _c2, _d2;
|
752
|
+
var _a2, _b2, _c2, _d2, _e2;
|
751
753
|
return /* @__PURE__ */ React3.createElement(
|
752
754
|
Input,
|
753
755
|
{
|
754
756
|
width: "full",
|
755
757
|
autoComplete: "username",
|
756
758
|
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
757
|
-
labelProps: {
|
758
|
-
...(
|
759
|
-
},
|
760
|
-
helperText: (
|
761
|
-
placeholder: (
|
759
|
+
labelProps: ((_b2 = props.usernameOptions) == null ? void 0 : _b2.label) ? {
|
760
|
+
...(_c2 = props.usernameOptions) == null ? void 0 : _c2.label
|
761
|
+
} : void 0,
|
762
|
+
helperText: (_d2 = formState.errors.username) == null ? void 0 : _d2.message,
|
763
|
+
placeholder: (_e2 = texts == null ? void 0 : texts.username) == null ? void 0 : _e2.placeholder,
|
762
764
|
...field
|
763
765
|
}
|
764
766
|
);
|
@@ -1007,6 +1009,7 @@ var RegisterForm = ({
|
|
1007
1009
|
{
|
1008
1010
|
className: "hawa-w-full",
|
1009
1011
|
type: "submit",
|
1012
|
+
form: "register_form",
|
1010
1013
|
isLoading: props.isLoading,
|
1011
1014
|
disabled: props.isLoading
|
1012
1015
|
},
|
package/dist/index.js
CHANGED
@@ -10405,6 +10405,7 @@ var LoginForm = ({
|
|
10405
10405
|
}
|
10406
10406
|
));
|
10407
10407
|
case "email_link":
|
10408
|
+
case "email_code":
|
10408
10409
|
return /* @__PURE__ */ import_react67.default.createElement(import_react67.default.Fragment, null, /* @__PURE__ */ import_react67.default.createElement(
|
10409
10410
|
import_react_hook_form.Controller,
|
10410
10411
|
{
|
@@ -10670,6 +10671,7 @@ var RegisterForm = ({
|
|
10670
10671
|
/* @__PURE__ */ import_react69.default.createElement(import_react_hook_form2.FormProvider, { ...methods }, /* @__PURE__ */ import_react69.default.createElement(
|
10671
10672
|
"form",
|
10672
10673
|
{
|
10674
|
+
id: "register_form",
|
10673
10675
|
noValidate: true,
|
10674
10676
|
onSubmit: handleSubmit((e) => {
|
10675
10677
|
if (props.onRegister) {
|
@@ -10771,18 +10773,18 @@ var RegisterForm = ({
|
|
10771
10773
|
control,
|
10772
10774
|
name: "username",
|
10773
10775
|
render: ({ field }) => {
|
10774
|
-
var _a2, _b2, _c2, _d2;
|
10776
|
+
var _a2, _b2, _c2, _d2, _e2;
|
10775
10777
|
return /* @__PURE__ */ import_react69.default.createElement(
|
10776
10778
|
Input,
|
10777
10779
|
{
|
10778
10780
|
width: "full",
|
10779
10781
|
autoComplete: "username",
|
10780
10782
|
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
10781
|
-
labelProps: {
|
10782
|
-
...(
|
10783
|
-
},
|
10784
|
-
helperText: (
|
10785
|
-
placeholder: (
|
10783
|
+
labelProps: ((_b2 = props.usernameOptions) == null ? void 0 : _b2.label) ? {
|
10784
|
+
...(_c2 = props.usernameOptions) == null ? void 0 : _c2.label
|
10785
|
+
} : void 0,
|
10786
|
+
helperText: (_d2 = formState.errors.username) == null ? void 0 : _d2.message,
|
10787
|
+
placeholder: (_e2 = texts == null ? void 0 : texts.username) == null ? void 0 : _e2.placeholder,
|
10786
10788
|
...field
|
10787
10789
|
}
|
10788
10790
|
);
|
@@ -11031,6 +11033,7 @@ var RegisterForm = ({
|
|
11031
11033
|
{
|
11032
11034
|
className: "hawa-w-full",
|
11033
11035
|
type: "submit",
|
11036
|
+
form: "register_form",
|
11034
11037
|
isLoading: props.isLoading,
|
11035
11038
|
disabled: props.isLoading
|
11036
11039
|
},
|
package/dist/index.mjs
CHANGED
@@ -10170,6 +10170,7 @@ var LoginForm = ({
|
|
10170
10170
|
}
|
10171
10171
|
));
|
10172
10172
|
case "email_link":
|
10173
|
+
case "email_code":
|
10173
10174
|
return /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(
|
10174
10175
|
Controller,
|
10175
10176
|
{
|
@@ -10440,6 +10441,7 @@ var RegisterForm = ({
|
|
10440
10441
|
/* @__PURE__ */ React83.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React83.createElement(
|
10441
10442
|
"form",
|
10442
10443
|
{
|
10444
|
+
id: "register_form",
|
10443
10445
|
noValidate: true,
|
10444
10446
|
onSubmit: handleSubmit((e) => {
|
10445
10447
|
if (props.onRegister) {
|
@@ -10541,18 +10543,18 @@ var RegisterForm = ({
|
|
10541
10543
|
control,
|
10542
10544
|
name: "username",
|
10543
10545
|
render: ({ field }) => {
|
10544
|
-
var _a2, _b2, _c2, _d2;
|
10546
|
+
var _a2, _b2, _c2, _d2, _e2;
|
10545
10547
|
return /* @__PURE__ */ React83.createElement(
|
10546
10548
|
Input,
|
10547
10549
|
{
|
10548
10550
|
width: "full",
|
10549
10551
|
autoComplete: "username",
|
10550
10552
|
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
10551
|
-
labelProps: {
|
10552
|
-
...(
|
10553
|
-
},
|
10554
|
-
helperText: (
|
10555
|
-
placeholder: (
|
10553
|
+
labelProps: ((_b2 = props.usernameOptions) == null ? void 0 : _b2.label) ? {
|
10554
|
+
...(_c2 = props.usernameOptions) == null ? void 0 : _c2.label
|
10555
|
+
} : void 0,
|
10556
|
+
helperText: (_d2 = formState.errors.username) == null ? void 0 : _d2.message,
|
10557
|
+
placeholder: (_e2 = texts == null ? void 0 : texts.username) == null ? void 0 : _e2.placeholder,
|
10556
10558
|
...field
|
10557
10559
|
}
|
10558
10560
|
);
|
@@ -10801,6 +10803,7 @@ var RegisterForm = ({
|
|
10801
10803
|
{
|
10802
10804
|
className: "hawa-w-full",
|
10803
10805
|
type: "submit",
|
10806
|
+
form: "register_form",
|
10804
10807
|
isLoading: props.isLoading,
|
10805
10808
|
disabled: props.isLoading
|
10806
10809
|
},
|