@atlaskit/datetime-picker 13.5.2 → 13.6.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +1321 -1305
  2. package/README.md +2 -1
  3. package/dist/cjs/components/date-picker.js +7 -3
  4. package/dist/cjs/components/date-time-picker.js +5 -2
  5. package/dist/cjs/components/time-picker.js +1 -1
  6. package/dist/cjs/internal/date-time-picker-container.js +6 -1
  7. package/dist/cjs/internal/fixed-layer-menu.js +4 -0
  8. package/dist/cjs/internal/menu.js +4 -0
  9. package/dist/es2019/components/date-picker.js +9 -2
  10. package/dist/es2019/components/date-time-picker.js +7 -1
  11. package/dist/es2019/components/time-picker.js +1 -1
  12. package/dist/es2019/internal/date-time-picker-container.js +6 -1
  13. package/dist/es2019/internal/fixed-layer-menu.js +4 -0
  14. package/dist/es2019/internal/menu.js +4 -0
  15. package/dist/esm/components/date-picker.js +9 -2
  16. package/dist/esm/components/date-time-picker.js +7 -1
  17. package/dist/esm/components/time-picker.js +1 -1
  18. package/dist/esm/internal/date-time-picker-container.js +6 -1
  19. package/dist/esm/internal/fixed-layer-menu.js +4 -0
  20. package/dist/esm/internal/menu.js +4 -0
  21. package/dist/types/components/date-picker.d.ts +3 -0
  22. package/dist/types/components/date-time-picker.d.ts +3 -0
  23. package/dist/types/internal/date-time-picker-container.d.ts +3 -0
  24. package/dist/types/internal/fixed-layer-menu.d.ts +3 -0
  25. package/dist/types/internal/menu.d.ts +3 -0
  26. package/dist/types/types.d.ts +0 -2
  27. package/dist/types-ts4.5/components/date-picker.d.ts +3 -0
  28. package/dist/types-ts4.5/components/date-time-picker.d.ts +3 -0
  29. package/dist/types-ts4.5/internal/date-time-picker-container.d.ts +3 -0
  30. package/dist/types-ts4.5/internal/fixed-layer-menu.d.ts +3 -0
  31. package/dist/types-ts4.5/internal/menu.d.ts +3 -0
  32. package/dist/types-ts4.5/types.d.ts +0 -2
  33. package/extract-react-types/date-picker-props.tsx +1 -1
  34. package/extract-react-types/time-picker-props.tsx +1 -1
  35. package/package.json +114 -116
  36. package/report.api.md +424 -436
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/datetime-picker"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -32,171 +33,167 @@ export type Appearance = 'default' | 'none' | 'subtle';
32
33
 
33
34
  // @public (undocumented)
34
35
  export const DatePicker: ForwardRefExoticComponent<
