diff --git a/packages/ui/report.api.md b/packages/ui/report.api.md index dcc5ddd4a2..a385ea8cb0 100644 --- a/packages/ui/report.api.md +++ b/packages/ui/report.api.md @@ -1505,21 +1505,13 @@ export interface SwitchProps extends SwitchProps_2 { // @public export const Tab: (props: TabProps) => JSX_2.Element; -// Warning: (ae-missing-release-tag) "Table" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// -// @public (undocumented) +// @public export function Table( props: TableProps & { ref?: React.ForwardedRef; }, ): JSX_2.Element; -// @public (undocumented) -export namespace Table { - var // (undocumented) - displayName: string; -} - // @public (undocumented) export const TableCellProfile: ForwardRefExoticComponent< TableCellProfileProps & RefAttributes @@ -1560,19 +1552,11 @@ export interface TableCellTextProps title: string; } -// Warning: (ae-missing-release-tag) "TablePagination" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// -// @public (undocumented) +// @public export function TablePagination( props: TablePaginationProps, ): JSX_2.Element; -// @public (undocumented) -export namespace TablePagination { - var // (undocumented) - displayName: string; -} - // @public (undocumented) export interface TablePaginationProps extends React.HTMLAttributes { diff --git a/packages/ui/src/components/Table/Table.tsx b/packages/ui/src/components/Table/Table.tsx index 4115249f96..aafbcdf01f 100644 --- a/packages/ui/src/components/Table/Table.tsx +++ b/packages/ui/src/components/Table/Table.tsx @@ -37,8 +37,12 @@ function getAriaSort(sortDirection: string | false) { return 'none'; } -/** @public */ -function Table( +/** + * A table component built on top of TanStack Table with built-in styling. + * + * @public + */ +export function Table( props: TableProps & { ref?: React.ForwardedRef }, ) { const { className, table, ref, ...rest } = props; @@ -114,7 +118,3 @@ function Table( ); } - -Table.displayName = 'Table'; - -export { Table }; diff --git a/packages/ui/src/components/Table/TablePagination/TablePagination.tsx b/packages/ui/src/components/Table/TablePagination/TablePagination.tsx index 2cfcf7d2e5..9da03190c7 100644 --- a/packages/ui/src/components/Table/TablePagination/TablePagination.tsx +++ b/packages/ui/src/components/Table/TablePagination/TablePagination.tsx @@ -21,8 +21,12 @@ import clsx from 'clsx'; import { Select } from '../../Select'; import { Icon } from '../../Icon'; -/** @public */ -function TablePagination(props: TablePaginationProps) { +/** + * Pagination controls for Table components with page navigation and size selection. + * + * @public + */ +export function TablePagination(props: TablePaginationProps) { const { className, table, @@ -102,7 +106,3 @@ function TablePagination(props: TablePaginationProps) { ); } - -TablePagination.displayName = 'TablePagination'; - -export { TablePagination };