@thecb/components 11.10.2-beta.2 → 11.10.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.esm.js CHANGED
@@ -25938,7 +25938,8 @@ var FormInput = function FormInput(_ref15) {
25938
25938
  minWidth: "100%"
25939
25939
  }, /*#__PURE__*/React__default.createElement(Cluster, {
25940
25940
  justify: "space-between",
25941
- align: "center"
25941
+ align: "center",
25942
+ overflow: true
25942
25943
  }, labelDisplayOverride ? labelDisplayOverride : /*#__PURE__*/React__default.createElement(Text$1, {
25943
25944
  as: "label",
25944
25945
  color: themeValues.labelColor,
@@ -25946,22 +25947,16 @@ var FormInput = function FormInput(_ref15) {
25946
25947
  fontWeight: themeValues.fontWeight,
25947
25948
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
25948
25949
  id: createIdFromString(labelTextWhenNoError)
25949
- }, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
25950
- variant: labelTextVariant,
25951
- color: themeValues.linkColor,
25952
- weight: themeValues.fontWeight,
25953
- hoverStyles: themeValues.hoverFocusStyles,
25954
- extraStyles: "text-decoration: underline; cursor: pointer; &:focus { outline-offset: -2px; }",
25955
- onClick: function onClick() {
25950
+ }, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25951
+ variant: "smallGhost",
25952
+ text: showPassword ? "Hide" : "Show",
25953
+ action: function action() {
25956
25954
  return setShowPassword(!showPassword);
25957
25955
  },
25958
- tabIndex: "0",
25959
25956
  "aria-label": showPassword ? "Hide Password" : "Show password",
25960
- "aria-live": "polite",
25961
- onKeyPress: function onKeyPress(e) {
25962
- return e.key === "Enter" && setShowPassword(!showPassword);
25963
- }
25964
- }, showPassword ? "Hide" : "Show"), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
25957
+ extraStyles: "margin: 0; min-width: auto;",
25958
+ textExtraStyles: "color: ".concat(themeValues.linkColor, ";")
25959
+ }), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
25965
25960
  padding: "0 0 0 auto"
25966
25961
  }, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
25967
25962
  padding: "0"
@@ -26301,7 +26296,7 @@ var FormattedAddress = function FormattedAddress(_ref) {
26301
26296
  var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
26302
26297
 
26303
26298
  var textColor$1 = "".concat(CHARADE_GREY);
26304
- var autopayTextColor = "".concat(SEA_GREEN);
26299
+ var autopayTextColor = "".concat(REGENT_GREY);
26305
26300
  var fallbackValues$o = {
26306
26301
  textColor: textColor$1,
26307
26302
  autopayTextColor: autopayTextColor
@@ -26337,8 +26332,8 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
26337
26332
  }, "Savings Account ending in ", lastFour), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
26338
26333
  variant: "p",
26339
26334
  color: themeValues.autopayTextColor,
26340
- extraStyles: "font-style: italic; font-size: .75rem;"
26341
- }, "Autopay On")));
26335
+ extraStyles: "font-style: italic;"
26336
+ }, "Autopay Enabled")));
26342
26337
  };
26343
26338
  var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
26344
26339
 
@@ -26387,7 +26382,7 @@ var CardType = function CardType(_ref) {
26387
26382
  };
26388
26383
 
26389
26384
  var textColor$2 = "".concat(CHARADE_GREY);
26390
- var autopayTextColor$1 = "".concat(SEA_GREEN);
26385
+ var autopayTextColor$1 = "".concat(REGENT_GREY);
26391
26386
  var fallbackValues$p = {
26392
26387
  textColor: textColor$2,
26393
26388
  autopayTextColor: autopayTextColor$1
@@ -26416,15 +26411,13 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
26416
26411
  return /*#__PURE__*/React__default.createElement(Text$1, {
26417
26412
  as: as,
26418
26413
  variant: "pXS",
26419
- fontSize: ".75rem",
26420
- color: STORM_GREY,
26414
+ color: ASH_GREY,
26421
26415
  extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26422
26416
  }, "Exp Date ", expireDate);
26423
26417
  case EXPIRING_SOON:
26424
26418
  return /*#__PURE__*/React__default.createElement(Text$1, {
26425
26419
  as: as,
26426
26420
  variant: "pXS",
26427
- fontSize: ".75rem",
26428
26421
  color: FIRE_YELLOW,
26429
26422
  extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26430
26423
  }, "Expiring Soon ", expireDate);
@@ -26432,8 +26425,7 @@ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
26432
26425
  return /*#__PURE__*/React__default.createElement(Text$1, {
26433
26426
  as: as,
26434
26427
  variant: "pXS",
26435
- fontSize: ".75rem",
26436
- color: STORM_GREY,
26428
+ color: ASH_GREY,
26437
26429
  extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26438
26430
  }, "Expired");
26439
26431
  }
@@ -26486,8 +26478,8 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
26486
26478
  }, "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, {
26487
26479
  variant: "p",
26488
26480
  color: themeValues.autopayTextColor,
26489
- extraStyles: "font-style: italic; font-size: .75rem;"
26490
- }, "Autopay On")));
26481
+ extraStyles: "font-style: italic;"
26482
+ }, "Autopay Enabled")));
26491
26483
  };
26492
26484
  var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
26493
26485
 
@@ -41170,7 +41162,7 @@ var EmailForm = function EmailForm(_ref) {
41170
41162
  }, []);
41171
41163
  }
41172
41164
  useConditionallyAddValidator(isRequired, required, actions.fields.email.addValidator, actions.fields.email.removeValidator);
41173
- var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Invalid email address");
41165
+ var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
41174
41166
  return /*#__PURE__*/React__default.createElement(FormContainer$1, {
41175
41167
  variant: variant,
41176
41168
  role: "form",
@@ -41262,7 +41254,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
41262
41254
  };
41263
41255
  }, []);
41264
41256
  }
41265
- var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Email address is not valid");
41257
+ var EmailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
41266
41258
  return /*#__PURE__*/React__default.createElement(FormInput$1, {
41267
41259
  labelTextWhenNoError: "Email address",
41268
41260
  errorMessages: EmailErrorMessages,
@@ -45961,7 +45953,7 @@ var LoginForm = function LoginForm(_ref) {
45961
45953
  };
45962
45954
  }, []);
45963
45955
  }
45964
- var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Invalid email address");
45956
+ var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
45965
45957
  var passwordErrorMessages = _defineProperty({}, required.error, "Password is required");
45966
45958
  return /*#__PURE__*/React__default.createElement(FormInputColumn, {
45967
45959
  role: "form",
@@ -49334,7 +49326,7 @@ var RegistrationForm = function RegistrationForm(_ref) {
49334
49326
  }
49335
49327
  var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), validName.error, "First name contains invalid characters");
49336
49328
  var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), validName.error, "Last name contains invalid characters");
49337
- var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Invalid email address");
49329
+ var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
49338
49330
  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 (!@#$%^&*.?)");
49339
49331
  var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
49340
49332
  return /*#__PURE__*/React__default.createElement(FormInputColumn, {