35
- Pick<
36
- Pick<
37
- Omit<DatePickerProps_2, keyof WithAnalyticsEventsProps>,
38
- | 'dateFormat'
39
- | 'formatDisplayLabel'
40
- | 'isOpen'
41
- | 'maxDate'
42
- | 'minDate'
43
- | 'nextMonthLabel'
44
- | 'parseInputValue'
45
- | 'placeholder'
46
- | 'previousMonthLabel'
47
- | 'testId'
48
- | 'value'
49
- | 'weekStartDay'
50
- > &
51
- Partial<
52
- Pick<
53
- Omit<DatePickerProps_2, keyof WithAnalyticsEventsProps>,
54
- | 'appearance'
55
- | 'autoFocus'
56
- | 'defaultIsOpen'
57
- | 'defaultValue'
58
- | 'disabled'
59
- | 'disabledDateFilter'
60
- | 'hideIcon'
61
- | 'icon'
62
- | 'id'
63
- | 'innerProps'
64
- | 'isDisabled'
65
- | 'isInvalid'
66
- | 'locale'
67
- | 'name'
68
- | 'onBlur'
69
- | 'onChange'
70
- | 'onFocus'
71
- | 'selectProps'
72
- | 'spacing'
73
- >
74
- > &
75
- Partial<
76
- Pick<
77
- {
78
- appearance: Appearance;
79
- autoFocus: boolean;
80
- defaultIsOpen: boolean;
81
- defaultValue: string;
82
- disabled: string[];
83
- disabledDateFilter: (_: string) => boolean;
84
- hideIcon: boolean;
85
- icon: ComponentType<
86
- DropdownIndicatorProps<OptionType, boolean, GroupType<OptionType>>
87
- >;
88
- id: string;
89
- innerProps: {};
90
- isDisabled: boolean;
91
- isInvalid: boolean;
92
- name: string;
93
- onBlur: (_event: FocusEvent_2<HTMLInputElement>) => void;
94
- onChange: (_value: string) => void;
95
- onFocus: (_event: FocusEvent_2<HTMLInputElement>) => void;
96
- selectProps: {};
97
- spacing: Spacing;
98
- locale: string;
99
- },
100
- never
101
- >
102
- > &
103
- RefAttributes<any> &
104
- WithContextProps,
105
- | 'analyticsContext'
106
- | 'appearance'
107
- | 'autoFocus'
108
- | 'dateFormat'
109
- | 'defaultIsOpen'
110
- | 'defaultValue'
111
- | 'disabled'
112
- | 'disabledDateFilter'
113
- | 'formatDisplayLabel'
114
- | 'hideIcon'
115
- | 'icon'
116
- | 'id'
117
- | 'innerProps'
118
- | 'isDisabled'
119
- | 'isInvalid'
120
- | 'isOpen'
121
- | 'key'
122
- | 'locale'
123
- | 'maxDate'
124
- | 'minDate'
125
- | 'name'
126
- | 'nextMonthLabel'
127
- | 'onBlur'
128
- | 'onChange'
129
- | 'onFocus'
130
- | 'parseInputValue'
131
- | 'placeholder'
132
- | 'previousMonthLabel'
133
- | 'selectProps'
134
- | 'spacing'
135
- | 'testId'
136
- | 'value'
137
- | 'weekStartDay'
138
- > &
139
- RefAttributes<any>
36
+ Pick<
37
+ Pick<
38
+ Omit<DatePickerProps_2, keyof WithAnalyticsEventsProps>,
39
+ | 'dateFormat'
40
+ | 'formatDisplayLabel'
41
+ | 'isOpen'
42
+ | 'maxDate'
43
+ | 'minDate'
44
+ | 'nextMonthLabel'
45
+ | 'parseInputValue'
46
+ | 'placeholder'
47
+ | 'previousMonthLabel'
48
+ | 'testId'
49
+ | 'value'
50
+ | 'weekStartDay'
51
+ > &
52
+ Partial<
53
+ Pick<
54
+ Omit<DatePickerProps_2, keyof WithAnalyticsEventsProps>,
55
+ | 'appearance'
56
+ | 'autoFocus'
57
+ | 'defaultIsOpen'
58
+ | 'defaultValue'
59
+ | 'disabled'
60
+ | 'disabledDateFilter'
61
+ | 'hideIcon'
62
+ | 'icon'
63
+ | 'id'
64
+ | 'innerProps'
65
+ | 'isDisabled'
66
+ | 'isInvalid'
67
+ | 'locale'
68
+ | 'name'
69
+ | 'onBlur'
70
+ | 'onChange'
71
+ | 'onFocus'
72
+ | 'selectProps'
73
+ | 'spacing'
74
+ >
75
+ > &
76
+ Partial<
77
+ Pick<
78
+ {
79
+ appearance: Appearance;
80
+ autoFocus: boolean;
81
+ defaultIsOpen: boolean;
82
+ defaultValue: string;
83
+ disabled: string[];
84
+ disabledDateFilter: (_: string) => boolean;
85
+ hideIcon: boolean;
86
+ icon: ComponentType<DropdownIndicatorProps<OptionType, boolean, GroupType<OptionType>>>;
87
+ id: string;
88
+ innerProps: {};
89
+ isDisabled: boolean;
90
+ isInvalid: boolean;
91
+ name: string;
92
+ onBlur: (_event: FocusEvent_2<HTMLInputElement>) => void;
93
+ onChange: (_value: string) => void;
94
+ onFocus: (_event: FocusEvent_2<HTMLInputElement>) => void;
95
+ selectProps: {};
96
+ spacing: Spacing;
97
+ locale: string;
98
+ },
99
+ never
100
+ >
101
+ > &
102
+ RefAttributes<any> &
103
+ WithContextProps,
104
+ | 'analyticsContext'
105
+ | 'appearance'
106
+ | 'autoFocus'
107
+ | 'dateFormat'
108
+ | 'defaultIsOpen'
109
+ | 'defaultValue'
110
+ | 'disabled'
111
+ | 'disabledDateFilter'
112
+ | 'formatDisplayLabel'
113
+ | 'hideIcon'
114
+ | 'icon'
115
+ | 'id'
116
+ | 'innerProps'
117
+ | 'isDisabled'
118
+ | 'isInvalid'
119
+ | 'isOpen'
120
+ | 'key'
121
+ | 'locale'
122
+ | 'maxDate'
123
+ | 'minDate'
124
+ | 'name'
125
+ | 'nextMonthLabel'
126
+ | 'onBlur'
127
+ | 'onChange'
128
+ | 'onFocus'
129
+ | 'parseInputValue'
130
+ | 'placeholder'
131
+ | 'previousMonthLabel'
132
+ | 'selectProps'
133
+ | 'spacing'
134
+ | 'testId'
135
+ | 'value'
136
+ | 'weekStartDay'
137
+ > &
138
+ RefAttributes<any>
140
139
  >;
