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