UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

19 lines (18 loc) 866 B
import { NameAnd } from "@focuson/utils"; import { LensState } from "@focuson/state"; import { FocusOnContext } from "@focuson/focuson"; import { CommonStateProps, LabelAlignment } from "./common"; export interface LabelAndDateProps<S, Context> extends CommonStateProps<S, string, Context>, LabelAlignment { label: string; readonly?: boolean; allButtons: NameAnd<JSX.Element>; buttons?: string[]; datesExcluded?: LensState<S, any[], Context>; fieldNameInHolidays?: string; workingDaysInPast?: number; workingDaysInFuture?: number; includeWeekends?: boolean; dateFormat?: string; } export declare const legacyParseDate: (format: string) => (date: string) => Date; export declare function LabelAndDateInput<S, T, Context extends FocusOnContext<S>>(props: LabelAndDateProps<S, Context>): import("react/jsx-runtime").JSX.Element;