1
1
declare module "react-multi-date-picker" {
2
- import React from "react" ;
2
+ import React , { HTMLAttributes } from "react" ;
3
3
import DateObject from "react-date-object" ;
4
4
5
5
interface CalendarProps {
@@ -58,15 +58,6 @@ declare module "react-multi-date-picker" {
58
58
* <DatePicker format="MM-DD-YYYY HH:mm:ss" />
59
59
*/
60
60
format ?: string ;
61
- /**
62
- * Enable it if you want to use time picker.
63
- * @example
64
- * <Calendar timePicker />
65
- *
66
- * <DatePicker timePicker />
67
- */
68
- timePicker ?: boolean ;
69
- onlyTimePicker ?: boolean ;
70
61
onlyMonthPicker ?: boolean ;
71
62
onlyYearPicker ?: boolean ;
72
63
/**
@@ -192,13 +183,12 @@ declare module "react-multi-date-picker" {
192
183
selectedDate : DateObject | DateObject [ ] ;
193
184
currentMonth : object ;
194
185
isSameDate ( arg1 : DateObject , arg2 : DateObject ) : boolean ;
195
- } ) : object | void ;
186
+ } ) : HTMLAttributes < HTMLSpanElement > | void ;
196
187
disableMonthPicker ?: boolean ;
197
188
disableYearPicker ?: boolean ;
198
189
/**
199
190
* @example
200
191
* <DatePicker
201
- * timePicker
202
192
* format="Date:YYYY/MM/DD, Time:HH:mm:ss"
203
193
* formattingIgnoreList={["Date", "Time"]}
204
194
* />
@@ -272,6 +262,7 @@ declare module "react-multi-date-picker" {
272
262
disabled ?: boolean ;
273
263
hideMonth ?: boolean ;
274
264
hideYear ?: boolean ;
265
+ shadow ?: boolean ;
275
266
}
276
267
277
268
interface DatePickerProps {
@@ -454,7 +445,8 @@ declare module "react-multi-date-picker/plugins/date_panel" {
454
445
import React , { HTMLAttributes } from "react" ;
455
446
import DateObject from "react-date-object" ;
456
447
457
- interface DatePanelProps extends HTMLAttributes < HTMLDivElement > {
448
+ interface DatePanelProps
449
+ extends Omit < HTMLAttributes < HTMLDivElement > , "children" > {
458
450
position ?: string ;
459
451
disabled ?: boolean ;
460
452
eachDaysInRange ?: boolean ;
@@ -474,7 +466,8 @@ declare module "react-multi-date-picker/plugins/date_panel" {
474
466
declare module "react-multi-date-picker/plugins/date_picker_header" {
475
467
import React , { HTMLAttributes } from "react" ;
476
468
477
- interface DatePickerHeaderProps extends HTMLAttributes < HTMLDivElement > {
469
+ interface DatePickerHeaderProps
470
+ extends Omit < HTMLAttributes < HTMLDivElement > , "children" > {
478
471
position ?: string ;
479
472
disabled ?: boolean ;
480
473
size ?: string ;
@@ -491,7 +484,8 @@ declare module "react-multi-date-picker/plugins/date_picker_header" {
491
484
declare module "react-multi-date-picker/plugins/multi_colors" {
492
485
import React , { HTMLAttributes } from "react" ;
493
486
494
- interface MultiColorsProps extends HTMLAttributes < HTMLDivElement > {
487
+ interface MultiColorsProps
488
+ extends Omit < HTMLAttributes < HTMLDivElement > , "children" > {
495
489
position ?: string ;
496
490
disabled ?: boolean ;
497
491
colors ?: string [ ] ;
@@ -507,7 +501,8 @@ declare module "react-multi-date-picker/plugins/multi_colors" {
507
501
declare module "react-multi-date-picker/plugins/settings" {
508
502
import React , { HTMLAttributes } from "react" ;
509
503
510
- interface SettingsProps extends HTMLAttributes < HTMLDivElement > {
504
+ interface SettingsProps
505
+ extends Omit < HTMLAttributes < HTMLDivElement > , "children" > {
511
506
position ?: string ;
512
507
disabled ?: boolean ;
513
508
calendars ?: string [ ] ;
@@ -566,7 +561,8 @@ declare module "react-multi-date-picker/plugins/settings" {
566
561
declare module "react-multi-date-picker/plugins/toolbar" {
567
562
import React , { HTMLAttributes } from "react" ;
568
563
569
- interface ToolbarProps extends HTMLAttributes < HTMLDivElement > {
564
+ interface ToolbarProps
565
+ extends Omit < HTMLAttributes < HTMLDivElement > , "children" > {
570
566
position ?: string ;
571
567
disabled ?: boolean ;
572
568
className ?: string ;
@@ -592,7 +588,8 @@ declare module "react-multi-date-picker/plugins/weekends" {
592
588
declare module "react-multi-date-picker/plugins/time_picker" {
593
589
import React , { HTMLAttributes } from "react" ;
594
590
595
- interface TimePickerProps extends HTMLAttributes < HTMLDivElement > {
591
+ interface TimePickerProps
592
+ extends Omit < HTMLAttributes < HTMLDivElement > , "children" > {
596
593
position ?: string ;
597
594
disabled ?: boolean ;
598
595
hideSeconds ?: boolean ;
0 commit comments