Skip to content

Commit bd50727

Browse files
committed
v2.5.1
1 parent a346f87 commit bd50727

10 files changed

+68
-16
lines changed

addons.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,14 @@ Mixins.Button = {
16461646
var FloatingPanel = React.createClass({
16471647
displayName: 'FloatingPanel',
16481648
mixins: [Mixins.PanelWrapper],
1649-
1649+
propTypes: {
1650+
left:React.PropTypes.number,
1651+
top:React.PropTypes.number,
1652+
width:React.PropTypes.number,
1653+
style:React.PropTypes.object,
1654+
onClick:React.PropTypes.func,
1655+
},
1656+
16501657
getDefaultProps: function () {
16511658
return {
16521659
"left": 0,
@@ -1705,6 +1712,12 @@ var FloatingPanel = React.createClass({
17051712
this.setState({ left: left, top: top });
17061713
}
17071714
},
1715+
1716+
handleMouseClick: function (e) {
1717+
if (typeof this.props.onClick === "function") {
1718+
this.props.onClick(e);
1719+
}
1720+
},
17081721

17091722
render: function() {
17101723
var transform = "translate3d(" + Utils.pixelsOf(this.state.left) + ", " + Utils.pixelsOf(this.state.top) + ", 0)",
@@ -1738,7 +1751,7 @@ var FloatingPanel = React.createClass({
17381751
this.skipUpdate = false;
17391752
}
17401753

1741-
return React.createElement("div", {style:wrapperStyle}, this.inner);
1754+
return React.createElement("div", {style:wrapperStyle, onClick:this.handleMouseClick}, this.inner);
17421755
}
17431756

17441757
});

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-panels",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"homepage": "https://github.com/Theadd/react-panels",
55
"authors": [
66
"Theadd <[email protected]>"

dist/react-panels-with-addons.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,14 @@ Mixins.Button = {
16461646
var FloatingPanel = React.createClass({
16471647
displayName: 'FloatingPanel',
16481648
mixins: [Mixins.PanelWrapper],
1649-
1649+
propTypes: {
1650+
left:React.PropTypes.number,
1651+
top:React.PropTypes.number,
1652+
width:React.PropTypes.number,
1653+
style:React.PropTypes.object,
1654+
onClick:React.PropTypes.func,
1655+
},
1656+
16501657
getDefaultProps: function () {
16511658
return {
16521659
"left": 0,
@@ -1705,6 +1712,12 @@ var FloatingPanel = React.createClass({
17051712
this.setState({ left: left, top: top });
17061713
}
17071714
},
1715+
1716+
handleMouseClick: function (e) {
1717+
if (typeof this.props.onClick === "function") {
1718+
this.props.onClick(e);
1719+
}
1720+
},
17081721

17091722
render: function() {
17101723
var transform = "translate3d(" + Utils.pixelsOf(this.state.left) + ", " + Utils.pixelsOf(this.state.top) + ", 0)",
@@ -1738,7 +1751,7 @@ var FloatingPanel = React.createClass({
17381751
this.skipUpdate = false;
17391752
}
17401753

1741-
return React.createElement("div", {style:wrapperStyle}, this.inner);
1754+
return React.createElement("div", {style:wrapperStyle, onClick:this.handleMouseClick}, this.inner);
17421755
}
17431756

17441757
});

dist/react-panels-with-addons.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-panels-with-addons.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-panels.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,14 @@ Mixins.Button = {
16461646
var FloatingPanel = React.createClass({
16471647
displayName: 'FloatingPanel',
16481648
mixins: [Mixins.PanelWrapper],
1649-
1649+
propTypes: {
1650+
left:React.PropTypes.number,
1651+
top:React.PropTypes.number,
1652+
width:React.PropTypes.number,
1653+
style:React.PropTypes.object,
1654+
onClick:React.PropTypes.func,
1655+
},
1656+
16501657
getDefaultProps: function () {
16511658
return {
16521659
"left": 0,
@@ -1705,6 +1712,12 @@ var FloatingPanel = React.createClass({
17051712
this.setState({ left: left, top: top });
17061713
}
17071714
},
1715+
1716+
handleMouseClick: function (e) {
1717+
if (typeof this.props.onClick === "function") {
1718+
this.props.onClick(e);
1719+
}
1720+
},
17081721

17091722
render: function() {
17101723
var transform = "translate3d(" + Utils.pixelsOf(this.state.left) + ", " + Utils.pixelsOf(this.state.top) + ", 0)",
@@ -1738,7 +1751,7 @@ var FloatingPanel = React.createClass({
17381751
this.skipUpdate = false;
17391752
}
17401753

1741-
return React.createElement("div", {style:wrapperStyle}, this.inner);
1754+
return React.createElement("div", {style:wrapperStyle, onClick:this.handleMouseClick}, this.inner);
17421755
}
17431756

17441757
});

dist/react-panels.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-panels.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,14 @@ Mixins.Button = {
16461646
var FloatingPanel = React.createClass({
16471647
displayName: 'FloatingPanel',
16481648
mixins: [Mixins.PanelWrapper],
1649-
1649+
propTypes: {
1650+
left:React.PropTypes.number,
1651+
top:React.PropTypes.number,
1652+
width:React.PropTypes.number,
1653+
style:React.PropTypes.object,
1654+
onClick:React.PropTypes.func,
1655+
},
1656+
16501657
getDefaultProps: function () {
16511658
return {
16521659
"left": 0,
@@ -1705,6 +1712,12 @@ var FloatingPanel = React.createClass({
17051712
this.setState({ left: left, top: top });
17061713
}
17071714
},
1715+
1716+
handleMouseClick: function (e) {
1717+
if (typeof this.props.onClick === "function") {
1718+
this.props.onClick(e);
1719+
}
1720+
},
17081721

17091722
render: function() {
17101723
var transform = "translate3d(" + Utils.pixelsOf(this.state.left) + ", " + Utils.pixelsOf(this.state.top) + ", 0)",
@@ -1738,7 +1751,7 @@ var FloatingPanel = React.createClass({
17381751
this.skipUpdate = false;
17391752
}
17401753

1741-
return React.createElement("div", {style:wrapperStyle}, this.inner);
1754+
return React.createElement("div", {style:wrapperStyle, onClick:this.handleMouseClick}, this.inner);
17421755
}
17431756

17441757
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-panels",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"description": "React.js panel component with tabs, toolbars, buttons, floating windows and customizable themes",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)