Skip to content

Commit 5cd4116

Browse files
committed
docs(storybook): update stories to import their README files
1 parent 2bfa41b commit 5cd4116

File tree

83 files changed

+356
-0
lines changed

Some content is hidden

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

83 files changed

+356
-0
lines changed

packages/uui-action-bar/lib/uui-action-bar.story.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import '@umbraco-ui/uui-icon-registry-essential/lib';
66

77
import { html } from 'lit';
88

9+
import readme from '../README.md?raw';
10+
911
export default {
1012
id: 'uui-action-bar',
1113
title: 'Buttons/Action Bar',
@@ -28,6 +30,11 @@ export default {
2830
options: ['default', 'positive', 'warning', 'danger'],
2931
},
3032
},
33+
parameters: {
34+
readme: {
35+
markdown: readme,
36+
},
37+
},
3138
};
3239

3340
const buttons = ['copy', 'remove', 'delete'];

packages/uui-avatar-group/lib/uui-avatar-group.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import '.';
22

33
import { Story } from '@storybook/web-components';
44
import { html } from 'lit';
5+
import readme from '../README.md?raw';
56

67
export default {
78
title: 'Displays/Avatar/Avatar Group',
@@ -10,6 +11,11 @@ export default {
1011
args: {
1112
limit: 0,
1213
},
14+
parameters: {
15+
readme: {
16+
markdown: readme,
17+
},
18+
},
1319
};
1420

1521
export const AAAOverview: Story = props => html`

packages/uui-avatar/lib/uui-avatar.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import '.';
22

33
import { Story } from '@storybook/web-components';
44
import { html } from 'lit';
5+
import readme from '../README.md?raw';
56

67
export default {
78
title: 'Displays/Avatar/Avatar',
@@ -14,6 +15,11 @@ export default {
1415
argTypes: {
1516
slot: { control: { type: 'text' } },
1617
},
18+
parameters: {
19+
readme: {
20+
markdown: readme,
21+
},
22+
},
1723
// argTypes: {
1824
// 'img-src': { table: { disable: true } },
1925
// 'img-srcset': { table: { disable: true } },

packages/uui-badge/lib/uui-badge.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import '.';
22

33
import { Story } from '@storybook/web-components';
44
import { html } from 'lit';
5+
import readme from '../README.md?raw';
56

67
export default {
78
title: 'Displays/Badge',
@@ -30,6 +31,11 @@ export default {
3031
control: { type: 'text' },
3132
},
3233
},
34+
parameters: {
35+
readme: {
36+
markdown: readme,
37+
},
38+
},
3339
};
3440

3541
const Template: Story = props => html` <uui-icon-registry-essential>

packages/uui-box/lib/uui-box.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ import '.';
22

33
import { Story } from '@storybook/web-components';
44
import { html } from 'lit';
5+
import readme from '../README.md?raw';
56

67
export default {
78
title: 'Layout/Box',
89
component: 'uui-box',
910
id: 'uui-box',
11+
parameters: {
12+
readme: {
13+
markdown: readme,
14+
},
15+
},
1016
};
1117

1218
const Template: Story = () => html`

packages/uui-breadcrumbs/lib/uui-breadcrumbs.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@ import '.';
22

33
import { Story } from '@storybook/web-components';
44
import { html } from 'lit';
5+
import readme from '../README.md?raw';
56

67
export default {
78
title: 'Buttons/Breadcrumbs',
89
id: 'uui-breadcrumbs',
910
component: 'uui-breadcrumbs',
11+
parameters: {
12+
readme: {
13+
markdown: readme,
14+
},
15+
},
1016
};
1117

1218
const links = [

packages/uui-button-group/lib/uui-button-group.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import '.';
22
import { Story } from '@storybook/web-components';
33
import { html } from 'lit';
4+
import readme from '../README.md?raw';
45

56
export default {
67
title: 'Buttons/Button Group',
@@ -24,6 +25,11 @@ export default {
2425
options: ['default', 'positive', 'warning', 'danger'],
2526
},
2627
},
28+
parameters: {
29+
readme: {
30+
markdown: readme,
31+
},
32+
},
2733
};
2834

2935
const looks = ['default', 'primary', 'secondary', 'outline', 'placeholder'];

packages/uui-button-inline-create/lib/uui-button-inline-create.story.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ import { Story } from '@storybook/web-components';
44
import { html, TemplateResult } from 'lit';
55

66
import { GetRandomUmbracoWord } from '../../../storyhelpers/UmbracoWordGenerator';
7+
import readme from '../README.md?raw';
78

89
export default {
910
id: 'uui-button-inline-create',
1011
title: 'Buttons/Button Inline Create',
1112
component: 'uui-button-inline-create',
1213
parameters: {
14+
readme: {
15+
markdown: readme,
16+
},
1317
docs: {
1418
source: {
1519
code: `<uui-button-inline-create></uui-button-inline-create>`,

packages/uui-button/lib/uui-button.story.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import '.';
22
import '@umbraco-ui/uui-badge/lib';
33
import '@umbraco-ui/uui-icon/lib';
4+
import '@umbraco-ui/uui-loader-circle/lib';
45

56
import { Meta, Story } from '@storybook/web-components';
67
import { html } from 'lit';
78
import { UUIButtonElement } from './uui-button.element';
89

10+
import readme from '../README.md?raw';
11+
912
export default {
1013
title: 'Buttons/Button',
1114
component: 'uui-button',
@@ -55,6 +58,11 @@ export default {
5558
'--uui-button-background-color-disabled': { control: { type: 'color' } },
5659
'--uui-button-contrast-disabled': { control: { type: 'color' } },
5760
},
61+
parameters: {
62+
readme: {
63+
markdown: readme,
64+
},
65+
},
5866
} as Meta<UUIButtonElement>;
5967

6068
const cssProps = [

packages/uui-card-content-node/lib/uui-card-content-node.story.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import '@umbraco-ui/uui-icon-registry-essential/lib';
33

44
import { Story } from '@storybook/web-components';
55
import { html } from 'lit';
6+
import readme from '../README.md?raw';
67

78
export default {
89
title: 'Displays/Cards/Content Node',
@@ -18,6 +19,11 @@ export default {
1819
decorators: [
1920
(Story: any) => html`<div style="width: 300px;">${Story()}</div>`,
2021
],
22+
parameters: {
23+
readme: {
24+
markdown: readme,
25+
},
26+
},
2127
};
2228

2329
/* TODO: we should make some kind of component for this data layout */

0 commit comments

Comments
 (0)