@atlaskit/datetime-picker 13.0.0 → 13.0.2
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 +15 -0
- package/dist/cjs/components/date-picker.js +15 -11
- package/dist/cjs/components/date-time-picker.js +16 -18
- package/dist/cjs/components/time-picker.js +6 -3
- package/dist/cjs/internal/clear-button.js +44 -0
- package/dist/cjs/internal/clear-indicator.js +37 -0
- package/dist/es2019/components/date-picker.js +15 -12
- package/dist/es2019/components/date-time-picker.js +16 -19
- package/dist/es2019/components/time-picker.js +6 -3
- package/dist/es2019/internal/clear-button.js +36 -0
- package/dist/es2019/internal/clear-indicator.js +29 -0
- package/dist/esm/components/date-picker.js +15 -12
- package/dist/esm/components/date-time-picker.js +16 -19
- package/dist/esm/components/time-picker.js +6 -3
- package/dist/esm/internal/clear-button.js +37 -0
- package/dist/esm/internal/clear-indicator.js +30 -0
- package/dist/types/components/date-picker.d.ts +4 -5
- package/dist/types/components/date-time-picker.d.ts +3 -4
- package/dist/types/components/time-picker.d.ts +4 -3
- package/dist/types/internal/clear-button.d.ts +17 -0
- package/dist/types/internal/clear-indicator.d.ts +10 -0
- package/dist/types-ts4.5/components/date-picker.d.ts +4 -5
- package/dist/types-ts4.5/components/date-time-picker.d.ts +3 -4
- package/dist/types-ts4.5/components/time-picker.d.ts +4 -3
- package/dist/types-ts4.5/internal/clear-button.d.ts +17 -0
- package/dist/types-ts4.5/internal/clear-indicator.d.ts +10 -0
- package/package.json +6 -5
- package/tmp/api-report-tmp.d.ts +0 -270
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/datetime-picker"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { ComponentType } from 'react';
|
|
8
|
-
import { DropdownIndicatorProps } from '@atlaskit/select';
|
|
9
|
-
import { FocusEvent as FocusEvent_2 } from 'react';
|
|
10
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
11
|
-
import { GroupType } from '@atlaskit/select';
|
|
12
|
-
import { OptionType } from '@atlaskit/select';
|
|
13
|
-
import { default as React_2 } from 'react';
|
|
14
|
-
import { RefAttributes } from 'react';
|
|
15
|
-
import { SelectProps } from '@atlaskit/select';
|
|
16
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
17
|
-
import { WithContextProps } from '@atlaskit/analytics-next';
|
|
18
|
-
|
|
19
|
-
// @public (undocumented)
|
|
20
|
-
export type Appearance = 'default' | 'none' | 'subtle';
|
|
21
|
-
|
|
22
|
-
// @public (undocumented)
|
|
23
|
-
export const DatePicker: ForwardRefExoticComponent<Pick<Pick<Omit<DatePickerProps_2, keyof WithAnalyticsEventsProps>, "dateFormat" | "formatDisplayLabel" | "isOpen" | "maxDate" | "minDate" | "nextMonthLabel" | "parseInputValue" | "placeholder" | "previousMonthLabel" | "testId" | "value" | "weekStartDay"> & Partial<Pick<Omit<DatePickerProps_2, keyof WithAnalyticsEventsProps>, "appearance" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "disabled" | "disabledDateFilter" | "hideIcon" | "icon" | "id" | "innerProps" | "isDisabled" | "isInvalid" | "locale" | "name" | "onBlur" | "onChange" | "onFocus" | "selectProps" | "spacing">> & Partial<Pick<{
|
|
24
|
-
appearance: Appearance;
|
|
25
|
-
autoFocus: boolean;
|
|
26
|
-
defaultIsOpen: boolean;
|
|
27
|
-
defaultValue: string;
|
|
28
|
-
disabled: string[];
|
|
29
|
-
disabledDateFilter: (_: string) => boolean;
|
|
30
|
-
hideIcon: boolean;
|
|
31
|
-
icon: ComponentType<DropdownIndicatorProps<OptionType, boolean, GroupType<OptionType>>>;
|
|
32
|
-
id: string;
|
|
33
|
-
innerProps: {};
|
|
34
|
-
isDisabled: boolean;
|
|
35
|
-
isInvalid: boolean;
|
|
36
|
-
name: string;
|
|
37
|
-
onBlur: (_event: FocusEvent_2<HTMLInputElement>) => void;
|
|
38
|
-
onChange: (_value: string) => void;
|
|
39
|
-
onFocus: (_event: FocusEvent_2<HTMLInputElement>) => void;
|
|
40
|
-
selectProps: {};
|
|
41
|
-
spacing: Spacing;
|
|
42
|
-
locale: string;
|
|
43
|
-
}, never>> & RefAttributes<any> & WithContextProps, "analyticsContext" | "appearance" | "autoFocus" | "dateFormat" | "defaultIsOpen" | "defaultValue" | "disabled" | "disabledDateFilter" | "formatDisplayLabel" | "hideIcon" | "icon" | "id" | "innerProps" | "isDisabled" | "isInvalid" | "isOpen" | "key" | "locale" | "maxDate" | "minDate" | "name" | "nextMonthLabel" | "onBlur" | "onChange" | "onFocus" | "parseInputValue" | "placeholder" | "previousMonthLabel" | "selectProps" | "spacing" | "testId" | "value" | "weekStartDay"> & RefAttributes<any>>;
|
|
44
|
-
|
|
45
|
-
// @public (undocumented)
|
|
46
|
-
const datePickerDefaultProps: {
|
|
47
|
-
appearance: Appearance;
|
|
48
|
-
autoFocus: boolean;
|
|
49
|
-
defaultIsOpen: boolean;
|
|
50
|
-
defaultValue: string;
|
|
51
|
-
disabled: string[];
|
|
52
|
-
disabledDateFilter: (_: string) => boolean;
|
|
53
|
-
hideIcon: boolean;
|
|
54
|
-
icon: ComponentType<DropdownIndicatorProps<OptionType, boolean, GroupType<OptionType>>>;
|
|
55
|
-
id: string;
|
|
56
|
-
innerProps: {};
|
|
57
|
-
isDisabled: boolean;
|
|
58
|
-
isInvalid: boolean;
|
|
59
|
-
name: string;
|
|
60
|
-
onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
61
|
-
onChange: (_value: string) => void;
|
|
62
|
-
onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
|
|
63
|
-
selectProps: {};
|
|
64
|
-
spacing: Spacing;
|
|
65
|
-
locale: string;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
// @public (undocumented)
|
|
69
|
-
export interface DatePickerProps extends WithAnalyticsEventsProps {
|
|
70
|
-
appearance?: Appearance;
|
|
71
|
-
autoFocus?: boolean;
|
|
72
|
-
dateFormat?: string;
|
|
73
|
-
defaultIsOpen?: boolean;
|
|
74
|
-
defaultValue?: string;
|
|
75
|
-
disabled?: string[];
|
|
76
|
-
disabledDateFilter?: (date: string) => boolean;
|
|
77
|
-
formatDisplayLabel?: (value: string, dateFormat: string) => string;
|
|
78
|
-
hideIcon?: boolean;
|
|
79
|
-
icon?: React.ComponentType<DropdownIndicatorProps<OptionType>>;
|
|
80
|
-
id?: string;
|
|
81
|
-
innerProps?: React.AllHTMLAttributes<HTMLElement>;
|
|
82
|
-
isDisabled?: boolean;
|
|
83
|
-
isInvalid?: boolean;
|
|
84
|
-
isOpen?: boolean;
|
|
85
|
-
locale?: string;
|
|
86
|
-
maxDate?: string;
|
|
87
|
-
minDate?: string;
|
|
88
|
-
name?: string;
|
|
89
|
-
nextMonthLabel?: string;
|
|
90
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
91
|
-
onChange?: (value: string) => void;
|
|
92
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
93
|
-
parseInputValue?: (date: string, dateFormat: string) => Date;
|
|
94
|
-
placeholder?: string;
|
|
95
|
-
previousMonthLabel?: string;
|
|
96
|
-
selectProps?: SelectProps<any>;
|
|
97
|
-
spacing?: Spacing;
|
|
98
|
-
testId?: string;
|
|
99
|
-
value?: string;
|
|
100
|
-
weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// @public (undocumented)
|
|
104
|
-
type DatePickerProps_2 = typeof datePickerDefaultProps & DatePickerProps;
|
|
105
|
-
|
|
106
|
-
// @public (undocumented)
|
|
107
|
-
export const DateTimePicker: React_2.ForwardRefExoticComponent<Pick<Pick<Omit<DateTimePickerProps_2, keyof WithAnalyticsEventsProps>, "dateFormat" | "parseValue" | "testId" | "timeFormat" | "value"> & Partial<Pick<Omit<DateTimePickerProps_2, keyof WithAnalyticsEventsProps>, "appearance" | "autoFocus" | "datePickerProps" | "datePickerSelectProps" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "isInvalid" | "locale" | "name" | "onBlur" | "onChange" | "onFocus" | "spacing" | "timeIsEditable" | "timePickerProps" | "timePickerSelectProps" | "times">> & Partial<Pick<{
|
|
108
|
-
appearance: string;
|
|
109
|
-
autoFocus: boolean;
|
|
110
|
-
isDisabled: boolean;
|
|
111
|
-
name: string;
|
|
112
|
-
onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
113
|
-
onChange: (_value: string) => void;
|
|
114
|
-
onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
115
|
-
innerProps: {};
|
|
116
|
-
id: string;
|
|
117
|
-
defaultValue: string;
|
|
118
|
-
timeIsEditable: boolean;
|
|
119
|
-
isInvalid: boolean;
|
|
120
|
-
datePickerProps: {};
|
|
121
|
-
timePickerProps: {};
|
|
122
|
-
datePickerSelectProps: {};
|
|
123
|
-
timePickerSelectProps: {};
|
|
124
|
-
times: string[];
|
|
125
|
-
spacing: string;
|
|
126
|
-
locale: string;
|
|
127
|
-
}, never>> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "appearance" | "autoFocus" | "dateFormat" | "datePickerProps" | "datePickerSelectProps" | "defaultValue" | "id" | "innerProps" | "isDisabled" | "isInvalid" | "key" | "locale" | "name" | "onBlur" | "onChange" | "onFocus" | "parseValue" | "spacing" | "testId" | "timeFormat" | "timeIsEditable" | "timePickerProps" | "timePickerSelectProps" | "times" | "value"> & React_2.RefAttributes<any>>;
|
|
128
|
-
|
|
129
|
-
// @public (undocumented)
|
|
130
|
-
const dateTimePickerDefaultProps: {
|
|
131
|
-
appearance: string;
|
|
132
|
-
autoFocus: boolean;
|
|
133
|
-
isDisabled: boolean;
|
|
134
|
-
name: string;
|
|
135
|
-
onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
136
|
-
onChange: (_value: string) => void;
|
|
137
|
-
onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
138
|
-
innerProps: {};
|
|
139
|
-
id: string;
|
|
140
|
-
defaultValue: string;
|
|
141
|
-
timeIsEditable: boolean;
|
|
142
|
-
isInvalid: boolean;
|
|
143
|
-
datePickerProps: {};
|
|
144
|
-
timePickerProps: {};
|
|
145
|
-
datePickerSelectProps: {};
|
|
146
|
-
timePickerSelectProps: {};
|
|
147
|
-
times: string[];
|
|
148
|
-
spacing: string;
|
|
149
|
-
locale: string;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
// @public (undocumented)
|
|
153
|
-
export interface DateTimePickerProps extends WithAnalyticsEventsProps {
|
|
154
|
-
appearance?: Appearance;
|
|
155
|
-
autoFocus?: boolean;
|
|
156
|
-
dateFormat?: string;
|
|
157
|
-
datePickerProps?: DatePickerProps;
|
|
158
|
-
datePickerSelectProps?: SelectProps<any>;
|
|
159
|
-
defaultValue?: string;
|
|
160
|
-
id?: string;
|
|
161
|
-
innerProps?: React_2.AllHTMLAttributes<HTMLElement>;
|
|
162
|
-
isDisabled?: boolean;
|
|
163
|
-
isInvalid?: boolean;
|
|
164
|
-
locale?: string;
|
|
165
|
-
name?: string;
|
|
166
|
-
onBlur?: React_2.FocusEventHandler<HTMLInputElement>;
|
|
167
|
-
onChange?: (value: string) => void;
|
|
168
|
-
onFocus?: React_2.FocusEventHandler<HTMLInputElement>;
|
|
169
|
-
parseValue?: (dateTimeValue: string, date: string, time: string, timezone: string) => {
|
|
170
|
-
dateValue: string;
|
|
171
|
-
timeValue: string;
|
|
172
|
-
zoneValue: string;
|
|
173
|
-
};
|
|
174
|
-
spacing?: Spacing;
|
|
175
|
-
testId?: string;
|
|
176
|
-
timeFormat?: string;
|
|
177
|
-
timeIsEditable?: boolean;
|
|
178
|
-
timePickerProps?: TimePickerProps;
|
|
179
|
-
timePickerSelectProps?: SelectProps<any>;
|
|
180
|
-
times?: Array<string>;
|
|
181
|
-
value?: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// @public (undocumented)
|
|
185
|
-
type DateTimePickerProps_2 = typeof dateTimePickerDefaultProps & DateTimePickerProps;
|
|
186
|
-
|
|
187
|
-
// @public (undocumented)
|
|
188
|
-
export type Spacing = 'compact' | 'default';
|
|
189
|
-
|
|
190
|
-
// @public (undocumented)
|
|
191
|
-
export const TimePicker: React_2.ForwardRefExoticComponent<Pick<Pick<Omit<TimePickerProps_2, keyof WithAnalyticsEventsProps>, "formatDisplayLabel" | "isOpen" | "placeholder" | "testId" | "timeFormat" | "value"> & Partial<Pick<Omit<TimePickerProps_2, keyof WithAnalyticsEventsProps>, "appearance" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "hideIcon" | "id" | "innerProps" | "isDisabled" | "isInvalid" | "locale" | "name" | "onBlur" | "onChange" | "onFocus" | "parseInputValue" | "selectProps" | "spacing" | "timeIsEditable" | "times">> & Partial<Pick<{
|
|
192
|
-
appearance: Appearance;
|
|
193
|
-
autoFocus: boolean;
|
|
194
|
-
defaultIsOpen: boolean;
|
|
195
|
-
defaultValue: string;
|
|
196
|
-
hideIcon: boolean;
|
|
197
|
-
id: string;
|
|
198
|
-
innerProps: {};
|
|
199
|
-
isDisabled: boolean;
|
|
200
|
-
isInvalid: boolean;
|
|
201
|
-
name: string;
|
|
202
|
-
onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
203
|
-
onChange: (_value: string) => void;
|
|
204
|
-
onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
205
|
-
parseInputValue: (time: string, _timeFormat: string) => Date | string;
|
|
206
|
-
selectProps: {};
|
|
207
|
-
spacing: Spacing;
|
|
208
|
-
times: string[];
|
|
209
|
-
timeIsEditable: boolean;
|
|
210
|
-
locale: string;
|
|
211
|
-
}, never>> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "appearance" | "autoFocus" | "defaultIsOpen" | "defaultValue" | "formatDisplayLabel" | "hideIcon" | "id" | "innerProps" | "isDisabled" | "isInvalid" | "isOpen" | "key" | "locale" | "name" | "onBlur" | "onChange" | "onFocus" | "parseInputValue" | "placeholder" | "selectProps" | "spacing" | "testId" | "timeFormat" | "timeIsEditable" | "times" | "value"> & React_2.RefAttributes<any>>;
|
|
212
|
-
|
|
213
|
-
// @public (undocumented)
|
|
214
|
-
const timePickerDefaultProps: {
|
|
215
|
-
appearance: Appearance;
|
|
216
|
-
autoFocus: boolean;
|
|
217
|
-
defaultIsOpen: boolean;
|
|
218
|
-
defaultValue: string;
|
|
219
|
-
hideIcon: boolean;
|
|
220
|
-
id: string;
|
|
221
|
-
innerProps: {};
|
|
222
|
-
isDisabled: boolean;
|
|
223
|
-
isInvalid: boolean;
|
|
224
|
-
name: string;
|
|
225
|
-
onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
226
|
-
onChange: (_value: string) => void;
|
|
227
|
-
onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
|
|
228
|
-
parseInputValue: (time: string, _timeFormat: string) => Date | string;
|
|
229
|
-
selectProps: {};
|
|
230
|
-
spacing: Spacing;
|
|
231
|
-
times: string[];
|
|
232
|
-
timeIsEditable: boolean;
|
|
233
|
-
locale: string;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
// @public (undocumented)
|
|
237
|
-
export interface TimePickerProps extends WithAnalyticsEventsProps {
|
|
238
|
-
appearance?: Appearance;
|
|
239
|
-
autoFocus?: boolean;
|
|
240
|
-
defaultIsOpen?: boolean;
|
|
241
|
-
defaultValue?: string;
|
|
242
|
-
formatDisplayLabel?: (time: string, timeFormat: string) => string;
|
|
243
|
-
hideIcon?: boolean;
|
|
244
|
-
id?: string;
|
|
245
|
-
innerProps?: React_2.AllHTMLAttributes<HTMLElement>;
|
|
246
|
-
isDisabled?: boolean;
|
|
247
|
-
isInvalid?: boolean;
|
|
248
|
-
isOpen?: boolean;
|
|
249
|
-
locale?: string;
|
|
250
|
-
name?: string;
|
|
251
|
-
onBlur?: React_2.FocusEventHandler<HTMLElement>;
|
|
252
|
-
onChange?: (value: string) => void;
|
|
253
|
-
onFocus?: React_2.FocusEventHandler<HTMLElement>;
|
|
254
|
-
parseInputValue?: (time: string, timeFormat: string) => Date | string;
|
|
255
|
-
placeholder?: string;
|
|
256
|
-
selectProps?: SelectProps<any>;
|
|
257
|
-
spacing?: Spacing;
|
|
258
|
-
testId?: string;
|
|
259
|
-
timeFormat?: string;
|
|
260
|
-
timeIsEditable?: boolean;
|
|
261
|
-
times?: string[];
|
|
262
|
-
value?: string;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// @public (undocumented)
|
|
266
|
-
type TimePickerProps_2 = typeof timePickerDefaultProps & TimePickerProps;
|
|
267
|
-
|
|
268
|
-
// (No @packageDocumentation comment for this package)
|
|
269
|
-
|
|
270
|
-
```
|