141
140
 
142
141
  // @public (undocumented)
143
142
  const datePickerDefaultProps: {
144
- appearance: Appearance;
145
- autoFocus: boolean;
146
- defaultIsOpen: boolean;
147
- defaultValue: string;
148
- disabled: string[];
149
- disabledDateFilter: (_: string) => boolean;
150
- hideIcon: boolean;
151
- icon: ComponentType<
152
- DropdownIndicatorProps<OptionType, boolean, GroupType<OptionType>>
153
- >;
154
- id: string;
155
- innerProps: {};
156
- isDisabled: boolean;
157
- isInvalid: boolean;
158
- name: string;
159
- onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
160
- onChange: (_value: string) => void;
161
- onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
162
- selectProps: {};
163
- spacing: Spacing;
164
- locale: string;
143
+ appearance: Appearance;
144
+ autoFocus: boolean;
145
+ defaultIsOpen: boolean;
146
+ defaultValue: string;
147
+ disabled: string[];
148
+ disabledDateFilter: (_: string) => boolean;
149
+ hideIcon: boolean;
150
+ icon: ComponentType<DropdownIndicatorProps<OptionType, boolean, GroupType<OptionType>>>;
151
+ id: string;
152
+ innerProps: {};
153
+ isDisabled: boolean;
154
+ isInvalid: boolean;
155
+ name: string;
156
+ onBlur: (_event: React.FocusEvent<HTMLInputElement>) => void;
157
+ onChange: (_value: string) => void;
158
+ onFocus: (_event: React.FocusEvent<HTMLInputElement>) => void;
159
+ selectProps: {};
160
+ spacing: Spacing;
161
+ locale: string;
165
162
  };
166
163
 
167
164
  // @public (undocumented)
168
165
  export interface DatePickerProps extends WithAnalyticsEventsProps {
169
- appearance?: Appearance;
170
- autoFocus?: boolean;
171
- dateFormat?: string;
172
- defaultIsOpen?: boolean;
173
- defaultValue?: string;
174
- disabled?: string[];
175
- disabledDateFilter?: (date: string) => boolean;
176
- formatDisplayLabel?: (value: string, dateFormat: string) => string;
177
- hideIcon?: boolean;
178
- icon?: React.ComponentType<DropdownIndicatorProps<OptionType>>;
179
- id?: string;
180
- innerProps?: React.AllHTMLAttributes<HTMLElement>;
181
- isDisabled?: boolean;
182
- isInvalid?: boolean;
183
- isOpen?: boolean;
184
- locale?: string;
185
- maxDate?: string;
186
- minDate?: string;
187
- name?: string;
188
- nextMonthLabel?: string;
189
- onBlur?: React.FocusEventHandler<HTMLInputElement>;
190
- onChange?: (value: string) => void;
191
- onFocus?: React.FocusEventHandler<HTMLInputElement>;
192
- parseInputValue?: (date: string, dateFormat: string) => Date;
193
- placeholder?: string;
194
- previousMonthLabel?: string;
195
- selectProps?: SelectProps<any>;
196
- spacing?: Spacing;
197
- testId?: string;
198
- value?: string;
199
- weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
166
+ appearance?: Appearance;
167
+ autoFocus?: boolean;
168
+ dateFormat?: string;
169
+ defaultIsOpen?: boolean;
170
+ defaultValue?: string;
171
+ disabled?: string[];
172
+ disabledDateFilter?: (date: string) => boolean;
173
+ formatDisplayLabel?: (value: string, dateFormat: string) => string;
174
+ hideIcon?: boolean;
175
+ icon?: React.ComponentType<DropdownIndicatorProps<OptionType>>;
176
+ id?: string;
177
+ innerProps?: React.AllHTMLAttributes<HTMLElement>;
178
+ isDisabled?: boolean;
179
+ isInvalid?: boolean;
180
+ isOpen?: boolean;
181
+ locale?: string;
182
+ maxDate?: string;
183
+ minDate?: string;
184
+ name?: string;
185
+ nextMonthLabel?: string;
186
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
187
+ onChange?: (value: string) => void;
188
+ onFocus?: React.FocusEventHandler<HTMLInputElement>;
189
+ parseInputValue?: (date: string, dateFormat: string) => Date;
190
+ placeholder?: string;
191
+ previousMonthLabel?: string;
192
+ selectProps?: SelectProps<any>;
193
+ spacing?: Spacing;
194
+ testId?: string;
195
+ value?: string;
196
+ weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
200
197
  }
