Skip to content

Commit

Permalink
migrate to @storybook/addon-designs
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jul 23, 2023
1 parent e4f87cc commit 50f1b9c
Show file tree
Hide file tree
Showing 7 changed files with 3,161 additions and 4,367 deletions.
8 changes: 3 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
stories: [
'../src/docs/Introduction.mdx',
Expand All @@ -11,16 +12,13 @@ const config: StorybookConfig = {
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@storybook/addon-coverage',
'storybook-addon-designs',
'@storybook/addon-designs',
],
typescript: {
reactDocgen: 'react-docgen',
},
staticDirs: ['../public'],
framework: {
name: '@storybook/react-vite',
options: {},
},
framework: '@storybook/react-vite',
docs: {
autodocs: 'tag',
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@
"@ladle/react": "^2.4.5",
"@storybook/addon-a11y": "7.1.0",
"@storybook/addon-coverage": "^0.0.8",
"@storybook/addon-designs": "^7.0.1",
"@storybook/addon-essentials": "7.1.0",
"@storybook/addon-interactions": "7.1.0",
"@storybook/addon-storyshots": "7.1.0",
"@storybook/blocks": "7.1.0",
"@storybook/jest": "^0.1.0",
"@storybook/react": "7.1.0",
"@storybook/react-vite": "7.1.0",
Expand Down Expand Up @@ -101,7 +103,6 @@
"react-is": "^17.0.2",
"react-test-renderer": "^17.0.2",
"storybook": "7.1.0",
"storybook-addon-designs": "^7.0.0-beta.2",
"storybook-mobile": "^1.0.1",
"vite": "^4.0.0",
"vite-plugin-svgr": "^2.2.2",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, Description } from '@storybook/blocks'
import { Figma } from "storybook-addon-designs/blocks";
import { Figma } from "@storybook/addon-designs/blocks";
import { Grid } from './utils'
import * as ButtonStories from './Button.stories'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon/Icon.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Title, IconGallery, IconItem } from '@storybook/addon-docs';
import { Meta, Title, IconGallery, IconItem } from '@storybook/blocks';

import { Icon as IconExample } from './Icon';

Expand Down
2 changes: 1 addition & 1 deletion src/docs/Introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta } from '@storybook/addon-docs'
import { Meta } from '@storybook/blocks'
import Code from './assets/code-brackets.svg'
import Comments from './assets/comments.svg'
import Twitter from './assets/twitter.svg'
Expand Down
2 changes: 1 addition & 1 deletion src/docs/Typography.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, Typeset } from '@storybook/addon-docs'
import { Meta, Typeset } from '@storybook/blocks'

<Meta title="Design System/Typography" />

Expand Down
Loading

0 comments on commit 50f1b9c

Please sign in to comment.