Skip to content

Commit

Permalink
Merge pull request #2393 from lumada-design/fix/5749
Browse files Browse the repository at this point in the history
fix(table): rename and add missing HvTableHeader export. HVUIKIT-5749
  • Loading branch information
nantunes authored Apr 21, 2021
2 parents 81d74a5 + 31409b4 commit 8bda79a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/lab/src/Table/TableHeader/TableHeader.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StandardProps } from "@material-ui/core";
import { ColumnInstance } from "react-table";

export type HvTableCellClassKey =
export type HvTableHeaderClassKey =
| "root"
| "head"
| "body"
Expand All @@ -13,8 +13,8 @@ export type HvTableCellClassKey =
| "stickyColumnMostLeft"
| "stickyColumnLeastRight";

export interface HvTableCellProps
extends StandardProps<React.HTMLAttributes<HTMLTableCellElement>, HvTableCellClassKey> {
export interface HvTableHeaderProps
extends StandardProps<React.HTMLAttributes<HTMLTableCellElement>, HvTableHeaderClassKey> {
/**
* The component used for the root node. Either a string to use a HTML element or a component.
* Defaults to th.
Expand Down Expand Up @@ -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;
3 changes: 3 additions & 0 deletions packages/lab/src/Table/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 8bda79a

Please sign in to comment.