pcm-shared-components 2.0.186 → 2.0.187

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.
@@ -29,7 +29,6 @@ export const DateCalendar = props => {
29
29
  isDateBlocked,
30
30
  focusedInput,
31
31
  onDatesChange,
32
- onFocusChange,
33
32
  startDate,
34
33
  endDate,
35
34
  variant,
@@ -64,15 +63,6 @@ export const DateCalendar = props => {
64
63
  console.error(error);
65
64
  }
66
65
  };
67
- const handleOnFocusChange = data => {
68
- try {
69
- if (typeof onFocusChange === 'function') {
70
- onFocusChange(data);
71
- }
72
- } catch (error) {
73
- console.error(error);
74
- }
75
- };
76
66
  const overrideCalendarTheme = {};
77
67
  return /*#__PURE__*/React.createElement("div", {
78
68
  className: `m-auto pt-0 md:pt-0 ${variant === 'standard' ? 'bottom_border' : undefined}`,
@@ -118,7 +108,6 @@ export const DateCalendar = props => {
118
108
  vertical: vertical,
119
109
  numberOfMonths: numberOfMonthsVisible,
120
110
  onDatesChange: handleOnDatesChange,
121
- onFocusChange: handleOnFocusChange,
122
111
  startDate: startDate // Date or null
123
112
  ,
124
113
  endDate: endDate // Date or null
@@ -136,7 +125,6 @@ DateCalendar.defaultProps = {
136
125
  onDayRender: undefined,
137
126
  isDateBlocked: undefined,
138
127
  onDatesChange: undefined,
139
- onFocusChange: undefined,
140
128
  startDate: null,
141
129
  endDate: null,
142
130
  focusedInput: null,
@@ -163,8 +151,6 @@ DateCalendar.propTypes = {
163
151
  isDateBlocked: PropTypes.func,
164
152
  /** Provides a (data) props to the function and doesn't expect any return value*/
165
153
  onDatesChange: PropTypes.func,
166
- /** Provides a instance of focusedInput ('START_DATE','END_DATE',null) prop to the function and doesn't expect any return value*/
167
- onFocusChange: PropTypes.func,
168
154
  /** The stat date of the calendar */
169
155
  startDate: PropTypes.instanceOf(Date),
170
156
  /** The end date of the calendar */
@@ -39,19 +39,10 @@ const DateCalendarComp = props => {
39
39
  const handleOnDatesChange = data => {
40
40
  setState(data);
41
41
  };
42
- const handleOnFocusChange = data => {
43
- setState(previousState => {
44
- return {
45
- ...previousState,
46
- focusedInput: data
47
- };
48
- });
49
- };
50
42
  return /*#__PURE__*/React.createElement(DateCalendar, _extends({
51
43
  onDayRender: date => handleOnDayRender(date),
52
44
  isDateBlocked: handleIsDateBlocked,
53
45
  onDatesChange: handleOnDatesChange,
54
- onFocusChange: handleOnFocusChange,
55
46
  startDate: state.startDate,
56
47
  endDate: state.endDate,
57
48
  focusedInput: state.focusedInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "2.0.186",
3
+ "version": "2.0.187",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {