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

react-base16-styling

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-base16-styling - npm Package Compare versions

Comparing version 0.4.1 to 0.4.3

7

lib/index.js

@@ -99,3 +99,5 @@ 'use strict';

if (typeof s === 'string') {
return (0, _extends3.default)({}, obj, { className: obj.className + ' ' + s });
return (0, _extends3.default)({}, obj, { className: [obj.className, s].filter(function (c) {
return c;
}).join(' ') });
} else if ((typeof s === 'undefined' ? 'undefined' : (0, _typeof3.default)(s)) === 'object') {

@@ -111,3 +113,3 @@ return (0, _extends3.default)({}, obj, { style: (0, _extends3.default)({}, obj.style, s) });

var createStyling = exports.createStyling = (0, _lodash2.default)(function (getStylingFromBase16, options) {
var createStyling = exports.createStyling = (0, _lodash2.default)(function (getStylingFromBase16) {
for (var _len2 = arguments.length, args = Array(_len2 > 4 ? _len2 - 4 : 0), _key2 = 4; _key2 < _len2; _key2++) {

@@ -117,2 +119,3 @@ args[_key2 - 4] = arguments[_key2];

var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var themeOrStyling = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];

@@ -119,0 +122,0 @@ var invertTheme = arguments[3];

{
"name": "react-base16-styling",
"version": "0.4.1",
"version": "0.4.3",
"description": "React styling with base16 color scheme support",

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

@@ -43,6 +43,6 @@ # react-base16-styling

render() {
const { theme, isLightTheme } = this.props;
const { theme, invertTheme } = this.props;
const { clickCount } = this.state;
const styling = createStylingFromTheme(theme, isLightTheme);
const styling = createStylingFromTheme(theme, invertTheme);

@@ -49,0 +49,0 @@ return (

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