@elliemae/ds-date-range-selector 2.4.3-rc.0 → 2.4.3-rc.11

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.
@@ -27,7 +27,8 @@ const DSDateRangeSelector = _ref => {
27
27
  startDate = null,
28
28
  endDate = null,
29
29
  displayFormatDay = 'D',
30
- disableCustomOption = false
30
+ disableCustomOption = false,
31
+ hasError = false
31
32
  } = _ref;
32
33
  return /*#__PURE__*/_jsx__default["default"](DateRangeSelectorImpl, {
33
34
  className: className,
@@ -40,7 +41,8 @@ const DSDateRangeSelector = _ref => {
40
41
  onChange: onChange,
41
42
  placeholder: placeholder,
42
43
  startDate: startDate,
43
- value: value
44
+ value: value,
45
+ hasError: hasError
44
46
  });
45
47
  };
46
48
  const dateRangeRecurrenceSelectorProps = {
@@ -65,5 +67,6 @@ DateRangeRecurrenceSelectorWithSchema.propTypes = dateRangeRecurrenceSelectorPro
65
67
  exports.CUSTOM_OPTION_VALUE = dropdownPreselectedOptions.CUSTOM_OPTION_VALUE;
66
68
  exports.DropdownOptionsTypes = dropdownPreselectedOptions.DropdownOptionsTypes;
67
69
  exports.dropdownPreselectedOptions = dropdownPreselectedOptions.dropdownPreselectedOptions;
70
+ exports.DSDateRangeSelector = DSDateRangeSelector;
68
71
  exports.DateRangeRecurrenceSelectorWithSchema = DateRangeRecurrenceSelectorWithSchema;
69
72
  exports["default"] = DSDateRangeSelector;
@@ -163,7 +163,8 @@ class DateTimeRecurenceSelectorImpl extends react.Component {
163
163
  displayFormatDay,
164
164
  className,
165
165
  disableCustomOption,
166
- containerProps
166
+ containerProps,
167
+ hasError
167
168
  } = this.props;
168
169
  const {
169
170
  selected,
@@ -195,6 +196,7 @@ class DateTimeRecurenceSelectorImpl extends react.Component {
195
196
  options: options,
196
197
  placeholder: placeholder,
197
198
  value: selected,
199
+ hasError: hasError,
198
200
  keepTypedValue: false // TEMPORARY FIX
199
201
 
200
202
  })), /*#__PURE__*/_jsx__default["default"](DSPopper__default["default"], {
package/cjs/index.js CHANGED
@@ -7,6 +7,7 @@ var dropdownPreselectedOptions = require('./options/dropdownPreselectedOptions.j
7
7
 
8
8
 
9
9
 
10
+ exports.DSDateRangeSelector = DSDateRangeSelector.DSDateRangeSelector;
10
11
  exports.DateRangeRecurrenceSelectorWithSchema = DSDateRangeSelector.DateRangeRecurrenceSelectorWithSchema;
11
- exports["default"] = DSDateRangeSelector["default"];
12
+ exports["default"] = DSDateRangeSelector.DSDateRangeSelector;
12
13
  exports.CUSTOM_OPTION_VALUE = dropdownPreselectedOptions.CUSTOM_OPTION_VALUE;
@@ -19,7 +19,8 @@ const DSDateRangeSelector = _ref => {
19
19
  startDate = null,
20
20
  endDate = null,
21
21
  displayFormatDay = 'D',
22
- disableCustomOption = false
22
+ disableCustomOption = false,
23
+ hasError = false
23
24
  } = _ref;
24
25
  return /*#__PURE__*/_jsx(DateTimeRecurenceSelectorImpl, {
25
26
  className: className,
@@ -32,7 +33,8 @@ const DSDateRangeSelector = _ref => {
32
33
  onChange: onChange,
33
34
  placeholder: placeholder,
34
35
  startDate: startDate,
35
- value: value
36
+ value: value,
37
+ hasError: hasError
36
38
  });
37
39
  };
38
40
  const dateRangeRecurrenceSelectorProps = {
@@ -54,4 +56,4 @@ const dateRangeRecurrenceSelectorProps = {
54
56
  const DateRangeRecurrenceSelectorWithSchema = describe(DSDateRangeSelector);
55
57
  DateRangeRecurrenceSelectorWithSchema.propTypes = dateRangeRecurrenceSelectorProps;
56
58
 
57
- export { DateRangeRecurrenceSelectorWithSchema, DSDateRangeSelector as default };
59
+ export { DSDateRangeSelector, DateRangeRecurrenceSelectorWithSchema, DSDateRangeSelector as default };
@@ -154,7 +154,8 @@ class DateTimeRecurenceSelectorImpl extends Component {
154
154
  displayFormatDay,
155
155
  className,
156
156
  disableCustomOption,
157
- containerProps
157
+ containerProps,
158
+ hasError
158
159
  } = this.props;
159
160
  const {
160
161
  selected,
@@ -186,6 +187,7 @@ class DateTimeRecurenceSelectorImpl extends Component {
186
187
  options: options,
187
188
  placeholder: placeholder,
188
189
  value: selected,
190
+ hasError: hasError,
189
191
  keepTypedValue: false // TEMPORARY FIX
190
192
 
191
193
  })), /*#__PURE__*/_jsx(DSPopper, {
package/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { DateRangeRecurrenceSelectorWithSchema, default } from './DSDateRangeSelector.js';
1
+ export { DSDateRangeSelector, DateRangeRecurrenceSelectorWithSchema, DSDateRangeSelector as default } from './DSDateRangeSelector.js';
2
2
  export { CUSTOM_OPTION_VALUE } from './options/dropdownPreselectedOptions.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-date-range-selector",
3
- "version": "2.4.3-rc.0",
3
+ "version": "2.4.3-rc.11",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Date Range Selector",
6
6
  "module": "./esm/index.js",
@@ -48,11 +48,11 @@
48
48
  "build": "node ../../scripts/build/build.js"
49
49
  },
50
50
  "dependencies": {
51
- "@elliemae/ds-classnames": "2.4.3-rc.0",
52
- "@elliemae/ds-date-picker": "2.4.3-rc.0",
53
- "@elliemae/ds-form": "2.4.3-rc.0",
54
- "@elliemae/ds-icons": "2.4.3-rc.0",
55
- "@elliemae/ds-popper": "2.4.3-rc.0",
51
+ "@elliemae/ds-classnames": "2.4.3-rc.11",
52
+ "@elliemae/ds-date-picker": "2.4.3-rc.11",
53
+ "@elliemae/ds-form": "2.4.3-rc.11",
54
+ "@elliemae/ds-icons": "2.4.3-rc.11",
55
+ "@elliemae/ds-popper": "2.4.3-rc.11",
56
56
  "moment": "~2.29.1",
57
57
  "react-dates": "~21.8.0",
58
58
  "react-desc": "~4.1.3",
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react" />
3
3
  import { DropdownOptionsTypes, dropdownPreselectedOptions, CUSTOM_OPTION_VALUE } from './options/dropdownPreselectedOptions';
4
4
  declare const DSDateRangeSelector: {
5
- ({ containerProps, className, preselectedOptions, onChange, placeholder, value, customOptionRender, startDate, endDate, displayFormatDay, disableCustomOption, }: {
5
+ ({ containerProps, className, preselectedOptions, onChange, placeholder, value, customOptionRender, startDate, endDate, displayFormatDay, disableCustomOption, hasError, }: {
6
6
  containerProps?: {} | undefined;
7
7
  className?: string | undefined;
8
8
  preselectedOptions?: {
@@ -22,6 +22,7 @@ declare const DSDateRangeSelector: {
22
22
  endDate?: null | undefined;
23
23
  displayFormatDay?: string | undefined;
24
24
  disableCustomOption?: boolean | undefined;
25
+ hasError?: boolean | undefined;
25
26
  }): JSX.Element;
26
27
  propTypes: {
27
28
  containerProps: {
@@ -83,11 +84,11 @@ declare const DSDateRangeSelector: {
83
84
  };
84
85
  };
85
86
  };
86
- export { CUSTOM_OPTION_VALUE, dropdownPreselectedOptions, DropdownOptionsTypes, };
87
+ export { CUSTOM_OPTION_VALUE, dropdownPreselectedOptions, DropdownOptionsTypes };
87
88
  declare const DateRangeRecurrenceSelectorWithSchema: {
88
89
  (props?: unknown): JSX.Element;
89
90
  propTypes: unknown;
90
91
  toTypescript: () => import("react-desc").TypescriptSchema;
91
92
  };
92
- export { DateRangeRecurrenceSelectorWithSchema };
93
+ export { DateRangeRecurrenceSelectorWithSchema, DSDateRangeSelector };
93
94
  export default DSDateRangeSelector;
package/types/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { default, DateRangeRecurrenceSelectorWithSchema, } from './DSDateRangeSelector';
1
+ export { default, DateRangeRecurrenceSelectorWithSchema, DSDateRangeSelector } from './DSDateRangeSelector';
2
2
  export { CUSTOM_OPTION_VALUE } from './DSDateRangeSelector';