UNPKG

@gpa-gemstone/react-forms

Version:
18 lines (17 loc) 911 B
import * as moment from 'moment'; import { Gemstone } from '@gpa-gemstone/application-typings'; export interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> { Valid: (field: keyof T) => boolean; Feedback?: string; Format?: string; Type?: Gemstone.TSX.Types.DateUnit; AllowEmpty?: boolean; Accuracy?: Gemstone.TSX.Types.Accuracy; MinDate?: moment.Moment; } /** * Component that allows a user to pick a date or datetime. */ export default function DateTimePickerBase<T>(props: IProps<T>): JSX.Element; export declare function getBoxFormat(type?: Gemstone.TSX.Types.DateUnit, accuracy?: Gemstone.TSX.Types.Accuracy): "YYYY-MM-DD" | "HH:mm" | "HH:mm:ss" | "HH:mm:ss.SSS" | "YYYY-MM-DD[T]HH:mm" | "YYYY-MM-DD[T]HH:mm:ss" | "YYYY-MM-DD[T]HH:mm:ss.SSS"; export declare const getInputWidth: (inputRef: HTMLInputElement, currentValue: string, currentStep: string) => number;