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:
Jack Westbrook
2021-04-06 14:47:17 +02:00
committed by GitHub
parent 317909f0c9
commit 7374f380bd
34 changed files with 1564 additions and 2238 deletions

View File

@ -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,
},
};