@thecb/components 11.9.2-beta.1 → 11.9.2-beta.3
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 +14 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +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.esm.js
CHANGED
|
@@ -25913,7 +25913,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
25913
25913
|
padding: "0"
|
|
25914
25914
|
}, helperModal ? /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25915
25915
|
justify: "space-between",
|
|
25916
|
-
align: "center"
|
|
25916
|
+
align: "center",
|
|
25917
|
+
overflow: true
|
|
25917
25918
|
}, labelDisplayOverride ? labelDisplayOverride : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25918
25919
|
as: "label",
|
|
25919
25920
|
color: themeValues.labelColor,
|
|
@@ -26289,7 +26290,7 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
26289
26290
|
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
|
|
26290
26291
|
|
|
26291
26292
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
26292
|
-
var autopayTextColor = "".concat(
|
|
26293
|
+
var autopayTextColor = "".concat(REGENT_GREY);
|
|
26293
26294
|
var fallbackValues$o = {
|
|
26294
26295
|
textColor: textColor$1,
|
|
26295
26296
|
autopayTextColor: autopayTextColor
|
|
@@ -26325,8 +26326,8 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26325
26326
|
}, "Savings Account ending in ", lastFour), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26326
26327
|
variant: "p",
|
|
26327
26328
|
color: themeValues.autopayTextColor,
|
|
26328
|
-
extraStyles: "font-style: italic;
|
|
26329
|
-
}, "Autopay
|
|
26329
|
+
extraStyles: "font-style: italic;"
|
|
26330
|
+
}, "Autopay Enabled")));
|
|
26330
26331
|
};
|
|
26331
26332
|
var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
|
|
26332
26333
|
|
|
@@ -26371,7 +26372,7 @@ var CardType = function CardType(_ref) {
|
|
|
26371
26372
|
};
|
|
26372
26373
|
|
|
26373
26374
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
26374
|
-
var autopayTextColor$1 = "".concat(
|
|
26375
|
+
var autopayTextColor$1 = "".concat(REGENT_GREY);
|
|
26375
26376
|
var fallbackValues$p = {
|
|
26376
26377
|
textColor: textColor$2,
|
|
26377
26378
|
autopayTextColor: autopayTextColor$1
|
|
@@ -26400,15 +26401,13 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
|
|
|
26400
26401
|
return /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26401
26402
|
as: as,
|
|
26402
26403
|
variant: "pXS",
|
|
26403
|
-
|
|
26404
|
-
color: STORM_GREY,
|
|
26404
|
+
color: ASH_GREY,
|
|
26405
26405
|
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26406
26406
|
}, "Exp Date ", expireDate);
|
|
26407
26407
|
case EXPIRING_SOON:
|
|
26408
26408
|
return /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26409
26409
|
as: as,
|
|
26410
26410
|
variant: "pXS",
|
|
26411
|
-
fontSize: ".75rem",
|
|
26412
26411
|
color: FIRE_YELLOW,
|
|
26413
26412
|
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26414
26413
|
}, "Expiring Soon ", expireDate);
|
|
@@ -26416,8 +26415,7 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
|
|
|
26416
26415
|
return /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26417
26416
|
as: as,
|
|
26418
26417
|
variant: "pXS",
|
|
26419
|
-
|
|
26420
|
-
color: STORM_GREY,
|
|
26418
|
+
color: ASH_GREY,
|
|
26421
26419
|
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26422
26420
|
}, "Expired");
|
|
26423
26421
|
}
|
|
@@ -26467,8 +26465,8 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
26467
26465
|
}, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React__default.createElement(Fragment$1, null, renderCardStatus(expirationStatus, expireDate, "left", "p"))), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26468
26466
|
variant: "p",
|
|
26469
26467
|
color: themeValues.autopayTextColor,
|
|
26470
|
-
extraStyles: "font-style: italic;
|
|
26471
|
-
}, "Autopay
|
|
26468
|
+
extraStyles: "font-style: italic;"
|
|
26469
|
+
}, "Autopay Enabled")));
|
|
26472
26470
|
};
|
|
26473
26471
|
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
|
|
26474
26472
|
|
|
@@ -41151,7 +41149,7 @@ var EmailForm = function EmailForm(_ref) {
|
|
|
41151
41149
|
}, []);
|
|
41152
41150
|
}
|
|
41153
41151
|
useConditionallyAddValidator(isRequired, required, actions.fields.email.addValidator, actions.fields.email.removeValidator);
|
|
41154
|
-
var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
41152
|
+
var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
41155
41153
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
41156
41154
|
variant: variant,
|
|
41157
41155
|
role: "form",
|
|
@@ -41243,7 +41241,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
|
|
|
41243
41241
|
};
|
|
41244
41242
|
}, []);
|
|
41245
41243
|
}
|
|
41246
|
-
var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
41244
|
+
var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
41247
41245
|
return /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
41248
41246
|
labelTextWhenNoError: "Email address",
|
|
41249
41247
|
errorMessages: EmailErrorMessages,
|
|
@@ -45942,7 +45940,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
|
45942
45940
|
};
|
|
45943
45941
|
}, []);
|
|
45944
45942
|
}
|
|
45945
|
-
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "
|
|
45943
|
+
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
45946
45944
|
var passwordErrorMessages = _defineProperty({}, required.error, "Password is required");
|
|
45947
45945
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|
|
45948
45946
|
role: "form",
|
|
@@ -49315,7 +49313,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49315
49313
|
}
|
|
49316
49314
|
var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), validName.error, "First name contains invalid characters");
|
|
49317
49315
|
var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), validName.error, "Last name contains invalid characters");
|
|
49318
|
-
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "
|
|
49316
|
+
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
|
|
49319
49317
|
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 (!@#$%^&*.?)");
|
|
49320
49318
|
var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
|
|
49321
49319
|
return /*#__PURE__*/React__default.createElement(FormInputColumn, {
|