@atlaskit/datetime-picker 18.4.1 → 18.4.2
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 +9 -0
- package/dist/cjs/components/date-picker.js +16 -6
- package/dist/cjs/components/date-time-picker.js +3 -3
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/cjs/internal/fixed-layer-menu-top-layer.js +3 -3
- package/dist/es2019/components/date-picker.js +15 -5
- package/dist/es2019/components/date-time-picker.js +2 -2
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/es2019/internal/fixed-layer-menu-top-layer.js +2 -2
- package/dist/esm/components/date-picker.js +15 -5
- package/dist/esm/components/date-time-picker.js +2 -2
- package/dist/esm/components/time-picker.js +1 -1
- package/dist/esm/internal/fixed-layer-menu-top-layer.js +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 18.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6d3790c08ff19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d3790c08ff19) -
|
|
8
|
+
Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is
|
|
9
|
+
partial.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 18.4.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
17
17
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
18
18
|
var _dateFns = require("date-fns");
|
|
19
19
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
20
|
-
var
|
|
20
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
21
21
|
var _css = require("@atlaskit/css");
|
|
22
22
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
23
23
|
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/calendar"));
|
|
@@ -45,7 +45,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
45
45
|
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; }
|
|
46
46
|
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; }
|
|
47
47
|
var packageName = "@atlaskit/datetime-picker";
|
|
48
|
-
var packageVersion = "18.4.
|
|
48
|
+
var packageVersion = "18.4.1";
|
|
49
49
|
var styles = {
|
|
50
50
|
pickerContainerStyle: "_kqswh2mm",
|
|
51
51
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -72,6 +72,8 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, _forwarded
|
|
|
72
72
|
var containerRef = (0, _react.useRef)(null);
|
|
73
73
|
var calendarRef = (0, _react.useRef)(null);
|
|
74
74
|
var calendarButtonRef = (0, _react.useRef)(null);
|
|
75
|
+
// Track whether focus was caused by an active pointer gesture. Pointer-driven focus must defer
|
|
76
|
+
// opening a top-layer popover until click, while keyboard and programmatic focus can open it now.
|
|
75
77
|
var isPointerInteractionRef = (0, _react.useRef)(false);
|
|
76
78
|
var _props$appearance = props.appearance,
|
|
77
79
|
appearance = _props$appearance === void 0 ? 'default' : _props$appearance,
|
|
@@ -535,17 +537,25 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, _forwarded
|
|
|
535
537
|
var openCalendarLabelId = "open-calendar-label--".concat((0, _useId.useId)());
|
|
536
538
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({}, innerProps, {
|
|
537
539
|
"data-testid": testId && "".concat(testId, "--container"),
|
|
538
|
-
onBlur: onContainerBlur
|
|
540
|
+
onBlur: onContainerBlur
|
|
541
|
+
// Reset before descendant click handlers run: click happens after native light-dismiss, so
|
|
542
|
+
// any focus they move is safe to treat as non-pointer focus. Capture also guarantees cleanup
|
|
543
|
+
// when a descendant stops the bubbling click.
|
|
544
|
+
,
|
|
539
545
|
onClickCapture: function onClickCapture() {
|
|
540
546
|
isPointerInteractionRef.current = false;
|
|
541
547
|
},
|
|
542
548
|
onFocus: onContainerFocus,
|
|
543
549
|
onClick: onInputClick,
|
|
544
550
|
onInput: onTextInput,
|
|
545
|
-
onKeyDown: onInputKeyDown
|
|
551
|
+
onKeyDown: onInputKeyDown
|
|
552
|
+
// A cancelled pointer produces no click, so clear the tracking state here instead.
|
|
553
|
+
,
|
|
546
554
|
onPointerCancelCapture: function onPointerCancelCapture() {
|
|
547
555
|
isPointerInteractionRef.current = false;
|
|
548
|
-
}
|
|
556
|
+
}
|
|
557
|
+
// Capture pointerdown before it moves focus into a descendant Select control.
|
|
558
|
+
,
|
|
549
559
|
onPointerDownCapture: function onPointerDownCapture() {
|
|
550
560
|
isPointerInteractionRef.current = true;
|
|
551
561
|
},
|
|
@@ -620,7 +630,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, _forwarded
|
|
|
620
630
|
menuInnerWrapper: calendarProps.menuInnerWrapper
|
|
621
631
|
})), shouldShowCalendarButton && !isDisabled ? /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
622
632
|
xcss: (0, _css.cx)(styles.iconContainerStyles, getterValue && !hideIcon ? styles.iconSpacingWithClearButtonStyles : styles.iconSpacingWithoutClearButtonStyles)
|
|
623
|
-
}, /*#__PURE__*/React.createElement(
|
|
633
|
+
}, /*#__PURE__*/React.createElement(_button.default, {
|
|
624
634
|
appearance: "subtle",
|
|
625
635
|
label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
|
|
626
636
|
"aria-labelledby": inputLabelId ? "".concat(inputLabelId, " ").concat(openCalendarLabelId) : undefined,
|
|
@@ -16,7 +16,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _dateFns = require("date-fns");
|
|
18
18
|
var _usePlatformLeafEventHandler = require("@atlaskit/analytics-next/usePlatformLeafEventHandler");
|
|
19
|
-
var
|
|
19
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
20
20
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
21
21
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
22
|
var _styles = require("@atlaskit/react-select/styles");
|
|
@@ -33,7 +33,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
33
33
|
// for typing `process`
|
|
34
34
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
35
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
36
|
-
var packageVersion = "18.4.
|
|
36
|
+
var packageVersion = "18.4.1";
|
|
37
37
|
var analyticsAttributes = {
|
|
38
38
|
componentName: 'dateTimePicker',
|
|
39
39
|
packageName: packageName,
|
|
@@ -492,7 +492,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
492
492
|
value: dtState.timeValue
|
|
493
493
|
})), isClearable && !isDisabled ? /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
494
494
|
xcss: compiledStyles.iconContainerStyles
|
|
495
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
495
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
496
496
|
appearance: "subtle",
|
|
497
497
|
label: clearControlLabel,
|
|
498
498
|
icon: function icon(iconProps) {
|
|
@@ -32,7 +32,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
32
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; }
|
|
33
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; } // oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
34
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
var packageVersion = "18.4.
|
|
35
|
+
var packageVersion = "18.4.1";
|
|
36
36
|
var defaultTimeFormat = 'h:mma';
|
|
37
37
|
var menuStyles = {
|
|
38
38
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
@@ -13,8 +13,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
var _components = require("@atlaskit/react-select/components");
|
|
16
|
-
var
|
|
17
|
-
var _popover = require("@atlaskit/top-layer/popover");
|
|
16
|
+
var _index = require("@atlaskit/top-layer/placement-map/index");
|
|
17
|
+
var _popover = require("@atlaskit/top-layer/popover/popover");
|
|
18
18
|
var _popoverSurface = require("@atlaskit/top-layer/popover-surface");
|
|
19
19
|
var _useAnchorPosition = require("@atlaskit/top-layer/use-anchor-position");
|
|
20
20
|
var _excluded = ["className", "clearValue", "cx", "getStyles", "getValue", "hasValue", "innerProps", "innerRef", "isLoading", "isMulti", "isRtl", "maxMenuHeight", "menuPlacement", "menuPosition", "menuShouldScrollIntoView", "minMenuHeight", "options", "placement", "selectOption", "selectProps", "setValue", "children"];
|
|
@@ -23,7 +23,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
23
23
|
* Bottom-start placement: time options menu appears below and aligned to the
|
|
24
24
|
* start edge of the trigger (the select input).
|
|
25
25
|
*/
|
|
26
|
-
var popupPlacement = (0,
|
|
26
|
+
var popupPlacement = (0, _index.fromLegacyPlacement)({
|
|
27
27
|
legacy: 'bottom-start'
|
|
28
28
|
});
|
|
29
29
|
|
|
@@ -10,7 +10,7 @@ import { forwardRef, useCallback, useEffect, useReducer, useRef, useState } from
|
|
|
10
10
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
11
11
|
import { isValid, parseISO } from 'date-fns';
|
|
12
12
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
13
|
-
import
|
|
13
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
14
14
|
import { cx } from '@atlaskit/css';
|
|
15
15
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
16
16
|
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
@@ -32,7 +32,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
|
|
|
32
32
|
import { parseDate } from '../internal/parse-date';
|
|
33
33
|
import { makeSingleValue } from '../internal/single-value';
|
|
34
34
|
const packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
const packageVersion = "18.4.
|
|
35
|
+
const packageVersion = "18.4.1";
|
|
36
36
|
const styles = {
|
|
37
37
|
pickerContainerStyle: "_kqswh2mm",
|
|
38
38
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -59,6 +59,8 @@ const DatePicker = /*#__PURE__*/forwardRef((props, _forwardedRef) => {
|
|
|
59
59
|
const containerRef = useRef(null);
|
|
60
60
|
const calendarRef = useRef(null);
|
|
61
61
|
const calendarButtonRef = useRef(null);
|
|
62
|
+
// Track whether focus was caused by an active pointer gesture. Pointer-driven focus must defer
|
|
63
|
+
// opening a top-layer popover until click, while keyboard and programmatic focus can open it now.
|
|
62
64
|
const isPointerInteractionRef = useRef(false);
|
|
63
65
|
const {
|
|
64
66
|
appearance = 'default',
|
|
@@ -463,17 +465,25 @@ const DatePicker = /*#__PURE__*/forwardRef((props, _forwardedRef) => {
|
|
|
463
465
|
const openCalendarLabelId = `open-calendar-label--${useId()}`;
|
|
464
466
|
return /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
465
467
|
"data-testid": testId && `${testId}--container`,
|
|
466
|
-
onBlur: onContainerBlur
|
|
468
|
+
onBlur: onContainerBlur
|
|
469
|
+
// Reset before descendant click handlers run: click happens after native light-dismiss, so
|
|
470
|
+
// any focus they move is safe to treat as non-pointer focus. Capture also guarantees cleanup
|
|
471
|
+
// when a descendant stops the bubbling click.
|
|
472
|
+
,
|
|
467
473
|
onClickCapture: () => {
|
|
468
474
|
isPointerInteractionRef.current = false;
|
|
469
475
|
},
|
|
470
476
|
onFocus: onContainerFocus,
|
|
471
477
|
onClick: onInputClick,
|
|
472
478
|
onInput: onTextInput,
|
|
473
|
-
onKeyDown: onInputKeyDown
|
|
479
|
+
onKeyDown: onInputKeyDown
|
|
480
|
+
// A cancelled pointer produces no click, so clear the tracking state here instead.
|
|
481
|
+
,
|
|
474
482
|
onPointerCancelCapture: () => {
|
|
475
483
|
isPointerInteractionRef.current = false;
|
|
476
|
-
}
|
|
484
|
+
}
|
|
485
|
+
// Capture pointerdown before it moves focus into a descendant Select control.
|
|
486
|
+
,
|
|
477
487
|
onPointerDownCapture: () => {
|
|
478
488
|
isPointerInteractionRef.current = true;
|
|
479
489
|
},
|
|
@@ -10,7 +10,7 @@ import React, { forwardRef, useCallback, useEffect, useReducer, useRef, useState
|
|
|
10
10
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
11
11
|
import { format, isValid, parseISO } from 'date-fns';
|
|
12
12
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
13
|
-
import
|
|
13
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
14
14
|
import SelectClearIcon from '@atlaskit/icon/core/cross-circle';
|
|
15
15
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
16
16
|
import { mergeStyles } from '@atlaskit/react-select/styles';
|
|
@@ -20,7 +20,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
20
20
|
import DatePicker from './date-picker';
|
|
21
21
|
import TimePicker from './time-picker';
|
|
22
22
|
const packageName = "@atlaskit/datetime-picker";
|
|
23
|
-
const packageVersion = "18.4.
|
|
23
|
+
const packageVersion = "18.4.1";
|
|
24
24
|
const analyticsAttributes = {
|
|
25
25
|
componentName: 'dateTimePicker',
|
|
26
26
|
packageName,
|
|
@@ -19,7 +19,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
19
19
|
import { placeholderDatetime } from '../internal/placeholder-date-time';
|
|
20
20
|
import { makeSingleValue } from '../internal/single-value';
|
|
21
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
22
|
-
const packageVersion = "18.4.
|
|
22
|
+
const packageVersion = "18.4.1";
|
|
23
23
|
const defaultTimeFormat = 'h:mma';
|
|
24
24
|
const menuStyles = {
|
|
25
25
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
@@ -4,8 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useRef } from 'react';
|
|
6
6
|
import { components } from '@atlaskit/react-select/components';
|
|
7
|
-
import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map';
|
|
8
|
-
import { Popover } from '@atlaskit/top-layer/popover';
|
|
7
|
+
import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map/index';
|
|
8
|
+
import { Popover } from '@atlaskit/top-layer/popover/popover';
|
|
9
9
|
import { PopoverSurface } from '@atlaskit/top-layer/popover-surface';
|
|
10
10
|
import { useAnchorPosition } from '@atlaskit/top-layer/use-anchor-position';
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@ import { forwardRef, useCallback, useEffect, useReducer, useRef, useState } from
|
|
|
16
16
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
17
17
|
import { isValid, parseISO } from 'date-fns';
|
|
18
18
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
19
|
-
import
|
|
19
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
20
20
|
import { cx } from '@atlaskit/css';
|
|
21
21
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
22
22
|
import CalendarIcon from '@atlaskit/icon/core/calendar';
|
|
@@ -38,7 +38,7 @@ import { MenuTopLayer } from '../internal/menu-top-layer';
|
|
|
38
38
|
import { parseDate } from '../internal/parse-date';
|
|
39
39
|
import { makeSingleValue } from '../internal/single-value';
|
|
40
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
41
|
-
var packageVersion = "18.4.
|
|
41
|
+
var packageVersion = "18.4.1";
|
|
42
42
|
var styles = {
|
|
43
43
|
pickerContainerStyle: "_kqswh2mm",
|
|
44
44
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -65,6 +65,8 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, _forwardedRef) {
|
|
|
65
65
|
var containerRef = useRef(null);
|
|
66
66
|
var calendarRef = useRef(null);
|
|
67
67
|
var calendarButtonRef = useRef(null);
|
|
68
|
+
// Track whether focus was caused by an active pointer gesture. Pointer-driven focus must defer
|
|
69
|
+
// opening a top-layer popover until click, while keyboard and programmatic focus can open it now.
|
|
68
70
|
var isPointerInteractionRef = useRef(false);
|
|
69
71
|
var _props$appearance = props.appearance,
|
|
70
72
|
appearance = _props$appearance === void 0 ? 'default' : _props$appearance,
|
|
@@ -528,17 +530,25 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, _forwardedRef) {
|
|
|
528
530
|
var openCalendarLabelId = "open-calendar-label--".concat(useId());
|
|
529
531
|
return /*#__PURE__*/React.createElement("div", _extends({}, innerProps, {
|
|
530
532
|
"data-testid": testId && "".concat(testId, "--container"),
|
|
531
|
-
onBlur: onContainerBlur
|
|
533
|
+
onBlur: onContainerBlur
|
|
534
|
+
// Reset before descendant click handlers run: click happens after native light-dismiss, so
|
|
535
|
+
// any focus they move is safe to treat as non-pointer focus. Capture also guarantees cleanup
|
|
536
|
+
// when a descendant stops the bubbling click.
|
|
537
|
+
,
|
|
532
538
|
onClickCapture: function onClickCapture() {
|
|
533
539
|
isPointerInteractionRef.current = false;
|
|
534
540
|
},
|
|
535
541
|
onFocus: onContainerFocus,
|
|
536
542
|
onClick: onInputClick,
|
|
537
543
|
onInput: onTextInput,
|
|
538
|
-
onKeyDown: onInputKeyDown
|
|
544
|
+
onKeyDown: onInputKeyDown
|
|
545
|
+
// A cancelled pointer produces no click, so clear the tracking state here instead.
|
|
546
|
+
,
|
|
539
547
|
onPointerCancelCapture: function onPointerCancelCapture() {
|
|
540
548
|
isPointerInteractionRef.current = false;
|
|
541
|
-
}
|
|
549
|
+
}
|
|
550
|
+
// Capture pointerdown before it moves focus into a descendant Select control.
|
|
551
|
+
,
|
|
542
552
|
onPointerDownCapture: function onPointerDownCapture() {
|
|
543
553
|
isPointerInteractionRef.current = true;
|
|
544
554
|
},
|
|
@@ -17,7 +17,7 @@ import React, { forwardRef, useCallback, useEffect, useReducer, useRef, useState
|
|
|
17
17
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
18
18
|
import { format, isValid, parseISO } from 'date-fns';
|
|
19
19
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next/usePlatformLeafEventHandler';
|
|
20
|
-
import
|
|
20
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
21
21
|
import SelectClearIcon from '@atlaskit/icon/core/cross-circle';
|
|
22
22
|
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
23
23
|
import { mergeStyles } from '@atlaskit/react-select/styles';
|
|
@@ -27,7 +27,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
27
27
|
import DatePicker from './date-picker';
|
|
28
28
|
import TimePicker from './time-picker';
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "18.4.
|
|
30
|
+
var packageVersion = "18.4.1";
|
|
31
31
|
var analyticsAttributes = {
|
|
32
32
|
componentName: 'dateTimePicker',
|
|
33
33
|
packageName: packageName,
|
|
@@ -25,7 +25,7 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
25
25
|
import { placeholderDatetime } from '../internal/placeholder-date-time';
|
|
26
26
|
import { makeSingleValue } from '../internal/single-value';
|
|
27
27
|
var packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
var packageVersion = "18.4.
|
|
28
|
+
var packageVersion = "18.4.1";
|
|
29
29
|
var defaultTimeFormat = 'h:mma';
|
|
30
30
|
var menuStyles = {
|
|
31
31
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
@@ -6,8 +6,8 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useRef } from 'react';
|
|
8
8
|
import { components } from '@atlaskit/react-select/components';
|
|
9
|
-
import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map';
|
|
10
|
-
import { Popover } from '@atlaskit/top-layer/popover';
|
|
9
|
+
import { fromLegacyPlacement } from '@atlaskit/top-layer/placement-map/index';
|
|
10
|
+
import { Popover } from '@atlaskit/top-layer/popover/popover';
|
|
11
11
|
import { PopoverSurface } from '@atlaskit/top-layer/popover-surface';
|
|
12
12
|
import { useAnchorPosition } from '@atlaskit/top-layer/use-anchor-position';
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "18.4.
|
|
3
|
+
"version": "18.4.2",
|
|
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/"
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/analytics-next": "^12.
|
|
34
|
+
"@atlaskit/analytics-next": "^12.4.0",
|
|
35
35
|
"@atlaskit/button": "^25.2.0",
|
|
36
36
|
"@atlaskit/calendar": "^19.1.0",
|
|
37
|
-
"@atlaskit/css": "^1.
|
|
37
|
+
"@atlaskit/css": "^1.1.0",
|
|
38
38
|
"@atlaskit/ds-lib": "^8.0.0",
|
|
39
39
|
"@atlaskit/icon": "^37.5.0",
|
|
40
40
|
"@atlaskit/layering": "^5.1.0",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"@atlaskit/popper": "^9.3.0",
|
|
44
44
|
"@atlaskit/primitives": "^22.4.0",
|
|
45
45
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
46
|
-
"@atlaskit/react-select": "^4.
|
|
47
|
-
"@atlaskit/select": "^22.
|
|
48
|
-
"@atlaskit/tokens": "^16.
|
|
46
|
+
"@atlaskit/react-select": "^4.9.0",
|
|
47
|
+
"@atlaskit/select": "^22.10.0",
|
|
48
|
+
"@atlaskit/tokens": "^16.9.0",
|
|
49
49
|
"@atlaskit/top-layer": "^4.4.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@compiled/react": "^1.0.2",
|
|
52
52
|
"date-fns": "^2.17.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"react": "^18.2.0"
|
|
55
|
+
"react": "^18.2.0 || ^19.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@af/accessibility-testing": "workspace:^",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"jest-in-case": "^1.0.2",
|
|
80
80
|
"jscodeshift": "^17.0.0",
|
|
81
81
|
"moment": "^2.29.2",
|
|
82
|
-
"react": "^
|
|
82
|
+
"react": "^19.0.0",
|
|
83
83
|
"react-dom": "^18.2.0",
|
|
84
84
|
"react-lorem-component": "^0.13.0"
|
|
85
85
|
},
|