Socket
Socket
Sign inDemoInstall

kitchensink

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kitchensink - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

35

lib/components/PropInput.js

@@ -1,2 +0,2 @@

"use strict";
'use strict';

@@ -9,3 +9,3 @@ Object.defineProperty(exports, "__esModule", {

var _react = require("react");
var _react = require('react');

@@ -37,5 +37,10 @@ var _react2 = _interopRequireDefault(_react);

return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(PropInput)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.onChange = function (event) {
var _this$props = _this.props;
var name = _this$props.name;
var onChange = _this$props.onChange;
var type = _this$props.type;
var value = void 0;
if (_this.props.type === _react2.default.PropTypes.bool) {
if (type === _react2.default.PropTypes.bool || type === _react2.default.PropTypes.bool.isRequired) {
value = event.target.checked;

@@ -50,3 +55,3 @@ } else {

_this.props.onChange(event, _this.props.name, value);
onChange(event, name, value);
}, _temp), _possibleConstructorReturn(_this, _ret);

@@ -56,14 +61,22 @@ }

_createClass(PropInput, [{
key: "render",
key: 'render',
value: function render() {
var _props = this.props;
var name = _props.name;
var type = _props.type;
if (type === _react2.default.PropTypes.func || type === _react2.default.PropTypes.func.isRequired || name === 'children') {
return null;
}
var input = void 0;
if (this.props.type === _react2.default.PropTypes.bool) {
input = _react2.default.createElement("input", { type: "checkbox", onChange: this.onChange });
if (type === _react2.default.PropTypes.bool || type === _react2.default.PropTypes.bool.isRequired) {
input = _react2.default.createElement('input', { type: 'checkbox', onChange: this.onChange });
} else {
input = _react2.default.createElement("input", { onChange: this.onChange });
input = _react2.default.createElement('input', { onChange: this.onChange });
}
return _react2.default.createElement(
"div",
'div',
null,

@@ -70,0 +83,0 @@ input

{
"name": "kitchensink",
"version": "1.1.0",
"version": "1.1.1",
"description": "Dispatch's awesome components and style guide",

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

Sorry, the diff of this file is too big to display

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