import React, { ReactNode } from "react"; import { CommonProps, ExpandProps, PolymorphicComponent, PropsWithHTMLElement } from "@contentful/f36-core"; import { TextProps } from "@contentful/f36-typography"; import * as CSS from "csstype"; //#region src/Table.d.ts type TableLayoutProps = { /** * @default 'inline' */ layout?: 'inline' | 'embedded'; /** * @default false */ isFirstColumnSticky?: false; } | { layout: 'scrollable'; /** * @default false */ isFirstColumnSticky?: boolean; }; type TableInternalProps = CommonProps & TableLayoutProps & { /** * @default 'top' */ verticalAlign?: Extract; }; type TableProps = PropsWithHTMLElement; declare const Table$1: React.ForwardRefExoticComponent>; //#endregion //#region src/TableBody/TableBody.d.ts type TableBodyInternalProps = CommonProps & { children: ReactNode; }; type TableBodyProps = PropsWithHTMLElement; export declare const TableBody: React.ForwardRefExoticComponent, HTMLTableSectionElement>, "ref">, never>, "children" | keyof CommonProps> & CommonProps & { children: ReactNode; } & React.RefAttributes>; //#endregion //#region src/TableCell/TableCell.d.ts export declare enum TableCellSorting { Ascending = "ascending", Descending = "descending" } type TableCellInternalProps = CommonProps & { align?: 'center' | 'left' | 'right'; children?: React.ReactNode; isSortable?: boolean; sortDirection?: TableCellSorting; width?: string | number; /** * Aria label for the sort button when isSortable is set */ sortButtonAriaLabel?: string; } & Pick; type TableCellProps = PropsWithHTMLElement; export declare const TableCell: PolymorphicComponent, "th" | "td">; //#endregion //#region src/TableHead/TableHead.d.ts type TableHeadInternalProps = CommonProps & { isSticky?: boolean; offsetTop?: number | string; children: React.ReactNode; }; type TableHeadProps = PropsWithHTMLElement; export declare const TableHead: React.ForwardRefExoticComponent, HTMLTableSectionElement>, "ref">, never>, "children" | keyof CommonProps | "isSticky" | "offsetTop"> & CommonProps & { isSticky?: boolean; offsetTop?: number | string; children: React.ReactNode; } & React.RefAttributes>; //#endregion //#region src/TableRow/TableRow.d.ts type TableRowInternalProps = CommonProps & { isSelected?: boolean; children: React.ReactNode; }; type TableRowProps = PropsWithHTMLElement; export declare const TableRow: React.ForwardRefExoticComponent, HTMLTableRowElement>, "ref">, never>, "children" | keyof CommonProps | "isSelected"> & CommonProps & { isSelected?: boolean; children: React.ReactNode; } & React.RefAttributes>; //#endregion //#region src/CompoundTable.d.ts type CompoundTable = typeof Table$1 & { Row: typeof TableRow; Head: typeof TableHead; Cell: typeof TableCell; Body: typeof TableBody; }; export declare const Table: CompoundTable; //#endregion //#region src/TableCell/TableCellContext.d.ts type TableCellContextOption = { name: 'body' | 'head'; as: 'td' | 'th'; offsetTop: number | string; }; export declare const contextOptions: { body: TableCellContextOption; head: TableCellContextOption; }; export declare const TableCellContext: import("react").Context; export declare const useTableCellContext: () => TableCellContextOption; export declare const TableCellContextProvider: import("react").Provider; //#endregion export type { TableBodyProps, TableCellProps, TableHeadProps, TableProps, TableRowProps }; //# sourceMappingURL=index.d.ts.map