Skip to content

Commit

Permalink
Merge pull request #24 from ryank109/transition-name-prop-type
Browse files Browse the repository at this point in the history
Transition name prop type
  • Loading branch information
ryank109 authored Dec 20, 2017
2 parents 6ffa411 + 9479add commit 023c5cc
Show file tree
Hide file tree
Showing 7 changed files with 1,604 additions and 1,635 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Set of components to handle modal dialog and popups with redux actions.
- `style` - optional styles to apply on the modal
- `transitionEnterTimeout` - enter transition time (defaults to 300ms)
- `transitionExitTimeout` - exit transition time (defaults to 300ms)
- `transitionName` - the transition name. Defaults to `modal`. See [Animation](https://github.com/ryank109/react-redux-popup#animation) for more details
- `transitionName` - the transition name. Defaults to `modal`. See [Animation](https://github.com/ryank109/react-redux-popup#animation) for more details. This property directly translates to [classNames](https://reactcommunity.org/react-transition-group/#CSSTransition-prop-classNames) property from CSSTransition, so you can also use the object to define specific class names.

- **Popup** - creates a popup on the location specified in `options` argument on `openPopup`. Clicking outside of the popup should close this popup or with dispatching `closePopup` action.
- Properties:
Expand All @@ -46,7 +46,7 @@ Set of components to handle modal dialog and popups with redux actions.
- `offset` - the offset distance from the anchored element in pixels
- `transitionEnterTimeout` - enter transition time (defaults to 100ms)
- `transitionExitTimeout` - exit transition time (defaults to 100ms)
- `transitionName` - the transition name. Defaults to `popup`. See [Animation](https://github.com/ryank109/react-redux-popup#animation) for more details
- `transitionName` - the transition name. Defaults to `popup`. See [Animation](https://github.com/ryank109/react-redux-popup#animation) for more details. This property directly translates to [classNames](https://reactcommunity.org/react-transition-group/#CSSTransition-prop-classNames) property from CSSTransition, so you can also use the object to define specific class names

- **Portal** - this component is where the popup and modal will be rendered to. Or you can define your own portal element and pass that to `Modal` and/or `Popup` components via `getPortalElement` property.

Expand Down
4 changes: 1 addition & 3 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'raf/polyfill';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

Enzyme.configure({ adapter: new Adapter() });

window.React = require('react');

// Monkey patch RAF until jest does
window.requestAnimationFrame = callback => window.setTimeout(callback, 0);
Loading

0 comments on commit 023c5cc

Please sign in to comment.