Skip to content

Commit

Permalink
chore(#501): add extends props to storybook (#534)
Browse files Browse the repository at this point in the history
* chore(#501): add extend props to storybook

* chore(#501): add changeset
  • Loading branch information
Decipher authored Jul 14, 2022
1 parent c4aca0b commit fc811db
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .changeset/long-spoons-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"druxt-blocks": patch
"druxt-breadcrumb": patch
"druxt-entity": patch
"druxt-menu": patch
"druxt-router": patch
"druxt-site": patch
"druxt-views": patch
---

Add DruxtModule props to component module stories.
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 fc811db

Please sign in to comment.