mirror of
https://github.com/grafana/grafana.git
synced 2025-09-18 04:52:52 +08:00
chore: Bump storybook to 6.2 (#32638)
* chore(grafanaui): bump storybook to 6.2, remove nohoist babel conflict hack * chore(grafanaui): update storybook react doc gen defaults * feat(grafanaui): map public/img as storybook static path for images/icons * refactor(grafanaui): remove storybook noopControl in favour of parameters.controls.exclude * feat(grafanaui): add component for storybook docs theming * chore(grafanaui): silence button docs react warnings * chore(grafanaui): bump storybook to v6.2.3 * revert(grafanaui): remove test description param from legacy switch story
This commit is contained in:
@ -5,7 +5,6 @@ import { withCenteredStory } from '../../utils/storybook/withCenteredStory';
|
||||
import { GraphWithLegend, GraphWithLegendProps } from './GraphWithLegend';
|
||||
import { LegendDisplayMode } from '../VizLegend/types';
|
||||
import { GraphSeriesXY, FieldType, ArrayVector, dateTime, FieldColorModeId } from '@grafana/data';
|
||||
import { NOOP_CONTROL } from '../../utils/storybook/noopControl';
|
||||
|
||||
export default {
|
||||
title: 'Visualizations/Graph/GraphWithLegend',
|
||||
@ -15,6 +14,9 @@ export default {
|
||||
knobs: {
|
||||
disable: true,
|
||||
},
|
||||
controls: {
|
||||
exclude: ['className', 'series', 'timeRange', 'ariaLabel', 'legendDisplayMode'],
|
||||
},
|
||||
},
|
||||
argTypes: {
|
||||
displayMode: { control: { type: 'radio', options: ['table', 'list', 'hidden'] } },
|
||||
@ -24,11 +26,6 @@ export default {
|
||||
width: { control: { type: 'range', min: 200, max: 800 } },
|
||||
height: { control: { type: 'range', min: 200, max: 800 } },
|
||||
lineWidth: { control: { type: 'range', min: 1, max: 10 } },
|
||||
className: NOOP_CONTROL,
|
||||
series: NOOP_CONTROL,
|
||||
timeRange: NOOP_CONTROL,
|
||||
ariaLabel: NOOP_CONTROL,
|
||||
legendDisplayMode: NOOP_CONTROL,
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user