Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@
"*.yaml",
"*.md",
"*.mdx",
"!docs/_snippets/**"
"!docs/**",
"docs/versions/**"
],
"overrides": [
{
"files": ["docs/_snippets/**"],
"files": ["docs/**"],
"options": {
"singleQuote": true,
"trailingComma": "all"
}
},
Expand Down
4 changes: 2 additions & 2 deletions docs/_snippets/button-story-with-addon-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const Basic: Story = {
});
</script>

<Story name="Basic"/>
<Story name="Basic" />
```

```js filename="Button.stories.js" renderer="svelte" language="js" tabTitle="CSF 3"
Expand Down Expand Up @@ -248,7 +248,7 @@ export const Basic = {};
});
</script>

<Story name="Basic"/>
<Story name="Basic" />
```

```ts filename="Button.stories.ts" renderer="svelte" language="ts" tabTitle="CSF 3"
Expand Down
8 changes: 4 additions & 4 deletions docs/_snippets/component-story-custom-args-complex.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export const ExampleStory = {
};
},
template:
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty"/>',
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty" />',
};
},
args: {
Expand Down Expand Up @@ -499,7 +499,7 @@ export const ExampleStory: Story = {
};
},
template:
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty"/>',
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty" />',
};
},
args: {
Expand Down Expand Up @@ -720,7 +720,7 @@ export const ExampleStory = meta.story({
};
},
template:
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty"/>',
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty" />',
};
},
args: {
Expand Down Expand Up @@ -770,7 +770,7 @@ export const ExampleStory = meta.story({
};
},
template:
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty"/>',
'<YourComponent :propertyA="propertyA" :propertyB="propertyB" :someProperty="someProperty" />',
};
},
args: {
Expand Down
8 changes: 4 additions & 4 deletions docs/_snippets/component-story-static-asset-cdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default {
export const WithAnImage = {
render: () => ({
template:
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder"/>',
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder" />',
}),
};
```
Expand All @@ -216,7 +216,7 @@ type Story = StoryObj<typeof meta>;
export const WithAnImage: Story = {
render: () => ({
template:
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder"/>',
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder" />',
}),
};
```
Expand All @@ -233,7 +233,7 @@ const meta = preview.meta({
export const WithAnImage = meta.story({
render: () => ({
template:
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder"/>',
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder" />',
}),
});
```
Expand All @@ -252,7 +252,7 @@ const meta = preview.meta({
export const WithAnImage = meta.story({
render: () => ({
template:
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder"/>',
'<img src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder" />',
}),
});
```
Expand Down
8 changes: 4 additions & 4 deletions docs/_snippets/component-story-static-asset-with-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const WithAnImage = {
//👇 Returns the content of the image object created above.
return { image };
},
template: `<img v-bind="image"/>`,
template: `<img v-bind="image" />`,
}),
};
```
Expand Down Expand Up @@ -288,7 +288,7 @@ export const WithAnImage: Story = {
//👇 Returns the content of the image object created above.
return { image };
},
template: `<img v-bind="image"/>`,
template: `<img v-bind="image" />`,
}),
};
```
Expand All @@ -315,7 +315,7 @@ export const WithAnImage = meta.story({
//👇 Returns the content of the image object created above.
return { image };
},
template: `<img v-bind="image"/>`,
template: `<img v-bind="image" />`,
}),
});
```
Expand Down Expand Up @@ -344,7 +344,7 @@ export const WithAnImage = meta.story({
//👇 Returns the content of the image object created above.
return { image };
},
template: `<img v-bind="image"/>`,
template: `<img v-bind="image" />`,
}),
});
```
Expand Down
6 changes: 3 additions & 3 deletions docs/_snippets/custom-docs-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ If you didn't include the title in the story's default export, use this approach

### Primary

<Story id="your-directory-button--primary"/>
<Story id="your-directory-button--primary" />

### Secondary

<Story id="your-directory-button--secondary"/>
<Story id="your-directory-button--secondary" />

### Large

<Story id="your-directory-button--large"/>
<Story id="your-directory-button--large" />

### Small

