UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

24 lines (23 loc) 1.25 kB
import type { ReactNode, SyntheticEvent, TableHTMLAttributes } from 'react'; import type { TableTrProps, TableTrClickInfo } from './TableTr'; export type TableClickableHeadProps = { trIsOpen?: boolean; trIsHover?: boolean; trHadClick?: boolean; clickable: boolean; noAnimation?: boolean; ariaLabel: string; onClick?: (event: SyntheticEvent, allowInteractiveElement?: boolean) => void; } & Omit<TableTrProps, 'onClick'> & Omit<TableHTMLAttributes<HTMLTableRowElement>, 'onClick'>; export declare function TableClickableHead(allProps: TableClickableHeadProps): import("react/jsx-runtime").JSX.Element; export declare function onClickTr(event: SyntheticEvent, allowInteractiveElement?: boolean, onClick?: (event: SyntheticEvent, info: TableTrClickInfo) => void): void; export declare function TableClickableButtonTd(props: { trIsOpen?: boolean; ariaLabel: string; icon: 'chevron_down' | 'chevron_right'; onClick: (event: SyntheticEvent, allowInteractiveElement: boolean) => void; }): import("react/jsx-runtime").JSX.Element; export declare function TableIconSrTh(props: { text: string; }): import("react/jsx-runtime").JSX.Element; export declare const isTableHead: (children: ReactNode[]) => boolean;