Skip to content

Commit b10a467

Browse files
authored
Merge pull request #414 from mashmatrix/story-to-csf3
Convert stories to CSF 3.0
2 parents c9c4871 + 4bf43e0 commit b10a467

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4917
-4911
lines changed

.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22

33
module.exports = {
4-
stories: ['../stories/**/*Stories.tsx'],
4+
stories: ['../stories/**/*.stories.tsx'],
55
addons: [
66
'@storybook/addon-docs',
77
'@storybook/addon-actions',

stories/Badge.stories.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import React from 'react';
2+
import { action } from '@storybook/addon-actions';
3+
import { Badge } from '../src/scripts';
4+
export default {
5+
title: 'Badge',
6+
};
7+
export const Default = {
8+
render: () => <Badge onClick={action('click')}>Badge Label</Badge>,
9+
parameters: {
10+
info: 'Default badge',
11+
},
12+
};
13+
export const Shade = {
14+
render: () => (
15+
<Badge type='shade' onClick={action('click')}>
16+
Badge Label
17+
</Badge>
18+
),
19+
parameters: {
20+
info: 'Badge with type: shade',
21+
},
22+
};
23+
export const Inverse = {
24+
render: () => (
25+
<Badge type='inverse' onClick={action('click')}>
26+
Badge Label
27+
</Badge>
28+
),
29+
parameters: {
30+
info: 'Badge with type: inverse',
31+
},
32+
};

stories/BadgeStories.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

stories/BreadCrumbs.stories.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
import { action } from '@storybook/addon-actions';
3+
import { BreadCrumbs, Crumb } from '../src/scripts';
4+
export default {
5+
title: 'BreadCrumbs',
6+
};
7+
export const Default = {
8+
render: () => (
9+
<BreadCrumbs>
10+
<Crumb onClick={action('crumb1#click')}>Parent Entity</Crumb>
11+
<Crumb onClick={action('crumb2#click')}>Parent Record Name</Crumb>
12+
</BreadCrumbs>
13+
),
14+
parameters: {
15+
info: 'Default BreadCrumbs',
16+
},
17+
};

stories/BreadCrumbsStories.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)