@sikka/hawa 0.27.19-next → 0.27.21-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.
@@ -2668,7 +2668,7 @@ var RegisterForm = ({
2668
2668
  showNewsletterOption = false,
2669
2669
  ...props
2670
2670
  }) => {
2671
- var _a, _b, _c, _d, _e, _f;
2671
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2672
2672
  const [passwordVisible, setPasswordVisible] = useState4(false);
2673
2673
  const thirdPartyAuthTexts = {
2674
2674
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
@@ -2734,281 +2734,290 @@ var RegisterForm = ({
2734
2734
  const { handleSubmit, control, formState } = useForm2({
2735
2735
  resolver: zodResolver2(formSchema)
2736
2736
  });
2737
- return /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React7.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", null, props.showError && /* @__PURE__ */ React7.createElement(
2738
- Alert,
2739
- {
2740
- title: props.errorTitle,
2741
- text: props.errorText,
2742
- severity: "error"
2743
- }
2744
- ), /* @__PURE__ */ React7.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React7.createElement(
2745
- "form",
2737
+ return /* @__PURE__ */ React7.createElement(
2738
+ "div",
2746
2739
  {
2747
- noValidate: true,
2748
- onSubmit: handleSubmit((e) => {
2749
- if (props.onRegister) {
2750
- return props.onRegister(e);
2751
- } else {
2752
- console.log(
2753
- "Form is submitted but onRegister prop is missing"
2754
- );
2755
- }
2756
- }),
2757
- className: "hawa-flex hawa-flex-col hawa-gap-4"
2740
+ className: cn(
2741
+ "hawa-flex hawa-flex-col hawa-gap-4",
2742
+ (_g = props.classNames) == null ? void 0 : _g.root
2743
+ )
2758
2744
  },
2759
- /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
2760
- if (fld === "fullname") {
2761
- return /* @__PURE__ */ React7.createElement(
2762
- Controller2,
2763
- {
2764
- key: i,
2765
- control,
2766
- name: "fullName",
2767
- render: ({ field }) => {
2768
- var _a2, _b2, _c2;
2769
- return /* @__PURE__ */ React7.createElement(
2770
- Input,
2771
- {
2772
- width: "full",
2773
- label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
2774
- placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
2775
- helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
2776
- ...field
2777
- }
2778
- );
2779
- }
2780
- }
2781
- );
2782
- }
2783
- if (fld === "email") {
2784
- return /* @__PURE__ */ React7.createElement(
2785
- Controller2,
2786
- {
2787
- key: i,
2788
- control,
2789
- name: "email",
2790
- render: ({ field }) => {
2791
- var _a2, _b2, _c2;
2792
- return /* @__PURE__ */ React7.createElement(
2793
- Input,
2794
- {
2795
- dir: "ltr",
2796
- inputProps: {
2797
- className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
2798
- },
2799
- width: "full",
2800
- autoComplete: "email",
2801
- label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
2802
- helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
2803
- placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
2804
- ...field
2805
- }
2806
- );
2807
- }
2808
- }
2809
- );
2810
- }
2811
- if (fld === "username") {
2812
- return /* @__PURE__ */ React7.createElement(
2813
- Controller2,
2814
- {
2815
- key: i,
2816
- control,
2817
- name: "username",
2818
- render: ({ field }) => {
2819
- var _a2, _b2, _c2, _d2;
2820
- return /* @__PURE__ */ React7.createElement(
2821
- Input,
2822
- {
2823
- width: "full",
2824
- autoComplete: "username",
2825
- label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
2826
- labelProps: {
2827
- ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
2828
- },
2829
- helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
2830
- placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
2831
- ...field
2832
- }
2833
- );
2834
- }
2835
- }
2836
- );
2837
- }
2838
- })),
2839
- /* @__PURE__ */ React7.createElement(
2840
- Controller2,
2745
+ /* @__PURE__ */ React7.createElement(Card, { dir: props.direction, className: cn((_h = props.classNames) == null ? void 0 : _h.card) }, /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", null, props.showError && /* @__PURE__ */ React7.createElement(
2746
+ Alert,
2841
2747
  {
2842
- control,
2843
- name: "password",
2844
- render: ({ field }) => {
2845
- var _a2, _b2, _c2;
2846
- return /* @__PURE__ */ React7.createElement(
2847
- Input,
2848
- {
2849
- width: "full",
2850
- type: passwordVisible ? "text" : "password",
2851
- endIcon: /* @__PURE__ */ React7.createElement(
2852
- "div",
2853
- {
2854
- className: "hawa-cursor-pointer",
2855
- onClick: () => setPasswordVisible(!passwordVisible)
2856
- },
2857
- passwordVisible ? /* @__PURE__ */ React7.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React7.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
2858
- " "
2859
- ),
2860
- autoComplete: "new-password",
2861
- label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
2862
- placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
2863
- helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
2864
- ...field
2865
- }
2866
- );
2867
- }
2748
+ title: props.errorTitle,
2749
+ text: props.errorText,
2750
+ severity: "error"
2868
2751
  }
2869
- ),
2870
- /* @__PURE__ */ React7.createElement(
2871
- Controller2,
2752
+ ), /* @__PURE__ */ React7.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React7.createElement(
2753
+ "form",
2872
2754
  {
2873
- control,
2874
- name: "confirm_password",
2875
- render: ({ field }) => {
2876
- var _a2, _b2, _c2;
2755
+ noValidate: true,
2756
+ onSubmit: handleSubmit((e) => {
2757
+ if (props.onRegister) {
2758
+ return props.onRegister(e);
2759
+ } else {
2760
+ console.log(
2761
+ "Form is submitted but onRegister prop is missing"
2762
+ );
2763
+ }
2764
+ }),
2765
+ className: "hawa-flex hawa-flex-col hawa-gap-4"
2766
+ },
2767
+ /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
2768
+ if (fld === "fullname") {
2877
2769
  return /* @__PURE__ */ React7.createElement(
2878
- Input,
2770
+ Controller2,
2879
2771
  {
2880
- width: "full",
2881
- type: "password",
2882
- autoComplete: "new-password",
2883
- label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
2884
- placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
2885
- helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
2886
- ...field
2772
+ key: i,
2773
+ control,
2774
+ name: "fullName",
2775
+ render: ({ field }) => {
2776
+ var _a2, _b2, _c2;
2777
+ return /* @__PURE__ */ React7.createElement(
2778
+ Input,
2779
+ {
2780
+ width: "full",
2781
+ label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
2782
+ placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
2783
+ helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
2784
+ ...field
2785
+ }
2786
+ );
2787
+ }
2887
2788
  }
2888
2789
  );
2889
2790
  }
2890
- }
2891
- ),
2892
- props.additionalInputs,
2893
- props.showRefCode && /* @__PURE__ */ React7.createElement(
2894
- Controller2,
2895
- {
2896
- control,
2897
- name: "refCode",
2898
- render: ({ field }) => {
2899
- var _a2;
2791
+ if (fld === "email") {
2900
2792
  return /* @__PURE__ */ React7.createElement(
2901
- Input,
2793
+ Controller2,
2902
2794
  {
2903
- width: "full",
2904
- label: texts == null ? void 0 : texts.refCode,
2905
- placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
2906
- helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
2907
- ...field
2795
+ key: i,
2796
+ control,
2797
+ name: "email",
2798
+ render: ({ field }) => {
2799
+ var _a2, _b2, _c2;
2800
+ return /* @__PURE__ */ React7.createElement(
2801
+ Input,
2802
+ {
2803
+ dir: "ltr",
2804
+ inputProps: {
2805
+ className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
2806
+ },
2807
+ width: "full",
2808
+ autoComplete: "email",
2809
+ label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
2810
+ helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
2811
+ placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
2812
+ ...field
2813
+ }
2814
+ );
2815
+ }
2908
2816
  }
2909
2817
  );
2910
2818
  }
2911
- }
2912
- ),
2913
- props.showUserSource && /* @__PURE__ */ React7.createElement(
2914
- Controller2,
2915
- {
2916
- control,
2917
- name: "reference",
2918
- render: ({ field }) => {
2919
- var _a2, _b2;
2819
+ if (fld === "username") {
2920
2820
  return /* @__PURE__ */ React7.createElement(
2921
- Select,
2821
+ Controller2,
2922
2822
  {
2923
- label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
2924
- placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
2925
- isCreatable: false,
2926
- isMulti: false,
2927
- isSearchable: false,
2928
- isClearable: false,
2929
- options: props.userReferenceOptions,
2930
- onChange: (e) => {
2931
- field.onChange(e.value);
2823
+ key: i,
2824
+ control,
2825
+ name: "username",
2826
+ render: ({ field }) => {
2827
+ var _a2, _b2, _c2, _d2;
2828
+ return /* @__PURE__ */ React7.createElement(
2829
+ Input,
2830
+ {
2831
+ width: "full",
2832
+ autoComplete: "username",
2833
+ label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
2834
+ labelProps: {
2835
+ ...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
2836
+ },
2837
+ helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
2838
+ placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
2839
+ ...field
2840
+ }
2841
+ );
2932
2842
  }
2933
2843
  }
2934
2844
  );
2935
2845
  }
2936
- }
2937
- ),
2938
- showTermsOption || showNewsletterOption ? /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React7.createElement(
2939
- Controller2,
2940
- {
2941
- control,
2942
- name: "terms_accepted",
2943
- render: ({ field }) => {
2944
- var _a2, _b2;
2945
- return /* @__PURE__ */ React7.createElement(
2846
+ })),
2847
+ /* @__PURE__ */ React7.createElement(
2848
+ Controller2,
2849
+ {
2850
+ control,
2851
+ name: "password",
2852
+ render: ({ field }) => {
2853
+ var _a2, _b2, _c2;
2854
+ return /* @__PURE__ */ React7.createElement(
2855
+ Input,
2856
+ {
2857
+ width: "full",
2858
+ type: passwordVisible ? "text" : "password",
2859
+ endIcon: /* @__PURE__ */ React7.createElement(
2860
+ "div",
2861
+ {
2862
+ className: "hawa-cursor-pointer",
2863
+ onClick: () => setPasswordVisible(!passwordVisible)
2864
+ },
2865
+ passwordVisible ? /* @__PURE__ */ React7.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React7.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
2866
+ " "
2867
+ ),
2868
+ autoComplete: "new-password",
2869
+ label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
2870
+ placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
2871
+ helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
2872
+ ...field
2873
+ }
2874
+ );
2875
+ }
2876
+ }
2877
+ ),
2878
+ /* @__PURE__ */ React7.createElement(
2879
+ Controller2,
2880
+ {
2881
+ control,
2882
+ name: "confirm_password",
2883
+ render: ({ field }) => {
2884
+ var _a2, _b2, _c2;
2885
+ return /* @__PURE__ */ React7.createElement(
2886
+ Input,
2887
+ {
2888
+ width: "full",
2889
+ type: "password",
2890
+ autoComplete: "new-password",
2891
+ label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
2892
+ placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
2893
+ helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
2894
+ ...field
2895
+ }
2896
+ );
2897
+ }
2898
+ }
2899
+ ),
2900
+ props.additionalInputs,
2901
+ props.showRefCode && /* @__PURE__ */ React7.createElement(
2902
+ Controller2,
2903
+ {
2904
+ control,
2905
+ name: "refCode",
2906
+ render: ({ field }) => {
2907
+ var _a2;
2908
+ return /* @__PURE__ */ React7.createElement(
2909
+ Input,
2910
+ {
2911
+ width: "full",
2912
+ label: texts == null ? void 0 : texts.refCode,
2913
+ placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
2914
+ helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
2915
+ ...field
2916
+ }
2917
+ );
2918
+ }
2919
+ }
2920
+ ),
2921
+ props.showUserSource && /* @__PURE__ */ React7.createElement(
2922
+ Controller2,
2923
+ {
2924
+ control,
2925
+ name: "reference",
2926
+ render: ({ field }) => {
2927
+ var _a2, _b2;
2928
+ return /* @__PURE__ */ React7.createElement(
2929
+ Select,
2930
+ {
2931
+ label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
2932
+ placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
2933
+ isCreatable: false,
2934
+ isMulti: false,
2935
+ isSearchable: false,
2936
+ isClearable: false,
2937
+ options: props.userReferenceOptions,
2938
+ onChange: (e) => {
2939
+ field.onChange(e.value);
2940
+ }
2941
+ }
2942
+ );
2943
+ }
2944
+ }
2945
+ ),
2946
+ showTermsOption || showNewsletterOption ? /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React7.createElement(
2947
+ Controller2,
2948
+ {
2949
+ control,
2950
+ name: "terms_accepted",
2951
+ render: ({ field }) => {
2952
+ var _a2, _b2;
2953
+ return /* @__PURE__ */ React7.createElement(
2954
+ Checkbox,
2955
+ {
2956
+ id: "terms_accepted",
2957
+ helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
2958
+ onCheckedChange: (e) => field.onChange(e),
2959
+ label: /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React7.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React7.createElement(
2960
+ "a",
2961
+ {
2962
+ onClick: props.onRouteToTOS,
2963
+ className: "clickable-link"
2964
+ },
2965
+ (texts == null ? void 0 : texts.termsText) || "Terms of Service"
2966
+ )))
2967
+ }
2968
+ );
2969
+ }
2970
+ }
2971
+ ), showNewsletterOption && /* @__PURE__ */ React7.createElement(
2972
+ Controller2,
2973
+ {
2974
+ control,
2975
+ name: "newsletter_accepted",
2976
+ render: ({ field }) => /* @__PURE__ */ React7.createElement(
2946
2977
  Checkbox,
2947
2978
  {
2948
- id: "terms_accepted",
2949
- helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
2950
- onCheckedChange: (e) => field.onChange(e),
2951
- label: /* @__PURE__ */ React7.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5" }, /* @__PURE__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.iAcceptText) || "I accept the "), " ", /* @__PURE__ */ React7.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React7.createElement(
2952
- "a",
2953
- {
2954
- onClick: props.onRouteToTOS,
2955
- className: "clickable-link"
2956
- },
2957
- (texts == null ? void 0 : texts.termsText) || "Terms of Service"
2958
- )))
2979
+ id: "newsletter_accepted",
2980
+ label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
2981
+ onCheckedChange: field.onChange
2959
2982
  }
2960
- );
2983
+ )
2961
2984
  }
2962
- }
2963
- ), showNewsletterOption && /* @__PURE__ */ React7.createElement(
2964
- Controller2,
2985
+ )) : null,
2986
+ /* @__PURE__ */ React7.createElement(
2987
+ Button,
2988
+ {
2989
+ className: " hawa-w-full",
2990
+ type: "submit",
2991
+ isLoading: props.isLoading,
2992
+ disabled: props.isLoading
2993
+ },
2994
+ (texts == null ? void 0 : texts.registerText) || "Register"
2995
+ ),
2996
+ props.additionalButtons
2997
+ )), /* @__PURE__ */ React7.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__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React7.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React7.createElement(
2998
+ CardFooter,
2965
2999
  {
2966
- control,
2967
- name: "newsletter_accepted",
2968
- render: ({ field }) => /* @__PURE__ */ React7.createElement(
2969
- Checkbox,
2970
- {
2971
- id: "newsletter_accepted",
2972
- label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
2973
- onCheckedChange: field.onChange
2974
- }
3000
+ className: cn(
3001
+ props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
2975
3002
  )
2976
- }
2977
- )) : null,
2978
- /* @__PURE__ */ React7.createElement(
2979
- Button,
2980
- {
2981
- className: " hawa-w-full",
2982
- type: "submit",
2983
- isLoading: props.isLoading,
2984
- disabled: props.isLoading
2985
3003
  },
2986
- (texts == null ? void 0 : texts.registerText) || "Register"
2987
- ),
2988
- props.additionalButtons
2989
- )), /* @__PURE__ */ React7.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__ */ React7.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React7.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React7.createElement(
2990
- CardFooter,
2991
- {
2992
- className: cn(
2993
- props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2"
3004
+ /* @__PURE__ */ React7.createElement(
3005
+ AuthButtons,
3006
+ {
3007
+ texts: thirdPartyAuthTexts,
3008
+ viaGoogle: props.viaGoogle,
3009
+ viaGithub: props.viaGithub,
3010
+ viaTwitter: props.viaTwitter,
3011
+ isGoogleLoading: props.isGoogleLoading,
3012
+ isGithubLoading: props.isGithubLoading,
3013
+ isTwitterLoading: props.isTwitterLoading,
3014
+ handleGoogle: props.onGoogleRegister,
3015
+ handleGithub: props.onGithubRegister,
3016
+ handleTwitter: props.onTwitterRegister
3017
+ }
2994
3018
  )
2995
- },
2996
- /* @__PURE__ */ React7.createElement(
2997
- AuthButtons,
2998
- {
2999
- texts: thirdPartyAuthTexts,
3000
- viaGoogle: props.viaGoogle,
3001
- viaGithub: props.viaGithub,
3002
- viaTwitter: props.viaTwitter,
3003
- isGoogleLoading: props.isGoogleLoading,
3004
- isGithubLoading: props.isGithubLoading,
3005
- isTwitterLoading: props.isTwitterLoading,
3006
- handleGoogle: props.onGoogleRegister,
3007
- handleGithub: props.onGithubRegister,
3008
- handleTwitter: props.onTwitterRegister
3009
- }
3010
- )
3011
- ) : null));
3019
+ ) : null)
3020
+ );
3012
3021
  };
