@atlaskit/datetime-picker 13.11.2 → 13.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,13 +39,12 @@ export declare const timePickerDefaultAriaLabel = "Time";
39
39
  declare class DateTimePickerComponent extends React.Component<DateTimePickerProps, State> {
40
40
  static defaultProps: DateTimePickerProps;
41
41
  state: State;
42
- getSafeState: () => {
42
+ getParsedValues: () => {
43
43
  dateValue: string;
44
44
  timeValue: string;
45
45
  zoneValue: string;
46
- value: string;
47
- isFocused: boolean;
48
46
  };
47
+ getValue: () => string;
49
48
  parseValue(value: string, dateValue: string, timeValue: string, zoneValue: string): {
50
49
  dateValue: string;
51
50
  timeValue: string;
@@ -65,7 +65,8 @@ declare class TimePickerComponent extends React.Component<TimePickerProps, State
65
65
  value: string;
66
66
  isFocused: boolean;
67
67
  };
68
- getSafeState: () => State;
68
+ getValue: () => string;
69
+ getIsOpen: () => boolean;
69
70
  onChange: (newValue: ValueType<OptionType> | string, action?: ActionMeta<OptionType>) => void;
70
71
  /**
71
72
  * Only allow custom times if timeIsEditable prop is true
@@ -77,18 +77,8 @@ declare class DatePickerComponent extends Component<DatePickerProps, State> {
77
77
  l10n: LocalizationProvider;
78
78
  locale: string;
79
79
  } | null;
80
- getSafeState: () => {
81
- inputValue: any;
82
- value: string;
83
- isOpen: boolean;
84
- isFocused: boolean;
85
- clearingFromIcon: boolean;
86
- calendarValue: string;
87
- selectInputValue: string;
88
- l10n: LocalizationProvider;
89
- locale: string;
90
- shouldSetFocusOnCurrentDay: boolean;
91
- };
80
+ getValue: () => string;
81
+ getIsOpen: () => boolean;
92
82
  isDateDisabled: (date: string) => boolean;
93
83
  onCalendarChange: ({ iso }: {
94
84
  iso: string;
@@ -39,13 +39,12 @@ export declare const timePickerDefaultAriaLabel = "Time";
39
39
  declare class DateTimePickerComponent extends React.Component<DateTimePickerProps, State> {
40
40
  static defaultProps: DateTimePickerProps;
41
41
  state: State;
42
- getSafeState: () => {
42
+ getParsedValues: () => {
43
43
  dateValue: string;
44
44
  timeValue: string;
45
45
  zoneValue: string;
46
- value: string;
47
- isFocused: boolean;
48
46
  };
47
+ getValue: () => string;
49
48
  parseValue(value: string, dateValue: string, timeValue: string, zoneValue: string): {
50
49
  dateValue: string;
51
50
  timeValue: string;
@@ -65,7 +65,8 @@ declare class TimePickerComponent extends React.Component<TimePickerProps, State
65
65
  value: string;
66
66
  isFocused: boolean;
67
67
  };
68
- getSafeState: () => State;
68
+ getValue: () => string;
69
+ getIsOpen: () => boolean;
69
70
  onChange: (newValue: ValueType<OptionType> | string, action?: ActionMeta<OptionType>) => void;
70
71
  /**
71
72
  * Only allow custom times if timeIsEditable prop is true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/datetime-picker",
3
- "version": "13.11.2",
3
+ "version": "13.11.3",
4
4
  "description": "A date time picker allows the user to select an associated date and time.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,17 +42,16 @@
42
42
  "@atlaskit/analytics-next": "^10.1.0",
43
43
  "@atlaskit/calendar": "^14.5.0",
44
44
  "@atlaskit/ds-lib": "^2.5.0",
45
- "@atlaskit/icon": "^22.13.0",
45
+ "@atlaskit/icon": "^22.14.0",
46
46
  "@atlaskit/layering": "^0.4.0",
47
47
  "@atlaskit/locale": "^2.8.0",
48
48
  "@atlaskit/popper": "^6.2.0",
49
49
  "@atlaskit/select": "^17.15.0",
50
50
  "@atlaskit/theme": "^13.0.0",
51
- "@atlaskit/tokens": "^1.58.0",
51
+ "@atlaskit/tokens": "^1.59.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1",
54
- "date-fns": "^2.17.0",
55
- "lodash": "^4.17.21"
54
+ "date-fns": "^2.17.0"
56
55
  },
57
56
  "peerDependencies": {
58
57
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"