@commercetools-uikit/date-time-input 17.0.0 → 17.1.0
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/dist/commercetools-uikit-date-time-input.cjs.d.ts +1 -1
- package/dist/commercetools-uikit-date-time-input.cjs.dev.js +12 -13
- package/dist/commercetools-uikit-date-time-input.cjs.prod.js +12 -13
- package/dist/commercetools-uikit-date-time-input.esm.js +12 -13
- package/package.json +15 -15
- package/dist/commercetools-uikit-date-time-input.cjs.d.ts.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from "./declarations/src/index";
|
|
2
2
|
export { default } from "./declarations/src/index";
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy11aWtpdC1kYXRlLXRpbWUtaW5wdXQuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
|
@@ -14,9 +14,9 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
14
14
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
15
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
16
16
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
17
|
-
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
18
17
|
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
19
18
|
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
19
|
+
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
20
20
|
var _pt = require('prop-types');
|
|
21
21
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
22
22
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -70,10 +70,10 @@ DateCalendarTimeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
70
70
|
DateCalendarTimeInput.displayName = 'DateCalendarTimeInput';
|
|
71
71
|
var TimeInput = DateCalendarTimeInput;
|
|
72
72
|
|
|
73
|
-
function ownKeys(
|
|
74
|
-
function _objectSpread(
|
|
75
|
-
function
|
|
76
|
-
function _isNativeReflectConstruct() {
|
|
73
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
74
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
75
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
76
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
77
77
|
const activationTypes = [Downshift__default["default"].stateChangeTypes.keyDownEnter, Downshift__default["default"].stateChangeTypes.clickItem];
|
|
78
78
|
const preventDownshiftDefault = event => {
|
|
79
79
|
event.nativeEvent.preventDownshiftDefault = true;
|
|
@@ -89,14 +89,13 @@ const createBlurHandler = timeInputRef => event => {
|
|
|
89
89
|
};
|
|
90
90
|
let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
91
91
|
_inherits(DateTimeInput, _Component);
|
|
92
|
-
var _super = _createSuper(DateTimeInput);
|
|
93
92
|
function DateTimeInput() {
|
|
94
93
|
var _this;
|
|
95
94
|
_classCallCheck(this, DateTimeInput);
|
|
96
95
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
97
96
|
args[_key] = arguments[_key];
|
|
98
97
|
}
|
|
99
|
-
_this =
|
|
98
|
+
_this = _callSuper(this, DateTimeInput, [...args]);
|
|
100
99
|
_this.inputRef = /*#__PURE__*/react$1.createRef();
|
|
101
100
|
_this.timeInputRef = /*#__PURE__*/react$1.createRef();
|
|
102
101
|
_this.state = {
|
|
@@ -226,8 +225,8 @@ let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
|
226
225
|
}, () => {
|
|
227
226
|
if (_includesInstanceProperty__default["default"](activationTypes).call(activationTypes, changes.type)) {
|
|
228
227
|
var _this$timeInputRef$cu, _this$timeInputRef$cu2;
|
|
229
|
-
(_this$timeInputRef$cu = this.timeInputRef.current) === null || _this$timeInputRef$cu === void 0
|
|
230
|
-
(_this$timeInputRef$cu2 = this.timeInputRef.current) === null || _this$timeInputRef$cu2 === void 0
|
|
228
|
+
(_this$timeInputRef$cu = this.timeInputRef.current) === null || _this$timeInputRef$cu === void 0 || _this$timeInputRef$cu.focus();
|
|
229
|
+
(_this$timeInputRef$cu2 = this.timeInputRef.current) === null || _this$timeInputRef$cu2 === void 0 || _this$timeInputRef$cu2.setSelectionRange(0, this.state.timeString.length);
|
|
231
230
|
}
|
|
232
231
|
});
|
|
233
232
|
},
|
|
@@ -382,14 +381,14 @@ let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
|
382
381
|
if (event.key === 'ArrowUp') {
|
|
383
382
|
var _this$inputRef$curren2;
|
|
384
383
|
setHighlightedIndex(-1);
|
|
385
|
-
(_this$inputRef$curren2 = this.inputRef.current) === null || _this$inputRef$curren2 === void 0
|
|
384
|
+
(_this$inputRef$curren2 = this.inputRef.current) === null || _this$inputRef$curren2 === void 0 || _this$inputRef$curren2.focus();
|
|
386
385
|
return;
|
|
387
386
|
}
|
|
388
387
|
if (event.key === 'Enter') {
|
|
389
388
|
var _this$inputRef$curren3, _this$inputRef$curren4;
|
|
390
389
|
setHighlightedIndex(-1);
|
|
391
|
-
(_this$inputRef$curren3 = this.inputRef.current) === null || _this$inputRef$curren3 === void 0
|
|
392
|
-
(_this$inputRef$curren4 = this.inputRef.current) === null || _this$inputRef$curren4 === void 0
|
|
390
|
+
(_this$inputRef$curren3 = this.inputRef.current) === null || _this$inputRef$curren3 === void 0 || _this$inputRef$curren3.focus();
|
|
391
|
+
(_this$inputRef$curren4 = this.inputRef.current) === null || _this$inputRef$curren4 === void 0 || _this$inputRef$curren4.setSelectionRange(0, 100);
|
|
393
392
|
closeMenu();
|
|
394
393
|
}
|
|
395
394
|
}
|
|
@@ -424,7 +423,7 @@ DateTimeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
424
423
|
var dateTimeInput = reactIntl.injectIntl(DateTimeInput);
|
|
425
424
|
|
|
426
425
|
// NOTE: This string will be replaced on build time with the package version.
|
|
427
|
-
var version = "17.
|
|
426
|
+
var version = "17.1.0";
|
|
428
427
|
|
|
429
428
|
exports["default"] = dateTimeInput;
|
|
430
429
|
exports.version = version;
|
|
@@ -14,9 +14,9 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
|
|
|
14
14
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
15
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
16
16
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
17
|
-
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
18
17
|
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
19
18
|
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
19
|
+
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
20
20
|
require('prop-types');
|
|
21
21
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
22
22
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -66,10 +66,10 @@ DateCalendarTimeInput.propTypes = {};
|
|
|
66
66
|
DateCalendarTimeInput.displayName = 'DateCalendarTimeInput';
|
|
67
67
|
var TimeInput = DateCalendarTimeInput;
|
|
68
68
|
|
|
69
|
-
function ownKeys(
|
|
70
|
-
function _objectSpread(
|
|
71
|
-
function
|
|
72
|
-
function _isNativeReflectConstruct() {
|
|
69
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
70
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
71
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
72
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
73
73
|
const activationTypes = [Downshift__default["default"].stateChangeTypes.keyDownEnter, Downshift__default["default"].stateChangeTypes.clickItem];
|
|
74
74
|
const preventDownshiftDefault = event => {
|
|
75
75
|
event.nativeEvent.preventDownshiftDefault = true;
|
|
@@ -85,14 +85,13 @@ const createBlurHandler = timeInputRef => event => {
|
|
|
85
85
|
};
|
|
86
86
|
let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
87
87
|
_inherits(DateTimeInput, _Component);
|
|
88
|
-
var _super = _createSuper(DateTimeInput);
|
|
89
88
|
function DateTimeInput() {
|
|
90
89
|
var _this;
|
|
91
90
|
_classCallCheck(this, DateTimeInput);
|
|
92
91
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
93
92
|
args[_key] = arguments[_key];
|
|
94
93
|
}
|
|
95
|
-
_this =
|
|
94
|
+
_this = _callSuper(this, DateTimeInput, [...args]);
|
|
96
95
|
_this.inputRef = /*#__PURE__*/react$1.createRef();
|
|
97
96
|
_this.timeInputRef = /*#__PURE__*/react$1.createRef();
|
|
98
97
|
_this.state = {
|
|
@@ -220,8 +219,8 @@ let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
|
220
219
|
}, () => {
|
|
221
220
|
if (_includesInstanceProperty__default["default"](activationTypes).call(activationTypes, changes.type)) {
|
|
222
221
|
var _this$timeInputRef$cu, _this$timeInputRef$cu2;
|
|
223
|
-
(_this$timeInputRef$cu = this.timeInputRef.current) === null || _this$timeInputRef$cu === void 0
|
|
224
|
-
(_this$timeInputRef$cu2 = this.timeInputRef.current) === null || _this$timeInputRef$cu2 === void 0
|
|
222
|
+
(_this$timeInputRef$cu = this.timeInputRef.current) === null || _this$timeInputRef$cu === void 0 || _this$timeInputRef$cu.focus();
|
|
223
|
+
(_this$timeInputRef$cu2 = this.timeInputRef.current) === null || _this$timeInputRef$cu2 === void 0 || _this$timeInputRef$cu2.setSelectionRange(0, this.state.timeString.length);
|
|
225
224
|
}
|
|
226
225
|
});
|
|
227
226
|
},
|
|
@@ -376,14 +375,14 @@ let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
|
376
375
|
if (event.key === 'ArrowUp') {
|
|
377
376
|
var _this$inputRef$curren2;
|
|
378
377
|
setHighlightedIndex(-1);
|
|
379
|
-
(_this$inputRef$curren2 = this.inputRef.current) === null || _this$inputRef$curren2 === void 0
|
|
378
|
+
(_this$inputRef$curren2 = this.inputRef.current) === null || _this$inputRef$curren2 === void 0 || _this$inputRef$curren2.focus();
|
|
380
379
|
return;
|
|
381
380
|
}
|
|
382
381
|
if (event.key === 'Enter') {
|
|
383
382
|
var _this$inputRef$curren3, _this$inputRef$curren4;
|
|
384
383
|
setHighlightedIndex(-1);
|
|
385
|
-
(_this$inputRef$curren3 = this.inputRef.current) === null || _this$inputRef$curren3 === void 0
|
|
386
|
-
(_this$inputRef$curren4 = this.inputRef.current) === null || _this$inputRef$curren4 === void 0
|
|
384
|
+
(_this$inputRef$curren3 = this.inputRef.current) === null || _this$inputRef$curren3 === void 0 || _this$inputRef$curren3.focus();
|
|
385
|
+
(_this$inputRef$curren4 = this.inputRef.current) === null || _this$inputRef$curren4 === void 0 || _this$inputRef$curren4.setSelectionRange(0, 100);
|
|
387
386
|
closeMenu();
|
|
388
387
|
}
|
|
389
388
|
}
|
|
@@ -402,7 +401,7 @@ DateTimeInput.propTypes = {};
|
|
|
402
401
|
var dateTimeInput = reactIntl.injectIntl(DateTimeInput);
|
|
403
402
|
|
|
404
403
|
// NOTE: This string will be replaced on build time with the package version.
|
|
405
|
-
var version = "17.
|
|
404
|
+
var version = "17.1.0";
|
|
406
405
|
|
|
407
406
|
exports["default"] = dateTimeInput;
|
|
408
407
|
exports.version = version;
|
|
@@ -10,9 +10,9 @@ import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object
|
|
|
10
10
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
11
11
|
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
12
12
|
import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
13
|
-
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
14
13
|
import _possibleConstructorReturn from '@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn';
|
|
15
14
|
import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
|
|
15
|
+
import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
|
|
16
16
|
import _pt from 'prop-types';
|
|
17
17
|
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
18
18
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -47,10 +47,10 @@ DateCalendarTimeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
47
47
|
DateCalendarTimeInput.displayName = 'DateCalendarTimeInput';
|
|
48
48
|
var TimeInput = DateCalendarTimeInput;
|
|
49
49
|
|
|
50
|
-
function ownKeys(
|
|
51
|
-
function _objectSpread(
|
|
52
|
-
function
|
|
53
|
-
function _isNativeReflectConstruct() {
|
|
50
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
51
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
53
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
54
54
|
const activationTypes = [Downshift.stateChangeTypes.keyDownEnter, Downshift.stateChangeTypes.clickItem];
|
|
55
55
|
const preventDownshiftDefault = event => {
|
|
56
56
|
event.nativeEvent.preventDownshiftDefault = true;
|
|
@@ -66,14 +66,13 @@ const createBlurHandler = timeInputRef => event => {
|
|
|
66
66
|
};
|
|
67
67
|
let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
68
68
|
_inherits(DateTimeInput, _Component);
|
|
69
|
-
var _super = _createSuper(DateTimeInput);
|
|
70
69
|
function DateTimeInput() {
|
|
71
70
|
var _this;
|
|
72
71
|
_classCallCheck(this, DateTimeInput);
|
|
73
72
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
74
73
|
args[_key] = arguments[_key];
|
|
75
74
|
}
|
|
76
|
-
_this =
|
|
75
|
+
_this = _callSuper(this, DateTimeInput, [...args]);
|
|
77
76
|
_this.inputRef = /*#__PURE__*/createRef();
|
|
78
77
|
_this.timeInputRef = /*#__PURE__*/createRef();
|
|
79
78
|
_this.state = {
|
|
@@ -203,8 +202,8 @@ let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
|
203
202
|
}, () => {
|
|
204
203
|
if (_includesInstanceProperty(activationTypes).call(activationTypes, changes.type)) {
|
|
205
204
|
var _this$timeInputRef$cu, _this$timeInputRef$cu2;
|
|
206
|
-
(_this$timeInputRef$cu = this.timeInputRef.current) === null || _this$timeInputRef$cu === void 0
|
|
207
|
-
(_this$timeInputRef$cu2 = this.timeInputRef.current) === null || _this$timeInputRef$cu2 === void 0
|
|
205
|
+
(_this$timeInputRef$cu = this.timeInputRef.current) === null || _this$timeInputRef$cu === void 0 || _this$timeInputRef$cu.focus();
|
|
206
|
+
(_this$timeInputRef$cu2 = this.timeInputRef.current) === null || _this$timeInputRef$cu2 === void 0 || _this$timeInputRef$cu2.setSelectionRange(0, this.state.timeString.length);
|
|
208
207
|
}
|
|
209
208
|
});
|
|
210
209
|
},
|
|
@@ -359,14 +358,14 @@ let DateTimeInput = /*#__PURE__*/function (_Component) {
|
|
|
359
358
|
if (event.key === 'ArrowUp') {
|
|
360
359
|
var _this$inputRef$curren2;
|
|
361
360
|
setHighlightedIndex(-1);
|
|
362
|
-
(_this$inputRef$curren2 = this.inputRef.current) === null || _this$inputRef$curren2 === void 0
|
|
361
|
+
(_this$inputRef$curren2 = this.inputRef.current) === null || _this$inputRef$curren2 === void 0 || _this$inputRef$curren2.focus();
|
|
363
362
|
return;
|
|
364
363
|
}
|
|
365
364
|
if (event.key === 'Enter') {
|
|
366
365
|
var _this$inputRef$curren3, _this$inputRef$curren4;
|
|
367
366
|
setHighlightedIndex(-1);
|
|
368
|
-
(_this$inputRef$curren3 = this.inputRef.current) === null || _this$inputRef$curren3 === void 0
|
|
369
|
-
(_this$inputRef$curren4 = this.inputRef.current) === null || _this$inputRef$curren4 === void 0
|
|
367
|
+
(_this$inputRef$curren3 = this.inputRef.current) === null || _this$inputRef$curren3 === void 0 || _this$inputRef$curren3.focus();
|
|
368
|
+
(_this$inputRef$curren4 = this.inputRef.current) === null || _this$inputRef$curren4 === void 0 || _this$inputRef$curren4.setSelectionRange(0, 100);
|
|
370
369
|
closeMenu();
|
|
371
370
|
}
|
|
372
371
|
}
|
|
@@ -401,6 +400,6 @@ DateTimeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
401
400
|
var dateTimeInput = injectIntl(DateTimeInput);
|
|
402
401
|
|
|
403
402
|
// NOTE: This string will be replaced on build time with the package version.
|
|
404
|
-
var version = "17.
|
|
403
|
+
var version = "17.1.0";
|
|
405
404
|
|
|
406
405
|
export { dateTimeInput as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/date-time-input",
|
|
3
3
|
"description": "The `DateTimeInput` component allows the user to select a date. This component also supports multiple date selection.",
|
|
4
|
-
"version": "17.
|
|
4
|
+
"version": "17.1.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "17.
|
|
25
|
-
"@commercetools-uikit/calendar-time-utils": "17.
|
|
26
|
-
"@commercetools-uikit/calendar-utils": "17.
|
|
27
|
-
"@commercetools-uikit/constraints": "17.
|
|
28
|
-
"@commercetools-uikit/design-system": "17.
|
|
29
|
-
"@commercetools-uikit/hooks": "17.
|
|
30
|
-
"@commercetools-uikit/icons": "17.
|
|
31
|
-
"@commercetools-uikit/secondary-icon-button": "17.
|
|
32
|
-
"@commercetools-uikit/select-utils": "17.
|
|
33
|
-
"@commercetools-uikit/spacings-inline": "17.
|
|
34
|
-
"@commercetools-uikit/text": "17.
|
|
35
|
-
"@commercetools-uikit/tooltip": "17.
|
|
36
|
-
"@commercetools-uikit/utils": "17.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "17.1.0",
|
|
25
|
+
"@commercetools-uikit/calendar-time-utils": "17.1.0",
|
|
26
|
+
"@commercetools-uikit/calendar-utils": "17.1.0",
|
|
27
|
+
"@commercetools-uikit/constraints": "17.1.0",
|
|
28
|
+
"@commercetools-uikit/design-system": "17.1.0",
|
|
29
|
+
"@commercetools-uikit/hooks": "17.1.0",
|
|
30
|
+
"@commercetools-uikit/icons": "17.1.0",
|
|
31
|
+
"@commercetools-uikit/secondary-icon-button": "17.1.0",
|
|
32
|
+
"@commercetools-uikit/select-utils": "17.1.0",
|
|
33
|
+
"@commercetools-uikit/spacings-inline": "17.1.0",
|
|
34
|
+
"@commercetools-uikit/text": "17.1.0",
|
|
35
|
+
"@commercetools-uikit/tooltip": "17.1.0",
|
|
36
|
+
"@commercetools-uikit/utils": "17.1.0",
|
|
37
37
|
"@emotion/react": "^11.10.5",
|
|
38
38
|
"@emotion/styled": "^11.10.5",
|
|
39
39
|
"downshift": "6.1.12",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"warning": "4.0.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"moment": "2.
|
|
45
|
+
"moment": "2.30.1",
|
|
46
46
|
"react": "17.0.2",
|
|
47
47
|
"react-intl": "^6.3.2"
|
|
48
48
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commercetools-uikit-date-time-input.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|