@thecb/components 10.4.2-beta.1 → 10.4.3-beta.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/index.cjs.js +4 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/molecules/registration-form/RegistrationForm.js +3 -6
- package/src/components/molecules/registration-form/RegistrationForm.state.js +3 -4
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -39826,12 +39826,6 @@ validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
|
|
|
39826
39826
|
return new RegExp(/^\S+@\S+\.\S+$/).test(value);
|
|
39827
39827
|
};
|
|
39828
39828
|
|
|
39829
|
-
const VALID_NAME = 'validator/VALID_NAME';
|
|
39830
|
-
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
39831
|
-
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
39832
|
-
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
39833
|
-
value === '' ? false : new RegExp(/[A-Za-z]+(\s?[A-Za-z\-,'])*/).test(value);
|
|
39834
|
-
|
|
39835
39829
|
const runValidatorErrorMessage = (type) =>
|
|
39836
39830
|
`${type} was passed to runValidator, but that validator type does not exist.
|
|
39837
39831
|
Please check that you are only calling validator creator functions exported from
|
|
@@ -49478,8 +49472,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49478
49472
|
};
|
|
49479
49473
|
}, []);
|
|
49480
49474
|
}
|
|
49481
|
-
var firstNameErrorMessages = _defineProperty(
|
|
49482
|
-
var lastNameErrorMessages = _defineProperty(
|
|
49475
|
+
var firstNameErrorMessages = _defineProperty({}, required.error, "First name is required");
|
|
49476
|
+
var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
|
|
49483
49477
|
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Invalid email address");
|
|
49484
49478
|
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 (!@#$%^&*.?)");
|
|
49485
49479
|
var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
|
|
@@ -49555,10 +49549,10 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49555
49549
|
|
|
49556
49550
|
var formConfig$9 = {
|
|
49557
49551
|
firstName: {
|
|
49558
|
-
validators: [required()
|
|
49552
|
+
validators: [required()]
|
|
49559
49553
|
},
|
|
49560
49554
|
lastName: {
|
|
49561
|
-
validators: [required()
|
|
49555
|
+
validators: [required()]
|
|
49562
49556
|
},
|
|
49563
49557
|
email: {
|
|
49564
49558
|
validators: [required(), isProbablyEmail()]
|