201
198
 
202
199
  // @public (undocumented)
@@ -204,308 +201,299 @@ type DatePickerProps_2 = typeof datePickerDefaultProps & DatePickerProps;
204
201
 
205
202
  // @public (undocumented)
206
203
  export const DateTimePicker: React_2.ForwardRefExoticComponent<
207
- Pick<
208
- Pick<
209
- Omit<DateTimePickerProps_2, keyof WithAnalyticsEventsProps>,
210
- 'dateFormat' | 'parseValue' | 'testId' | 'timeFormat' | 'value'
211
- > &
212
- Partial<
213
- Pick<
214
- Omit<DateTimePickerProps_2, keyof WithAnalyticsEventsProps>,
215
- | 'appearance'
216
- | 'autoFocus'
217
- | 'datePickerProps'
218
- | 'datePickerSelectProps'
219
- | 'defaultValue'
220
- | 'id'
221
- | 'innerProps'
222
- | 'isDisabled'
223
- | 'isInvalid'
224
- | 'locale'
225
- | 'name'
226
- | 'onBlur'
227
- | 'onChange'
228
- | 'onFocus'
229
- | 'spacing'
230
- | 'timeIsEditable'
231
- | 'timePickerProps'
232
- | 'timePickerSelectProps'
233
- | 'times'
234
- >
235
- > &
236
- Partial<
237
- Pick<
238
- {
239
- appearance: string;
240
- autoFocus: boolean;
241
- isDisabled: boolean;
242
- name: string;
243
- onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
244
- onChange: (_value: string) => void;
245
- onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
246
- innerProps: {};
247
- id: string;
248
- defaultValue: string;
249
- timeIsEditable: boolean;
250
- isInvalid: boolean;
251
- datePickerProps: {};
252
- timePickerProps: {};
253
- datePickerSelectProps: {};
254
- timePickerSelectProps: {};
255
- times: string[];
256
- spacing: string;
257
- locale: string;
258
- },
259
- never
260
- >
261
- > &
262
- React_2.RefAttributes<any> &
263
- WithContextProps,
264
- | 'analyticsContext'
265
- | 'appearance'
266
- | 'autoFocus'
267
- | 'dateFormat'
268
- | 'datePickerProps'
269
- | 'datePickerSelectProps'
270
- | 'defaultValue'
271
- | 'id'
272
- | 'innerProps'
273
- | 'isDisabled'
274
- | 'isInvalid'
275
- | 'key'
276
- | 'locale'
277
- | 'name'
278
- | 'onBlur'
279
- | 'onChange'
280
- | 'onFocus'
281
- | 'parseValue'
282
- | 'spacing'
283
- | 'testId'
284
- | 'timeFormat'
285
- | 'timeIsEditable'
286
- | 'timePickerProps'
287
- | 'timePickerSelectProps'
288
- | 'times'
289
- | 'value'
290
- > &
291
- React_2.RefAttributes<any>
204
+ Pick<
205
+ Pick<
206
+ Omit<DateTimePickerProps_2, keyof WithAnalyticsEventsProps>,
207
+ 'dateFormat' | 'parseValue' | 'testId' | 'timeFormat' | 'value'
208
+ > &
209
+ Partial<
210
+ Pick<
211
+ Omit<DateTimePickerProps_2, keyof WithAnalyticsEventsProps>,
212
+ | 'appearance'
213
+ | 'autoFocus'
214
+ | 'datePickerProps'
215
+ | 'datePickerSelectProps'
216
+ | 'defaultValue'
217
+ | 'id'
218
+ | 'innerProps'
219
+ | 'isDisabled'
220
+ | 'isInvalid'
221
+ | 'locale'
222
+ | 'name'
223
+ | 'onBlur'
224
+ | 'onChange'
225
+ | 'onFocus'
226
+ | 'spacing'
227
+ | 'timeIsEditable'
228
+ | 'timePickerProps'
229
+ | 'timePickerSelectProps'
230
+ | 'times'
231
+ >
232
+ > &
233
+ Partial<
234
+ Pick<
235
+ {
236
+ appearance: string;
237
+ autoFocus: boolean;
238
+ isDisabled: boolean;
239
+ name: string;
240
+ onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
241
+ onChange: (_value: string) => void;
242
+ onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
243
+ innerProps: {};
244
+ id: string;
245
+ defaultValue: string;
246
+ timeIsEditable: boolean;
247
+ isInvalid: boolean;
248
+ datePickerProps: {};
249
+ timePickerProps: {};
250
+ datePickerSelectProps: {};
251
+ timePickerSelectProps: {};
252
+ times: string[];
253
+ spacing: string;
254
+ locale: string;
255
+ },
256
+ never
257
+ >
258
+ > &
259
+ React_2.RefAttributes<any> &
260
+ WithContextProps,
261
+ | 'analyticsContext'
262
+ | 'appearance'
263
+ | 'autoFocus'
264
+ | 'dateFormat'
265
+ | 'datePickerProps'
266
+ | 'datePickerSelectProps'
267
+ | 'defaultValue'
268
+ | 'id'
269
+ | 'innerProps'
270
+ | 'isDisabled'
271
+ | 'isInvalid'
272
+ | 'key'
273
+ | 'locale'
274
+ | 'name'
275
+ | 'onBlur'
276
+ | 'onChange'
277
+ | 'onFocus'
278
+ | 'parseValue'
279
+ | 'spacing'
280
+ | 'testId'
281
+ | 'timeFormat'
282
+ | 'timeIsEditable'
283
+ | 'timePickerProps'
284
+ | 'timePickerSelectProps'
285
+ | 'times'
286
+ | 'value'
287
+ > &
288
+ React_2.RefAttributes<any>
292
289
  >;
