zt-react-components
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -100,3 +100,3 @@ "use strict"; | ||
_this.state = { | ||
isChecked: !!props.checked || props.defaultChecked | ||
isChecked: !!props.checked || !!props.defaultChecked | ||
}; | ||
@@ -128,6 +128,9 @@ return _this; | ||
value: function render() { | ||
// picking out defaultChecked since we do not want to apply defaultChecked together with checked. | ||
// eslint-disable-next-line no-unused-vars | ||
var _props = this.props, | ||
size = _props.size, | ||
disabled = _props.disabled, | ||
props = _objectWithoutProperties(_props, ["size", "disabled"]); | ||
defaultChecked = _props.defaultChecked, | ||
props = _objectWithoutProperties(_props, ["size", "disabled", "defaultChecked"]); | ||
@@ -134,0 +137,0 @@ var isChecked = this.state.isChecked; |
@@ -1,1 +0,1 @@ | ||
{"name":"zt-react-components","version":"1.1.0","description":"Commonly used React components for ZeroTurnaround products","license":"Apache-2.0","main":"lib/index.js","files":["dist","lib","src"],"scripts":{"build":"yarn build:commonjs && yarn build:umd","build:commonjs":"babel src -d lib","build:commonjs:watch":"yarn build -- --watch","build:umd":"webpack src/index.js dist/zt-react-components.js","build:umd:watch":"yarn build:umd -- --watch","test":"jest","test:watch":"jest --watch","test:update":"jest --u","lint":"eslint .","prepublish":"yarn build"},"repository":{"type":"git","url":"https://github.com/zeroturnaround/zt-react-components.git"},"peerDependencies":{"react":">=15.0.0"},"dependencies":{"prop-types":"^15.5.10","styled-components":"^2.0.1"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-loader":"^7.0.0","babel-plugin-inline-react-svg":"^0.4.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-react":"^6.24.1","eslint":"^3.19.0","eslint-config-zt":"^1.4.0","eslint-plugin-react":"^7.0.1","jest":"^20.0.4","jest-styled-components":"next","react":"^15.6.1","react-test-renderer":"^15.5.4","webpack":"^2.6.1"},"jest":{"testEnvironment":"node"}} | ||
{"name":"zt-react-components","version":"1.1.1","description":"Commonly used React components for ZeroTurnaround products","license":"Apache-2.0","main":"lib/index.js","files":["dist","lib","src"],"scripts":{"build":"yarn build:commonjs && yarn build:umd","build:commonjs":"babel src -d lib","build:commonjs:watch":"yarn build -- --watch","build:umd":"webpack src/index.js dist/zt-react-components.js","build:umd:watch":"yarn build:umd -- --watch","test":"jest","test:watch":"jest --watch","test:update":"jest --u","lint":"eslint .","prepublish":"yarn build"},"repository":{"type":"git","url":"https://github.com/zeroturnaround/zt-react-components.git"},"peerDependencies":{"react":">=15.0.0"},"dependencies":{"prop-types":"^15.5.10","styled-components":"^2.0.1"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-loader":"^7.0.0","babel-plugin-inline-react-svg":"^0.4.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-plugin-transform-class-properties":"^6.24.1","babel-preset-env":"^1.5.2","babel-preset-react":"^6.24.1","eslint":"^3.19.0","eslint-config-zt":"^1.4.0","eslint-plugin-react":"^7.0.1","jest":"^20.0.4","jest-styled-components":"next","react":"^15.6.1","react-test-renderer":"^15.5.4","webpack":"^2.6.1"},"jest":{"testEnvironment":"node"}} |
@@ -61,3 +61,3 @@ import React, {PureComponent} from "react"; | ||
this.state = { | ||
isChecked: !!props.checked || props.defaultChecked | ||
isChecked: !!props.checked || !!props.defaultChecked | ||
}; | ||
@@ -83,3 +83,5 @@ } | ||
render() { | ||
const { size, disabled, ...props } = this.props; | ||
// picking out defaultChecked since we do not want to apply defaultChecked together with checked. | ||
// eslint-disable-next-line no-unused-vars | ||
const { size, disabled, defaultChecked, ...props } = this.props; | ||
const { isChecked } = this.state; | ||
@@ -86,0 +88,0 @@ |
Sorry, the diff of this file is too big to display
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
315731
8330