-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raphaël Benitte
authored and
Raphaël Benitte
committed
Mar 21, 2019
1 parent
233e2ea
commit 670d22d
Showing
32 changed files
with
5,541 additions
and
4,027 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ | ||
|
||
import '@storybook/addon-links/register' | ||
import '@storybook/addon-knobs/register' | ||
import '@storybook/addon-actions/register' | ||
import '@storybook/addon-links/register' | ||
import '@storybook/addon-storysource/register' |
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,26 @@ | ||
<style type="text/css"> | ||
#root { | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
|
||
#story-root { | ||
/* | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
*/ | ||
font-family: 'Consolas', monospace; | ||
font-size: 13px; | ||
} | ||
|
||
#story-root text { | ||
font-family: 'Consolas', monospace; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
import { create } from '@storybook/theming' | ||
|
||
export default create({ | ||
base: 'light', | ||
|
||
brandTitle: 'nivo', | ||
brandUrl: 'https://nivo.rocks', | ||
brandImage: null, | ||
}) |
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,45 @@ | ||
module.exports = ({ config }) => { | ||
return { | ||
...config, | ||
module: { | ||
...config.module, | ||
rules: [ | ||
// Temp fix for issue: https://github.com/storybooks/storybook/issues/3346 | ||
...config.module.rules.map(rule => { | ||
if (rule.use && rule.use.length) { | ||
const isBabelLoader = rule.use.some(({ loader }) => loader === 'babel-loader') | ||
if (isBabelLoader) { | ||
return { | ||
...rule, | ||
use: rule.use.map(use => { | ||
if (use.loader === 'babel-loader') { | ||
return { | ||
...use, | ||
options: { | ||
...use.options, | ||
babelrc: false, | ||
} | ||
} | ||
} | ||
|
||
return use | ||
}), | ||
exclude: [ | ||
...rule.exclude, | ||
/\/packages\/.*\/cjs\// | ||
] | ||
} | ||
} | ||
} | ||
|
||
return rule | ||
}), | ||
{ | ||
test: /\.stories\.jsx?$/, | ||
loaders: [require.resolve('@storybook/addon-storysource/loader')], | ||
enforce: 'pre', | ||
} | ||
] | ||
} | ||
} | ||
} |
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.