293
290
 
294
291
  // @public (undocumented)
295
292
  const dateTimePickerDefaultProps: {
296
- appearance: string;
297
- autoFocus: boolean;
298
- isDisabled: boolean;
299
- name: string;
300
- onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
301
- onChange: (_value: string) => void;
302
- onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
303
- innerProps: {};
304
- id: string;
305
- defaultValue: string;
306
- timeIsEditable: boolean;
307
- isInvalid: boolean;
308
- datePickerProps: {};
309
- timePickerProps: {};
310
- datePickerSelectProps: {};
311
- timePickerSelectProps: {};
312
- times: string[];
313
- spacing: string;
314
- locale: string;
293
+ appearance: string;
294
+ autoFocus: boolean;
295
+ isDisabled: boolean;
296
+ name: string;
297
+ onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
298
+ onChange: (_value: string) => void;
299
+ onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
300
+ innerProps: {};
301
+ id: string;
302
+ defaultValue: string;
303
+ timeIsEditable: boolean;
304
+ isInvalid: boolean;
305
+ datePickerProps: {};
306
+ timePickerProps: {};
307
+ datePickerSelectProps: {};
308
+ timePickerSelectProps: {};
309
+ times: string[];
310
+ spacing: string;
311
+ locale: string;
315
312
  };
316
313
 
317
314
  // @public (undocumented)
