@vtex/styleguide
Advanced tools
Comparing version 2.0.0-rc.10 to 2.0.0-rc.11
@@ -33,2 +33,4 @@ 'use strict'; | ||
var noop = function noop() {}; | ||
var Toggle = function (_Component) { | ||
@@ -101,4 +103,4 @@ _inherits(Toggle, _Component); | ||
var eventHandlers = { | ||
onClick: this.props.onClick ? this.props.onClick : undefined, | ||
onChange: this.props.onChange ? this.props.onChange : undefined | ||
onClick: this.props.onClick ? this.props.onClick : noop, | ||
onChange: this.props.onChange ? this.props.onChange : noop | ||
}; | ||
@@ -108,6 +110,6 @@ | ||
'label', | ||
Object.assign({ | ||
{ | ||
htmlFor: '' + id, | ||
className: 'flex flex-row items-center ' + (!disabled && 'pointer') | ||
}, eventHandlers), | ||
}, | ||
this.props.children ? this.props.children : '', | ||
@@ -114,0 +116,0 @@ _react2.default.createElement( |
{ | ||
"name": "@vtex/styleguide", | ||
"version": "2.0.0-rc.10", | ||
"version": "2.0.0-rc.11", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "test": "react-scripts test --env=jsdom", |
909
44318