This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
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
1 parent
6505749
commit 5912d12
Showing
12 changed files
with
3,398 additions
and
389 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
const path = require('path') | ||
|
||
module.exports = { | ||
webpackFinal: async config => { | ||
config.module.rules.push({ | ||
test: /\.(ts|tsx)$/, | ||
use: [ | ||
{ | ||
loader: require.resolve('babel-loader'), | ||
options: { | ||
presets: [['react-app', { flow: false, typescript: true }]], | ||
}, | ||
}, | ||
{ | ||
loader: require.resolve('react-docgen-typescript-loader'), | ||
}, | ||
{ | ||
loader: require.resolve('@storybook/source-loader'), | ||
options: { | ||
enforce: 'pre', | ||
}, | ||
}, | ||
], | ||
}) | ||
config.resolve.extensions.push('.ts', '.tsx') | ||
return config | ||
}, | ||
stories: ['../src/**/story.(tsx|mdx)', '../src/**/*.story.(tsx|mdx)'], | ||
addons: [ | ||
'@storybook/addon-knobs', | ||
'@storybook/addon-actions', | ||
'@storybook/addon-links', | ||
'@storybook/addon-viewport', | ||
'@storybook/addon-a11y', | ||
{ | ||
name: '@storybook/addon-docs', | ||
options: { | ||
configureJSX: true, | ||
}, | ||
}, | ||
{ | ||
name: '@storybook/addon-storysource', | ||
}, | ||
], | ||
} |
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,6 @@ | ||
import { addons } from '@storybook/addons' | ||
import theme from './theme' | ||
|
||
addons.setConfig({ | ||
theme, | ||
}) |
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,25 @@ | ||
import React from 'react' | ||
import { addDecorator, addParameters } from '@storybook/react' | ||
import { withKnobs } from '@storybook/addon-knobs' | ||
import { withA11y } from '@storybook/addon-a11y' | ||
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport' | ||
|
||
import { BaseSection as Section } from '../src/layout/section/baseSection' | ||
|
||
import '../stories/stories.css' | ||
|
||
addParameters({ | ||
options: { | ||
showPanel: true, | ||
isToolshown: true, | ||
storySort: (a, b) => | ||
a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true }), | ||
}, | ||
viewport: { | ||
viewports: INITIAL_VIEWPORTS, | ||
defaultViewport: 'iPhone 6', | ||
}, | ||
}) | ||
|
||
addDecorator(withKnobs) | ||
addDecorator(withA11y) |
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,25 @@ | ||
import { create } from '@storybook/theming/create' | ||
|
||
export default create({ | ||
base: 'light', | ||
brandTitle: 'BlaBlaCar', | ||
brandUrl: 'https://www.blablacar.fr/', | ||
brandImage: | ||
'https://dxxbxu0f802py.cloudfront.net/wp-content/uploads/2020/03/17104851/BLOG%20THUMBNAIL-300x300.png', | ||
fontBase: 'gt-eesti, sans-serif', | ||
colorPrimary: 'hotpink', | ||
colorSecondary: '#00AFF5', | ||
textColor: '#708c91', | ||
textInverseColor: 'rgba(255,255,255,0.9)', | ||
appBg: 'white', | ||
appContentBg: 'white', | ||
appBorderColor: '#dae1e7', | ||
appBorderRadius: 4, | ||
barTextColor: '#00AFF5', | ||
barSelectedColor: '#054752', | ||
barBg: 'white', | ||
inputBg: 'white', | ||
inputBorder: '#dae1e7', | ||
inputTextColor: '#054752', | ||
inputBorderRadius: 8, | ||
}) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.