-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/storybook v6 v2 #348
Merged
Merged
Feat/storybook v6 v2 #348
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
063b7ab
feat: deps update
lazzystep 6623f6d
fix: removed webpack + upraded deps
vlacher12 51194af
feat: add storybook v6
kkurylchenko e562a52
fix: small docs
kkurylchenko c4cabf4
feat: add accessibility addon
kkurylchenko c700766
feat: update deps
kkurylchenko a2a168b
fix: imports
kkurylchenko 161e54e
feat: v6 stable build
vlacher12 5c95ab8
fix: svg icons
vlacher12 6867b32
fix: package version
vlacher12 482c416
Merge branch 'feat/storybook-v6-v2' into feat/v6/stable
vozbrann f458f61
fix: add classnames to peer-dep
vozbrann 8ad4ee0
refactor: storybook upgrade
vozbrann c8fd9d6
Merge pull request #371 from Panenco/feat/v6/stable
vozbrann 8eab39a
fix: build
vozbrann a4c2f6a
fix: build
vozbrann b3b4f9a
fix: storybook styles
vozbrann e514777
fix: lint errors
vozbrann 0f5bda9
Merge pull request #439 from Panenco/fix/storybook-styles
vozbrann eb9c2bf
Merge pull request #441 from Panenco/fix/lint-errors
vozbrann 18cf31d
Merge branch 'master' into feat/storybook-v6-v2
vozbrann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,3 +1,2 @@ | ||
// import '@storybook/addon-actions/register'; | ||
// import '@storybook/addon-knobs/register'; | ||
import 'storybook-readme/register'; |
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,31 @@ | ||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); | ||
|
||
module.exports = { | ||
stories: ['../stories/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'@storybook/addon-a11y', | ||
], | ||
webpackFinal: async (config, { configType }) => { | ||
config.resolve.plugins = [new TsconfigPathsPlugin()]; | ||
|
||
config.module.rules = config.module.rules.map((rule) => { | ||
if (rule.test && rule.test.toString().includes('svg')) { | ||
const test = rule.test.toString().replace('svg|', '').replace(/\//g, ''); | ||
return { ...rule, test: new RegExp(test) }; | ||
} else { | ||
return rule; | ||
} | ||
}); | ||
|
||
config.module.rules.push({ | ||
test: /\.svg$/, | ||
loader: require.resolve('svg-sprite-loader'), | ||
}); | ||
|
||
return config; | ||
}, | ||
framework: '@storybook/react', | ||
}; |
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,11 @@ | ||
import '!style-loader!css-loader!./styles.css'; | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}; |
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,68 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;800&display=swap'); | ||
|
||
* { | ||
box-sizing: border-box; | ||
font-family: 'Nunito Sans', sans-serif; | ||
-moz-osx-font-smoothing: auto; | ||
-webkit-font-smoothing: antialiased; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
#root { | ||
padding: 15px 30px; | ||
} | ||
|
||
svg [fill]:not([fill='none']):not([fill^='url(']), | ||
symbol [fill]:not([fill='none']):not([fill^='url(']) { | ||
fill: currentColor !important; | ||
} | ||
svg [stroke]:not([stroke='none']):not([stroke^='url(']), | ||
symbol [stroke]:not([stroke='none']):not([stroke^='url(']) { | ||
stroke: currentColor !important; | ||
} | ||
|
||
ul { | ||
list-style: none; | ||
} | ||
|
||
a { | ||
outline: none; | ||
text-decoration: none; | ||
} | ||
|
||
input { | ||
outline: none; | ||
} | ||
|
||
button { | ||
outline: none; | ||
} | ||
|
||
.mb-1 { | ||
margin-bottom: 1rem !important; | ||
} | ||
|
||
.mr-1 { | ||
margin-right: 1px !important; | ||
} | ||
|
||
.ml-1 { | ||
margin-left: 1px !important; | ||
} | ||
|
||
.mt-1 { | ||
margin-top: 1rem !important; | ||
} | ||
|
||
.justify-around { | ||
justify-content: space-around; | ||
} | ||
|
||
.justify-center { | ||
justify-content: center; | ||
} | ||
|
||
.justify-between { | ||
justify-content: space-between; | ||
} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
declare module '*.scss'; | ||
declare module '*.svg'; | ||
declare module '*.md'; |
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import cx from 'classnames'; | ||
|
||
import { Text, TextInput } from 'components'; | ||
|
||
import * as React from 'react'; | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need it anymore