Skip to content

Commit

Permalink
doc: add missing "component" prop
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Jul 19, 2024
1 parent 9262b24 commit 683de48
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 36 deletions.
1 change: 0 additions & 1 deletion src/stories/components/AppModal/AppModal.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import AppModal from '@/components/AppModal/AppModal'
import { ArgTypes } from '@storybook/blocks'

export default {
title: 'Components/AppModal/AppModal',
Expand Down
20 changes: 8 additions & 12 deletions src/stories/components/Dismissable/DismissableAlert.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import DismissableAlert from '@/components/Dismissable/DismissableAlert'
export default {
title: 'Components/Dismissable/DismissableAlert',
tags: ['autodocs'],
component: DismissableAlert,
argTypes: {
variant: {
control: { type: 'select' },
Expand All @@ -23,19 +24,14 @@ export default {
name: uniqueId('a-unique-name-'),
persist: false,
noIcon: false,
noButton: false
noButton: false,
default: `A simple alert lorem ipsum dolor sit amet, consectetur adipiscing elit.`
},
render: (args) => ({
components: {
DismissableAlert
},
setup: () => ({ args }),
template: `
<dismissable-alert v-bind="args">
A simple <strong>{{ args.variant }}</strong> alert lorem ipsum dolor sit amet, consectetur adipiscing elit.
</dismissable-alert>
`
})
parameters: {
slots: {
default: `Default slot content`
}
}
}

export const Default = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ToastBody from '@/components/Dismissable/DismissableToastBody'
export default {
title: 'Components/Dismissable/DismissableToastBody',
tags: ['autodocs'],
component: ToastBody,
argTypes: {
variant: {
control: { type: 'select' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import FiltersPanelSectionFilterFooter from '@/components/FiltersPanel/FiltersPa
export default {
title: 'Components/FiltersPanel',
tags: ['autodocs'],
component: { name: 'FiltersPanel' },
argTypes: {},
args: {
collapseTags: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default {
decorators: [vueRouter(routes)],
title: 'Components/NavigationBreadcrumb',
tags: ['autodocs'],
component: NavigationBreadcrumb,
render: () => ({
components: {
NavigationBreadcrumb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
decorators: [vueRouter(routes)],
title: 'Components/NavigationBreadcrumb/Link',
tags: ['autodocs'],
component: NavigationBreadcrumbLink,
argTypes: {
routeName: {
control: { type: 'string' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import PageSettingsSection from '@/components/PageSettings/PageSettingsSection'
export default {
title: 'Components/PageSettings',
tags: ['autodocs'],
component: PageSettings,
render: (args) => ({
components: {
PageSettings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PhosphorIcon, PhosphorIconLayers } from '@icij/murmur-next'
export default {
title: 'Components/PhosphorIcon/PhosphorIconLayers',
tags: ['autodocs'],
components: PhosphorIconLayers,
component: PhosphorIconLayers,
argTypes: {
size: {
control: { type: 'string' }
Expand Down
13 changes: 2 additions & 11 deletions src/stories/components/SearchBarInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SearchBarInput from '@/components/SearchBarInput'
export default {
title: 'Components/SearchBar/SearchBarInput',
tags: ['autodocs'],
component: SearchBarInput,
argTypes: {
placeholder: {
control: {
Expand Down Expand Up @@ -33,17 +34,7 @@ export default {
type: 'boolean'
}
}
},
render: (args) => ({
components: {
SearchBarInput
},
setup: () => ({ args }),
template: `
<search-bar-input v-bind="args">
</search-bar-input>
`
})
}
}

export const Default = {
Expand Down
13 changes: 2 additions & 11 deletions src/stories/components/SearchFormControl.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SearchFormControl from '@/components/SearchFormControl'
export default {
title: 'Components/SearchBar/SearchFormControl',
tags: ['autodocs'],
component: SearchFormControl,
argTypes: {
placeholder: {
control: {
Expand Down Expand Up @@ -43,17 +44,7 @@ export default {
type: 'boolean'
}
}
},
render: (args) => ({
components: {
SearchFormControl
},
setup: () => ({ args }),
template: `
<search-form-control v-bind="args">
</search-form-control>
`
})
}
}

export const Default = {
Expand Down

0 comments on commit 683de48

Please sign in to comment.