Skip to content

Commit 9cfd78e

Browse files
committed
Added more stories
1 parent 35e9941 commit 9cfd78e

32 files changed

+1083
-169
lines changed

react-spaces/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.mdx

react-spaces/.prettierrc

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

react-spaces/.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
stories: ["../src/**/*.stories.(mdx|tsx)"],
3-
addons: ["@storybook/addon-actions", "@storybook/addon-links", "@storybook/addon-docs/register"],
3+
addons: ["@storybook/preset-typescript", "@storybook/addon-actions", "@storybook/addon-links", "@storybook/addon-docs/preset"],
44
};

react-spaces/.storybook/manager.js

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
1+
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
12
<link href="https://fonts.googleapis.com/css?family=Ubuntu&display=swap" rel="stylesheet" />
23
<style>
34
body {
45
font-family: "Ubuntu", sans-serif;
56
font-size: 12px;
67
}
8+
.sbdocs-wrapper {
9+
padding: 20px 0 0 0 !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 p,
17+
.sbdocs-wrapper li {
18+
font-size: 16px !important;
19+
}
20+
.sbdocs-preview > div > div > div {
21+
margin-bottom: 15px;
22+
}
23+
.sbdocs-preview > div > div > div > div > div {
24+
position: relative;
25+
height: 600px;
26+
outline: 1px solid black;
27+
}
28+
.docblock-source {
29+
margin: 25px 0 !important;
30+
}
731
</style>

react-spaces/.storybook/webpack.config.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

react-spaces/package-lock.json

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

react-spaces/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@storybook/addon-knobs": "^5.3.14",
3838
"@storybook/addon-links": "^5.3.14",
3939
"@storybook/addons": "^5.3.14",
40+
"@storybook/preset-typescript": "^2.1.0",
4041
"@storybook/react": "^5.3.14",
4142
"@types/jest": "^24.0.15",
4243
"@types/node": "^12.6.8",
@@ -61,6 +62,7 @@
6162
"rollup-plugin-typescript2": "^0.22.1",
6263
"rollup-watch": "^4.3.1",
6364
"sass-loader": "^8.0.2",
65+
"ts-loader": "^6.2.1",
6466
"tslib": "^1.10.0",
6567
"typescript": "^3.5.3"
6668
},
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Meta, Story, Preview, Props } from "@storybook/addon-docs/blocks";
2+
import { CommonHeader } from "../Utils";
3+
4+
<CommonHeader />
5+
6+
<Meta title="React Spaces|Introduction" />
7+
8+
## Introduction
9+
10+
**An easy to understand and nestable layout system, React Spaces allow you to divide a page
11+
or container into anchored, scrollable and resizable spaces enabling you to build desktop
12+
type user interfaces in the browser.**
13+
14+
React Spaces allow you to divide a page or container HTML element into spaces. These
15+
spaces know how to behave in relation to each other and can also be divided into further
16+
nested spaces.
17+
18+
The library contains a small number of components which can be used to build more complex
19+
desktop type user interfaces.
20+
21+
<div style={{ paddingTop: 15, textAlign: "center" }}>
22+
<img style={{ border: "1px solid black" }} src="https://www.allaneagle.com/react-spaces/react-spaces-demo.gif" width="100%" />
23+
</div>

0 commit comments

Comments
 (0)