@thecb/components 6.1.4-beta.4 → 6.1.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.4",
3
+ "version": "6.1.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.4"
89
+ "redux-freeform": "^5.5.0"
90
90
  }
91
91
  }
@@ -114,7 +114,6 @@ const FormInput = ({
114
114
  customHeight,
115
115
  autocomplete,
116
116
  extraStyles,
117
- removeFromValue,
118
117
  ...props
119
118
  }) => {
120
119
  const [showPassword, setShowPassword] = useState(false);
@@ -200,7 +199,7 @@ const FormInput = ({
200
199
  (field.dirty && field.hasErrors) ||
201
200
  (field.hasErrors && showErrors)
202
201
  }
203
- onChange={e => console.log("e is", e) || fieldActions.set(e)}
202
+ onChange={e => fieldActions.set(e)}
204
203
  type={type}
205
204
  value={field.rawValue}
206
205
  pattern={isNum ? "[0-9]*" : ""}
@@ -6,8 +6,7 @@ import {
6
6
  matchesRegex,
7
7
  validateWhen,
8
8
  dateAfterToday,
9
- isValidMonth,
10
- onlyExpirationDate
9
+ isValidMonth
11
10
  } from "redux-freeform";
12
11
 
13
12
  //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.
@@ -31,7 +30,7 @@ const formConfig = {
31
30
  isValidMonth(0),
32
31
  dateAfterToday("MMYY", "month", true)
33
32
  ],
34
- constraints: [onlyExpirationDate(), hasLength(0, 5)]
33
+ constraints: [onlyIntegers(), hasLength(0, 4)]
35
34
  },
36
35
  cvv: {
37
36
  validators: [required(), hasLength(3, 4)],
@@ -41,7 +41,8 @@ const PeriscopeDashboardIframe = ({
41
41
  periscopeDataSuccess,
42
42
  periscopeDataFailure,
43
43
  periscopeDataRequestSuccess,
44
- periscopeDataRequestFailure
44
+ periscopeDataRequestFailure,
45
+ timerMS = 20000
45
46
  }) => {
46
47
  const [height, setHeight] = useState(0);
47
48
  let time = { timer: null };
@@ -51,7 +52,7 @@ const PeriscopeDashboardIframe = ({
51
52
  if (!periscopeDataSuccess) {
52
53
  periscopeDataRequestFailure();
53
54
  }
54
- }, 10000);
55
+ }, timerMS);
55
56
  return () => clearTimeout(time.timer);
56
57
  }, [periscopeDataSuccess]);
57
58
 
package/src/.DS_Store DELETED
Binary file