@storybook/web-components 7.0.2 → 7.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/template/cli/js/Button.stories.js +2 -2
- package/template/cli/js/Header.stories.js +1 -1
- package/template/cli/js/Page.stories.js +1 -1
- package/template/cli/ts-3-8/Button.stories.ts +2 -2
- package/template/cli/ts-3-8/Header.stories.ts +1 -1
- package/template/cli/ts-3-8/Page.stories.ts +1 -1
- package/template/cli/ts-4-9/Button.stories.ts +2 -2
- package/template/cli/ts-4-9/Header.stories.ts +1 -1
- package/template/cli/ts-4-9/Page.stories.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/web-components",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Storybook web-components renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@storybook/client-logger": "7.0.
|
|
55
|
-
"@storybook/core-client": "7.0.
|
|
56
|
-
"@storybook/docs-tools": "7.0.
|
|
54
|
+
"@storybook/client-logger": "7.0.4",
|
|
55
|
+
"@storybook/core-client": "7.0.4",
|
|
56
|
+
"@storybook/docs-tools": "7.0.4",
|
|
57
57
|
"@storybook/global": "^5.0.0",
|
|
58
|
-
"@storybook/manager-api": "7.0.
|
|
59
|
-
"@storybook/preview-api": "7.0.
|
|
60
|
-
"@storybook/types": "7.0.
|
|
58
|
+
"@storybook/manager-api": "7.0.4",
|
|
59
|
+
"@storybook/preview-api": "7.0.4",
|
|
60
|
+
"@storybook/types": "7.0.4",
|
|
61
61
|
"ts-dedent": "^2.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
],
|
|
85
85
|
"platform": "browser"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "98ddf58dba5ec35963e94a6f01f5043b2c866470"
|
|
88
88
|
}
|
|
@@ -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/web-components/writing-stories/introduction
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Example/Button',
|
|
6
6
|
tags: ['autodocs'],
|
|
@@ -15,7 +15,7 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
|
18
|
+
// More on writing stories with args: https://storybook.js.org/docs/web-components/writing-stories/args
|
|
19
19
|
export const Primary = {
|
|
20
20
|
args: {
|
|
21
21
|
primary: true,
|
|
@@ -2,7 +2,7 @@ import { Header } from './Header';
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Example/Header',
|
|
5
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/web-components/vue/writing-docs/
|
|
5
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/web-components/vue/writing-docs/autodocs
|
|
6
6
|
tags: ['autodocs'],
|
|
7
7
|
render: (args) => Header(args),
|
|
8
8
|
};
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
|
|
9
9
|
export const LoggedIn = {
|
|
10
10
|
args: {
|
|
11
|
-
// More on composing args: https://storybook.js.org/docs/
|
|
11
|
+
// More on composing args: https://storybook.js.org/docs/web-components/writing-stories/args#args-composition
|
|
12
12
|
...HeaderStories.LoggedIn.args,
|
|
13
13
|
},
|
|
14
14
|
};
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
2
2
|
import type { ButtonProps } from './Button';
|
|
3
3
|
import { Button } from './Button';
|
|
4
4
|
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction
|
|
6
6
|
const meta: Meta<ButtonProps> = {
|
|
7
7
|
title: 'Example/Button',
|
|
8
8
|
tags: ['autodocs'],
|
|
@@ -20,7 +20,7 @@ const meta: Meta<ButtonProps> = {
|
|
|
20
20
|
export default meta;
|
|
21
21
|
type Story = StoryObj<ButtonProps>;
|
|
22
22
|
|
|
23
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
|
23
|
+
// More on writing stories with args: https://storybook.js.org/docs/web-components/writing-stories/args
|
|
24
24
|
export const Primary: Story = {
|
|
25
25
|
args: {
|
|
26
26
|
primary: true,
|
|
@@ -4,7 +4,7 @@ import { Header } from './Header';
|
|
|
4
4
|
|
|
5
5
|
const meta: Meta<HeaderProps> = {
|
|
6
6
|
title: 'Example/Header',
|
|
7
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
|
7
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/web-components/writing-docs/autodocs
|
|
8
8
|
tags: ['autodocs'],
|
|
9
9
|
render: (args: HeaderProps) => Header(args),
|
|
10
10
|
};
|
|
@@ -14,7 +14,7 @@ type Story = StoryObj<PageProps>;
|
|
|
14
14
|
|
|
15
15
|
export const LoggedIn: Story = {
|
|
16
16
|
args: {
|
|
17
|
-
// More on composing args: https://storybook.js.org/docs/
|
|
17
|
+
// More on composing args: https://storybook.js.org/docs/web-components/writing-stories/args#args-composition
|
|
18
18
|
...HeaderStories.LoggedIn.args,
|
|
19
19
|
},
|
|
20
20
|
};
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
2
2
|
import type { ButtonProps } from './Button';
|
|
3
3
|
import { Button } from './Button';
|
|
4
4
|
|
|
5
|
-
// More on how to set up stories at: https://storybook.js.org/docs/
|
|
5
|
+
// More on how to set up stories at: https://storybook.js.org/docs/web-components/writing-stories/introduction
|
|
6
6
|
const meta = {
|
|
7
7
|
title: 'Example/Button',
|
|
8
8
|
tags: ['autodocs'],
|
|
@@ -20,7 +20,7 @@ const meta = {
|
|
|
20
20
|
export default meta;
|
|
21
21
|
type Story = StoryObj<ButtonProps>;
|
|
22
22
|
|
|
23
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
|
23
|
+
// More on writing stories with args: https://storybook.js.org/docs/web-components/writing-stories/args
|
|
24
24
|
export const Primary: Story = {
|
|
25
25
|
args: {
|
|
26
26
|
primary: true,
|
|
@@ -4,7 +4,7 @@ import { Header } from './Header';
|
|
|
4
4
|
|
|
5
5
|
const meta = {
|
|
6
6
|
title: 'Example/Header',
|
|
7
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
|
7
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/web-components/writing-docs/autodocs
|
|
8
8
|
tags: ['autodocs'],
|
|
9
9
|
render: (args: HeaderProps) => Header(args),
|
|
10
10
|
} satisfies Meta<HeaderProps>;
|
|
@@ -14,7 +14,7 @@ type Story = StoryObj<PageProps>;
|
|
|
14
14
|
|
|
15
15
|
export const LoggedIn: Story = {
|
|
16
16
|
args: {
|
|
17
|
-
// More on composing args: https://storybook.js.org/docs/
|
|
17
|
+
// More on composing args: https://storybook.js.org/docs/web-components/writing-stories/args#args-composition
|
|
18
18
|
...HeaderStories.LoggedIn.args,
|
|
19
19
|
},
|
|
20
20
|
};
|