-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handling of 'of' attribute for components
- Loading branch information
1 parent
93ef00c
commit e5af752
Showing
7 changed files
with
153 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
core/instrument/test/fixtures/mdx/component/propstable-of.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Meta, PropsTable } from '@storybook/addon-docs/blocks'; | ||
import ArrowButton from '../../components/button-default-arrow-func'; | ||
|
||
<Meta title="Story" /> | ||
|
||
<PropsTable of={ArrowButton} /> |
7 changes: 7 additions & 0 deletions
7
core/instrument/test/fixtures/mdx/component/story-subcomponents.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Meta, Story } from '@storybook/addon-docs/blocks'; | ||
import ArrowButton from '../../components/button-default-arrow-func'; | ||
import { Button } from '../../components/button-named-arrow-func'; | ||
|
||
<Meta title="Story" /> | ||
|
||
<Story name="story" component={ArrowButton} subcomponents={{ 'My Button Tab': Button }} /> |
5 changes: 5 additions & 0 deletions
5
core/instrument/test/fixtures/mdx/component/subcomponents.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Meta, Story } from '@storybook/addon-docs/blocks'; | ||
import ArrowButton from '../../components/button-default-arrow-func'; | ||
import { Button } from '../../components/button-named-arrow-func'; | ||
|
||
<Meta title="Story" component={ArrowButton} subcomponents={{ Button }} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
import { loadStoriesTests } from './loadTestFiles'; | ||
|
||
describe('mdx-component', () => { | ||
loadStoriesTests(undefined, 'mdx', 'component'); | ||
loadStoriesTests( | ||
{ | ||
stories: { storeSourceFile: false, package: false }, | ||
components: { storeSourceFile: false, package: false }, | ||
}, | ||
'mdx', | ||
'component', | ||
); | ||
}); |