@atlaskit/datetime-picker 17.1.4 → 17.1.5
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 +7 -0
- package/dist/cjs/components/date-picker-class.js +3 -7
- 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 +3 -7
- package/dist/cjs/components/time-picker.js +10 -4
- package/dist/es2019/components/date-picker-class.js +3 -7
- 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 +3 -7
- package/dist/es2019/components/time-picker.js +10 -4
- package/dist/esm/components/date-picker-class.js +3 -7
- 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 +3 -7
- package/dist/esm/components/time-picker.js +10 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 17.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f5f621a43f60a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f5f621a43f60a) -
|
|
8
|
+
ts-ignore added as a workaround for help-center typecheck
|
|
9
|
+
|
|
3
10
|
## 17.1.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -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 = "
|
|
43
|
+
var packageVersion = "0.0.0-development";
|
|
44
44
|
var datePickerDefaultProps = {
|
|
45
45
|
defaultIsOpen: false,
|
|
46
46
|
defaultValue: '',
|
|
@@ -535,9 +535,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
535
535
|
return /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
|
|
536
536
|
appearance: _this2.props.appearance,
|
|
537
537
|
"aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
|
|
538
|
-
label: label || undefined
|
|
539
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
540
|
-
,
|
|
538
|
+
label: label || undefined,
|
|
541
539
|
autoFocus: autoFocus,
|
|
542
540
|
clearControlLabel: clearControlLabel,
|
|
543
541
|
closeMenuOnSelect: true,
|
|
@@ -602,9 +600,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
|
|
|
602
600
|
}) : /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
|
|
603
601
|
appearance: this.props.appearance,
|
|
604
602
|
"aria-describedby": ariaDescribedBy,
|
|
605
|
-
label: label || undefined
|
|
606
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
607
|
-
,
|
|
603
|
+
label: label || undefined,
|
|
608
604
|
autoFocus: autoFocus,
|
|
609
605
|
clearControlLabel: clearControlLabel,
|
|
610
606
|
closeMenuOnSelect: true,
|
|
@@ -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 = "
|
|
40
|
+
var packageVersion = "0.0.0-development";
|
|
41
41
|
var styles = {
|
|
42
42
|
pickerContainerStyle: "_kqswh2mm",
|
|
43
43
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -548,9 +548,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
|
|
|
548
548
|
}), /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
|
|
549
549
|
appearance: appearance,
|
|
550
550
|
"aria-describedby": (0, _platformFeatureFlags.fg)('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
|
|
551
|
-
label: label || undefined
|
|
552
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
553
|
-
,
|
|
551
|
+
label: label || undefined,
|
|
554
552
|
autoFocus: autoFocus,
|
|
555
553
|
clearControlLabel: clearControlLabel,
|
|
556
554
|
closeMenuOnSelect: true,
|
|
@@ -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 = "
|
|
38
|
+
var packageVersion = "0.0.0-development";
|
|
39
39
|
var compiledStyles = {
|
|
40
40
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
41
41
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -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 = "
|
|
41
|
+
var packageVersion = "0.0.0-development";
|
|
42
42
|
var analyticsAttributes = {
|
|
43
43
|
componentName: 'dateTimePicker',
|
|
44
44
|
packageName: packageName,
|
|
@@ -296,9 +296,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
296
296
|
xcss: compiledStyles.datePickerContainerStyles
|
|
297
297
|
}, /*#__PURE__*/_react.default.createElement(DatePicker, {
|
|
298
298
|
appearance: appearance,
|
|
299
|
-
"aria-describedby": datePickerAriaDescribedBy
|
|
300
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
301
|
-
,
|
|
299
|
+
"aria-describedby": datePickerAriaDescribedBy,
|
|
302
300
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
303
301
|
dateFormat: datePickerProps.dateFormat,
|
|
304
302
|
defaultIsOpen: datePickerProps.defaultIsOpen,
|
|
@@ -339,9 +337,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
339
337
|
xcss: compiledStyles.timePickerContainerStyles
|
|
340
338
|
}, /*#__PURE__*/_react.default.createElement(_timePicker.default, {
|
|
341
339
|
appearance: timePickerProps.appearance || appearance,
|
|
342
|
-
"aria-describedby": timePickerAriaDescribedBy
|
|
343
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
344
|
-
,
|
|
340
|
+
"aria-describedby": timePickerAriaDescribedBy,
|
|
345
341
|
autoFocus: timePickerProps.autoFocus,
|
|
346
342
|
defaultIsOpen: timePickerProps.defaultIsOpen,
|
|
347
343
|
defaultValue: timePickerProps.defaultValue,
|
|
@@ -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 = "
|
|
29
|
+
var packageVersion = "0.0.0-development";
|
|
30
30
|
var menuStyles = {
|
|
31
31
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
32
32
|
position: 'static',
|
|
@@ -318,7 +318,9 @@ var TimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
318
318
|
"aria-label": label || undefined,
|
|
319
319
|
appearance: appearance,
|
|
320
320
|
autoFocus: autoFocus,
|
|
321
|
-
clearControlLabel: clearControlLabel
|
|
321
|
+
clearControlLabel: clearControlLabel
|
|
322
|
+
// @ts-ignore - Type mismatch with components - workaround for help-center local consumption
|
|
323
|
+
,
|
|
322
324
|
components: selectComponents,
|
|
323
325
|
inputId: id,
|
|
324
326
|
isClearable: true,
|
|
@@ -328,13 +330,17 @@ var TimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
328
330
|
menuPlacement: "auto",
|
|
329
331
|
openMenuOnFocus: true,
|
|
330
332
|
onBlur: onBlur,
|
|
331
|
-
onCreateOption: onCreateOption
|
|
333
|
+
onCreateOption: onCreateOption
|
|
334
|
+
// @ts-ignore - Type mismatch with onChange handler - workaround for help-center local consumption
|
|
335
|
+
,
|
|
332
336
|
onChange: onChange,
|
|
333
337
|
options: options,
|
|
334
338
|
onFocus: onFocus,
|
|
335
339
|
onMenuOpen: onMenuOpen,
|
|
336
340
|
onMenuClose: onMenuClose,
|
|
337
|
-
placeholder: placeholder || l10n.formatTime(_internal.placeholderDatetime)
|
|
341
|
+
placeholder: placeholder || l10n.formatTime(_internal.placeholderDatetime)
|
|
342
|
+
// @ts-ignore - Type mismatch with styles config - workaround for help-center local consumption
|
|
343
|
+
,
|
|
338
344
|
styles: mergedStyles,
|
|
339
345
|
value: initialValue,
|
|
340
346
|
spacing: spacing
|
|
@@ -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 = "
|
|
26
|
+
const packageVersion = "0.0.0-development";
|
|
27
27
|
const datePickerDefaultProps = {
|
|
28
28
|
defaultIsOpen: false,
|
|
29
29
|
defaultValue: '',
|
|
@@ -514,9 +514,7 @@ class DatePickerComponent extends Component {
|
|
|
514
514
|
}) => /*#__PURE__*/React.createElement(Select, _extends({
|
|
515
515
|
appearance: this.props.appearance,
|
|
516
516
|
"aria-describedby": ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId,
|
|
517
|
-
label: label || undefined
|
|
518
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
519
|
-
,
|
|
517
|
+
label: label || undefined,
|
|
520
518
|
autoFocus: autoFocus,
|
|
521
519
|
clearControlLabel: clearControlLabel,
|
|
522
520
|
closeMenuOnSelect: true,
|
|
@@ -581,9 +579,7 @@ class DatePickerComponent extends Component {
|
|
|
581
579
|
}))) : /*#__PURE__*/React.createElement(Select, _extends({
|
|
582
580
|
appearance: this.props.appearance,
|
|
583
581
|
"aria-describedby": ariaDescribedBy,
|
|
584
|
-
label: label || undefined
|
|
585
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
586
|
-
,
|
|
582
|
+
label: label || undefined,
|
|
587
583
|
autoFocus: autoFocus,
|
|
588
584
|
clearControlLabel: clearControlLabel,
|
|
589
585
|
closeMenuOnSelect: true,
|
|
@@ -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 = "
|
|
26
|
+
const packageVersion = "0.0.0-development";
|
|
27
27
|
const styles = {
|
|
28
28
|
pickerContainerStyle: "_kqswh2mm",
|
|
29
29
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -475,9 +475,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
475
475
|
}), /*#__PURE__*/React.createElement(Select, _extends({
|
|
476
476
|
appearance: appearance,
|
|
477
477
|
"aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId : ariaDescribedBy,
|
|
478
|
-
label: label || undefined
|
|
479
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
480
|
-
,
|
|
478
|
+
label: label || undefined,
|
|
481
479
|
autoFocus: autoFocus,
|
|
482
480
|
clearControlLabel: clearControlLabel,
|
|
483
481
|
closeMenuOnSelect: true,
|
|
@@ -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 = "
|
|
22
|
+
const packageVersion = "0.0.0-development";
|
|
23
23
|
const compiledStyles = {
|
|
24
24
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
25
25
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -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 = "
|
|
25
|
+
const packageVersion = "0.0.0-development";
|
|
26
26
|
const analyticsAttributes = {
|
|
27
27
|
componentName: 'dateTimePicker',
|
|
28
28
|
packageName,
|
|
@@ -261,9 +261,7 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
261
261
|
xcss: compiledStyles.datePickerContainerStyles
|
|
262
262
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
263
263
|
appearance: appearance,
|
|
264
|
-
"aria-describedby": datePickerAriaDescribedBy
|
|
265
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
266
|
-
,
|
|
264
|
+
"aria-describedby": datePickerAriaDescribedBy,
|
|
267
265
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
268
266
|
dateFormat: datePickerProps.dateFormat,
|
|
269
267
|
defaultIsOpen: datePickerProps.defaultIsOpen,
|
|
@@ -304,9 +302,7 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
304
302
|
xcss: compiledStyles.timePickerContainerStyles
|
|
305
303
|
}, /*#__PURE__*/React.createElement(TimePicker, {
|
|
306
304
|
appearance: timePickerProps.appearance || appearance,
|
|
307
|
-
"aria-describedby": timePickerAriaDescribedBy
|
|
308
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
309
|
-
,
|
|
305
|
+
"aria-describedby": timePickerAriaDescribedBy,
|
|
310
306
|
autoFocus: timePickerProps.autoFocus,
|
|
311
307
|
defaultIsOpen: timePickerProps.defaultIsOpen,
|
|
312
308
|
defaultValue: timePickerProps.defaultValue,
|
|
@@ -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 = "
|
|
14
|
+
const packageVersion = "0.0.0-development";
|
|
15
15
|
const menuStyles = {
|
|
16
16
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
17
17
|
position: 'static',
|
|
@@ -265,7 +265,9 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
265
265
|
"aria-label": label || undefined,
|
|
266
266
|
appearance: appearance,
|
|
267
267
|
autoFocus: autoFocus,
|
|
268
|
-
clearControlLabel: clearControlLabel
|
|
268
|
+
clearControlLabel: clearControlLabel
|
|
269
|
+
// @ts-ignore - Type mismatch with components - workaround for help-center local consumption
|
|
270
|
+
,
|
|
269
271
|
components: selectComponents,
|
|
270
272
|
inputId: id,
|
|
271
273
|
isClearable: true,
|
|
@@ -275,13 +277,17 @@ const TimePicker = /*#__PURE__*/forwardRef(({
|
|
|
275
277
|
menuPlacement: "auto",
|
|
276
278
|
openMenuOnFocus: true,
|
|
277
279
|
onBlur: onBlur,
|
|
278
|
-
onCreateOption: onCreateOption
|
|
280
|
+
onCreateOption: onCreateOption
|
|
281
|
+
// @ts-ignore - Type mismatch with onChange handler - workaround for help-center local consumption
|
|
282
|
+
,
|
|
279
283
|
onChange: onChange,
|
|
280
284
|
options: options,
|
|
281
285
|
onFocus: onFocus,
|
|
282
286
|
onMenuOpen: onMenuOpen,
|
|
283
287
|
onMenuClose: onMenuClose,
|
|
284
|
-
placeholder: placeholder || l10n.formatTime(placeholderDatetime)
|
|
288
|
+
placeholder: placeholder || l10n.formatTime(placeholderDatetime)
|
|
289
|
+
// @ts-ignore - Type mismatch with styles config - workaround for help-center local consumption
|
|
290
|
+
,
|
|
285
291
|
styles: mergedStyles,
|
|
286
292
|
value: initialValue,
|
|
287
293
|
spacing: spacing
|
|
@@ -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 = "
|
|
35
|
+
var packageVersion = "0.0.0-development";
|
|
36
36
|
var datePickerDefaultProps = {
|
|
37
37
|
defaultIsOpen: false,
|
|
38
38
|
defaultValue: '',
|
|
@@ -527,9 +527,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
527
527
|
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
528
528
|
appearance: _this2.props.appearance,
|
|
529
529
|
"aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
|
|
530
|
-
label: label || undefined
|
|
531
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
532
|
-
,
|
|
530
|
+
label: label || undefined,
|
|
533
531
|
autoFocus: autoFocus,
|
|
534
532
|
clearControlLabel: clearControlLabel,
|
|
535
533
|
closeMenuOnSelect: true,
|
|
@@ -594,9 +592,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
|
|
|
594
592
|
}) : /*#__PURE__*/React.createElement(Select, _extends({
|
|
595
593
|
appearance: this.props.appearance,
|
|
596
594
|
"aria-describedby": ariaDescribedBy,
|
|
597
|
-
label: label || undefined
|
|
598
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
599
|
-
,
|
|
595
|
+
label: label || undefined,
|
|
600
596
|
autoFocus: autoFocus,
|
|
601
597
|
clearControlLabel: clearControlLabel,
|
|
602
598
|
closeMenuOnSelect: true,
|
|
@@ -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 = "
|
|
32
|
+
var packageVersion = "0.0.0-development";
|
|
33
33
|
var styles = {
|
|
34
34
|
pickerContainerStyle: "_kqswh2mm",
|
|
35
35
|
dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
@@ -540,9 +540,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
|
540
540
|
}), /*#__PURE__*/React.createElement(Select, _extends({
|
|
541
541
|
appearance: appearance,
|
|
542
542
|
"aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
|
|
543
|
-
label: label || undefined
|
|
544
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
545
|
-
,
|
|
543
|
+
label: label || undefined,
|
|
546
544
|
autoFocus: autoFocus,
|
|
547
545
|
clearControlLabel: clearControlLabel,
|
|
548
546
|
closeMenuOnSelect: true,
|
|
@@ -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 = "
|
|
33
|
+
var packageVersion = "0.0.0-development";
|
|
34
34
|
var compiledStyles = {
|
|
35
35
|
datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
|
|
36
36
|
timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
|
|
@@ -31,7 +31,7 @@ var DatePicker = componentWithCondition(function () {
|
|
|
31
31
|
return fg('dst-date-picker-use-functional-component');
|
|
32
32
|
}, DatePickerNew, DatePickerOld);
|
|
33
33
|
var packageName = "@atlaskit/datetime-picker";
|
|
34
|
-
var packageVersion = "
|
|
34
|
+
var packageVersion = "0.0.0-development";
|
|
35
35
|
var analyticsAttributes = {
|
|
36
36
|
componentName: 'dateTimePicker',
|
|
37
37
|
packageName: packageName,
|
|
@@ -289,9 +289,7 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
289
289
|
xcss: compiledStyles.datePickerContainerStyles
|
|
290
290
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
291
291
|
appearance: appearance,
|
|
292
|
-
"aria-describedby": datePickerAriaDescribedBy
|
|
293
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
294
|
-
,
|
|
292
|
+
"aria-describedby": datePickerAriaDescribedBy,
|
|
295
293
|
autoFocus: datePickerProps.autoFocus || autoFocus,
|
|
296
294
|
dateFormat: datePickerProps.dateFormat,
|
|
297
295
|
defaultIsOpen: datePickerProps.defaultIsOpen,
|
|
@@ -332,9 +330,7 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
332
330
|
xcss: compiledStyles.timePickerContainerStyles
|
|
333
331
|
}, /*#__PURE__*/React.createElement(TimePicker, {
|
|
334
332
|
appearance: timePickerProps.appearance || appearance,
|
|
335
|
-
"aria-describedby": timePickerAriaDescribedBy
|
|
336
|
-
// eslint-disable-next-line @atlassian/a11y/no-autofocus
|
|
337
|
-
,
|
|
333
|
+
"aria-describedby": timePickerAriaDescribedBy,
|
|
338
334
|
autoFocus: timePickerProps.autoFocus,
|
|
339
335
|
defaultIsOpen: timePickerProps.defaultIsOpen,
|
|
340
336
|
defaultValue: timePickerProps.defaultValue,
|
|
@@ -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 = "
|
|
20
|
+
var packageVersion = "0.0.0-development";
|
|
21
21
|
var menuStyles = {
|
|
22
22
|
/* Need to remove default absolute positioning as that causes issues with position fixed */
|
|
23
23
|
position: 'static',
|
|
@@ -309,7 +309,9 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
309
309
|
"aria-label": label || undefined,
|
|
310
310
|
appearance: appearance,
|
|
311
311
|
autoFocus: autoFocus,
|
|
312
|
-
clearControlLabel: clearControlLabel
|
|
312
|
+
clearControlLabel: clearControlLabel
|
|
313
|
+
// @ts-ignore - Type mismatch with components - workaround for help-center local consumption
|
|
314
|
+
,
|
|
313
315
|
components: selectComponents,
|
|
314
316
|
inputId: id,
|
|
315
317
|
isClearable: true,
|
|
@@ -319,13 +321,17 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
319
321
|
menuPlacement: "auto",
|
|
320
322
|
openMenuOnFocus: true,
|
|
321
323
|
onBlur: onBlur,
|
|
322
|
-
onCreateOption: onCreateOption
|
|
324
|
+
onCreateOption: onCreateOption
|
|
325
|
+
// @ts-ignore - Type mismatch with onChange handler - workaround for help-center local consumption
|
|
326
|
+
,
|
|
323
327
|
onChange: onChange,
|
|
324
328
|
options: options,
|
|
325
329
|
onFocus: onFocus,
|
|
326
330
|
onMenuOpen: onMenuOpen,
|
|
327
331
|
onMenuClose: onMenuClose,
|
|
328
|
-
placeholder: placeholder || l10n.formatTime(placeholderDatetime)
|
|
332
|
+
placeholder: placeholder || l10n.formatTime(placeholderDatetime)
|
|
333
|
+
// @ts-ignore - Type mismatch with styles config - workaround for help-center local consumption
|
|
334
|
+
,
|
|
329
335
|
styles: mergedStyles,
|
|
330
336
|
value: initialValue,
|
|
331
337
|
spacing: spacing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "17.1.
|
|
3
|
+
"version": "17.1.5",
|
|
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/"
|
|
@@ -42,9 +42,9 @@
|
|
|
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": "^16.
|
|
45
|
+
"@atlaskit/primitives": "^16.1.0",
|
|
46
46
|
"@atlaskit/select": "^21.3.0",
|
|
47
|
-
"@atlaskit/tokens": "^7.
|
|
47
|
+
"@atlaskit/tokens": "^7.1.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@compiled/react": "^0.18.6",
|
|
@@ -57,16 +57,16 @@
|
|
|
57
57
|
"@af/accessibility-testing": "workspace:^",
|
|
58
58
|
"@af/integration-testing": "workspace:^",
|
|
59
59
|
"@af/visual-regression": "workspace:^",
|
|
60
|
-
"@atlaskit/code": "^17.
|
|
60
|
+
"@atlaskit/code": "^17.3.0",
|
|
61
61
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
62
62
|
"@atlaskit/docs": "^11.2.0",
|
|
63
63
|
"@atlaskit/form": "^14.2.0",
|
|
64
64
|
"@atlaskit/heading": "^5.2.0",
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
66
|
"@atlaskit/modal-dialog": "^14.6.0",
|
|
67
|
-
"@atlaskit/popup": "^4.
|
|
67
|
+
"@atlaskit/popup": "^4.6.0",
|
|
68
68
|
"@atlaskit/range": "^9.2.0",
|
|
69
|
-
"@atlaskit/section-message": "^8.
|
|
69
|
+
"@atlaskit/section-message": "^8.9.0",
|
|
70
70
|
"@atlaskit/ssr": "workspace:^",
|
|
71
71
|
"@atlaskit/textfield": "^8.0.0",
|
|
72
72
|
"@atlaskit/toggle": "^15.1.0",
|