@thecb/components 6.1.3 → 6.1.4-beta.3

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.3",
3
+ "version": "6.1.4-beta.3",
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.5.0"
89
+ "redux-freeform": "^5.6.0-beta.4"
90
90
  }
91
91
  }
@@ -6,7 +6,8 @@ import {
6
6
  matchesRegex,
7
7
  validateWhen,
8
8
  dateAfterToday,
9
- isValidMonth
9
+ isValidMonth,
10
+ onlyExpirationDate
10
11
  } from "redux-freeform";
11
12
 
12
13
  //TODO: Will make zip code able to have more than 5 digits once we add in the FormattedInput because it will have issues with format of 60606-1111.
@@ -30,7 +31,7 @@ const formConfig = {
30
31
  isValidMonth(0),
31
32
  dateAfterToday("MMYY", "month", true)
32
33
  ],
33
- constraints: [onlyIntegers(), hasLength(0, 4)]
34
+ constraints: [onlyExpirationDate(), hasLength(0, 4)]
34
35
  },
35
36
  cvv: {
36
37
  validators: [required(), hasLength(3, 4)],