@storybook/web-components 8.0.0-rc.2 → 8.0.0-rc.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/web-components",
3
- "version": "8.0.0-rc.2",
3
+ "version": "8.0.0-rc.4",
4
4
  "description": "Storybook web-components renderer",
5
5
  "keywords": [
6
6
  "lit",
@@ -50,12 +50,12 @@
50
50
  "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
51
51
  },
52
52
  "dependencies": {
53
- "@storybook/client-logger": "8.0.0-rc.2",
54
- "@storybook/docs-tools": "8.0.0-rc.2",
53
+ "@storybook/client-logger": "8.0.0-rc.4",
54
+ "@storybook/docs-tools": "8.0.0-rc.4",
55
55
  "@storybook/global": "^5.0.0",
56
- "@storybook/manager-api": "8.0.0-rc.2",
57
- "@storybook/preview-api": "8.0.0-rc.2",
58
- "@storybook/types": "8.0.0-rc.2",
56
+ "@storybook/manager-api": "8.0.0-rc.4",
57
+ "@storybook/preview-api": "8.0.0-rc.4",
58
+ "@storybook/types": "8.0.0-rc.4",
59
59
  "tiny-invariant": "^1.3.1",
60
60
  "ts-dedent": "^2.0.0"
61
61
  },
@@ -1,3 +1,4 @@
1
+ import { fn } from '@storybook/test';
1
2
  import { Button } from './Button';
2
3
 
3
4
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
@@ -7,12 +8,12 @@ export default {
7
8
  render: (args) => Button(args),
8
9
  argTypes: {
9
10
  backgroundColor: { control: 'color' },
10
- onClick: { action: 'onClick' },
11
11
  size: {
12
12
  control: { type: 'select' },
13
13
  options: ['small', 'medium', 'large'],
14
14
  },
15
15
  },
16
+ args: { onClick: fn() },
16
17
  };
17
18
 
18
19
  // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
@@ -1,3 +1,4 @@
1
+ import { fn } from '@storybook/test';
1
2
  import { Header } from './Header';
2
3
 
3
4
  export default {
@@ -5,8 +6,12 @@ export default {
5
6
  // This component will have an automatically generated Autodocs entry: https://storybook.js.org/web-components/vue/writing-docs/autodocs
6
7
  tags: ['autodocs'],
7
8
  render: (args) => Header(args),
9
+ args: {
10
+ onLogin: fn(),
11
+ onLogout: fn(),
12
+ onCreateAccount: fn(),
13
+ },
8
14
  };
9
-
10
15
  export const LoggedIn = {
11
16
  args: {
12
17
  user: {
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/web-components';
2
+ import { fn } from '@storybook/test';
2
3
  import type { ButtonProps } from './Button';
3
4
  import { Button } from './Button';
4
5
 
@@ -9,12 +10,12 @@ const meta: Meta<ButtonProps> = {
9
10
  render: (args) => Button(args),
10
11
  argTypes: {
11
12
  backgroundColor: { control: 'color' },
12
- onClick: { action: 'onClick' },
13
13
  size: {
14
14
  control: { type: 'select' },
15
15
  options: ['small', 'medium', 'large'],
16
16
  },
17
17
  },
18
+ args: { onClick: fn() },
18
19
  };
19
20
 
20
21
  export default meta;
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/web-components';
2
+ import { fn } from '@storybook/test';
2
3
  import type { HeaderProps } from './Header';
3
4
  import { Header } from './Header';
4
5
 
@@ -7,6 +8,11 @@ const meta: Meta<HeaderProps> = {
7
8
  // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
8
9
  tags: ['autodocs'],
9
10
  render: (args: HeaderProps) => Header(args),
11
+ args: {
12
+ onLogin: fn(),
13
+ onLogout: fn(),
14
+ onCreateAccount: fn(),
15
+ },
10
16
  };
11
17
 
12
18
  export default meta;
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/web-components';
2
+ import { fn } from '@storybook/test';
2
3
  import type { ButtonProps } from './Button';
3
4
  import { Button } from './Button';
4
5
 
@@ -9,12 +10,12 @@ const meta = {
9
10
  render: (args) => Button(args),
10
11
  argTypes: {
11
12
  backgroundColor: { control: 'color' },
12
- onClick: { action: 'onClick' },
13
13
  size: {
14
14
  control: { type: 'select' },
15
15
  options: ['small', 'medium', 'large'],
16
16
  },
17
17
  },
18
+ args: { onClick: fn() },
18
19
  } satisfies Meta<ButtonProps>;
19
20
 
20
21
  export default meta;
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/web-components';
2
+ import { fn } from '@storybook/test';
2
3
  import type { HeaderProps } from './Header';
3
4
  import { Header } from './Header';
4
5
 
@@ -7,6 +8,11 @@ const meta = {
7
8
  // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
8
9
  tags: ['autodocs'],
9
10
  render: (args: HeaderProps) => Header(args),
11
+ args: {
12
+ onLogin: fn(),
13
+ onLogout: fn(),
14
+ onCreateAccount: fn(),
15
+ },
10
16
  } satisfies Meta<HeaderProps>;
11
17
 
12
18
  export default meta;