react-semantic-ui-datepickers
Version:
Datepickers built with Semantic UI for React and Dayzed
22 lines (21 loc) • 1.33 kB
TypeScript
import { DateObj } from 'dayzed';
import { Object, FnsFormatOptions } from './types';
export declare const keys: {
enter: number;
escape: number;
space: number;
};
export declare const isSelectable: (date: Date, minDate?: Date | undefined, maxDate?: Date | undefined) => boolean;
export declare const getToday: (minDate?: Date | undefined, maxDate?: Date | undefined) => DateObj;
export declare const formatDate: (date: Date | null, dateFormat: string, formatOptions?: FnsFormatOptions) => string | undefined;
export declare const omit: (keysToOmit: string[], obj: Object) => {
[x: string]: any;
};
export declare const pick: (keysToPick: string[], obj: Object) => Object;
export declare const moveElementsByN: <T>(n: number, arr: T[]) => T[];
export declare const formatSelectedDate: (selectedDate: Date | Date[] | null | undefined, dateFormat: string, formatOptions?: FnsFormatOptions) => string | undefined;
export declare const parseFormatString: (formatString: string) => string;
export declare const parseOnBlur: (typedValue: string, formatString: string) => Date;
export declare const parseRangeOnBlur: (typedValue: string, formatString: string) => Date[];
export declare const onlyNumbers: (value?: string) => string;
export declare function getShortDate(date?: Date): string | undefined;