Skip to content

Commit e755fdc

Browse files
committed
Code/markup formatting
1 parent 7dc54c8 commit e755fdc

File tree

6 files changed

+64
-46
lines changed

6 files changed

+64
-46
lines changed

packages/uui-ref-node-document-type/lib/uui-ref-node-document-type.story.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ const meta: Meta = {
1313
component: 'uui-ref-node-document-type',
1414
title: 'Displays/References/Document Type',
1515
args: { name: 'Product Page', alias: 'productPage' },
16-
render: args =>
17-
html`<uui-ref-node-document-type
18-
id="refNode"
19-
${spread(args)}
20-
@open=${() => onOpen()}
21-
>${renderSlots(args)}</uui-ref-node-document-type
22-
> `,
16+
render: args => html`
17+
<uui-ref-node-document-type id="refNode" ${spread(args)}>
18+
${renderSlots(args)}
19+
</uui-ref-node-document-type>
20+
`,
2321

2422
decorators: [
2523
(Story: any) => html`<div style="max-width: 420px;">${Story()}</div>`,
@@ -32,10 +30,13 @@ type Story = StoryObj;
3230

3331
export const Default: Story = {
3432
args: {
35-
'actions slot': html`<uui-action-bar slot="actions"
36-
><uui-button label="delete"
37-
><uui-icon name="delete"></uui-icon></uui-button
38-
></uui-action-bar>`,
33+
'actions slot': html`
34+
<uui-action-bar slot="actions">
35+
<uui-button label="delete">
36+
<uui-icon name="delete"></uui-icon>
37+
</uui-button>
38+
</uui-action-bar>
39+
`,
3940
},
4041
};
4142
export const CustomIcon: Story = {

packages/uui-ref-node-form/lib/uui-ref-node-form.story.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ const meta: Meta = {
1616
name: 'Newsletter Signup',
1717
detail: 'Accept and signup for newsletter',
1818
},
19-
render: args =>
20-
html`<uui-ref-node-form ${spread(args)}
21-
>${renderSlots(args)}</uui-ref-node-form
22-
>`,
19+
render: args => html`
20+
<uui-ref-node-form ${spread(args)}>
21+
${renderSlots(args)}
22+
</uui-ref-node-form>
23+
`,
2324
decorators: [
2425
(Story: any) => html`<div style="max-width: 420px;">${Story()}</div>`,
2526
],
@@ -31,10 +32,12 @@ type Story = StoryObj;
3132

3233
export const Default: Story = {
3334
args: {
34-
'actions slot': html`<uui-action-bar slot="actions"
35-
><uui-button label="delete"
36-
><uui-icon name="delete"></uui-icon></uui-button
37-
></uui-action-bar>`,
35+
'actions slot': html`
36+
<uui-action-bar slot="actions">
37+
<uui-button label="delete"
38+
><uui-icon name="delete"></uui-icon> </uui-button
39+
></uui-action-bar>
40+
`,
3841
},
3942
};
4043
export const CustomIcon: Story = {

packages/uui-ref-node-member/lib/uui-ref-node-member.story.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ type Story = StoryObj;
2828

2929
export const Default: Story = {
3030
args: {
31-
'actions slot': html`<uui-action-bar slot="actions"
32-
><uui-button label="delete"
33-
><uui-icon name="delete"></uui-icon></uui-button
34-
></uui-action-bar>`,
31+
'actions slot': html`
32+
<uui-action-bar slot="actions">
33+
<uui-button label="delete">
34+
<uui-icon name="delete"></uui-icon>
35+
</uui-button>
36+
</uui-action-bar>
37+
`,
3538
},
3639
};
3740
export const CustomIcon: Story = {

packages/uui-ref-node-package/lib/uui-ref-node-package.story.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ const meta: Meta = {
1313
component: 'uui-ref-node-package',
1414
title: 'Displays/References/Package',
1515
args: { name: 'Umbraco Starter Kit', version: '1.1', author: 'Umbraco HQ' },
16-
render: args =>
17-
html`<uui-ref-node-package ${spread(args)}
18-
>${renderSlots(args)}</uui-ref-node-package
19-
>`,
16+
render: args => html`
17+
<uui-ref-node-package ${spread(args)}>
18+
${renderSlots(args)}
19+
</uui-ref-node-package>
20+
`,
2021
decorators: [
2122
(Story: any) => html`<div style="max-width: 420px;">${Story()}</div>`,
2223
],
@@ -28,10 +29,13 @@ type Story = StoryObj;
2829

2930
export const Default: Story = {
3031
args: {
31-
'actions slot': html`<uui-action-bar slot="actions"
32-
><uui-button label="delete"
33-
><uui-icon name="delete"></uui-icon></uui-button
34-
></uui-action-bar>`,
32+
'actions slot': html`
33+
<uui-action-bar slot="actions">
34+
<uui-button label="delete">
35+
<uui-icon name="delete"></uui-icon>
36+
</uui-button>
37+
</uui-action-bar>
38+
`,
3539
},
3640
};
3741
export const CustomIcon: Story = {

packages/uui-ref-node-user/lib/uui-ref-node-user.story.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ const meta: Meta = {
1313
component: 'uui-ref-node-user',
1414
title: 'Displays/References/User',
1515
args: { name: 'Arnold Edits', groupName: 'Editor, Translator' },
16-
render: args =>
17-
html`<uui-ref-node-user ${spread(args)}
18-
>${renderSlots(args)}</uui-ref-node-user
19-
>`,
16+
render: args => html`
17+
<uui-ref-node-user ${spread(args)}>
18+
${renderSlots(args)}
19+
</uui-ref-node-user>
20+
`,
2021
decorators: [
2122
(Story: any) => html`<div style="max-width: 420px;">${Story()}</div>`,
2223
],
@@ -28,10 +29,13 @@ type Story = StoryObj;
2829

2930
export const Default: Story = {
3031
args: {
31-
'actions slot': html`<uui-action-bar slot="actions"
32-
><uui-button label="delete"
33-
><uui-icon name="delete"></uui-icon></uui-button
34-
></uui-action-bar>`,
32+
'actions slot': html`
33+
<uui-action-bar slot="actions">
34+
<uui-button label="delete">
35+
<uui-icon name="delete"></uui-icon>
36+
</uui-button>
37+
</uui-action-bar>
38+
`,
3539
},
3640
};
3741
export const CustomIcon: Story = {

packages/uui-ref-node/lib/uui-ref-node.story.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ type Story = StoryObj;
3131

3232
export const Default: Story = {
3333
args: {
34-
'tag slot': html`<uui-tag size="s" slot="tag" color="positive"
35-
>Published</uui-tag
36-
>`,
37-
'actions slot': html`<uui-action-bar slot="actions"
38-
><uui-button label="delete"
39-
><uui-icon name="delete"></uui-icon></uui-button
40-
></uui-action-bar>`,
34+
'tag slot': html`
35+
<uui-tag size="s" slot="tag" color="positive">Published</uui-tag>
36+
`,
37+
'actions slot': html`
38+
<uui-action-bar slot="actions">
39+
<uui-button label="delete">
40+
<uui-icon name="delete"></uui-icon>
41+
</uui-button>
42+
</uui-action-bar>
43+
`,
4144
},
4245
};
4346
export const CustomIcon: Story = {

0 commit comments

Comments
 (0)