@atlaskit/datetime-picker 11.1.9 → 12.0.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,36 @@
1
1
  # @atlaskit/datetime-picker
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`27d4f1e7121`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27d4f1e7121) - [ux] Updating tokens
8
+ - [`d7542d1a7c2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7542d1a7c2) - [ux] Update Tokens in the code with those that are a better fit. New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
9
+ - [`c19fb116172`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c19fb116172) - [ux] Update Tokens in the code with those that are a better fit. New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
10
+
11
+ ### Minor Changes
12
+
13
+ - [`6f7a4353204`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6f7a4353204) - Added ability to provide custom aria-labels for next- and previous-month buttons using `nextMonthLabel` and `previousMonthLabel`
14
+
15
+ ### Patch Changes
16
+
17
+ - [`3ec9ed2c4d0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ec9ed2c4d0) - Fixed handling of custom times that included whitespace characters
18
+ - Updated dependencies
19
+
20
+ ## 11.1.11
21
+
22
+ ### Patch Changes
23
+
24
+ - [`558cc136503`](https://bitbucket.org/atlassian/atlassian-frontend/commits/558cc136503) - Bump moment dependency version
25
+ - [`e7438659c2e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7438659c2e) - Updated dependency '@types/react-select' to fix type error
26
+ - Updated dependencies
27
+
28
+ ## 11.1.10
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies
33
+
3
34
  ## 11.1.9
4
35
 
5
36
  ### Patch Changes
@@ -68,7 +68,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
68
68
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
69
69
 
70
70
  var packageName = "@atlaskit/datetime-picker";
71
- var packageVersion = "11.1.9";
71
+ var packageVersion = "12.0.0";
72
72
  /* eslint-disable react/no-unused-prop-types */
73
73
 
74
74
  function getDateObj(date) {
@@ -104,8 +104,10 @@ var Menu = function Menu(_ref) {
104
104
  disabledDateFilter: selectProps.calendarDisabledDateFilter,
105
105
  minDate: selectProps.calendarMinDate,
106
106
  maxDate: selectProps.calendarMaxDate,
107
+ nextMonthLabel: selectProps.nextMonthLabel,
107
108
  onChange: selectProps.onCalendarChange,
108
109
  onSelect: selectProps.onCalendarSelect,
110
+ previousMonthLabel: selectProps.previousMonthLabel,
109
111
  calendarRef: selectProps.calendarRef,
110
112
  selected: [selectProps.calendarValue],
111
113
  locale: selectProps.calendarLocale,
@@ -477,6 +479,8 @@ var DatePicker = /*#__PURE__*/function (_Component) {
477
479
  minDate = _this$props3.minDate,
478
480
  isInvalid = _this$props3.isInvalid,
479
481
  name = _this$props3.name,
482
+ nextMonthLabel = _this$props3.nextMonthLabel,
483
+ previousMonthLabel = _this$props3.previousMonthLabel,
480
484
  selectProps = _this$props3.selectProps,
481
485
  spacing = _this$props3.spacing,
482
486
  locale = _this$props3.locale,
@@ -521,7 +525,9 @@ var DatePicker = /*#__PURE__*/function (_Component) {
521
525
  onCalendarChange: this.onCalendarChange,
522
526
  onCalendarSelect: this.onCalendarSelect,
523
527
  calendarLocale: locale,
524
- calendarWeekStartDay: weekStartDay
528
+ calendarWeekStartDay: weekStartDay,
529
+ nextMonthLabel: nextMonthLabel,
530
+ previousMonthLabel: previousMonthLabel
525
531
  };
526
532
  return (0, _core.jsx)("div", (0, _extends2.default)({}, innerProps, {
527
533
  role: "presentation",
@@ -58,7 +58,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
58
58
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
59
59
 
60
60
  var packageName = "@atlaskit/datetime-picker";
61
- var packageVersion = "11.1.9";
61
+ var packageVersion = "12.0.0";
62
62
  /* eslint-disable react/no-unused-prop-types */
63
63
 
64
64
  var isInvalidBorderStyles = (0, _core.css)({
@@ -76,13 +76,13 @@ var subtleBgStyles = (0, _core.css)({
76
76
  });
77
77
  var hoverStyles = (0, _core.css)({
78
78
  '&:hover': {
79
- backgroundColor: "var(--ds-surface, ".concat(_colors.N30, ")"),
79
+ backgroundColor: "var(--ds-background-input-hovered, ".concat(_colors.N30, ")"),
80
80
  borderColor: "var(--ds-border, ".concat(_colors.N30, ")")
81
81
  }
82
82
  });
83
83
  var isInvalidHoverStyles = (0, _core.css)({
84
84
  '&:hover': {
85
- backgroundColor: "var(--ds-surface, ".concat(_colors.N0, ")"),
85
+ backgroundColor: "var(--ds-background-input-hovered, ".concat(_colors.N0, ")"),
86
86
  borderColor: "var(--ds-border-danger, ".concat(_colors.R400, ")")
87
87
  }
88
88
  });
@@ -258,9 +258,9 @@ var DateTimePicker = /*#__PURE__*/function (_React$Component) {
258
258
  });
259
259
 
260
260
  if (dateValue && timeValue) {
261
- var value = (0, _internal.formatDateTimeZoneIntoIso)(dateValue, timeValue, zoneValue);
261
+ var _value = (0, _internal.formatDateTimeZoneIntoIso)(dateValue, timeValue, zoneValue);
262
262
 
263
- var _this$parseValue = this.parseValue(value, dateValue, timeValue, zoneValue),
263
+ var _this$parseValue = this.parseValue(_value, dateValue, timeValue, zoneValue),
264
264
  parsedZone = _this$parseValue.zoneValue;
265
265
 
266
266
  var valueWithValidZone = (0, _internal.formatDateTimeZoneIntoIso)(dateValue, timeValue, parsedZone);
@@ -67,7 +67,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
67
67
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
68
68
 
69
69
  var packageName = "@atlaskit/datetime-picker";
70
- var packageVersion = "11.1.9";
70
+ var packageVersion = "12.0.0";
71
71
  var menuStyles = {
72
72
  /* Need to remove default absolute positioning as that causes issues with position fixed */
73
73
  position: 'static',
@@ -95,9 +95,9 @@ function checkMinute(minute) {
95
95
  }
96
96
 
97
97
  function convertTo24hrTime(time) {
98
- var timeArray = time.split(/(p|a)/);
98
+ var timeArray = time.toLowerCase().split(/(p|a)/i);
99
99
  var meridiem = timeArray[1];
100
- var semi24 = formatSemi24(timeArray[0]);
100
+ var semi24 = formatSemi24(timeArray[0].trim());
101
101
  var hour = checkHour(semi24.substring(0, 2), meridiem);
102
102
  var minute = checkMinute(semi24.substring(2, 4));
103
103
 
@@ -120,11 +120,13 @@ function assignToDate(time) {
120
120
  }
121
121
 
122
122
  function _default(time) {
123
- if (!isValid(time.toString())) {
123
+ var trimmedTime = time.toString().trim();
124
+
125
+ if (!isValid(trimmedTime)) {
124
126
  return 'invalid time format';
125
127
  }
126
128
 
127
- var time1 = removeSpacer(time.toString());
129
+ var time1 = removeSpacer(trimmedTime);
128
130
  var time2 = convertTo24hrTime(time1);
129
131
 
130
132
  if (!time2) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "11.1.9",
3
+ "version": "12.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -18,7 +18,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
18
18
  import FixedLayer from '../internal/FixedLayer';
19
19
  import { convertTokens } from './utils';
20
20
  const packageName = "@atlaskit/datetime-picker";
21
- const packageVersion = "11.1.9";
21
+ const packageVersion = "12.0.0";
22
22
  /* eslint-disable react/no-unused-prop-types */
23
23
 
24
24
  function getDateObj(date) {
@@ -54,8 +54,10 @@ const Menu = ({
54
54
  disabledDateFilter: selectProps.calendarDisabledDateFilter,
55
55
  minDate: selectProps.calendarMinDate,
56
56
  maxDate: selectProps.calendarMaxDate,
57
+ nextMonthLabel: selectProps.nextMonthLabel,
57
58
  onChange: selectProps.onCalendarChange,
58
59
  onSelect: selectProps.onCalendarSelect,
60
+ previousMonthLabel: selectProps.previousMonthLabel,
59
61
  calendarRef: selectProps.calendarRef,
60
62
  selected: [selectProps.calendarValue],
61
63
  locale: selectProps.calendarLocale,
@@ -427,6 +429,8 @@ class DatePicker extends Component {
427
429
  minDate,
428
430
  isInvalid,
429
431
  name,
432
+ nextMonthLabel,
433
+ previousMonthLabel,
430
434
  selectProps,
431
435
  spacing,
432
436
  locale,
@@ -472,7 +476,9 @@ class DatePicker extends Component {
472
476
  onCalendarChange: this.onCalendarChange,
473
477
  onCalendarSelect: this.onCalendarSelect,
474
478
  calendarLocale: locale,
475
- calendarWeekStartDay: weekStartDay
479
+ calendarWeekStartDay: weekStartDay,
480
+ nextMonthLabel,
481
+ previousMonthLabel
476
482
  };
477
483
  return jsx("div", _extends({}, innerProps, {
478
484
  role: "presentation",
@@ -17,7 +17,7 @@ import DatePicker from './DatePicker';
17
17
  import TimePicker from './TimePicker';
18
18
  import { convertTokens } from './utils';
19
19
  const packageName = "@atlaskit/datetime-picker";
20
- const packageVersion = "11.1.9";
20
+ const packageVersion = "12.0.0";
21
21
  /* eslint-disable react/no-unused-prop-types */
22
22
 
23
23
  const isInvalidBorderStyles = css({
@@ -35,13 +35,13 @@ const subtleBgStyles = css({
35
35
  });
36
36
  const hoverStyles = css({
37
37
  '&:hover': {
38
- backgroundColor: `var(--ds-surface, ${N30})`,
38
+ backgroundColor: `var(--ds-background-input-hovered, ${N30})`,
39
39
  borderColor: `var(--ds-border, ${N30})`
40
40
  }
41
41
  });
42
42
  const isInvalidHoverStyles = css({
43
43
  '&:hover': {
44
- backgroundColor: `var(--ds-surface, ${N0})`,
44
+ backgroundColor: `var(--ds-background-input-hovered, ${N0})`,
45
45
  borderColor: `var(--ds-border-danger, ${R400})`
46
46
  }
47
47
  });
@@ -14,7 +14,7 @@ import FixedLayer from '../internal/FixedLayer';
14
14
  import parseTime from '../internal/parseTime';
15
15
  import { convertTokens } from './utils';
16
16
  const packageName = "@atlaskit/datetime-picker";
17
- const packageVersion = "11.1.9";
17
+ const packageVersion = "12.0.0";
18
18
  const menuStyles = {
19
19
  /* Need to remove default absolute positioning as that causes issues with position fixed */
20
20
  position: 'static',
@@ -76,9 +76,9 @@ export function checkMinute(minute) {
76
76
  return minute;
77
77
  }
78
78
  export function convertTo24hrTime(time) {
79
- const timeArray = time.split(/(p|a)/);
79
+ const timeArray = time.toLowerCase().split(/(p|a)/i);
80
80
  const meridiem = timeArray[1];
81
- const semi24 = formatSemi24(timeArray[0]);
81
+ const semi24 = formatSemi24(timeArray[0].trim());
82
82
  const hour = checkHour(semi24.substring(0, 2), meridiem);
83
83
  const minute = checkMinute(semi24.substring(2, 4));
84
84
 
@@ -99,11 +99,13 @@ export function assignToDate(time) {
99
99
  return dateTime;
100
100
  }
101
101
  export default function (time) {
102
- if (!isValid(time.toString())) {
102
+ const trimmedTime = time.toString().trim();
103
+
104
+ if (!isValid(trimmedTime)) {
103
105
  return 'invalid time format';
104
106
  }
105
107
 
106
- const time1 = removeSpacer(time.toString());
108
+ const time1 = removeSpacer(trimmedTime);
107
109
  const time2 = convertTo24hrTime(time1);
108
110
 
109
111
  if (!time2) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "11.1.9",
3
+ "version": "12.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -33,7 +33,7 @@ import { defaultDateFormat, EmptyClearIndicator, padToTwo, placeholderDatetime }
33
33
  import FixedLayer from '../internal/FixedLayer';
34
34
  import { convertTokens } from './utils';
35
35
  var packageName = "@atlaskit/datetime-picker";
36
- var packageVersion = "11.1.9";
36
+ var packageVersion = "12.0.0";
37
37
  /* eslint-disable react/no-unused-prop-types */
38
38
 
39
39
  function getDateObj(date) {
@@ -69,8 +69,10 @@ var Menu = function Menu(_ref) {
69
69
  disabledDateFilter: selectProps.calendarDisabledDateFilter,
70
70
  minDate: selectProps.calendarMinDate,
71
71
  maxDate: selectProps.calendarMaxDate,
72
+ nextMonthLabel: selectProps.nextMonthLabel,
72
73
  onChange: selectProps.onCalendarChange,
73
74
  onSelect: selectProps.onCalendarSelect,
75
+ previousMonthLabel: selectProps.previousMonthLabel,
74
76
  calendarRef: selectProps.calendarRef,
75
77
  selected: [selectProps.calendarValue],
76
78
  locale: selectProps.calendarLocale,
@@ -463,6 +465,8 @@ var DatePicker = /*#__PURE__*/function (_Component) {
463
465
  minDate = _this$props3.minDate,
464
466
  isInvalid = _this$props3.isInvalid,
465
467
  name = _this$props3.name,
468
+ nextMonthLabel = _this$props3.nextMonthLabel,
469
+ previousMonthLabel = _this$props3.previousMonthLabel,
466
470
  selectProps = _this$props3.selectProps,
467
471
  spacing = _this$props3.spacing,
468
472
  locale = _this$props3.locale,
@@ -507,7 +511,9 @@ var DatePicker = /*#__PURE__*/function (_Component) {
507
511
  onCalendarChange: this.onCalendarChange,
508
512
  onCalendarSelect: this.onCalendarSelect,
509
513
  calendarLocale: locale,
510
- calendarWeekStartDay: weekStartDay
514
+ calendarWeekStartDay: weekStartDay,
515
+ nextMonthLabel: nextMonthLabel,
516
+ previousMonthLabel: previousMonthLabel
511
517
  };
512
518
  return jsx("div", _extends({}, innerProps, {
513
519
  role: "presentation",
@@ -31,7 +31,7 @@ import DatePicker from './DatePicker';
31
31
  import TimePicker from './TimePicker';
32
32
  import { convertTokens } from './utils';
33
33
  var packageName = "@atlaskit/datetime-picker";
34
- var packageVersion = "11.1.9";
34
+ var packageVersion = "12.0.0";
35
35
  /* eslint-disable react/no-unused-prop-types */
36
36
 
37
37
  var isInvalidBorderStyles = css({
@@ -49,13 +49,13 @@ var subtleBgStyles = css({
49
49
  });
50
50
  var hoverStyles = css({
51
51
  '&:hover': {
52
- backgroundColor: "var(--ds-surface, ".concat(N30, ")"),
52
+ backgroundColor: "var(--ds-background-input-hovered, ".concat(N30, ")"),
53
53
  borderColor: "var(--ds-border, ".concat(N30, ")")
54
54
  }
55
55
  });
56
56
  var isInvalidHoverStyles = css({
57
57
  '&:hover': {
58
- backgroundColor: "var(--ds-surface, ".concat(N0, ")"),
58
+ backgroundColor: "var(--ds-background-input-hovered, ".concat(N0, ")"),
59
59
  borderColor: "var(--ds-border-danger, ".concat(R400, ")")
60
60
  }
61
61
  });
@@ -239,9 +239,9 @@ var DateTimePicker = /*#__PURE__*/function (_React$Component) {
239
239
  });
240
240
 
241
241
  if (dateValue && timeValue) {
242
- var value = formatDateTimeZoneIntoIso(dateValue, timeValue, zoneValue);
242
+ var _value = formatDateTimeZoneIntoIso(dateValue, timeValue, zoneValue);
243
243
 
244
- var _this$parseValue = this.parseValue(value, dateValue, timeValue, zoneValue),
244
+ var _this$parseValue = this.parseValue(_value, dateValue, timeValue, zoneValue),
245
245
  parsedZone = _this$parseValue.zoneValue;
246
246
 
247
247
  var valueWithValidZone = formatDateTimeZoneIntoIso(dateValue, timeValue, parsedZone);
@@ -32,7 +32,7 @@ import FixedLayer from '../internal/FixedLayer';
32
32
  import parseTime from '../internal/parseTime';
33
33
  import { convertTokens } from './utils';
34
34
  var packageName = "@atlaskit/datetime-picker";
35
- var packageVersion = "11.1.9";
35
+ var packageVersion = "12.0.0";
36
36
  var menuStyles = {
37
37
  /* Need to remove default absolute positioning as that causes issues with position fixed */
38
38
  position: 'static',
@@ -76,9 +76,9 @@ export function checkMinute(minute) {
76
76
  return minute;
77
77
  }
78
78
  export function convertTo24hrTime(time) {
79
- var timeArray = time.split(/(p|a)/);
79
+ var timeArray = time.toLowerCase().split(/(p|a)/i);
80
80
  var meridiem = timeArray[1];
81
- var semi24 = formatSemi24(timeArray[0]);
81
+ var semi24 = formatSemi24(timeArray[0].trim());
82
82
  var hour = checkHour(semi24.substring(0, 2), meridiem);
83
83
  var minute = checkMinute(semi24.substring(2, 4));
84
84
 
@@ -99,11 +99,13 @@ export function assignToDate(time) {
99
99
  return dateTime;
100
100
  }
101
101
  export default function (time) {
102
- if (!isValid(time.toString())) {
102
+ var trimmedTime = time.toString().trim();
103
+
104
+ if (!isValid(trimmedTime)) {
103
105
  return 'invalid time format';
104
106
  }
105
107
 
106
- var time1 = removeSpacer(time.toString());
108
+ var time1 = removeSpacer(trimmedTime);
107
109
  var time2 = convertTo24hrTime(time1);
108
110
 
109
111
  if (!time2) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "11.1.9",
3
+ "version": "12.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -48,6 +48,8 @@ export interface Props extends WithAnalyticsEventsProps {
48
48
  isOpen?: boolean;
49
49
  /** The name of the field. */
50
50
  name?: string;
51
+ /** The aria-label attribute associated with the next-month arrow. */
52
+ nextMonthLabel?: string;
51
53
  /** Called when the field is blurred. */
52
54
  onBlur?: React.FocusEventHandler<HTMLInputElement>;
53
55
  /** Called when the value changes. The only argument is an ISO time or empty string. */
@@ -58,6 +60,8 @@ export interface Props extends WithAnalyticsEventsProps {
58
60
  parseInputValue?: (date: string, dateFormat: string) => Date;
59
61
  /** A function for formatting the date displayed in the input. By default composes together [date-fn's parse method](https://date-fns.org/v1.29.0/docs/parse) and [date-fn's format method](https://date-fns.org/v1.29.0/docs/format) to return a correctly formatted date string. */
60
62
  formatDisplayLabel?: (value: string, dateFormat: string) => string;
63
+ /** The aria-label attribute associated with the previous-month arrow. */
64
+ previousMonthLabel?: string;
61
65
  /** Props to apply to the select. This can be used to set options such as placeholder text.
62
66
  * See [the `Select` documentation for further information](/components/select). */
63
67
  selectProps?: SelectProps;
@@ -210,7 +214,7 @@ declare class DatePicker extends Component<DatePickerProps, State> {
210
214
  render(): JSX.Element;
211
215
  }
212
216
  export { DatePicker as DatePickerWithoutAnalytics };
213
- declare const _default: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "maxDate" | "minDate" | "isOpen" | "parseInputValue" | "formatDisplayLabel" | "value" | "dateFormat" | "placeholder" | "weekStartDay"> & Partial<Pick<Omit<DatePickerProps, keyof WithAnalyticsEventsProps>, "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "disabledDateFilter" | "hideIcon" | "id" | "isDisabled" | "isInvalid" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "locale">> & Partial<Pick<{
217
+ declare const _default: import("react").ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps, keyof WithAnalyticsEventsProps>, "testId" | "maxDate" | "minDate" | "isOpen" | "nextMonthLabel" | "parseInputValue" | "formatDisplayLabel" | "previousMonthLabel" | "value" | "dateFormat" | "placeholder" | "weekStartDay"> & Partial<Pick<Omit<DatePickerProps, keyof WithAnalyticsEventsProps>, "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "disabledDateFilter" | "hideIcon" | "id" | "isDisabled" | "isInvalid" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "locale">> & Partial<Pick<{
214
218
  appearance: Appearance;
215
219
  autoFocus: boolean;
216
220
  defaultIsOpen: boolean;
@@ -230,5 +234,5 @@ declare const _default: import("react").ForwardRefExoticComponent<Pick<Pick<Omit
230
234
  selectProps: {};
231
235
  spacing: Spacing;
232
236
  locale: string;
233
- }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "disabledDateFilter" | "hideIcon" | "id" | "isDisabled" | "isInvalid" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "locale" | "maxDate" | "minDate" | "isOpen" | "parseInputValue" | "formatDisplayLabel" | "value" | "dateFormat" | "placeholder" | "weekStartDay" | "key" | "analyticsContext"> & import("react").RefAttributes<any>>;
237
+ }, never>> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "testId" | "icon" | "disabled" | "appearance" | "selectProps" | "innerProps" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "disabledDateFilter" | "hideIcon" | "id" | "isDisabled" | "isInvalid" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "locale" | "maxDate" | "minDate" | "isOpen" | "nextMonthLabel" | "parseInputValue" | "formatDisplayLabel" | "previousMonthLabel" | "value" | "dateFormat" | "placeholder" | "weekStartDay" | "key" | "analyticsContext"> & import("react").RefAttributes<any>>;
234
238
  export default _default;
@@ -10,9 +10,9 @@ interface Option {
10
10
  export interface Props extends WithAnalyticsEventsProps {
11
11
  /**
12
12
  Set the appearance of the picker.
13
-
13
+
14
14
  `subtle` will remove the borders, background, and icon.
15
-
15
+
16
16
  **NOTE:** Appearance values will be ignored if styles are parsed through `selectProps`.
17
17
  */
18
18
  appearance?: Appearance;
@@ -45,7 +45,7 @@ export interface Props extends WithAnalyticsEventsProps {
45
45
  selectProps?: SelectProps<any>;
46
46
  /**
47
47
  The spacing for the select control.
48
-
48
+
49
49
  Compact is `gridSize() * 4`, default is `gridSize * 5`.
50
50
  */
51
51
  spacing?: Spacing;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "11.1.9",
3
+ "version": "12.0.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/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -19,18 +19,19 @@
19
19
  "deprecatedAutoEntryPoints": true,
20
20
  "releaseModel": "scheduled",
21
21
  "website": {
22
- "name": "Date time picker"
22
+ "name": "Date time picker",
23
+ "category": "Components"
23
24
  }
24
25
  },
25
26
  "dependencies": {
26
27
  "@atlaskit/analytics-next": "^8.2.0",
27
- "@atlaskit/calendar": "^12.0.0",
28
+ "@atlaskit/calendar": "^12.2.0",
28
29
  "@atlaskit/icon": "^21.10.0",
29
30
  "@atlaskit/locale": "^2.1.0",
30
31
  "@atlaskit/popper": "^5.2.0",
31
- "@atlaskit/select": "^15.2.0",
32
+ "@atlaskit/select": "^15.3.0",
32
33
  "@atlaskit/theme": "^12.1.0",
33
- "@atlaskit/tokens": "^0.9.0",
34
+ "@atlaskit/tokens": "^0.10.0",
34
35
  "@babel/runtime": "^7.0.0",
35
36
  "@emotion/core": "^10.0.9",
36
37
  "date-fns": "^2.17.0",
@@ -58,7 +59,7 @@
58
59
  "@testing-library/react": "^8.0.1",
59
60
  "enzyme": "^3.10.0",
60
61
  "enzyme-to-json": "^3.3.0",
61
- "moment": "^2.22.2",
62
+ "moment": "^2.29.2",
62
63
  "react-dom": "^16.8.0",
63
64
  "react-lorem-component": "^0.13.0",
64
65
  "react-test-renderer": "^16.8.0",
@@ -69,6 +70,7 @@
69
70
  "import-structure": "atlassian-conventions"
70
71
  },
71
72
  "@repo/internal": {
73
+ "dom-events": "use-bind-event-listener",
72
74
  "styling": [
73
75
  "static",
74
76
  "emotion"
@@ -3,5 +3,6 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
+ "sideEffects": false,
6
7
  "types": "../dist/types/types.d.ts"
7
8
  }