UI: Export sparkline from @grafana/ui and fix a broken storybook page (#47280)

* Chore: export sparkline from @grafana/ui

* fix: add missing config to BigValue story

* chore: tag Sparkline internal
This commit is contained in:
Russ 2022-04-06 09:11:33 -08:00 committed by GitHub
parent 49505b9a3b
commit 38c842cf4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,7 @@ export const Basic: Story<StoryProps> = ({
name: '',
values: new ArrayVector([1, 2, 3, 4, 3]),
type: FieldType.number,
state: { range: { min: 1, max: 4, delta: 3 } },
config: {},
},
};

View File

@ -43,6 +43,7 @@ const defaultConfig: GraphFieldConfig = {
axisPlacement: AxisPlacement.Hidden,
};
/** @internal */
export class Sparkline extends PureComponent<SparklineProps, State> {
constructor(props: SparklineProps) {
super(props);

View File

@ -84,6 +84,7 @@ export {
BigValueJustifyMode,
BigValueTextMode,
} from './BigValue/BigValue';
export { Sparkline } from './Sparkline/Sparkline';
export { Gauge } from './Gauge/Gauge';
export { Graph } from './Graph/Graph';