@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.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/components/date-picker.js +22 -24
- package/dist/cjs/components/date-time-picker.js +50 -44
- package/dist/cjs/components/time-picker.js +13 -11
- package/dist/es2019/components/date-picker.js +21 -22
- package/dist/es2019/components/date-time-picker.js +43 -47
- package/dist/es2019/components/time-picker.js +13 -14
- package/dist/esm/components/date-picker.js +22 -24
- package/dist/esm/components/date-time-picker.js +50 -44
- package/dist/esm/components/time-picker.js +13 -11
- package/dist/types/components/date-picker.d.ts +2 -12
- package/dist/types/components/date-time-picker.d.ts +2 -3
- package/dist/types/components/time-picker.d.ts +2 -1
- package/dist/types-ts4.5/components/date-picker.d.ts +2 -12
- package/dist/types-ts4.5/components/date-time-picker.d.ts +2 -3
- package/dist/types-ts4.5/components/time-picker.d.ts +2 -1
- package/package.json +4 -5
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
81
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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"
|