Further review feedback.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2022-06-10 11:05:41 +02:00
parent 2dc4818541
commit effb3b27a4
7 changed files with 35 additions and 48 deletions
+6 -6
View File
@@ -22,13 +22,13 @@ export const DefaultResultListItem: (
props: DefaultResultListItemProps,
) => JSX.Element;
// @public (undocumented)
// @public @deprecated (undocumented)
export type FilterOptions = {
kind: Array<string>;
lifecycle: Array<string>;
};
// @public (undocumented)
// @public @deprecated (undocumented)
export const Filters: ({
filters,
filterOptions,
@@ -37,19 +37,19 @@ export const Filters: ({
updateChecked,
}: FiltersProps) => JSX.Element;
// @public (undocumented)
// @public @deprecated (undocumented)
export const FiltersButton: ({
numberOfSelectedFilters,
handleToggleFilters,
}: FiltersButtonProps) => JSX.Element;
// @public
// @public @deprecated
export type FiltersButtonProps = {
numberOfSelectedFilters: number;
handleToggleFilters: () => void;
};
// @public
// @public @deprecated
export type FiltersProps = {
filters: FiltersState;
filterOptions: FilterOptions;
@@ -58,7 +58,7 @@ export type FiltersProps = {
updateChecked: (filter: string) => void;
};
// @public (undocumented)
// @public @deprecated (undocumented)
export type FiltersState = {
selected: string;
checked: Array<string>;
@@ -46,6 +46,8 @@ const useStyles = makeStyles(theme => ({
/**
* @public
* @deprecated This type and corresponding component will be removed in a
* future release.
*/
export type FiltersState = {
selected: string;
@@ -54,6 +56,8 @@ export type FiltersState = {
/**
* @public
* @deprecated This type and corresponding component will be removed in a
* future release.
*/
export type FilterOptions = {
kind: Array<string>;
@@ -64,6 +68,8 @@ export type FilterOptions = {
* Props for {@link Filters}.
*
* @public
* @deprecated This type and corresponding component will be removed in a
* future release.
*/
export type FiltersProps = {
filters: FiltersState;
@@ -75,6 +81,8 @@ export type FiltersProps = {
/**
* @public
* @deprecated This component will be removed in a future release. Use
* `SearchFilter` from `@backstage/plugin-search-react` instead.
*/
export const Filters = ({
filters,
@@ -32,6 +32,8 @@ const useStyles = makeStyles(theme => ({
* Props for {@link FiltersButton}.
*
* @public
* @deprecated This type and corresponding component will be removed in a
* future release.
*/
export type FiltersButtonProps = {
numberOfSelectedFilters: number;
@@ -40,6 +42,7 @@ export type FiltersButtonProps = {
/**
* @public
* @deprecated See `SearchFilter` in `@backstage/plugin-search-react` instead.
*/
export const FiltersButton = ({
numberOfSelectedFilters,