@thecb/components 11.10.2-beta.2 → 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 +12 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.js +2 -2
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.theme.js +2 -2
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +2 -2
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.theme.js +2 -2
- 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/src/util/formats.js +3 -6
package/dist/index.cjs.js
CHANGED
|
@@ -26309,7 +26309,7 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
26309
26309
|
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
|
|
26310
26310
|
|
|
26311
26311
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
26312
|
-
var autopayTextColor = "".concat(
|
|
26312
|
+
var autopayTextColor = "".concat(REGENT_GREY);
|
|
26313
26313
|
var fallbackValues$o = {
|
|
26314
26314
|
textColor: textColor$1,
|
|
26315
26315
|
autopayTextColor: autopayTextColor
|
|
@@ -26345,8 +26345,8 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26345
26345
|
}, "Savings Account ending in ", lastFour), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26346
26346
|
variant: "p",
|
|
26347
26347
|
color: themeValues.autopayTextColor,
|
|
26348
|
-
extraStyles: "font-style: italic;
|
|
26349
|
-
}, "Autopay
|
|
26348
|
+
extraStyles: "font-style: italic;"
|
|
26349
|
+
}, "Autopay Enabled")));
|
|
26350
26350
|
};
|
|
26351
26351
|
var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
|
|
26352
26352
|
|
|
@@ -26395,7 +26395,7 @@ var CardType = function CardType(_ref) {
|
|
|
26395
26395
|
};
|
|
26396
26396
|
|
|
26397
26397
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
26398
|
-
var autopayTextColor$1 = "".concat(
|
|
26398
|
+
var autopayTextColor$1 = "".concat(REGENT_GREY);
|
|
26399
26399
|
var fallbackValues$p = {
|
|
26400
26400
|
textColor: textColor$2,
|
|
26401
26401
|
autopayTextColor: autopayTextColor$1
|
|
@@ -26424,15 +26424,13 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
|
|
|
26424
26424
|
return /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26425
26425
|
as: as,
|
|
26426
26426
|
variant: "pXS",
|
|
26427
|
-
|
|
26428
|
-
color: STORM_GREY,
|
|
26427
|
+
color: ASH_GREY,
|
|
26429
26428
|
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26430
26429
|
}, "Exp Date ", expireDate);
|
|
26431
26430
|
case EXPIRING_SOON:
|
|
26432
26431
|
return /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26433
26432
|
as: as,
|
|
26434
26433
|
variant: "pXS",
|
|
26435
|
-
fontSize: ".75rem",
|
|
26436
26434
|
color: FIRE_YELLOW,
|
|
26437
26435
|
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26438
26436
|
}, "Expiring Soon ", expireDate);
|
|
@@ -26440,8 +26438,7 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
|
|
|
26440
26438
|
return /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26441
26439
|
as: as,
|
|
26442
26440
|
variant: "pXS",
|
|
26443
|
-
|
|
26444
|
-
color: STORM_GREY,
|
|
26441
|
+
color: ASH_GREY,
|
|
26445
26442
|
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26446
26443
|
}, "Expired");
|
|
26447
26444
|
}
|
|
@@ -26494,8 +26491,8 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
26494
26491
|
}, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React__default.createElement(React.Fragment, null, renderCardStatus(expirationStatus, expireDate, "left", "p"))), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26495
26492
|
variant: "p",
|
|
26496
26493
|
color: themeValues.autopayTextColor,
|
|
26497
|
-
extraStyles: "font-style: italic;
|
|
26498
|
-
}, "Autopay
|
|
26494
|
+
extraStyles: "font-style: italic;"
|
|
26495
|
+
}, "Autopay Enabled")));
|
|
26499
26496
|
};
|
|
26500
26497
|
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
|
|
26501
26498
|
|
|
@@ -41178,7 +41175,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41178
41175
|
}, []);
|
|
41179
41176
|
}
|
|
41180
41177
|
useConditionallyAddValidator(isRequired, required, actions.fields.email.addValidator, actions.fields.email.removeValidator);
|
|
41181
|
-
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");
|
|
41182
41179
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
41183
41180
|
variant: variant,
|
|
41184
41181
|
role: "form",
|
|
@@ -41270,7 +41267,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41270
41267
|
};
|
|
41271
41268
|
}, []);
|
|
41272
41269
|
}
|
|
41273
|
-
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");
|
|
41274
41271
|
return /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41275
41272
|
labelTextWhenNoError: "Email address",
|
|
41276
41273
|
errorMessages: EmailErrorMessages,
|
|
@@ -45969,7 +45966,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
45969
45966
|
};
|
|
45970
45967
|
}, []);
|
|
45971
45968
|
}
|
|
45972
|
-
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");
|
|
45973
45970
|
var passwordErrorMessages = _defineProperty({}, required.error, "Password is required");
|
|
45974
45971
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|
|
45975
45972
|
role: "form",
|
|
@@ -49342,7 +49339,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49342
49339
|
}
|
|
49343
49340
|
var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), validName.error, "First name contains invalid characters");
|
|
49344
49341
|
var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), validName.error, "Last name contains invalid characters");
|
|
49345
|
-
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");
|
|
49346
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 (!@#$%^&*.?)");
|
|
49347
49344
|
var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
|
|
49348
49345
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|