armstrong-react
Advanced tools
Comparing version
@@ -6,2 +6,3 @@ "use strict"; | ||
var ReactDOM = require("react-dom"); | ||
var _ = require("underscore"); | ||
var icon_1 = require("./../display/icon"); | ||
@@ -135,3 +136,4 @@ var form_1 = require("../form/form"); | ||
var _this = this; | ||
return React.createElement("div", { role: "menuitem", className: "burger-menu-item" + (this.props.active ? ' active' : ''), style: this.props.style, "aria-selected": this.props.active || false, onClick: function () { return _this.props.onClick ? _this.handleClick(_this.props.onClick) : null; } }, | ||
var attrs = _.omit(this.props, ["title", "icon", "onClick", "style", "delayActionMs", "active"]); | ||
return React.createElement("div", tslib_1.__assign({}, attrs, { role: "menuitem", className: "burger-menu-item" + (this.props.active ? ' active' : ''), style: this.props.style, "aria-selected": this.props.active || false, onClick: function () { return _this.props.onClick ? _this.handleClick(_this.props.onClick) : null; } }), | ||
this.props.icon && React.createElement(icon_1.Icon, { icon: this.props.icon }), | ||
@@ -138,0 +140,0 @@ this.props.title); |
{ | ||
"name": "armstrong-react", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"description": "Rocketmakers Armstrong library of React components", | ||
@@ -20,3 +20,7 @@ "main": "./dist/index.js", | ||
}, | ||
"keywords": ["typescript", "React", "sass"], | ||
"keywords": [ | ||
"typescript", | ||
"React", | ||
"sass" | ||
], | ||
"author": "developers@rocketmakers.com", | ||
@@ -47,2 +51,2 @@ "license": "MIT", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
742264
0.04%15049
0.03%