From 31409b4405640b299fbed9d55f27da22eb4cf868 Mon Sep 17 00:00:00 2001 From: Diogo Mariano Date: Wed, 21 Apr 2021 15:21:48 +0100 Subject: [PATCH] fix(table): rename and add missing HvTableHeader export. HVUIKIT-5749 --- packages/lab/src/Table/TableHeader/TableHeader.d.ts | 8 ++++---- packages/lab/src/Table/index.d.ts | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/lab/src/Table/TableHeader/TableHeader.d.ts b/packages/lab/src/Table/TableHeader/TableHeader.d.ts index f1b6bca622..e4b4511fff 100644 --- a/packages/lab/src/Table/TableHeader/TableHeader.d.ts +++ b/packages/lab/src/Table/TableHeader/TableHeader.d.ts @@ -1,7 +1,7 @@ import { StandardProps } from "@material-ui/core"; import { ColumnInstance } from "react-table"; -export type HvTableCellClassKey = +export type HvTableHeaderClassKey = | "root" | "head" | "body" @@ -13,8 +13,8 @@ export type HvTableCellClassKey = | "stickyColumnMostLeft" | "stickyColumnLeastRight"; -export interface HvTableCellProps - extends StandardProps, HvTableCellClassKey> { +export interface HvTableHeaderProps + extends StandardProps, HvTableHeaderClassKey> { /** * The component used for the root node. Either a string to use a HTML element or a component. * Defaults to th. @@ -75,4 +75,4 @@ export interface HvTableCellProps rtCol: ColumnInstance; } -export default function HvTableCell(props: HvTableCellProps): JSX.Element | null; +export default function HvTableHeader(props: HvTableHeaderProps): JSX.Element | null; diff --git a/packages/lab/src/Table/index.d.ts b/packages/lab/src/Table/index.d.ts index e7b01b4f13..010bfae9a5 100644 --- a/packages/lab/src/Table/index.d.ts +++ b/packages/lab/src/Table/index.d.ts @@ -16,6 +16,9 @@ export * from "./TableContainer"; export { default as HvTableHead } from "./TableHead"; export * from "./TableHead"; +export { default as HvTableHeader } from "./TableHeader"; +export * from "./TableHeader"; + export { default as HvTablePagination } from "./TablePagination"; export * from "./TablePagination";