UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

22 lines (21 loc) 1.41 kB
import { LensState } from "@focuson/state"; import { ModalContext } from "@focuson/pages"; import { DatePickerProps } from "./datePicker"; import { FocusOnContext } from "@focuson/focuson"; import { LabelAndInputProps } from "./labelAndInput"; import { StringValidations } from "@focuson/utils"; export interface StartMonthYearDatePickerWithLengthProps<S, C> extends DatePickerProps<S, C> { endDatePath: LensState<S, string, C>; lengthPath: LensState<S, string, C>; } export declare function StartMonthYearDatePickerWithLength<S, C extends ModalContext<S>>(props: StartMonthYearDatePickerWithLengthProps<S, C>): import("react/jsx-runtime").JSX.Element; export interface EndMonthYearDatePickerWithLengthProps<S, C> extends DatePickerProps<S, C> { startDatePath: LensState<S, string, C>; lengthPath: LensState<S, string, C>; } export declare function EndMonthYearDatePickerWithLength<S, C extends ModalContext<S>>(props: EndMonthYearDatePickerWithLengthProps<S, C>): import("react/jsx-runtime").JSX.Element; export interface LabelAndMonthYearLengthProps<S, Context extends FocusOnContext<S>> extends LabelAndInputProps<S, string, Context>, StringValidations { fromDate: LensState<S, string, Context>; toDate: LensState<S, string, Context>; } export declare const LabelAndMonthYearLength: <S, Context extends FocusOnContext<S>>(props: LabelAndMonthYearLengthProps<S, Context>) => JSX.Element;