From 895c40c2a79433feb6123d13afec4397992b9bbe Mon Sep 17 00:00:00 2001 From: Rajat Talesra Date: Tue, 11 Oct 2022 12:54:50 +0530 Subject: [PATCH] Updated storybook (#18559) --- app/javascript/.storybook/preview.js | 2 +- .../__stories__/Components.stories.mdx | 4 +-- .../__stories__/Utility-first-css.stories.mdx | 14 ++++----- .../__stories__/Writing-css.stories.mdx | 29 +++++++++---------- .../__stories__/introduction.stories.mdx | 4 +-- .../__stories__/MediaQuery.stories.mdx | 2 +- 6 files changed, 27 insertions(+), 28 deletions(-) diff --git a/app/javascript/.storybook/preview.js b/app/javascript/.storybook/preview.js index c1875c3b39b0e..d24b5ae8cff45 100644 --- a/app/javascript/.storybook/preview.js +++ b/app/javascript/.storybook/preview.js @@ -1,6 +1,6 @@ import { h } from 'preact'; import { addDecorator, addParameters } from '@storybook/preact'; -import { DocsPage, DocsContainer } from '@storybook/addon-docs/blocks'; +import { DocsPage, DocsContainer } from '@storybook/addon-docs'; import { jsxDecorator } from 'storybook-addon-jsx'; import cssVariablesTheme from '@etchteam/storybook-addon-css-variables-theme'; import 'focus-visible'; diff --git a/app/javascript/crayons/guidelines/__stories__/Components.stories.mdx b/app/javascript/crayons/guidelines/__stories__/Components.stories.mdx index 25bd9e889b7b0..6395eab897ed2 100644 --- a/app/javascript/crayons/guidelines/__stories__/Components.stories.mdx +++ b/app/javascript/crayons/guidelines/__stories__/Components.stories.mdx @@ -1,6 +1,6 @@ import { h } from 'preact'; import '../../storybook-utilities/designSystem.scss'; -import { Meta } from '@storybook/addon-docs/blocks'; +import { Meta } from '@storybook/addon-docs'; @@ -53,7 +53,7 @@ The same button above that was created with pure HTML using modifying classes is also a Preact component. ``` -import { Button } from '@crayons'; +import { Button } from '@crayons'; ...