3013
3022
 
3014
3023
  // blocks/auth/AppLanding.tsx
@@ -116,6 +116,11 @@ type RegisterFormTypes = {
116
116
  usernameOptions?: {
117
117
  label?: LabelProps;
118
118
  };
119
+ classNames?: {
120
+ root?: string;
121
+ form?: string;
122
+ card?: string;
123
+ };
119
124
  };
120
125
  declare const RegisterForm: FC<RegisterFormTypes>;
121
126
 
@@ -348,14 +353,14 @@ type ContactFormProps = {
348
353
  formId?: string;
349
354
  formAutoComplete?: "on" | "off";
350
355
  size?: "sm" | "default";
351
- onSubmit?: (e: ContactFormData) => void;
356
+ onSubmit: (e: ContactFormData) => void;
357
+ customFields?: CustomField[];
352
358
  texts?: {
353
359
  submit: string;
354
360
  name: TextInputType;
355
361
  email: TextInputType;
356
362
  message: TextInputType;
357
363
  };
358
- customFields?: CustomField[];
359
364
  };
360
365
  declare const ContactForm: React__default.FC<ContactFormProps>;
361
366
 
@@ -116,6 +116,11 @@ type RegisterFormTypes = {
116
116
  usernameOptions?: {
117
117
  label?: LabelProps;
118
118
  };
119
+ classNames?: {
120
+ root?: string;
121
+ form?: string;
122
+ card?: string;
123
+ };
119
124
  };
120
125
  declare const RegisterForm: FC<RegisterFormTypes>;
121
126
 
@@ -348,14 +353,14 @@ type ContactFormProps = {
348
353
  formId?: string;
349
354
  formAutoComplete?: "on" | "off";
350
355
  size?: "sm" | "default";
351
- onSubmit?: (e: ContactFormData) => void;
356
+ onSubmit: (e: ContactFormData) => void;
357
+ customFields?: CustomField[];
352
358
  texts?: {
353
359
  submit: string;
354
360
  name: TextInputType;
355
361
  email: TextInputType;
356
362
  message: TextInputType;
357
363
  };
358
- customFields?: CustomField[];
359
364
  };
360
365
  declare const ContactForm: React__default.FC<ContactFormProps>;
361
366