318
315
  export interface DateTimePickerProps extends WithAnalyticsEventsProps {
319
- appearance?: Appearance;
320
- autoFocus?: boolean;
321
- dateFormat?: string;
322
- datePickerProps?: DatePickerProps;
323
- datePickerSelectProps?: SelectProps<any>;
324
- defaultValue?: string;
325
- id?: string;
326
- innerProps?: React_2.AllHTMLAttributes<HTMLElement>;
327
- isDisabled?: boolean;
328
- isInvalid?: boolean;
329
- locale?: string;
330
- name?: string;
331
- onBlur?: React_2.FocusEventHandler<HTMLInputElement>;
332
- onChange?: (value: string) => void;
333
- onFocus?: React_2.FocusEventHandler<HTMLInputElement>;
334
- parseValue?: (
335
- dateTimeValue: string,
336
- date: string,
337
- time: string,
338
- timezone: string,
339
- ) => {
340
- dateValue: string;
341
- timeValue: string;
342
- zoneValue: string;
343
- };
344
- spacing?: Spacing;
345
- testId?: string;
346
- timeFormat?: string;
347
- timeIsEditable?: boolean;
348
- timePickerProps?: TimePickerProps;
349
- timePickerSelectProps?: SelectProps<any>;
350
- times?: Array<string>;
351
- value?: string;
316
+ appearance?: Appearance;
317
+ autoFocus?: boolean;
318
+ dateFormat?: string;
319
+ datePickerProps?: DatePickerProps;
320
+ datePickerSelectProps?: SelectProps<any>;
321
+ defaultValue?: string;
322
+ id?: string;
323
+ innerProps?: React_2.AllHTMLAttributes<HTMLElement>;
324
+ isDisabled?: boolean;
325
+ isInvalid?: boolean;
326
+ locale?: string;
327
+ name?: string;
328
+ onBlur?: React_2.FocusEventHandler<HTMLInputElement>;
329
+ onChange?: (value: string) => void;
330
+ onFocus?: React_2.FocusEventHandler<HTMLInputElement>;
331
+ parseValue?: (
332
+ dateTimeValue: string,
333
+ date: string,
334
+ time: string,
335
+ timezone: string,
336
+ ) => {
337
+ dateValue: string;
338
+ timeValue: string;
339
+ zoneValue: string;
340
+ };
341
+ spacing?: Spacing;
342
+ testId?: string;
343
+ timeFormat?: string;
344
+ timeIsEditable?: boolean;
345
+ timePickerProps?: TimePickerProps;
346
+ timePickerSelectProps?: SelectProps<any>;
347
+ times?: Array<string>;
348
+ value?: string;
352
349
  }
353
350
 
354
351
  // @public (undocumented)
355
- type DateTimePickerProps_2 = typeof dateTimePickerDefaultProps &
356
- DateTimePickerProps;
352
+ type DateTimePickerProps_2 = typeof dateTimePickerDefaultProps & DateTimePickerProps;
357
353
 
358
354
  // @public (undocumented)
359
355
  export type Spacing = 'compact' | 'default';
360
356
 
361
357
  // @public (undocumented)
362
358
  export const TimePicker: React_2.ForwardRefExoticComponent<
