@sikka/hawa 0.27.18-next → 0.27.20-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/appLayout/index.js +1 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +1 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +5 -0
- package/dist/blocks/auth/index.d.ts +5 -0
- package/dist/blocks/auth/index.js +257 -248
- package/dist/blocks/auth/index.mjs +260 -251
- package/dist/blocks/feedback/index.js +1 -1
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +5 -0
- package/dist/blocks/index.d.ts +5 -0
- package/dist/blocks/index.js +257 -248
- package/dist/blocks/index.mjs +258 -249
- package/dist/blocks/misc/index.js +1 -1
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +1 -1
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/{chunk-X43DYWMS.mjs → chunk-7CYXEZDV.mjs} +1 -1
- package/dist/{chunk-ELDUKPOJ.mjs → chunk-7QEBDFLT.mjs} +1 -1
- package/dist/{chunk-4V3JYKXA.mjs → chunk-DQHPOUHR.mjs} +1 -1
- package/dist/{chunk-OKTSMWI6.mjs → chunk-DUL6C2S2.mjs} +1 -1
- package/dist/{chunk-V5EPRL6U.mjs → chunk-EFWL3FFK.mjs} +1 -1
- package/dist/{chunk-2EUB7RZD.mjs → chunk-F56X3EW2.mjs} +1 -1
- package/dist/{chunk-OOTIDLPP.mjs → chunk-M6XGGAPQ.mjs} +1 -1
- package/dist/{chunk-M7YG4RQ3.mjs → chunk-MMOEFJSP.mjs} +1 -1
- package/dist/{chunk-TKEDUZKG.mjs → chunk-W5I4VB5Z.mjs} +1 -1
- package/dist/{chunk-WXHZXK5S.mjs → chunk-ZOWDRDAM.mjs} +1 -1
- package/dist/codeBlock/index.js +1 -1
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +1 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +1 -1
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +1 -1
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +1 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +1 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/elements/index.js +1 -1
- package/dist/elements/index.mjs +3 -3
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +257 -248
- package/dist/index.mjs +257 -248
- package/dist/input/index.js +1 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +1 -1
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +1 -1
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +1 -1
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +1 -1
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/passwordInput/index.js +1 -1
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +1 -1
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +1 -1
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.js +1 -1
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +1 -1
- package/dist/signature/index.mjs.map +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +1 -1
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks/index.mjs
CHANGED
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
UncheckMark,
|
27
27
|
VeryBadEmoji,
|
28
28
|
VeryGoodEmoji
|
29
|
-
} from "../chunk-
|
29
|
+
} from "../chunk-F56X3EW2.mjs";
|
30
30
|
import {
|
31
31
|
Button,
|
32
32
|
Card,
|
@@ -42,7 +42,7 @@ import {
|
|
42
42
|
Skeleton,
|
43
43
|
Tooltip,
|
44
44
|
cn
|
45
|
-
} from "../chunk-
|
45
|
+
} from "../chunk-ZOWDRDAM.mjs";
|
46
46
|
import "../chunk-4OOSUQZG.mjs";
|
47
47
|
|
48
48
|
// blocks/auth/LoginForm.tsx
|
@@ -442,7 +442,7 @@ var RegisterForm = ({
|
|
442
442
|
showNewsletterOption = false,
|
443
443
|
...props
|
444
444
|
}) => {
|
445
|
-
var _a, _b, _c, _d, _e, _f;
|
445
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
446
446
|
const [passwordVisible, setPasswordVisible] = useState2(false);
|
447
447
|
const thirdPartyAuthTexts = {
|
448
448
|
continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
|
@@ -508,281 +508,290 @@ var RegisterForm = ({
|
|
508
508
|
const { handleSubmit, control, formState } = useForm2({
|
509
509
|
resolver: zodResolver2(formSchema)
|
510
510
|
});
|
511
|
-
return /* @__PURE__ */ React3.createElement(
|
512
|
-
|
513
|
-
{
|
514
|
-
title: props.errorTitle,
|
515
|
-
text: props.errorText,
|
516
|
-
severity: "error"
|
517
|
-
}
|
518
|
-
), /* @__PURE__ */ React3.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React3.createElement(
|
519
|
-
"form",
|
511
|
+
return /* @__PURE__ */ React3.createElement(
|
512
|
+
"div",
|
520
513
|
{
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
} else {
|
526
|
-
console.log(
|
527
|
-
"Form is submitted but onRegister prop is missing"
|
528
|
-
);
|
529
|
-
}
|
530
|
-
}),
|
531
|
-
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
514
|
+
className: cn(
|
515
|
+
"hawa-flex hawa-flex-col hawa-gap-4",
|
516
|
+
(_g = props.classNames) == null ? void 0 : _g.root
|
517
|
+
)
|
532
518
|
},
|
533
|
-
/* @__PURE__ */ React3.createElement(
|
534
|
-
|
535
|
-
return /* @__PURE__ */ React3.createElement(
|
536
|
-
Controller2,
|
537
|
-
{
|
538
|
-
key: i,
|
539
|
-
control,
|
540
|
-
name: "fullName",
|
541
|
-
render: ({ field }) => {
|
542
|
-
var _a2, _b2, _c2;
|
543
|
-
return /* @__PURE__ */ React3.createElement(
|
544
|
-
Input,
|
545
|
-
{
|
546
|
-
width: "full",
|
547
|
-
label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
|
548
|
-
placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
|
549
|
-
helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
|
550
|
-
...field
|
551
|
-
}
|
552
|
-
);
|
553
|
-
}
|
554
|
-
}
|
555
|
-
);
|
556
|
-
}
|
557
|
-
if (fld === "email") {
|
558
|
-
return /* @__PURE__ */ React3.createElement(
|
559
|
-
Controller2,
|
560
|
-
{
|
561
|
-
key: i,
|
562
|
-
control,
|
563
|
-
name: "email",
|
564
|
-
render: ({ field }) => {
|
565
|
-
var _a2, _b2, _c2;
|
566
|
-
return /* @__PURE__ */ React3.createElement(
|
567
|
-
Input,
|
568
|
-
{
|
569
|
-
dir: "ltr",
|
570
|
-
inputProps: {
|
571
|
-
className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
|
572
|
-
},
|
573
|
-
width: "full",
|
574
|
-
autoComplete: "email",
|
575
|
-
label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
|
576
|
-
helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
|
577
|
-
placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
|
578
|
-
...field
|
579
|
-
}
|
580
|
-
);
|
581
|
-
}
|
582
|
-
}
|
583
|
-
);
|
584
|
-
}
|
585
|
-
if (fld === "username") {
|
586
|
-
return /* @__PURE__ */ React3.createElement(
|
587
|
-
Controller2,
|
588
|
-
{
|
589
|
-
key: i,
|
590
|
-
control,
|
591
|
-
name: "username",
|
592
|
-
render: ({ field }) => {
|
593
|
-
var _a2, _b2, _c2, _d2;
|
594
|
-
return /* @__PURE__ */ React3.createElement(
|
595
|
-
Input,
|
596
|
-
{
|
597
|
-
width: "full",
|
598
|
-
autoComplete: "username",
|
599
|
-
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
600
|
-
labelProps: {
|
601
|
-
...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
|
602
|
-
},
|
603
|
-
helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
|
604
|
-
placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
|
605
|
-
...field
|
606
|
-
}
|
607
|
-
);
|
608
|
-
}
|
609
|
-
}
|
610
|
-
);
|
611
|
-
}
|
612
|
-
})),
|
613
|
-
/* @__PURE__ */ React3.createElement(
|
614
|
-
Controller2,
|
519
|
+
/* @__PURE__ */ React3.createElement(Card, { dir: props.direction, className: cn((_h = props.classNames) == null ? void 0 : _h.card) }, /* @__PURE__ */ React3.createElement(CardContent, { headless: true }, /* @__PURE__ */ React3.createElement("div", null, props.showError && /* @__PURE__ */ React3.createElement(
|
520
|
+
Alert,
|
615
521
|
{
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
var _a2, _b2, _c2;
|
620
|
-
return /* @__PURE__ */ React3.createElement(
|
621
|
-
Input,
|
622
|
-
{
|
623
|
-
width: "full",
|
624
|
-
type: passwordVisible ? "text" : "password",
|
625
|
-
endIcon: /* @__PURE__ */ React3.createElement(
|
626
|
-
"div",
|
627
|
-
{
|
628
|
-
className: "hawa-cursor-pointer",
|
629
|
-
onClick: () => setPasswordVisible(!passwordVisible)
|
630
|
-
},
|
631
|
-
passwordVisible ? /* @__PURE__ */ React3.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React3.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
632
|
-
" "
|
633
|
-
),
|
634
|
-
autoComplete: "new-password",
|
635
|
-
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
636
|
-
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
637
|
-
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
638
|
-
...field
|
639
|
-
}
|
640
|
-
);
|
641
|
-
}
|
522
|
+
title: props.errorTitle,
|
523
|
+
text: props.errorText,
|
524
|
+
severity: "error"
|
642
525
|
}
|
643
|
-
),
|
644
|
-
|
645
|
-
Controller2,
|
526
|
+
), /* @__PURE__ */ React3.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React3.createElement(
|
527
|
+
"form",
|
646
528
|
{
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
529
|
+
noValidate: true,
|
530
|
+
onSubmit: handleSubmit((e) => {
|
531
|
+
if (props.onRegister) {
|
532
|
+
return props.onRegister(e);
|
533
|
+
} else {
|
534
|
+
console.log(
|
535
|
+
"Form is submitted but onRegister prop is missing"
|
536
|
+
);
|
537
|
+
}
|
538
|
+
}),
|
539
|
+
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
540
|
+
},
|
541
|
+
/* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
542
|
+
if (fld === "fullname") {
|
651
543
|
return /* @__PURE__ */ React3.createElement(
|
652
|
-
|
544
|
+
Controller2,
|
653
545
|
{
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
546
|
+
key: i,
|
547
|
+
control,
|
548
|
+
name: "fullName",
|
549
|
+
render: ({ field }) => {
|
550
|
+
var _a2, _b2, _c2;
|
551
|
+
return /* @__PURE__ */ React3.createElement(
|
552
|
+
Input,
|
553
|
+
{
|
554
|
+
width: "full",
|
555
|
+
label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
|
556
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
|
557
|
+
helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
|
558
|
+
...field
|
559
|
+
}
|
560
|
+
);
|
561
|
+
}
|
661
562
|
}
|
662
563
|
);
|
663
564
|
}
|
664
|
-
|
665
|
-
),
|
666
|
-
props.additionalInputs,
|
667
|
-
props.showRefCode && /* @__PURE__ */ React3.createElement(
|
668
|
-
Controller2,
|
669
|
-
{
|
670
|
-
control,
|
671
|
-
name: "refCode",
|
672
|
-
render: ({ field }) => {
|
673
|
-
var _a2;
|
565
|
+
if (fld === "email") {
|
674
566
|
return /* @__PURE__ */ React3.createElement(
|
675
|
-
|
567
|
+
Controller2,
|
676
568
|
{
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
569
|
+
key: i,
|
570
|
+
control,
|
571
|
+
name: "email",
|
572
|
+
render: ({ field }) => {
|
573
|
+
var _a2, _b2, _c2;
|
574
|
+
return /* @__PURE__ */ React3.createElement(
|
575
|
+
Input,
|
576
|
+
{
|
577
|
+
dir: "ltr",
|
578
|
+
inputProps: {
|
579
|
+
className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
|
580
|
+
},
|
581
|
+
width: "full",
|
582
|
+
autoComplete: "email",
|
583
|
+
label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
|
584
|
+
helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
|
585
|
+
placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
|
586
|
+
...field
|
587
|
+
}
|
588
|
+
);
|
589
|
+
}
|
682
590
|
}
|
683
591
|
);
|
684
592
|
}
|
685
|
-
|
686
|
-
),
|
687
|
-
props.showUserSource && /* @__PURE__ */ React3.createElement(
|
688
|
-
Controller2,
|
689
|
-
{
|
690
|
-
control,
|
691
|
-
name: "reference",
|
692
|
-
render: ({ field }) => {
|
693
|
-
var _a2, _b2;
|
593
|
+
if (fld === "username") {
|
694
594
|
return /* @__PURE__ */ React3.createElement(
|
695
|
-
|
595
|
+
Controller2,
|
696
596
|
{
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
597
|
+
key: i,
|
598
|
+
control,
|
599
|
+
name: "username",
|
600
|
+
render: ({ field }) => {
|
601
|
+
var _a2, _b2, _c2, _d2;
|
602
|
+
return /* @__PURE__ */ React3.createElement(
|
603
|
+
Input,
|
604
|
+
{
|
605
|
+
width: "full",
|
606
|
+
autoComplete: "username",
|
607
|
+
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
608
|
+
labelProps: {
|
609
|
+
...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
|
610
|
+
},
|
611
|
+
helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
|
612
|
+
placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
|
613
|
+
...field
|
614
|
+
}
|
615
|
+
);
|
706
616
|
}
|
707
617
|
}
|
708
618
|
);
|
709
619
|
}
|
710
|
-
}
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
620
|
+
})),
|
621
|
+
/* @__PURE__ */ React3.createElement(
|
622
|
+
Controller2,
|
623
|
+
{
|
624
|
+
control,
|
625
|
+
name: "password",
|
626
|
+
render: ({ field }) => {
|
627
|
+
var _a2, _b2, _c2;
|
628
|
+
return /* @__PURE__ */ React3.createElement(
|
629
|
+
Input,
|
630
|
+
{
|
631
|
+
width: "full",
|
632
|
+
type: passwordVisible ? "text" : "password",
|
633
|
+
endIcon: /* @__PURE__ */ React3.createElement(
|
634
|
+
"div",
|
635
|
+
{
|
636
|
+
className: "hawa-cursor-pointer",
|
637
|
+
onClick: () => setPasswordVisible(!passwordVisible)
|
638
|
+
},
|
639
|
+
passwordVisible ? /* @__PURE__ */ React3.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React3.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
640
|
+
" "
|
641
|
+
),
|
642
|
+
autoComplete: "new-password",
|
643
|
+
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
644
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
645
|
+
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
646
|
+
...field
|
647
|
+
}
|
648
|
+
);
|
649
|
+
}
|
650
|
+
}
|
651
|
+
),
|
652
|
+
/* @__PURE__ */ React3.createElement(
|
653
|
+
Controller2,
|
654
|
+
{
|
655
|
+
control,
|
656
|
+
name: "confirm_password",
|
657
|
+
render: ({ field }) => {
|
658
|
+
var _a2, _b2, _c2;
|
659
|
+
return /* @__PURE__ */ React3.createElement(
|
660
|
+
Input,
|
661
|
+
{
|
662
|
+
width: "full",
|
663
|
+
type: "password",
|
664
|
+
autoComplete: "new-password",
|
665
|
+
label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
|
666
|
+
placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
|
667
|
+
helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
|
668
|
+
...field
|
669
|
+
}
|
670
|
+
);
|
671
|
+
}
|
672
|
+
}
|
673
|
+
),
|
674
|
+
props.additionalInputs,
|
675
|
+
props.showRefCode && /* @__PURE__ */ React3.createElement(
|
676
|
+
Controller2,
|
677
|
+
{
|
678
|
+
control,
|
679
|
+
name: "refCode",
|
680
|
+
render: ({ field }) => {
|
681
|
+
var _a2;
|
682
|
+
return /* @__PURE__ */ React3.createElement(
|
683
|
+
Input,
|
684
|
+
{
|
685
|
+
width: "full",
|
686
|
+
label: texts == null ? void 0 : texts.refCode,
|
687
|
+
placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
688
|
+
helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
|
689
|
+
...field
|
690
|
+
}
|
691
|
+
);
|
692
|
+
}
|
693
|
+
}
|
694
|
+
),
|
695
|
+
props.showUserSource && /* @__PURE__ */ React3.createElement(
|
696
|
+
Controller2,
|
697
|
+
{
|
698
|
+
control,
|
699
|
+
name: "reference",
|
700
|
+
render: ({ field }) => {
|
701
|
+
var _a2, _b2;
|
702
|
+
return /* @__PURE__ */ React3.createElement(
|
703
|
+
Select,
|
704
|
+
{
|
705
|
+
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
706
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
|
707
|
+
isCreatable: false,
|
708
|
+
isMulti: false,
|
709
|
+
isSearchable: false,
|
710
|
+
isClearable: false,
|
711
|
+
options: props.userReferenceOptions,
|
712
|
+
onChange: (e) => {
|
713
|
+
field.onChange(e.value);
|
714
|
+
}
|
715
|
+
}
|
716
|
+
);
|
717
|
+
}
|
718
|
+
}
|
719
|
+
),
|
720
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React3.createElement(
|
721
|
+
Controller2,
|
722
|
+
{
|
723
|
+
control,
|
724
|
+
name: "terms_accepted",
|
725
|
+
render: ({ field }) => {
|
726
|
+
var _a2, _b2;
|
727
|
+
return /* @__PURE__ */ React3.createElement(
|
728
|
+
Checkbox,
|
729
|
+
{
|
730
|
+
id: "terms_accepted",
|
731
|
+
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
732
|
+
onCheckedChange: (e) => field.onChange(e),
|
733
|
+
label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React3.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React3.createElement(
|
734
|
+
"a",
|
735
|
+
{
|
736
|
+
onClick: props.onRouteToTOS,
|
737
|
+
className: "clickable-link"
|
738
|
+
},
|
739
|
+
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
740
|
+
)))
|
741
|
+
}
|
742
|
+
);
|
743
|
+
}
|
744
|
+
}
|
745
|
+
), showNewsletterOption && /* @__PURE__ */ React3.createElement(
|
746
|
+
Controller2,
|
747
|
+
{
|
748
|
+
control,
|
749
|
+
name: "newsletter_accepted",
|
750
|
+
render: ({ field }) => /* @__PURE__ */ React3.createElement(
|
720
751
|
Checkbox,
|
721
752
|
{
|
722
|
-
id: "
|
723
|
-
|
724
|
-
onCheckedChange:
|
725
|
-
label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React3.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React3.createElement(
|
726
|
-
"a",
|
727
|
-
{
|
728
|
-
onClick: props.onRouteToTOS,
|
729
|
-
className: "clickable-link"
|
730
|
-
},
|
731
|
-
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
732
|
-
)))
|
753
|
+
id: "newsletter_accepted",
|
754
|
+
label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
|
755
|
+
onCheckedChange: field.onChange
|
733
756
|
}
|
734
|
-
)
|
757
|
+
)
|
735
758
|
}
|
736
|
-
|
737
|
-
|
738
|
-
|
759
|
+
)) : null,
|
760
|
+
/* @__PURE__ */ React3.createElement(
|
761
|
+
Button,
|
762
|
+
{
|
763
|
+
className: " hawa-w-full",
|
764
|
+
type: "submit",
|
765
|
+
isLoading: props.isLoading,
|
766
|
+
disabled: props.isLoading
|
767
|
+
},
|
768
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
769
|
+
),
|
770
|
+
props.additionalButtons
|
771
|
+
)), /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white" }, /* @__PURE__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React3.createElement(
|
772
|
+
CardFooter,
|
739
773
|
{
|
740
|
-
|
741
|
-
|
742
|
-
render: ({ field }) => /* @__PURE__ */ React3.createElement(
|
743
|
-
Checkbox,
|
744
|
-
{
|
745
|
-
id: "newsletter_accepted",
|
746
|
-
label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
|
747
|
-
onCheckedChange: field.onChange
|
748
|
-
}
|
774
|
+
className: cn(
|
775
|
+
props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
|
749
776
|
)
|
750
|
-
}
|
751
|
-
)) : null,
|
752
|
-
/* @__PURE__ */ React3.createElement(
|
753
|
-
Button,
|
754
|
-
{
|
755
|
-
className: " hawa-w-full",
|
756
|
-
type: "submit",
|
757
|
-
isLoading: props.isLoading,
|
758
|
-
disabled: props.isLoading
|
759
777
|
},
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
778
|
+
/* @__PURE__ */ React3.createElement(
|
779
|
+
AuthButtons,
|
780
|
+
{
|
781
|
+
texts: thirdPartyAuthTexts,
|
782
|
+
viaGoogle: props.viaGoogle,
|
783
|
+
viaGithub: props.viaGithub,
|
784
|
+
viaTwitter: props.viaTwitter,
|
785
|
+
isGoogleLoading: props.isGoogleLoading,
|
786
|
+
isGithubLoading: props.isGithubLoading,
|
787
|
+
isTwitterLoading: props.isTwitterLoading,
|
788
|
+
handleGoogle: props.onGoogleRegister,
|
789
|
+
handleGithub: props.onGithubRegister,
|
790
|
+
handleTwitter: props.onTwitterRegister
|
791
|
+
}
|
768
792
|
)
|
769
|
-
|
770
|
-
|
771
|
-
AuthButtons,
|
772
|
-
{
|
773
|
-
texts: thirdPartyAuthTexts,
|
774
|
-
viaGoogle: props.viaGoogle,
|
775
|
-
viaGithub: props.viaGithub,
|
776
|
-
viaTwitter: props.viaTwitter,
|
777
|
-
isGoogleLoading: props.isGoogleLoading,
|
778
|
-
isGithubLoading: props.isGithubLoading,
|
779
|
-
isTwitterLoading: props.isTwitterLoading,
|
780
|
-
handleGoogle: props.onGoogleRegister,
|
781
|
-
handleGithub: props.onGithubRegister,
|
782
|
-
handleTwitter: props.onTwitterRegister
|
783
|
-
}
|
784
|
-
)
|
785
|
-
) : null));
|
793
|
+
) : null)
|
794
|
+
);
|
786
795
|
};
|
787
796
|
|
788
797
|
// blocks/auth/AppLanding.tsx
|
@@ -749,7 +749,7 @@ var Tooltip = ({
|
|
749
749
|
...contentProps,
|
750
750
|
style: {
|
751
751
|
...contentProps == null ? void 0 : contentProps.style,
|
752
|
-
maxWidth: "var(--radix-tooltip-content-available-width)
|
752
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
753
753
|
maxHeight: "var(--radix-tooltip-content-available-height)"
|
754
754
|
}
|
755
755
|
},
|
@@ -1,17 +1,17 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Input
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-M6XGGAPQ.mjs";
|
5
5
|
import {
|
6
6
|
Chip,
|
7
7
|
ScrollArea
|
8
|
-
} from "../../chunk-
|
8
|
+
} from "../../chunk-MMOEFJSP.mjs";
|
9
9
|
import {
|
10
10
|
Textarea
|
11
|
-
} from "../../chunk-
|
11
|
+
} from "../../chunk-W5I4VB5Z.mjs";
|
12
12
|
import {
|
13
13
|
Select
|
14
|
-
} from "../../chunk-
|
14
|
+
} from "../../chunk-DQHPOUHR.mjs";
|
15
15
|
import {
|
16
16
|
Button,
|
17
17
|
Card,
|
@@ -21,7 +21,7 @@ import {
|
|
21
21
|
CardHeader,
|
22
22
|
CardTitle,
|
23
23
|
cn
|
24
|
-
} from "../../chunk-
|
24
|
+
} from "../../chunk-7QEBDFLT.mjs";
|
25
25
|
|
26
26
|
// blocks/misc/LegalTexts.tsx
|
27
27
|
import React2 from "react";
|
@@ -545,7 +545,7 @@ var Tooltip = ({
|
|
545
545
|
...contentProps,
|
546
546
|
style: {
|
547
547
|
...contentProps == null ? void 0 : contentProps.style,
|
548
|
-
maxWidth: "var(--radix-tooltip-content-available-width)
|
548
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
549
549
|
maxHeight: "var(--radix-tooltip-content-available-height)"
|
550
550
|
}
|
551
551
|
},
|
@@ -2,22 +2,22 @@
|
|
2
2
|
import {
|
3
3
|
Chip,
|
4
4
|
ScrollArea
|
5
|
-
} from "../../chunk-
|
5
|
+
} from "../../chunk-MMOEFJSP.mjs";
|
6
6
|
import "../../chunk-47APBDKK.mjs";
|
7
7
|
import {
|
8
8
|
Radio
|
9
|
-
} from "../../chunk-
|
9
|
+
} from "../../chunk-DUL6C2S2.mjs";
|
10
10
|
import {
|
11
11
|
CheckMark,
|
12
12
|
UncheckMark
|
13
|
-
} from "../../chunk-
|
13
|
+
} from "../../chunk-EFWL3FFK.mjs";
|
14
14
|
import {
|
15
15
|
Button,
|
16
16
|
Card,
|
17
17
|
Skeleton,
|
18
18
|
Tooltip,
|
19
19
|
cn
|
20
|
-
} from "../../chunk-
|
20
|
+
} from "../../chunk-7QEBDFLT.mjs";
|
21
21
|
|
22
22
|
// blocks/pricing/PricingPlans.tsx
|
23
23
|
import React8 from "react";
|
@@ -443,7 +443,7 @@ var Tooltip = ({
|
|
443
443
|
...contentProps,
|
444
444
|
style: {
|
445
445
|
...contentProps == null ? void 0 : contentProps.style,
|
446
|
-
maxWidth: "var(--radix-tooltip-content-available-width)
|
446
|
+
maxWidth: "var(--radix-tooltip-content-available-width)",
|
447
447
|
maxHeight: "var(--radix-tooltip-content-available-height)"
|
448
448
|
}
|
449
449
|
},
|