Skip to content

Commit e1a3661

Browse files
author
Ryan Sites
authored
Feature - update state management (#6)
* refresh * switch to react 17 * bump version
1 parent fa51952 commit e1a3661

File tree

70 files changed

+8556
-12117
lines changed

Some content is hidden

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

70 files changed

+8556
-12117
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

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

.storybook/main.js

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1+
const path = require("path");
2+
3+
const toPath = (_path) => path.join(process.cwd(), _path);
4+
15
module.exports = {
2-
"stories": [
3-
"../src/stories/*.@(tsx|mdx)"
4-
],
5-
"addons": [
6+
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
7+
addons: [
8+
"@storybook/addon-links",
69
"@storybook/addon-essentials",
7-
"@storybook/preset-create-react-app"
10+
"@storybook/preset-create-react-app",
811
],
9-
typescript: {
10-
check: false,
11-
checkOptions: {},
12-
reactDocgen: 'react-docgen-typescript',
13-
reactDocgenTypescriptOptions: {
14-
shouldExtractLiteralValuesFromEnum: true,
15-
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
16-
},
17-
}
18-
}
12+
webpackFinal: async (config) => {
13+
return {
14+
...config,
15+
resolve: {
16+
...config.resolve,
17+
alias: {
18+
...config.resolve.alias,
19+
"@emotion/core": toPath("node_modules/@emotion/react"),
20+
"emotion-theming": toPath("node_modules/@emotion/react"),
21+
},
22+
},
23+
};
24+
},
25+
};

.storybook/preview.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1 @@
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-
export const parameters = {
8-
controls: { expanded: false },
9-
};
10-
11-
const AppProvider = ({ children }) => {
12-
return (
13-
<ThemeProvider>
14-
<CSSReset />
15-
{children}
16-
</ThemeProvider>
17-
);
18-
};
19-
20-
addDecorator(storyFn => <AppProvider>{storyFn()}</AppProvider>);
1+
import "@storybook/addon-console";

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"recommendations": [
3-
"samverschueren.linter-xo",
43
"esbenp.prettier-vscode"
54
]
65
}

.vscode/settings.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"xo.enable": true,
3-
"xo.format.enable": true,
42
"javascript.format.enable": false,
53
"javascript.validate.enable": false,
64
"prettier.tabWidth": 4,
@@ -11,14 +9,14 @@
119
},
1210
"[javascript]": {
1311
"editor.formatOnSave": true,
14-
"editor.defaultFormatter": "samverschueren.linter-xo"
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
1513
},
1614
"[typescript]": {
1715
"editor.formatOnSave": true,
18-
"editor.defaultFormatter": "samverschueren.linter-xo"
16+
"editor.defaultFormatter": "esbenp.prettier-vscode"
1917
},
2018
"[typescriptreact]": {
2119
"editor.formatOnSave": true,
22-
"editor.defaultFormatter": "samverschueren.linter-xo"
20+
"editor.defaultFormatter": "esbenp.prettier-vscode"
2321
}
2422
}

docs-wrapper.tsx

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

docs/asset-manifest.json

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

docs/favicon.ico

-32.2 KB
Binary file not shown.

docs/iframe.html

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

docs/index.html

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

docs/main.1566dacf1a4a4329815e.bundle.js

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

docs/main.1566dacf1a4a4329815e.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/main.809e7be6a501880262a3.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/runtime~main.1566dacf1a4a4329815e.bundle.js

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

docs/runtime~main.1566dacf1a4a4329815e.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/runtime~main.870e8ee0658e83d05c6b.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/vendors~main.0219844671cc5f2e559c.bundle.js

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

0 commit comments

Comments
 (0)