@insforge/react 0.1.7 → 0.2.0

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/forms.mjs CHANGED
@@ -654,72 +654,129 @@ function SignInForm({
654
654
  signUpUrl = "/sign-up",
655
655
  dividerText = "or"
656
656
  }) {
657
- return /* @__PURE__ */ jsxs(AuthContainer, { appearance, children: [
658
- /* @__PURE__ */ jsx(AuthHeader, { title, subtitle }),
659
- /* @__PURE__ */ jsx(AuthErrorBanner, { error: error || "" }),
660
- /* @__PURE__ */ jsxs(
661
- "form",
662
- {
663
- onSubmit,
664
- noValidate: true,
665
- className: "flex flex-col items-stretch justify-center gap-6",
666
- children: [
667
- /* @__PURE__ */ jsx(
668
- AuthFormField,
669
- {
670
- id: "email",
671
- type: "email",
672
- label: emailLabel,
673
- placeholder: emailPlaceholder,
674
- value: email,
675
- onChange: (e) => onEmailChange(e.target.value),
676
- required: true,
677
- autoComplete: "email"
657
+ return /* @__PURE__ */ jsxs(
658
+ AuthContainer,
659
+ {
660
+ appearance: {
661
+ containerClassName: appearance.container,
662
+ cardClassName: appearance.card
663
+ },
664
+ children: [
665
+ /* @__PURE__ */ jsx(
666
+ AuthHeader,
667
+ {
668
+ title,
669
+ subtitle,
670
+ appearance: {
671
+ containerClassName: appearance.header?.container,
672
+ titleClassName: appearance.header?.title,
673
+ subtitleClassName: appearance.header?.subtitle
678
674
  }
679
- ),
675
+ }
676
+ ),
677
+ /* @__PURE__ */ jsx(
678
+ AuthErrorBanner,
679
+ {
680
+ error: error || "",
681
+ className: appearance.errorBanner
682
+ }
683
+ ),
684
+ /* @__PURE__ */ jsxs(
685
+ "form",
686
+ {
687
+ onSubmit,
688
+ noValidate: true,
689
+ className: appearance.form?.container || "flex flex-col items-stretch justify-center gap-6",
690
+ children: [
691
+ /* @__PURE__ */ jsx(
692
+ AuthFormField,
693
+ {
694
+ id: "email",
695
+ type: "email",
696
+ label: emailLabel,
697
+ placeholder: emailPlaceholder,
698
+ value: email,
699
+ onChange: (e) => onEmailChange(e.target.value),
700
+ required: true,
701
+ autoComplete: "email",
702
+ appearance: {
703
+ containerClassName: appearance.form?.emailField?.container,
704
+ labelClassName: appearance.form?.emailField?.label,
705
+ inputClassName: appearance.form?.emailField?.input
706
+ }
707
+ }
708
+ ),
709
+ /* @__PURE__ */ jsx(
710
+ AuthPasswordField,
711
+ {
712
+ id: "password",
713
+ label: passwordLabel,
714
+ placeholder: passwordPlaceholder,
715
+ value: password,
716
+ onChange: (e) => onPasswordChange(e.target.value),
717
+ required: true,
718
+ autoComplete: "current-password",
719
+ emailAuthConfig,
720
+ forgotPasswordLink: forgotPasswordUrl ? {
721
+ href: forgotPasswordUrl,
722
+ text: forgotPasswordText
723
+ } : void 0,
724
+ appearance: {
725
+ containerClassName: appearance.form?.passwordField?.container,
726
+ labelClassName: appearance.form?.passwordField?.label,
727
+ inputClassName: appearance.form?.passwordField?.input
728
+ }
729
+ }
730
+ ),
731
+ /* @__PURE__ */ jsx(
732
+ AuthSubmitButton,
733
+ {
734
+ isLoading: loading,
735
+ disabled: loading || oauthLoading !== null,
736
+ className: appearance.button,
737
+ children: loading ? loadingButtonText : submitButtonText
738
+ }
739
+ )
740
+ ]
741
+ }
742
+ ),
743
+ /* @__PURE__ */ jsx(
744
+ AuthLink,
745
+ {
746
+ text: signUpText,
747
+ linkText: signUpLinkText,
748
+ href: signUpUrl,
749
+ appearance: {
750
+ containerClassName: appearance.link?.container,
751
+ linkClassName: appearance.link?.link
752
+ }
753
+ }
754
+ ),
755
+ availableProviders.length > 0 && onOAuthClick && /* @__PURE__ */ jsxs(Fragment, { children: [
680
756
  /* @__PURE__ */ jsx(
681
- AuthPasswordField,
757
+ AuthDivider,
682
758
  {
683
- id: "password",
684
- label: passwordLabel,
685
- placeholder: passwordPlaceholder,
686
- value: password,
687
- onChange: (e) => onPasswordChange(e.target.value),
688
- required: true,
689
- autoComplete: "current-password",
690
- emailAuthConfig,
691
- forgotPasswordLink: forgotPasswordUrl ? {
692
- href: forgotPasswordUrl,
693
- text: forgotPasswordText
694
- } : void 0
759
+ text: dividerText,
760
+ className: appearance.divider
695
761
  }
696
762
  ),
697
763
  /* @__PURE__ */ jsx(
698
- AuthSubmitButton,
764
+ AuthOAuthProviders,
699
765
  {
700
- isLoading: loading,
766
+ providers: availableProviders,
767
+ onClick: onOAuthClick,
701
768
  disabled: loading || oauthLoading !== null,
702
- className: appearance.buttonClassName,
703
- children: loading ? loadingButtonText : submitButtonText
769
+ loading: oauthLoading,
770
+ appearance: {
771
+ containerClassName: appearance.oauth?.container,
772
+ buttonClassName: appearance.oauth?.button
773
+ }
704
774
  }
705
775
  )
706
- ]
707
- }
708
- ),
709
- /* @__PURE__ */ jsx(AuthLink, { text: signUpText, linkText: signUpLinkText, href: signUpUrl }),
710
- availableProviders.length > 0 && onOAuthClick && /* @__PURE__ */ jsxs(Fragment, { children: [
711
- /* @__PURE__ */ jsx(AuthDivider, { text: dividerText }),
712
- /* @__PURE__ */ jsx(
713
- AuthOAuthProviders,
714
- {
715
- providers: availableProviders,
716
- onClick: onOAuthClick,
717
- disabled: loading || oauthLoading !== null,
718
- loading: oauthLoading
719
- }
720
- )
721
- ] })
722
- ] });
776
+ ] })
777
+ ]
778
+ }
779
+ );
723
780
  }
724
781
  function SignUpForm({
725
782
  email,
@@ -747,70 +804,127 @@ function SignUpForm({
747
804
  signInUrl = "/sign-in",
748
805
  dividerText = "or"
749
806
  }) {
750
- return /* @__PURE__ */ jsxs(AuthContainer, { appearance, children: [
751
- /* @__PURE__ */ jsx(AuthHeader, { title, subtitle }),
752
- /* @__PURE__ */ jsx(AuthErrorBanner, { error: error || "" }),
753
- /* @__PURE__ */ jsxs(
754
- "form",
755
- {
756
- onSubmit,
757
- noValidate: true,
758
- className: "flex flex-col items-stretch justify-center gap-6",
759
- children: [
760
- /* @__PURE__ */ jsx(
761
- AuthFormField,
762
- {
763
- id: "email",
764
- type: "email",
765
- label: emailLabel,
766
- placeholder: emailPlaceholder,
767
- value: email,
768
- onChange: (e) => onEmailChange(e.target.value),
769
- required: true,
770
- autoComplete: "email"
807
+ return /* @__PURE__ */ jsxs(
808
+ AuthContainer,
809
+ {
810
+ appearance: {
811
+ containerClassName: appearance.container,
812
+ cardClassName: appearance.card
813
+ },
814
+ children: [
815
+ /* @__PURE__ */ jsx(
816
+ AuthHeader,
817
+ {
818
+ title,
819
+ subtitle,
820
+ appearance: {
821
+ containerClassName: appearance.header?.container,
822
+ titleClassName: appearance.header?.title,
823
+ subtitleClassName: appearance.header?.subtitle
771
824
  }
772
- ),
825
+ }
826
+ ),
827
+ /* @__PURE__ */ jsx(
828
+ AuthErrorBanner,
829
+ {
830
+ error: error || "",
831
+ className: appearance.errorBanner
832
+ }
833
+ ),
834
+ /* @__PURE__ */ jsxs(
835
+ "form",
836
+ {
837
+ onSubmit,
838
+ noValidate: true,
839
+ className: appearance.form?.container || "flex flex-col items-stretch justify-center gap-6",
840
+ children: [
841
+ /* @__PURE__ */ jsx(
842
+ AuthFormField,
843
+ {
844
+ id: "email",
845
+ type: "email",
846
+ label: emailLabel,
847
+ placeholder: emailPlaceholder,
848
+ value: email,
849
+ onChange: (e) => onEmailChange(e.target.value),
850
+ required: true,
851
+ autoComplete: "email",
852
+ appearance: {
853
+ containerClassName: appearance.form?.emailField?.container,
854
+ labelClassName: appearance.form?.emailField?.label,
855
+ inputClassName: appearance.form?.emailField?.input
856
+ }
857
+ }
858
+ ),
859
+ /* @__PURE__ */ jsx(
860
+ AuthPasswordField,
861
+ {
862
+ id: "password",
863
+ label: passwordLabel,
864
+ placeholder: passwordPlaceholder,
865
+ value: password,
866
+ onChange: (e) => onPasswordChange(e.target.value),
867
+ required: true,
868
+ minLength: emailAuthConfig.email.passwordMinLength,
869
+ autoComplete: "new-password",
870
+ showStrengthIndicator: true,
871
+ emailAuthConfig,
872
+ appearance: {
873
+ containerClassName: appearance.form?.passwordField?.container,
874
+ labelClassName: appearance.form?.passwordField?.label,
875
+ inputClassName: appearance.form?.passwordField?.input
876
+ }
877
+ }
878
+ ),
879
+ /* @__PURE__ */ jsx(
880
+ AuthSubmitButton,
881
+ {
882
+ isLoading: loading,
883
+ disabled: loading || oauthLoading !== null,
884
+ className: appearance.button,
885
+ children: loading ? loadingButtonText : submitButtonText
886
+ }
887
+ )
888
+ ]
889
+ }
890
+ ),
891
+ /* @__PURE__ */ jsx(
892
+ AuthLink,
893
+ {
894
+ text: signInText,
895
+ linkText: signInLinkText,
896
+ href: signInUrl,
897
+ appearance: {
898
+ containerClassName: appearance.link?.container,
899
+ linkClassName: appearance.link?.link
900
+ }
901
+ }
902
+ ),
903
+ availableProviders.length > 0 && onOAuthClick && /* @__PURE__ */ jsxs(Fragment, { children: [
773
904
  /* @__PURE__ */ jsx(
774
- AuthPasswordField,
905
+ AuthDivider,
775
906
  {
776
- id: "password",
777
- label: passwordLabel,
778
- placeholder: passwordPlaceholder,
779
- value: password,
780
- onChange: (e) => onPasswordChange(e.target.value),
781
- required: true,
782
- minLength: emailAuthConfig.email.passwordMinLength,
783
- autoComplete: "new-password",
784
- showStrengthIndicator: true,
785
- emailAuthConfig
907
+ text: dividerText,
908
+ className: appearance.divider
786
909
  }
787
910
  ),
788
911
  /* @__PURE__ */ jsx(
789
- AuthSubmitButton,
912
+ AuthOAuthProviders,
790
913
  {
791
- isLoading: loading,
914
+ providers: availableProviders,
915
+ onClick: onOAuthClick,
792
916
  disabled: loading || oauthLoading !== null,
793
- className: appearance.buttonClassName,
794
- children: loading ? loadingButtonText : submitButtonText
917
+ loading: oauthLoading,
918
+ appearance: {
919
+ containerClassName: appearance.oauth?.container,
920
+ buttonClassName: appearance.oauth?.button
921
+ }
795
922
  }
796
923
  )
797
- ]
798
- }
799
- ),
800
- /* @__PURE__ */ jsx(AuthLink, { text: signInText, linkText: signInLinkText, href: signInUrl }),
801
- availableProviders.length > 0 && onOAuthClick && /* @__PURE__ */ jsxs(Fragment, { children: [
802
- /* @__PURE__ */ jsx(AuthDivider, { text: dividerText }),
803
- /* @__PURE__ */ jsx(
804
- AuthOAuthProviders,
805
- {
806
- providers: availableProviders,
807
- onClick: onOAuthClick,
808
- disabled: loading || oauthLoading !== null,
809
- loading: oauthLoading
810
- }
811
- )
812
- ] })
813
- ] });
924
+ ] })
925
+ ]
926
+ }
927
+ );
814
928
  }
815
929
  function ForgotPasswordForm({
816
930
  email,
@@ -832,57 +946,101 @@ function ForgotPasswordForm({
832
946
  successMessage
833
947
  }) {
834
948
  if (success) {
835
- return /* @__PURE__ */ jsx(AuthContainer, { appearance, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4", children: [
836
- /* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center", children: /* @__PURE__ */ jsx("svg", { className: "w-8 h-8 text-green-600 dark:text-green-400", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M5 13l4 4L19 7" }) }) }),
837
- /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold text-black dark:text-white text-center", children: successTitle }),
838
- /* @__PURE__ */ jsx("p", { className: "text-sm text-neutral-600 dark:text-neutral-400 text-center", children: successMessage || `We've sent a password reset link to ${email}. Please check your email and follow the instructions.` }),
839
- /* @__PURE__ */ jsx("a", { href: backToSignInUrl, className: "mt-4 text-black dark:text-white font-medium", children: "Back to Sign In" })
840
- ] }) });
841
- }
842
- return /* @__PURE__ */ jsxs(AuthContainer, { appearance, children: [
843
- /* @__PURE__ */ jsx(AuthHeader, { title, subtitle }),
844
- /* @__PURE__ */ jsx(AuthErrorBanner, { error: error || "" }),
845
- /* @__PURE__ */ jsxs(
846
- "form",
949
+ return /* @__PURE__ */ jsx(
950
+ AuthContainer,
847
951
  {
848
- onSubmit,
849
- noValidate: true,
850
- className: "flex flex-col items-stretch justify-center gap-6",
851
- children: [
852
- /* @__PURE__ */ jsx(
853
- AuthFormField,
854
- {
855
- id: "email",
856
- type: "email",
857
- label: emailLabel,
858
- placeholder: emailPlaceholder,
859
- value: email,
860
- onChange: (e) => onEmailChange(e.target.value),
861
- required: true,
862
- autoComplete: "email"
952
+ appearance: {
953
+ containerClassName: appearance.container,
954
+ cardClassName: appearance.card
955
+ },
956
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4", children: [
957
+ /* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center", children: /* @__PURE__ */ jsx("svg", { className: "w-8 h-8 text-green-600 dark:text-green-400", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M5 13l4 4L19 7" }) }) }),
958
+ /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold text-black dark:text-white text-center", children: successTitle }),
959
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-neutral-600 dark:text-neutral-400 text-center", children: successMessage || `We've sent a password reset link to ${email}. Please check your email and follow the instructions.` }),
960
+ /* @__PURE__ */ jsx("a", { href: backToSignInUrl, className: "mt-4 text-black dark:text-white font-medium", children: "Back to Sign In" })
961
+ ] })
962
+ }
963
+ );
964
+ }
965
+ return /* @__PURE__ */ jsxs(
966
+ AuthContainer,
967
+ {
968
+ appearance: {
969
+ containerClassName: appearance.container,
970
+ cardClassName: appearance.card
971
+ },
972
+ children: [
973
+ /* @__PURE__ */ jsx(
974
+ AuthHeader,
975
+ {
976
+ title,
977
+ subtitle,
978
+ appearance: {
979
+ containerClassName: appearance.header?.container,
980
+ titleClassName: appearance.header?.title,
981
+ subtitleClassName: appearance.header?.subtitle
863
982
  }
864
- ),
865
- /* @__PURE__ */ jsx(
866
- AuthSubmitButton,
867
- {
868
- isLoading: loading,
869
- disabled: loading,
870
- className: appearance.buttonClassName,
871
- children: loading ? loadingButtonText : submitButtonText
983
+ }
984
+ ),
985
+ /* @__PURE__ */ jsx(
986
+ AuthErrorBanner,
987
+ {
988
+ error: error || "",
989
+ className: appearance.errorBanner
990
+ }
991
+ ),
992
+ /* @__PURE__ */ jsxs(
993
+ "form",
994
+ {
995
+ onSubmit,
996
+ noValidate: true,
997
+ className: appearance.form?.container || "flex flex-col items-stretch justify-center gap-6",
998
+ children: [
999
+ /* @__PURE__ */ jsx(
1000
+ AuthFormField,
1001
+ {
1002
+ id: "email",
1003
+ type: "email",
1004
+ label: emailLabel,
1005
+ placeholder: emailPlaceholder,
1006
+ value: email,
1007
+ onChange: (e) => onEmailChange(e.target.value),
1008
+ required: true,
1009
+ autoComplete: "email",
1010
+ appearance: {
1011
+ containerClassName: appearance.form?.emailField?.container,
1012
+ labelClassName: appearance.form?.emailField?.label,
1013
+ inputClassName: appearance.form?.emailField?.input
1014
+ }
1015
+ }
1016
+ ),
1017
+ /* @__PURE__ */ jsx(
1018
+ AuthSubmitButton,
1019
+ {
1020
+ isLoading: loading,
1021
+ disabled: loading,
1022
+ className: appearance.button,
1023
+ children: loading ? loadingButtonText : submitButtonText
1024
+ }
1025
+ )
1026
+ ]
1027
+ }
1028
+ ),
1029
+ /* @__PURE__ */ jsx(
1030
+ AuthLink,
1031
+ {
1032
+ text: backToSignInText,
1033
+ linkText: "Back to Sign In",
1034
+ href: backToSignInUrl,
1035
+ appearance: {
1036
+ containerClassName: appearance.link?.container,
1037
+ linkClassName: appearance.link?.link
872
1038
  }
873
- )
874
- ]
875
- }
876
- ),
877
- /* @__PURE__ */ jsx(
878
- AuthLink,
879
- {
880
- text: backToSignInText,
881
- linkText: "Back to Sign In",
882
- href: backToSignInUrl
883
- }
884
- )
885
- ] });
1039
+ }
1040
+ )
1041
+ ]
1042
+ }
1043
+ );
886
1044
  }
887
1045
  function ResetPasswordForm({
888
1046
  newPassword,
@@ -905,63 +1063,99 @@ function ResetPasswordForm({
905
1063
  backToSignInText = "",
906
1064
  backToSignInUrl = "/sign-in"
907
1065
  }) {
908
- return /* @__PURE__ */ jsxs(AuthContainer, { appearance, children: [
909
- /* @__PURE__ */ jsx(AuthHeader, { title, subtitle }),
910
- /* @__PURE__ */ jsx(AuthErrorBanner, { error: error || "" }),
911
- /* @__PURE__ */ jsxs(
912
- "form",
913
- {
914
- onSubmit,
915
- noValidate: true,
916
- className: "flex flex-col items-stretch justify-center gap-6",
917
- children: [
918
- /* @__PURE__ */ jsx(
919
- AuthPasswordField,
920
- {
921
- id: "newPassword",
922
- label: newPasswordLabel,
923
- placeholder: newPasswordPlaceholder,
924
- value: newPassword,
925
- onChange: (e) => onNewPasswordChange(e.target.value),
926
- required: true,
927
- autoComplete: "new-password",
928
- showStrengthIndicator: true,
929
- emailAuthConfig
930
- }
931
- ),
932
- /* @__PURE__ */ jsx(
933
- AuthPasswordField,
934
- {
935
- id: "confirmPassword",
936
- label: confirmPasswordLabel,
937
- placeholder: confirmPasswordPlaceholder,
938
- value: confirmPassword,
939
- onChange: (e) => onConfirmPasswordChange(e.target.value),
940
- required: true,
941
- autoComplete: "new-password",
942
- emailAuthConfig
943
- }
944
- ),
945
- /* @__PURE__ */ jsx(
946
- AuthSubmitButton,
947
- {
948
- isLoading: loading,
949
- disabled: loading,
950
- className: appearance.buttonClassName,
951
- children: loading ? loadingButtonText : submitButtonText
1066
+ return /* @__PURE__ */ jsxs(
1067
+ AuthContainer,
1068
+ {
1069
+ appearance: {
1070
+ containerClassName: appearance.container,
1071
+ cardClassName: appearance.card
1072
+ },
1073
+ children: [
1074
+ /* @__PURE__ */ jsx(
1075
+ AuthHeader,
1076
+ {
1077
+ title,
1078
+ subtitle,
1079
+ appearance: {
1080
+ containerClassName: appearance.header?.container,
1081
+ titleClassName: appearance.header?.title,
1082
+ subtitleClassName: appearance.header?.subtitle
952
1083
  }
953
- )
954
- ]
955
- }
956
- ),
957
- /* @__PURE__ */ jsxs("p", { className: "text-center text-sm text-gray-600 dark:text-gray-400", children: [
958
- backToSignInText && /* @__PURE__ */ jsxs("span", { children: [
959
- backToSignInText,
960
- " "
961
- ] }),
962
- /* @__PURE__ */ jsx("a", { href: backToSignInUrl, className: "text-black dark:text-white font-medium", children: "Back to Sign In" })
963
- ] })
964
- ] });
1084
+ }
1085
+ ),
1086
+ /* @__PURE__ */ jsx(
1087
+ AuthErrorBanner,
1088
+ {
1089
+ error: error || "",
1090
+ className: appearance.errorBanner
1091
+ }
1092
+ ),
1093
+ /* @__PURE__ */ jsxs(
1094
+ "form",
1095
+ {
1096
+ onSubmit,
1097
+ noValidate: true,
1098
+ className: appearance.form?.container || "flex flex-col items-stretch justify-center gap-6",
1099
+ children: [
1100
+ /* @__PURE__ */ jsx(
1101
+ AuthPasswordField,
1102
+ {
1103
+ id: "newPassword",
1104
+ label: newPasswordLabel,
1105
+ placeholder: newPasswordPlaceholder,
1106
+ value: newPassword,
1107
+ onChange: (e) => onNewPasswordChange(e.target.value),
1108
+ required: true,
1109
+ autoComplete: "new-password",
1110
+ showStrengthIndicator: true,
1111
+ emailAuthConfig,
1112
+ appearance: {
1113
+ containerClassName: appearance.form?.newPasswordField?.container,
1114
+ labelClassName: appearance.form?.newPasswordField?.label,
1115
+ inputClassName: appearance.form?.newPasswordField?.input
1116
+ }
1117
+ }
1118
+ ),
1119
+ /* @__PURE__ */ jsx(
1120
+ AuthPasswordField,
1121
+ {
1122
+ id: "confirmPassword",
1123
+ label: confirmPasswordLabel,
1124
+ placeholder: confirmPasswordPlaceholder,
1125
+ value: confirmPassword,
1126
+ onChange: (e) => onConfirmPasswordChange(e.target.value),
1127
+ required: true,
1128
+ autoComplete: "new-password",
1129
+ emailAuthConfig,
1130
+ appearance: {
1131
+ containerClassName: appearance.form?.confirmPasswordField?.container,
1132
+ labelClassName: appearance.form?.confirmPasswordField?.label,
1133
+ inputClassName: appearance.form?.confirmPasswordField?.input
1134
+ }
1135
+ }
1136
+ ),
1137
+ /* @__PURE__ */ jsx(
1138
+ AuthSubmitButton,
1139
+ {
1140
+ isLoading: loading,
1141
+ disabled: loading,
1142
+ className: appearance.button,
1143
+ children: loading ? loadingButtonText : submitButtonText
1144
+ }
1145
+ )
1146
+ ]
1147
+ }
1148
+ ),
1149
+ /* @__PURE__ */ jsxs("p", { className: appearance.backToSignIn || "text-center text-sm text-gray-600 dark:text-gray-400", children: [
1150
+ backToSignInText && /* @__PURE__ */ jsxs("span", { children: [
1151
+ backToSignInText,
1152
+ " "
1153
+ ] }),
1154
+ /* @__PURE__ */ jsx("a", { href: backToSignInUrl, className: "text-black dark:text-white font-medium", children: "Back to Sign In" })
1155
+ ] })
1156
+ ]
1157
+ }
1158
+ );
965
1159
  }
966
1160
  function VerifyEmailStatus({
967
1161
  status,