Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/tables/src/elements/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import React, { HTMLAttributes, forwardRef } from 'react';
import { StyledBody } from '../styled';

/**
* @deprecated use `Table.Body` instead
*
* @extends HTMLAttributes<HTMLTableSectionElement>
*/
export const Body = forwardRef<HTMLTableSectionElement, HTMLAttributes<HTMLTableSectionElement>>(
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/Caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import React, { HTMLAttributes, forwardRef } from 'react';
import { StyledCaption } from '../styled';

/**
* @deprecated use `Table.Caption` instead
*
* @extends HTMLAttributes<HTMLTableCaptionElement>
*/
export const Caption = forwardRef<HTMLTableCaptionElement, HTMLAttributes<HTMLTableCaptionElement>>(
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { useTableContext } from '../utils/useTableContext';
import { ICellProps } from '../types';

/**
* @deprecated use `Table.Cell` instead
*
* @extends TdHTMLAttributes<HTMLTableCellElement>
*/
export const Cell = React.forwardRef<HTMLTableCellElement, ICellProps>(
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/GroupRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { StyledGroupRow } from '../styled';
import { useTableContext } from '../utils/useTableContext';

/**
* @deprecated use `Table.GroupRow` instead
*
* @extends HTMLAttributes<HTMLTableRowElement>
*/
export const GroupRow = forwardRef<HTMLTableRowElement, HTMLAttributes<HTMLTableRowElement>>(
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { StyledHead } from '../styled';
import { IHeadProps } from '../types';

/**
* @deprecated use `Table.Head` instead
*
* @extends HTMLAttributes<HTMLTableSectionElement>
*/
export const Head = forwardRef<HTMLTableSectionElement, IHeadProps>((props, ref) => (
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/HeaderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { useTableContext } from '../utils/useTableContext';
import { Cell } from './Cell';

/**
* @deprecated use `Table.HeaderCell` instead
*
* @extends ThHTMLAttributes<HTMLTableCellElement>
*/
export const HeaderCell = forwardRef<HTMLTableCellElement, IHeaderCellProps>(
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/HeaderRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { StyledHeaderRow } from '../styled';
import { useTableContext } from '../utils/useTableContext';

/**
* @deprecated use `Table.HeaderRow` instead
*
* @extends HTMLAttributes<HTMLTableRowElement>
*/
export const HeaderRow = React.forwardRef<HTMLTableRowElement, HTMLAttributes<HTMLTableRowElement>>(
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/OverflowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export interface IOverflowButtonProps extends ButtonHTMLAttributes<HTMLButtonEle
}

/**
* @deprecated use `Table.OverflowButton` instead
*
* @extends ButtonHTMLAttributes<HTMLButtonElement>
*/
export const OverflowButton = forwardRef<HTMLButtonElement, IOverflowButtonProps>(
Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { StyledRow } from '../styled';
import { useTableContext } from '../utils/useTableContext';

/**
* @deprecated use `Table.Row` instead
*
* @extends HTMLAttributes<HTMLTableRowElement>
*/

Expand Down
2 changes: 2 additions & 0 deletions packages/tables/src/elements/SortableCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import {
} from '../styled';

/**
* @deprecated use `Table.SortableCell` instead
*
* @extends ButtonHTMLAttributes<HTMLButtonElement>
*/
export const SortableCell = forwardRef<HTMLButtonElement, ISortableCellProps>(
Expand Down
10 changes: 0 additions & 10 deletions packages/tables/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,15 @@
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/

/** @deprecated use `Table.Body` intead */
export { Body } from './elements/Body';
/** @deprecated use `Table.Caption` intead */
export { Caption } from './elements/Caption';
/** @deprecated use `Table.Cell` intead */
export { Cell } from './elements/Cell';
/** @deprecated use `Table.GroupRow` intead */
export { GroupRow } from './elements/GroupRow';
/** @deprecated use `Table.Head` intead */
export { Head } from './elements/Head';
/** @deprecated use `Table.HeaderCell` intead */
export { HeaderCell } from './elements/HeaderCell';
/** @deprecated use `Table.HeaderRow` intead */
export { HeaderRow } from './elements/HeaderRow';
/** @deprecated use `Table.OverflowButton` intead */
export { OverflowButton } from './elements/OverflowButton';
/** @deprecated use `Table.Row` intead */
export { Row } from './elements/Row';
/** @deprecated use `Table.SortableCell` intead */
export { SortableCell } from './elements/SortableCell';

export { Table } from './elements/Table';
Expand Down