@storybook/preact 7.6.0-beta.1 → 7.6.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact",
|
3
|
-
"version": "7.6.0
|
3
|
+
"version": "7.6.0",
|
4
4
|
"description": "Storybook Preact renderer",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,10 +47,10 @@
|
|
47
47
|
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/core-client": "7.6.0
|
50
|
+
"@storybook/core-client": "7.6.0",
|
51
51
|
"@storybook/global": "^5.0.0",
|
52
|
-
"@storybook/preview-api": "7.6.0
|
53
|
-
"@storybook/types": "7.6.0
|
52
|
+
"@storybook/preview-api": "7.6.0",
|
53
|
+
"@storybook/types": "7.6.0",
|
54
54
|
"ts-dedent": "^2.0.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Button } from './Button';
|
2
2
|
|
3
|
-
// More on how to set up stories at: https://storybook.js.org/docs/
|
3
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
4
4
|
export default {
|
5
5
|
title: 'Example/Button',
|
6
6
|
component: Button,
|
@@ -11,7 +11,7 @@ export default {
|
|
11
11
|
},
|
12
12
|
};
|
13
13
|
|
14
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
14
|
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|
15
15
|
export const Primary = {
|
16
16
|
args: {
|
17
17
|
primary: true,
|
@@ -3,10 +3,10 @@ import { Header } from './Header';
|
|
3
3
|
export default {
|
4
4
|
title: 'Example/Header',
|
5
5
|
component: Header,
|
6
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
6
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
7
7
|
tags: ['autodocs'],
|
8
8
|
parameters: {
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
10
10
|
layout: 'fullscreen',
|
11
11
|
},
|
12
12
|
argTypes: {
|
@@ -6,14 +6,14 @@ export default {
|
|
6
6
|
title: 'Example/Page',
|
7
7
|
component: Page,
|
8
8
|
parameters: {
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
|
10
10
|
layout: 'fullscreen',
|
11
11
|
},
|
12
12
|
};
|
13
13
|
|
14
14
|
export const LoggedOut = {};
|
15
15
|
|
16
|
-
// More on interaction testing: https://storybook.js.org/docs/
|
16
|
+
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
|
17
17
|
export const LoggedIn = {
|
18
18
|
play: async ({ canvasElement }) => {
|
19
19
|
const canvas = within(canvasElement);
|