Skip to content

Commit 36703c5

Browse files
committed
fix: evo-web storybook
1 parent 3e0b0d9 commit 36703c5

File tree

40 files changed

+760
-828
lines changed

40 files changed

+760
-828
lines changed

packages/evo-marko/src/tags/evo-3d-viewer/3d-viewer.stories.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { tagToString } from "../../common/storybook/storybook-code-source";
21
import { buildExtensionTemplate } from "../../common/storybook/utils";
32
import Readme from "./README.md";
4-
import Component, { type Input } from "./index.marko";
3+
import Component from "./index.marko";
54
import DefaultTemplate from "./examples/default.marko";
65
import DefaultTemplateCode from "./examples/default.marko?raw";
76

@@ -135,4 +134,7 @@ export default {
135134
},
136135
};
137136

138-
export const Default = buildExtensionTemplate(DefaultTemplate, DefaultTemplateCode);
137+
export const Default = buildExtensionTemplate(
138+
DefaultTemplate,
139+
DefaultTemplateCode,
140+
);

packages/evo-marko/src/tags/evo-avatar/avatar.stories.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import autoImageTemplateCode from "./examples/with-auto-placement.marko?raw";
1010
import signedOutTemplate from "./examples/signedout.marko";
1111
import signedOutTemplateCode from "./examples/signedout.marko?raw";
1212

13-
import type { Input } from "./index.marko";
14-
1513
export default {
1614
title: "graphics & icons/evo-avatar",
1715
component: avatar,

packages/evo-marko/src/tags/evo-badge/badge.stories.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
import { Story } from "@storybook/marko";
2-
import { tagToString } from "../../common/storybook/storybook-code-source";
3-
import {
4-
buildExtensionTemplate,
5-
} from "../../common/storybook/utils";
1+
import { buildExtensionTemplate } from "../../common/storybook/utils";
62
import Readme from "./README.md";
73
import DefaultTemplate from "./examples/default.marko";
84
import DefaultTemplateCode from "./examples/default.marko?raw";
9-
import { type Input } from "./index.marko";
105

116
export default {
127
title: "graphics & icons/evo-badge",

packages/evo-marko/src/tags/evo-button/button.stories.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
buildExtensionTemplate,
3-
} from "../../common/storybook/utils";
4-
import button, { type Input } from "./index.marko";
1+
import { buildExtensionTemplate } from "../../common/storybook/utils";
2+
import button from "./index.marko";
53
import Readme from "./README.md";
64
import ButtonTemplate from "./examples/button.marko";
75
import ButtonTemplateCode from "./examples/button.marko?raw";

packages/evo-marko/src/tags/evo-ccd/ccd.stories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export default {
3838
},
3939
a11yText: {
4040
control: { type: "text" },
41-
description: "Required: The aria-label accessibility label for the ccd component. This is for internationalization. It should use min, max, and charger included or not included, and secondaryText in the label in order to demonstrate to screen readers the content on the component. Expected value `Charger included. ${min} - ${max} Watts. USB PD`",
41+
description:
42+
"Required: The aria-label accessibility label for the ccd component. This is for internationalization. It should use min, max, and charger included or not included, and secondaryText in the label in order to demonstrate to screen readers the content on the component. Expected value `Charger included. ${min} - ${max} Watts. USB PD`",
4243
},
4344
secondaryType: {
4445
control: { type: "select" },

packages/evo-marko/src/tags/evo-character-count/character-count.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { buildExtensionTemplate } from "../../common/storybook/utils";
22
import Readme from "./README.md";
3-
import Component, { type Input } from "./index.marko";
3+
import Component from "./index.marko";
44
import IsolatedTemplate from "./examples/isolated.marko";
55
import IsolatedCode from "./examples/isolated.marko?raw";
66
import InFieldTemplate from "./examples/in-field.marko";

packages/evo-marko/src/tags/evo-checkbox/checkbox.stories.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { tagToString } from "../../common/storybook/storybook-code-source";
21
import { buildExtensionTemplate } from "../../common/storybook/utils";
3-
42
import Readme from "./README.md";
53
import Checkbox from "./index.marko";
64
import GroupTemplate from "./examples/group.marko";
@@ -11,7 +9,6 @@ import GroupCode from "./examples/group.marko?raw";
119
import WithLabelCode from "./examples/WithLabel.marko?raw";
1210
import DisabledCode from "./examples/DisabledWithLabel.marko?raw";
1311
import IsolatedTemplateCode from "./examples/isolated.marko?raw";
14-
import type { Input } from "./index.marko";
1512

1613
export default {
1714
title: "form input/evo-checkbox",

packages/evo-marko/src/tags/evo-cta-button/cta-button.stories.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import { Story } from "@storybook/marko";
21
import { buildExtensionTemplate } from "../../common/storybook/utils";
32
import DefaultTemplate from "./examples/default.marko";
43
import DefaultTemplateCode from "./examples/default.marko?raw";
54

6-
import { tagToString } from "../../common/storybook/storybook-code-source";
75
import Readme from "./README.md";
8-
import { type Input } from "./index.marko";
96

107
export default {
118
title: "buttons/evo-cta-button",

packages/evo-marko/src/tags/evo-details/details.stories.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { Story } from "@storybook/marko";
21
import { buildExtensionTemplate } from "../../common/storybook/utils";
32
import Readme from "./README.md";
4-
import Details, { type Input } from "./index.marko";
3+
import Details from "./index.marko";
54
import DefaultTemplate from "./examples/default.marko";
65
import DefaultTemplateCode from "./examples/default.marko?raw";
76

packages/evo-marko/src/tags/evo-eek/eek.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import example2Code from "./examples/A++.marko?raw";
1111
import example3Code from "./examples/A+.marko?raw";
1212
import example4Code from "./examples/A.marko?raw";
1313
import example5Code from "./examples/invalid.marko?raw";
14-
import { Story } from "@storybook/marko";
14+
import type { StoryFn } from "@storybook/marko";
1515

1616
export default {
1717
title: "graphics & icons/evo-eek",
@@ -25,7 +25,7 @@ export default {
2525
},
2626

2727
argTypes: {
28-
"a11yText": {
28+
a11yText: {
2929
control: { type: "text" },
3030
description:
3131
"Required: The aria-label accessibility label for the eek component. This is for internationalization. It should use min, max, and rating in the label in order to demonstrate to screen readers the content on the component. Expected value `Energy efficiency class ${rating}. ${min} - ${max}`",
@@ -56,7 +56,7 @@ export default {
5656
},
5757
};
5858

59-
export const Default: Story<Input> = (args) => ({ input: args });
59+
export const Default: StoryFn<Input> = (args) => ({ input: args });
6060
Default.args = {
6161
max: "A+++",
6262
min: "E",

0 commit comments

Comments
 (0)