@sikka/hawa 0.10.14-next → 0.10.16-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/index.d.mts CHANGED
@@ -905,16 +905,20 @@ type LoginFormTypes = {
905
905
  texts?: {
906
906
  emailLabel?: string;
907
907
  emailPlaceholder?: string;
908
- emailRequiredText?: string;
909
- emailInvalidText?: string;
908
+ emailRequired?: string;
909
+ emailInvalid?: string;
910
910
  usernameLabel?: string;
911
911
  usernamePlaceholder?: string;
912
912
  usernameRequired?: string;
913
- phoneRequiredText?: string;
913
+ usernameInvalid?: string;
914
+ phoneRequired?: string;
915
+ phoneInvalid?: string;
916
+ phoneLabel?: string;
914
917
  passwordLabel?: string;
915
918
  passwordPlaceholder?: string;
916
- passwordRequiredText?: string;
917
- forgotPasswordText?: string;
919
+ passwordRequired?: string;
920
+ passwordTooShort?: string;
921
+ forgotPassword?: string;
918
922
  newUserText?: string;
919
923
  createAccount?: string;
920
924
  loginText?: string;
@@ -972,6 +976,7 @@ type LoginFormTypes = {
972
976
  onGithubLogin?: () => void;
973
977
  /** Function to handle Twitter login. */
974
978
  onTwitterLogin?: () => void;
979
+ /** Additional buttons to add under the login button */
975
980
  additionalButtons?: any;
976
981
  };
977
982
  declare const LoginForm: FC<LoginFormTypes>;
@@ -989,43 +994,6 @@ type RegisterFormTypes = {
989
994
  direction?: "rtl" | "ltr";
990
995
  /** Determines whether to display logos only or with text in the social media registration section. */
991
996
  logosOnly?: boolean;
992
- /** Object containing text labels used throughout the form. */
993
- texts: {
994
- fullNameLabel: string;
995
- fullNamePlaceholder: string;
996
- fullNameRequiredText: string;
997
- emailLabel: string;
998
- emailPlaceholder: string;
999
- emailRequiredText: string;
1000
- emailInvalidText: string;
1001
- usernameLabel: string;
1002
- usernamePlaceholder: string;
1003
- usernameRequired: string;
1004
- passwordLabel: string;
1005
- passwordPlaceholder: string;
1006
- passwordRequiredText: string;
1007
- passwordTooShortText: string;
1008
- passwordsDontMatch: string;
1009
- confirmPasswordLabel: string;
1010
- confirmPasswordPlaceholder: string;
1011
- confirmPasswordRequired: string;
1012
- subscribeToNewsletter: string;
1013
- forgotPasswordText: string;
1014
- termsText: string;
1015
- iAcceptText: string;
1016
- termsRequiredText: string;
1017
- newUserText: string;
1018
- registerText: string;
1019
- loginText: string;
1020
- existingUserText: string;
1021
- registerViaGoogleLabel: string;
1022
- registerViaGithubLabel: string;
1023
- registerViaTwitterLabel: string;
1024
- refCode: string;
1025
- refCodePlaceholder: string;
1026
- userReferenceLabel: string;
1027
- userReferencePlaceholder: string;
1028
- };
1029
997
  /** Enables registration via Google when set to true. */
1030
998
  viaGoogle: boolean;
1031
999
  /** Enables registration via Github when set to true. */
@@ -1068,9 +1036,49 @@ type RegisterFormTypes = {
1068
1036
  isTwitterLoading?: boolean;
1069
1037
  /** If true, a loading spinner is displayed within the Github login button. */
1070
1038
  isGithubLoading?: boolean;
1039
+ /** The options of "How did you learn about us?" select field. */
1071
1040
  userReferenceOptions?: SelectOptionProps[];
1041
+ /** To add more custom buttons under the register button. */
1072
1042
  additionalButtons?: any;
1043
+ /** To add more custom input fields */
1073
1044
  additionalInputs?: any;
1045
+ /** Object containing text labels used throughout the form. */
1046
+ texts: {
1047
+ fullNameLabel: string;
1048
+ fullNamePlaceholder: string;
1049
+ fullNameRequiredText: string;
1050
+ emailLabel: string;
1051
+ emailPlaceholder: string;
1052
+ emailRequiredText: string;
1053
+ emailInvalidText: string;
1054
+ usernameLabel: string;
1055
+ usernamePlaceholder: string;
1056
+ usernameRequired: string;
1057
+ passwordLabel: string;
1058
+ passwordPlaceholder: string;
1059
+ passwordRequiredText: string;
1060
+ passwordTooShortText: string;
1061
+ passwordsDontMatch: string;
1062
+ confirmPasswordLabel: string;
1063
+ confirmPasswordPlaceholder: string;
1064
+ confirmPasswordRequired: string;
1065
+ subscribeToNewsletter: string;
1066
+ forgotPasswordText: string;
1067
+ termsText: string;
1068
+ iAcceptText: string;
1069
+ termsRequiredText: string;
1070
+ newUserText: string;
1071
+ registerText: string;
1072
+ loginText: string;
1073
+ existingUserText: string;
1074
+ registerViaGoogleLabel: string;
1075
+ registerViaGithubLabel: string;
1076
+ registerViaTwitterLabel: string;
1077
+ refCode: string;
1078
+ refCodePlaceholder: string;
1079
+ userReferenceLabel: string;
1080
+ userReferencePlaceholder: string;
1081
+ };
1074
1082
  };
1075
1083
  declare const RegisterForm: FC<RegisterFormTypes>;
1076
1084
 
@@ -1125,16 +1133,15 @@ type NewPasswordTypes = {
1125
1133
  headless?: boolean;
1126
1134
  passwordChanged: any;
1127
1135
  texts: {
1128
- passwordPlaceholder: string;
1129
1136
  updatePassword: string;
1130
- passwordRequiredText: string;
1137
+ passwordPlaceholder: string;
1138
+ passwordRequired: string;
1131
1139
  passwordLabel: string;
1132
- confirmPasswordPlaceholder: string;
1133
- confirmPasswordLabel: string;
1134
- confirmPasswordRequiredText: string;
1135
1140
  passwordMatchError: string;
1136
1141
  passwordChanged: string;
1137
- passwordTooShortText: string;
1142
+ passwordTooShort: string;
1143
+ confirmPasswordPlaceholder: string;
1144
+ confirmPasswordLabel: string;
1138
1145
  confirmPasswordRequired: string;
1139
1146
  };
1140
1147
  };
package/dist/index.d.ts CHANGED
@@ -905,16 +905,20 @@ type LoginFormTypes = {
905
905
  texts?: {
906
906
  emailLabel?: string;
907
907
  emailPlaceholder?: string;
908
- emailRequiredText?: string;
909
- emailInvalidText?: string;
908
+ emailRequired?: string;
909
+ emailInvalid?: string;
910
910
  usernameLabel?: string;
911
911
  usernamePlaceholder?: string;
912
912
  usernameRequired?: string;
913
- phoneRequiredText?: string;
913
+ usernameInvalid?: string;
914
+ phoneRequired?: string;
915
+ phoneInvalid?: string;
916
+ phoneLabel?: string;
914
917
  passwordLabel?: string;
915
918
  passwordPlaceholder?: string;
916
- passwordRequiredText?: string;
917
- forgotPasswordText?: string;
919
+ passwordRequired?: string;
920
+ passwordTooShort?: string;
921
+ forgotPassword?: string;
918
922
  newUserText?: string;
919
923
  createAccount?: string;
920
924
  loginText?: string;
@@ -972,6 +976,7 @@ type LoginFormTypes = {
972
976
  onGithubLogin?: () => void;
973
977
  /** Function to handle Twitter login. */
974
978
  onTwitterLogin?: () => void;
979
+ /** Additional buttons to add under the login button */
975
980
  additionalButtons?: any;
976
981
  };
977
982
  declare const LoginForm: FC<LoginFormTypes>;
@@ -989,43 +994,6 @@ type RegisterFormTypes = {
989
994
  direction?: "rtl" | "ltr";
990
995
  /** Determines whether to display logos only or with text in the social media registration section. */
991
996
  logosOnly?: boolean;
992
- /** Object containing text labels used throughout the form. */
993
- texts: {
994
- fullNameLabel: string;
995
- fullNamePlaceholder: string;
996
- fullNameRequiredText: string;
997
- emailLabel: string;
998
- emailPlaceholder: string;
999
- emailRequiredText: string;
1000
- emailInvalidText: string;
1001
- usernameLabel: string;
1002
- usernamePlaceholder: string;
1003
- usernameRequired: string;
1004
- passwordLabel: string;
1005
- passwordPlaceholder: string;
1006
- passwordRequiredText: string;
1007
- passwordTooShortText: string;
1008
- passwordsDontMatch: string;
1009
- confirmPasswordLabel: string;
1010
- confirmPasswordPlaceholder: string;
1011
- confirmPasswordRequired: string;
1012
- subscribeToNewsletter: string;
1013
- forgotPasswordText: string;
1014
- termsText: string;
1015
- iAcceptText: string;
1016
- termsRequiredText: string;
1017
- newUserText: string;
1018
- registerText: string;
1019
- loginText: string;
1020
- existingUserText: string;
1021
- registerViaGoogleLabel: string;
1022
- registerViaGithubLabel: string;
1023
- registerViaTwitterLabel: string;
1024
- refCode: string;
1025
- refCodePlaceholder: string;
1026
- userReferenceLabel: string;
1027
- userReferencePlaceholder: string;
1028
- };
1029
997
  /** Enables registration via Google when set to true. */
1030
998
  viaGoogle: boolean;
1031
999
  /** Enables registration via Github when set to true. */
@@ -1068,9 +1036,49 @@ type RegisterFormTypes = {
1068
1036
  isTwitterLoading?: boolean;
1069
1037
  /** If true, a loading spinner is displayed within the Github login button. */
1070
1038
  isGithubLoading?: boolean;
1039
+ /** The options of "How did you learn about us?" select field. */
1071
1040
  userReferenceOptions?: SelectOptionProps[];
1041
+ /** To add more custom buttons under the register button. */
1072
1042
  additionalButtons?: any;
1043
+ /** To add more custom input fields */
1073
1044
  additionalInputs?: any;
1045
+ /** Object containing text labels used throughout the form. */
1046
+ texts: {
1047
+ fullNameLabel: string;
1048
+ fullNamePlaceholder: string;
1049
+ fullNameRequiredText: string;
1050
+ emailLabel: string;
1051
+ emailPlaceholder: string;
1052
+ emailRequiredText: string;
1053
+ emailInvalidText: string;
1054
+ usernameLabel: string;
1055
+ usernamePlaceholder: string;
1056
+ usernameRequired: string;
1057
+ passwordLabel: string;
1058
+ passwordPlaceholder: string;
1059
+ passwordRequiredText: string;
1060
+ passwordTooShortText: string;
1061
+ passwordsDontMatch: string;
1062
+ confirmPasswordLabel: string;
1063
+ confirmPasswordPlaceholder: string;
1064
+ confirmPasswordRequired: string;
1065
+ subscribeToNewsletter: string;
1066
+ forgotPasswordText: string;
1067
+ termsText: string;
1068
+ iAcceptText: string;
1069
+ termsRequiredText: string;
1070
+ newUserText: string;
1071
+ registerText: string;
1072
+ loginText: string;
1073
+ existingUserText: string;
1074
+ registerViaGoogleLabel: string;
1075
+ registerViaGithubLabel: string;
1076
+ registerViaTwitterLabel: string;
1077
+ refCode: string;
1078
+ refCodePlaceholder: string;
1079
+ userReferenceLabel: string;
1080
+ userReferencePlaceholder: string;
1081
+ };
1074
1082
  };
1075
1083
  declare const RegisterForm: FC<RegisterFormTypes>;
1076
1084
 
@@ -1125,16 +1133,15 @@ type NewPasswordTypes = {
1125
1133
  headless?: boolean;
1126
1134
  passwordChanged: any;
1127
1135
  texts: {
1128
- passwordPlaceholder: string;
1129
1136
  updatePassword: string;
1130
- passwordRequiredText: string;
1137
+ passwordPlaceholder: string;
1138
+ passwordRequired: string;
1131
1139
  passwordLabel: string;
1132
- confirmPasswordPlaceholder: string;
1133
- confirmPasswordLabel: string;
1134
- confirmPasswordRequiredText: string;
1135
1140
  passwordMatchError: string;
1136
1141
  passwordChanged: string;
1137
- passwordTooShortText: string;
1142
+ passwordTooShort: string;
1143
+ confirmPasswordPlaceholder: string;
1144
+ confirmPasswordLabel: string;
1138
1145
  confirmPasswordRequired: string;
1139
1146
  };
1140
1147
  };