diff --git a/packages/core-components/api-report.md b/packages/core-components/api-report.md index 0361b81f0d..ed7fd0c765 100644 --- a/packages/core-components/api-report.md +++ b/packages/core-components/api-report.md @@ -13,6 +13,7 @@ import { BackstageUserIdentity } from '@backstage/core-plugin-api'; import { BottomNavigationActionProps } from '@material-ui/core/BottomNavigationAction'; import { ButtonProps as ButtonProps_2 } from '@material-ui/core/Button'; import { CardHeaderProps } from '@material-ui/core/CardHeader'; +import { ClassNameMap } from '@material-ui/styles'; import { Column } from '@material-table/core'; import { ComponentClass } from 'react'; import { ComponentProps } from 'react'; @@ -104,6 +105,15 @@ export type BackstageOverrides = Overrides & { >; }; +// @public (undocumented) +export function BaseTable( + props: TableProps & { + loading?: boolean; + emptyContent?: ReactNode; + subtitle?: string; + }, +): React_2.JSX.Element; + // @public (undocumented) export type BoldHeaderClassKey = 'root' | 'title' | 'subheader'; @@ -1438,6 +1448,9 @@ export type TableState = { filters?: SelectedFilters; }; +// @public +export const tableStyles: (props?: any) => ClassNameMap; + // Warning: (ae-missing-release-tag) "TableToolbarClassKey" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) @@ -1538,6 +1551,6 @@ export type WarningPanelClassKey = // src/components/DependencyGraph/types.d.ts:22:9 - (ae-unresolved-link) The @link reference could not be resolved: The package "@backstage/core-components" does not have an export "DependencyNode" // src/components/DependencyGraph/types.d.ts:26:9 - (ae-unresolved-link) The @link reference could not be resolved: The package "@backstage/core-components" does not have an export "DependencyNode" // src/components/TabbedLayout/RoutedTabs.d.ts:9:5 - (ae-forgotten-export) The symbol "SubRoute_2" needs to be exported by the entry point index.d.ts -// src/components/Table/Table.d.ts:20:5 - (ae-forgotten-export) The symbol "SelectedFilters" needs to be exported by the entry point index.d.ts +// src/components/Table/Table.d.ts:26:5 - (ae-forgotten-export) The symbol "SelectedFilters" needs to be exported by the entry point index.d.ts // src/layout/ErrorBoundary/ErrorBoundary.d.ts:8:5 - (ae-forgotten-export) The symbol "SlackChannel" needs to be exported by the entry point index.d.ts ``` diff --git a/packages/core-components/src/components/Table/Table.tsx b/packages/core-components/src/components/Table/Table.tsx index d5fa1e2da7..09957e2e03 100644 --- a/packages/core-components/src/components/Table/Table.tsx +++ b/packages/core-components/src/components/Table/Table.tsx @@ -154,6 +154,11 @@ const useFilterStyles = makeStyles( export type TableClassKey = 'root'; +/** + * Style classes for the `Table` component. + * + * @public + */ export const tableStyles = makeStyles( () => ({ root: { @@ -486,6 +491,9 @@ export function Table(props: TableProps) { Table.icons = Object.freeze(tableIcons); +/** + * @public + */ export function BaseTable( props: TableProps & { loading?: boolean;