@atlaskit/datetime-picker 13.7.2 → 13.7.3

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 13.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#121570](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121570)
8
+ [`6026292f28f06`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6026292f28f06) -
9
+ [ux] Allows `aria-describedby` on all pickers. This will ensure messages from the form's field
10
+ component will be applied properly.
11
+
3
12
  ## 13.7.2
4
13
 
5
14
  ### Patch Changes
@@ -38,7 +38,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
38
38
  * @jsxRuntime classic
39
39
  */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
40
40
  var packageName = "@atlaskit/datetime-picker";
41
- var packageVersion = "13.7.2";
41
+ var packageVersion = "13.7.3";
42
42
  var datePickerDefaultProps = {
43
43
  appearance: 'default',
44
44
  autoFocus: false,
@@ -370,6 +370,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
370
370
  value: function render() {
371
371
  var _this$props3 = this.props,
372
372
  appearance = _this$props3.appearance,
373
+ ariaDescribedBy = _this$props3['aria-describedby'],
373
374
  autoFocus = _this$props3.autoFocus,
374
375
  disabled = _this$props3.disabled,
375
376
  hideIcon = _this$props3.hideIcon,
@@ -453,6 +454,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
453
454
  value: value,
454
455
  "data-testid": testId && "".concat(testId, "--input")
455
456
  }), (0, _react2.jsx)(_select.default, (0, _extends2.default)({
457
+ "aria-describedby": ariaDescribedBy,
456
458
  "aria-label": label || undefined,
457
459
  appearance: this.props.appearance,
458
460
  enableAnimation: false,
@@ -33,7 +33,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
33
33
  * @jsxRuntime classic
34
34
  */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
35
35
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "13.7.2";
36
+ var packageVersion = "13.7.3";
37
37
  // Make DatePicker 50% the width of DateTimePicker
38
38
  // If rendering an icon container, shrink the TimePicker
39
39
  var datePickerContainerStyles = (0, _react2.css)({
@@ -209,6 +209,7 @@ var DateTimePickerComponent = exports.DateTimePickerWithoutAnalytics = /*#__PURE
209
209
  key: "render",
210
210
  value: function render() {
211
211
  var _this$props = this.props,
212
+ ariaDescribedBy = _this$props['aria-describedby'],
212
213
  autoFocus = _this$props.autoFocus,
213
214
  id = _this$props.id,
214
215
  innerProps = _this$props.innerProps,
@@ -242,10 +243,12 @@ var DateTimePickerComponent = exports.DateTimePickerWithoutAnalytics = /*#__PURE
242
243
  var _timePickerSelectProp = timePickerSelectProps.styles,
243
244
  timePickerStyles = _timePickerSelectProp === void 0 ? {} : _timePickerSelectProp;
244
245
  var mergedDatePickerSelectProps = _objectSpread(_objectSpread({}, datePickerSelectProps), {}, {
246
+ 'aria-describedby': datePickerProps['aria-describedby'] || ariaDescribedBy,
245
247
  'aria-label': datePickerProps['label'] || datePickerSelectProps['aria-label'] || datePickerDefaultAriaLabel,
246
248
  styles: (0, _select.mergeStyles)(styles, datePickerStyles)
247
249
  });
248
250
  var mergedTimePickerSelectProps = _objectSpread(_objectSpread({}, timePickerSelectProps), {}, {
251
+ 'aria-describedby': timePickerProps['aria-describedby'] || ariaDescribedBy,
249
252
  'aria-label': timePickerProps['label'] || timePickerSelectProps['aria-label'] || timePickerDefaultAriaLabel,
250
253
  styles: (0, _select.mergeStyles)(styles, timePickerStyles)
251
254
  });
@@ -36,7 +36,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
36
36
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line no-restricted-imports
37
37
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
38
38
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "13.7.2";
39
+ var packageVersion = "13.7.3";
40
40
  var menuStyles = {
41
41
  /* Need to remove default absolute positioning as that causes issues with position fixed */
42
42
  position: 'static',
@@ -199,6 +199,7 @@ var TimePickerComponent = exports.TimePickerWithoutAnalytics = /*#__PURE__*/func
199
199
  var _this2 = this;
200
200
  var _this$props2 = this.props,
201
201
  appearance = _this$props2.appearance,
202
+ ariaDescribedBy = _this$props2['aria-describedby'],
202
203
  autoFocus = _this$props2.autoFocus,
203
204
  formatDisplayLabel = _this$props2.formatDisplayLabel,
204
205
  hideIcon = _this$props2.hideIcon,
@@ -299,6 +300,7 @@ var TimePickerComponent = exports.TimePickerWithoutAnalytics = /*#__PURE__*/func
299
300
  "data-testid": testId && "".concat(testId, "--input"),
300
301
  onKeyDown: this.onSelectKeyDown
301
302
  }), /*#__PURE__*/_react.default.createElement(SelectComponent, (0, _extends2.default)({
303
+ "aria-describedby": ariaDescribedBy,
302
304
  "aria-label": label || undefined,
303
305
  appearance: appearance,
304
306
  autoFocus: autoFocus,
@@ -21,7 +21,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
21
21
  import { convertTokens } from '../internal/parse-tokens';
22
22
  import { makeSingleValue } from '../internal/single-value';
23
23
  const packageName = "@atlaskit/datetime-picker";
24
- const packageVersion = "13.7.2";
24
+ const packageVersion = "13.7.3";
25
25
  const datePickerDefaultProps = {
26
26
  appearance: 'default',
27
27
  autoFocus: false,
@@ -368,6 +368,7 @@ class DatePickerComponent extends Component {
368
368
  render() {
369
369
  const {
370
370
  appearance,
371
+ 'aria-describedby': ariaDescribedBy,
371
372
  autoFocus,
372
373
  disabled,
373
374
  hideIcon,
@@ -455,6 +456,7 @@ class DatePickerComponent extends Component {
455
456
  value: value,
456
457
  "data-testid": testId && `${testId}--input`
457
458
  }), jsx(Select, _extends({
459
+ "aria-describedby": ariaDescribedBy,
458
460
  "aria-label": label || undefined,
459
461
  appearance: this.props.appearance,
460
462
  enableAnimation: false,
@@ -20,7 +20,7 @@ import { convertTokens } from '../internal/parse-tokens';
20
20
  import DatePicker from './date-picker';
21
21
  import TimePicker from './time-picker';
22
22
  const packageName = "@atlaskit/datetime-picker";
23
- const packageVersion = "13.7.2";
23
+ const packageVersion = "13.7.3";
24
24
  // Make DatePicker 50% the width of DateTimePicker
25
25
  // If rendering an icon container, shrink the TimePicker
26
26
  const datePickerContainerStyles = css({
@@ -192,6 +192,7 @@ class DateTimePickerComponent extends React.Component {
192
192
  }
193
193
  render() {
194
194
  const {
195
+ 'aria-describedby': ariaDescribedBy,
195
196
  autoFocus,
196
197
  id,
197
198
  innerProps,
@@ -230,11 +231,13 @@ class DateTimePickerComponent extends React.Component {
230
231
  } = timePickerSelectProps;
231
232
  const mergedDatePickerSelectProps = {
232
233
  ...datePickerSelectProps,
234
+ 'aria-describedby': datePickerProps['aria-describedby'] || ariaDescribedBy,
233
235
  'aria-label': datePickerProps['label'] || datePickerSelectProps['aria-label'] || datePickerDefaultAriaLabel,
234
236
  styles: mergeStyles(styles, datePickerStyles)
235
237
  };
236
238
  const mergedTimePickerSelectProps = {
237
239
  ...timePickerSelectProps,
240
+ 'aria-describedby': timePickerProps['aria-describedby'] || ariaDescribedBy,
238
241
  'aria-label': timePickerProps['label'] || timePickerSelectProps['aria-label'] || timePickerDefaultAriaLabel,
239
242
  styles: mergeStyles(styles, timePickerStyles)
240
243
  };
@@ -16,7 +16,7 @@ import parseTime from '../internal/parse-time';
16
16
  import { convertTokens } from '../internal/parse-tokens';
17
17
  import { makeSingleValue } from '../internal/single-value';
18
18
  const packageName = "@atlaskit/datetime-picker";
19
- const packageVersion = "13.7.2";
19
+ const packageVersion = "13.7.3";
20
20
  const menuStyles = {
21
21
  /* Need to remove default absolute positioning as that causes issues with position fixed */
22
22
  position: 'static',
@@ -173,6 +173,7 @@ class TimePickerComponent extends React.Component {
173
173
  render() {
174
174
  const {
175
175
  appearance,
176
+ 'aria-describedby': ariaDescribedBy,
176
177
  autoFocus,
177
178
  formatDisplayLabel,
178
179
  hideIcon,
@@ -275,6 +276,7 @@ class TimePickerComponent extends React.Component {
275
276
  "data-testid": testId && `${testId}--input`,
276
277
  onKeyDown: this.onSelectKeyDown
277
278
  }), /*#__PURE__*/React.createElement(SelectComponent, _extends({
279
+ "aria-describedby": ariaDescribedBy,
278
280
  "aria-label": label || undefined,
279
281
  appearance: appearance,
280
282
  autoFocus: autoFocus,
@@ -32,7 +32,7 @@ import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date'
32
32
  import { convertTokens } from '../internal/parse-tokens';
33
33
  import { makeSingleValue } from '../internal/single-value';
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "13.7.2";
35
+ var packageVersion = "13.7.3";
36
36
  var datePickerDefaultProps = {
37
37
  appearance: 'default',
38
38
  autoFocus: false,
@@ -364,6 +364,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
364
364
  value: function render() {
365
365
  var _this$props3 = this.props,
366
366
  appearance = _this$props3.appearance,
367
+ ariaDescribedBy = _this$props3['aria-describedby'],
367
368
  autoFocus = _this$props3.autoFocus,
368
369
  disabled = _this$props3.disabled,
369
370
  hideIcon = _this$props3.hideIcon,
@@ -447,6 +448,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
447
448
  value: value,
448
449
  "data-testid": testId && "".concat(testId, "--input")
449
450
  }), jsx(Select, _extends({
451
+ "aria-describedby": ariaDescribedBy,
450
452
  "aria-label": label || undefined,
451
453
  appearance: this.props.appearance,
452
454
  enableAnimation: false,
@@ -30,7 +30,7 @@ import { convertTokens } from '../internal/parse-tokens';
30
30
  import DatePicker from './date-picker';
31
31
  import TimePicker from './time-picker';
32
32
  var packageName = "@atlaskit/datetime-picker";
33
- var packageVersion = "13.7.2";
33
+ var packageVersion = "13.7.3";
34
34
  // Make DatePicker 50% the width of DateTimePicker
35
35
  // If rendering an icon container, shrink the TimePicker
36
36
  var datePickerContainerStyles = css({
@@ -206,6 +206,7 @@ var DateTimePickerComponent = /*#__PURE__*/function (_React$Component) {
206
206
  key: "render",
207
207
  value: function render() {
208
208
  var _this$props = this.props,
209
+ ariaDescribedBy = _this$props['aria-describedby'],
209
210
  autoFocus = _this$props.autoFocus,
210
211
  id = _this$props.id,
211
212
  innerProps = _this$props.innerProps,
@@ -239,10 +240,12 @@ var DateTimePickerComponent = /*#__PURE__*/function (_React$Component) {
239
240
  var _timePickerSelectProp = timePickerSelectProps.styles,
240
241
  timePickerStyles = _timePickerSelectProp === void 0 ? {} : _timePickerSelectProp;
241
242
  var mergedDatePickerSelectProps = _objectSpread(_objectSpread({}, datePickerSelectProps), {}, {
243
+ 'aria-describedby': datePickerProps['aria-describedby'] || ariaDescribedBy,
242
244
  'aria-label': datePickerProps['label'] || datePickerSelectProps['aria-label'] || datePickerDefaultAriaLabel,
243
245
  styles: mergeStyles(styles, datePickerStyles)
244
246
  });
245
247
  var mergedTimePickerSelectProps = _objectSpread(_objectSpread({}, timePickerSelectProps), {}, {
248
+ 'aria-describedby': timePickerProps['aria-describedby'] || ariaDescribedBy,
246
249
  'aria-label': timePickerProps['label'] || timePickerSelectProps['aria-label'] || timePickerDefaultAriaLabel,
247
250
  styles: mergeStyles(styles, timePickerStyles)
248
251
  });
@@ -28,7 +28,7 @@ import parseTime from '../internal/parse-time';
28
28
  import { convertTokens } from '../internal/parse-tokens';
29
29
  import { makeSingleValue } from '../internal/single-value';
30
30
  var packageName = "@atlaskit/datetime-picker";
31
- var packageVersion = "13.7.2";
31
+ var packageVersion = "13.7.3";
32
32
  var menuStyles = {
33
33
  /* Need to remove default absolute positioning as that causes issues with position fixed */
34
34
  position: 'static',
@@ -191,6 +191,7 @@ var TimePickerComponent = /*#__PURE__*/function (_React$Component) {
191
191
  var _this2 = this;
192
192
  var _this$props2 = this.props,
193
193
  appearance = _this$props2.appearance,
194
+ ariaDescribedBy = _this$props2['aria-describedby'],
194
195
  autoFocus = _this$props2.autoFocus,
195
196
  formatDisplayLabel = _this$props2.formatDisplayLabel,
196
197
  hideIcon = _this$props2.hideIcon,
@@ -291,6 +292,7 @@ var TimePickerComponent = /*#__PURE__*/function (_React$Component) {
291
292
  "data-testid": testId && "".concat(testId, "--input"),
292
293
  onKeyDown: this.onSelectKeyDown
293
294
  }), /*#__PURE__*/React.createElement(SelectComponent, _extends({
295
+ "aria-describedby": ariaDescribedBy,
294
296
  "aria-label": label || undefined,
295
297
  appearance: appearance,
296
298
  autoFocus: autoFocus,
@@ -133,7 +133,7 @@ export { DatePickerComponent as DatePickerWithoutAnalytics };
133
133
  * - [Code](https://atlassian.design/components/datetime-picker/date-picker/code)
134
134
  * - [Usage](https://atlassian.design/components/datetime-picker/date-picker/usage)
135
135
  */
136
- declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "isOpen" | "parseInputValue" | "formatDisplayLabel" | "dateFormat"> & Partial<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "spacing" | "isInvalid" | "hideIcon">> & Partial<Pick<{
136
+ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "aria-describedby" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "isOpen" | "parseInputValue" | "formatDisplayLabel" | "dateFormat"> & Partial<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "spacing" | "isInvalid" | "hideIcon">> & Partial<Pick<{
137
137
  appearance: Appearance;
138
138
  autoFocus: boolean;
139
139
  defaultIsOpen: boolean;
@@ -154,5 +154,5 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
154
154
  selectProps: {};
155
155
  spacing: Spacing;
156
156
  locale: string;
157
- }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "dateFormat"> & import("react").RefAttributes<any>>;
157
+ }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "dateFormat"> & import("react").RefAttributes<any>>;
158
158
  export default DatePicker;
@@ -73,5 +73,5 @@ export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
73
73
  * - [Code](https://atlassian.design/components/datetime-picker/code)
74
74
  * - [Usage](https://atlassian.design/components/datetime-picker/usage)
75
75
  */
76
- declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
76
+ declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
77
77
  export default DateTimePicker;
@@ -89,7 +89,7 @@ export { TimePickerComponent as TimePickerWithoutAnalytics };
89
89
  * - [Code](https://atlassian.design/components/datetime-picker/time-picker/code)
90
90
  * - [Usage](https://atlassian.design/components/datetime-picker/time-picker/usage)
91
91
  */
92
- declare const TimePicker: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "value" | "isOpen" | "formatDisplayLabel" | "timeFormat"> & Partial<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "parseInputValue" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable">> & Partial<Pick<{
92
+ declare const TimePicker: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "aria-describedby" | "value" | "isOpen" | "formatDisplayLabel" | "timeFormat"> & Partial<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "parseInputValue" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable">> & Partial<Pick<{
93
93
  appearance: Appearance;
94
94
  autoFocus: boolean;
95
95
  defaultIsOpen: boolean;
@@ -110,5 +110,5 @@ declare const TimePicker: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePic
110
110
  times: string[];
111
111
  timeIsEditable: boolean;
112
112
  locale: string;
113
- }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<any>>;
113
+ }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<any>>;
114
114
  export default TimePicker;
@@ -10,6 +10,10 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
10
10
  * **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
11
11
  */
12
12
  appearance?: Appearance;
13
+ /**
14
+ * Used to associate accessible descriptions to the date picker.
15
+ */
16
+ 'aria-describedby'?: string;
13
17
  /**
14
18
  * Set the picker to autofocus on mount.
15
19
  */
@@ -159,6 +163,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps {
159
163
  * __NOTE:__ Appearance values will be ignored if styles are parsed through `selectProps`.
160
164
  */
161
165
  appearance?: Appearance;
166
+ /**
167
+ * Used to associate accessible descriptions to the time picker.
168
+ */
169
+ 'aria-describedby'?: string;
162
170
  /**
163
171
  * Set the picker to autofocus on mount.
164
172
  */
@@ -272,6 +280,13 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
272
280
  * `subtle` will remove the borders and background.
273
281
  */
274
282
  appearance?: Appearance;
283
+ /**
284
+ * Used to associate accessible descriptions to both the date and time
285
+ * picker. If you want to associate individual accessible descriptions, this
286
+ * should be done through the `datePickerSelectProps` and
287
+ * `timePickerSelectProps`.
288
+ */
289
+ 'aria-describedby'?: string;
275
290
  /**
276
291
  * Set the picker to autofocus on mount.
277
292
  */
@@ -133,7 +133,7 @@ export { DatePickerComponent as DatePickerWithoutAnalytics };
133
133
  * - [Code](https://atlassian.design/components/datetime-picker/date-picker/code)
134
134
  * - [Usage](https://atlassian.design/components/datetime-picker/date-picker/usage)
135
135
  */
136
- declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "isOpen" | "parseInputValue" | "formatDisplayLabel" | "dateFormat"> & Partial<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "spacing" | "isInvalid" | "hideIcon">> & Partial<Pick<{
136
+ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "aria-describedby" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "isOpen" | "parseInputValue" | "formatDisplayLabel" | "dateFormat"> & Partial<Pick<Omit<DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "spacing" | "isInvalid" | "hideIcon">> & Partial<Pick<{
137
137
  appearance: Appearance;
138
138
  autoFocus: boolean;
139
139
  defaultIsOpen: boolean;
@@ -154,5 +154,5 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
154
154
  selectProps: {};
155
155
  spacing: Spacing;
156
156
  locale: string;
157
- }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "dateFormat"> & import("react").RefAttributes<any>>;
157
+ }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "label" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "dateFormat"> & import("react").RefAttributes<any>>;
158
158
  export default DatePicker;
@@ -73,5 +73,5 @@ export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
73
73
  * - [Code](https://atlassian.design/components/datetime-picker/code)
74
74
  * - [Usage](https://atlassian.design/components/datetime-picker/usage)
75
75
  */
76
- declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
76
+ declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps">> & Partial<Pick<DateTimePickerProps, "ref" | "createAnalyticsEvent">>, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "name" | "spacing" | "isInvalid" | "dateFormat" | "timeIsEditable" | "timeFormat" | "datePickerProps" | "timePickerProps" | "parseValue" | "datePickerSelectProps" | "timePickerSelectProps"> & React.RefAttributes<any>>;
77
77
  export default DateTimePicker;
@@ -89,7 +89,7 @@ export { TimePickerComponent as TimePickerWithoutAnalytics };
89
89
  * - [Code](https://atlassian.design/components/datetime-picker/time-picker/code)
90
90
  * - [Usage](https://atlassian.design/components/datetime-picker/time-picker/usage)
91
91
  */
92
- declare const TimePicker: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "value" | "isOpen" | "formatDisplayLabel" | "timeFormat"> & Partial<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "parseInputValue" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable">> & Partial<Pick<{
92
+ declare const TimePicker: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "placeholder" | "aria-describedby" | "value" | "isOpen" | "formatDisplayLabel" | "timeFormat"> & Partial<Pick<Omit<TimePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "times" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "onFocus" | "onBlur" | "onChange" | "locale" | "autoFocus" | "defaultIsOpen" | "name" | "parseInputValue" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable">> & Partial<Pick<{
93
93
  appearance: Appearance;
94
94
  autoFocus: boolean;
95
95
  defaultIsOpen: boolean;
@@ -110,5 +110,5 @@ declare const TimePicker: React.ForwardRefExoticComponent<Pick<Pick<Omit<TimePic
110
110
  times: string[];
111
111
  timeIsEditable: boolean;
112
112
  locale: string;
113
- }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<any>>;
113
+ }, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "times" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "placeholder" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "value" | "autoFocus" | "defaultIsOpen" | "isOpen" | "name" | "parseInputValue" | "formatDisplayLabel" | "spacing" | "isInvalid" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<any>>;
114
114
  export default TimePicker;
@@ -10,6 +10,10 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps {
10
10
  * **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
11
11
  */
12
12
  appearance?: Appearance;
13
+ /**
14
+ * Used to associate accessible descriptions to the date picker.
15
+ */
16
+ 'aria-describedby'?: string;
13
17
  /**
14
18
  * Set the picker to autofocus on mount.
15
19
  */
@@ -159,6 +163,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps {
159
163
  * __NOTE:__ Appearance values will be ignored if styles are parsed through `selectProps`.
160
164
  */
161
165
  appearance?: Appearance;
166
+ /**
167
+ * Used to associate accessible descriptions to the time picker.
168
+ */
169
+ 'aria-describedby'?: string;
162
170
  /**
163
171
  * Set the picker to autofocus on mount.
164
172
  */
@@ -272,6 +280,13 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
272
280
  * `subtle` will remove the borders and background.
273
281
  */
274
282
  appearance?: Appearance;
283
+ /**
284
+ * Used to associate accessible descriptions to both the date and time
285
+ * picker. If you want to associate individual accessible descriptions, this
286
+ * should be done through the `datePickerSelectProps` and
287
+ * `timePickerSelectProps`.
288
+ */
289
+ 'aria-describedby'?: string;
275
290
  /**
276
291
  * Set the picker to autofocus on mount.
277
292
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "13.7.2",
3
+ "version": "13.7.3",
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/"
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/popper": "^6.1.0",
50
50
  "@atlaskit/select": "^17.11.0",
51
51
  "@atlaskit/theme": "^12.11.0",
52
- "@atlaskit/tokens": "^1.54.0",
52
+ "@atlaskit/tokens": "^1.56.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
55
55
  "date-fns": "^2.17.0",
@@ -63,7 +63,7 @@
63
63
  "@af/accessibility-testing": "*",
64
64
  "@af/integration-testing": "*",
65
65
  "@af/visual-regression": "*",
66
- "@atlaskit/button": "^18.4.0",
66
+ "@atlaskit/button": "^19.0.0",
67
67
  "@atlaskit/docs": "*",
68
68
  "@atlaskit/form": "^10.4.0",
69
69
  "@atlaskit/modal-dialog": "^12.14.0",