@thecb/components 10.6.6-beta.5 → 10.6.8-beta.0

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
@@ -6296,9 +6296,9 @@ var displayCardBrand = function displayCardBrand(number) {
6296
6296
  return "Mastercard";
6297
6297
  } else if (/^4/.test(number)) {
6298
6298
  return "Visa";
6299
- } else if (/^3[4,7]\d{13}$/.test(number)) {
6299
+ } else if (/^3[4,7]/.test(number)) {
6300
6300
  return "American Express";
6301
- } else return "Unknown";
6301
+ } else return "Unknown Card";
6302
6302
  };
6303
6303
  var checkDeniedCards = function checkDeniedCards(name) {
6304
6304
  switch (name) {
@@ -25084,7 +25084,7 @@ var Dropdown = function Dropdown(_ref13) {
25084
25084
  setInputChangedByAutofill(true);
25085
25085
  }
25086
25086
  },
25087
- padding: "12px",
25087
+ padding: "12px 25px 12px 12px",
25088
25088
  placeholder: getSelection(),
25089
25089
  required: options.required || isRequired,
25090
25090
  role: "combobox",
@@ -49543,7 +49543,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
49543
49543
  }
49544
49544
  }, []);
49545
49545
  var nameOnCardErrors = _defineProperty({}, required.error, "Name is required");
49546
- var creditCardNumberErrors = _defineProperty(_defineProperty(_defineProperty({}, required.error, "Credit card number is required"), hasLength.error, "Credit card number is invalid"), matchesRegex.error, "".concat(displayCardBrand(fields.creditCardNumber.rawValue), " cards are not available for payment"));
49546
+ var creditCardNumberErrors = _defineProperty(_defineProperty(_defineProperty({}, required.error, "Credit card number is required"), hasLength.error, "Credit card number is invalid"), matchesRegex.error, "".concat(displayCardBrand(fields.creditCardNumber.rawValue), " is not accepted"));
49547
49547
  var expirationDateErrors = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, required.error, "Expiration date is required"), hasLength.error, "Expiration date is invalid"), isValidMonth.error, "Expiration month is invalid"), dateAfterToday.error, "Expiration date is invalid");
49548
49548
  var cvvErrors = _defineProperty(_defineProperty({}, required.error, "CVV is required"), hasLength.error, "CVV is invalid");
49549
49549
  var zipCodeErrors = _defineProperty(_defineProperty({}, required.error, "Zip code is required"), hasLength.error, "Zip code is invalid");