@elliemae/ds-time-picker 2.0.0-next.3 → 2.0.0-next.7
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/cjs/PickerPanel.js +5 -4
- package/cjs/TimePickerImpl.js +2 -1
- package/esm/PickerPanel.js +5 -4
- package/esm/TimePickerImpl.js +2 -1
- package/package.json +7 -7
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
package/cjs/PickerPanel.js
CHANGED
|
@@ -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 dsClassnames = require('@elliemae/ds-classnames');
|
|
@@ -308,7 +309,7 @@ class PickerPanel extends React.Component {
|
|
|
308
309
|
innerRef: this.selectedOptionRef
|
|
309
310
|
}, void 0, _SelectedCircle || (_SelectedCircle = /*#__PURE__*/_jsx__default["default"](SelectedCircle, {}))), /*#__PURE__*/_jsx__default["default"](ArrowButtonContainer, {}, void 0, /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread(_objectSpread({}, arrowProps), {}, {
|
|
310
311
|
"aria-label": "Chevron Up",
|
|
311
|
-
"data-testid":
|
|
312
|
+
"data-testid": "".concat(type, "-chevron-up"),
|
|
312
313
|
disabled: activeIndex <= 0,
|
|
313
314
|
icon: _ChevronSmallUp || (_ChevronSmallUp = /*#__PURE__*/_jsx__default["default"](ChevronSmallUp__default["default"], {})),
|
|
314
315
|
onClick: this.handleStepMoveUp,
|
|
@@ -319,10 +320,10 @@ class PickerPanel extends React.Component {
|
|
|
319
320
|
height: this.listHeight
|
|
320
321
|
}
|
|
321
322
|
}, void 0, /*#__PURE__*/_jsx__default["default"](PickerItemList, {
|
|
322
|
-
"data-testid":
|
|
323
|
+
"data-testid": "".concat(type, "-list"),
|
|
323
324
|
innerRef: this.pickerListRef,
|
|
324
325
|
style: {
|
|
325
|
-
transform:
|
|
326
|
+
transform: "translateY(".concat(listYPosition, "px)")
|
|
326
327
|
}
|
|
327
328
|
}, void 0, options.map((option, index) => {
|
|
328
329
|
const value = this.getOptionValue(option);
|
|
@@ -367,7 +368,7 @@ class PickerPanel extends React.Component {
|
|
|
367
368
|
}, value, label);
|
|
368
369
|
}))), /*#__PURE__*/_jsx__default["default"](ArrowButtonContainer, {}, void 0, /*#__PURE__*/jsxRuntime.jsx(DSButton__default["default"], _objectSpread(_objectSpread({}, arrowProps), {}, {
|
|
369
370
|
"aria-label": "Chevron Down",
|
|
370
|
-
"data-testid":
|
|
371
|
+
"data-testid": "".concat(type, "-chevron-down"),
|
|
371
372
|
disabled: activeIndex >= options.length - 1,
|
|
372
373
|
icon: _ChevronSmallDown || (_ChevronSmallDown = /*#__PURE__*/_jsx__default["default"](ChevronSmallDown__default["default"], {})),
|
|
373
374
|
onClick: this.handleStepMoveDown,
|
package/cjs/TimePickerImpl.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
4
4
|
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
5
5
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
6
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
6
7
|
var React = require('react');
|
|
7
8
|
var moment = require('moment');
|
|
8
9
|
var memoizeOne = require('memoize-one');
|
|
@@ -117,7 +118,7 @@ const TimePickerImpl = ({
|
|
|
117
118
|
to: utils.convertTimeString(disabledTimes.to)
|
|
118
119
|
};
|
|
119
120
|
return /*#__PURE__*/_jsx__default["default"](TimePickerContainer, {
|
|
120
|
-
className:
|
|
121
|
+
className: "".concat(className, " variant-").concat(!disabled ? 'default' : 'disabled'),
|
|
121
122
|
containerProps: containerProps,
|
|
122
123
|
disabled: disabled,
|
|
123
124
|
rightAddon: /*#__PURE__*/_jsx__default["default"](TimePickerDropdown, {
|
package/esm/PickerPanel.js
CHANGED
|
@@ -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, { Component } from 'react';
|
|
4
5
|
import { findIndex } from 'lodash';
|
|
5
6
|
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
@@ -296,7 +297,7 @@ class PickerPanel extends Component {
|
|
|
296
297
|
innerRef: this.selectedOptionRef
|
|
297
298
|
}, void 0, _SelectedCircle || (_SelectedCircle = /*#__PURE__*/_jsx(SelectedCircle, {}))), /*#__PURE__*/_jsx(ArrowButtonContainer, {}, void 0, /*#__PURE__*/jsx(DSButton, _objectSpread(_objectSpread({}, arrowProps), {}, {
|
|
298
299
|
"aria-label": "Chevron Up",
|
|
299
|
-
"data-testid":
|
|
300
|
+
"data-testid": "".concat(type, "-chevron-up"),
|
|
300
301
|
disabled: activeIndex <= 0,
|
|
301
302
|
icon: _ChevronSmallUp || (_ChevronSmallUp = /*#__PURE__*/_jsx(ChevronSmallUp, {})),
|
|
302
303
|
onClick: this.handleStepMoveUp,
|
|
@@ -307,10 +308,10 @@ class PickerPanel extends Component {
|
|
|
307
308
|
height: this.listHeight
|
|
308
309
|
}
|
|
309
310
|
}, void 0, /*#__PURE__*/_jsx(PickerItemList, {
|
|
310
|
-
"data-testid":
|
|
311
|
+
"data-testid": "".concat(type, "-list"),
|
|
311
312
|
innerRef: this.pickerListRef,
|
|
312
313
|
style: {
|
|
313
|
-
transform:
|
|
314
|
+
transform: "translateY(".concat(listYPosition, "px)")
|
|
314
315
|
}
|
|
315
316
|
}, void 0, options.map((option, index) => {
|
|
316
317
|
const value = this.getOptionValue(option);
|
|
@@ -355,7 +356,7 @@ class PickerPanel extends Component {
|
|
|
355
356
|
}, value, label);
|
|
356
357
|
}))), /*#__PURE__*/_jsx(ArrowButtonContainer, {}, void 0, /*#__PURE__*/jsx(DSButton, _objectSpread(_objectSpread({}, arrowProps), {}, {
|
|
357
358
|
"aria-label": "Chevron Down",
|
|
358
|
-
"data-testid":
|
|
359
|
+
"data-testid": "".concat(type, "-chevron-down"),
|
|
359
360
|
disabled: activeIndex >= options.length - 1,
|
|
360
361
|
icon: _ChevronSmallDown || (_ChevronSmallDown = /*#__PURE__*/_jsx(ChevronSmallDown, {})),
|
|
361
362
|
onClick: this.handleStepMoveDown,
|
package/esm/TimePickerImpl.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
2
2
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import { useState, useRef, useEffect } from 'react';
|
|
5
6
|
import moment from 'moment';
|
|
6
7
|
import memoizeOne from 'memoize-one';
|
|
@@ -105,7 +106,7 @@ const TimePickerImpl = ({
|
|
|
105
106
|
to: convertTimeString(disabledTimes.to)
|
|
106
107
|
};
|
|
107
108
|
return /*#__PURE__*/_jsx(TimePickerContainer, {
|
|
108
|
-
className:
|
|
109
|
+
className: "".concat(className, " variant-").concat(!disabled ? 'default' : 'disabled'),
|
|
109
110
|
containerProps: containerProps,
|
|
110
111
|
disabled: disabled,
|
|
111
112
|
rightAddon: /*#__PURE__*/_jsx(TimePickerDropdown, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-time-picker",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Time Picker",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"build": "node ../../scripts/build/build.js"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@elliemae/ds-button": "2.0.0-next.
|
|
68
|
-
"@elliemae/ds-classnames": "2.0.0-next.
|
|
69
|
-
"@elliemae/ds-form": "2.0.0-next.
|
|
70
|
-
"@elliemae/ds-icons": "2.0.0-next.
|
|
71
|
-
"@elliemae/ds-popper": "2.0.0-next.
|
|
72
|
-
"@elliemae/ds-utilities": "2.0.0-next.
|
|
67
|
+
"@elliemae/ds-button": "2.0.0-next.7",
|
|
68
|
+
"@elliemae/ds-classnames": "2.0.0-next.7",
|
|
69
|
+
"@elliemae/ds-form": "2.0.0-next.7",
|
|
70
|
+
"@elliemae/ds-icons": "2.0.0-next.7",
|
|
71
|
+
"@elliemae/ds-popper": "2.0.0-next.7",
|
|
72
|
+
"@elliemae/ds-utilities": "2.0.0-next.7",
|
|
73
73
|
"memoize-one": "~5.1.1",
|
|
74
74
|
"moment": "~2.29.1",
|
|
75
75
|
"prop-types": "~15.7.2",
|
package/cjs/package.json
DELETED