@atlaskit/datetime-picker 15.12.0 → 15.12.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 +12 -0
- package/dist/cjs/components/date-picker-class.js +6 -17
- package/dist/cjs/components/date-picker-fc.js +8 -17
- 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 -18
- package/dist/es2019/components/date-picker-fc.js +8 -17
- 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 +7 -18
- package/dist/esm/components/date-picker-fc.js +8 -17
- 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/dist/types/components/date-picker-class.d.ts +0 -5
- package/dist/types/internal/fixed-layer.d.ts +1 -1
- package/dist/types/internal/single-value.d.ts +2 -2
- package/dist/types-ts4.5/components/date-picker-class.d.ts +0 -5
- package/dist/types-ts4.5/internal/fixed-layer.d.ts +1 -1
- package/dist/types-ts4.5/internal/single-value.d.ts +2 -2
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -20,7 +20,6 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
20
20
|
var _new = require("@atlaskit/button/new");
|
|
21
21
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
22
22
|
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/migration/calendar"));
|
|
23
|
-
var _calendar2 = _interopRequireDefault(require("@atlaskit/icon/glyph/calendar"));
|
|
24
23
|
var _locale = require("@atlaskit/locale");
|
|
25
24
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _primitives = require("@atlaskit/primitives");
|
|
@@ -41,7 +40,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
41
40
|
* @jsx jsx
|
|
42
41
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
43
42
|
var packageName = "@atlaskit/datetime-picker";
|
|
44
|
-
var packageVersion = "15.12.
|
|
43
|
+
var packageVersion = "15.12.2";
|
|
45
44
|
var dropdownIndicatorStyles = (0, _primitives.xcss)({
|
|
46
45
|
minWidth: "var(--ds-space-300, 24px)",
|
|
47
46
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -87,11 +86,8 @@ var iconContainerStyles = (0, _primitives.xcss)({
|
|
|
87
86
|
var iconSpacingWithClearButtonStyles = (0, _primitives.xcss)({
|
|
88
87
|
marginInlineEnd: 'space.400'
|
|
89
88
|
});
|
|
90
|
-
var iconSpacingWithoutClearButtonStylesNew = (0, _primitives.xcss)({
|
|
91
|
-
marginInlineEnd: 'space.050'
|
|
92
|
-
});
|
|
93
89
|
var iconSpacingWithoutClearButtonStyles = (0, _primitives.xcss)({
|
|
94
|
-
marginInlineEnd: 'space.
|
|
90
|
+
marginInlineEnd: 'space.050'
|
|
95
91
|
});
|
|
96
92
|
|
|
97
93
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -104,9 +100,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
104
100
|
(0, _defineProperty2.default)(_this, "containerRef", null);
|
|
105
101
|
(0, _defineProperty2.default)(_this, "calendarRef", /*#__PURE__*/(0, _react.createRef)());
|
|
106
102
|
(0, _defineProperty2.default)(_this, "calendarButtonRef", /*#__PURE__*/(0, _react.createRef)());
|
|
107
|
-
(0, _defineProperty2.default)(_this, "CalendarIcon", (0, _platformFeatureFlags.fg)('platform-visual-refresh-icon-ads-migration') ? _calendar.default :
|
|
108
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
109
|
-
_calendar2.default);
|
|
110
103
|
// All state needs to be accessed via this function so that the state is mapped from props
|
|
111
104
|
// correctly to allow controlled/uncontrolled usage.
|
|
112
105
|
(0, _defineProperty2.default)(_this, "getValue", function () {
|
|
@@ -437,7 +430,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
437
430
|
disabled = _this$props.disabled,
|
|
438
431
|
disabledDateFilter = _this$props.disabledDateFilter,
|
|
439
432
|
_this$props$icon = _this$props.icon,
|
|
440
|
-
Icon = _this$props$icon === void 0 ?
|
|
433
|
+
Icon = _this$props$icon === void 0 ? _calendar.default : _this$props$icon,
|
|
441
434
|
_this$props$id = _this$props.id,
|
|
442
435
|
id = _this$props$id === void 0 ? '' : _this$props$id,
|
|
443
436
|
_this$props$innerProp = _this$props.innerProps,
|
|
@@ -478,7 +471,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
478
471
|
var clearIndicator = Icon;
|
|
479
472
|
|
|
480
473
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
481
|
-
if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')
|
|
474
|
+
if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
482
475
|
clearIndicator = function clearIndicator(props) {
|
|
483
476
|
return (0, _react2.jsx)(_primitives.Box, {
|
|
484
477
|
xcss: dropdownIndicatorStyles
|
|
@@ -631,19 +624,15 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
631
624
|
}, function (_ref3) {
|
|
632
625
|
var openCalendarLabelId = _ref3.id;
|
|
633
626
|
return (0, _react2.jsx)(_primitives.Box, {
|
|
634
|
-
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles :
|
|
635
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
636
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
627
|
+
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : iconSpacingWithoutClearButtonStyles]
|
|
637
628
|
}, (0, _react2.jsx)(_new.IconButton, {
|
|
638
629
|
appearance: "subtle",
|
|
639
630
|
label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
|
|
640
631
|
"aria-labelledby": inputLabelId ? "".concat(inputLabelId, " ").concat(openCalendarLabelId) : undefined,
|
|
641
632
|
id: openCalendarLabelId,
|
|
642
633
|
icon: function icon(iconProps) {
|
|
643
|
-
return (0, _react2.jsx)(
|
|
634
|
+
return (0, _react2.jsx)(_calendar.default, (0, _extends2.default)({}, iconProps, {
|
|
644
635
|
color: "var(--ds-icon, #44546F)"
|
|
645
|
-
} : {
|
|
646
|
-
primaryColor: "var(--ds-icon, #44546F)"
|
|
647
636
|
}));
|
|
648
637
|
},
|
|
649
638
|
onClick: _this2.onCalendarButtonClick,
|
|
@@ -17,7 +17,6 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
17
17
|
var _new = require("@atlaskit/button/new");
|
|
18
18
|
var _useId = require("@atlaskit/ds-lib/use-id");
|
|
19
19
|
var _calendar = _interopRequireDefault(require("@atlaskit/icon/core/migration/calendar"));
|
|
20
|
-
var _calendar2 = _interopRequireDefault(require("@atlaskit/icon/glyph/calendar"));
|
|
21
20
|
var _locale = require("@atlaskit/locale");
|
|
22
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
22
|
var _primitives = require("@atlaskit/primitives");
|
|
@@ -39,7 +38,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
39
38
|
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
39
|
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
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
42
|
-
var packageVersion = "15.12.
|
|
41
|
+
var packageVersion = "15.12.2";
|
|
43
42
|
var analyticsAttributes = {
|
|
44
43
|
componentName: 'datePicker',
|
|
45
44
|
packageName: packageName,
|
|
@@ -72,12 +71,10 @@ var iconContainerStyles = (0, _primitives.xcss)({
|
|
|
72
71
|
var iconSpacingWithClearButtonStyles = (0, _primitives.xcss)({
|
|
73
72
|
marginInlineEnd: 'space.400'
|
|
74
73
|
});
|
|
75
|
-
var iconSpacingWithoutClearButtonStylesNew = (0, _primitives.xcss)({
|
|
76
|
-
marginInlineEnd: 'space.050'
|
|
77
|
-
});
|
|
78
74
|
var iconSpacingWithoutClearButtonStyles = (0, _primitives.xcss)({
|
|
79
|
-
marginInlineEnd: 'space.
|
|
75
|
+
marginInlineEnd: 'space.050'
|
|
80
76
|
});
|
|
77
|
+
|
|
81
78
|
/**
|
|
82
79
|
* __Date picker__
|
|
83
80
|
*
|
|
@@ -91,9 +88,6 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
91
88
|
var containerRef = (0, _react.useRef)(null);
|
|
92
89
|
var calendarRef = (0, _react.useRef)(null);
|
|
93
90
|
var calendarButtonRef = (0, _react.useRef)(null);
|
|
94
|
-
var CalendarIcon = (0, _platformFeatureFlags.fg)('platform-visual-refresh-icon-ads-migration') ? _calendar.default :
|
|
95
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
96
|
-
_calendar2.default;
|
|
97
91
|
var _props$appearance = props.appearance,
|
|
98
92
|
appearance = _props$appearance === void 0 ? 'default' : _props$appearance,
|
|
99
93
|
_props$autoFocus = props.autoFocus,
|
|
@@ -115,7 +109,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
115
109
|
return false;
|
|
116
110
|
} : _props$disabledDateFi,
|
|
117
111
|
_props$icon = props.icon,
|
|
118
|
-
Icon = _props$icon === void 0 ?
|
|
112
|
+
Icon = _props$icon === void 0 ? _calendar.default : _props$icon,
|
|
119
113
|
_props$id = props.id,
|
|
120
114
|
id = _props$id === void 0 ? '' : _props$id,
|
|
121
115
|
_props$innerProps = props.innerProps,
|
|
@@ -471,7 +465,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
471
465
|
var clearIndicator = Icon;
|
|
472
466
|
|
|
473
467
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
|
|
474
|
-
if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')
|
|
468
|
+
if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
475
469
|
clearIndicator = function clearIndicator(props) {
|
|
476
470
|
return (0, _react2.jsx)(_primitives.Box, {
|
|
477
471
|
xcss: dropdownIndicatorStyles
|
|
@@ -623,19 +617,16 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
623
617
|
previousMonthLabel: previousMonthLabel,
|
|
624
618
|
shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay
|
|
625
619
|
})), shouldShowCalendarButton && !isDisabled ? (0, _react2.jsx)(_primitives.Box, {
|
|
626
|
-
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles :
|
|
627
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
628
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
620
|
+
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : iconSpacingWithoutClearButtonStyles]
|
|
629
621
|
}, (0, _react2.jsx)(_new.IconButton, {
|
|
630
622
|
appearance: "subtle",
|
|
631
623
|
label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
|
|
632
624
|
"aria-labelledby": inputLabelId ? "".concat(inputLabelId, " ").concat(openCalendarLabelId) : undefined,
|
|
633
625
|
id: openCalendarLabelId,
|
|
634
626
|
icon: function icon(iconProps) {
|
|
635
|
-
return (0, _react2.jsx)(
|
|
627
|
+
return (0, _react2.jsx)(_calendar.default, (0, _extends2.default)({}, iconProps, {
|
|
628
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
636
629
|
color: "var(--ds-icon, #44546F)"
|
|
637
|
-
} : {
|
|
638
|
-
primaryColor: "var(--ds-icon, #44546F)"
|
|
639
630
|
}));
|
|
640
631
|
},
|
|
641
632
|
onClick: onCalendarButtonClick,
|
|
@@ -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.12.
|
|
40
|
+
var packageVersion = "15.12.2";
|
|
41
41
|
// Make DatePicker 50% the width of DateTimePicker
|
|
42
42
|
// If rendering an icon container, shrink the TimePicker
|
|
43
43
|
var datePickerContainerStyles = (0, _react2.css)({
|
|
@@ -37,7 +37,7 @@ 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.12.
|
|
40
|
+
var packageVersion = "15.12.2";
|
|
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.12.
|
|
30
|
+
var packageVersion = "15.12.2";
|
|
31
31
|
var menuStyles = {
|
|
32
32
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
33
33
|
position: 'static',
|
|
@@ -12,8 +12,7 @@ import { isValid, parseISO } from 'date-fns';
|
|
|
12
12
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
13
13
|
import { IconButton } from '@atlaskit/button/new';
|
|
14
14
|
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
15
|
-
import
|
|
16
|
-
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
15
|
+
import CalendarIcon from '@atlaskit/icon/core/migration/calendar';
|
|
17
16
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
18
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
18
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -25,7 +24,7 @@ import { Menu } from '../internal/menu';
|
|
|
25
24
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
26
25
|
import { makeSingleValue } from '../internal/single-value';
|
|
27
26
|
const packageName = "@atlaskit/datetime-picker";
|
|
28
|
-
const packageVersion = "15.12.
|
|
27
|
+
const packageVersion = "15.12.2";
|
|
29
28
|
const dropdownIndicatorStyles = xcss({
|
|
30
29
|
minWidth: "var(--ds-space-300, 24px)",
|
|
31
30
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -69,11 +68,8 @@ const iconContainerStyles = xcss({
|
|
|
69
68
|
const iconSpacingWithClearButtonStyles = xcss({
|
|
70
69
|
marginInlineEnd: 'space.400'
|
|
71
70
|
});
|
|
72
|
-
const iconSpacingWithoutClearButtonStylesNew = xcss({
|
|
73
|
-
marginInlineEnd: 'space.050'
|
|
74
|
-
});
|
|
75
71
|
const iconSpacingWithoutClearButtonStyles = xcss({
|
|
76
|
-
marginInlineEnd: 'space.
|
|
72
|
+
marginInlineEnd: 'space.050'
|
|
77
73
|
});
|
|
78
74
|
|
|
79
75
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -84,9 +80,6 @@ class DatePickerComponent extends Component {
|
|
|
84
80
|
_defineProperty(this, "containerRef", null);
|
|
85
81
|
_defineProperty(this, "calendarRef", /*#__PURE__*/createRef());
|
|
86
82
|
_defineProperty(this, "calendarButtonRef", /*#__PURE__*/createRef());
|
|
87
|
-
_defineProperty(this, "CalendarIcon", fg('platform-visual-refresh-icon-ads-migration') ? CalendarIconNew :
|
|
88
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
89
|
-
CalendarIconOld);
|
|
90
83
|
// All state needs to be accessed via this function so that the state is mapped from props
|
|
91
84
|
// correctly to allow controlled/uncontrolled usage.
|
|
92
85
|
_defineProperty(this, "getValue", () => {
|
|
@@ -423,7 +416,7 @@ class DatePickerComponent extends Component {
|
|
|
423
416
|
openCalendarLabel = 'Open calendar',
|
|
424
417
|
disabled,
|
|
425
418
|
disabledDateFilter,
|
|
426
|
-
icon: Icon =
|
|
419
|
+
icon: Icon = CalendarIcon,
|
|
427
420
|
id = '',
|
|
428
421
|
innerProps = {},
|
|
429
422
|
inputLabel = 'Date picker',
|
|
@@ -456,7 +449,7 @@ class DatePickerComponent extends Component {
|
|
|
456
449
|
let clearIndicator = Icon;
|
|
457
450
|
|
|
458
451
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
459
|
-
if (fg('platform-visual-refresh-icons')
|
|
452
|
+
if (fg('platform-visual-refresh-icons')) {
|
|
460
453
|
clearIndicator = props => jsx(Box, {
|
|
461
454
|
xcss: dropdownIndicatorStyles
|
|
462
455
|
}, jsx(Icon, props));
|
|
@@ -609,18 +602,14 @@ class DatePickerComponent extends Component {
|
|
|
609
602
|
}, ({
|
|
610
603
|
id: openCalendarLabelId
|
|
611
604
|
}) => jsx(Box, {
|
|
612
|
-
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles :
|
|
613
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
614
|
-
fg('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
605
|
+
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : iconSpacingWithoutClearButtonStyles]
|
|
615
606
|
}, jsx(IconButton, {
|
|
616
607
|
appearance: "subtle",
|
|
617
608
|
label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
|
|
618
609
|
"aria-labelledby": inputLabelId ? `${inputLabelId} ${openCalendarLabelId}` : undefined,
|
|
619
610
|
id: openCalendarLabelId,
|
|
620
|
-
icon: iconProps => jsx(
|
|
611
|
+
icon: iconProps => jsx(CalendarIcon, _extends({}, iconProps, {
|
|
621
612
|
color: "var(--ds-icon, #44546F)"
|
|
622
|
-
} : {
|
|
623
|
-
primaryColor: "var(--ds-icon, #44546F)"
|
|
624
613
|
})),
|
|
625
614
|
onClick: this.onCalendarButtonClick,
|
|
626
615
|
onKeyDown: this.onCalendarButtonKeyDown,
|
|
@@ -11,8 +11,7 @@ import { isValid, parseISO } from 'date-fns';
|
|
|
11
11
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
12
12
|
import { IconButton } from '@atlaskit/button/new';
|
|
13
13
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
14
|
-
import
|
|
15
|
-
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
14
|
+
import CalendarIcon from '@atlaskit/icon/core/migration/calendar';
|
|
16
15
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
17
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -24,7 +23,7 @@ import { Menu } from '../internal/menu';
|
|
|
24
23
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
25
24
|
import { makeSingleValue } from '../internal/single-value';
|
|
26
25
|
const packageName = "@atlaskit/datetime-picker";
|
|
27
|
-
const packageVersion = "15.12.
|
|
26
|
+
const packageVersion = "15.12.2";
|
|
28
27
|
const analyticsAttributes = {
|
|
29
28
|
componentName: 'datePicker',
|
|
30
29
|
packageName,
|
|
@@ -57,12 +56,10 @@ const iconContainerStyles = xcss({
|
|
|
57
56
|
const iconSpacingWithClearButtonStyles = xcss({
|
|
58
57
|
marginInlineEnd: 'space.400'
|
|
59
58
|
});
|
|
60
|
-
const iconSpacingWithoutClearButtonStylesNew = xcss({
|
|
61
|
-
marginInlineEnd: 'space.050'
|
|
62
|
-
});
|
|
63
59
|
const iconSpacingWithoutClearButtonStyles = xcss({
|
|
64
|
-
marginInlineEnd: 'space.
|
|
60
|
+
marginInlineEnd: 'space.050'
|
|
65
61
|
});
|
|
62
|
+
|
|
66
63
|
/**
|
|
67
64
|
* __Date picker__
|
|
68
65
|
*
|
|
@@ -76,9 +73,6 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
76
73
|
const containerRef = useRef(null);
|
|
77
74
|
const calendarRef = useRef(null);
|
|
78
75
|
const calendarButtonRef = useRef(null);
|
|
79
|
-
const CalendarIcon = fg('platform-visual-refresh-icon-ads-migration') ? CalendarIconNew :
|
|
80
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
81
|
-
CalendarIconOld;
|
|
82
76
|
const {
|
|
83
77
|
appearance = 'default',
|
|
84
78
|
autoFocus = false,
|
|
@@ -397,7 +391,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
397
391
|
let clearIndicator = Icon;
|
|
398
392
|
|
|
399
393
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
|
|
400
|
-
if (fg('platform-visual-refresh-icons')
|
|
394
|
+
if (fg('platform-visual-refresh-icons')) {
|
|
401
395
|
clearIndicator = props => jsx(Box, {
|
|
402
396
|
xcss: dropdownIndicatorStyles
|
|
403
397
|
}, jsx(Icon, props));
|
|
@@ -549,18 +543,15 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
549
543
|
previousMonthLabel: previousMonthLabel,
|
|
550
544
|
shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay
|
|
551
545
|
})), shouldShowCalendarButton && !isDisabled ? jsx(Box, {
|
|
552
|
-
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles :
|
|
553
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
554
|
-
fg('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
546
|
+
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : iconSpacingWithoutClearButtonStyles]
|
|
555
547
|
}, jsx(IconButton, {
|
|
556
548
|
appearance: "subtle",
|
|
557
549
|
label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
|
|
558
550
|
"aria-labelledby": inputLabelId ? `${inputLabelId} ${openCalendarLabelId}` : undefined,
|
|
559
551
|
id: openCalendarLabelId,
|
|
560
|
-
icon: iconProps => jsx(CalendarIcon, _extends({}, iconProps,
|
|
552
|
+
icon: iconProps => jsx(CalendarIcon, _extends({}, iconProps, {
|
|
553
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
561
554
|
color: "var(--ds-icon, #44546F)"
|
|
562
|
-
} : {
|
|
563
|
-
primaryColor: "var(--ds-icon, #44546F)"
|
|
564
555
|
})),
|
|
565
556
|
onClick: onCalendarButtonClick,
|
|
566
557
|
onKeyDown: onCalendarButtonKeyDown,
|
|
@@ -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.12.
|
|
25
|
+
const packageVersion = "15.12.2";
|
|
26
26
|
// Make DatePicker 50% the width of DateTimePicker
|
|
27
27
|
// If rendering an icon container, shrink the TimePicker
|
|
28
28
|
const datePickerContainerStyles = css({
|
|
@@ -18,7 +18,7 @@ const DatePicker = componentWithCondition(
|
|
|
18
18
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
19
19
|
() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
20
20
|
const packageName = "@atlaskit/datetime-picker";
|
|
21
|
-
const packageVersion = "15.12.
|
|
21
|
+
const packageVersion = "15.12.2";
|
|
22
22
|
const analyticsAttributes = {
|
|
23
23
|
componentName: 'dateTimePicker',
|
|
24
24
|
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.12.
|
|
14
|
+
const packageVersion = "15.12.2";
|
|
15
15
|
const menuStyles = {
|
|
16
16
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
17
17
|
position: 'static',
|
|
@@ -21,8 +21,7 @@ import { isValid, parseISO } from 'date-fns';
|
|
|
21
21
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
22
22
|
import { IconButton } from '@atlaskit/button/new';
|
|
23
23
|
import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
24
|
-
import
|
|
25
|
-
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
24
|
+
import CalendarIcon from '@atlaskit/icon/core/migration/calendar';
|
|
26
25
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
27
26
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
28
27
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -34,7 +33,7 @@ import { Menu } from '../internal/menu';
|
|
|
34
33
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
35
34
|
import { makeSingleValue } from '../internal/single-value';
|
|
36
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
37
|
-
var packageVersion = "15.12.
|
|
36
|
+
var packageVersion = "15.12.2";
|
|
38
37
|
var dropdownIndicatorStyles = xcss({
|
|
39
38
|
minWidth: "var(--ds-space-300, 24px)",
|
|
40
39
|
minHeight: "var(--ds-space-300, 24px)",
|
|
@@ -80,11 +79,8 @@ var iconContainerStyles = xcss({
|
|
|
80
79
|
var iconSpacingWithClearButtonStyles = xcss({
|
|
81
80
|
marginInlineEnd: 'space.400'
|
|
82
81
|
});
|
|
83
|
-
var iconSpacingWithoutClearButtonStylesNew = xcss({
|
|
84
|
-
marginInlineEnd: 'space.050'
|
|
85
|
-
});
|
|
86
82
|
var iconSpacingWithoutClearButtonStyles = xcss({
|
|
87
|
-
marginInlineEnd: 'space.
|
|
83
|
+
marginInlineEnd: 'space.050'
|
|
88
84
|
});
|
|
89
85
|
|
|
90
86
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -97,9 +93,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
97
93
|
_defineProperty(_this, "containerRef", null);
|
|
98
94
|
_defineProperty(_this, "calendarRef", /*#__PURE__*/createRef());
|
|
99
95
|
_defineProperty(_this, "calendarButtonRef", /*#__PURE__*/createRef());
|
|
100
|
-
_defineProperty(_this, "CalendarIcon", fg('platform-visual-refresh-icon-ads-migration') ? CalendarIconNew :
|
|
101
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
102
|
-
CalendarIconOld);
|
|
103
96
|
// All state needs to be accessed via this function so that the state is mapped from props
|
|
104
97
|
// correctly to allow controlled/uncontrolled usage.
|
|
105
98
|
_defineProperty(_this, "getValue", function () {
|
|
@@ -430,7 +423,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
430
423
|
disabled = _this$props.disabled,
|
|
431
424
|
disabledDateFilter = _this$props.disabledDateFilter,
|
|
432
425
|
_this$props$icon = _this$props.icon,
|
|
433
|
-
Icon = _this$props$icon === void 0 ?
|
|
426
|
+
Icon = _this$props$icon === void 0 ? CalendarIcon : _this$props$icon,
|
|
434
427
|
_this$props$id = _this$props.id,
|
|
435
428
|
id = _this$props$id === void 0 ? '' : _this$props$id,
|
|
436
429
|
_this$props$innerProp = _this$props.innerProps,
|
|
@@ -471,7 +464,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
471
464
|
var clearIndicator = Icon;
|
|
472
465
|
|
|
473
466
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
474
|
-
if (fg('platform-visual-refresh-icons')
|
|
467
|
+
if (fg('platform-visual-refresh-icons')) {
|
|
475
468
|
clearIndicator = function clearIndicator(props) {
|
|
476
469
|
return jsx(Box, {
|
|
477
470
|
xcss: dropdownIndicatorStyles
|
|
@@ -624,19 +617,15 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
624
617
|
}, function (_ref3) {
|
|
625
618
|
var openCalendarLabelId = _ref3.id;
|
|
626
619
|
return jsx(Box, {
|
|
627
|
-
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles :
|
|
628
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
629
|
-
fg('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
620
|
+
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : iconSpacingWithoutClearButtonStyles]
|
|
630
621
|
}, jsx(IconButton, {
|
|
631
622
|
appearance: "subtle",
|
|
632
623
|
label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
|
|
633
624
|
"aria-labelledby": inputLabelId ? "".concat(inputLabelId, " ").concat(openCalendarLabelId) : undefined,
|
|
634
625
|
id: openCalendarLabelId,
|
|
635
626
|
icon: function icon(iconProps) {
|
|
636
|
-
return jsx(
|
|
627
|
+
return jsx(CalendarIcon, _extends({}, iconProps, {
|
|
637
628
|
color: "var(--ds-icon, #44546F)"
|
|
638
|
-
} : {
|
|
639
|
-
primaryColor: "var(--ds-icon, #44546F)"
|
|
640
629
|
}));
|
|
641
630
|
},
|
|
642
631
|
onClick: _this2.onCalendarButtonClick,
|
|
@@ -17,8 +17,7 @@ import { isValid, parseISO } from 'date-fns';
|
|
|
17
17
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
18
18
|
import { IconButton } from '@atlaskit/button/new';
|
|
19
19
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
20
|
-
import
|
|
21
|
-
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
20
|
+
import CalendarIcon from '@atlaskit/icon/core/migration/calendar';
|
|
22
21
|
import { createLocalizationProvider } from '@atlaskit/locale';
|
|
23
22
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
23
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
@@ -30,7 +29,7 @@ import { Menu } from '../internal/menu';
|
|
|
30
29
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
31
30
|
import { makeSingleValue } from '../internal/single-value';
|
|
32
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
33
|
-
var packageVersion = "15.12.
|
|
32
|
+
var packageVersion = "15.12.2";
|
|
34
33
|
var analyticsAttributes = {
|
|
35
34
|
componentName: 'datePicker',
|
|
36
35
|
packageName: packageName,
|
|
@@ -63,12 +62,10 @@ var iconContainerStyles = xcss({
|
|
|
63
62
|
var iconSpacingWithClearButtonStyles = xcss({
|
|
64
63
|
marginInlineEnd: 'space.400'
|
|
65
64
|
});
|
|
66
|
-
var iconSpacingWithoutClearButtonStylesNew = xcss({
|
|
67
|
-
marginInlineEnd: 'space.050'
|
|
68
|
-
});
|
|
69
65
|
var iconSpacingWithoutClearButtonStyles = xcss({
|
|
70
|
-
marginInlineEnd: 'space.
|
|
66
|
+
marginInlineEnd: 'space.050'
|
|
71
67
|
});
|
|
68
|
+
|
|
72
69
|
/**
|
|
73
70
|
* __Date picker__
|
|
74
71
|
*
|
|
@@ -82,9 +79,6 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
|
82
79
|
var containerRef = useRef(null);
|
|
83
80
|
var calendarRef = useRef(null);
|
|
84
81
|
var calendarButtonRef = useRef(null);
|
|
85
|
-
var CalendarIcon = fg('platform-visual-refresh-icon-ads-migration') ? CalendarIconNew :
|
|
86
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
87
|
-
CalendarIconOld;
|
|
88
82
|
var _props$appearance = props.appearance,
|
|
89
83
|
appearance = _props$appearance === void 0 ? 'default' : _props$appearance,
|
|
90
84
|
_props$autoFocus = props.autoFocus,
|
|
@@ -462,7 +456,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
|
462
456
|
var clearIndicator = Icon;
|
|
463
457
|
|
|
464
458
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
|
|
465
|
-
if (fg('platform-visual-refresh-icons')
|
|
459
|
+
if (fg('platform-visual-refresh-icons')) {
|
|
466
460
|
clearIndicator = function clearIndicator(props) {
|
|
467
461
|
return jsx(Box, {
|
|
468
462
|
xcss: dropdownIndicatorStyles
|
|
@@ -614,19 +608,16 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
|
614
608
|
previousMonthLabel: previousMonthLabel,
|
|
615
609
|
shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay
|
|
616
610
|
})), shouldShowCalendarButton && !isDisabled ? jsx(Box, {
|
|
617
|
-
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles :
|
|
618
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
619
|
-
fg('platform-visual-refresh-icon-ads-migration') ? iconSpacingWithoutClearButtonStylesNew : iconSpacingWithoutClearButtonStyles]
|
|
611
|
+
xcss: [iconContainerStyles, value && !hideIcon ? iconSpacingWithClearButtonStyles : iconSpacingWithoutClearButtonStyles]
|
|
620
612
|
}, jsx(IconButton, {
|
|
621
613
|
appearance: "subtle",
|
|
622
614
|
label: !inputLabelId ? fullopenCalendarLabel : openCalendarLabel,
|
|
623
615
|
"aria-labelledby": inputLabelId ? "".concat(inputLabelId, " ").concat(openCalendarLabelId) : undefined,
|
|
624
616
|
id: openCalendarLabelId,
|
|
625
617
|
icon: function icon(iconProps) {
|
|
626
|
-
return jsx(CalendarIcon, _extends({}, iconProps,
|
|
618
|
+
return jsx(CalendarIcon, _extends({}, iconProps, {
|
|
619
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
627
620
|
color: "var(--ds-icon, #44546F)"
|
|
628
|
-
} : {
|
|
629
|
-
primaryColor: "var(--ds-icon, #44546F)"
|
|
630
621
|
}));
|
|
631
622
|
},
|
|
632
623
|
onClick: onCalendarButtonClick,
|
|
@@ -33,7 +33,7 @@ var DatePicker = componentWithCondition(function () {
|
|
|
33
33
|
return fg('dst-date-picker-use-functional-component');
|
|
34
34
|
}, DatePickerNew, DatePickerOld);
|
|
35
35
|
var packageName = "@atlaskit/datetime-picker";
|
|
36
|
-
var packageVersion = "15.12.
|
|
36
|
+
var packageVersion = "15.12.2";
|
|
37
37
|
// Make DatePicker 50% the width of DateTimePicker
|
|
38
38
|
// If rendering an icon container, shrink the TimePicker
|
|
39
39
|
var datePickerContainerStyles = css({
|
|
@@ -27,7 +27,7 @@ function () {
|
|
|
27
27
|
return fg('dst-date-picker-use-functional-component');
|
|
28
28
|
}, DatePickerNew, DatePickerOld);
|
|
29
29
|
var packageName = "@atlaskit/datetime-picker";
|
|
30
|
-
var packageVersion = "15.12.
|
|
30
|
+
var packageVersion = "15.12.2";
|
|
31
31
|
var analyticsAttributes = {
|
|
32
32
|
componentName: 'dateTimePicker',
|
|
33
33
|
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.12.
|
|
20
|
+
var packageVersion = "15.12.2";
|
|
21
21
|
var menuStyles = {
|
|
22
22
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
23
23
|
position: 'static',
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
8
7
|
import { type LocalizationProvider } from '@atlaskit/locale';
|
|
9
8
|
import { type ActionMeta, type InputActionMeta } from '@atlaskit/select';
|
|
10
9
|
import { type DatePickerBaseProps } from '../types';
|
|
@@ -51,10 +50,6 @@ declare class DatePickerComponent extends Component<DatePickerProps, State> {
|
|
|
51
50
|
containerRef: HTMLElement | null;
|
|
52
51
|
calendarRef: React.RefObject<HTMLDivElement | null>;
|
|
53
52
|
calendarButtonRef: React.RefObject<HTMLButtonElement>;
|
|
54
|
-
CalendarIcon: {
|
|
55
|
-
(props: Omit<import("@atlaskit/icon").NewCoreIconProps, "LEGACY_fallbackIcon">): JSX.Element;
|
|
56
|
-
displayName: string;
|
|
57
|
-
} | typeof CalendarIconOld;
|
|
58
53
|
constructor(props: any);
|
|
59
54
|
static getDerivedStateFromProps(nextProps: Readonly<DatePickerProps>, prevState: State): {
|
|
60
55
|
l10n: LocalizationProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type OptionType, type SingleValueProps } from '@atlaskit/select';
|
|
3
3
|
/**
|
|
4
4
|
* This creates a functional component that `react-select` will use to make the
|
|
@@ -6,4 +6,4 @@ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const makeSingleValue: ({ lang }: {
|
|
8
8
|
lang: string;
|
|
9
|
-
}) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, ...rest }: SingleValueProps<OptionType, false>) => JSX.Element;
|
|
9
|
+
}) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, ...rest }: SingleValueProps<OptionType, false>) => React.JSX.Element;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Component } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import CalendarIconOld from '@atlaskit/icon/glyph/calendar';
|
|
8
7
|
import { type LocalizationProvider } from '@atlaskit/locale';
|
|
9
8
|
import { type ActionMeta, type InputActionMeta } from '@atlaskit/select';
|
|
10
9
|
import { type DatePickerBaseProps } from '../types';
|
|
@@ -51,10 +50,6 @@ declare class DatePickerComponent extends Component<DatePickerProps, State> {
|
|
|
51
50
|
containerRef: HTMLElement | null;
|
|
52
51
|
calendarRef: React.RefObject<HTMLDivElement | null>;
|
|
53
52
|
calendarButtonRef: React.RefObject<HTMLButtonElement>;
|
|
54
|
-
CalendarIcon: {
|
|
55
|
-
(props: Omit<import("@atlaskit/icon").NewCoreIconProps, "LEGACY_fallbackIcon">): JSX.Element;
|
|
56
|
-
displayName: string;
|
|
57
|
-
} | typeof CalendarIconOld;
|
|
58
53
|
constructor(props: any);
|
|
59
54
|
static getDerivedStateFromProps(nextProps: Readonly<DatePickerProps>, prevState: State): {
|
|
60
55
|
l10n: LocalizationProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type OptionType, type SingleValueProps } from '@atlaskit/select';
|
|
3
3
|
/**
|
|
4
4
|
* This creates a functional component that `react-select` will use to make the
|
|
@@ -6,4 +6,4 @@ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const makeSingleValue: ({ lang }: {
|
|
8
8
|
lang: string;
|
|
9
|
-
}) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, ...rest }: SingleValueProps<OptionType, false>) => JSX.Element;
|
|
9
|
+
}) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, ...rest }: SingleValueProps<OptionType, false>) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "15.12.
|
|
3
|
+
"version": "15.12.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/"
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-next": "^10.3.0",
|
|
41
|
-
"@atlaskit/button": "^20.
|
|
41
|
+
"@atlaskit/button": "^20.5.0",
|
|
42
42
|
"@atlaskit/calendar": "^16.3.0",
|
|
43
43
|
"@atlaskit/ds-lib": "^3.5.0",
|
|
44
|
-
"@atlaskit/icon": "^23.
|
|
44
|
+
"@atlaskit/icon": "^23.7.0",
|
|
45
45
|
"@atlaskit/layering": "^1.1.0",
|
|
46
46
|
"@atlaskit/locale": "^2.8.0",
|
|
47
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
47
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
48
48
|
"@atlaskit/popper": "^6.4.0",
|
|
49
49
|
"@atlaskit/primitives": "^13.4.0",
|
|
50
50
|
"@atlaskit/select": "^18.10.0",
|
|
51
|
-
"@atlaskit/theme": "^
|
|
51
|
+
"@atlaskit/theme": "^15.0.0",
|
|
52
52
|
"@atlaskit/tokens": "^3.3.0",
|
|
53
53
|
"@atlaskit/visually-hidden": "^1.6.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -114,9 +114,6 @@
|
|
|
114
114
|
},
|
|
115
115
|
"platform-visual-refresh-icons": {
|
|
116
116
|
"type": "boolean"
|
|
117
|
-
},
|
|
118
|
-
"platform-visual-refresh-icon-ads-migration": {
|
|
119
|
-
"type": "boolean"
|
|
120
117
|
}
|
|
121
118
|
},
|
|
122
119
|
"homepage": "https://atlassian.design/components/datetime-picker/"
|