Skip to content

Commit b85ce49

Browse files
committed
Storybook fixes
1 parent b685bb9 commit b85ce49

32 files changed

+10400
-9100
lines changed

.babelrc

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

.storybook/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const path = require("path");
22

33
module.exports = {
4-
stories: ["../src/**/*.stories.(mdx|tsx)"],
5-
addons: ["@storybook/preset-typescript", "@storybook/addon-actions", "@storybook/addon-links", "@storybook/addon-docs/preset"],
4+
stories: ["./../**/*.stories.@(mdx|tsx)"],
5+
addons: ["@storybook/addon-actions", "@storybook/addon-links", "@storybook/addon-docs/preset"],
66
webpackFinal: async (config, { configType }) => {
77
if (process.env.NODE === "production") {
88
config.output.publicPath = "/react-spaces/docs";

@types/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export {};
33
declare global {
44
namespace jest {
55
interface Expect {
6-
<T = any>(actual: T, message: String): Matchers<T>;
6+
<T = any, R = any>(actual: T, message: String): Matchers<T, R>;
77
}
88
}
99
}

package-lock.json

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

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@
3131
},
3232
"devDependencies": {
3333
"@babel/core": "^7.5.5",
34-
"@babel/preset-react": "^7.8.3",
35-
"@storybook/addon-actions": "^5.3.14",
36-
"@storybook/addon-docs": "^5.3.14",
37-
"@storybook/addon-knobs": "^5.3.14",
38-
"@storybook/addon-links": "^5.3.14",
39-
"@storybook/addons": "^5.3.14",
40-
"@storybook/preset-typescript": "^2.1.0",
41-
"@storybook/react": "^5.3.14",
34+
"@storybook/addon-actions": "^6.0.5",
35+
"@storybook/addon-docs": "^6.0.5",
36+
"@storybook/addon-knobs": "^6.0.5",
37+
"@storybook/addon-links": "^6.0.5",
38+
"@storybook/addons": "^6.0.5",
39+
"@storybook/react": "^6.0.5",
4240
"@testing-library/jest-dom": "^5.5.0",
4341
"@testing-library/react": "^10.0.3",
4442
"@types/jest": "^24.0.15",
@@ -53,7 +51,7 @@
5351
"cssstyle": "^2.3.0",
5452
"jest": "^25.4.0",
5553
"jest-expect-message": "^1.0.2",
56-
"node-sass": "^4.13.1",
54+
"node-sass": "^4.14.1",
5755
"prettier": "^1.19.1",
5856
"react": "^16.13.1",
5957
"react-docgen-typescript-loader": "^3.7.0",

src/components/stories/00-docs/00-Intro.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CommonHeader } from "../Utils";
33

44
<CommonHeader />
55

6-
<Meta title="React Spaces|Introduction" />
6+
<Meta title="React Spaces/Introduction" />
77

88
## Introduction
99

src/components/stories/00-docs/01-GettingStarted.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CenterType, ViewPort, Fixed, Top, Right, LeftResizable, BottomResizable
44

55
<CommonHeader />
66

7-
<Meta title="React Spaces|Getting started" />
7+
<Meta title="React Spaces/Getting started" />
88

99
## Getting started
1010

src/components/stories/00-docs/02-UsefulProperties.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CommonHeader, PropsTable, StandardProps } from "../Utils";
33

44
<CommonHeader />
55

6-
<Meta title="React Spaces|Useful properties" />
6+
<Meta title="React Spaces/Useful properties" />
77

88
## Useful properties
99

src/components/stories/00-docs/03-UsefulEvents.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CommonHeader } from "../Utils";
33

44
<CommonHeader />
55

6-
<Meta title="React Spaces|Useful events" />
6+
<Meta title="React Spaces/Useful events" />
77

88
## Useful events
99

src/components/stories/00-docs/04-ChangeHistory.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CommonHeader } from "../Utils";
33

44
<CommonHeader />
55

6-
<Meta title="React Spaces|Change history" />
6+
<Meta title="React Spaces/Change history" />
77

88
## Change history
99

0 commit comments

Comments
 (0)