@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.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/atoms/dropdown/Dropdown.js +1 -1
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +1 -1
- package/src/components/molecules/payment-form-card/PaymentFormCard.stories.js +1 -10
- package/src/util/general.js +2 -2
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6304,9 +6304,9 @@ var displayCardBrand = function displayCardBrand(number) {
|
|
|
6304
6304
|
return "Mastercard";
|
|
6305
6305
|
} else if (/^4/.test(number)) {
|
|
6306
6306
|
return "Visa";
|
|
6307
|
-
} else if (/^3[4,7]
|
|
6307
|
+
} else if (/^3[4,7]/.test(number)) {
|
|
6308
6308
|
return "American Express";
|
|
6309
|
-
} else return "Unknown";
|
|
6309
|
+
} else return "Unknown Card";
|
|
6310
6310
|
};
|
|
6311
6311
|
var checkDeniedCards = function checkDeniedCards(name) {
|
|
6312
6312
|
switch (name) {
|
|
@@ -25092,7 +25092,7 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
25092
25092
|
setInputChangedByAutofill(true);
|
|
25093
25093
|
}
|
|
25094
25094
|
},
|
|
25095
|
-
padding: "12px",
|
|
25095
|
+
padding: "12px 25px 12px 12px",
|
|
25096
25096
|
placeholder: getSelection(),
|
|
25097
25097
|
required: options.required || isRequired,
|
|
25098
25098
|
role: "combobox",
|
|
@@ -49551,7 +49551,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
49551
49551
|
}
|
|
49552
49552
|
}, []);
|
|
49553
49553
|
var nameOnCardErrors = _defineProperty({}, required.error, "Name is required");
|
|
49554
|
-
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), "
|
|
49554
|
+
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"));
|
|
49555
49555
|
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");
|
|
49556
49556
|
var cvvErrors = _defineProperty(_defineProperty({}, required.error, "CVV is required"), hasLength.error, "CVV is invalid");
|
|
49557
49557
|
var zipCodeErrors = _defineProperty(_defineProperty({}, required.error, "Zip code is required"), hasLength.error, "Zip code is invalid");
|