UNPKG

@wix/design-system

Version:

@wix/design-system

56 lines 2.46 kB
declare class Calendar extends React.PureComponent<any, any, any> { static displayName: string; static defaultProps: { className: string; filterDate: () => boolean; dateIndication: () => null; shouldCloseOnSelect: boolean; onClose: () => void; autoFocus: boolean; excludePastDates: boolean; selectionMode: string; showMonthDropdown: boolean; showYearDropdown: boolean; numOfMonths: number; size: string; }; static areValuesEqual(value1?: {}, value2?: {}): boolean; static optionalParse: any; /** Return a value in which all string-dates are parsed into Date objects */ static parseValue: (value: import("./BaseCalendar/BaseCalendar.types").BaseCalendarProps["value"]) => Date | { from?: Date; to?: Date; }; static nextDay: (date: Date | number | string) => Date; static prevDay: (date: Date | number | string) => Date; static isSingleDay(value: any): value is Date; static isRangeValue(value: any): boolean; static getUpdatedMonth: (nextPropsValue: any, numOfMonths: any, currentMonthDate: any) => Date | null | undefined; constructor(props: any); state: { month: Date; }; UNSAFE_componentWillReceiveProps(nextProps: any): void; _setMonth: (month: any) => void; _getLocaleUtilsFactory: (locale: any, firstDayOfWeek: any) => { formatMonthTitle: (date: Date | number) => string | undefined; formatMonthAndYear: (date: Date | number) => string | undefined; formatMonthsRange: (firstDate: Date | number, secondDate: Date | number) => string; formatWeekdayShort: (index: number) => string; formatWeekdayLong: (index: import("../common/LocaleUtils/LocaleUtils").WeekdayNumber) => string; formatDay: (date: Date | number) => string; getMonths: () => (string | undefined)[]; getFirstDayOfWeek: () => import("../common/LocaleUtils/LocaleUtils").WeekdayNumber; formatYear: (date: Date | number) => string; }; _createCaptionElement: () => React.JSX.Element; _getLocale(): any; render(): React.JSX.Element; } declare namespace Calendar { export { WixStyleReactEnvironmentContext as contextType }; } export default Calendar; import React from 'react'; import { WixStyleReactEnvironmentContext } from '../WixStyleReactEnvironmentProvider/context'; //# sourceMappingURL=Calendar.d.ts.map