@atlaskit/datetime-picker 12.9.0 → 12.10.1
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 +12 -0
- package/dist/cjs/components/date-picker.js +8 -36
- package/dist/cjs/components/date-time-picker.js +1 -1
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/es2019/components/date-picker.js +8 -36
- package/dist/es2019/components/date-time-picker.js +1 -1
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/esm/components/date-picker.js +8 -36
- package/dist/esm/components/date-time-picker.js +1 -1
- package/dist/esm/components/time-picker.js +1 -1
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 12.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ccff5f6ec7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ccff5f6ec7a) - Integrate layering into calendar
|
|
8
|
+
|
|
9
|
+
## 12.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`6c0c0407eb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c0c0407eb1) - This cleans up the feature flag references for the keyboard accessibility changes, making them fully available for all users.
|
|
14
|
+
|
|
3
15
|
## 12.9.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -22,6 +22,7 @@ var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
|
22
22
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
23
23
|
var _calendar = _interopRequireDefault(require("@atlaskit/calendar"));
|
|
24
24
|
var _calendar2 = _interopRequireDefault(require("@atlaskit/icon/glyph/calendar"));
|
|
25
|
+
var _layering = require("@atlaskit/layering");
|
|
25
26
|
var _locale = require("@atlaskit/locale");
|
|
26
27
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
28
|
var _select = _interopRequireWildcard(require("@atlaskit/select"));
|
|
@@ -38,7 +39,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
38
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); }; }
|
|
39
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; } } /** @jsx jsx */
|
|
40
41
|
var packageName = "@atlaskit/datetime-picker";
|
|
41
|
-
var packageVersion = "12.
|
|
42
|
+
var packageVersion = "12.10.1";
|
|
42
43
|
function getValidDate(iso) {
|
|
43
44
|
var date = (0, _dateFns.parseISO)(iso);
|
|
44
45
|
return (0, _dateFns.isValid)(date) ? {
|
|
@@ -60,7 +61,7 @@ var menuStyles = (0, _react2.css)({
|
|
|
60
61
|
var Menu = function Menu(_ref) {
|
|
61
62
|
var selectProps = _ref.selectProps,
|
|
62
63
|
innerProps = _ref.innerProps;
|
|
63
|
-
return (0, _react2.jsx)(_fixedLayer.default, {
|
|
64
|
+
return (0, _react2.jsx)(_layering.UNSAFE_LAYERING, null, (0, _react2.jsx)(_fixedLayer.default, {
|
|
64
65
|
inputValue: selectProps.inputValue,
|
|
65
66
|
containerRef: selectProps.calendarContainerRef,
|
|
66
67
|
content: (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
@@ -78,11 +79,10 @@ var Menu = function Menu(_ref) {
|
|
|
78
79
|
selected: [selectProps.calendarValue],
|
|
79
80
|
locale: selectProps.calendarLocale,
|
|
80
81
|
testId: selectProps.testId && "".concat(selectProps.testId, "--calendar"),
|
|
81
|
-
weekStartDay: selectProps.calendarWeekStartDay
|
|
82
|
-
tabIndex: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.accessible-datetime-picker_691ec') ? undefined : -1
|
|
82
|
+
weekStartDay: selectProps.calendarWeekStartDay
|
|
83
83
|
}))),
|
|
84
84
|
testId: selectProps.testId
|
|
85
|
-
});
|
|
85
|
+
}));
|
|
86
86
|
};
|
|
87
87
|
var datePickerDefaultProps = {
|
|
88
88
|
appearance: 'default',
|
|
@@ -246,39 +246,11 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
246
246
|
calendarValue = _this$getSafeState2.calendarValue;
|
|
247
247
|
var keyPressed = event.key.toLowerCase();
|
|
248
248
|
switch (keyPressed) {
|
|
249
|
-
case 'arrowup':
|
|
250
|
-
case 'arrowdown':
|
|
251
|
-
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.accessible-datetime-picker_691ec')) {
|
|
252
|
-
if (_this.calendarRef) {
|
|
253
|
-
event.preventDefault();
|
|
254
|
-
var key = keyPressed === 'arrowup' ? 'up' : 'down';
|
|
255
|
-
_this.calendarRef.navigate(key);
|
|
256
|
-
}
|
|
257
|
-
_this.setState({
|
|
258
|
-
isOpen: true
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
break;
|
|
262
|
-
case 'arrowleft':
|
|
263
|
-
case 'arrowright':
|
|
264
|
-
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.accessible-datetime-picker_691ec') && _this.calendarRef) {
|
|
265
|
-
event.preventDefault();
|
|
266
|
-
var _key = keyPressed === 'arrowleft' ? 'left' : 'right';
|
|
267
|
-
_this.calendarRef.navigate(_key);
|
|
268
|
-
}
|
|
269
|
-
break;
|
|
270
249
|
case 'escape':
|
|
271
250
|
_this.setState({
|
|
272
251
|
isOpen: false
|
|
273
252
|
});
|
|
274
253
|
break;
|
|
275
|
-
case 'tab':
|
|
276
|
-
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.accessible-datetime-picker_691ec')) {
|
|
277
|
-
_this.setState({
|
|
278
|
-
isOpen: false
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
break;
|
|
282
254
|
case 'backspace':
|
|
283
255
|
case 'delete':
|
|
284
256
|
{
|
|
@@ -491,11 +463,11 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
491
463
|
previousMonthLabel: previousMonthLabel
|
|
492
464
|
};
|
|
493
465
|
return (
|
|
494
|
-
//
|
|
495
|
-
//
|
|
466
|
+
// These event handlers must be on this element because the events come
|
|
467
|
+
// from different child elements.
|
|
496
468
|
(0, _react2.jsx)("div", (0, _extends2.default)({}, innerProps, {
|
|
497
469
|
role: "presentation",
|
|
498
|
-
onBlur:
|
|
470
|
+
onBlur: this.onContainerBlur,
|
|
499
471
|
onClick: this.onInputClick,
|
|
500
472
|
onInput: this.onTextInput,
|
|
501
473
|
onKeyDown: this.onInputKeyDown,
|
|
@@ -31,7 +31,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
31
31
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32
32
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "12.
|
|
34
|
+
var packageVersion = "12.10.1";
|
|
35
35
|
var isInvalidBorderStyles = (0, _react2.css)({
|
|
36
36
|
borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")")
|
|
37
37
|
});
|
|
@@ -37,7 +37,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
37
37
|
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); }; }
|
|
38
38
|
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; } }
|
|
39
39
|
var packageName = "@atlaskit/datetime-picker";
|
|
40
|
-
var packageVersion = "12.
|
|
40
|
+
var packageVersion = "12.10.1";
|
|
41
41
|
var menuStyles = {
|
|
42
42
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
43
43
|
position: 'static',
|
|
@@ -8,6 +8,7 @@ import pick from 'lodash/pick';
|
|
|
8
8
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
9
|
import Calendar from '@atlaskit/calendar';
|
|
10
10
|
import CalendarIcon from '@atlaskit/icon/glyph/calendar';
|
|
11
|
+
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
11
12
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
12
13
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import Select, { mergeStyles } from '@atlaskit/select';
|
|
@@ -18,7 +19,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
18
19
|
import { makeSingleValue } from '../internal/single-value';
|
|
19
20
|
import { convertTokens } from './utils';
|
|
20
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "12.
|
|
22
|
+
const packageVersion = "12.10.1";
|
|
22
23
|
function getValidDate(iso) {
|
|
23
24
|
const date = parseISO(iso);
|
|
24
25
|
return isValid(date) ? {
|
|
@@ -40,7 +41,7 @@ const menuStyles = css({
|
|
|
40
41
|
const Menu = ({
|
|
41
42
|
selectProps,
|
|
42
43
|
innerProps
|
|
43
|
-
}) => jsx(FixedLayer, {
|
|
44
|
+
}) => jsx(UNSAFE_LAYERING, null, jsx(FixedLayer, {
|
|
44
45
|
inputValue: selectProps.inputValue,
|
|
45
46
|
containerRef: selectProps.calendarContainerRef,
|
|
46
47
|
content: jsx("div", _extends({
|
|
@@ -58,11 +59,10 @@ const Menu = ({
|
|
|
58
59
|
selected: [selectProps.calendarValue],
|
|
59
60
|
locale: selectProps.calendarLocale,
|
|
60
61
|
testId: selectProps.testId && `${selectProps.testId}--calendar`,
|
|
61
|
-
weekStartDay: selectProps.calendarWeekStartDay
|
|
62
|
-
tabIndex: getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec') ? undefined : -1
|
|
62
|
+
weekStartDay: selectProps.calendarWeekStartDay
|
|
63
63
|
}))),
|
|
64
64
|
testId: selectProps.testId
|
|
65
|
-
});
|
|
65
|
+
}));
|
|
66
66
|
const datePickerDefaultProps = {
|
|
67
67
|
appearance: 'default',
|
|
68
68
|
autoFocus: false,
|
|
@@ -224,39 +224,11 @@ class DatePicker extends Component {
|
|
|
224
224
|
} = this.getSafeState();
|
|
225
225
|
const keyPressed = event.key.toLowerCase();
|
|
226
226
|
switch (keyPressed) {
|
|
227
|
-
case 'arrowup':
|
|
228
|
-
case 'arrowdown':
|
|
229
|
-
if (!getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec')) {
|
|
230
|
-
if (this.calendarRef) {
|
|
231
|
-
event.preventDefault();
|
|
232
|
-
const key = keyPressed === 'arrowup' ? 'up' : 'down';
|
|
233
|
-
this.calendarRef.navigate(key);
|
|
234
|
-
}
|
|
235
|
-
this.setState({
|
|
236
|
-
isOpen: true
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
break;
|
|
240
|
-
case 'arrowleft':
|
|
241
|
-
case 'arrowright':
|
|
242
|
-
if (!getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec') && this.calendarRef) {
|
|
243
|
-
event.preventDefault();
|
|
244
|
-
const key = keyPressed === 'arrowleft' ? 'left' : 'right';
|
|
245
|
-
this.calendarRef.navigate(key);
|
|
246
|
-
}
|
|
247
|
-
break;
|
|
248
227
|
case 'escape':
|
|
249
228
|
this.setState({
|
|
250
229
|
isOpen: false
|
|
251
230
|
});
|
|
252
231
|
break;
|
|
253
|
-
case 'tab':
|
|
254
|
-
if (!getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec')) {
|
|
255
|
-
this.setState({
|
|
256
|
-
isOpen: false
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
break;
|
|
260
232
|
case 'backspace':
|
|
261
233
|
case 'delete':
|
|
262
234
|
{
|
|
@@ -491,11 +463,11 @@ class DatePicker extends Component {
|
|
|
491
463
|
previousMonthLabel
|
|
492
464
|
};
|
|
493
465
|
return (
|
|
494
|
-
//
|
|
495
|
-
//
|
|
466
|
+
// These event handlers must be on this element because the events come
|
|
467
|
+
// from different child elements.
|
|
496
468
|
jsx("div", _extends({}, innerProps, {
|
|
497
469
|
role: "presentation",
|
|
498
|
-
onBlur:
|
|
470
|
+
onBlur: this.onContainerBlur,
|
|
499
471
|
onClick: this.onInputClick,
|
|
500
472
|
onInput: this.onTextInput,
|
|
501
473
|
onKeyDown: this.onInputKeyDown,
|
|
@@ -15,7 +15,7 @@ import DatePicker from './date-picker';
|
|
|
15
15
|
import TimePicker from './time-picker';
|
|
16
16
|
import { convertTokens } from './utils';
|
|
17
17
|
const packageName = "@atlaskit/datetime-picker";
|
|
18
|
-
const packageVersion = "12.
|
|
18
|
+
const packageVersion = "12.10.1";
|
|
19
19
|
const isInvalidBorderStyles = css({
|
|
20
20
|
borderColor: `var(--ds-border-danger, ${R400})`
|
|
21
21
|
});
|
|
@@ -16,7 +16,7 @@ import parseTime from '../internal/parse-time';
|
|
|
16
16
|
import { makeSingleValue } from '../internal/single-value';
|
|
17
17
|
import { convertTokens } from './utils';
|
|
18
18
|
const packageName = "@atlaskit/datetime-picker";
|
|
19
|
-
const packageVersion = "12.
|
|
19
|
+
const packageVersion = "12.10.1";
|
|
20
20
|
const menuStyles = {
|
|
21
21
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
22
22
|
position: 'static',
|
|
@@ -19,6 +19,7 @@ import pick from 'lodash/pick';
|
|
|
19
19
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
20
20
|
import Calendar from '@atlaskit/calendar';
|
|
21
21
|
import CalendarIcon from '@atlaskit/icon/glyph/calendar';
|
|
22
|
+
import { UNSAFE_LAYERING } from '@atlaskit/layering';
|
|
22
23
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
23
24
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
24
25
|
import Select, { mergeStyles } from '@atlaskit/select';
|
|
@@ -29,7 +30,7 @@ import FixedLayer from '../internal/fixed-layer';
|
|
|
29
30
|
import { makeSingleValue } from '../internal/single-value';
|
|
30
31
|
import { convertTokens } from './utils';
|
|
31
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "12.
|
|
33
|
+
var packageVersion = "12.10.1";
|
|
33
34
|
function getValidDate(iso) {
|
|
34
35
|
var date = parseISO(iso);
|
|
35
36
|
return isValid(date) ? {
|
|
@@ -51,7 +52,7 @@ var menuStyles = css({
|
|
|
51
52
|
var Menu = function Menu(_ref) {
|
|
52
53
|
var selectProps = _ref.selectProps,
|
|
53
54
|
innerProps = _ref.innerProps;
|
|
54
|
-
return jsx(FixedLayer, {
|
|
55
|
+
return jsx(UNSAFE_LAYERING, null, jsx(FixedLayer, {
|
|
55
56
|
inputValue: selectProps.inputValue,
|
|
56
57
|
containerRef: selectProps.calendarContainerRef,
|
|
57
58
|
content: jsx("div", _extends({
|
|
@@ -69,11 +70,10 @@ var Menu = function Menu(_ref) {
|
|
|
69
70
|
selected: [selectProps.calendarValue],
|
|
70
71
|
locale: selectProps.calendarLocale,
|
|
71
72
|
testId: selectProps.testId && "".concat(selectProps.testId, "--calendar"),
|
|
72
|
-
weekStartDay: selectProps.calendarWeekStartDay
|
|
73
|
-
tabIndex: getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec') ? undefined : -1
|
|
73
|
+
weekStartDay: selectProps.calendarWeekStartDay
|
|
74
74
|
}))),
|
|
75
75
|
testId: selectProps.testId
|
|
76
|
-
});
|
|
76
|
+
}));
|
|
77
77
|
};
|
|
78
78
|
var datePickerDefaultProps = {
|
|
79
79
|
appearance: 'default',
|
|
@@ -237,39 +237,11 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
237
237
|
calendarValue = _this$getSafeState2.calendarValue;
|
|
238
238
|
var keyPressed = event.key.toLowerCase();
|
|
239
239
|
switch (keyPressed) {
|
|
240
|
-
case 'arrowup':
|
|
241
|
-
case 'arrowdown':
|
|
242
|
-
if (!getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec')) {
|
|
243
|
-
if (_this.calendarRef) {
|
|
244
|
-
event.preventDefault();
|
|
245
|
-
var key = keyPressed === 'arrowup' ? 'up' : 'down';
|
|
246
|
-
_this.calendarRef.navigate(key);
|
|
247
|
-
}
|
|
248
|
-
_this.setState({
|
|
249
|
-
isOpen: true
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
break;
|
|
253
|
-
case 'arrowleft':
|
|
254
|
-
case 'arrowright':
|
|
255
|
-
if (!getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec') && _this.calendarRef) {
|
|
256
|
-
event.preventDefault();
|
|
257
|
-
var _key = keyPressed === 'arrowleft' ? 'left' : 'right';
|
|
258
|
-
_this.calendarRef.navigate(_key);
|
|
259
|
-
}
|
|
260
|
-
break;
|
|
261
240
|
case 'escape':
|
|
262
241
|
_this.setState({
|
|
263
242
|
isOpen: false
|
|
264
243
|
});
|
|
265
244
|
break;
|
|
266
|
-
case 'tab':
|
|
267
|
-
if (!getBooleanFF('platform.design-system-team.accessible-datetime-picker_691ec')) {
|
|
268
|
-
_this.setState({
|
|
269
|
-
isOpen: false
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
break;
|
|
273
245
|
case 'backspace':
|
|
274
246
|
case 'delete':
|
|
275
247
|
{
|
|
@@ -482,11 +454,11 @@ var DatePicker = /*#__PURE__*/function (_Component) {
|
|
|
482
454
|
previousMonthLabel: previousMonthLabel
|
|
483
455
|
};
|
|
484
456
|
return (
|
|
485
|
-
//
|
|
486
|
-
//
|
|
457
|
+
// These event handlers must be on this element because the events come
|
|
458
|
+
// from different child elements.
|
|
487
459
|
jsx("div", _extends({}, innerProps, {
|
|
488
460
|
role: "presentation",
|
|
489
|
-
onBlur:
|
|
461
|
+
onBlur: this.onContainerBlur,
|
|
490
462
|
onClick: this.onInputClick,
|
|
491
463
|
onInput: this.onTextInput,
|
|
492
464
|
onKeyDown: this.onInputKeyDown,
|
|
@@ -25,7 +25,7 @@ import DatePicker from './date-picker';
|
|
|
25
25
|
import TimePicker from './time-picker';
|
|
26
26
|
import { convertTokens } from './utils';
|
|
27
27
|
var packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
var packageVersion = "12.
|
|
28
|
+
var packageVersion = "12.10.1";
|
|
29
29
|
var isInvalidBorderStyles = css({
|
|
30
30
|
borderColor: "var(--ds-border-danger, ".concat(R400, ")")
|
|
31
31
|
});
|
|
@@ -29,7 +29,7 @@ import parseTime from '../internal/parse-time';
|
|
|
29
29
|
import { makeSingleValue } from '../internal/single-value';
|
|
30
30
|
import { convertTokens } from './utils';
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "12.
|
|
32
|
+
var packageVersion = "12.10.1";
|
|
33
33
|
var menuStyles = {
|
|
34
34
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
35
35
|
position: 'static',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.10.1",
|
|
4
4
|
"description": "A date time picker allows the user to select an associated date and time.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,12 +36,13 @@
|
|
|
36
36
|
"@atlaskit/calendar": "^13.3.0",
|
|
37
37
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
38
38
|
"@atlaskit/icon": "^21.12.0",
|
|
39
|
+
"@atlaskit/layering": "^0.2.0",
|
|
39
40
|
"@atlaskit/locale": "^2.5.0",
|
|
40
41
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
42
|
"@atlaskit/popper": "^5.5.0",
|
|
42
|
-
"@atlaskit/select": "^16.
|
|
43
|
+
"@atlaskit/select": "^16.7.0",
|
|
43
44
|
"@atlaskit/theme": "^12.6.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
45
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
45
46
|
"@babel/runtime": "^7.0.0",
|
|
46
47
|
"@emotion/react": "^11.7.1",
|
|
47
48
|
"date-fns": "^2.17.0",
|
|
@@ -53,11 +54,11 @@
|
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@af/accessibility-testing": "*",
|
|
56
|
-
"@atlaskit/button": "^16.
|
|
57
|
+
"@atlaskit/button": "^16.10.0",
|
|
57
58
|
"@atlaskit/docs": "*",
|
|
58
59
|
"@atlaskit/form": "^8.11.0",
|
|
59
|
-
"@atlaskit/modal-dialog": "^12.
|
|
60
|
-
"@atlaskit/popup": "^1.
|
|
60
|
+
"@atlaskit/modal-dialog": "^12.7.0",
|
|
61
|
+
"@atlaskit/popup": "^1.10.0",
|
|
61
62
|
"@atlaskit/range": "^7.1.0",
|
|
62
63
|
"@atlaskit/section-message": "^6.4.0",
|
|
63
64
|
"@atlaskit/ssr": "*",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"@testing-library/react": "^12.1.5",
|
|
72
73
|
"@testing-library/user-event": "^14.4.3",
|
|
73
74
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
75
|
+
"jest-in-case": "^1.0.2",
|
|
74
76
|
"moment": "^2.29.2",
|
|
75
77
|
"react-dom": "^16.8.0",
|
|
76
78
|
"react-lorem-component": "^0.13.0",
|
|
@@ -101,9 +103,6 @@
|
|
|
101
103
|
},
|
|
102
104
|
"platform.design-system-team.date-picker-input-a11y-fix_cbbxs": {
|
|
103
105
|
"type": "boolean"
|
|
104
|
-
},
|
|
105
|
-
"platform.design-system-team.accessible-datetime-picker_691ec": {
|
|
106
|
-
"type": "boolean"
|
|
107
106
|
}
|
|
108
107
|
},
|
|
109
108
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|