Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .storybook/decorators/withLang.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import {Lang, configure} from '@gravity-ui/uikit';
import type {Decorator} from '@storybook/react';
import type {Decorator} from '@storybook/react-webpack5';

export const withLang: Decorator = (Story, context) => {
const lang = context.globals.lang;
Expand Down
2 changes: 1 addition & 1 deletion .storybook/decorators/withMobile.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import {MobileProvider} from '@gravity-ui/uikit';
import type {Decorator} from '@storybook/react';
import type {Decorator} from '@storybook/react-webpack5';

export const withMobile: Decorator = (Story, context) => {
const platform = context.globals.platform;
Expand Down
2 changes: 1 addition & 1 deletion .storybook/focus-addon/register.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/manager-api';
import {addons} from 'storybook/manager-api';

addons.register('initialFocus', () => {
addons.getChannel().on('currentStoryWasSet', () => focusIframe());
Expand Down
13 changes: 4 additions & 9 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const config: StorybookConfig = {

addons: [
'@storybook/addon-links',
{ name: '@storybook/addon-essentials', options: { backgrounds: false } },
'@storybook/addon-interactions',
'storybook-preset-inline-svg',
'./theme-addon/register.tsx',
'./focus-addon/register.tsx',
Expand All @@ -21,12 +19,6 @@ const config: StorybookConfig = {
options: {}
},

docs: {},

core: {
disableTelemetry: true,
},

typescript: {
reactDocgen: 'react-docgen-typescript'
},
Expand Down Expand Up @@ -108,8 +100,11 @@ const config: StorybookConfig = {
);

return config;
}
},

features: {
backgrounds: false
}
};

export default config;
2 changes: 1 addition & 1 deletion .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/manager-api';
import {addons} from 'storybook/manager-api';
import {themes} from './theme';

addons.setConfig({
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type {Decorator, Preview} from '@storybook/react';
import type {Decorator, Preview} from '@storybook/react-webpack5';
import {ThemeProvider, MobileProvider, Lang, configure as uiKitConfigure} from '@gravity-ui/uikit';
import {withMobile} from './decorators/withMobile';
import {withLang} from './decorators/withLang';
Expand Down
4 changes: 2 additions & 2 deletions .storybook/theme-addon/register.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import {addons, types} from '@storybook/manager-api';
import {useGlobals, type API} from '@storybook/manager-api';
import {addons, types} from 'storybook/manager-api';
import {useGlobals, type API} from 'storybook/manager-api';
import {getThemeType} from '@gravity-ui/uikit';
import {themes} from '../theme';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {create} from '@storybook/theming';
import {create} from 'storybook/theming';

const CloudThemeLight = create({
base: 'light',
Expand Down
Loading
Loading