import { textAlign } from "../utils/styleProps.cjs"; import { ReactNode } from "react"; import RAC from "react-aria-components"; type RemovedProps = 'className' | 'style' | 'children' | 'isRowHeader' | 'render'; export interface TableColumnProps extends Omit { /** * Whether the column is a row header and should be announced by assistive technology during navigation. * At least one column needs to be set as row header. */ rowHeader?: RAC.ColumnProps['isRowHeader']; /** * The column header label. */ children?: ReactNode; /** * Horizontal text alignment of the column's content. * @default 'left' */ alignX?: keyof typeof textAlign; /** The width of the column. */ width?: RAC.ColumnProps['width']; /** The default width of the column. */ defaultWidth?: RAC.ColumnProps['defaultWidth']; /** The minimum width of the column. */ minWidth?: RAC.ColumnProps['minWidth']; /** The maximum width of the column. */ maxWidth?: RAC.ColumnProps['maxWidth']; /** * Keeps the column in place at an edge while the rest of the table scrolls * sideways. `start` applies to the first column only, `end` to the last. */ sticky?: 'start' | 'end'; } export {};