@atlaskit/datetime-picker 17.0.17 → 17.1.0

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,21 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 17.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`cca11d70019df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cca11d70019df) -
8
+ This fixes a bug with announcing the label for users of assistive technology behind a feature
9
+ flag. If successful, it will roll out in a future release.
10
+
11
+ ## 17.0.18
12
+
13
+ ### Patch Changes
14
+
15
+ - [`437668dfbdec9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/437668dfbdec9) -
16
+ Add explicit types to a number of DST components
17
+ - Updated dependencies
18
+
3
19
  ## 17.0.17
4
20
 
5
21
  ### 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 = "17.0.16";
43
+ var packageVersion = "17.0.18";
44
44
  var datePickerDefaultProps = {
45
45
  defaultIsOpen: false,
46
46
  defaultValue: '',
@@ -456,9 +456,6 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
456
456
  };
457
457
  }
458
458
  var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
459
- var SingleValue = (0, _singleValue.makeSingleValue)({
460
- lang: this.props.locale
461
- });
462
459
  var selectComponents = _objectSpread(_objectSpread(_objectSpread({
463
460
  DropdownIndicator: shouldShowCalendarButton ? _internal.EmptyComponent : dropDownIcon
464
461
  }, shouldShowCalendarButton ? {
@@ -468,8 +465,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
468
465
  }));
469
466
  }
470
467
  } : {}), {}, {
471
- Menu: _menu.Menu,
472
- SingleValue: SingleValue
468
+ Menu: _menu.Menu
473
469
  }, !showClearIndicator && {
474
470
  ClearIndicator: _internal.EmptyComponent
475
471
  }), selectProps.components);
@@ -536,7 +532,76 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
536
532
  type: "hidden",
537
533
  value: value,
538
534
  "data-testid": testId && "".concat(testId, "--input")
539
- }), /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
535
+ }), (0, _platformFeatureFlags.fg)('platform-dtp_a11y_fix-dsp-23950') ? /*#__PURE__*/React.createElement(_useId.IdProvider, null, function (_ref3) {
536
+ var valueId = _ref3.id;
537
+ return /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
538
+ appearance: _this2.props.appearance,
539
+ "aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
540
+ label: label || undefined
541
+ // eslint-disable-next-line jsx-a11y/no-autofocus
542
+ ,
543
+ autoFocus: autoFocus,
544
+ clearControlLabel: clearControlLabel,
545
+ closeMenuOnSelect: true,
546
+ enableAnimation: false,
547
+ inputId: id,
548
+ inputValue: actualSelectInputValue,
549
+ isDisabled: isDisabled,
550
+ isRequired: isRequired,
551
+ menuIsOpen: menuIsOpen,
552
+ onBlur: _this2.onSelectBlur,
553
+ onChange: _this2.onSelectChange,
554
+ onFocus: _this2.onSelectFocus,
555
+ onInputChange: _this2.handleSelectInputChange,
556
+ placeholder: (0, _datePickerMigration.getPlaceholder)({
557
+ placeholder: _this2.props.placeholder,
558
+ l10n: _this2.state.l10n
559
+ })
560
+ // @ts-ignore -- Argument of type 'StylesConfig<OptionType, false, GroupBase<OptionType>>' is not assignable to parameter of type 'StylesConfig<OptionType, boolean, GroupBase<OptionType>>'
561
+ ,
562
+ styles: mergedStyles,
563
+ value: initialValue
564
+ }, selectProps, {
565
+ // For some reason, this and the below `styles` type error _only_ show
566
+ // up when you alter some of the properties in the `selectComponents`
567
+ // object. These errors are still present, and I suspect have always
568
+ // been present, without changing the unrelated code. Ignoring as the
569
+ // component still works as expected despite this error. And also
570
+ // because the select refresh team may solve it later.
571
+ components: _objectSpread(_objectSpread({}, selectComponents), {}, {
572
+ SingleValue: (0, _singleValue.makeSingleValue)({
573
+ id: valueId,
574
+ lang: _this2.props.locale
575
+ })
576
+ })
577
+ // These are below the spread because I don't know what is in
578
+ // selectProps or not and what wil be overwritten
579
+ ,
580
+ isClearable: true,
581
+ isInvalid: isInvalid,
582
+ spacing: spacing,
583
+ testId: testId
584
+ // These aren't part of `Select`'s API, but we're using them here.
585
+ // @ts-ignore -- Property 'calendarContainerRef' does not exist on type 'IntrinsicAttributes & LibraryManagedAttributes<(<Option extends unknown = OptionType, IsMulti extends boolean = false>(props: AtlaskitSelectProps<Option, IsMulti> & { ...; }) => Element), AtlaskitSelectProps<...> & { ...; }>'.
586
+ ,
587
+ calendarContainerRef: calendarProps.calendarContainerRef,
588
+ calendarDisabled: calendarProps.calendarDisabled,
589
+ calendarDisabledDateFilter: calendarProps.calendarDisabledDateFilter,
590
+ calendarLocale: calendarProps.calendarLocale,
591
+ calendarMaxDate: calendarProps.calendarMaxDate,
592
+ calendarMinDate: calendarProps.calendarMinDate,
593
+ calendarRef: calendarProps.calendarRef,
594
+ calendarValue: calendarProps.calendarValue,
595
+ calendarView: calendarProps.calendarView,
596
+ calendarWeekStartDay: calendarProps.calendarWeekStartDay,
597
+ nextMonthLabel: nextMonthLabel,
598
+ onCalendarChange: calendarProps.onCalendarChange,
599
+ onCalendarSelect: calendarProps.onCalendarSelect,
600
+ previousMonthLabel: previousMonthLabel,
601
+ shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay,
602
+ menuInnerWrapper: calendarProps.menuInnerWrapper
603
+ }));
604
+ }) : /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
540
605
  appearance: this.props.appearance,
