@atlaskit/datetime-picker 17.1.0 → 17.1.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 +6 -0
- package/dist/cjs/components/date-picker-class.js +3 -5
- package/dist/cjs/components/date-picker-fc.js +2 -4
- package/dist/cjs/components/date-time-picker-class.js +1 -1
- package/dist/cjs/components/date-time-picker-fc.js +4 -6
- package/dist/cjs/components/time-picker.js +1 -1
- package/dist/es2019/components/date-picker-class.js +3 -5
- package/dist/es2019/components/date-picker-fc.js +2 -4
- package/dist/es2019/components/date-time-picker-class.js +1 -1
- package/dist/es2019/components/date-time-picker-fc.js +4 -6
- package/dist/es2019/components/time-picker.js +1 -1
- package/dist/esm/components/date-picker-class.js +3 -5
- package/dist/esm/components/date-picker-fc.js +2 -4
- package/dist/esm/components/date-time-picker-class.js +1 -1
- package/dist/esm/components/date-time-picker-fc.js +4 -6
- package/dist/esm/components/time-picker.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -40,7 +40,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
40
40
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
41
41
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /// <reference types="node" />
|
|
42
42
|
var packageName = "@atlaskit/datetime-picker";
|
|
43
|
-
var packageVersion = "17.0
|
|
43
|
+
var packageVersion = "17.1.0";
|
|
44
44
|
var datePickerDefaultProps = {
|
|
45
45
|
defaultIsOpen: false,
|
|
46
46
|
defaultValue: '',
|
|
@@ -446,8 +446,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
446
446
|
var menuIsOpen = this.getIsOpen() && !isDisabled;
|
|
447
447
|
var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
|
|
448
448
|
var clearIndicator = Icon;
|
|
449
|
-
|
|
450
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
451
449
|
if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
452
450
|
clearIndicator = function clearIndicator(props) {
|
|
453
451
|
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
@@ -538,7 +536,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
538
536
|
appearance: _this2.props.appearance,
|
|
539
537
|
"aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
|
|
540
538
|
label: label || undefined
|
|
541
|
-
// eslint-disable-next-line
|
|
539
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
542
540
|
,
|
|
543
541
|
autoFocus: autoFocus,
|
|
544
542
|
clearControlLabel: clearControlLabel,
|
|
@@ -605,7 +603,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
605
603
|
appearance: this.props.appearance,
|
|
606
604
|
"aria-describedby": ariaDescribedBy,
|
|
607
605
|
label: label || undefined
|
|
608
|
-
// eslint-disable-next-line
|
|
606
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
609
607
|
,
|
|
610
608
|
autoFocus: autoFocus,
|
|
611
609
|
clearControlLabel: clearControlLabel,
|
|
@@ -37,7 +37,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
37
37
|
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; }
|
|
38
38
|
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; }
|
|
39
39
|
var packageName = "@atlaskit/datetime-picker";
|
|
40
|
-
var packageVersion = "17.0
|
|
40
|
+
var packageVersion = "17.1.0";
|
|
41
41
|
var styles = {
|
|
42
42
|
pickerContainerStyle: "_kqswh2mm",
|
|
43
43
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -449,8 +449,6 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
449
449
|
var menuIsOpen = getIsOpen() && !isDisabled;
|
|
450
450
|
var showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
|
|
451
451
|
var clearIndicator = Icon;
|
|
452
|
-
|
|
453
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
454
452
|
if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
455
453
|
clearIndicator = function clearIndicator(props) {
|
|
456
454
|
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
@@ -551,7 +549,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
551
549
|
appearance: appearance,
|
|
552
550
|
"aria-describedby": (0, _platformFeatureFlags.fg)('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
|
|
553
551
|
label: label || undefined
|
|
554
|
-
// eslint-disable-next-line
|
|
552
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
555
553
|
,
|
|
556
554
|
autoFocus: autoFocus,
|
|
557
555
|
clearControlLabel: clearControlLabel,
|
|
@@ -35,7 +35,7 @@ var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
|
|
|
35
35
|
return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
|
|
36
36
|
}, _datePickerFc.default, _datePickerClass.default);
|
|
37
37
|
var packageName = "@atlaskit/datetime-picker";
|
|
38
|
-
var packageVersion = "17.0
|
|
38
|
+
var packageVersion = "17.1.0";
|
|
39
39
|
var compiledStyles = {
|
|
40
40
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
41
41
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -34,13 +34,11 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
34
34
|
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; }
|
|
35
35
|
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; } /// <reference types="node" />
|
|
36
36
|
// for typing `process`
|
|
37
|
-
var DatePicker = (0, _ffComponent.componentWithCondition)(
|
|
38
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
39
|
-
function () {
|
|
37
|
+
var DatePicker = (0, _ffComponent.componentWithCondition)(function () {
|
|
40
38
|
return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
|
|
41
39
|
}, _datePickerFc.default, _datePickerClass.default);
|
|
42
40
|
var packageName = "@atlaskit/datetime-picker";
|
|
43
|
-
var packageVersion = "17.0
|
|
41
|
+
var packageVersion = "17.1.0";
|
|
44
42
|
var analyticsAttributes = {
|
|
45
43
|
componentName: 'dateTimePicker',
|
|
46
44
|
packageName: packageName,
|
|
@@ -299,7 +297,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
299
297
|
}, /*#__PURE__*/_react.default.createElement(DatePicker, {
|
|
300
298
|
appearance: appearance,
|
|
301
299
|
"aria-describedby": datePickerAriaDescribedBy
|
|
302
|
-
// eslint-disable-next-line
|
|
300
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
303
301
|
,
|
|
304
302
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
305
303
|
dateFormat: datePickerProps.dateFormat,
|
|
@@ -342,7 +340,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
342
340
|
}, /*#__PURE__*/_react.default.createElement(_timePicker.default, {
|
|
343
341
|
appearance: timePickerProps.appearance || appearance,
|
|
344
342
|
"aria-describedby": timePickerAriaDescribedBy
|
|
345
|
-
// eslint-disable-next-line
|
|
343
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
346
344
|
,
|
|
347
345
|
autoFocus: timePickerProps.autoFocus,
|
|
348
346
|
defaultIsOpen: timePickerProps.defaultIsOpen,
|
|
@@ -26,7 +26,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
26
26
|
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; }
|
|
27
27
|
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; }
|
|
28
28
|
var packageName = "@atlaskit/datetime-picker";
|
|
29
|
-
var packageVersion = "17.0
|
|
29
|
+
var packageVersion = "17.1.0";
|
|
30
30
|
var menuStyles = {
|
|
31
31
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
32
32
|
position: 'static',
|
|
@@ -23,7 +23,7 @@ import { Menu } from '../internal/menu';
|
|
|
23
23
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
24
24
|
import { makeSingleValue } from '../internal/single-value';
|
|
25
25
|
const packageName = "@atlaskit/datetime-picker";
|
|
26
|
-
const packageVersion = "17.0
|
|
26
|
+
const packageVersion = "17.1.0";
|
|
27
27
|
const datePickerDefaultProps = {
|
|
28
28
|
defaultIsOpen: false,
|
|
29
29
|
defaultValue: '',
|
|
@@ -423,8 +423,6 @@ class DatePickerComponent extends Component {
|
|
|
423
423
|
const menuIsOpen = this.getIsOpen() && !isDisabled;
|
|
424
424
|
const showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
|
|
425
425
|
let clearIndicator = Icon;
|
|
426
|
-
|
|
427
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
428
426
|
if (fg('platform-visual-refresh-icons')) {
|
|
429
427
|
clearIndicator = props => /*#__PURE__*/React.createElement(Box, {
|
|
430
428
|
xcss: styles.dropdownIndicatorStyles
|
|
@@ -517,7 +515,7 @@ class DatePickerComponent extends Component {
|
|
|
517
515
|
appearance: this.props.appearance,
|
|
518
516
|
"aria-describedby": ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId,
|
|
519
517
|
label: label || undefined
|
|
520
|
-
// eslint-disable-next-line
|
|
518
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
521
519
|
,
|
|
522
520
|
autoFocus: autoFocus,
|
|
523
521
|
clearControlLabel: clearControlLabel,
|
|
@@ -584,7 +582,7 @@ class DatePickerComponent extends Component {
|
|
|
584
582
|
appearance: this.props.appearance,
|
|
585
583
|
"aria-describedby": ariaDescribedBy,
|
|
586
584
|
label: label || undefined
|
|
587
|
-
// eslint-disable-next-line
|
|
585
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
588
586
|
,
|
|
589
587
|
autoFocus: autoFocus,
|
|
590
588
|
clearControlLabel: clearControlLabel,
|
|
@@ -23,7 +23,7 @@ import { Menu } from '../internal/menu';
|
|
|
23
23
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
24
24
|
import { makeSingleValue } from '../internal/single-value';
|
|
25
25
|
const packageName = "@atlaskit/datetime-picker";
|
|
26
|
-
const packageVersion = "17.0
|
|
26
|
+
const packageVersion = "17.1.0";
|
|
27
27
|
const styles = {
|
|
28
28
|
pickerContainerStyle: "_kqswh2mm",
|
|
29
29
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -376,8 +376,6 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
376
376
|
const menuIsOpen = getIsOpen() && !isDisabled;
|
|
377
377
|
const showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
|
|
378
378
|
let clearIndicator = Icon;
|
|
379
|
-
|
|
380
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
381
379
|
if (fg('platform-visual-refresh-icons')) {
|
|
382
380
|
clearIndicator = props => /*#__PURE__*/React.createElement(Box, {
|
|
383
381
|
xcss: styles.dropdownIndicatorStyles
|
|
@@ -479,7 +477,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
479
477
|
appearance: appearance,
|
|
480
478
|
"aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId : ariaDescribedBy,
|
|
481
479
|
label: label || undefined
|
|
482
|
-
// eslint-disable-next-line
|
|
480
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
483
481
|
,
|
|
484
482
|
autoFocus: autoFocus,
|
|
485
483
|
clearControlLabel: clearControlLabel,
|
|
@@ -19,7 +19,7 @@ import DatePickerNew from './date-picker-fc';
|
|
|
19
19
|
import TimePicker from './time-picker';
|
|
20
20
|
const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
21
21
|
const packageName = "@atlaskit/datetime-picker";
|
|
22
|
-
const packageVersion = "17.0
|
|
22
|
+
const packageVersion = "17.1.0";
|
|
23
23
|
const compiledStyles = {
|
|
24
24
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
25
25
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -20,11 +20,9 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
20
20
|
import DatePickerOld from './date-picker-class';
|
|
21
21
|
import DatePickerNew from './date-picker-fc';
|
|
22
22
|
import TimePicker from './time-picker';
|
|
23
|
-
const DatePicker = componentWithCondition(
|
|
24
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
25
|
-
() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
23
|
+
const DatePicker = componentWithCondition(() => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
|
|
26
24
|
const packageName = "@atlaskit/datetime-picker";
|
|
27
|
-
const packageVersion = "17.0
|
|
25
|
+
const packageVersion = "17.1.0";
|
|
28
26
|
const analyticsAttributes = {
|
|
29
27
|
componentName: 'dateTimePicker',
|
|
30
28
|
packageName,
|
|
@@ -264,7 +262,7 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
264
262
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
265
263
|
appearance: appearance,
|
|
266
264
|
"aria-describedby": datePickerAriaDescribedBy
|
|
267
|
-
// eslint-disable-next-line
|
|
265
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
268
266
|
,
|
|
269
267
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
270
268
|
dateFormat: datePickerProps.dateFormat,
|
|
@@ -307,7 +305,7 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
307
305
|
}, /*#__PURE__*/React.createElement(TimePicker, {
|
|
308
306
|
appearance: timePickerProps.appearance || appearance,
|
|
309
307
|
"aria-describedby": timePickerAriaDescribedBy
|
|
310
|
-
// eslint-disable-next-line
|
|
308
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
311
309
|
,
|
|
312
310
|
autoFocus: timePickerProps.autoFocus,
|
|
313
311
|
defaultIsOpen: timePickerProps.defaultIsOpen,
|
|
@@ -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 = "17.0
|
|
14
|
+
const packageVersion = "17.1.0";
|
|
15
15
|
const menuStyles = {
|
|
16
16
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
17
17
|
position: 'static',
|
|
@@ -32,7 +32,7 @@ import { Menu } from '../internal/menu';
|
|
|
32
32
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
33
33
|
import { makeSingleValue } from '../internal/single-value';
|
|
34
34
|
var packageName = "@atlaskit/datetime-picker";
|
|
35
|
-
var packageVersion = "17.0
|
|
35
|
+
var packageVersion = "17.1.0";
|
|
36
36
|
var datePickerDefaultProps = {
|
|
37
37
|
defaultIsOpen: false,
|
|
38
38
|
defaultValue: '',
|
|
@@ -438,8 +438,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
438
438
|
var menuIsOpen = this.getIsOpen() && !isDisabled;
|
|
439
439
|
var showClearIndicator = Boolean((value || selectInputValue) && !hideIcon);
|
|
440
440
|
var clearIndicator = Icon;
|
|
441
|
-
|
|
442
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
443
441
|
if (fg('platform-visual-refresh-icons')) {
|
|
444
442
|
clearIndicator = function clearIndicator(props) {
|
|
445
443
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -530,7 +528,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
530
528
|
appearance: _this2.props.appearance,
|
|
531
529
|
"aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
|
|
532
530
|
label: label || undefined
|
|
533
|
-
// eslint-disable-next-line
|
|
531
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
534
532
|
,
|
|
535
533
|
autoFocus: autoFocus,
|
|
536
534
|
clearControlLabel: clearControlLabel,
|
|
@@ -597,7 +595,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
597
595
|
appearance: this.props.appearance,
|
|
598
596
|
"aria-describedby": ariaDescribedBy,
|
|
599
597
|
label: label || undefined
|
|
600
|
-
// eslint-disable-next-line
|
|
598
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
601
599
|
,
|
|
602
600
|
autoFocus: autoFocus,
|
|
603
601
|
clearControlLabel: clearControlLabel,
|
|
@@ -29,7 +29,7 @@ import { Menu } from '../internal/menu';
|
|
|
29
29
|
import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
|
|
30
30
|
import { makeSingleValue } from '../internal/single-value';
|
|
31
31
|
var packageName = "@atlaskit/datetime-picker";
|
|
32
|
-
var packageVersion = "17.0
|
|
32
|
+
var packageVersion = "17.1.0";
|
|
33
33
|
var styles = {
|
|
34
34
|
pickerContainerStyle: "_kqswh2mm",
|
|
35
35
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -441,8 +441,6 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
|
441
441
|
var menuIsOpen = getIsOpen() && !isDisabled;
|
|
442
442
|
var showClearIndicator = Boolean((getterValue || selectInputValue) && !hideIcon);
|
|
443
443
|
var clearIndicator = Icon;
|
|
444
|
-
|
|
445
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
446
444
|
if (fg('platform-visual-refresh-icons')) {
|
|
447
445
|
clearIndicator = function clearIndicator(props) {
|
|
448
446
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -543,7 +541,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
|
543
541
|
appearance: appearance,
|
|
544
542
|
"aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
|
|
545
543
|
label: label || undefined
|
|
546
|
-
// eslint-disable-next-line
|
|
544
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
547
545
|
,
|
|
548
546
|
autoFocus: autoFocus,
|
|
549
547
|
clearControlLabel: clearControlLabel,
|
|
@@ -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 = "17.0
|
|
33
|
+
var packageVersion = "17.1.0";
|
|
34
34
|
var compiledStyles = {
|
|
35
35
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
36
36
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -27,13 +27,11 @@ import { convertTokens } from '../internal/parse-tokens';
|
|
|
27
27
|
import DatePickerOld from './date-picker-class';
|
|
28
28
|
import DatePickerNew from './date-picker-fc';
|
|
29
29
|
import TimePicker from './time-picker';
|
|
30
|
-
var DatePicker = componentWithCondition(
|
|
31
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
32
|
-
function () {
|
|
30
|
+
var DatePicker = componentWithCondition(function () {
|
|
33
31
|
return fg('dst-date-picker-use-functional-component');
|
|
34
32
|
}, DatePickerNew, DatePickerOld);
|
|
35
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
36
|
-
var packageVersion = "17.0
|
|
34
|
+
var packageVersion = "17.1.0";
|
|
37
35
|
var analyticsAttributes = {
|
|
38
36
|
componentName: 'dateTimePicker',
|
|
39
37
|
packageName: packageName,
|
|
@@ -292,7 +290,7 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
292
290
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
293
291
|
appearance: appearance,
|
|
294
292
|
"aria-describedby": datePickerAriaDescribedBy
|
|
295
|
-
// eslint-disable-next-line
|
|
293
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
296
294
|
,
|
|
297
295
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
298
296
|
dateFormat: datePickerProps.dateFormat,
|
|
@@ -335,7 +333,7 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
335
333
|
}, /*#__PURE__*/React.createElement(TimePicker, {
|
|
336
334
|
appearance: timePickerProps.appearance || appearance,
|
|
337
335
|
"aria-describedby": timePickerAriaDescribedBy
|
|
338
|
-
// eslint-disable-next-line
|
|
336
|
+
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
339
337
|
,
|
|
340
338
|
autoFocus: timePickerProps.autoFocus,
|
|
341
339
|
defaultIsOpen: timePickerProps.defaultIsOpen,
|
|
@@ -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 = "17.0
|
|
20
|
+
var packageVersion = "17.1.0";
|
|
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": "17.1.
|
|
3
|
+
"version": "17.1.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/"
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
36
|
"@atlaskit/button": "^23.5.0",
|
|
37
37
|
"@atlaskit/calendar": "^17.1.0",
|
|
38
|
-
"@atlaskit/css": "^0.
|
|
38
|
+
"@atlaskit/css": "^0.15.0",
|
|
39
39
|
"@atlaskit/ds-lib": "^5.1.0",
|
|
40
40
|
"@atlaskit/icon": "^28.5.0",
|
|
41
|
-
"@atlaskit/layering": "^3.
|
|
41
|
+
"@atlaskit/layering": "^3.1.0",
|
|
42
42
|
"@atlaskit/locale": "^3.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/popper": "^7.1.0",
|
|
45
|
-
"@atlaskit/primitives": "^
|
|
45
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
46
46
|
"@atlaskit/select": "^21.3.0",
|
|
47
|
-
"@atlaskit/tokens": "^6.
|
|
47
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@compiled/react": "^0.18.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/form": "^14.2.0",
|
|
64
64
|
"@atlaskit/heading": "^5.2.0",
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
|
-
"@atlaskit/modal-dialog": "^14.
|
|
66
|
+
"@atlaskit/modal-dialog": "^14.5.0",
|
|
67
67
|
"@atlaskit/popup": "^4.4.0",
|
|
68
68
|
"@atlaskit/range": "^9.2.0",
|
|
69
69
|
"@atlaskit/section-message": "^8.7.0",
|