UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

22 lines (21 loc) 910 B
import { LensProps, LensState } from "@focuson/state"; import { NameAnd, PageMode } from "@focuson/utils"; import { ContextForDropdown } from "./labelAndDropdown"; export interface OneDropDownDetails<S, C> { valuePath?: string; value?: string; dataPath?: string; display?: (props: any) => JSX.Element; } export interface DataDrivenFixedOptionDropDownAndDetailsProps<S> extends LensProps<S, string, ContextForDropdown<S>> { id: string; enabledBy?: string[][]; parentState: LensState<S, any, ContextForDropdown<S>>; mode: PageMode; allButtons: NameAnd<JSX.Element>; label: string; pleaseSelect?: string; dontShowEmpty?: boolean; details: NameAnd<OneDropDownDetails<S, ContextForDropdown<S>>>; } export declare function DataDrivenFixedOptionDropDownAndDetails<S>(props: DataDrivenFixedOptionDropDownAndDetailsProps<S>): import("react/jsx-runtime").JSX.Element;