mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
🤖 Merge PR #46111 [@types/react-dates] two new fields to existing shapes by @njlg
Co-authored-by: Nathan Levin-Greenhaw <nlevin-greenhaw@cmdtymkt.com>
This commit is contained in:
parent
6615068204
commit
b27845dbea
7
types/react-dates/index.d.ts
vendored
7
types/react-dates/index.d.ts
vendored
@ -26,6 +26,9 @@ declare namespace ReactDates {
|
||||
// shapes/CalendarInfoPositionShape.js
|
||||
type CalendarInfoPositionShape = 'top' | 'bottom' | 'before' | 'after';
|
||||
|
||||
// shapes/NavPositionShape.js
|
||||
type NavPositionShape = 'navPositionTop' | 'navPositionBottom';
|
||||
|
||||
// shapes/DateRangePickerShape.js
|
||||
interface DateRangePickerShape {
|
||||
// required props for a functional interactive DateRangePicker
|
||||
@ -102,6 +105,8 @@ declare namespace ReactDates {
|
||||
verticalSpacing?: number;
|
||||
|
||||
// navigation related props
|
||||
dayPickerNavigationInlineStyles?: Record<string, any>;
|
||||
navPosition?: NavPositionShape;
|
||||
navPrev?: string | JSX.Element;
|
||||
navNext?: string | JSX.Element;
|
||||
onPrevMonthClick?: (newCurrentMonth: momentPropTypes.momentObj) => void;
|
||||
@ -209,6 +214,8 @@ declare namespace ReactDates {
|
||||
horizontalMonthPadding?: number;
|
||||
|
||||
// navigation related props
|
||||
dayPickerNavigationInlineStyles?: Record<string, any>;
|
||||
navPosition?: NavPositionShape;
|
||||
navPrev?: string | JSX.Element;
|
||||
navNext?: string | JSX.Element;
|
||||
onPrevMonthClick?: (newCurrentMonth: momentPropTypes.momentObj) => void;
|
||||
|
||||
@ -67,6 +67,8 @@ class SingleDatePickerFullTest extends React.Component {
|
||||
verticalHeight={5}
|
||||
regular={true}
|
||||
small={true}
|
||||
navPosition="navPositionTop"
|
||||
dayPickerNavigationInlineStyles={{width: '10'}}
|
||||
/>
|
||||
}
|
||||
}
|
||||
@ -125,6 +127,8 @@ class DateRangePickerFullTest extends React.Component {
|
||||
monthFormat="MM"
|
||||
renderDayContents={day => day.toString()}
|
||||
onClose={(final:any) =>{}}
|
||||
navPosition="navPositionTop"
|
||||
dayPickerNavigationInlineStyles={{width: '10'}}
|
||||
/>
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user