amotify
Version:
UI Component for React,NextJS,esbuild
41 lines (40 loc) • 1.28 kB
TypeScript
/// <reference types="react" />
import { StyleProps } from '../../@declares';
export declare namespace TableTypes {
type customTableHTMLAttributes<T> = Omit<React.TableHTMLAttributes<T>, 'border'>;
type Types = 'normal' | 'data' | 'spread';
type Tones = 'border' | 'cellBorder' | 'rowBorder' | 'plain' | 'auto';
type StylesCallbackInput = {
top: boolean;
bottom: boolean;
left: boolean;
right: boolean;
rowIndex: number;
colIndex: number;
isHeader: boolean;
isBody: boolean;
};
type UniInput = {
tableID?: string;
tone?: Tones;
colLength: number;
cellStyles?: StyleProps.StyleProps;
cellClassName?: string;
cellStylesCallback?: {
(p: StylesCallbackInput): StyleProps.StyleProps;
};
className?: string;
} & StyleProps.States;
type OnRowClick = {
(rowIDOrIndex: any, event: React.MouseEvent<HTMLTableRowElement, MouseEvent>): void;
};
}
import _TableParts from './Parts';
import _Normal from './Normal';
import _Data from './Data';
declare namespace Table {
export import Normal = _Normal;
export import Data = _Data;
export import Parts = _TableParts;
}
export { Table, Table as default };