-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(documentation): Remove react-styleguidist and install @rollup-umd…
…/[email protected] that inclu react-styleguidist v9 have a context per code mirror, this required to imports things in demos
- Loading branch information
Dimitri Kopriwa
committed
Mar 11, 2019
1 parent
6771641
commit 2e5759b
Showing
117 changed files
with
1,348 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
If you don't have them, install the required `peerDependencies` in your project: | ||
|
||
```bash | ||
$ $PACKAGE_PEERS | ||
$PACKAGE_PEERS | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
`<Abbr />` component example: | ||
|
||
```js | ||
import { Abbr, P } from '$PACKAGE_NAME'; | ||
|
||
<P>This is an abbreviation example: <Abbr title="World Wide Web Consortium">W3C</Abbr></P> | ||
``` |
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,11 +1,13 @@ | ||
`<Accordion />` component example: | ||
|
||
```js static | ||
import { Accordion, CardBlock } from '$PACKAGE_NAME'; | ||
|
||
<Accordion heading="Collapsible Group Item #1" name="Accordion1"> | ||
<CardBlock> | ||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. | ||
</CardBlock> | ||
</Accordion> | ||
``` | ||
|
||
> > In order to work, this component must wrapped inside a `<AccordionGroup />` component, if you want to use only one accordion, you might use `<Collapse />` component. | ||
> In order to work, this component must wrapped inside a `<AccordionGroup />` component, if you want to use only one accordion, you might use `<Collapse />` component. |
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,32 +1,38 @@ | ||
`<AccordionGroup />` component example: | ||
|
||
```js | ||
import { | ||
A, | ||
Accordion, | ||
AccordionGroup, | ||
CardBlock, | ||
Strong, | ||
} from '$PACKAGE_NAME'; | ||
|
||
initialState = { | ||
activeAccordionName: '', | ||
activeAccordionName: 'Accordion1', | ||
}; | ||
|
||
const handleAccordionChange = function(name) { | ||
setState({ | ||
activeAccordionName: name, | ||
}); | ||
}; | ||
<div> | ||
<AccordionGroup activeAccordionName={state.activeAccordionName} onChange={handleAccordionChange}> | ||
<Accordion heading="Collapsible Group Item #1" name="Accordion1"> | ||
<AccordionGroup | ||
activeAccordionName={state.activeAccordionName} | ||
onChange={(activeAccordionName) => setState({ activeAccordionName })} | ||
> | ||
<Accordion heading="Collapsible Group Item #1" name="Accordion1"> | ||
<CardBlock> | ||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. | ||
</CardBlock> | ||
</Accordion> | ||
<Accordion heading={<A>Collapsible Group Item #2</A>} name="Accordion2"> | ||
</Accordion> | ||
<Accordion heading={<A>Collapsible Group Item #2</A>} name="Accordion2"> | ||
<CardBlock> | ||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. | ||
</CardBlock> | ||
</Accordion> | ||
<Accordion heading={<Strong>Collapsible Group Item #3</Strong>} name="Accordion3"> | ||
</Accordion> | ||
<Accordion heading={<Strong>Collapsible Group Item #3</Strong>} name="Accordion3"> | ||
<CardBlock> | ||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. | ||
</CardBlock> | ||
</Accordion> | ||
</AccordionGroup> | ||
</Accordion> | ||
</AccordionGroup> | ||
</div> | ||
``` |
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
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
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
Oops, something went wrong.