@elliemae/ds-date-picker 2.0.0-next.3 → 2.0.0-next.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.
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var _jsx = require('@babel/runtime/helpers/jsx');
7
+ require('core-js/modules/web.dom-collections.iterator.js');
7
8
  require('react');
8
9
  var reactDesc = require('react-desc');
9
10
  require('react-dates/initialize');
@@ -153,10 +154,7 @@ const datePickerProps = {
153
154
  firstDayOfWeek: reactDesc.PropTypes.number.description('first day of week').defaultValue(0),
154
155
  keepOpenOnDateSelect: reactDesc.PropTypes.bool.description('keep picker open when a date is selected').defaultValue(false),
155
156
  hideKeyboardShortcutsPanel: reactDesc.PropTypes.bool.description('hide keyabord shortcut panel or not').defaultValue(true),
156
- onChange: reactDesc.PropTypes.func.description(`
157
- function executed when input changes. This could trigger with invalid dates. It returns a string and a moment
158
- if the date is valid.
159
- `),
157
+ onChange: reactDesc.PropTypes.func.description("\n function executed when input changes. This could trigger with invalid dates. It returns a string and a moment\n if the date is valid.\n "),
160
158
  onDateChange: reactDesc.PropTypes.func.description('function executed when date changes. This doesnt trigger with invalid dates. It returns a moment object'),
161
159
  onPrevMonthClick: reactDesc.PropTypes.func.description('function executed when clicking on prev month button'),
162
160
  onNextMonthClick: reactDesc.PropTypes.func.description('function executed when clicking on next month button'),
@@ -2,6 +2,7 @@
2
2
 
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
4
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var moment = require('moment');
7
8
  var DSInputGroup = require('@elliemae/ds-basic/form/InputGroup');
@@ -2,6 +2,7 @@
2
2
 
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
4
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var lodash = require('lodash');
7
8
  var PropTypes = require('prop-types');
@@ -12,9 +12,9 @@ const Day = ({
12
12
  date = ''
13
13
  }) => /*#__PURE__*/_jsx__default["default"]("div", {
14
14
  className: className,
15
- "data-testid": `datepicker-day-${date}`
15
+ "data-testid": "datepicker-day-".concat(date)
16
16
  }, void 0, /*#__PURE__*/_jsx__default["default"]("div", {
17
- className: `${className}-half`,
17
+ className: "".concat(className, "-half"),
18
18
  "data-testid": "datepicker-day"
19
19
  }, void 0, date));
20
20
 
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
+ require('core-js/modules/web.dom-collections.iterator.js');
4
5
  var React = require('react');
5
6
  var moment = require('moment');
6
7
  var DSDateInput = require('@elliemae/ds-basic/form/DateInputV2');
@@ -2,6 +2,7 @@
2
2
 
3
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
4
  var _jsx = require('@babel/runtime/helpers/jsx');
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var reactDates = require('react-dates');
7
8
  var moment = require('moment');
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
+ require('core-js/modules/web.dom-collections.iterator.js');
4
5
  var React = require('react');
5
6
  var moment = require('moment');
6
7
  var DSDateInput = require('@elliemae/ds-basic/form/DateInputV2');
@@ -2,6 +2,7 @@
2
2
 
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
4
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var reactDates = require('react-dates');
7
8
  var moment = require('moment');
@@ -32,11 +32,11 @@ const keyboardBackwardNavigationInstructions = 'Navigate backward to interact wi
32
32
 
33
33
  const chooseAvailableStartDate = ({
34
34
  date
35
- }) => `Choose ${date} as your check-in date. It’s available.`;
35
+ }) => "Choose ".concat(date, " as your check-in date. It\u2019s available.");
36
36
 
37
37
  const chooseAvailableEndDate = ({
38
38
  date
39
- }) => `Choose ${date} as your check-out date. It’s available.`;
39
+ }) => "Choose ".concat(date, " as your check-out date. It\u2019s available.");
40
40
 
41
41
  const chooseAvailableDate = ({
42
42
  date
@@ -44,19 +44,19 @@ const chooseAvailableDate = ({
44
44
 
45
45
  const dateIsUnavailable = ({
46
46
  date
47
- }) => `Not available. ${date}`;
47
+ }) => "Not available. ".concat(date);
48
48
 
49
49
  const dateIsSelected = ({
50
50
  date
51
- }) => `Selected. ${date}`;
51
+ }) => "Selected. ".concat(date);
52
52
 
53
53
  const dateIsSelectedAsStartDate = ({
54
54
  date
55
- }) => `Selected as start date. ${date}`;
55
+ }) => "Selected as start date. ".concat(date);
56
56
 
57
57
  const dateIsSelectedAsEndDate = ({
58
58
  date
59
- }) => `Selected as end date. ${date}`;
59
+ }) => "Selected as end date. ".concat(date);
60
60
 
