File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ import { NullableContentProps } from '@ctablex/core';
1010import { ReactElement } from 'react' ;
1111import { ReactNode } from 'react' ;
1212
13+ export declare function Cell < D > ( props : CellProps < D > ) : JSX_2 . Element ;
14+
15+ export declare interface CellProps < D > {
16+ accessor ?: Accessor < D > ;
17+ children ?: ReactNode ;
18+ el ?: ReactElement ;
19+ }
20+
1321export declare function Column < D = any > ( props : ColumnProps < D > ) : JSX_2 . Element ;
1422
1523export declare interface ColumnProps < D = any > {
@@ -46,6 +54,15 @@ export { DefaultContent };
4654
4755export declare const defaultTableElements : TableElements ;
4856
57+ export declare function HeaderCell (
58+ props : HeaderCellProps ,
59+ ) : ReactElement < any , string | JSXElementConstructor < any > > ;
60+
61+ export declare interface HeaderCellProps {
62+ children ?: ReactNode ;
63+ el ?: ReactElement ;
64+ }
65+
4966export { NullableContent } ;
5067
5168export { NullableContentProps } ;
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ export type { RowsProps } from './table/rows';
2222export { Column } from './columns/column' ;
2323export type { ColumnProps } from './columns/column' ;
2424
25+ export { Cell } from './table/cell' ;
26+ export type { CellProps } from './table/cell' ;
27+
28+ export { HeaderCell } from './table/header-cell' ;
29+ export type { HeaderCellProps } from './table/header-cell' ;
30+
2531export { Columns } from './columns/columns' ;
2632export type { ColumnsProps } from './columns/columns' ;
2733
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import { ReactElement, ReactNode } from 'react';
22import { useTableElements } from '../elements/table-elements-context' ;
33import { addProps } from '../utils/add-props' ;
44
5- export interface CellProps {
5+ export interface HeaderCellProps {
66 children ?: ReactNode ;
77 el ?: ReactElement ;
88}
9- export function HeaderCell ( props : CellProps ) {
9+ export function HeaderCell ( props : HeaderCellProps ) {
1010 const contextEl = useTableElements ( ) ;
1111 const { children } = props ;
1212 return addProps ( props . el ?? contextEl . th , { children } ) ;
You can’t perform that action at this time.
0 commit comments