363
- Pick<
364
- Pick<
365
- Omit<TimePickerProps_2, keyof WithAnalyticsEventsProps>,
366
- | 'formatDisplayLabel'
367
- | 'isOpen'
368
- | 'placeholder'
369
- | 'testId'
370
- | 'timeFormat'
371
- | 'value'
372
- > &
373
- Partial<
374
- Pick<
375
- Omit<TimePickerProps_2, keyof WithAnalyticsEventsProps>,
376
- | 'appearance'
377
- | 'autoFocus'
378
- | 'defaultIsOpen'
379
- | 'defaultValue'
380
- | 'hideIcon'
381
- | 'id'
382
- | 'innerProps'
383
- | 'isDisabled'
384
- | 'isInvalid'
385
- | 'locale'
386
- | 'name'
387
- | 'onBlur'
388
- | 'onChange'
389
- | 'onFocus'
390
- | 'parseInputValue'
391
- | 'selectProps'
392
- | 'spacing'
393
- | 'timeIsEditable'
394
- | 'times'
395
- >
396
- > &
397
- Partial<
398
- Pick<
399
- {
400
- appearance: Appearance;
401
- autoFocus: boolean;
402
- defaultIsOpen: boolean;
403
- defaultValue: string;
404
- hideIcon: boolean;
405
- id: string;
406
- innerProps: {};
407
- isDisabled: boolean;
408
- isInvalid: boolean;
409
- name: string;
410
- onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
411
- onChange: (_value: string) => void;
412
- onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
413
- parseInputValue: (
414
- time: string,
415
- _timeFormat: string,
416
- ) => Date | string;
417
- selectProps: {};
418
- spacing: Spacing;
419
- times: string[];
420
- timeIsEditable: boolean;
421
- locale: string;
422
- },
423
- never
424
- >
425
- > &
426
- React_2.RefAttributes<any> &
427
- WithContextProps,
428
- | 'analyticsContext'
429
- | 'appearance'
430
- | 'autoFocus'
431
- | 'defaultIsOpen'
432
- | 'defaultValue'
433
- | 'formatDisplayLabel'
434
- | 'hideIcon'
435
- | 'id'
436
- | 'innerProps'
437
- | 'isDisabled'
438
- | 'isInvalid'
439
- | 'isOpen'
440
- | 'key'
441
- | 'locale'
442
- | 'name'
443
- | 'onBlur'
444
- | 'onChange'
445
- | 'onFocus'
446
- | 'parseInputValue'
447
- | 'placeholder'
448
- | 'selectProps'
449
- | 'spacing'
450
- | 'testId'
451
- | 'timeFormat'
452
- | 'timeIsEditable'
453
- | 'times'
454
- | 'value'
455
- > &
456
- React_2.RefAttributes<any>
359
+ Pick<
360
+ Pick<
361
+ Omit<TimePickerProps_2, keyof WithAnalyticsEventsProps>,
362
+ 'formatDisplayLabel' | 'isOpen' | 'placeholder' | 'testId' | 'timeFormat' | 'value'
363
+ > &
364
+ Partial<
365
+ Pick<
366
+ Omit<TimePickerProps_2, keyof WithAnalyticsEventsProps>,
367
+ | 'appearance'
368
+ | 'autoFocus'
369
+ | 'defaultIsOpen'
370
+ | 'defaultValue'
371
+ | 'hideIcon'
372
+ | 'id'
373
+ | 'innerProps'
374
+ | 'isDisabled'
375
+ | 'isInvalid'
376
+ | 'locale'
377
+ | 'name'
378
+ | 'onBlur'
379
+ | 'onChange'
380
+ | 'onFocus'
381
+ | 'parseInputValue'
382
+ | 'selectProps'
383
+ | 'spacing'
384
+ | 'timeIsEditable'
385
+ | 'times'
386
+ >
387
+ > &
388
+ Partial<
389
+ Pick<
390
+ {
391
+ appearance: Appearance;
392
+ autoFocus: boolean;
393
+ defaultIsOpen: boolean;
394
+ defaultValue: string;
395
+ hideIcon: boolean;
396
+ id: string;
397
+ innerProps: {};
398
+ isDisabled: boolean;
399
+ isInvalid: boolean;
400
+ name: string;
401
+ onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
402
+ onChange: (_value: string) => void;
403
+ onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
404
+ parseInputValue: (time: string, _timeFormat: string) => Date | string;
405
+ selectProps: {};
406
+ spacing: Spacing;
407
+ times: string[];
408
+ timeIsEditable: boolean;
409
+ locale: string;
410
+ },
411
+ never
412
+ >
413
+ > &
414
+ React_2.RefAttributes<any> &
415
+ WithContextProps,
416
+ | 'analyticsContext'
417
+ | 'appearance'
418
+ | 'autoFocus'
419
+ | 'defaultIsOpen'
420
+ | 'defaultValue'
421
+ | 'formatDisplayLabel'
422
+ | 'hideIcon'
423
+ | 'id'
424
+ | 'innerProps'
425
+ | 'isDisabled'
426
+ | 'isInvalid'
427
+ | 'isOpen'
428
+ | 'key'
429
+ | 'locale'
430
+ | 'name'
431
+ | 'onBlur'
432
+ | 'onChange'
433
+ | 'onFocus'
434
+ | 'parseInputValue'
435
+ | 'placeholder'
436
+ | 'selectProps'
437
+ | 'spacing'
438
+ | 'testId'
439
+ | 'timeFormat'
440
+ | 'timeIsEditable'
441
+ | 'times'
442
+ | 'value'
443
+ > &
444
+ React_2.RefAttributes<any>
457
445
  >;
