@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.esm.js
CHANGED
|
@@ -41167,7 +41167,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41167
41167
|
}, []);
|
|
41168
41168
|
}
|
|
41169
41169
|
useConditionallyAddValidator(isRequired, required, actions.fields.email.addValidator, actions.fields.email.removeValidator);
|
|
41170
|
-
var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
41170
|
+
var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
41171
41171
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
41172
41172
|
variant: variant,
|
|
41173
41173
|
role: "form",
|
|
@@ -41259,7 +41259,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41259
41259
|
};
|
|
41260
41260
|
}, []);
|
|
41261
41261
|
}
|
|
41262
|
-
var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
41262
|
+
var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
41263
41263
|
return /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41264
41264
|
labelTextWhenNoError: "Email address",
|
|
41265
41265
|
errorMessages: EmailErrorMessages,
|
|
@@ -45958,7 +45958,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
45958
45958
|
};
|
|
45959
45959
|
}, []);
|
|
45960
45960
|
}
|
|
45961
|
-
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
45961
|
+
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
45962
45962
|
var passwordErrorMessages = _defineProperty({}, required.error, "Password is required");
|
|
45963
45963
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|
|
45964
45964
|
role: "form",
|
|
@@ -49331,7 +49331,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49331
49331
|
}
|
|
49332
49332
|
var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), validName.error, "First name contains invalid characters");
|
|
49333
49333
|
var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), validName.error, "Last name contains invalid characters");
|
|
49334
|
-
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "
|
|
49334
|
+
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
49335
49335
|
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 (!@#$%^&*.?)");
|
|
49336
49336
|
var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
|
|
49337
49337
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|