Update API report

Signed-off-by: James Turley <jamesturley@gocardless.com>
This commit is contained in:
James Turley
2021-11-10 16:18:34 +00:00
parent f5e5c297ce
commit 36099bf941
3 changed files with 30 additions and 2 deletions
+22 -2
View File
@@ -7,6 +7,7 @@
import { ApiRef } from '@backstage/core-plugin-api';
import { BackstageIdentityApi } from '@backstage/core-plugin-api';
import { BackstagePalette } from '@backstage/theme';
import { BackstageTheme } from '@backstage/theme';
import { ButtonProps as ButtonProps_2 } from '@material-ui/core/Button';
import { CardHeaderProps } from '@material-ui/core/CardHeader';
@@ -368,8 +369,6 @@ export function FeatureCalloutCircular(
// @public (undocumented)
export type FiltersContainerClassKey = 'root' | 'title';
// Warning: (ae-forgotten-export) The symbol "GaugeProps" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export function Gauge(props: GaugeProps): JSX.Element;
@@ -384,6 +383,27 @@ export type GaugeCardClassKey = 'root';
// @public (undocumented)
export type GaugeClassKey = 'root' | 'overlay' | 'circle' | 'colorUnknown';
// @public (undocumented)
export type GaugeProps = {
value: number;
fractional?: boolean;
inverse?: boolean;
unit?: string;
max?: number;
getColor?: GaugePropsGetColor;
};
// @public (undocumented)
export type GaugePropsGetColor = (args: GaugePropsGetColorOptions) => string;
// @public (undocumented)
export type GaugePropsGetColorOptions = {
palette: BackstagePalette;
value: number;
inverse?: boolean;
max?: number;
};
// @public (undocumented)
export function GitHubIcon(props: IconComponentProps): JSX.Element;
@@ -46,6 +46,7 @@ const useStyles = makeStyles<BackstageTheme>(
{ name: 'BackstageGauge' },
);
/** @public */
export type GaugeProps = {
value: number;
fractional?: boolean;
@@ -55,6 +56,7 @@ export type GaugeProps = {
getColor?: GaugePropsGetColor;
};
/** @public */
export type GaugePropsGetColorOptions = {
palette: BackstagePalette;
value: number;
@@ -62,6 +64,7 @@ export type GaugePropsGetColorOptions = {
max?: number;
};
/** @public */
export type GaugePropsGetColor = (args: GaugePropsGetColorOptions) => string;
const defaultGaugeProps = {
@@ -17,5 +17,10 @@
export { GaugeCard } from './GaugeCard';
export type { GaugeCardClassKey } from './GaugeCard';
export { Gauge } from './Gauge';
export type {
GaugeProps,
GaugePropsGetColor,
GaugePropsGetColorOptions,
} from './Gauge';
export type { GaugeClassKey } from './Gauge';
export { LinearGauge } from './LinearGauge';