@trendmicro/react-buttons
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -1,2 +0,2 @@ | ||
/*! react-buttons v1.3.0 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-buttons */ | ||
/*! react-buttons v1.3.1 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-buttons */ | ||
module.exports = | ||
@@ -300,2 +300,6 @@ /******/ (function(modules) { // webpackBootstrap | ||
var getComponentType = function getComponentType(Component) { | ||
return Component ? _react2.default.createElement(Component, null).type : undefined; | ||
}; | ||
var ButtonGroup = function ButtonGroup(_ref) { | ||
@@ -320,3 +324,3 @@ var _classes; | ||
_react2.default.Children.map(children, function (child) { | ||
if (_react2.default.isValidElement(child) && child.type === _Button2.default) { | ||
if (_react2.default.isValidElement(child) && child.type === getComponentType(_Button2.default)) { | ||
var childProps = {}; | ||
@@ -323,0 +327,0 @@ if (_constants.btnSizes.indexOf(btnSize) >= 0) { |
{ | ||
"name": "@trendmicro/react-buttons", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Trend Micro Components: React Buttons", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"prepublish": "npm run lint && npm test && npm run clean && npm run bowersync && npm run build && npm run build-examples", | ||
"prepublish": "npm run eslint && npm test && npm run clean && npm run bowersync && npm run build && npm run build-examples", | ||
"bowersync": "./scripts/bowersync", | ||
@@ -19,4 +19,4 @@ "build": "webpack && npm run cleancss", | ||
"demo": "http-server -p 8000 docs/", | ||
"lint": "eslint ./src", | ||
"lint:fix": "eslint --fix ./src", | ||
"eslint": "eslint ./src", | ||
"eslint:fix": "eslint --fix ./src", | ||
"test": "tap test/*.js --node-arg=--require --node-arg=babel-register --node-arg=--require --node-arg=babel-polyfill", | ||
@@ -23,0 +23,0 @@ "coveralls": "tap test/*.js --coverage --coverage-report=text-lcov --nyc-arg=--require --nyc-arg=babel-register --nyc-arg=--require --nyc-arg=babel-polyfill | coveralls", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98499
1002