UNPKG

desmy-react

Version:

Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.

29 lines (28 loc) 1.11 kB
import { default as React, Component } from 'react'; import { DatePickerProps } from '../apis/SharedProps'; import { DateContextProps } from './DateContext'; interface DatePickerState { wasOpenBeforeBlur: boolean; isFocusTriggered: boolean; } declare class DatePickerProvider extends Component<DatePickerProps, DatePickerState> { static contextType: React.Context<DateContextProps | undefined>; context: DateContextProps; private dropdownContentRef; parentContainerRef: React.RefObject<HTMLDivElement | null>; inputRef: React.RefObject<HTMLInputElement | null>; private saveDateValue; constructor(props: DatePickerProps); componentDidMount(): void; componentWillUnmount(): void; componentDidUpdate(): void; handleDefault: () => void; convertTo24Hour(time: string): string; handleClickOutside: (event: MouseEvent) => void; handleInputFocus: () => void; handleDateSelection: () => void; handleClose: () => void; handleVisibilityChange: () => void; render(): import("react/jsx-runtime").JSX.Element; } export default DatePickerProvider;