@thecb/components 6.1.4-beta.3 → 6.1.4-beta.4
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 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +2 -1
- package/src/components/molecules/payment-form-card/PaymentFormCard.state.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22542,7 +22542,7 @@ var fallbackValues$i = {
|
|
|
22542
22542
|
};
|
|
22543
22543
|
|
|
22544
22544
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
22545
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles"];
|
|
22545
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocomplete", "extraStyles", "removeFromValue"];
|
|
22546
22546
|
var InputField = styled.input.withConfig({
|
|
22547
22547
|
displayName: "FormInput__InputField",
|
|
22548
22548
|
componentId: "sc-l094r1-0"
|
|
@@ -22626,6 +22626,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22626
22626
|
customHeight = _ref15.customHeight,
|
|
22627
22627
|
autocomplete = _ref15.autocomplete,
|
|
22628
22628
|
extraStyles = _ref15.extraStyles,
|
|
22629
|
+
removeFromValue = _ref15.removeFromValue,
|
|
22629
22630
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
22630
22631
|
|
|
22631
22632
|
var _useState = useState(false),
|
|
@@ -22690,7 +22691,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
22690
22691
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
22691
22692
|
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
|
|
22692
22693
|
onChange: function onChange(e) {
|
|
22693
|
-
return fieldActions.set(e);
|
|
22694
|
+
return console.log("e is", e) || fieldActions.set(e);
|
|
22694
22695
|
},
|
|
22695
22696
|
type: type,
|
|
22696
22697
|
value: field.rawValue,
|
|
@@ -42323,7 +42324,7 @@ var formConfig$8 = {
|
|
|
42323
42324
|
},
|
|
42324
42325
|
expirationDate: {
|
|
42325
42326
|
validators: [required(), hasLength(4, 4), isValidMonth(0), dateAfterToday("MMYY", "month", true)],
|
|
42326
|
-
constraints: [onlyExpirationDate(), hasLength(0,
|
|
42327
|
+
constraints: [onlyExpirationDate(), hasLength(0, 5)]
|
|
42327
42328
|
},
|
|
42328
42329
|
cvv: {
|
|
42329
42330
|
validators: [required(), hasLength(3, 4)],
|