UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

25 lines (24 loc) 1.27 kB
import type { ReactNode, SyntheticEvent, TableHTMLAttributes } from 'react'; import type { IconIcon } from '../icon/Icon'; 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: IconIcon; 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;