Skip to content

Commit

Permalink
chore(#501): add extend props to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Jul 12, 2022
1 parent c4aca0b commit fbd50a9
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/blocks/templates/druxt-block.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import DruxtBlock from 'druxt-blocks/dist/components/DruxtBlock.vue'
import DruxtModule from 'druxt/dist/components/DruxtModule.vue'

DruxtBlock.__docgenInfo.props = [
...DruxtModule.__docgenInfo.props,
...DruxtBlock.__docgenInfo.props,
].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')

export default {
title: 'Druxt/Blocks/DruxtBlock',
Expand Down
8 changes: 7 additions & 1 deletion packages/breadcrumb/templates/druxt-breadcrumb.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import DruxtBreadcrumb from 'druxt-breadcrumb/dist/components//DruxtBreadcrumb.vue'
import DruxtBreadcrumb from 'druxt-breadcrumb/dist/components/DruxtBreadcrumb.vue'
import DruxtModule from 'druxt/dist/components/DruxtModule.vue'

DruxtBreadcrumb.__docgenInfo.props = [
...DruxtModule.__docgenInfo.props,
...DruxtBreadcrumb.__docgenInfo.props,
].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')

export default {
title: 'Druxt/Breadcrumb/DruxtBreadcrumb',
Expand Down
6 changes: 6 additions & 0 deletions packages/entity/templates/druxt-entity.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import DruxtEntity from 'druxt-entity/dist/components/DruxtEntity.vue'
import DruxtModule from 'druxt/dist/components/DruxtModule.vue'

DruxtEntity.__docgenInfo.props = [
...DruxtModule.__docgenInfo.props,
...DruxtEntity.__docgenInfo.props,
].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')

export default {
title: 'Druxt/Entity/DruxtEntity',
Expand Down
6 changes: 6 additions & 0 deletions packages/menu/templates/druxt-menu.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import DruxtMenu from 'druxt-menu/dist/components/DruxtMenu.vue'
import DruxtModule from 'druxt/dist/components/DruxtModule.vue'

DruxtMenu.__docgenInfo.props = [
...DruxtModule.__docgenInfo.props,
...DruxtMenu.__docgenInfo.props,
].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')

export default {
title: 'Druxt/Menu/DruxtMenu',
Expand Down
6 changes: 6 additions & 0 deletions packages/router/templates/druxt-router.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import DruxtRouter from 'druxt-router/dist/components/DruxtRouter.vue'
import DruxtModule from 'druxt/dist/components/DruxtModule.vue'

DruxtRouter.__docgenInfo.props = [
...DruxtModule.__docgenInfo.props,
...DruxtRouter.__docgenInfo.props,
].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')

export default {
title: 'Druxt/Router/DruxtRouter',
Expand Down
6 changes: 6 additions & 0 deletions packages/site/templates/druxt-site.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import DruxtSite from 'druxt-site/dist/components/DruxtSite.vue'
import DruxtModule from 'druxt/dist/components/DruxtModule.vue'

DruxtSite.__docgenInfo.props = [
...DruxtModule.__docgenInfo.props,
...DruxtSite.__docgenInfo.props,
].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')

export default {
title: 'Druxt/Site/DruxtSite',
Expand Down
6 changes: 6 additions & 0 deletions packages/views/templates/druxt-views.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import DruxtView from 'druxt-views/dist/components/DruxtView.vue'
import DruxtModule from 'druxt/dist/components/DruxtModule.vue'

DruxtView.__docgenInfo.props = [
...DruxtModule.__docgenInfo.props,
...DruxtView.__docgenInfo.props,
].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')

export default {
title: 'Druxt/Views/DruxtView',
Expand Down

0 comments on commit fbd50a9

Please sign in to comment.