Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-interface

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-interface - npm Package Compare versions

Comparing version 0.8.5 to 0.8.6

12

es/components/Checkbox/index.js
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _templateObject = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: ", ";\n cursor: pointer;\n\n > span {\n padding-left: ", "rem;\n color: ", ";\n }\n\n ", ";\n ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: ", ";\n cursor: pointer;\n\n > span {\n padding-left: ", "rem;\n color: ", ";\n }\n\n ", ";\n ", ";\n"]),
_templateObject2 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 2px;\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"], ["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 2px;\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"]);
_templateObject2 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n ", ";\n ", ";\n ", ";\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"], ["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n ", ";\n ", ";\n ", ";\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"]);

@@ -28,13 +28,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Box = styled.div(_templateObject2, function (props) {
return props.theme.colors[props.color] || props.theme["checkbox.background"] || props.theme.colors.primary;
}, function (props) {
return props.theme.colors[props.color + "5"] || props.theme["checkbox.border.color"] || props.theme.colors.primary5;
}, function (props) {
return props.theme.colors[props.color + "1"] || props.theme["checkbox.icon.color"] || props.theme.colors.primary1;
}, function (props) {
var Box = styled.div(_templateObject2, props.theme["checkbox.background"] || props.theme.colors.primary, props.theme["checkbox.border.color"] || props.theme.colors.primary5, props.theme["checkbox.icon.color"] || props.theme.colors.primary1, function (props) {
return props.theme.sizes.dimensions[props.size];
}, function (props) {
return props.theme.sizes.dimensions[props.size];
});
}, borderRadius, borderColor, color);

@@ -41,0 +35,0 @@ var Checkbox = function (_PureComponent) {

@@ -8,3 +8,3 @@ "use strict";

var _templateObject = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: ", ";\n cursor: pointer;\n\n > span {\n padding-left: ", "rem;\n color: ", ";\n }\n\n ", ";\n ", ";\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: ", ";\n cursor: pointer;\n\n > span {\n padding-left: ", "rem;\n color: ", ";\n }\n\n ", ";\n ", ";\n"]),
_templateObject2 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 2px;\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"], ["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n border-radius: 2px;\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"]);
_templateObject2 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n ", ";\n ", ";\n ", ";\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"], ["\n box-sizing: border-box;\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n height: ", ";\n width: ", ";\n ", ";\n ", ";\n ", ";\n\n svg,\n div {\n display: inherit;\n height: 100%;\n width: 100%;\n }\n"]);

@@ -47,13 +47,7 @@ var _react = require("react");

var Box = _styledComponents2.default.div(_templateObject2, function (props) {
return props.theme.colors[props.color] || props.theme["checkbox.background"] || props.theme.colors.primary;
}, function (props) {
return props.theme.colors[props.color + "5"] || props.theme["checkbox.border.color"] || props.theme.colors.primary5;
}, function (props) {
return props.theme.colors[props.color + "1"] || props.theme["checkbox.icon.color"] || props.theme.colors.primary1;
}, function (props) {
var Box = _styledComponents2.default.div(_templateObject2, props.theme["checkbox.background"] || props.theme.colors.primary, props.theme["checkbox.border.color"] || props.theme.colors.primary5, props.theme["checkbox.icon.color"] || props.theme.colors.primary1, function (props) {
return props.theme.sizes.dimensions[props.size];
}, function (props) {
return props.theme.sizes.dimensions[props.size];
});
}, borderRadius, borderColor, color);

@@ -60,0 +54,0 @@ var Checkbox = function (_PureComponent) {

{
"name": "react-interface",
"version": "0.8.5",
"version": "0.8.6",
"description": "react-interface React component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc