-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* conditionally bundle proptypes * only build umd bundle for storybook * use env variable when building core-react for storybook * configure storybook * combine mdx and csf stories * rewrite stories * remove unused imports * add back unused import that turned out to be used * override docs styles * don’t use equinor type in code * use style prop instead of extended component
- Loading branch information
Showing
18 changed files
with
3,832 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { Preview as StorybookPreview } from '@storybook/addon-docs/blocks' | ||
|
||
const Preview = ({ children, ...props }) => ( | ||
<StorybookPreview {...props}>{children}</StorybookPreview> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
module.exports = { | ||
stories: ['../stories/**/*.stories.jsx'], | ||
stories: ['../docs/**/*.story.mdx', '../stories/**/*.stor(y|ies).(jsx|mdx)'], | ||
addons: [ | ||
'@storybook/addon-actions', | ||
'@storybook/addon-links', | ||
'@storybook/addon-storysource', | ||
'@storybook/addon-a11y', | ||
'@storybook/addon-knobs', | ||
{ | ||
name: '@storybook/addon-docs', | ||
options: { | ||
configureJSX: true, | ||
}, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Meta } from '@storybook/addon-docs/blocks' | ||
import { Typography } from '@equinor/eds-core-react' | ||
|
||
<Meta title="Articles|Intro" /> | ||
|
||
# @equinor/eds-core-react | ||
|
||
[![Version](https://img.shields.io/npm/v/@equinor/eds-core-react)](https://www.npmjs.com/package/@equinor/eds-core-react) | ||
|
||
<Typography variant="ingress">This is the storybook for the React implementation of the Equinor Design System. We have a <a href="https://eds.equinor.com/">storefront</a> with extensive documentation, this storybook is just for showcasing the components and as a place to put developer documentation until we move that to the storefront.</Typography> | ||
|
||
If you want to get in touch with the team, you’ll find us in the Equinor slack channel [#eds-design-system](https://equinor.slack.com/archives/CJT20H1B9). The `@equinor/eds-core-react` package can be installed from [NPM](https://equinor.slack.com/archives/CJT20H1B9) – and the source code (not public yet) is on [Github](https://github.com/equinor/design-system). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.