Skip to content

Commit fd9b8a7

Browse files
authored
Merge pull request #68 from aeagle/storybook
Project refactors and added storybook
2 parents 9917f7f + e2ffd08 commit fd9b8a7

File tree

132 files changed

+27100
-35088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+27100
-35088
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-react"]
3+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ yarn-debug.log*
2222
yarn-error.log*
2323
**/.rpt2_cache
2424
**/.next
25+
**/storybook-static

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.mdx

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": true,
4+
"printWidth": 150,
5+
"semi": true,
6+
"trailingComma": "all",
7+
"jsxBracketSameLine": true,
8+
"arrowParens": "always"
9+
}

.storybook/main.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const path = require("path");
2+
3+
module.exports = {
4+
stories: ["../src/**/*.stories.(mdx|tsx)"],
5+
addons: ["@storybook/preset-typescript", "@storybook/addon-actions", "@storybook/addon-links", "@storybook/addon-docs/preset"],
6+
webpackFinal: async (config, { configType }) => {
7+
if (process.env.NODE === "production") {
8+
config.output.publicPath = "/react-spaces/docs";
9+
}
10+
11+
config.module.rules.push({
12+
test: /\.scss$/,
13+
use: ["style-loader", "css-loader", "sass-loader"],
14+
include: path.resolve(__dirname, "../"),
15+
});
16+
17+
return config;
18+
},
19+
};

.storybook/preview-head.html

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
2+
<link href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" rel="stylesheet" />
3+
<style>
4+
body {
5+
font-family: "Ubuntu", sans-serif;
6+
font-size: 12px;
7+
}
8+
.sbdocs-wrapper {
9+
padding: 15px !important;
10+
}
11+
.sbdocs-wrapper h2 {
12+
font-weight: 300 !important;
13+
border-bottom: none !important;
14+
margin-bottom: 20px !important;
15+
}
16+
.sbdocs-wrapper h4 {
17+
margin-top: 20px !important;
18+
font-weight: 500 !important;
19+
}
20+
.sbdocs-wrapper p,
21+
.sbdocs-wrapper li {
22+
font-size: 16px !important;
23+
}
24+
.sbdocs-preview > div > div > div {
25+
margin-bottom: 15px;
26+
}
27+
.sbdocs-preview > div > div > div > div > div {
28+
position: relative;
29+
height: 600px;
30+
outline: 1px solid black;
31+
}
32+
.docblock-source {
33+
margin: 25px 0 !important;
34+
}
35+
</style>

demo/.env.analyse

-1
This file was deleted.

demo/config/env.js

-93
This file was deleted.

demo/config/jest/cssTransform.js

-14
This file was deleted.

demo/config/jest/fileTransform.js

-40
This file was deleted.

demo/config/modules.js

-84
This file was deleted.

0 commit comments

Comments
 (0)