Expand Down
24 changes: 12 additions & 12 deletions docs/_snippets/list-story-reuse-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ export const ManyItems = {
},
template: `
<List v-bind="args">
<list-item :isSelected="Selected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Selected" />
<list-item :isSelected="Unselected" />
<list-item :isSelected="Unselected" />
</List>`,
}),
args: {
Expand Down Expand Up @@ -340,9 +340,9 @@ export const ManyItems: Story = {
},
template: `
<List v-bind="args">
<list-item :isSelected="Selected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Selected" />
<list-item :isSelected="Unselected" />
<list-item :isSelected="Unselected" />
</List>`,
}),
args: {
Expand Down Expand Up @@ -373,9 +373,9 @@ export const ManyItems = meta.story({
},
template: `
<List v-bind="args">
<list-item :isSelected="Selected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Selected" />
<list-item :isSelected="Unselected" />
<list-item :isSelected="Unselected" />
</List>`,
}),
args: {
Expand Down Expand Up @@ -408,9 +408,9 @@ export const ManyItems = meta.story({
},
template: `
<List v-bind="args">
<list-item :isSelected="Selected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Unselected"/>
<list-item :isSelected="Selected" />
<list-item :isSelected="Unselected" />
<list-item :isSelected="Unselected" />
</List>`,
}),
args: {
Expand Down
8 changes: 4 additions & 4 deletions docs/_snippets/list-story-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ const ListTemplate = {
template: `
<List v-bind="args">
<div v-for="item in items" :key="item.title">
<ListItem :item="item"/>
<ListItem :item="item" />
</div>
</List>
`,
Expand Down Expand Up @@ -417,7 +417,7 @@ export const ListTemplate: Story = {
template: `
<List v-bind="args">
<div v-for="item in items" :key="item.title">
<ListItem :item="item"/>
<ListItem :item="item" />
</div>
</List>
`,
Expand Down Expand Up @@ -460,7 +460,7 @@ export const Empty = meta.story({
template: `
<List v-bind="args">
<div v-for="item in items" :key="item.title">
<ListItem :item="item"/>
<ListItem :item="item" />
</div>
</List>
`,
Expand Down Expand Up @@ -501,7 +501,7 @@ export const Empty = meta.story({
template: `
<List v-bind="args">
<div v-for="item in items" :key="item.title">
<ListItem :item="item"/>
<ListItem :item="item" />
</div>
</List>
`,
Expand Down
8 changes: 4 additions & 4 deletions docs/_snippets/list-story-unchecked.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const OneItem = {
//👇 The args will now be passed down to the template
return { args };
},
template: '<List v-bind="args"><ListItem v-bind="args"/></List>',
template: '<List v-bind="args"><ListItem v-bind="args" /></List>',
}),
};
```
Expand Down Expand Up @@ -231,7 +231,7 @@ export const OneItem: Story = {
//👇 The args will now be passed down to the template
return { args };
},
template: '<List v-bind="args"><ListItem v-bind="args"/></List>',
template: '<List v-bind="args"><ListItem v-bind="args" /></List>',
}),
args: {
...Unchecked.args,
Expand Down Expand Up @@ -264,7 +264,7 @@ export const OneItem = meta.story({
//👇 The args will now be passed down to the template
return { args };
},
template: '<List v-bind="args"><ListItem v-bind="args"/></List>',
template: '<List v-bind="args"><ListItem v-bind="args" /></List>',
}),
args: {
...Unchecked.input.args,
Expand Down Expand Up @@ -299,7 +299,7 @@ export const OneItem = meta.story({
//👇 The args will now be passed down to the template
return { args };
},
template: '<List v-bind="args"><ListItem v-bind="args"/></List>',
template: '<List v-bind="args"><ListItem v-bind="args" /></List>',
}),
args: {
...Unchecked.input.args,
Expand Down
8 changes: 4 additions & 4 deletions docs/_snippets/my-component-story-basic-and-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export const Basic = {
export const WithProp = {
render: () => ({
components: { MyComponent },
template: '<MyComponent prop="value"/>',
template: '<MyComponent prop="value" />',
}),
};
```
Expand All @@ -278,7 +278,7 @@ export const Basic: Story = {
export const WithProp: Story = {
render: () => ({
components: { MyComponent },
template: '<MyComponent prop="value"/>',
template: '<MyComponent prop="value" />',
}),
};
```
Expand All @@ -302,7 +302,7 @@ export const Basic = meta.story({
export const WithProp = meta.story({
render: () => ({
components: { MyComponent },
template: '<MyComponent prop="value"/>',
template: '<MyComponent prop="value" />',
}),
});
```
Expand All @@ -326,7 +326,7 @@ export const Basic = meta.story({
export const WithProp = meta.story({
render: () => ({
components: { MyComponent },
template: '<MyComponent prop="value"/>',
template: '<MyComponent prop="value" />',
}),
});
```
Expand Down
Loading
Loading