Skip to content

Commit 081f7a8

Browse files
author
Ryan Sites
committed
add src
1 parent d1ef0cc commit 081f7a8

Some content is hidden

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

45 files changed

+3190
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.yml]
11+
indent_style = space
12+
indent_size = 2

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Compiled binary addons (https://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directories
27+
node_modules/
28+
jspm_packages/
29+
30+
# TypeScript v1 declaration files
31+
typings/
32+
33+
# npm package-lock file
34+
package-lock.json
35+
36+
# Optional npm cache directory
37+
.npm
38+
39+
# Optional eslint cache
40+
.eslintcache
41+
42+
# Optional REPL history
43+
.node_repl_history
44+
45+
# Output of 'npm pack'
46+
*.tgz
47+
48+
# Yarn Integrity file
49+
.yarn-integrity
50+
51+
# dotenv environment variables file
52+
.env
53+
54+
# VS Code
55+
.vscode
56+
57+
# OSX
58+
.DS_Store
59+
60+
# compiled server output
61+
dist
62+
63+
# storybook
64+
storybook-static
65+
.cache
66+
67+
yarn-error.log

.storybook/main.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
stories: ['../stories/**/*.(tsx|mdx)'],
3+
addons: ['@storybook/addon-actions', '@storybook/addon-links', '@storybook/addon-docs'],
4+
webpackFinal: async config => {
5+
config.module.rules.push({
6+
test: /\.(ts|tsx)$/,
7+
use: [
8+
{
9+
loader: require.resolve('ts-loader'),
10+
},
11+
// Optional
12+
{
13+
loader: require.resolve('react-docgen-typescript-loader'),
14+
},
15+
],
16+
});
17+
config.resolve.extensions.push('.ts', '.tsx');
18+
return config;
19+
},
20+
};
21+

.storybook/preview.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { addDecorator } from "@storybook/react";
2+
import * as React from "react";
3+
import { CSSReset, ThemeProvider } from "@chakra-ui/core";
4+
import '@storybook/addon-console';
5+
6+
7+
const AppProvider = ({ children }) => {
8+
return (
9+
<ThemeProvider>
10+
<CSSReset />
11+
{children}
12+
</ThemeProvider>
13+
);
14+
};
15+
16+
addDecorator(storyFn => <AppProvider>{storyFn()}</AppProvider>);

docs-wrapper.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as React from 'react'
2+
import {ThemeProvider} from '@chakra-ui/core'
3+
4+
const DocsWrapper = (props: any): JSX.Element => {
5+
return <ThemeProvider>{props.children}</ThemeProvider>
6+
}
7+
8+
export default DocsWrapper

docs/favicon.ico

32.2 KB
Binary file not shown.

docs/iframe.html

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"><base target="_parent"><style>:not(.sb-show-main) > .sb-main,
2+
:not(.sb-show-nopreview) > .sb-nopreview,
3+
:not(.sb-show-errordisplay) > .sb-errordisplay {
4+
display: none;
5+
}
6+
7+
.sb-wrapper {
8+
position: fixed;
9+
top: 0;
10+
bottom: 0;
11+
left: 0;
12+
right: 0;
13+
padding: 20px;
14+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
15+
-webkit-font-smoothing: antialiased;
16+
overflow: auto;
17+
}
18+
19+
.sb-heading {
20+
font-size: 14px;
21+
font-weight: 600;
22+
letter-spacing: 0.2px;
23+
margin: 10px 0;
24+
padding-right: 25px;
25+
}
26+
27+
.sb-nopreview {
28+
display: flex;
29+
align-content: center;
30+
justify-content: center;
31+
}
32+
33+
.sb-nopreview_main {
34+
margin: auto;
35+
padding: 30px;
36+
border-radius: 10px;
37+
background: rgba(0,0,0,0.03);
38+
}
39+
40+
.sb-nopreview_heading {
41+
text-align: center;
42+
}
43+
44+
.sb-errordisplay {
45+
border: 20px solid rgb(187, 49, 49);
46+
background: #222;
47+
color: #fff;
48+
z-index: 999999;
49+
}
50+
51+
.sb-errordisplay_code {
52+
padding: 10px;
53+
background: #000;
54+
color: #eee;
55+
font-family: "Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Andale Mono", "Lucida Console", Consolas, Monaco, monospace;
56+
}
57+
58+
.sb-errordisplay pre {
59+
white-space: pre-wrap;
60+
}</style><script>/* globals window */
61+
/* eslint-disable no-underscore-dangle */
62+
try {
63+
if (window.top !== window) {
64+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
65+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.top.__VUE_DEVTOOLS_GLOBAL_HOOK__;
66+
window.top.__VUE_DEVTOOLS_CONTEXT__ = window.document;
67+
}
68+
} catch (e) {
69+
// eslint-disable-next-line no-console
70+
console.warn('unable to connect to top frame for connecting dev tools');
71+
}</script><style>#root[hidden],
72+
#docs-root[hidden] {
73+
display: none !important;
74+
}</style></head><body><div class="sb-nopreview sb-wrapper"><div class="sb-nopreview_main"><h1 class="sb-nopreview_heading sb-heading">No Preview</h1><p>Sorry, but you either have no stories or none are selected somehow.</p><ul><li>Please check the Storybook config.</li><li>Try reloading the page.</li></ul><p>If the problem persists, check the browser console, or the terminal you've run Storybook from.</p></div></div><div class="sb-errordisplay sb-wrapper"><pre id="error-message" class="sb-heading"></pre><pre class="sb-errordisplay_code"><code id="error-stack"></code></pre></div><div id="root"></div><div id="docs-root"></div><script src="runtime~main.a0d100945b4ae350a012.bundle.js"></script><script src="vendors~main.a0d100945b4ae350a012.bundle.js"></script><script src="main.a0d100945b4ae350a012.bundle.js"></script></body></html>

docs/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Storybook</title><meta name="viewport" content="width=device-width,initial-scale=1"/><style>html, body {
2+
overflow: hidden;
3+
height: 100%;
4+
width: 100%;
5+
margin: 0;
6+
padding: 0;
7+
}</style><script>/* globals window */
8+
/* eslint-disable no-underscore-dangle */
9+
try {
10+
if (window.top !== window) {
11+
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.top.__REACT_DEVTOOLS_GLOBAL_HOOK__;
12+
}
13+
} catch (e) {
14+
// eslint-disable-next-line no-console
15+
console.warn('unable to connect to top frame for connecting dev tools');
16+
}</script><style>#root[hidden],
17+
#docs-root[hidden] {
18+
display: none !important;
19+
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['DOCS_MODE'] = true;</script><script src="runtime~main.286b69a873d49f2f199c.bundle.js"></script><script src="vendors~main.67234067e261292dfce3.bundle.js"></script><script src="main.0cc2659f2ebb68b3fe59.bundle.js"></script></body></html>

docs/main.0cc2659f2ebb68b3fe59.bundle.js

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

0 commit comments

Comments
 (0)