@thecb/components 11.10.1 → 11.10.2
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 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/email-form/EmailForm.js +2 -1
- package/src/components/molecules/email-form/EmailForm.stories.js +210 -0
- package/src/components/molecules/forgot-password-form/ForgotPasswordForm.js +2 -1
- package/src/components/molecules/login-form/LoginForm.js +2 -1
- package/src/components/molecules/registration-form/RegistrationForm.js +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -41175,7 +41175,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41175
41175
|
}, []);
|
|
41176
41176
|
}
|
|
41177
41177
|
useConditionallyAddValidator(isRequired, required, actions.fields.email.addValidator, actions.fields.email.removeValidator);
|
|
41178
|
-
var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
41178
|
+
var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
41179
41179
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
41180
41180
|
variant: variant,
|
|
41181
41181
|
role: "form",
|
|
@@ -41267,7 +41267,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41267
41267
|
};
|
|
41268
41268
|
}, []);
|
|
41269
41269
|
}
|
|
41270
|
-
var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
41270
|
+
var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
41271
41271
|
return /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41272
41272
|
labelTextWhenNoError: "Email address",
|
|
41273
41273
|
errorMessages: EmailErrorMessages,
|
|
@@ -45966,7 +45966,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
45966
45966
|
};
|
|
45967
45967
|
}, []);
|
|
45968
45968
|
}
|
|
45969
|
-
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
45969
|
+
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
45970
45970
|
var passwordErrorMessages = _defineProperty({}, required.error, "Password is required");
|
|
45971
45971
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|
|
45972
45972
|
role: "form",
|
|
@@ -49339,7 +49339,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49339
49339
|
}
|
|
49340
49340
|
var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), validName.error, "First name contains invalid characters");
|
|
49341
49341
|
var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), validName.error, "Last name contains invalid characters");
|
|
49342
|
-
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "
|
|
49342
|
+
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
49343
49343
|
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 (!@#$%^&*.?)");
|
|
49344
49344
|
var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
|
|
49345
49345
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|