mirror of https://github.com/grafana/grafana
Grafana UI: Bump to Storybook 8 (#87722)
* chore(storybook): run yarn dlx storybook@latest upgrade * chore(storybook): remove storybook/blocks patch * chore(yarn): clean up storybook dependencies * feat(storybook): migrate to v8 config via migration codemods * refactor(storybook): update stories to use v8 types via codemod * refactor(storybook): update stories to use preview-api instead of client-api * refactor(storybook): replace mdx usage of ArgsTable with PureArgsTable * refactor(storybook): migrate remaining mdx files to v8 storybook/blocks api * refactor(storybook): clean up mdx imports and blocks component names * chore(storybook): clean up typescript configuration * fix(frontend): align types/react versions across monorepo so grafana ui can be built * fix(storybook): pub back react-docgen-typescript and use ArgTypes so props tables work * chore(storybook): patch blocks package to expose Preview component * revert(storybook): revert changes related to using Canvas component in mdx files * Storybook upgrade: Fix icon typing (#87793) fix iconOptions typing * refactor(storybook): prefer as const over asserting types * revert(storybook): put back correct case in box.mdx --------- Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>pull/87905/head^2
parent
6127dfd322
commit
65b2834420
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,11 +1,11 @@ |
||||
import { getAvailableIcons } from '../../types'; |
||||
|
||||
export const iconOptions = { |
||||
export const iconOptions: Record<string, string | undefined> = { |
||||
None: undefined, |
||||
...getAvailableIcons().reduce<Record<string, string>>((prev, c) => { |
||||
return { |
||||
...prev, |
||||
[`Icon: ${c}`]: `${c}`, |
||||
[`${c}`]: `Icon: ${c}`, |
||||
}; |
||||
}, {}), |
||||
}; |
||||
|
||||
@ -1 +1,4 @@ |
||||
export const SpacingTokenControl = { control: 'select', options: [0, 0.25, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10] }; |
||||
export const SpacingTokenControl = { |
||||
control: 'select' as const, |
||||
options: [0, 0.25, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8, 10], |
||||
}; |
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue