UNPKG

@furystack/shades-common-components

Version:

20 lines 987 B
import type { FindOptions } from '@furystack/core'; import type { ChildrenList } from '@furystack/shades'; import { ObservableValue } from '@furystack/utils'; export interface DataGridHeaderProps<T, Column extends string> { field: Column; findOptions: ObservableValue<FindOptions<T, Array<keyof T>>>; } export interface DataGridHeaderState<T, K extends keyof T> { findOptions: FindOptions<T, K[]>; isSearchOpened: boolean; updateSearchValue: (value: string) => void; } export declare const OrderButton: (props: { field: string; findOptions: ObservableValue<FindOptions<any, any[]>>; } & Omit<Partial<HTMLElement>, "style"> & { style?: Partial<CSSStyleDeclaration>; }, children?: ChildrenList) => JSX.Element; export declare const DataGridHeader: <T, Column extends string>(props: DataGridHeaderProps<T, Column>, children: ChildrenList, findOptions: ObservableValue<FindOptions<T, Array<keyof T>>>) => JSX.Element<any>; //# sourceMappingURL=header.d.ts.map