@thecb/components 6.1.4-beta.1 → 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 +18 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +18 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/atoms/form-layouts/FormInput.js +2 -1
- package/src/components/molecules/payment-form-card/PaymentFormCard.state.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thecb/components",
|
|
3
|
-
"version": "6.1.4-beta.
|
|
3
|
+
"version": "6.1.4-beta.4",
|
|
4
4
|
"description": "Common lib for CityBase react components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -86,6 +86,6 @@
|
|
|
86
86
|
"ramda": "^0.27.0",
|
|
87
87
|
"react-aria-modal": "^4.0.0",
|
|
88
88
|
"react-pose": "^4.0.10",
|
|
89
|
-
"redux-freeform": "^5.6.0-beta.
|
|
89
|
+
"redux-freeform": "^5.6.0-beta.4"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -114,6 +114,7 @@ const FormInput = ({
|
|
|
114
114
|
customHeight,
|
|
115
115
|
autocomplete,
|
|
116
116
|
extraStyles,
|
|
117
|
+
removeFromValue,
|
|
117
118
|
...props
|
|
118
119
|
}) => {
|
|
119
120
|
const [showPassword, setShowPassword] = useState(false);
|
|
@@ -199,7 +200,7 @@ const FormInput = ({
|
|
|
199
200
|
(field.dirty && field.hasErrors) ||
|
|
200
201
|
(field.hasErrors && showErrors)
|
|
201
202
|
}
|
|
202
|
-
onChange={e => fieldActions.set(e)}
|
|
203
|
+
onChange={e => console.log("e is", e) || fieldActions.set(e)}
|
|
203
204
|
type={type}
|
|
204
205
|
value={field.rawValue}
|
|
205
206
|
pattern={isNum ? "[0-9]*" : ""}
|
|
@@ -31,7 +31,7 @@ const formConfig = {
|
|
|
31
31
|
isValidMonth(0),
|
|
32
32
|
dateAfterToday("MMYY", "month", true)
|
|
33
33
|
],
|
|
34
|
-
constraints: [onlyExpirationDate(), hasLength(0,
|
|
34
|
+
constraints: [onlyExpirationDate(), hasLength(0, 5)]
|
|
35
35
|
},
|
|
36
36
|
cvv: {
|
|
37
37
|
validators: [required(), hasLength(3, 4)],
|