61
61
  var defaultPhrases = {
62
62
  calendarLabel,
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import 'react';
4
5
  import { PropTypes, describe } from 'react-desc';
5
6
  import 'react-dates/initialize';
@@ -144,10 +145,7 @@ const datePickerProps = {
144
145
  firstDayOfWeek: PropTypes.number.description('first day of week').defaultValue(0),
145
146
  keepOpenOnDateSelect: PropTypes.bool.description('keep picker open when a date is selected').defaultValue(false),
146
147
  hideKeyboardShortcutsPanel: PropTypes.bool.description('hide keyabord shortcut panel or not').defaultValue(true),
147
- onChange: PropTypes.func.description(`
148
- function executed when input changes. This could trigger with invalid dates. It returns a string and a moment
149
- if the date is valid.
150
- `),
148
+ onChange: PropTypes.func.description("\n function executed when input changes. This could trigger with invalid dates. It returns a string and a moment\n if the date is valid.\n "),
151
149
  onDateChange: PropTypes.func.description('function executed when date changes. This doesnt trigger with invalid dates. It returns a moment object'),
152
150
  onPrevMonthClick: PropTypes.func.description('function executed when clicking on prev month button'),
153
151
  onNextMonthClick: PropTypes.func.description('function executed when clicking on next month button'),
@@ -1,5 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import React from 'react';
4
5
  import moment from 'moment';
5
6
  import DSInputGroup from '@elliemae/ds-basic/form/InputGroup';
@@ -1,5 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import React from 'react';
4
5
  import { debounce } from 'lodash';
5
6
  import PropTypes from 'prop-types';
@@ -6,9 +6,9 @@ const Day = ({
6
6
  date = ''
7
7
  }) => /*#__PURE__*/_jsx("div", {
8
8
  className: className,
9
- "data-testid": `datepicker-day-${date}`
9
+ "data-testid": "datepicker-day-".concat(date)
10
10
  }, void 0, /*#__PURE__*/_jsx("div", {
11
- className: `${className}-half`,
11
+ className: "".concat(className, "-half"),
12
12
  "data-testid": "datepicker-day"
13
13
  }, void 0, date));
14
14
 
@@ -1,4 +1,5 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { useState, useEffect } from 'react';
3
4
  import moment from 'moment';
4
5
  import DSDateInput from '@elliemae/ds-basic/form/DateInputV2';
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import { useState, useRef } from 'react';
4
5
  import { DayPickerRangeController } from 'react-dates';
5
6
  import moment from 'moment';
@@ -1,4 +1,5 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { useState, useRef, useEffect } from 'react';
3
4
  import moment from 'moment';
4
5
  import DSDateInput from '@elliemae/ds-basic/form/DateInputV2';
@@ -1,5 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import { useState, useRef } from 'react';
4
5
  import { DayPickerSingleDateController } from 'react-dates';
5
6
  import moment from 'moment';
@@ -28,11 +28,11 @@ const keyboardBackwardNavigationInstructions = 'Navigate backward to interact wi
28
28
 
29
29
  const chooseAvailableStartDate = ({
30
30
  date
31
- }) => `Choose ${date} as your check-in date. It’s available.`;
31
+ }) => "Choose ".concat(date, " as your check-in date. It\u2019s available.");
32
32
 
33
33
  const chooseAvailableEndDate = ({
34
34
  date
35
- }) => `Choose ${date} as your check-out date. It’s available.`;
35
+ }) => "Choose ".concat(date, " as your check-out date. It\u2019s available.");
36
36
 
37
37
  const chooseAvailableDate = ({
38
38
  date
@@ -40,19 +40,19 @@ const chooseAvailableDate = ({
40
40
 
41
41
  const dateIsUnavailable = ({
42
42
  date
43
- }) => `Not available. ${date}`;
43
+ }) => "Not available. ".concat(date);
44
44
 
45
45
  const dateIsSelected = ({
46
46
  date
47
- }) => `Selected. ${date}`;
47
+ }) => "Selected. ".concat(date);
48
48
 
49
49
  const dateIsSelectedAsStartDate = ({
50
50
  date
51
- }) => `Selected as start date. ${date}`;
51
+ }) => "Selected as start date. ".concat(date);
52
52
 
53
53
  const dateIsSelectedAsEndDate = ({
54
54
  date
55
- }) => `Selected as end date. ${date}`;
55
+ }) => "Selected as end date. ".concat(date);
56
56
 
57
57
  var defaultPhrases = {
58
58
  calendarLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-date-picker",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.0-next.4",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Date Picker",
6
6
  "module": "./esm/index.js",
@@ -92,9 +92,9 @@
92
92
  "build": "node ../../scripts/build/build.js"
93
93
  },
94
94
  "dependencies": {
95
- "@elliemae/ds-basic": "2.0.0-next.3",
96
- "@elliemae/ds-classnames": "2.0.0-next.3",
97
- "@elliemae/ds-form": "2.0.0-next.3",
95
+ "@elliemae/ds-basic": "2.0.0-next.4",
96
+ "@elliemae/ds-classnames": "2.0.0-next.4",
97
+ "@elliemae/ds-form": "2.0.0-next.4",
98
98
  "moment": "~2.29.1",
99
99
  "prop-types": "~15.7.2",
100
100
  "react-dates": "~21.8.0",
package/cjs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }
package/esm/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }