@atlaskit/datetime-picker 12.7.11 → 12.7.12
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/CHANGELOG.md +6 -0
- package/dist/cjs/components/date-picker.js +1 -1
- package/dist/cjs/components/date-time-picker.js +2 -4
- package/dist/cjs/components/time-picker.js +37 -41
- package/dist/es2019/components/date-picker.js +1 -1
- package/dist/es2019/components/date-time-picker.js +2 -4
- package/dist/es2019/components/time-picker.js +37 -41
- package/dist/esm/components/date-picker.js +1 -1
- package/dist/esm/components/date-time-picker.js +2 -4
- package/dist/esm/components/time-picker.js +37 -41
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -38,7 +38,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
38
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
39
39
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
|
|
40
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
41
|
-
var packageVersion = "12.7.
|
|
41
|
+
var packageVersion = "12.7.12";
|
|
42
42
|
|
|
43
43
|
/* eslint-disable react/no-unused-prop-types */
|
|
44
44
|
|
|
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
31
31
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
32
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-disable @repo/internal/react/use-noop */ /** @jsx jsx */ // eslint-disable-next-line no-restricted-imports
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "12.7.
|
|
34
|
+
var packageVersion = "12.7.12";
|
|
35
35
|
|
|
36
36
|
/* eslint-disable react/no-unused-prop-types */
|
|
37
37
|
|
|
@@ -341,9 +341,7 @@ var DateTimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
341
341
|
timeFormat: timeFormat,
|
|
342
342
|
locale: locale,
|
|
343
343
|
testId: testId && "".concat(testId, "--timepicker")
|
|
344
|
-
}, timePickerProps))), isClearable && !isDisabled ?
|
|
345
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
346
|
-
(0, _react2.jsx)("button", {
|
|
344
|
+
}, timePickerProps))), isClearable && !isDisabled ? (0, _react2.jsx)("button", {
|
|
347
345
|
css: iconContainerStyles,
|
|
348
346
|
onClick: this.onClear,
|
|
349
347
|
"data-testid": testId && "".concat(testId, "--icon--container"),
|
|
@@ -39,7 +39,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
39
39
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
var packageName = "@atlaskit/datetime-picker";
|
|
42
|
-
var packageVersion = "12.7.
|
|
42
|
+
var packageVersion = "12.7.12";
|
|
43
43
|
|
|
44
44
|
/* eslint-disable react/no-unused-prop-types */
|
|
45
45
|
|
|
@@ -321,46 +321,42 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
|
-
return (
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
isInvalid: isInvalid,
|
|
361
|
-
testId: testId
|
|
362
|
-
}, otherSelectProps)))
|
|
363
|
-
);
|
|
324
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, innerProps, {
|
|
325
|
+
ref: this.setContainerRef,
|
|
326
|
+
"data-testid": testId && "".concat(testId, "--container")
|
|
327
|
+
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
328
|
+
name: name,
|
|
329
|
+
type: "hidden",
|
|
330
|
+
value: value,
|
|
331
|
+
"data-testid": testId && "".concat(testId, "--input"),
|
|
332
|
+
onKeyDown: this.onSelectKeyDown
|
|
333
|
+
}), /*#__PURE__*/_react.default.createElement(SelectComponent, (0, _extends2.default)({
|
|
334
|
+
appearance: this.props.appearance,
|
|
335
|
+
autoFocus: autoFocus,
|
|
336
|
+
components: selectComponents,
|
|
337
|
+
instanceId: id,
|
|
338
|
+
isClearable: true,
|
|
339
|
+
isDisabled: isDisabled,
|
|
340
|
+
menuIsOpen: isOpen && !isDisabled,
|
|
341
|
+
menuPlacement: "auto",
|
|
342
|
+
openMenuOnFocus: true,
|
|
343
|
+
onBlur: this.onBlur,
|
|
344
|
+
onCreateOption: this.onCreateOption,
|
|
345
|
+
onChange: this.onChange,
|
|
346
|
+
options: this.getOptions(),
|
|
347
|
+
onFocus: this.onFocus,
|
|
348
|
+
onMenuOpen: this.onMenuOpen,
|
|
349
|
+
onMenuClose: this.onMenuClose,
|
|
350
|
+
placeholder: this.getPlaceholder(),
|
|
351
|
+
styles: mergedStyles,
|
|
352
|
+
value: labelAndValue,
|
|
353
|
+
spacing: spacing
|
|
354
|
+
// @ts-ignore caused by prop not part of @atlaskit/select
|
|
355
|
+
,
|
|
356
|
+
fixedLayerRef: this.containerRef,
|
|
357
|
+
isInvalid: isInvalid,
|
|
358
|
+
testId: testId
|
|
359
|
+
}, otherSelectProps)));
|
|
364
360
|
}
|
|
365
361
|
}]);
|
|
366
362
|
return TimePicker;
|
|
@@ -20,7 +20,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
20
20
|
import { makeSingleValue } from '../internal/single-value';
|
|
21
21
|
import { convertTokens } from './utils';
|
|
22
22
|
const packageName = "@atlaskit/datetime-picker";
|
|
23
|
-
const packageVersion = "12.7.
|
|
23
|
+
const packageVersion = "12.7.12";
|
|
24
24
|
|
|
25
25
|
/* eslint-disable react/no-unused-prop-types */
|
|
26
26
|
|
|
@@ -17,7 +17,7 @@ import DatePicker from './date-picker';
|
|
|
17
17
|
import TimePicker from './time-picker';
|
|
18
18
|
import { convertTokens } from './utils';
|
|
19
19
|
const packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
const packageVersion = "12.7.
|
|
20
|
+
const packageVersion = "12.7.12";
|
|
21
21
|
|
|
22
22
|
/* eslint-disable react/no-unused-prop-types */
|
|
23
23
|
|
|
@@ -327,9 +327,7 @@ class DateTimePicker extends React.Component {
|
|
|
327
327
|
timeFormat: timeFormat,
|
|
328
328
|
locale: locale,
|
|
329
329
|
testId: testId && `${testId}--timepicker`
|
|
330
|
-
}, timePickerProps))), isClearable && !isDisabled ?
|
|
331
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
332
|
-
jsx("button", {
|
|
330
|
+
}, timePickerProps))), isClearable && !isDisabled ? jsx("button", {
|
|
333
331
|
css: iconContainerStyles,
|
|
334
332
|
onClick: this.onClear,
|
|
335
333
|
"data-testid": testId && `${testId}--icon--container`,
|
|
@@ -17,7 +17,7 @@ import parseTime from '../internal/parse-time';
|
|
|
17
17
|
import { makeSingleValue } from '../internal/single-value';
|
|
18
18
|
import { convertTokens } from './utils';
|
|
19
19
|
const packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
const packageVersion = "12.7.
|
|
20
|
+
const packageVersion = "12.7.12";
|
|
21
21
|
|
|
22
22
|
/* eslint-disable react/no-unused-prop-types */
|
|
23
23
|
|
|
@@ -295,46 +295,42 @@ class TimePicker extends React.Component {
|
|
|
295
295
|
paddingRight: renderIconContainer ? gridSize() - ICON_PADDING : 0
|
|
296
296
|
})
|
|
297
297
|
});
|
|
298
|
-
return (
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
isInvalid: isInvalid,
|
|
335
|
-
testId: testId
|
|
336
|
-
}, otherSelectProps)))
|
|
337
|
-
);
|
|
298
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
299
|
+
ref: this.setContainerRef,
|
|
300
|
+
"data-testid": testId && `${testId}--container`
|
|
301
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
302
|
+
name: name,
|
|
303
|
+
type: "hidden",
|
|
304
|
+
value: value,
|
|
305
|
+
"data-testid": testId && `${testId}--input`,
|
|
306
|
+
onKeyDown: this.onSelectKeyDown
|
|
307
|
+
}), /*#__PURE__*/React.createElement(SelectComponent, _extends({
|
|
308
|
+
appearance: this.props.appearance,
|
|
309
|
+
autoFocus: autoFocus,
|
|
310
|
+
components: selectComponents,
|
|
311
|
+
instanceId: id,
|
|
312
|
+
isClearable: true,
|
|
313
|
+
isDisabled: isDisabled,
|
|
314
|
+
menuIsOpen: isOpen && !isDisabled,
|
|
315
|
+
menuPlacement: "auto",
|
|
316
|
+
openMenuOnFocus: true,
|
|
317
|
+
onBlur: this.onBlur,
|
|
318
|
+
onCreateOption: this.onCreateOption,
|
|
319
|
+
onChange: this.onChange,
|
|
320
|
+
options: this.getOptions(),
|
|
321
|
+
onFocus: this.onFocus,
|
|
322
|
+
onMenuOpen: this.onMenuOpen,
|
|
323
|
+
onMenuClose: this.onMenuClose,
|
|
324
|
+
placeholder: this.getPlaceholder(),
|
|
325
|
+
styles: mergedStyles,
|
|
326
|
+
value: labelAndValue,
|
|
327
|
+
spacing: spacing
|
|
328
|
+
// @ts-ignore caused by prop not part of @atlaskit/select
|
|
329
|
+
,
|
|
330
|
+
fixedLayerRef: this.containerRef,
|
|
331
|
+
isInvalid: isInvalid,
|
|
332
|
+
testId: testId
|
|
333
|
+
}, otherSelectProps)));
|
|
338
334
|
}
|
|
339
335
|
}
|
|
340
336
|
_defineProperty(TimePicker, "defaultProps", timePickerDefaultProps);
|
|
@@ -31,7 +31,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
31
31
|
import { makeSingleValue } from '../internal/single-value';
|
|
32
32
|
import { convertTokens } from './utils';
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "12.7.
|
|
34
|
+
var packageVersion = "12.7.12";
|
|
35
35
|
|
|
36
36
|
/* eslint-disable react/no-unused-prop-types */
|
|
37
37
|
|
|
@@ -27,7 +27,7 @@ import DatePicker from './date-picker';
|
|
|
27
27
|
import TimePicker from './time-picker';
|
|
28
28
|
import { convertTokens } from './utils';
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "12.7.
|
|
30
|
+
var packageVersion = "12.7.12";
|
|
31
31
|
|
|
32
32
|
/* eslint-disable react/no-unused-prop-types */
|
|
33
33
|
|
|
@@ -335,9 +335,7 @@ var DateTimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
335
335
|
timeFormat: timeFormat,
|
|
336
336
|
locale: locale,
|
|
337
337
|
testId: testId && "".concat(testId, "--timepicker")
|
|
338
|
-
}, timePickerProps))), isClearable && !isDisabled ?
|
|
339
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
340
|
-
jsx("button", {
|
|
338
|
+
}, timePickerProps))), isClearable && !isDisabled ? jsx("button", {
|
|
341
339
|
css: iconContainerStyles,
|
|
342
340
|
onClick: this.onClear,
|
|
343
341
|
"data-testid": testId && "".concat(testId, "--icon--container"),
|
|
@@ -30,7 +30,7 @@ import parseTime from '../internal/parse-time';
|
|
|
30
30
|
import { makeSingleValue } from '../internal/single-value';
|
|
31
31
|
import { convertTokens } from './utils';
|
|
32
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "12.7.
|
|
33
|
+
var packageVersion = "12.7.12";
|
|
34
34
|
|
|
35
35
|
/* eslint-disable react/no-unused-prop-types */
|
|
36
36
|
|
|
@@ -312,46 +312,42 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
|
-
return (
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
isInvalid: isInvalid,
|
|
352
|
-
testId: testId
|
|
353
|
-
}, otherSelectProps)))
|
|
354
|
-
);
|
|
315
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
316
|
+
ref: this.setContainerRef,
|
|
317
|
+
"data-testid": testId && "".concat(testId, "--container")
|
|
318
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
319
|
+
name: name,
|
|
320
|
+
type: "hidden",
|
|
321
|
+
value: value,
|
|
322
|
+
"data-testid": testId && "".concat(testId, "--input"),
|
|
323
|
+
onKeyDown: this.onSelectKeyDown
|
|
324
|
+
}), /*#__PURE__*/React.createElement(SelectComponent, _extends({
|
|
325
|
+
appearance: this.props.appearance,
|
|
326
|
+
autoFocus: autoFocus,
|
|
327
|
+
components: selectComponents,
|
|
328
|
+
instanceId: id,
|
|
329
|
+
isClearable: true,
|
|
330
|
+
isDisabled: isDisabled,
|
|
331
|
+
menuIsOpen: isOpen && !isDisabled,
|
|
332
|
+
menuPlacement: "auto",
|
|
333
|
+
openMenuOnFocus: true,
|
|
334
|
+
onBlur: this.onBlur,
|
|
335
|
+
onCreateOption: this.onCreateOption,
|
|
336
|
+
onChange: this.onChange,
|
|
337
|
+
options: this.getOptions(),
|
|
338
|
+
onFocus: this.onFocus,
|
|
339
|
+
onMenuOpen: this.onMenuOpen,
|
|
340
|
+
onMenuClose: this.onMenuClose,
|
|
341
|
+
placeholder: this.getPlaceholder(),
|
|
342
|
+
styles: mergedStyles,
|
|
343
|
+
value: labelAndValue,
|
|
344
|
+
spacing: spacing
|
|
345
|
+
// @ts-ignore caused by prop not part of @atlaskit/select
|
|
346
|
+
,
|
|
347
|
+
fixedLayerRef: this.containerRef,
|
|
348
|
+
isInvalid: isInvalid,
|
|
349
|
+
testId: testId
|
|
350
|
+
}, otherSelectProps)));
|
|
355
351
|
}
|
|
356
352
|
}]);
|
|
357
353
|
return TimePicker;
|
package/package.json
CHANGED