@thecb/components 10.3.2-beta.0 → 10.3.2-beta.1

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.cjs.js CHANGED
@@ -49320,8 +49320,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
49320
49320
  };
49321
49321
  }, []);
49322
49322
  }
49323
- var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), matchesRegex.error, "First name must contain at least one letter");
49324
- var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), matchesRegex.error, "Last name must contain at least one letter");
49323
+ var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), matchesRegex.error, "First name contains invalid characters");
49324
+ var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), matchesRegex.error, "Last name contains invalid characters");
49325
49325
  var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Invalid email address");
49326
49326
  var passwordErrorMessages = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, required.error, "Password is required"), hasLength.error, "Password must have at least 8 characters"), hasNumber.error, "Password must contain at least one number"), hasLowercaseLetter.error, "Password must contain at least one lowercase letter"), hasUppercaseLetter.error, "Password must contain at least one uppercase letter"), hasSpecialCharacter.error, "Password must contain at least one special character (!@#$%^&*.?)");
49327
49327
  var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
@@ -49397,10 +49397,10 @@ var RegistrationForm = function RegistrationForm(_ref) {
49397
49397
 
49398
49398
  var formConfig$9 = {
49399
49399
  firstName: {
49400
- validators: [required(), matchesRegex(/\w+/i)]
49400
+ validators: [required(), matchesRegex(/[A-Za-z]+(\s?[A-Za-z\-,'])*/i)]
49401
49401
  },
49402
49402
  lastName: {
49403
- validators: [required(), matchesRegex(/\w+/i)]
49403
+ validators: [required(), matchesRegex(/[A-Za-z]+(\s?[A-Za-z\-,'])*/i)]
49404
49404
  },
49405
49405
  email: {
49406
49406
  validators: [required(), isProbablyEmail()]