@atlaskit/datetime-picker 15.2.0 → 15.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 15.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#132971](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/132971)
14
+ [`eca12e4531487`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eca12e4531487) -
15
+ add isRequired prop
16
+
17
+ ### Patch Changes
18
+
19
+ - [#150734](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150734)
20
+ [`8a55d1695e74a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8a55d1695e74a) -
21
+ Use proper icon color for calendar button.
22
+
3
23
  ## 15.2.0
4
24
 
5
25
  ### Minor Changes
@@ -43,7 +43,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
43
43
  // version very soon from converting this to functional. And also React 18 is on
44
44
  // the horizon
45
45
  var packageName = "@atlaskit/datetime-picker";
46
- var packageVersion = "15.2.0";
46
+ var packageVersion = "15.3.1";
47
47
  var datePickerDefaultProps = {
48
48
  defaultIsOpen: false,
49
49
  defaultValue: '',
@@ -94,6 +94,8 @@ var calendarButtonStyles = (0, _primitives.xcss)({
94
94
  backgroundColor: 'color.background.neutral.subtle.pressed'
95
95
  }
96
96
  });
97
+
98
+ // eslint-disable-next-line @repo/internal/react/no-class-components
97
99
  var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/function (_Component) {
98
100
  (0, _inherits2.default)(DatePickerComponent, _Component);
99
101
  var _super = _createSuper(DatePickerComponent);
@@ -438,6 +440,8 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
438
440
  isDisabled = _this$props$isDisable === void 0 ? false : _this$props$isDisable,
439
441
  _this$props$isInvalid = _this$props.isInvalid,
440
442
  isInvalid = _this$props$isInvalid === void 0 ? false : _this$props$isInvalid,
443
+ _this$props$isRequire = _this$props.isRequired,
444
+ isRequired = _this$props$isRequire === void 0 ? false : _this$props$isRequire,
441
445
  _this$props$label = _this$props.label,
442
446
  label = _this$props$label === void 0 ? '' : _this$props$label,
443
447
  locale = _this$props.locale,
@@ -555,6 +559,7 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
555
559
  inputId: id,
556
560
  inputValue: actualSelectInputValue,
557
561
  isDisabled: isDisabled,
562
+ isRequired: isRequired,
558
563
  menuIsOpen: menuIsOpen,
559
564
  onBlur: this.onSelectBlur,
560
565
  onChange: this.onSelectChange,
@@ -614,7 +619,8 @@ var DatePickerComponent = exports.DatePickerWithoutAnalytics = /*#__PURE__*/func
614
619
  padding: "space.050",
615
620
  xcss: calendarButtonStyles
616
621
  }), (0, _react2.jsx)(_calendar.default, {
617
- label: ""
622
+ label: "",
623
+ primaryColor: "var(--ds-icon, #44546F)"
618
624
  })));
619
625
  }) : null)
620
626
  );
@@ -32,7 +32,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
32
32
  * @jsx jsx
33
33
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "15.2.0";
35
+ var packageVersion = "15.3.1";
36
36
  // Make DatePicker 50% the width of DateTimePicker
37
37
  // If rendering an icon container, shrink the TimePicker
38
38
  var datePickerContainerStyles = (0, _react2.css)({
@@ -277,6 +277,8 @@ var DateTimePickerComponent = exports.DateTimePickerWithoutAnalytics = /*#__PURE
277
277
  isDisabled = _this$props7$isDisabl === void 0 ? false : _this$props7$isDisabl,
278
278
  _this$props7$isInvali = _this$props7.isInvalid,
279
279
  isInvalid = _this$props7$isInvali === void 0 ? false : _this$props7$isInvali,
280
+ _this$props7$isRequir = _this$props7.isRequired,
281
+ isRequired = _this$props7$isRequir === void 0 ? false : _this$props7$isRequir,
280
282
  _this$props7$locale = _this$props7.locale,
281
283
  locale = _this$props7$locale === void 0 ? 'en-US' : _this$props7$locale,
282
284
  _this$props7$name = _this$props7.name,
@@ -337,6 +339,7 @@ var DateTimePickerComponent = exports.DateTimePickerWithoutAnalytics = /*#__PURE
337
339
  innerProps: datePickerProps.innerProps,
338
340
  isDisabled: datePickerProps.isDisabled || isDisabled,
339
341
  isInvalid: datePickerProps.isInvalid || isInvalid,
342
+ isRequired: datePickerProps.isRequired || isRequired,
340
343
  isOpen: datePickerProps.isOpen,
341
344
  label: datePickerLabel,
342
345
  locale: datePickerProps.locale || locale,
@@ -371,6 +374,7 @@ var DateTimePickerComponent = exports.DateTimePickerWithoutAnalytics = /*#__PURE
371
374
  isDisabled: timePickerProps.isDisabled || isDisabled,
372
375
  isInvalid: timePickerProps.isInvalid || isInvalid,
373
376
  isOpen: timePickerProps.isOpen,
377
+ isRequired: timePickerProps.isRequired || isRequired,
374
378
  label: timePickerLabel,
375
379
  locale: timePickerProps.locale || locale,
376
380
  name: timePickerProps.name,
@@ -27,7 +27,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
27
27
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
28
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29
29
  var packageName = "@atlaskit/datetime-picker";
30
- var packageVersion = "15.2.0";
30
+ var packageVersion = "15.3.1";
31
31
  var menuStyles = {
32
32
  /* Need to remove default absolute positioning as that causes issues with position fixed */
33
33
  position: 'static',
@@ -72,6 +72,8 @@ var TimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
72
72
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
73
73
  _ref$isInvalid = _ref.isInvalid,
74
74
  isInvalid = _ref$isInvalid === void 0 ? false : _ref$isInvalid,
75
+ _ref$isRequired = _ref.isRequired,
76
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
75
77
  providedIsOpen = _ref.isOpen,
76
78
  _ref$label = _ref.label,
77
79
  label = _ref$label === void 0 ? '' : _ref$label,
@@ -319,6 +321,7 @@ var TimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
319
321
  inputId: id,
320
322
  isClearable: true,
321
323
  isDisabled: isDisabled,
324
+ isRequired: isRequired,
322
325
  menuIsOpen: isOpen && !isDisabled,
323
326
  menuPlacement: "auto",
324
327
  openMenuOnFocus: true,
@@ -26,7 +26,7 @@ import { Menu } from '../internal/menu';
26
26
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
27
27
  import { makeSingleValue } from '../internal/single-value';
28
28
  const packageName = "@atlaskit/datetime-picker";
29
- const packageVersion = "15.2.0";
29
+ const packageVersion = "15.3.1";
30
30
  const datePickerDefaultProps = {
31
31
  defaultIsOpen: false,
32
32
  defaultValue: '',
@@ -75,6 +75,8 @@ const calendarButtonStyles = xcss({
75
75
  backgroundColor: 'color.background.neutral.subtle.pressed'
76
76
  }
77
77
  });
78
+
79
+ // eslint-disable-next-line @repo/internal/react/no-class-components
78
80
  class DatePickerComponent extends Component {
79
81
  constructor(props) {
80
82
  var _this$props$selectPro2;
@@ -418,6 +420,7 @@ class DatePickerComponent extends Component {
418
420
  inputLabelId,
419
421
  isDisabled = false,
420
422
  isInvalid = false,
423
+ isRequired = false,
421
424
  label = '',
422
425
  locale,
423
426
  maxDate,
@@ -535,6 +538,7 @@ class DatePickerComponent extends Component {
535
538
  inputId: id,
536
539
  inputValue: actualSelectInputValue,
537
540
  isDisabled: isDisabled,
541
+ isRequired: isRequired,
538
542
  menuIsOpen: menuIsOpen,
539
543
  onBlur: this.onSelectBlur,
540
544
  onChange: this.onSelectChange,
@@ -591,7 +595,8 @@ class DatePickerComponent extends Component {
591
595
  padding: "space.050",
592
596
  xcss: calendarButtonStyles
593
597
  }), jsx(CalendarIcon, {
594
- label: ""
598
+ label: "",
599
+ primaryColor: "var(--ds-icon, #44546F)"
595
600
  })))) : null)
596
601
  );
597
602
  }
@@ -18,7 +18,7 @@ import { convertTokens } from '../internal/parse-tokens';
18
18
  import DatePicker from './date-picker';
19
19
  import TimePicker from './time-picker';
20
20
  const packageName = "@atlaskit/datetime-picker";
21
- const packageVersion = "15.2.0";
21
+ const packageVersion = "15.3.1";
22
22
  // Make DatePicker 50% the width of DateTimePicker
23
23
  // If rendering an icon container, shrink the TimePicker
24
24
  const datePickerContainerStyles = css({
@@ -240,6 +240,7 @@ class DateTimePickerComponent extends React.Component {
240
240
  innerProps = {},
241
241
  isDisabled = false,
242
242
  isInvalid = false,
243
+ isRequired = false,
243
244
  locale = 'en-US',
244
245
  name = '',
245
246
  spacing = 'default',
@@ -301,6 +302,7 @@ class DateTimePickerComponent extends React.Component {
301
302
  innerProps: datePickerProps.innerProps,
302
303
  isDisabled: datePickerProps.isDisabled || isDisabled,
303
304
  isInvalid: datePickerProps.isInvalid || isInvalid,
305
+ isRequired: datePickerProps.isRequired || isRequired,
304
306
  isOpen: datePickerProps.isOpen,
305
307
  label: datePickerLabel,
306
308
  locale: datePickerProps.locale || locale,
@@ -335,6 +337,7 @@ class DateTimePickerComponent extends React.Component {
335
337
  isDisabled: timePickerProps.isDisabled || isDisabled,
336
338
  isInvalid: timePickerProps.isInvalid || isInvalid,
337
339
  isOpen: timePickerProps.isOpen,
340
+ isRequired: timePickerProps.isRequired || isRequired,
338
341
  label: timePickerLabel,
339
342
  locale: timePickerProps.locale || locale,
340
343
  name: timePickerProps.name,
@@ -11,7 +11,7 @@ import parseTime from '../internal/parse-time';
11
11
  import { convertTokens } from '../internal/parse-tokens';
12
12
  import { makeSingleValue } from '../internal/single-value';
13
13
  const packageName = "@atlaskit/datetime-picker";
14
- const packageVersion = "15.2.0";
14
+ const packageVersion = "15.3.1";
15
15
  const menuStyles = {
16
16
  /* Need to remove default absolute positioning as that causes issues with position fixed */
17
17
  position: 'static',
@@ -47,6 +47,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
47
47
  innerProps = {},
48
48
  isDisabled = false,
49
49
  isInvalid = false,
50
+ isRequired = false,
50
51
  isOpen: providedIsOpen,
51
52
  label = '',
52
53
  locale = 'en-US',
@@ -267,6 +268,7 @@ const TimePicker = /*#__PURE__*/forwardRef(({
267
268
  inputId: id,
268
269
  isClearable: true,
269
270
  isDisabled: isDisabled,
271
+ isRequired: isRequired,
270
272
  menuIsOpen: isOpen && !isDisabled,
271
273
  menuPlacement: "auto",
272
274
  openMenuOnFocus: true,
@@ -36,7 +36,7 @@ import { Menu } from '../internal/menu';
36
36
  import { getSafeCalendarValue, getShortISOString } from '../internal/parse-date';
37
37
  import { makeSingleValue } from '../internal/single-value';
38
38
  var packageName = "@atlaskit/datetime-picker";
39
- var packageVersion = "15.2.0";
39
+ var packageVersion = "15.3.1";
40
40
  var datePickerDefaultProps = {
41
41
  defaultIsOpen: false,
42
42
  defaultValue: '',
@@ -87,6 +87,8 @@ var calendarButtonStyles = xcss({
87
87
  backgroundColor: 'color.background.neutral.subtle.pressed'
88
88
  }
89
89
  });
90
+
91
+ // eslint-disable-next-line @repo/internal/react/no-class-components
90
92
  var DatePickerComponent = /*#__PURE__*/function (_Component) {
91
93
  _inherits(DatePickerComponent, _Component);
92
94
  var _super = _createSuper(DatePickerComponent);
@@ -431,6 +433,8 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
431
433
  isDisabled = _this$props$isDisable === void 0 ? false : _this$props$isDisable,
432
434
  _this$props$isInvalid = _this$props.isInvalid,
433
435
  isInvalid = _this$props$isInvalid === void 0 ? false : _this$props$isInvalid,
436
+ _this$props$isRequire = _this$props.isRequired,
437
+ isRequired = _this$props$isRequire === void 0 ? false : _this$props$isRequire,
434
438
  _this$props$label = _this$props.label,
435
439
  label = _this$props$label === void 0 ? '' : _this$props$label,
436
440
  locale = _this$props.locale,
@@ -548,6 +552,7 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
548
552
  inputId: id,
549
553
  inputValue: actualSelectInputValue,
550
554
  isDisabled: isDisabled,
555
+ isRequired: isRequired,
551
556
  menuIsOpen: menuIsOpen,
552
557
  onBlur: this.onSelectBlur,
553
558
  onChange: this.onSelectChange,
@@ -607,7 +612,8 @@ var DatePickerComponent = /*#__PURE__*/function (_Component) {
607
612
  padding: "space.050",
608
613
  xcss: calendarButtonStyles
609
614
  }), jsx(CalendarIcon, {
610
- label: ""
615
+ label: "",
616
+ primaryColor: "var(--ds-icon, #44546F)"
611
617
  })));
612
618
  }) : null)
613
619
  );
@@ -28,7 +28,7 @@ import { convertTokens } from '../internal/parse-tokens';
28
28
  import DatePicker from './date-picker';
29
29
  import TimePicker from './time-picker';
30
30
  var packageName = "@atlaskit/datetime-picker";
31
- var packageVersion = "15.2.0";
31
+ var packageVersion = "15.3.1";
32
32
  // Make DatePicker 50% the width of DateTimePicker
33
33
  // If rendering an icon container, shrink the TimePicker
34
34
  var datePickerContainerStyles = css({
@@ -273,6 +273,8 @@ var DateTimePickerComponent = /*#__PURE__*/function (_React$Component) {
273
273
  isDisabled = _this$props7$isDisabl === void 0 ? false : _this$props7$isDisabl,
274
274
  _this$props7$isInvali = _this$props7.isInvalid,
275
275
  isInvalid = _this$props7$isInvali === void 0 ? false : _this$props7$isInvali,
276
+ _this$props7$isRequir = _this$props7.isRequired,
277
+ isRequired = _this$props7$isRequir === void 0 ? false : _this$props7$isRequir,
276
278
  _this$props7$locale = _this$props7.locale,
277
279
  locale = _this$props7$locale === void 0 ? 'en-US' : _this$props7$locale,
278
280
  _this$props7$name = _this$props7.name,
@@ -333,6 +335,7 @@ var DateTimePickerComponent = /*#__PURE__*/function (_React$Component) {
333
335
  innerProps: datePickerProps.innerProps,
334
336
  isDisabled: datePickerProps.isDisabled || isDisabled,
335
337
  isInvalid: datePickerProps.isInvalid || isInvalid,
338
+ isRequired: datePickerProps.isRequired || isRequired,
336
339
  isOpen: datePickerProps.isOpen,
337
340
  label: datePickerLabel,
338
341
  locale: datePickerProps.locale || locale,
@@ -367,6 +370,7 @@ var DateTimePickerComponent = /*#__PURE__*/function (_React$Component) {
367
370
  isDisabled: timePickerProps.isDisabled || isDisabled,
368
371
  isInvalid: timePickerProps.isInvalid || isInvalid,
369
372
  isOpen: timePickerProps.isOpen,
373
+ isRequired: timePickerProps.isRequired || isRequired,
370
374
  label: timePickerLabel,
371
375
  locale: timePickerProps.locale || locale,
372
376
  name: timePickerProps.name,
@@ -17,7 +17,7 @@ import parseTime from '../internal/parse-time';
17
17
  import { convertTokens } from '../internal/parse-tokens';
18
18
  import { makeSingleValue } from '../internal/single-value';
19
19
  var packageName = "@atlaskit/datetime-picker";
20
- var packageVersion = "15.2.0";
20
+ var packageVersion = "15.3.1";
21
21
  var menuStyles = {
22
22
  /* Need to remove default absolute positioning as that causes issues with position fixed */
23
23
  position: 'static',
@@ -62,6 +62,8 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
62
62
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
63
63
  _ref$isInvalid = _ref.isInvalid,
64
64
  isInvalid = _ref$isInvalid === void 0 ? false : _ref$isInvalid,
65
+ _ref$isRequired = _ref.isRequired,
66
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
65
67
  providedIsOpen = _ref.isOpen,
66
68
  _ref$label = _ref.label,
67
69
  label = _ref$label === void 0 ? '' : _ref$label,
@@ -309,6 +311,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
309
311
  inputId: id,
310
312
  isClearable: true,
311
313
  isDisabled: isDisabled,
314
+ isRequired: isRequired,
312
315
  menuIsOpen: isOpen && !isDisabled,
313
316
  menuPlacement: "auto",
314
317
  openMenuOnFocus: true,
@@ -97,7 +97,7 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
97
97
  onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
98
98
  onChange: (_value: string) => void;
99
99
  onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
100
- } & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "id" | "aria-describedby" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & Partial<Pick<Omit<{
100
+ } & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "id" | "aria-describedby" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & Partial<Pick<Omit<{
101
101
  defaultIsOpen: boolean;
102
102
  defaultValue: string;
103
103
  disabled: string[];
@@ -115,5 +115,5 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
115
115
  onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
116
116
  onChange: (_value: string) => void;
117
117
  onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
118
- }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<any>>;
118
+ }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<any>>;
119
119
  export default DatePicker;
@@ -52,5 +52,5 @@ export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
52
52
  * - [Code](https://atlassian.design/components/datetime-picker/code)
53
53
  * - [Usage](https://atlassian.design/components/datetime-picker/usage)
54
54
  */
55
- declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
55
+ declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
56
56
  export default DateTimePicker;
@@ -9,5 +9,5 @@ import { type TimePickerBaseProps } from '../types';
9
9
  * - [Code](https://atlassian.design/components/datetime-picker/time-picker/code)
10
10
  * - [Usage](https://atlassian.design/components/datetime-picker/time-picker/usage)
11
11
  */
12
- declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<unknown>>;
12
+ declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<unknown>>;
13
13
  export default TimePicker;
@@ -122,6 +122,10 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
122
122
  * Set if the picker is open.
123
123
  */
124
124
  isOpen?: boolean;
125
+ /**
126
+ * Sets the aria-required passed down to the combobox in the select component.
127
+ */
128
+ isRequired?: boolean;
125
129
  /**
126
130
  * The name of the field.
127
131
  */
@@ -299,6 +303,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
299
303
  * Set if the dropdown is open. Will be `false` if not provided.
300
304
  */
301
305
  isOpen?: boolean;
306
+ /**
307
+ * Sets the aria-required passed down to the combobox in the select component.
308
+ */
309
+ isRequired?: boolean;
302
310
  /**
303
311
  * Accessible name for the Time Picker Select, rendered as `aria-label`. This will override any other method of providing a label.
304
312
  */
@@ -411,6 +419,10 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
411
419
  * Set if the field is disabled.
412
420
  */
413
421
  isDisabled?: boolean;
422
+ /**
423
+ * Sets the aria-required passed down to the combobox in the select component.
424
+ */
425
+ isRequired?: boolean;
414
426
  /**
415
427
  * The name of the field.
416
428
  */
@@ -97,7 +97,7 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
97
97
  onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
98
98
  onChange: (_value: string) => void;
99
99
  onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
100
- } & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "id" | "aria-describedby" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & Partial<Pick<Omit<{
100
+ } & DatePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "id" | "aria-describedby" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & Partial<Pick<Omit<{
101
101
  defaultIsOpen: boolean;
102
102
  defaultValue: string;
103
103
  disabled: string[];
@@ -115,5 +115,5 @@ declare const DatePicker: import("react").ForwardRefExoticComponent<Pick<Pick<Om
115
115
  onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
116
116
  onChange: (_value: string) => void;
117
117
  onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
118
- }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<any>>;
118
+ }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "disabled" | "parseInputValue" | "dateFormat" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "icon" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "disabledDateFilter" | "maxDate" | "minDate" | "nextMonthLabel" | "previousMonthLabel" | "locale" | "analyticsContext" | "weekStartDay" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "inputLabel" | "inputLabelId" | "openCalendarLabel" | "shouldShowCalendarButton" | "hideIcon"> & import("react").RefAttributes<any>>;
119
119
  export default DatePicker;
@@ -52,5 +52,5 @@ export { DateTimePickerComponent as DateTimePickerWithoutAnalytics };
52
52
  * - [Code](https://atlassian.design/components/datetime-picker/code)
53
53
  * - [Usage](https://atlassian.design/components/datetime-picker/usage)
54
54
  */
55
- declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
55
+ declare const DateTimePicker: React.ForwardRefExoticComponent<Pick<Pick<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<DateTimePickerBaseProps, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue">> & Partial<Pick<DateTimePickerBaseProps, "ref" | "createAnalyticsEvent">>, "testId" | "appearance" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "appearance" | "innerProps" | "isDisabled" | "key" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "analyticsContext" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "clearControlLabel" | "datePickerProps" | "timePickerProps" | "parseValue"> & React.RefAttributes<any>>;
56
56
  export default DateTimePicker;
@@ -9,5 +9,5 @@ import { type TimePickerBaseProps } from '../types';
9
9
  * - [Code](https://atlassian.design/components/datetime-picker/time-picker/code)
10
10
  * - [Usage](https://atlassian.design/components/datetime-picker/time-picker/usage)
11
11
  */
12
- declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<unknown>>;
12
+ declare const TimePicker: React.ForwardRefExoticComponent<Pick<TimePickerBaseProps, "times" | "parseInputValue" | "formatDisplayLabel" | "placeholder" | "testId" | "label" | "appearance" | "selectProps" | "innerProps" | "isDisabled" | "defaultValue" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "onChange" | "locale" | "createAnalyticsEvent" | "value" | "autoFocus" | "isInvalid" | "isRequired" | "name" | "spacing" | "defaultIsOpen" | "isOpen" | "hideIcon" | "timeIsEditable" | "timeFormat"> & React.RefAttributes<unknown>>;
13
13
  export default TimePicker;
@@ -122,6 +122,10 @@ export interface DatePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
122
122
  * Set if the picker is open.
123
123
  */
124
124
  isOpen?: boolean;
125
+ /**
126
+ * Sets the aria-required passed down to the combobox in the select component.
127
+ */
128
+ isRequired?: boolean;
125
129
  /**
126
130
  * The name of the field.
127
131
  */
@@ -299,6 +303,10 @@ export interface TimePickerBaseProps extends WithAnalyticsEventsProps, PickerSel
299
303
  * Set if the dropdown is open. Will be `false` if not provided.
300
304
  */
301
305
  isOpen?: boolean;
306
+ /**
307
+ * Sets the aria-required passed down to the combobox in the select component.
308
+ */
309
+ isRequired?: boolean;
302
310
  /**
303
311
  * Accessible name for the Time Picker Select, rendered as `aria-label`. This will override any other method of providing a label.
304
312
  */
@@ -411,6 +419,10 @@ export interface DateTimePickerBaseProps extends WithAnalyticsEventsProps {
411
419
  * Set if the field is disabled.
412
420
  */
413
421
  isDisabled?: boolean;
422
+ /**
423
+ * Sets the aria-required passed down to the combobox in the select component.
424
+ */
425
+ isRequired?: boolean;
414
426
  /**
415
427
  * The name of the field.
416
428
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "15.2.0",
3
+ "version": "15.3.1",
4
4
  "description": "A date time picker allows the user to select an associated date and time.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,13 +37,13 @@
37
37
  "dependencies": {
38
38
  "@atlaskit/analytics-next": "^10.1.0",
39
39
  "@atlaskit/calendar": "^15.0.0",
40
- "@atlaskit/ds-lib": "^3.0.0",
40
+ "@atlaskit/ds-lib": "^3.1.0",
41
41
  "@atlaskit/icon": "^22.22.0",
42
- "@atlaskit/layering": "^0.5.0",
42
+ "@atlaskit/layering": "^0.6.0",
43
43
  "@atlaskit/locale": "^2.8.0",
44
44
  "@atlaskit/popper": "^6.3.0",
45
45
  "@atlaskit/primitives": "^12.2.0",
46
- "@atlaskit/select": "^18.0.0",
46
+ "@atlaskit/select": "^18.1.0",
47
47
  "@atlaskit/theme": "^13.0.0",
48
48
  "@atlaskit/tokens": "^2.0.0",
49
49
  "@babel/runtime": "^7.0.0",