Skip to content

Commit

Permalink
Aia 0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
srph committed Nov 3, 2015
1 parent b75f4c1 commit 4a82bbb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
21 changes: 10 additions & 11 deletions dist/aia.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/aia.css.map

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions docs/dist/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -30548,7 +30548,7 @@
throw new Error('Container does not exist. It may have been removed, or whatever');
}

this.$dropdown = (0, _reactDom.render)((0, _react.cloneElement)(this.props.children, {
this.$dropdown = (0, _reactDom.unstable_renderSubtreeIntoContainer)(this, (0, _react.cloneElement)(this.props.children, {
style: {
top: this.state.top,
left: this.state.left
Expand Down Expand Up @@ -30695,7 +30695,6 @@
calculateY: function calculateY(trigger, overlay, placement) {
var offsetY = this.getOffsetY(trigger);
var box = trigger.getBoundingClientRect();
console.log(overlay.getBoundingClientRect());

switch (placement) {
case 'top':
Expand Down Expand Up @@ -30968,10 +30967,19 @@
var Modal = (function (_React$Component) {
_inherits(Modal, _React$Component);

function Modal(props) {
_createClass(Modal, null, [{
key: 'propTypes',
value: {
open: _react.PropTypes.bool.isRequired,
onRequestClose: _react.PropTypes.func.isRequired
},
enumerable: true
}]);

function Modal(props, context) {
_classCallCheck(this, Modal);

_get(Object.getPrototypeOf(Modal.prototype), 'constructor', this).call(this, props);
_get(Object.getPrototypeOf(Modal.prototype), 'constructor', this).call(this, props, context);

this.handleKeyUp = this.handleKeyUp.bind(this);
}
Expand Down Expand Up @@ -31034,7 +31042,7 @@
// Move to another function
(0, _utilsDomUtils.addClass)(document.body, MODAL_BODY_CLASS);

this.$modal = (0, _reactDom.render)(_react2['default'].createElement(
this.$modal = (0, _reactDom.unstable_renderSubtreeIntoContainer)(this, _react2['default'].createElement(
'div',
null,
_react2['default'].createElement('div', { className: MODAL_BACKDROP_CLASS }),
Expand Down Expand Up @@ -31063,13 +31071,6 @@
}
}
}], [{
key: 'propTypes',
value: {
open: _react.PropTypes.bool.isRequired,
onRequestClose: _react.PropTypes.func.isRequired
},
enumerable: true
}, {
key: 'defaultProps',
value: {
open: false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aia",
"version": "0.5.3",
"version": "0.5.4",
"description": "The UI Toolkit that powers ONE's internal projects",
"main": "lib/index",
"scripts": {
Expand Down

0 comments on commit 4a82bbb

Please sign in to comment.