chore: upgrade storybook to v10 (#11334)

- Replaced deprecated `@storybook/addon-styling` with `@storybook/addon-themes`
- Removed deprecated `@storybook/addon-essentials` and `@storybook/addon-interactions`
- Upgraded `chromatic`, although it's seemingly unused anywhere
- Upgraded `@types/node` to match the ones in the guide and website

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2025-12-08 08:27:04 +00:00
committed by GitHub
parent 9005c8ae9c
commit d518c97840
4 changed files with 205 additions and 2388 deletions

View File

@@ -2,12 +2,7 @@ import type { StorybookConfig } from '@storybook/react-vite';
export default {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-styling',
],
addons: ['@storybook/addon-links', '@storybook/addon-themes', '@storybook/addon-docs'],
core: {
builder: '@storybook/builder-vite',
},
@@ -15,7 +10,4 @@ export default {
name: '@storybook/react-vite',
options: {},
},
docs: {
autodocs: 'tag',
},
} satisfies StorybookConfig;

View File

@@ -1,5 +1,5 @@
import type { Preview } from '@storybook/react';
import { withThemeByClassName } from '@storybook/addon-styling';
import { withThemeByClassName } from '@storybook/addon-themes';
import '@unocss/reset/tailwind-compat.css';
import './preview.css';