Skip to content

Commit be86afd

Browse files
committed
chore: dependencies and apis update
1 parent b2d8856 commit be86afd

27 files changed

Lines changed: 19339 additions & 16784 deletions

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
],
3030
"@babel/plugin-proposal-nullish-coalescing-operator",
3131
"@babel/plugin-proposal-do-expressions",
32-
"@babel/plugin-proposal-function-bind"
32+
"@babel/plugin-proposal-function-bind",
33+
"@babel/plugin-transform-modules-commonjs"
3334
]
3435
}

.eslintrc.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@
7272
"react/prefer-es6-class": "warn",
7373
"react/prop-types": "warn",
7474
"react/react-in-jsx-scope": "warn",
75-
"react/require-extension": "warn",
7675
"react/self-closing-comp": "warn",
77-
"react/sort-comp": "warn",
78-
"react/wrap-multilines": "warn"
76+
"react/sort-comp": "warn"
7977
}
8078
}

.storybook/config.js

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

.storybook/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
stories: ['../story.js'],
3+
};

docs/favicon.ico

26.9 KB
Binary file not shown.

docs/iframe.html

Lines changed: 74 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,74 @@
1-
<!DOCTYPE html>
2-
<html>
3-
4-
<head>
5-
<meta charset="utf-8">
6-
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
8-
<base target="_parent">
9-
<script>
10-
if (window.parent !== window) {
11-
try {
12-
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
13-
} catch (error) {
14-
// The above line can throw if we do not have access to the parent frame -- i.e. cross origin
15-
}
16-
}
17-
</script>
18-
<title>Storybook</title>
19-
20-
</head>
21-
22-
<body>
23-
<div id="root"></div>
24-
<div id="error-display"></div>
25-
<script type="text/javascript" src="static/preview.c57a8d0ca1345ce67db2.bundle.js"></script></body>
26-
27-
</html>
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.f784816d1f43c2dfc5c8.bundle.js"></script><script src="vendors~main.f784816d1f43c2dfc5c8.bundle.js"></script><script src="main.f784816d1f43c2dfc5c8.bundle.js"></script></body></html>

docs/index.html

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,19 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<meta name="storybook-version" content="3.4.11">
7-
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
8-
<title>Storybook</title>
9-
<style>
10-
/*
11-
When resizing panels, the drag event breaks if the cursor
12-
moves over the iframe. Add the 'dragging' class to the body
13-
at drag start and remove it when the drag ends.
14-
*/
15-
.dragging iframe {
16-
pointer-events: none;
17-
}
18-
19-
/* Styling the fuzzy search box placeholders */
20-
.searchBox::-webkit-input-placeholder { /* Chrome/Opera/Safari */
21-
color: #ddd;
22-
font-size: 16px;
23-
}
24-
25-
.searchBox::-moz-placeholder { /* Firefox 19+ */
26-
color: #ddd;
27-
font-size: 16px;
28-
}
29-
30-
.searchBox:focus{
31-
border-color: #EEE !important;
32-
}
33-
34-
.btn:hover{
35-
background-color: #eee
36-
}
37-
</style>
38-
39-
40-
</head>
41-
<body style="margin: 0;">
42-
<div id="root"></div>
43-
<script type="text/javascript" src="static/manager.469a9ef1a86e3e533b17.bundle.js"></script></body>
44-
</html>
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'] = false;</script><script src="runtime~main.8bfece81a1ead32e094c.bundle.js"></script><script src="vendors~main.e8135d03a47b34cf111e.bundle.js"></script><script src="main.5da119d0a62d15786474.bundle.js"></script></body></html>

docs/main.5da119d0a62d15786474.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)