UNPKG

@open-condo/ui

Version:

A set of React UI components for developing applications inside the condo ecosystem

37 lines 1.31 kB
import { InputProps, SelectProps, CheckboxProps, TableColumn } from '@open-condo/ui/src'; import type { FilterConfig } from '@open-condo/ui/src/components/Table/types'; type OptionType = { label: string; value: string; }; declare const TextColumnFilterKey = "textColumnFilter"; declare const CheckboxGroupColumnFilterKey = "checkboxGroupColumnFilter"; declare const SelectColumnFilterKey = "selectColumnFilter"; export type TextColumnFilterConfig = { key: typeof TextColumnFilterKey; componentProps?: TextFilterComponentType; }; export type SelectColumnFilterConfig = { key: typeof SelectColumnFilterKey; options: OptionType[]; componentProps?: SelectFilterComponentType; }; export type CheckboxGroupColumnFilterConfig = { key: typeof CheckboxGroupColumnFilterKey; options: OptionType[]; componentProps?: CheckboxGroupFilterComponentType; }; type TextFilterComponentType = { inputProps?: InputProps; }; type CheckboxGroupFilterComponentType = { checkboxGroupProps?: CheckboxProps & { options?: OptionType[]; }; }; type SelectFilterComponentType = { selectProps?: SelectProps; }; export declare function getFilterComponentByKey(filterConfig: FilterConfig): TableColumn['filterComponent']; export {}; //# sourceMappingURL=filterComponents.d.ts.map