@atlaskit/datetime-picker 15.8.0 → 15.9.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 +16 -0
- package/dist/cjs/components/date-picker-class.js +1 -1
- package/dist/cjs/components/date-picker-fc.js +1 -1
- package/dist/cjs/components/date-time-picker-class.js +1 -1
- package/dist/cjs/components/date-time-picker-fc.js +34 -42
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/date-time-picker-container.js +2 -0
- package/dist/cjs/internal/menu.js +1 -1
- package/dist/es2019/components/date-picker-class.js +1 -1
- package/dist/es2019/components/date-picker-fc.js +1 -1
- package/dist/es2019/components/date-time-picker-class.js +1 -1
- package/dist/es2019/components/date-time-picker-fc.js +31 -44
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/internal/date-time-picker-container.js +2 -0
- package/dist/es2019/internal/menu.js +2 -2
- package/dist/esm/components/date-picker-class.js +1 -1
- package/dist/esm/components/date-picker-fc.js +1 -1
- package/dist/esm/components/date-time-picker-class.js +1 -1
- package/dist/esm/components/date-time-picker-fc.js +33 -44
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/internal/date-time-picker-container.js +2 -0
- package/dist/esm/internal/menu.js +2 -2
- package/dist/types/components/date-time-picker-fc.d.ts +0 -4
- package/dist/types-ts4.5/components/date-time-picker-fc.d.ts +0 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 15.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161638)
|
|
8
|
+
[`d2e5e5ce0053d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2e5e5ce0053d) -
|
|
9
|
+
Use new API of layering without UNSAFE prefix
|
|
10
|
+
|
|
11
|
+
## 15.9.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#161715](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161715)
|
|
16
|
+
[`fc083f8b29d92`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc083f8b29d92) -
|
|
17
|
+
update datetime picker to use button component and primitives
|
|
18
|
+
|
|
3
19
|
## 15.8.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -43,7 +43,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
43
43
|
* @jsx jsx
|
|
44
44
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
45
45
|
var packageName = "@atlaskit/datetime-picker";
|
|
46
|
-
var packageVersion = "15.
|
|
46
|
+
var packageVersion = "15.9.1";
|
|
47
47
|
var dropdownIndicatorStyles = (0, _primitives.xcss)({
|
|
48
48
|
minWidth: "var(--ds-space-300, 24px)",
|
|
49
49
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -39,7 +39,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
39
39
|
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; }
|
|
40
40
|
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; }
|
|
41
41
|
var packageName = "@atlaskit/datetime-picker";
|
|
42
|
-
var packageVersion = "15.
|
|
42
|
+
var packageVersion = "15.9.1";
|
|
43
43
|
var analyticsAttributes = {
|
|
44
44
|
componentName: 'datePicker',
|
|
45
45
|
packageName: packageName,
|
|
@@ -38,7 +38,7 @@ var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
|
|
|
38
38
|
return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
|
|
39
39
|
}, _datePickerFc.default, _datePickerClass.default);
|
|
40
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
41
|
-
var packageVersion = "15.
|
|
41
|
+
var packageVersion = "15.9.1";
|
|
42
42
|
// Make DatePicker 50% the width of DateTimePicker
|
|
43
43
|
// If rendering an icon container, shrink the TimePicker
|
|
44
44
|
var datePickerContainerStyles = (0, _react2.css)({
|
|
@@ -6,17 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.timePickerDefaultAriaLabel = exports.default = exports.datePickerDefaultAriaLabel = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _react2 = require("@emotion/react");
|
|
14
14
|
var _dateFns = require("date-fns");
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
|
+
var _new = require("@atlaskit/button/new");
|
|
16
17
|
var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/utility/migration/cross-circle--select-clear"));
|
|
17
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
|
+
var _primitives = require("@atlaskit/primitives");
|
|
18
20
|
var _select = require("@atlaskit/select");
|
|
19
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
20
21
|
var _internal = require("../internal");
|
|
21
22
|
var _dateTimePickerContainer = require("../internal/date-time-picker-container");
|
|
22
23
|
var _ffComponent = require("../internal/ff-component");
|
|
@@ -29,15 +30,14 @@ var _excluded = ["selectProps"],
|
|
|
29
30
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
30
31
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
31
32
|
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
|
-
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; }
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
|
|
33
|
+
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; }
|
|
34
|
+
var DatePicker = (0, _ffComponent.componentWithCondition)(
|
|
35
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
36
|
+
function () {
|
|
37
37
|
return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
|
|
38
38
|
}, _datePickerFc.default, _datePickerClass.default);
|
|
39
39
|
var packageName = "@atlaskit/datetime-picker";
|
|
40
|
-
var packageVersion = "15.
|
|
40
|
+
var packageVersion = "15.9.1";
|
|
41
41
|
var analyticsAttributes = {
|
|
42
42
|
componentName: 'dateTimePicker',
|
|
43
43
|
packageName: packageName,
|
|
@@ -46,31 +46,19 @@ var analyticsAttributes = {
|
|
|
46
46
|
|
|
47
47
|
// Make DatePicker 50% the width of DateTimePicker
|
|
48
48
|
// If rendering an icon container, shrink the TimePicker
|
|
49
|
-
var datePickerContainerStyles = (0,
|
|
49
|
+
var datePickerContainerStyles = (0, _primitives.xcss)({
|
|
50
50
|
flexBasis: '50%',
|
|
51
51
|
flexGrow: 1,
|
|
52
52
|
flexShrink: 0
|
|
53
53
|
});
|
|
54
|
-
var timePickerContainerStyles = (0,
|
|
54
|
+
var timePickerContainerStyles = (0, _primitives.xcss)({
|
|
55
55
|
flexBasis: '50%',
|
|
56
56
|
flexGrow: 1
|
|
57
57
|
});
|
|
58
|
-
var iconContainerStyles = (0,
|
|
58
|
+
var iconContainerStyles = (0, _primitives.xcss)({
|
|
59
59
|
display: 'flex',
|
|
60
|
-
margin: "var(--ds-border-width, 1px)",
|
|
61
60
|
alignItems: 'center',
|
|
62
|
-
flexBasis: 'inherit'
|
|
63
|
-
backgroundColor: 'inherit',
|
|
64
|
-
border: 'none',
|
|
65
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N70, ")"),
|
|
66
|
-
paddingBlockEnd: "var(--ds-space-075, 6px)",
|
|
67
|
-
paddingBlockStart: "var(--ds-space-075, 6px)",
|
|
68
|
-
paddingInlineEnd: "var(--ds-space-100, 8px)",
|
|
69
|
-
paddingInlineStart: "var(--ds-space-050, 4px)",
|
|
70
|
-
transition: "color 150ms",
|
|
71
|
-
'&:hover': {
|
|
72
|
-
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
73
|
-
}
|
|
61
|
+
flexBasis: 'inherit'
|
|
74
62
|
});
|
|
75
63
|
|
|
76
64
|
// react-select overrides (via @atlaskit/select).
|
|
@@ -303,21 +291,21 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
303
291
|
// Render DateTimePicker's IconContainer when a value has been filled
|
|
304
292
|
// Don't use Date or TimePicker's because they can't be customised
|
|
305
293
|
var isClearable = Boolean(dateValue || timeValue);
|
|
306
|
-
return
|
|
294
|
+
return /*#__PURE__*/_react.default.createElement(_dateTimePickerContainer.DateTimePickerContainer, {
|
|
307
295
|
appearance: appearance,
|
|
308
296
|
isDisabled: isDisabled,
|
|
309
297
|
isFocused: isFocused,
|
|
310
298
|
isInvalid: isInvalid,
|
|
311
299
|
testId: testId,
|
|
312
300
|
innerProps: innerProps
|
|
313
|
-
},
|
|
301
|
+
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
314
302
|
name: name,
|
|
315
303
|
type: "hidden",
|
|
316
304
|
value: value,
|
|
317
305
|
"data-testid": testId && "".concat(testId, "--input")
|
|
318
|
-
}), (
|
|
319
|
-
|
|
320
|
-
},
|
|
306
|
+
}), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
307
|
+
xcss: datePickerContainerStyles
|
|
308
|
+
}, /*#__PURE__*/_react.default.createElement(DatePicker, {
|
|
321
309
|
appearance: appearance,
|
|
322
310
|
"aria-describedby": datePickerAriaDescribedBy,
|
|
323
311
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
@@ -352,9 +340,9 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
352
340
|
testId: testId && "".concat(testId, "--datepicker") || datePickerProps.testId,
|
|
353
341
|
value: dateValue,
|
|
354
342
|
weekStartDay: datePickerProps.weekStartDay
|
|
355
|
-
})), (
|
|
356
|
-
|
|
357
|
-
},
|
|
343
|
+
})), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
344
|
+
xcss: timePickerContainerStyles
|
|
345
|
+
}, /*#__PURE__*/_react.default.createElement(_timePicker.default, {
|
|
358
346
|
appearance: timePickerProps.appearance || appearance,
|
|
359
347
|
"aria-describedby": timePickerAriaDescribedBy,
|
|
360
348
|
autoFocus: timePickerProps.autoFocus,
|
|
@@ -383,16 +371,20 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
383
371
|
timeIsEditable: timePickerProps.timeIsEditable,
|
|
384
372
|
times: timePickerProps.times,
|
|
385
373
|
value: timeValue
|
|
386
|
-
})), isClearable && !isDisabled ? (
|
|
387
|
-
|
|
374
|
+
})), isClearable && !isDisabled ? /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
375
|
+
xcss: iconContainerStyles
|
|
376
|
+
}, /*#__PURE__*/_react.default.createElement(_new.IconButton, {
|
|
377
|
+
appearance: "subtle",
|
|
378
|
+
label: clearControlLabel,
|
|
379
|
+
icon: function icon(iconProps) {
|
|
380
|
+
return /*#__PURE__*/_react.default.createElement(_crossCircleSelectClear.default, (0, _extends2.default)({}, iconProps, {
|
|
381
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
382
|
+
LEGACY_size: "small"
|
|
383
|
+
}));
|
|
384
|
+
},
|
|
388
385
|
onClick: onClear,
|
|
389
|
-
|
|
390
|
-
tabIndex: -1
|
|
391
|
-
|
|
392
|
-
}, (0, _react2.jsx)(_crossCircleSelectClear.default, {
|
|
393
|
-
LEGACY_size: "small",
|
|
394
|
-
color: "currentColor",
|
|
395
|
-
label: clearControlLabel
|
|
396
|
-
}), ' ') : null);
|
|
386
|
+
testId: testId && "".concat(testId, "--icon--container"),
|
|
387
|
+
tabIndex: -1
|
|
388
|
+
})) : null);
|
|
397
389
|
});
|
|
398
390
|
var _default = exports.default = DateTimePicker;
|
|
@@ -27,7 +27,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
27
27
|
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; }
|
|
28
28
|
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; }
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "15.
|
|
30
|
+
var packageVersion = "15.9.1";
|
|
31
31
|
var menuStyles = {
|
|
32
32
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
33
33
|
position: 'static',
|
|
@@ -83,6 +83,8 @@ var DateTimePickerContainer = exports.DateTimePickerContainer = /*#__PURE__*/(0,
|
|
|
83
83
|
innerProps = _ref.innerProps,
|
|
84
84
|
testId = _ref.testId;
|
|
85
85
|
var notFocusedOrIsDisabled = !(isFocused || isDisabled);
|
|
86
|
+
|
|
87
|
+
// we cannot use Box or Flex primitives because these do not allow ...innerProps to be passed
|
|
86
88
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
87
89
|
css: [baseContainerStyles, newBorderStyles, isDisabled && isDisabledStyles, isFocused && isFocusedStyles, appearance === 'subtle' && (isFocused ? subtleFocusedBgStyles : subtleBgStyles), isFocused && isFocusedBorderStyles, isInvalid && isInvalidBorderStyles, notFocusedOrIsDisabled && (isInvalid ? isInvalidHoverStyles : hoverStyles), appearance === 'none' && noBgStyles]
|
|
88
90
|
}, innerProps, {
|
|
@@ -53,7 +53,7 @@ var Menu = exports.Menu = function Menu(_ref) {
|
|
|
53
53
|
day = _getValidDate.day,
|
|
54
54
|
month = _getValidDate.month,
|
|
55
55
|
year = _getValidDate.year;
|
|
56
|
-
return (0, _react.jsx)(_layering.
|
|
56
|
+
return (0, _react.jsx)(_layering.Layering, {
|
|
57
57
|
isDisabled: false
|
|
58
58
|
}, (0, _react.jsx)(_fixedLayer.default, {
|
|
59
59
|
inputValue: selectProps.inputValue,
|
|
@@ -26,7 +26,7 @@ import { Menu } from '../internal/menu';
|
|
|
26
26
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
27
27
|
import { makeSingleValue } from '../internal/single-value';
|
|
28
28
|
const packageName = "@atlaskit/datetime-picker";
|
|
29
|
-
const packageVersion = "15.
|
|
29
|
+
const packageVersion = "15.9.1";
|
|
30
30
|
const dropdownIndicatorStyles = xcss({
|
|
31
31
|
minWidth: "var(--ds-space-300, 24px)",
|
|
32
32
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -24,7 +24,7 @@ import { Menu } from '../internal/menu';
|
|
|
24
24
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
25
25
|
import { makeSingleValue } from '../internal/single-value';
|
|
26
26
|
const packageName = "@atlaskit/datetime-picker";
|
|
27
|
-
const packageVersion = "15.
|
|
27
|
+
const packageVersion = "15.9.1";
|
|
28
28
|
const analyticsAttributes = {
|
|
29
29
|
componentName: 'datePicker',
|
|
30
30
|
packageName,
|
|
@@ -22,7 +22,7 @@ import DatePickerNew from './date-picker-fc';
|
|
|
22
22
|
import TimePicker from './time-picker';
|
|
23
23
|
const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
24
24
|
const packageName = "@atlaskit/datetime-picker";
|
|
25
|
-
const packageVersion = "15.
|
|
25
|
+
const packageVersion = "15.9.1";
|
|
26
26
|
// Make DatePicker 50% the width of DateTimePicker
|
|
27
27
|
// If rendering an icon container, shrink the TimePicker
|
|
28
28
|
const datePickerContainerStyles = css({
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
2
|
import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
9
3
|
import { format, isValid, parseISO } from 'date-fns';
|
|
10
4
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
5
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
11
6
|
import SelectClearIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
|
|
12
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
13
9
|
import { mergeStyles } from '@atlaskit/select';
|
|
14
|
-
import { N500, N70 } from '@atlaskit/theme/colors';
|
|
15
10
|
import { formatDateTimeZoneIntoIso } from '../internal';
|
|
16
11
|
import { DateTimePickerContainer } from '../internal/date-time-picker-container';
|
|
17
12
|
import { componentWithCondition } from '../internal/ff-component';
|
|
@@ -19,9 +14,11 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
19
14
|
import DatePickerOld from './date-picker-class';
|
|
20
15
|
import DatePickerNew from './date-picker-fc';
|
|
21
16
|
import TimePicker from './time-picker';
|
|
22
|
-
const DatePicker = componentWithCondition(
|
|
17
|
+
const DatePicker = componentWithCondition(
|
|
18
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
19
|
+
() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
23
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
24
|
-
const packageVersion = "15.
|
|
21
|
+
const packageVersion = "15.9.1";
|
|
25
22
|
const analyticsAttributes = {
|
|
26
23
|
componentName: 'dateTimePicker',
|
|
27
24
|
packageName,
|
|
@@ -30,31 +27,19 @@ const analyticsAttributes = {
|
|
|
30
27
|
|
|
31
28
|
// Make DatePicker 50% the width of DateTimePicker
|
|
32
29
|
// If rendering an icon container, shrink the TimePicker
|
|
33
|
-
const datePickerContainerStyles =
|
|
30
|
+
const datePickerContainerStyles = xcss({
|
|
34
31
|
flexBasis: '50%',
|
|
35
32
|
flexGrow: 1,
|
|
36
33
|
flexShrink: 0
|
|
37
34
|
});
|
|
38
|
-
const timePickerContainerStyles =
|
|
35
|
+
const timePickerContainerStyles = xcss({
|
|
39
36
|
flexBasis: '50%',
|
|
40
37
|
flexGrow: 1
|
|
41
38
|
});
|
|
42
|
-
const iconContainerStyles =
|
|
39
|
+
const iconContainerStyles = xcss({
|
|
43
40
|
display: 'flex',
|
|
44
|
-
margin: "var(--ds-border-width, 1px)",
|
|
45
41
|
alignItems: 'center',
|
|
46
|
-
flexBasis: 'inherit'
|
|
47
|
-
backgroundColor: 'inherit',
|
|
48
|
-
border: 'none',
|
|
49
|
-
color: `var(--ds-text-subtlest, ${N70})`,
|
|
50
|
-
paddingBlockEnd: "var(--ds-space-075, 6px)",
|
|
51
|
-
paddingBlockStart: "var(--ds-space-075, 6px)",
|
|
52
|
-
paddingInlineEnd: "var(--ds-space-100, 8px)",
|
|
53
|
-
paddingInlineStart: "var(--ds-space-050, 4px)",
|
|
54
|
-
transition: `color 150ms`,
|
|
55
|
-
'&:hover': {
|
|
56
|
-
color: `var(--ds-text-subtle, ${N500})`
|
|
57
|
-
}
|
|
42
|
+
flexBasis: 'inherit'
|
|
58
43
|
});
|
|
59
44
|
|
|
60
45
|
// react-select overrides (via @atlaskit/select).
|
|
@@ -268,21 +253,21 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
268
253
|
// Render DateTimePicker's IconContainer when a value has been filled
|
|
269
254
|
// Don't use Date or TimePicker's because they can't be customised
|
|
270
255
|
const isClearable = Boolean(dateValue || timeValue);
|
|
271
|
-
return
|
|
256
|
+
return /*#__PURE__*/React.createElement(DateTimePickerContainer, {
|
|
272
257
|
appearance: appearance,
|
|
273
258
|
isDisabled: isDisabled,
|
|
274
259
|
isFocused: isFocused,
|
|
275
260
|
isInvalid: isInvalid,
|
|
276
261
|
testId: testId,
|
|
277
262
|
innerProps: innerProps
|
|
278
|
-
},
|
|
263
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
279
264
|
name: name,
|
|
280
265
|
type: "hidden",
|
|
281
266
|
value: value,
|
|
282
267
|
"data-testid": testId && `${testId}--input`
|
|
283
|
-
}),
|
|
284
|
-
|
|
285
|
-
},
|
|
268
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
269
|
+
xcss: datePickerContainerStyles
|
|
270
|
+
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
286
271
|
appearance: appearance,
|
|
287
272
|
"aria-describedby": datePickerAriaDescribedBy,
|
|
288
273
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
@@ -317,9 +302,9 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
317
302
|
testId: testId && `${testId}--datepicker` || datePickerProps.testId,
|
|
318
303
|
value: dateValue,
|
|
319
304
|
weekStartDay: datePickerProps.weekStartDay
|
|
320
|
-
})),
|
|
321
|
-
|
|
322
|
-
},
|
|
305
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
306
|
+
xcss: timePickerContainerStyles
|
|
307
|
+
}, /*#__PURE__*/React.createElement(TimePicker, {
|
|
323
308
|
appearance: timePickerProps.appearance || appearance,
|
|
324
309
|
"aria-describedby": timePickerAriaDescribedBy,
|
|
325
310
|
autoFocus: timePickerProps.autoFocus,
|
|
@@ -348,16 +333,18 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
348
333
|
timeIsEditable: timePickerProps.timeIsEditable,
|
|
349
334
|
times: timePickerProps.times,
|
|
350
335
|
value: timeValue
|
|
351
|
-
})), isClearable && !isDisabled ?
|
|
352
|
-
|
|
336
|
+
})), isClearable && !isDisabled ? /*#__PURE__*/React.createElement(Inline, {
|
|
337
|
+
xcss: iconContainerStyles
|
|
338
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
339
|
+
appearance: "subtle",
|
|
340
|
+
label: clearControlLabel,
|
|
341
|
+
icon: iconProps => /*#__PURE__*/React.createElement(SelectClearIcon, _extends({}, iconProps, {
|
|
342
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
343
|
+
LEGACY_size: "small"
|
|
344
|
+
})),
|
|
353
345
|
onClick: onClear,
|
|
354
|
-
|
|
355
|
-
tabIndex: -1
|
|
356
|
-
|
|
357
|
-
}, jsx(SelectClearIcon, {
|
|
358
|
-
LEGACY_size: "small",
|
|
359
|
-
color: "currentColor",
|
|
360
|
-
label: clearControlLabel
|
|
361
|
-
}), ' ') : null);
|
|
346
|
+
testId: testId && `${testId}--icon--container`,
|
|
347
|
+
tabIndex: -1
|
|
348
|
+
})) : null);
|
|
362
349
|
});
|
|
363
350
|
export default DateTimePicker;
|
|
@@ -11,7 +11,7 @@ import parseTime from '../internal/parse-time';
|
|
|
11
11
|
import { convertTokens } from '../internal/parse-tokens';
|
|
12
12
|
import { makeSingleValue } from '../internal/single-value';
|
|
13
13
|
const packageName = "@atlaskit/datetime-picker";
|
|
14
|
-
const packageVersion = "15.
|
|
14
|
+
const packageVersion = "15.9.1";
|
|
15
15
|
const menuStyles = {
|
|
16
16
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
17
17
|
position: 'static',
|
|
@@ -76,6 +76,8 @@ export const DateTimePickerContainer = /*#__PURE__*/forwardRef(({
|
|
|
76
76
|
testId
|
|
77
77
|
}, ref) => {
|
|
78
78
|
const notFocusedOrIsDisabled = !(isFocused || isDisabled);
|
|
79
|
+
|
|
80
|
+
// we cannot use Box or Flex primitives because these do not allow ...innerProps to be passed
|
|
79
81
|
return jsx("div", _extends({
|
|
80
82
|
css: [baseContainerStyles, newBorderStyles, isDisabled && isDisabledStyles, isFocused && isFocusedStyles, appearance === 'subtle' && (isFocused ? subtleFocusedBgStyles : subtleBgStyles), isFocused && isFocusedBorderStyles, isInvalid && isInvalidBorderStyles, notFocusedOrIsDisabled && (isInvalid ? isInvalidHoverStyles : hoverStyles), appearance === 'none' && noBgStyles]
|
|
81
83
|
}, innerProps, {
|
|
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { isValid, parseISO } from 'date-fns';
|
|
9
9
|
import Calendar from '@atlaskit/calendar';
|
|
10
|
-
import {
|
|
10
|
+
import { Layering } from '@atlaskit/layering';
|
|
11
11
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
12
12
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
13
|
import FixedLayer from '../internal/fixed-layer';
|
|
@@ -50,7 +50,7 @@ export const Menu = ({
|
|
|
50
50
|
month,
|
|
51
51
|
year
|
|
52
52
|
} = getValidDate([calendarValue, calendarView]);
|
|
53
|
-
return jsx(
|
|
53
|
+
return jsx(Layering, {
|
|
54
54
|
isDisabled: false
|
|
55
55
|
}, jsx(FixedLayer, {
|
|
56
56
|
inputValue: selectProps.inputValue,
|
|
@@ -36,7 +36,7 @@ import { Menu } from '../internal/menu';
|
|
|
36
36
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
37
37
|
import { makeSingleValue } from '../internal/single-value';
|
|
38
38
|
var packageName = "@atlaskit/datetime-picker";
|
|
39
|
-
var packageVersion = "15.
|
|
39
|
+
var packageVersion = "15.9.1";
|
|
40
40
|
var dropdownIndicatorStyles = xcss({
|
|
41
41
|
minWidth: "var(--ds-space-300, 24px)",
|
|
42
42
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -30,7 +30,7 @@ import { Menu } from '../internal/menu';
|
|
|
30
30
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
31
31
|
import { makeSingleValue } from '../internal/single-value';
|
|
32
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "15.
|
|
33
|
+
var packageVersion = "15.9.1";
|
|
34
34
|
var analyticsAttributes = {
|
|
35
35
|
componentName: 'datePicker',
|
|
36
36
|
packageName: packageName,
|
|
@@ -34,7 +34,7 @@ var DatePicker = componentWithCondition(function () {
|
|
|
34
34
|
return fg('dst-date-picker-use-functional-component');
|
|
35
35
|
}, DatePickerNew, DatePickerOld);
|
|
36
36
|
var packageName = "@atlaskit/datetime-picker";
|
|
37
|
-
var packageVersion = "15.
|
|
37
|
+
var packageVersion = "15.9.1";
|
|
38
38
|
// Make DatePicker 50% the width of DateTimePicker
|
|
39
39
|
// If rendering an icon container, shrink the TimePicker
|
|
40
40
|
var datePickerContainerStyles = css({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
@@ -5,20 +6,14 @@ var _excluded = ["selectProps"],
|
|
|
5
6
|
_excluded2 = ["selectProps"];
|
|
6
7
|
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; }
|
|
7
8
|
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) { _defineProperty(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; }
|
|
8
|
-
/**
|
|
9
|
-
* @jsxRuntime classic
|
|
10
|
-
* @jsx jsx
|
|
11
|
-
*/
|
|
12
9
|
import React, { forwardRef, useCallback, useEffect, useState } from 'react';
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
import { css, jsx } from '@emotion/react';
|
|
16
10
|
import { format, isValid, parseISO } from 'date-fns';
|
|
17
11
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
12
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
18
13
|
import SelectClearIcon from '@atlaskit/icon/utility/migration/cross-circle--select-clear';
|
|
19
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
20
16
|
import { mergeStyles } from '@atlaskit/select';
|
|
21
|
-
import { N500, N70 } from '@atlaskit/theme/colors';
|
|
22
17
|
import { formatDateTimeZoneIntoIso } from '../internal';
|
|
23
18
|
import { DateTimePickerContainer } from '../internal/date-time-picker-container';
|
|
24
19
|
import { componentWithCondition } from '../internal/ff-component';
|
|
@@ -26,11 +21,13 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
26
21
|
import DatePickerOld from './date-picker-class';
|
|
27
22
|
import DatePickerNew from './date-picker-fc';
|
|
28
23
|
import TimePicker from './time-picker';
|
|
29
|
-
var DatePicker = componentWithCondition(
|
|
24
|
+
var DatePicker = componentWithCondition(
|
|
25
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
26
|
+
function () {
|
|
30
27
|
return fg('dst-date-picker-use-functional-component');
|
|
31
28
|
}, DatePickerNew, DatePickerOld);
|
|
32
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "15.
|
|
30
|
+
var packageVersion = "15.9.1";
|
|
34
31
|
var analyticsAttributes = {
|
|
35
32
|
componentName: 'dateTimePicker',
|
|
36
33
|
packageName: packageName,
|
|
@@ -39,31 +36,19 @@ var analyticsAttributes = {
|
|
|
39
36
|
|
|
40
37
|
// Make DatePicker 50% the width of DateTimePicker
|
|
41
38
|
// If rendering an icon container, shrink the TimePicker
|
|
42
|
-
var datePickerContainerStyles =
|
|
39
|
+
var datePickerContainerStyles = xcss({
|
|
43
40
|
flexBasis: '50%',
|
|
44
41
|
flexGrow: 1,
|
|
45
42
|
flexShrink: 0
|
|
46
43
|
});
|
|
47
|
-
var timePickerContainerStyles =
|
|
44
|
+
var timePickerContainerStyles = xcss({
|
|
48
45
|
flexBasis: '50%',
|
|
49
46
|
flexGrow: 1
|
|
50
47
|
});
|
|
51
|
-
var iconContainerStyles =
|
|
48
|
+
var iconContainerStyles = xcss({
|
|
52
49
|
display: 'flex',
|
|
53
|
-
margin: "var(--ds-border-width, 1px)",
|
|
54
50
|
alignItems: 'center',
|
|
55
|
-
flexBasis: 'inherit'
|
|
56
|
-
backgroundColor: 'inherit',
|
|
57
|
-
border: 'none',
|
|
58
|
-
color: "var(--ds-text-subtlest, ".concat(N70, ")"),
|
|
59
|
-
paddingBlockEnd: "var(--ds-space-075, 6px)",
|
|
60
|
-
paddingBlockStart: "var(--ds-space-075, 6px)",
|
|
61
|
-
paddingInlineEnd: "var(--ds-space-100, 8px)",
|
|
62
|
-
paddingInlineStart: "var(--ds-space-050, 4px)",
|
|
63
|
-
transition: "color 150ms",
|
|
64
|
-
'&:hover': {
|
|
65
|
-
color: "var(--ds-text-subtle, ".concat(N500, ")")
|
|
66
|
-
}
|
|
51
|
+
flexBasis: 'inherit'
|
|
67
52
|
});
|
|
68
53
|
|
|
69
54
|
// react-select overrides (via @atlaskit/select).
|
|
@@ -296,21 +281,21 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
296
281
|
// Render DateTimePicker's IconContainer when a value has been filled
|
|
297
282
|
// Don't use Date or TimePicker's because they can't be customised
|
|
298
283
|
var isClearable = Boolean(dateValue || timeValue);
|
|
299
|
-
return
|
|
284
|
+
return /*#__PURE__*/React.createElement(DateTimePickerContainer, {
|
|
300
285
|
appearance: appearance,
|
|
301
286
|
isDisabled: isDisabled,
|
|
302
287
|
isFocused: isFocused,
|
|
303
288
|
isInvalid: isInvalid,
|
|
304
289
|
testId: testId,
|
|
305
290
|
innerProps: innerProps
|
|
306
|
-
},
|
|
291
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
307
292
|
name: name,
|
|
308
293
|
type: "hidden",
|
|
309
294
|
value: value,
|
|
310
295
|
"data-testid": testId && "".concat(testId, "--input")
|
|
311
|
-
}),
|
|
312
|
-
|
|
313
|
-
},
|
|
296
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
297
|
+
xcss: datePickerContainerStyles
|
|
298
|
+
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
314
299
|
appearance: appearance,
|
|
315
300
|
"aria-describedby": datePickerAriaDescribedBy,
|
|
316
301
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
@@ -345,9 +330,9 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
345
330
|
testId: testId && "".concat(testId, "--datepicker") || datePickerProps.testId,
|
|
346
331
|
value: dateValue,
|
|
347
332
|
weekStartDay: datePickerProps.weekStartDay
|
|
348
|
-
})),
|
|
349
|
-
|
|
350
|
-
},
|
|
333
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
334
|
+
xcss: timePickerContainerStyles
|
|
335
|
+
}, /*#__PURE__*/React.createElement(TimePicker, {
|
|
351
336
|
appearance: timePickerProps.appearance || appearance,
|
|
352
337
|
"aria-describedby": timePickerAriaDescribedBy,
|
|
353
338
|
autoFocus: timePickerProps.autoFocus,
|
|
@@ -376,16 +361,20 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
376
361
|
timeIsEditable: timePickerProps.timeIsEditable,
|
|
377
362
|
times: timePickerProps.times,
|
|
378
363
|
value: timeValue
|
|
379
|
-
})), isClearable && !isDisabled ?
|
|
380
|
-
|
|
364
|
+
})), isClearable && !isDisabled ? /*#__PURE__*/React.createElement(Inline, {
|
|
365
|
+
xcss: iconContainerStyles
|
|
366
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
367
|
+
appearance: "subtle",
|
|
368
|
+
label: clearControlLabel,
|
|
369
|
+
icon: function icon(iconProps) {
|
|
370
|
+
return /*#__PURE__*/React.createElement(SelectClearIcon, _extends({}, iconProps, {
|
|
371
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
372
|
+
LEGACY_size: "small"
|
|
373
|
+
}));
|
|
374
|
+
},
|
|
381
375
|
onClick: onClear,
|
|
382
|
-
|
|
383
|
-
tabIndex: -1
|
|
384
|
-
|
|
385
|
-
}, jsx(SelectClearIcon, {
|
|
386
|
-
LEGACY_size: "small",
|
|
387
|
-
color: "currentColor",
|
|
388
|
-
label: clearControlLabel
|
|
389
|
-
}), ' ') : null);
|
|
376
|
+
testId: testId && "".concat(testId, "--icon--container"),
|
|
377
|
+
tabIndex: -1
|
|
378
|
+
})) : null);
|
|
390
379
|
});
|
|
391
380
|
export default DateTimePicker;
|
|
@@ -17,7 +17,7 @@ import parseTime from '../internal/parse-time';
|
|
|
17
17
|
import { convertTokens } from '../internal/parse-tokens';
|
|
18
18
|
import { makeSingleValue } from '../internal/single-value';
|
|
19
19
|
var packageName = "@atlaskit/datetime-picker";
|
|
20
|
-
var packageVersion = "15.
|
|
20
|
+
var packageVersion = "15.9.1";
|
|
21
21
|
var menuStyles = {
|
|
22
22
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
23
23
|
position: 'static',
|
|
@@ -75,6 +75,8 @@ export var DateTimePickerContainer = /*#__PURE__*/forwardRef(function (_ref, ref
|
|
|
75
75
|
innerProps = _ref.innerProps,
|
|
76
76
|
testId = _ref.testId;
|
|
77
77
|
var notFocusedOrIsDisabled = !(isFocused || isDisabled);
|
|
78
|
+
|
|
79
|
+
// we cannot use Box or Flex primitives because these do not allow ...innerProps to be passed
|
|
78
80
|
return jsx("div", _extends({
|
|
79
81
|
css: [baseContainerStyles, newBorderStyles, isDisabled && isDisabledStyles, isFocused && isFocusedStyles, appearance === 'subtle' && (isFocused ? subtleFocusedBgStyles : subtleBgStyles), isFocused && isFocusedBorderStyles, isInvalid && isInvalidBorderStyles, notFocusedOrIsDisabled && (isInvalid ? isInvalidHoverStyles : hoverStyles), appearance === 'none' && noBgStyles]
|
|
80
82
|
}, innerProps, {
|
|
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { isValid, parseISO } from 'date-fns';
|
|
9
9
|
import Calendar from '@atlaskit/calendar';
|
|
10
|
-
import {
|
|
10
|
+
import { Layering } from '@atlaskit/layering';
|
|
11
11
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
12
12
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
13
|
import FixedLayer from '../internal/fixed-layer';
|
|
@@ -46,7 +46,7 @@ export var Menu = function Menu(_ref) {
|
|
|
46
46
|
day = _getValidDate.day,
|
|
47
47
|
month = _getValidDate.month,
|
|
48
48
|
year = _getValidDate.year;
|
|
49
|
-
return jsx(
|
|
49
|
+
return jsx(Layering, {
|
|
50
50
|
isDisabled: false
|
|
51
51
|
}, jsx(FixedLayer, {
|
|
52
52
|
inputValue: selectProps.inputValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.9.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,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
39
|
+
"@atlaskit/button": "^20.3.1",
|
|
39
40
|
"@atlaskit/calendar": "^15.1.0",
|
|
40
41
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
41
42
|
"@atlaskit/icon": "^22.24.0",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"@atlaskit/locale": "^2.8.0",
|
|
44
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
46
|
"@atlaskit/popper": "^6.3.0",
|
|
46
|
-
"@atlaskit/primitives": "^13.
|
|
47
|
+
"@atlaskit/primitives": "^13.1.0",
|
|
47
48
|
"@atlaskit/select": "^18.5.0",
|
|
48
49
|
"@atlaskit/theme": "^14.0.0",
|
|
49
50
|
"@atlaskit/tokens": "^2.2.0",
|
|
@@ -59,7 +60,6 @@
|
|
|
59
60
|
"@af/accessibility-testing": "*",
|
|
60
61
|
"@af/integration-testing": "*",
|
|
61
62
|
"@af/visual-regression": "*",
|
|
62
|
-
"@atlaskit/button": "^20.3.0",
|
|
63
63
|
"@atlaskit/codemod-utils": "4.2.4",
|
|
64
64
|
"@atlaskit/docs": "*",
|
|
65
65
|
"@atlaskit/form": "^10.5.0",
|