Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: migrate to storybook, closes #136 #137

Merged
merged 5 commits into from
Oct 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { configure } from '@storybook/react';

function loadStories() {
require('../stories');
}

configure(loadStories, module);
13 changes: 2 additions & 11 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,9 @@ toc::[]
yarn add react-popover
```

## Examples


## Demos

* link:https://littlebits.github.io/react-popover/build/playground.html[Playground]
* link:https://littlebits.github.io/react-popover/build/rows.html[Rows]
* link:https://littlebits.github.io/react-popover/build/jsx.html[Using JSX]

To run demos locally execute `yarn start`. If you do not see logs in the console refresh the browser once (https://github.com/littlebits/react-popover/issues/35).


Look at the link:https://littlebits.github.io/react-popover[stories in our storybook].

## API

Expand Down Expand Up @@ -98,4 +90,3 @@ Defines the size of the tip pointer. Use .01 to disable tip. Defaults to '7'.
#### `appendTarget :: DOM selector (String)`

- The DOM selector where this popover will be appended to. Default to 'body'.

45 changes: 0 additions & 45 deletions examples/jsx/main.css

This file was deleted.

71 changes: 0 additions & 71 deletions examples/jsx/main.js

This file was deleted.

132 changes: 0 additions & 132 deletions examples/playground/main.js

This file was deleted.

67 changes: 0 additions & 67 deletions examples/rows/main.js

This file was deleted.

4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default

const lib = require("./build/main")
module.exports = lib.default
6 changes: 1 addition & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,4 @@ const Popover = createReactClass({
},
})



// Support for CJS
// http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default
module.exports = Popover
export default Popover
Loading