541
606
  "aria-describedby": ariaDescribedBy,
542
607
  label: label || undefined
@@ -570,7 +635,11 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
570
635
  // been present, without changing the unrelated code. Ignoring as the
571
636
  // component still works as expected despite this error. And also
572
637
  // because the select refresh team may solve it later.
573
- components: selectComponents
638
+ components: _objectSpread(_objectSpread({}, selectComponents), {}, {
639
+ SingleValue: (0, _singleValue.makeSingleValue)({
640
+ lang: this.props.locale
641
+ })
642
+ })
574
643
  // These are below the spread because I don't know what is in
575
644
  // selectProps or not and what wil be overwritten
576
645
  ,
@@ -599,8 +668,8 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
599
668
  menuInnerWrapper: calendarProps.menuInnerWrapper
600
669
  })), shouldShowCalendarButton && !isDisabled ? /*#__PURE__*/React.createElement(_useId.IdProvider, {
601
670
  prefix: "open-calendar-label--"
602
- }, function (_ref3) {
603
- var openCalendarLabelId = _ref3.id;
671
+ }, function (_ref4) {
672
+ var openCalendarLabelId = _ref4.id;
604
673
  return /*#__PURE__*/React.createElement(_compiled.Box, {
605
674
  xcss: (0, _css.cx)(styles.iconContainerStyles, value && !hideIcon ? styles.iconSpacingWithClearButtonStyles : styles.iconSpacingWithoutClearButtonStyles)
606
675
  }, /*#__PURE__*/React.createElement(_new.IconButton, {
@@ -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.16";
40
+ var packageVersion = "17.0.18";
41
41
  var styles = {
42
42
  pickerContainerStyle: "_kqswh2mm",
43
43
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -459,7 +459,9 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
459
459
  };
460
460
  }
461
461
  var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
462
+ var valueId = (0, _useId.useId)();
462
463
  var SingleValue = (0, _singleValue.makeSingleValue)({
464
+ id: valueId,
463
465
  lang: propLocale
464
466
  });
465
467
  var selectComponents = _objectSpread(_objectSpread(_objectSpread({}, selectProps.components), {}, {
@@ -547,7 +549,7 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
547
549
  "data-testid": testId && "".concat(testId, "--input")
548
550
  }), /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
549
551
  appearance: appearance,
550
- "aria-describedby": ariaDescribedBy,
552
+ "aria-describedby": (0, _platformFeatureFlags.fg)('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
551
553
  label: label || undefined
552
554
  // eslint-disable-next-line jsx-a11y/no-autofocus
553
555
  ,
@@ -568,8 +570,8 @@ var DatePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, forwardedR
568
570
  placeholder: placeholder,
569
571
  l10n: l10n
570
572
  })
571
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
572
573
  // @ts-ignore -- Type 'OptionType' is not assignable to type '{ label: string; value: string; }'
574
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
573
575
  ,
574
576
  styles: mergedStyles,
575
577
  value: initialValue
@@ -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.16";
38
+ var packageVersion = "17.0.18";
39
39
  var compiledStyles = {
40
40
  datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
41
41
  timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
@@ -40,7 +40,7 @@ function () {
40
40
  return (0, _platformFeatureFlags.fg)('dst-date-picker-use-functional-component');
41
41
  }, _datePickerFc.default, _datePickerClass.default);
42
42
  var packageName = "@atlaskit/datetime-picker";
43
- var packageVersion = "17.0.16";
43
+ var packageVersion = "17.0.18";
44
44
  var analyticsAttributes = {
45
45
  componentName: 'dateTimePicker',
46
46
  packageName: packageName,
@@ -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.16";
29
+ var packageVersion = "17.0.18";
30
30
  var menuStyles = {
31
31
  /* Need to remove default absolute positioning as that causes issues with position fixed */
32
32
  position: 'static',
@@ -6,16 +6,23 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.makeSingleValue = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
11
  var _react = _interopRequireDefault(require("react"));
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
13
  var _select = require("@atlaskit/select");
12
14
  var _excluded = ["children", "className", "clearValue", "cx", "data", "getStyles", "getValue", "hasValue", "isDisabled", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue"];
15
+ 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; }
16
+ 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; }
13
17
  /**
14
18
  * This creates a functional component that `react-select` will use to make the
15
19
  * SingleValue part of the different pickers.
16
20
  */
17
- var makeSingleValue = exports.makeSingleValue = function makeSingleValue(_ref) {
18
- var lang = _ref.lang;
21
+ var makeSingleValue = exports.makeSingleValue =
22
+ // TODO: Make ID required
23
+ function makeSingleValue(_ref) {
24
+ var id = _ref.id,
25
+ lang = _ref.lang;
19
26
  return function (_ref2) {
20
27
  var children = _ref2.children,
21
28
  className = _ref2.className,
@@ -42,9 +49,11 @@ var makeSingleValue = exports.makeSingleValue = function makeSingleValue(_ref) {
42
49
  getStyles: getStyles,
43
50
  getValue: getValue,
44
51
  hasValue: hasValue,
45
- innerProps: {
52
+ innerProps: _objectSpread(_objectSpread({}, (0, _platformFeatureFlags.fg)('platform-dtp_a11y_fix-dsp-23950') ? {
53
+ id: id
54
+ } : {}), {}, {
46
55
  lang: lang
47
- },
56
+ }),
48
57
  isDisabled: isDisabled,
49
58
  isMulti: isMulti,
50
59
  isRtl: isRtl,
@@ -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.16";
26
+ const packageVersion = "17.0.18";
27
27
  const datePickerDefaultProps = {
28
28
  defaultIsOpen: false,
29
29
  defaultValue: '',
@@ -431,9 +431,6 @@ class DatePickerComponent extends Component {
431
431
  }, /*#__PURE__*/React.createElement(Icon, props));
432
432
  }
433
433
  const dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
434
- const SingleValue = makeSingleValue({
435
- lang: this.props.locale
436
- });
437
434
  const selectComponents = {
438
435
  DropdownIndicator: shouldShowCalendarButton ? EmptyComponent : dropDownIcon,
439
436
  // Only use this new container component if the calendar button is shown.
@@ -444,7 +441,7 @@ class DatePickerComponent extends Component {
444
441
  }))
445
442
  } : {}),
446
443
  Menu,
447
- SingleValue,
444
+ // SingleValue is defined in the render because of UI generator limitations
448
445
  ...(!showClearIndicator && {
449
446
  ClearIndicator: EmptyComponent
450
447
  }),
@@ -514,7 +511,76 @@ class DatePickerComponent extends Component {
514
511
  type: "hidden",
515
512
  value: value,
516
513
  "data-testid": testId && `${testId}--input`
517
- }), /*#__PURE__*/React.createElement(Select, _extends({
514
+ }), fg('platform-dtp_a11y_fix-dsp-23950') ? /*#__PURE__*/React.createElement(IdProvider, null, ({
515
+ id: valueId
516
+ }) => /*#__PURE__*/React.createElement(Select, _extends({
517
+ appearance: this.props.appearance,
518
+ "aria-describedby": ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId,
519
+ label: label || undefined
520
+ // eslint-disable-next-line jsx-a11y/no-autofocus
521
+ ,
522
+ autoFocus: autoFocus,
523
+ clearControlLabel: clearControlLabel,
524
+ closeMenuOnSelect: true,
525
+ enableAnimation: false,
526
+ inputId: id,
527
+ inputValue: actualSelectInputValue,
528
+ isDisabled: isDisabled,
529
+ isRequired: isRequired,
530
+ menuIsOpen: menuIsOpen,
531
+ onBlur: this.onSelectBlur,
532
+ onChange: this.onSelectChange,
533
+ onFocus: this.onSelectFocus,
534
+ onInputChange: this.handleSelectInputChange,
535
+ placeholder: getPlaceholder({
536
+ placeholder: this.props.placeholder,
537
+ l10n: this.state.l10n
538
+ })
539
+ // @ts-ignore -- Argument of type 'StylesConfig<OptionType, false, GroupBase<OptionType>>' is not assignable to parameter of type 'StylesConfig<OptionType, boolean, GroupBase<OptionType>>'
540
+ ,
541
+ styles: mergedStyles,
542
+ value: initialValue
543
+ }, selectProps, {
544
+ // For some reason, this and the below `styles` type error _only_ show
545
+ // up when you alter some of the properties in the `selectComponents`
546
+ // object. These errors are still present, and I suspect have always
547
+ // been present, without changing the unrelated code. Ignoring as the
548
+ // component still works as expected despite this error. And also
549
+ // because the select refresh team may solve it later.
550
+ components: {
551
+ ...selectComponents,
552
+ SingleValue: makeSingleValue({
553
+ id: valueId,
554
+ lang: this.props.locale
555
+ })
556
+ }
557
+ // These are below the spread because I don't know what is in
558
+ // selectProps or not and what wil be overwritten
559
+ ,
560
+ isClearable: true,
561
+ isInvalid: isInvalid,
562
+ spacing: spacing,
563
+ testId: testId
564
+ // These aren't part of `Select`'s API, but we're using them here.
565
+ // @ts-ignore -- Property 'calendarContainerRef' does not exist on type 'IntrinsicAttributes & LibraryManagedAttributes<(<Option extends unknown = OptionType, IsMulti extends boolean = false>(props: AtlaskitSelectProps<Option, IsMulti> & { ...; }) => Element), AtlaskitSelectProps<...> & { ...; }>'.
566
+ ,
567
+ calendarContainerRef: calendarProps.calendarContainerRef,
568
+ calendarDisabled: calendarProps.calendarDisabled,
569
+ calendarDisabledDateFilter: calendarProps.calendarDisabledDateFilter,
570
+ calendarLocale: calendarProps.calendarLocale,
571
+ calendarMaxDate: calendarProps.calendarMaxDate,
572
+ calendarMinDate: calendarProps.calendarMinDate,
573
+ calendarRef: calendarProps.calendarRef,
574
+ calendarValue: calendarProps.calendarValue,
575
+ calendarView: calendarProps.calendarView,
576
+ calendarWeekStartDay: calendarProps.calendarWeekStartDay,
577
+ nextMonthLabel: nextMonthLabel,
578
+ onCalendarChange: calendarProps.onCalendarChange,
579
+ onCalendarSelect: calendarProps.onCalendarSelect,
580
+ previousMonthLabel: previousMonthLabel,
581
+ shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay,
582
+ menuInnerWrapper: calendarProps.menuInnerWrapper
583
+ }))) : /*#__PURE__*/React.createElement(Select, _extends({
518
584
  appearance: this.props.appearance,
519
585
  "aria-describedby": ariaDescribedBy,
520
586
  label: label || undefined
@@ -548,7 +614,12 @@ class DatePickerComponent extends Component {
548
614
  // been present, without changing the unrelated code. Ignoring as the
549
615
  // component still works as expected despite this error. And also
550
616
  // because the select refresh team may solve it later.
551
- components: selectComponents
617
+ components: {
618
+ ...selectComponents,
619
+ SingleValue: makeSingleValue({
620
+ lang: this.props.locale
621
+ })
622
+ }
552
623
  // These are below the spread because I don't know what is in
553
624
  // selectProps or not and what wil be overwritten
554
625
  ,
@@ -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.16";
26
+ const packageVersion = "17.0.18";
27
27
  const styles = {
28
28
  pickerContainerStyle: "_kqswh2mm",
29
29
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -384,7 +384,9 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
384
384
  }, /*#__PURE__*/React.createElement(Icon, props));
385
385
  }
386
386
  const dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
387
+ const valueId = useId();
387
388
  const SingleValue = makeSingleValue({
389
+ id: valueId,
388
390
  lang: propLocale
389
391
  });
390
392
  const selectComponents = {
@@ -475,7 +477,7 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
475
477
  "data-testid": testId && `${testId}--input`
476
478
  }), /*#__PURE__*/React.createElement(Select, _extends({
477
479
  appearance: appearance,
478
- "aria-describedby": ariaDescribedBy,
480
+ "aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? `${ariaDescribedBy} ${valueId}` : valueId : ariaDescribedBy,
479
481
  label: label || undefined
480
482
  // eslint-disable-next-line jsx-a11y/no-autofocus
481
483
  ,
@@ -496,8 +498,8 @@ const DatePicker = /*#__PURE__*/forwardRef((props, forwardedRef) => {
496
498
  placeholder: placeholder,
497
499
  l10n: l10n
498
500
  })
499
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
500
501
  // @ts-ignore -- Type 'OptionType' is not assignable to type '{ label: string; value: string; }'
502
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
501
503
  ,
502
504
  styles: mergedStyles,
503
505
  value: initialValue
@@ -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.16";
22
+ const packageVersion = "17.0.18";
23
23
  const compiledStyles = {
24
24
  datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
25
25
  timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
@@ -24,7 +24,7 @@ const DatePicker = componentWithCondition(
24
24
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
25
25
  () => fg('dst-date-picker-use-functional-component'), DatePickerNew, DatePickerOld);
26
26
  const packageName = "@atlaskit/datetime-picker";
27
- const packageVersion = "17.0.16";
27
+ const packageVersion = "17.0.18";
28
28
  const analyticsAttributes = {
29
29
  componentName: 'dateTimePicker',
30
30
  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 = "17.0.16";
14
+ const packageVersion = "17.0.18";
15
15
  const menuStyles = {
16
16
  /* Need to remove default absolute positioning as that causes issues with position fixed */
17
17
  position: 'static',
@@ -1,12 +1,16 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
3
4
  import { components } from '@atlaskit/select';
4
5
 
5
6
  /**
6
7
  * This creates a functional component that `react-select` will use to make the
7
8
  * SingleValue part of the different pickers.
8
9
  */
9
- export const makeSingleValue = ({
10
+ export const makeSingleValue =
11
+ // TODO: Make ID required
12
+ ({
13
+ id,
10
14
  lang
11
15
  }) => ({
12
16
  children,
@@ -36,6 +40,9 @@ export const makeSingleValue = ({
36
40
  getValue: getValue,
37
41
  hasValue: hasValue,
38
42
  innerProps: {
43
+ ...(fg('platform-dtp_a11y_fix-dsp-23950') ? {
44
+ id
45
+ } : {}),
39
46
  lang
40
47
  },
41
48
  isDisabled: isDisabled,
@@ -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.16";
35
+ var packageVersion = "17.0.18";
36
36
  var datePickerDefaultProps = {
37
37
  defaultIsOpen: false,
38
38
  defaultValue: '',
@@ -448,9 +448,6 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
448
448
  };
449
449
  }
450
450
  var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
451
- var SingleValue = makeSingleValue({
452
- lang: this.props.locale
453
- });
454
451
  var selectComponents = _objectSpread(_objectSpread(_objectSpread({
455
452
  DropdownIndicator: shouldShowCalendarButton ? EmptyComponent : dropDownIcon
456
453
  }, shouldShowCalendarButton ? {
@@ -460,8 +457,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
460
457
  }));
461
458
  }
462
459
  } : {}), {}, {
463
- Menu: Menu,
464
- SingleValue: SingleValue
460
+ Menu: Menu
465
461
  }, !showClearIndicator && {
466
462
  ClearIndicator: EmptyComponent
467
463
  }), selectProps.components);
@@ -528,7 +524,76 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
528
524
  type: "hidden",
529
525
  value: value,
530
526
  "data-testid": testId && "".concat(testId, "--input")
531
- }), /*#__PURE__*/React.createElement(Select, _extends({
527
+ }), fg('platform-dtp_a11y_fix-dsp-23950') ? /*#__PURE__*/React.createElement(IdProvider, null, function (_ref3) {
528
+ var valueId = _ref3.id;
529
+ return /*#__PURE__*/React.createElement(Select, _extends({
530
+ appearance: _this2.props.appearance,
531
+ "aria-describedby": ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId,
532
+ label: label || undefined
533
+ // eslint-disable-next-line jsx-a11y/no-autofocus
534
+ ,
535
+ autoFocus: autoFocus,
536
+ clearControlLabel: clearControlLabel,
537
+ closeMenuOnSelect: true,
538
+ enableAnimation: false,
539
+ inputId: id,
540
+ inputValue: actualSelectInputValue,
541
+ isDisabled: isDisabled,
542
+ isRequired: isRequired,
543
+ menuIsOpen: menuIsOpen,
544
+ onBlur: _this2.onSelectBlur,
545
+ onChange: _this2.onSelectChange,
546
+ onFocus: _this2.onSelectFocus,
547
+ onInputChange: _this2.handleSelectInputChange,
548
+ placeholder: getPlaceholder({
549
+ placeholder: _this2.props.placeholder,
550
+ l10n: _this2.state.l10n
551
+ })
552
+ // @ts-ignore -- Argument of type 'StylesConfig<OptionType, false, GroupBase<OptionType>>' is not assignable to parameter of type 'StylesConfig<OptionType, boolean, GroupBase<OptionType>>'
553
+ ,
554
+ styles: mergedStyles,
555
+ value: initialValue
556
+ }, selectProps, {
557
+ // For some reason, this and the below `styles` type error _only_ show
558
+ // up when you alter some of the properties in the `selectComponents`
559
+ // object. These errors are still present, and I suspect have always
560
+ // been present, without changing the unrelated code. Ignoring as the
561
+ // component still works as expected despite this error. And also
562
+ // because the select refresh team may solve it later.
563
+ components: _objectSpread(_objectSpread({}, selectComponents), {}, {
564
+ SingleValue: makeSingleValue({
565
+ id: valueId,
566
+ lang: _this2.props.locale
567
+ })
568
+ })
569
+ // These are below the spread because I don't know what is in
570
+ // selectProps or not and what wil be overwritten
571
+ ,
572
+ isClearable: true,
573
+ isInvalid: isInvalid,
574
+ spacing: spacing,
575
+ testId: testId
576
+ // These aren't part of `Select`'s API, but we're using them here.
577
+ // @ts-ignore -- Property 'calendarContainerRef' does not exist on type 'IntrinsicAttributes & LibraryManagedAttributes<(<Option extends unknown = OptionType, IsMulti extends boolean = false>(props: AtlaskitSelectProps<Option, IsMulti> & { ...; }) => Element), AtlaskitSelectProps<...> & { ...; }>'.
578
+ ,
579
+ calendarContainerRef: calendarProps.calendarContainerRef,
580
+ calendarDisabled: calendarProps.calendarDisabled,
581
+ calendarDisabledDateFilter: calendarProps.calendarDisabledDateFilter,
582
+ calendarLocale: calendarProps.calendarLocale,
583
+ calendarMaxDate: calendarProps.calendarMaxDate,
584
+ calendarMinDate: calendarProps.calendarMinDate,
585
+ calendarRef: calendarProps.calendarRef,
586
+ calendarValue: calendarProps.calendarValue,
587
+ calendarView: calendarProps.calendarView,
588
+ calendarWeekStartDay: calendarProps.calendarWeekStartDay,
589
+ nextMonthLabel: nextMonthLabel,
590
+ onCalendarChange: calendarProps.onCalendarChange,
591
+ onCalendarSelect: calendarProps.onCalendarSelect,
592
+ previousMonthLabel: previousMonthLabel,
593
+ shouldSetFocusOnCurrentDay: calendarProps.shouldSetFocusOnCurrentDay,
594
+ menuInnerWrapper: calendarProps.menuInnerWrapper
595
+ }));
596
+ }) : /*#__PURE__*/React.createElement(Select, _extends({
532
597
  appearance: this.props.appearance,
533
598
  "aria-describedby": ariaDescribedBy,
534
599
  label: label || undefined
@@ -562,7 +627,11 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
562
627
  // been present, without changing the unrelated code. Ignoring as the
563
628
  // component still works as expected despite this error. And also
564
629
  // because the select refresh team may solve it later.
565
- components: selectComponents
630
+ components: _objectSpread(_objectSpread({}, selectComponents), {}, {
631
+ SingleValue: makeSingleValue({
632
+ lang: this.props.locale
633
+ })
634
+ })
566
635
  // These are below the spread because I don't know what is in
567
636
  // selectProps or not and what wil be overwritten
568
637
  ,
@@ -591,8 +660,8 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
591
660
  menuInnerWrapper: calendarProps.menuInnerWrapper
592
661
  })), shouldShowCalendarButton && !isDisabled ? /*#__PURE__*/React.createElement(IdProvider, {
593
662
  prefix: "open-calendar-label--"
594
- }, function (_ref3) {
595
- var openCalendarLabelId = _ref3.id;
663
+ }, function (_ref4) {
664
+ var openCalendarLabelId = _ref4.id;
596
665
  return /*#__PURE__*/React.createElement(Box, {
597
666
  xcss: cx(styles.iconContainerStyles, value && !hideIcon ? styles.iconSpacingWithClearButtonStyles : styles.iconSpacingWithoutClearButtonStyles)
598
667
  }, /*#__PURE__*/React.createElement(IconButton, {
@@ -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.16";
32
+ var packageVersion = "17.0.18";
33
33
  var styles = {
34
34
  pickerContainerStyle: "_kqswh2mm",
35
35
  dropdownIndicatorStyles: "_1ul91k8s _1tke1k8s _1e0c1txw _4cvr1h6o _1bah1h6o",
@@ -451,7 +451,9 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
451
451
  };
452
452
  }
453
453
  var dropDownIcon = appearance === 'subtle' || hideIcon || showClearIndicator ? null : clearIndicator;
454
+ var valueId = useId();
454
455
  var SingleValue = makeSingleValue({
456
+ id: valueId,
455
457
  lang: propLocale
456
458
  });
457
459
  var selectComponents = _objectSpread(_objectSpread(_objectSpread({}, selectProps.components), {}, {
@@ -539,7 +541,7 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
539
541
  "data-testid": testId && "".concat(testId, "--input")
540
542
  }), /*#__PURE__*/React.createElement(Select, _extends({
541
543
  appearance: appearance,
542
- "aria-describedby": ariaDescribedBy,
544
+ "aria-describedby": fg('platform-dtp_a11y_fix-dsp-23950') ? ariaDescribedBy ? "".concat(ariaDescribedBy, " ").concat(valueId) : valueId : ariaDescribedBy,
543
545
  label: label || undefined
544
546
  // eslint-disable-next-line jsx-a11y/no-autofocus
545
547
  ,
@@ -560,8 +562,8 @@ var DatePicker = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
560
562
  placeholder: placeholder,
561
563
  l10n: l10n
562
564
  })
563
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
564
565
  // @ts-ignore -- Type 'OptionType' is not assignable to type '{ label: string; value: string; }'
566
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
565
567
  ,
566
568
  styles: mergedStyles,
567
569
  value: initialValue
@@ -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.16";
33
+ var packageVersion = "17.0.18";
34
34
  var compiledStyles = {
35
35
  datePickerContainerStyles: "_i0dl1ssb _16jlkb7n _1o9zidpf",
36
36
  timePickerContainerStyles: "_i0dl1ssb _16jlkb7n",
@@ -33,7 +33,7 @@ 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 = "17.0.16";
36
+ var packageVersion = "17.0.18";
37
37
  var analyticsAttributes = {
38
38
  componentName: 'dateTimePicker',
39
39
  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 = "17.0.16";
20
+ var packageVersion = "17.0.18";
21
21
  var menuStyles = {
22
22
  /* Need to remove default absolute positioning as that causes issues with position fixed */
23
23
  position: 'static',
@@ -1,15 +1,22 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
4
  var _excluded = ["children", "className", "clearValue", "cx", "data", "getStyles", "getValue", "hasValue", "isDisabled", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue"];
5
+ 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; }
6
+ 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) { _defineProperty(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; }
4
7
  import React from 'react';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
5
9
  import { components } from '@atlaskit/select';
6
10
 
7
11
  /**
8
12
  * This creates a functional component that `react-select` will use to make the
9
13
  * SingleValue part of the different pickers.
10
14
  */
11
- export var makeSingleValue = function makeSingleValue(_ref) {
12
- var lang = _ref.lang;
15
+ export var makeSingleValue =
16
+ // TODO: Make ID required
17
+ function makeSingleValue(_ref) {
18
+ var id = _ref.id,
19
+ lang = _ref.lang;
13
20
  return function (_ref2) {
14
21
  var children = _ref2.children,
15
22
  className = _ref2.className,
@@ -36,9 +43,11 @@ export var makeSingleValue = function makeSingleValue(_ref) {
36
43
  getStyles: getStyles,
37
44
  getValue: getValue,
38
45
  hasValue: hasValue,
39
- innerProps: {
46
+ innerProps: _objectSpread(_objectSpread({}, fg('platform-dtp_a11y_fix-dsp-23950') ? {
47
+ id: id
48
+ } : {}), {}, {
40
49
  lang: lang
41
- },
50
+ }),
42
51
  isDisabled: isDisabled,
43
52
  isMulti: isMulti,
44
53
  isRtl: isRtl,
@@ -1,20 +1,4 @@
1
- declare const DatePicker: import("react").FC<Omit<Omit<import("./date-picker-fc").DatePickerProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & Omit<Omit<Pick<Omit<{
2
- defaultIsOpen: boolean;
3
- defaultValue: string;
4
- disabled: string[];
5
- disabledDateFilter: (_: string) => boolean;
6
- locale: string;
7
- onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
8
- onChange: (_value: string) => void;
9
- onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
10
- } & import("..").DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "icon" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "autoFocus" | "id" | "aria-describedby" | "value" | "testId" | "menuInnerWrapper" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & {
11
- disabled?: string[] | undefined;
12
- defaultValue?: string | undefined;
13
- onFocus?: (((_event: React.FocusEvent<HTMLInputElement>) => void) & import("react").FocusEventHandler<HTMLInputElement>) | undefined;
14
- onBlur?: (((_event: React.FocusEvent<HTMLInputElement>) => void) & import("react").FocusEventHandler<HTMLInputElement>) | undefined;
15
- onChange?: (((_value: string) => void) & ((value: string) => void)) | undefined;
16
- disabledDateFilter?: (((_: string) => boolean) & ((date: string) => boolean)) | undefined;
17
- locale?: string | undefined;
18
- defaultIsOpen?: boolean | undefined;
19
- } & {} & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<any>>;
1
+ import type { FC, RefAttributes } from 'react';
2
+ import type { DatePickerProps } from '../index';
3
+ declare const DatePicker: FC<React.PropsWithoutRef<DatePickerProps> & RefAttributes<HTMLElement>>;
20
4
  export default DatePicker;
@@ -4,6 +4,7 @@ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
4
4
  * This creates a functional component that `react-select` will use to make the
5
5
  * SingleValue part of the different pickers.
6
6
  */
7
- export declare const makeSingleValue: ({ lang }: {
7
+ export declare const makeSingleValue: ({ id, lang }: {
8
+ id?: string;
8
9
  lang: string;
9
10
  }) => ({ children, className, clearValue, cx, data, getStyles, getValue, hasValue, isDisabled, isMulti, isRtl, options, selectOption, selectProps, setValue, ...rest }: SingleValueProps<OptionType, false>) => React.JSX.Element;
@@ -1,20 +1,4 @@
1
- declare const DatePicker: import("react").FC<Omit<Omit<import("./date-picker-fc").DatePickerProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & Omit<Omit<Pick<Omit<{
2
- defaultIsOpen: boolean;
3
- defaultValue: string;
4
- disabled: string[];
5
- disabledDateFilter: (_: string) => boolean;
6
- locale: string;
7
- onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
8
- onChange: (_value: string) => void;
9
- onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
10
- } & import("..").DatePickerProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "label" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "icon" | "appearance" | "isDisabled" | "innerProps" | "selectProps" | "autoFocus" | "id" | "aria-describedby" | "value" | "testId" | "menuInnerWrapper" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "clearControlLabel" | "isInvalid" | "isRequired" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & {
11
- disabled?: string[] | undefined;
12
- defaultValue?: string | undefined;
13
- onFocus?: (((_event: React.FocusEvent<HTMLInputElement>) => void) & import("react").FocusEventHandler<HTMLInputElement>) | undefined;
14
- onBlur?: (((_event: React.FocusEvent<HTMLInputElement>) => void) & import("react").FocusEventHandler<HTMLInputElement>) | undefined;
15
- onChange?: (((_value: string) => void) & ((value: string) => void)) | undefined;
16
- disabledDateFilter?: (((_: string) => boolean) & ((date: string) => boolean)) | undefined;
17
- locale?: string | undefined;
18
- defaultIsOpen?: boolean | undefined;
19
- } & {} & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & import("react").RefAttributes<any>, "ref"> & import("react").RefAttributes<any>>;
1
+ import type { FC, RefAttributes } from 'react';
2
+ import type { DatePickerProps } from '../index';
3
+ declare const DatePicker: FC<React.PropsWithoutRef<DatePickerProps> & RefAttributes<HTMLElement>>;
20
4
  export default DatePicker;
@@ -4,6 +4,7 @@ import { type OptionType, type SingleValueProps } from '@atlaskit/select';
4
4
  * This creates a functional component that `react-select` will use to make the
5
5
  * SingleValue part of the different pickers.
6
6
  */
7
- export declare const makeSingleValue: ({ lang }: {
7
+ export declare const makeSingleValue: ({ id, lang }: {
8
+ id?: string;
8
9
  lang: string;
9
10
  }) => ({ 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": "17.0.17",
3
+ "version": "17.1.0",
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/"
@@ -33,11 +33,11 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
- "@atlaskit/button": "^23.4.0",
36
+ "@atlaskit/button": "^23.5.0",
37
37
  "@atlaskit/calendar": "^17.1.0",
38
38
  "@atlaskit/css": "^0.14.0",
39
39
  "@atlaskit/ds-lib": "^5.1.0",
40
- "@atlaskit/icon": "^28.3.0",
40
+ "@atlaskit/icon": "^28.5.0",
41
41
  "@atlaskit/layering": "^3.0.0",
42
42
  "@atlaskit/locale": "^3.0.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -70,6 +70,7 @@
70
70
  "@atlaskit/ssr": "workspace:^",
71
71
  "@atlaskit/textfield": "^8.0.0",
72
72
  "@atlaskit/toggle": "^15.1.0",
73
+ "@atlassian/feature-flags-test-utils": "^0.3.0",
73
74
  "@atlassian/ssr-tests": "^0.3.0",
74
75
  "@testing-library/react": "^13.4.0",
75
76
  "@testing-library/user-event": "^14.4.3",
@@ -112,6 +113,9 @@
112
113
  },
113
114
  "platform-visual-refresh-icons": {
114
115
  "type": "boolean"
116
+ },
117
+ "platform-dtp_a11y_fix-dsp-23950": {
118
+ "type": "boolean"
115
119
  }
116
120
  },
117
121
  "homepage": "https://atlassian.design/components/datetime-picker/"