UNPKG

@frui.ts/dataviews

Version:

View components for data display

23 lines (22 loc) 1.62 kB
import React from "react"; import type { DataTablePropsBase } from "../dataTypes"; export interface DataRepeaterProps<TItem, TContext, TWrapper extends React.ElementType, THeadWrapper extends React.ElementType, THeadCell extends React.ElementType, TBodyWrapper extends React.ElementType, TItemWrapper extends React.ElementType, TItemCell extends React.ElementType> extends DataTablePropsBase<TItem, TContext> { wrapperType?: TWrapper; wrapperProps?: React.ComponentPropsWithoutRef<TWrapper>; headWrapperType?: THeadWrapper; headWrapperProps?: React.ComponentPropsWithoutRef<THeadWrapper>; headCellType?: THeadCell; headCellProps?: React.ComponentPropsWithoutRef<THeadCell>; bodyWrapperType?: TBodyWrapper; bodyWrapperProps?: React.ComponentPropsWithoutRef<TBodyWrapper>; itemWrapperType?: TItemWrapper; itemWrapperProps?: React.ComponentPropsWithoutRef<TItemWrapper>; itemCellType?: TItemCell; itemCellProps?: React.ComponentPropsWithoutRef<TItemCell>; } declare function dataRepeater<TItem, TContext, TWrapper extends React.ElementType, THeadWrapper extends React.ElementType, THeadCell extends React.ElementType, TBodyWrapper extends React.ElementType, TItemWrapper extends React.ElementType, TItemCell extends React.ElementType>(props: DataRepeaterProps<TItem, TContext, TWrapper, THeadWrapper, THeadCell, TBodyWrapper, TItemWrapper, TItemCell>): React.JSX.Element; declare namespace dataRepeater { var defaultProps: Partial<DataRepeaterProps<any, any, any, any, any, any, any, any>>; } declare const DataRepeater: typeof dataRepeater; export default DataRepeater;