@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "6.1.4-beta.1",
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.2"
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, 4)]
34
+ constraints: [onlyExpirationDate(), hasLength(0, 5)]
35
35
  },
36
36
  cvv: {
37
37
  validators: [required(), hasLength(3, 4)],