@skbkontur/db-viewer-ui
Version:
Database Viewer with custom configuration
33 lines (32 loc) • 946 B
TypeScript
import { Time, TimeZone } from "@skbkontur/edi-ui";
import React from "react";
interface DatePickerProps {
value: Nullable<Date>;
onChange: (value: Nullable<Date>) => void;
width?: React.ReactText;
minDate?: Date | string;
maxDate?: Date | string;
isHoliday?: (day: string, isWeekend: boolean) => boolean;
timeZone?: TimeZone | number;
defaultTime?: Time;
disabled?: boolean;
error?: boolean;
}
interface DatePickerState {
date: string;
}
export declare class DatePicker extends React.Component<DatePickerProps, DatePickerState> {
state: {
date: string;
};
static defaultProps: {
timeZone: TimeZone;
};
componentDidMount(): void;
componentDidUpdate(prevProps: DatePickerProps): void;
render(): React.ReactElement;
private readonly handleChange;
private readonly convertStringToDate;
private readonly convertDateToStringWithTimezone;
}
export {};