UNPKG

@vtex/styleguide

Version:

> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))

27 lines (26 loc) 866 B
export declare const TABLE_HEADER_HEIGHT = 36; export default function useTableMeasures({ size, density: initDensity, headless, }: MeasuresInput): { density: Density; rowHeight: number; tableHeight: number; bodyHeight: number; setDensity: import("react").Dispatch<import("react").SetStateAction<Density>>; }; export declare type MeasuresInput = { size: number; density?: Density; headless?: boolean; }; export declare function calculateTableHeight(rowHeight: number, tableSize: number, headless: boolean): number; export declare enum Density { Compact = "compact", Regular = "regular", Comfortable = "comfortable" } export declare enum DesitySizes { Compact = 32, Regular = 48, Comfortable = 76 } export declare const DENSITY_OPTIONS: Density[]; export declare function getRowHeight(density: Density): number;