zt-react-components
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -64,3 +64,3 @@ "use strict"; | ||
var disabled = _ref2.disabled; | ||
return disabled ? _designGuideline.colors.darkerWhite : _designGuideline.colors.white; | ||
return disabled && _designGuideline.colors.darkerWhite; | ||
}, function (_ref3) { | ||
@@ -110,4 +110,3 @@ var size = _ref3.size; | ||
size: this.props.size, | ||
disabled: this.props.disabled, | ||
"data-test-checkbox-checked": this.props.checked | ||
disabled: this.props.disabled | ||
}, | ||
@@ -114,0 +113,0 @@ this.props.checked && _react2.default.createElement(Checkmark, null), |
@@ -1,1 +0,1 @@ | ||
{"name":"zt-react-components","version":"1.0.2","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-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.0.3","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-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"}} |
@@ -17,3 +17,3 @@ import React, {PureComponent} from "react"; | ||
background-color: ${({disabled}) => disabled ? colors.darkerWhite : colors.white}; | ||
background-color: ${({disabled}) => disabled && colors.darkerWhite}; | ||
@@ -59,3 +59,2 @@ width: ${({size}) => size === "large" ? fontSizes.slightlyLarger : fontSizes.default}; | ||
disabled={this.props.disabled} | ||
data-test-checkbox-checked={this.props.checked} | ||
> | ||
@@ -62,0 +61,0 @@ {this.props.checked && <Checkmark />} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
312508
8270