@atlaskit/datetime-picker 15.6.0 → 15.7.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 +15 -0
- package/dist/cjs/components/date-picker-class.js +6 -10
- package/dist/cjs/components/date-picker-fc.js +3 -6
- package/dist/cjs/components/date-time-picker-class.js +1 -1
- package/dist/cjs/components/date-time-picker-fc.js +1 -1
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/es2019/components/date-picker-class.js +7 -8
- package/dist/es2019/components/date-picker-fc.js +3 -6
- package/dist/es2019/components/date-time-picker-class.js +1 -1
- package/dist/es2019/components/date-time-picker-fc.js +1 -1
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/esm/components/date-picker-class.js +6 -10
- package/dist/esm/components/date-picker-fc.js +3 -6
- package/dist/esm/components/date-time-picker-class.js +1 -1
- package/dist/esm/components/date-time-picker-fc.js +1 -1
- package/dist/esm/components/time-picker.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 15.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2c624534e7b7d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2c624534e7b7d) -
|
|
8
|
+
Updated dependency.
|
|
9
|
+
|
|
10
|
+
## 15.7.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [#158791](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/158791)
|
|
15
|
+
[`2dcea88bcb6c7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2dcea88bcb6c7) -
|
|
16
|
+
Support React 18 SSR by removing use of react-uid
|
|
17
|
+
|
|
3
18
|
## 15.6.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -17,8 +17,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = require("react");
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
19
|
var _dateFns = require("date-fns");
|
|
20
|
-
var _reactUid = require("react-uid");
|
|
21
20
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
|
+
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
22
22
|
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/migration/calendar"));
|
|
23
23
|
var _calendar2 = _interopRequireDefault(require("@atlaskit/icon/glyph/calendar"));
|
|
24
24
|
var _locale = require("@atlaskit/locale");
|
|
@@ -42,11 +42,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
42
42
|
* @jsxRuntime classic
|
|
43
43
|
* @jsx jsx
|
|
44
44
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
45
|
-
// This is a deprecated component but we will be able to use the actual hook
|
|
46
|
-
// version very soon from converting this to functional. And also React 18 is on
|
|
47
|
-
// the horizon
|
|
48
45
|
var packageName = "@atlaskit/datetime-picker";
|
|
49
|
-
var packageVersion = "15.
|
|
46
|
+
var packageVersion = "15.7.1";
|
|
50
47
|
var dropdownIndicatorStyles = (0, _primitives.xcss)({
|
|
51
48
|
minWidth: "var(--ds-space-300, 24px)",
|
|
52
49
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -636,11 +633,10 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
636
633
|
onCalendarSelect: calendarProps.onCalendarSelect,
|
|
637
634
|
previousMonthLabel: previousMonthLabel,
|
|
638
635
|
shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay
|
|
639
|
-
})), shouldShowCalendarButton && !isDisabled ? (0, _react2.jsx)(
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}, function (openCalendarLabelId) {
|
|
636
|
+
})), shouldShowCalendarButton && !isDisabled ? (0, _react2.jsx)(_useId.IdProvider, {
|
|
637
|
+
prefix: "open-calendar-label--"
|
|
638
|
+
}, function (_ref3) {
|
|
639
|
+
var openCalendarLabelId = _ref3.id;
|
|
644
640
|
return (0, _react2.jsx)("div", {
|
|
645
641
|
css: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : (0, _platformFeatureFlags.fg)('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
646
642
|
}, inputLabelId && (0, _react2.jsx)(_visuallyHidden.default, {
|
|
@@ -13,8 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
var _react = require("react");
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
var _dateFns = require("date-fns");
|
|
16
|
-
var _reactUid = require("react-uid");
|
|
17
16
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
17
|
+
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
18
18
|
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/migration/calendar"));
|
|
19
19
|
var _calendar2 = _interopRequireDefault(require("@atlaskit/icon/glyph/calendar"));
|
|
20
20
|
var _locale = require("@atlaskit/locale");
|
|
@@ -35,15 +35,12 @@ var _excluded = ["appearance", "autoFocus", "clearControlLabel", "hideIcon", "op
|
|
|
35
35
|
* @jsx jsx
|
|
36
36
|
*/
|
|
37
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
38
|
-
// This is a deprecated component but we will be able to use the actual hook
|
|
39
|
-
// version very soon from converting this to functional. And also React 18 is on
|
|
40
|
-
// the horizon
|
|
41
38
|
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); }
|
|
42
39
|
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; }
|
|
43
40
|
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; }
|
|
44
41
|
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; }
|
|
45
42
|
var packageName = "@atlaskit/datetime-picker";
|
|
46
|
-
var packageVersion = "15.
|
|
43
|
+
var packageVersion = "15.7.1";
|
|
47
44
|
var analyticsAttributes = {
|
|
48
45
|
componentName: 'datePicker',
|
|
49
46
|
packageName: packageName,
|
|
@@ -553,7 +550,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
553
550
|
|
|
554
551
|
// `label` takes precedence of the `inputLabel`
|
|
555
552
|
var fullopenCalendarLabel = label || inputLabel ? "".concat(label || inputLabel, " , ").concat(openCalendarLabel) : openCalendarLabel;
|
|
556
|
-
var openCalendarLabelId = "open-calendar-label--".concat((0,
|
|
553
|
+
var openCalendarLabelId = "open-calendar-label--".concat((0, _useId.useId)());
|
|
557
554
|
return (
|
|
558
555
|
// These event handlers must be on this element because the events come
|
|
559
556
|
// from different child elements.
|
|
@@ -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.7.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)({
|
|
@@ -37,7 +37,7 @@ var DatePicker = (0, _ffComponent.componentWithCondition)(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.7.1";
|
|
41
41
|
var analyticsAttributes = {
|
|
42
42
|
componentName: 'dateTimePicker',
|
|
43
43
|
packageName: packageName,
|
|
@@ -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.7.1";
|
|
31
31
|
var menuStyles = {
|
|
32
32
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
33
33
|
position: 'static',
|
|
@@ -9,11 +9,8 @@ import { Component, createRef } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { isValid, parseISO } from 'date-fns';
|
|
12
|
-
// This is a deprecated component but we will be able to use the actual hook
|
|
13
|
-
// version very soon from converting this to functional. And also React 18 is on
|
|
14
|
-
// the horizon
|
|
15
|
-
import { UID } from 'react-uid';
|
|
16
12
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
13
|
+
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
17
14
|
import CalendarIconNew from '@atlaskit/icon/core/migration/calendar';
|
|
18
15
|
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
19
16
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
@@ -29,7 +26,7 @@ import { Menu } from '../internal/menu';
|
|
|
29
26
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
30
27
|
import { makeSingleValue } from '../internal/single-value';
|
|
31
28
|
const packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
const packageVersion = "15.
|
|
29
|
+
const packageVersion = "15.7.1";
|
|
33
30
|
const dropdownIndicatorStyles = xcss({
|
|
34
31
|
minWidth: "var(--ds-space-300, 24px)",
|
|
35
32
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -612,9 +609,11 @@ class DatePickerComponent extends Component {
|
|
|
612
609
|
onCalendarSelect: calendarProps.onCalendarSelect,
|
|
613
610
|
previousMonthLabel: previousMonthLabel,
|
|
614
611
|
shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay
|
|
615
|
-
})), shouldShowCalendarButton && !isDisabled ? jsx(
|
|
616
|
-
|
|
617
|
-
},
|
|
612
|
+
})), shouldShowCalendarButton && !isDisabled ? jsx(IdProvider, {
|
|
613
|
+
prefix: "open-calendar-label--"
|
|
614
|
+
}, ({
|
|
615
|
+
id: openCalendarLabelId
|
|
616
|
+
}) => jsx("div", {
|
|
618
617
|
css: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : fg('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
619
618
|
}, inputLabelId && jsx(VisuallyHidden, {
|
|
620
619
|
id: openCalendarLabelId
|
|
@@ -8,11 +8,8 @@ import { forwardRef, useCallback, useEffect, useReducer, useRef, useState } from
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { isValid, parseISO } from 'date-fns';
|
|
11
|
-
// This is a deprecated component but we will be able to use the actual hook
|
|
12
|
-
// version very soon from converting this to functional. And also React 18 is on
|
|
13
|
-
// the horizon
|
|
14
|
-
import { useUID } from 'react-uid';
|
|
15
11
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
12
|
+
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
16
13
|
import CalendarIconNew from '@atlaskit/icon/core/migration/calendar';
|
|
17
14
|
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
18
15
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
@@ -28,7 +25,7 @@ import { Menu } from '../internal/menu';
|
|
|
28
25
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
29
26
|
import { makeSingleValue } from '../internal/single-value';
|
|
30
27
|
const packageName = "@atlaskit/datetime-picker";
|
|
31
|
-
const packageVersion = "15.
|
|
28
|
+
const packageVersion = "15.7.1";
|
|
32
29
|
const analyticsAttributes = {
|
|
33
30
|
componentName: 'datePicker',
|
|
34
31
|
packageName,
|
|
@@ -479,7 +476,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
479
476
|
|
|
480
477
|
// `label` takes precedence of the `inputLabel`
|
|
481
478
|
const fullopenCalendarLabel = label || inputLabel ? `${label || inputLabel} , ${openCalendarLabel}` : openCalendarLabel;
|
|
482
|
-
const openCalendarLabelId = `open-calendar-label--${
|
|
479
|
+
const openCalendarLabelId = `open-calendar-label--${useId()}`;
|
|
483
480
|
return (
|
|
484
481
|
// These event handlers must be on this element because the events come
|
|
485
482
|
// from different child elements.
|
|
@@ -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.7.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({
|
|
@@ -21,7 +21,7 @@ import DatePickerNew from './date-picker-fc';
|
|
|
21
21
|
import TimePicker from './time-picker';
|
|
22
22
|
const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
23
23
|
const packageName = "@atlaskit/datetime-picker";
|
|
24
|
-
const packageVersion = "15.
|
|
24
|
+
const packageVersion = "15.7.1";
|
|
25
25
|
const analyticsAttributes = {
|
|
26
26
|
componentName: 'dateTimePicker',
|
|
27
27
|
packageName,
|
|
@@ -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.7.1";
|
|
15
15
|
const menuStyles = {
|
|
16
16
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
17
17
|
position: 'static',
|
|
@@ -19,11 +19,8 @@ import { Component, createRef } from 'react';
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
20
|
import { css, jsx } from '@emotion/react';
|
|
21
21
|
import { isValid, parseISO } from 'date-fns';
|
|
22
|
-
// This is a deprecated component but we will be able to use the actual hook
|
|
23
|
-
// version very soon from converting this to functional. And also React 18 is on
|
|
24
|
-
// the horizon
|
|
25
|
-
import { UID } from 'react-uid';
|
|
26
22
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
23
|
+
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
27
24
|
import CalendarIconNew from '@atlaskit/icon/core/migration/calendar';
|
|
28
25
|
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
29
26
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
@@ -39,7 +36,7 @@ import { Menu } from '../internal/menu';
|
|
|
39
36
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
40
37
|
import { makeSingleValue } from '../internal/single-value';
|
|
41
38
|
var packageName = "@atlaskit/datetime-picker";
|
|
42
|
-
var packageVersion = "15.
|
|
39
|
+
var packageVersion = "15.7.1";
|
|
43
40
|
var dropdownIndicatorStyles = xcss({
|
|
44
41
|
minWidth: "var(--ds-space-300, 24px)",
|
|
45
42
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -629,11 +626,10 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
629
626
|
onCalendarSelect: calendarProps.onCalendarSelect,
|
|
630
627
|
previousMonthLabel: previousMonthLabel,
|
|
631
628
|
shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay
|
|
632
|
-
})), shouldShowCalendarButton && !isDisabled ? jsx(
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
}, function (openCalendarLabelId) {
|
|
629
|
+
})), shouldShowCalendarButton && !isDisabled ? jsx(IdProvider, {
|
|
630
|
+
prefix: "open-calendar-label--"
|
|
631
|
+
}, function (_ref3) {
|
|
632
|
+
var openCalendarLabelId = _ref3.id;
|
|
637
633
|
return jsx("div", {
|
|
638
634
|
css: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : fg('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
639
635
|
}, inputLabelId && jsx(VisuallyHidden, {
|
|
@@ -14,11 +14,8 @@ import { forwardRef, useCallback, useEffect, useReducer, useRef, useState } from
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import { isValid, parseISO } from 'date-fns';
|
|
17
|
-
// This is a deprecated component but we will be able to use the actual hook
|
|
18
|
-
// version very soon from converting this to functional. And also React 18 is on
|
|
19
|
-
// the horizon
|
|
20
|
-
import { useUID } from 'react-uid';
|
|
21
17
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
18
|
+
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
22
19
|
import CalendarIconNew from '@atlaskit/icon/core/migration/calendar';
|
|
23
20
|
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
24
21
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
@@ -34,7 +31,7 @@ import { Menu } from '../internal/menu';
|
|
|
34
31
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
35
32
|
import { makeSingleValue } from '../internal/single-value';
|
|
36
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
37
|
-
var packageVersion = "15.
|
|
34
|
+
var packageVersion = "15.7.1";
|
|
38
35
|
var analyticsAttributes = {
|
|
39
36
|
componentName: 'datePicker',
|
|
40
37
|
packageName: packageName,
|
|
@@ -544,7 +541,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
|
544
541
|
|
|
545
542
|
// `label` takes precedence of the `inputLabel`
|
|
546
543
|
var fullopenCalendarLabel = label || inputLabel ? "".concat(label || inputLabel, " , ").concat(openCalendarLabel) : openCalendarLabel;
|
|
547
|
-
var openCalendarLabelId = "open-calendar-label--".concat(
|
|
544
|
+
var openCalendarLabelId = "open-calendar-label--".concat(useId());
|
|
548
545
|
return (
|
|
549
546
|
// These event handlers must be on this element because the events come
|
|
550
547
|
// from different child elements.
|
|
@@ -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.7.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({
|
|
@@ -30,7 +30,7 @@ var DatePicker = componentWithCondition(function () {
|
|
|
30
30
|
return fg('dst-date-picker-use-functional-component');
|
|
31
31
|
}, DatePickerNew, DatePickerOld);
|
|
32
32
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "15.
|
|
33
|
+
var packageVersion = "15.7.1";
|
|
34
34
|
var analyticsAttributes = {
|
|
35
35
|
componentName: 'dateTimePicker',
|
|
36
36
|
packageName: packageName,
|
|
@@ -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.7.1";
|
|
21
21
|
var menuStyles = {
|
|
22
22
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
23
23
|
position: 'static',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.7.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/"
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@atlaskit/select": "^18.4.0",
|
|
48
48
|
"@atlaskit/theme": "^14.0.0",
|
|
49
49
|
"@atlaskit/tokens": "^2.0.0",
|
|
50
|
+
"@atlaskit/visually-hidden": "^1.5.0",
|
|
50
51
|
"@babel/runtime": "^7.0.0",
|
|
51
52
|
"@emotion/react": "^11.7.1",
|
|
52
|
-
"date-fns": "^2.17.0"
|
|
53
|
-
"react-uid": "^2.2.0"
|
|
53
|
+
"date-fns": "^2.17.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|