458
446
 
459
447
  // @public (undocumented)
460
448
  const timePickerDefaultProps: {
461
- appearance: Appearance;
462
- autoFocus: boolean;
463
- defaultIsOpen: boolean;
464
- defaultValue: string;
465
- hideIcon: boolean;
466
- id: string;
467
- innerProps: {};
468
- isDisabled: boolean;
469
- isInvalid: boolean;
470
- name: string;
471
- onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
472
- onChange: (_value: string) => void;
473
- onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
474
- parseInputValue: (time: string, _timeFormat: string) => Date | string;
475
- selectProps: {};
476
- spacing: Spacing;
477
- times: string[];
478
- timeIsEditable: boolean;
479
- locale: string;
449
+ appearance: Appearance;
450
+ autoFocus: boolean;
451
+ defaultIsOpen: boolean;
452
+ defaultValue: string;
453
+ hideIcon: boolean;
454
+ id: string;
455
+ innerProps: {};
456
+ isDisabled: boolean;
457
+ isInvalid: boolean;
458
+ name: string;
459
+ onBlur: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
460
+ onChange: (_value: string) => void;
461
+ onFocus: (_event: React_2.FocusEvent<HTMLInputElement>) => void;
462
+ parseInputValue: (time: string, _timeFormat: string) => Date | string;
463
+ selectProps: {};
464
+ spacing: Spacing;
465
+ times: string[];
466
+ timeIsEditable: boolean;
467
+ locale: string;
480
468
  };
481
469
 
482
470
  // @public (undocumented)
483
471
  export interface TimePickerProps extends WithAnalyticsEventsProps {
484
- appearance?: Appearance;
485
- autoFocus?: boolean;
486
- defaultIsOpen?: boolean;
487
- defaultValue?: string;
488
- formatDisplayLabel?: (time: string, timeFormat: string) => string;
489
- hideIcon?: boolean;
490
- id?: string;
491
- innerProps?: React_2.AllHTMLAttributes<HTMLElement>;
492
- isDisabled?: boolean;
493
- isInvalid?: boolean;
494
- isOpen?: boolean;
495
- locale?: string;
496
- name?: string;
497
- onBlur?: React_2.FocusEventHandler<HTMLElement>;
498
- onChange?: (value: string) => void;
499
- onFocus?: React_2.FocusEventHandler<HTMLElement>;
500
- parseInputValue?: (time: string, timeFormat: string) => Date | string;
501
- placeholder?: string;
502
- selectProps?: SelectProps<any>;
503
- spacing?: Spacing;
504
- testId?: string;
505
- timeFormat?: string;
506
- timeIsEditable?: boolean;
507
- times?: string[];
508
- value?: string;
472
+ appearance?: Appearance;
473
+ autoFocus?: boolean;
474
+ defaultIsOpen?: boolean;
475
+ defaultValue?: string;
476
+ formatDisplayLabel?: (time: string, timeFormat: string) => string;
477
+ hideIcon?: boolean;
478
+ id?: string;
479
+ innerProps?: React_2.AllHTMLAttributes<HTMLElement>;
480
+ isDisabled?: boolean;
481
+ isInvalid?: boolean;
482
+ isOpen?: boolean;
483
+ locale?: string;
484
+ name?: string;
485
+ onBlur?: React_2.FocusEventHandler<HTMLElement>;
486
+ onChange?: (value: string) => void;
487
+ onFocus?: React_2.FocusEventHandler<HTMLElement>;
488
+ parseInputValue?: (time: string, timeFormat: string) => Date | string;
489
+ placeholder?: string;
490
+ selectProps?: SelectProps<any>;
491
+ spacing?: Spacing;
492
+ testId?: string;
493
+ timeFormat?: string;
494
+ timeIsEditable?: boolean;
495
+ times?: string[];
496
+ value?: string;
509
497
  }
510
498
 
511
499
  // @public (undocumented)
@@ -522,7 +510,7 @@ type TimePickerProps_2 = typeof timePickerDefaultProps & TimePickerProps;
522
510
 
523
511
  ```json
524
512
  {
525
- "react": "^16.8.0"
513
+ "react": "^16.8.0"
526
514
  }
527
515
  ```
528
516