diff --git a/.storybook/main.ts b/.storybook/main.ts index a8fb1705..f7963393 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -4,7 +4,16 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin'); const config: StorybookConfig = { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], - addons: ['@storybook/addon-essentials', '@storybook/preset-scss', '@storybook/addon-docs'], + addons: [ + { + name: '@storybook/addon-essentials', + options: { + controls: false, + actions: false, + }, + }, + '@storybook/preset-scss', + ], framework: { name: '@storybook/react-webpack5', options: {fastRefresh: true}, diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 8e2cd876..cdde3314 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -2,16 +2,6 @@ import {withTheme, withLang} from './decorators'; export const decorators = [withTheme, withLang]; -export const parameters = { - actions: {argTypesRegex: '^on[A-Z].*'}, - controls: { - matchers: { - color: /(background|color)$/i, - date: /Date$/, - }, - }, -}; - export const globalTypes = { theme: { defaultValue: 'light', @@ -37,4 +27,4 @@ export const globalTypes = { ], }, }, -} +};