Skip to content

Commit 1cc475e

Browse files
committed
chore: remove generated file
1 parent 68a174d commit 1cc475e

6 files changed

Lines changed: 46 additions & 9 deletions

File tree

scripts/export-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function organizeFiles(files, baseDir) {
9090
*/
9191
function generateIndexContent() {
9292
const lines = [
93-
'// DO NOT EDIT - Autogenerated by /scripts/generate-index.mjs',
93+
'// DO NOT EDIT - Autogenerated by /scripts/export-components.js',
9494
'// Main entry point for @wrap.ngo/evergreen component library',
9595
'',
9696
];

src/components/control/Breadcrumb/Breadcrumb.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { a11yLink } from '@etchteam/storybook-addon-a11y-interaction-tests';
21
import { StoryFn } from '@storybook/react-vite';
32
import React from 'react';
43

@@ -47,7 +46,3 @@ export const Breadcrumb: StoryFn = (props) => (
4746
</nav>
4847
</evg-breadcrumb>
4948
);
50-
51-
Breadcrumb.play = async ({ canvasElement, step }) => {
52-
await a11yLink({ canvasElement, step });
53-
};

src/components/control/Button/Button.stories.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { a11yButton } from '@etchteam/storybook-addon-a11y-interaction-tests';
1+
import {
2+
a11yButton,
3+
a11yLink,
4+
} from '@etchteam/storybook-addon-a11y-interaction-tests';
25
import { StoryFn } from '@storybook/react-vite';
36
import startCase from 'lodash/startCase';
47
import React from 'react';
@@ -68,6 +71,10 @@ export const AnchorButton: StoryFn = (props) => (
6871
</evg-button>
6972
);
7073

74+
AnchorButton.play = async ({ canvasElement, step }) => {
75+
await a11yLink({ canvasElement, step });
76+
};
77+
7178
export const Variants: StoryFn = () => (
7279
<evg-grid wrap="wrap" align-items="center">
7380
{variants.map((variant) => (

src/components/control/Chip/Chip.stories.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
a11yButton,
3+
a11yLink,
34
a11yCheckbox,
45
} from '@etchteam/storybook-addon-a11y-interaction-tests';
56
import { StoryFn } from '@storybook/react-vite';
@@ -55,6 +56,22 @@ Chip.play = async ({ canvasElement, step }) => {
5556
await a11yButton({ canvasElement, step });
5657
};
5758

59+
export const AnchorChip: StoryFn = (args) => {
60+
return (
61+
<evg-chip {...args}>
62+
<a href="https://wrap.ngo">Chip</a>
63+
</evg-chip>
64+
);
65+
};
66+
67+
AnchorChip.args = {
68+
variant: 'light',
69+
};
70+
71+
AnchorChip.play = async ({ canvasElement, step }) => {
72+
await a11yLink({ canvasElement, step });
73+
};
74+
5875
export const ControlledChip: StoryFn = () => {
5976
const [selected, setSelected] = useState(false);
6077
return (

src/components/control/Link/Link.stories.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { a11yLink } from '@etchteam/storybook-addon-a11y-interaction-tests';
1+
import {
2+
a11yLink,
3+
a11yButton,
4+
} from '@etchteam/storybook-addon-a11y-interaction-tests';
25
import { StoryFn } from '@storybook/react-vite';
36
import React from 'react';
47

@@ -54,3 +57,19 @@ export const ButtonLink: StoryFn = (props) => (
5457
ButtonLink.args = {
5558
variant: 'underline',
5659
};
60+
61+
export const Chip: StoryFn = (args) => {
62+
return (
63+
<evg-chip {...args}>
64+
<button type="button">Chip</button>
65+
</evg-chip>
66+
);
67+
};
68+
69+
Chip.args = {
70+
variant: 'light',
71+
};
72+
73+
ButtonLink.play = async ({ canvasElement, step }) => {
74+
await a11yButton({ canvasElement, step });
75+
};

src/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)