import { ForwardRefExoticComponent } from 'react'; import { DimensionValue, PressableProps, View, ViewStyle } from 'react-native'; import { TextInputLabelProp } from 'react-native-paper/lib/typescript/components/TextInput/types'; import { TextInputProps } from 'react-native-paper'; export type DropdownInputProps = { placeholder?: string; label?: TextInputLabelProp; rightIcon: JSX.Element; selectedLabel?: string; mode?: 'flat' | 'outlined'; disabled?: boolean; error?: boolean; }; export type Option = { label: string; value: string; }; export type DropdownProps = { testID?: string; menuTestID?: string; value?: string; options: Option[]; menuUpIcon?: JSX.Element; menuDownIcon?: JSX.Element; maxMenuHeight?: number; menuContentStyle?: ViewStyle; hideMenuHeader?: boolean; statusBarHeight?: number; Touchable?: ForwardRefExoticComponent>; onSelect?: (value?: string) => void; CustomMenuHeader?: (props: DropdownHeaderProps) => JSX.Element; CustomDropdownItem?: (props: DropdownItemProps) => JSX.Element; CustomDropdownInput?: (props: DropdownInputProps) => JSX.Element; } & Pick; export type MultiSelectDropdownProps = { testID?: string; menuTestID?: string; value: string[]; options: Option[]; menuUpIcon?: JSX.Element; menuDownIcon?: JSX.Element; maxMenuHeight?: number; menuContentStyle?: ViewStyle; hideMenuHeader?: boolean; statusBarHeight?: number; Touchable?: ForwardRefExoticComponent>; onSelect?: (value: string[]) => void; CustomMenuHeader?: (props: DropdownHeaderProps) => JSX.Element; CustomMultiSelectDropdownItem?: (props: MultiSelectDropdownItemProps) => JSX.Element; CustomMultiSelectDropdownInput?: (props: DropdownInputProps) => JSX.Element; } & Pick; export type DropdownItemProps = { option: Option; value?: string; onSelect?: (value: string) => void; width: DimensionValue; toggleMenu: () => void; isLast: boolean; menuItemTestID?: string; }; export type MultiSelectDropdownItemProps = { option: Option; value?: string[]; onSelect?: (value: string[]) => void; width: DimensionValue; isLast: boolean; menuItemTestID?: string; }; export type DropdownHeaderProps = { value?: string | string[]; label?: TextInputLabelProp; multiSelect: boolean; toggleMenu: () => void; resetMenu: () => void; }; export type DropdownRef = { blur: () => void; focus: () => void; }; //# sourceMappingURL=types.d.ts.map