diff --git a/modules/react/table/lib/Table.tsx b/modules/react/table/lib/Table.tsx index 863b2651e9..1ff2aade31 100644 --- a/modules/react/table/lib/Table.tsx +++ b/modules/react/table/lib/Table.tsx @@ -16,6 +16,11 @@ const TableComponent = styled('table')(type.levels.subtext.large, { }, }); +/** + * ### ⚠️ Table has been deprecated and will be removed in v9 ⚠️ + * - Please consider using [`Table`](https://workday.github.io/canvas-kit/?path=/docs/preview-table--basic) in preview + * @deprecated + */ export class Table extends React.Component> { public render() { const {children, ...elemProps} = this.props; diff --git a/modules/react/table/lib/TableRow.tsx b/modules/react/table/lib/TableRow.tsx index dfa8c85325..41c1a38887 100644 --- a/modules/react/table/lib/TableRow.tsx +++ b/modules/react/table/lib/TableRow.tsx @@ -5,6 +5,11 @@ import {colors, space, spaceNumbers, statusColors} from '@workday/canvas-kit-rea import {createComponent, StyledType} from '@workday/canvas-kit-react/common'; import {borderColor, borderWidth, cellBorder} from './Table'; +/** + * ### ⚠️ Table has been deprecated and will be removed in v9 ⚠️ + * - Please consider using [`Table`](https://workday.github.io/canvas-kit/?path=/docs/preview-table--basic) in preview + * @deprecated + */ export enum TableRowState { Error, Alert, @@ -14,6 +19,11 @@ export enum TableRowState { Selected, } +/** + * ### ⚠️ Table has been deprecated and will be removed in v9 ⚠️ + * - Please consider using [`Table`](https://workday.github.io/canvas-kit/?path=/docs/preview-table--basic) in preview + * @deprecated + */ export interface TableRowProps extends React.HTMLAttributes { /** * The state of the TableRow. Accepts `Error`, `Alert`, `InputError`, `InputAlert`, `Hover`, or `Selected`. @@ -192,6 +202,11 @@ const StyledTableRow = styled('tr')( } ); +/** + * ### ⚠️ Table has been deprecated and will be removed in v9 ⚠️ + * - Please consider using [`Table`](https://workday.github.io/canvas-kit/?path=/docs/preview-table--basic) in preview + * @deprecated + */ export const TableRow = createComponent('tr')({ displayName: 'TableRow', Component: (