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

rc-checkbox

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-checkbox - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

7

es/index.js

@@ -6,3 +6,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange", "children"];
var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
import classNames from 'classnames';

@@ -25,3 +25,2 @@ import useMergedState from "rc-util/es/hooks/useMergedState";

onChange = props.onChange,
children = props.children,
inputProps = _objectWithoutProperties(props, _excluded);

@@ -72,3 +71,3 @@ var inputRef = useRef(null);

};
return /*#__PURE__*/React.createElement("label", {
return /*#__PURE__*/React.createElement("span", {
className: classString,

@@ -87,4 +86,4 @@ title: title,

className: "".concat(prefixCls, "-inner")
}), children !== undefined && /*#__PURE__*/React.createElement("span", null, children));
}));
});
export default Checkbox;

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

var React = _react;
var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange", "children"];
var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

@@ -35,3 +35,2 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

onChange = props.onChange,
children = props.children,
inputProps = (0, _objectWithoutProperties2.default)(props, _excluded);

@@ -82,3 +81,3 @@ var inputRef = (0, _react.useRef)(null);

};
return /*#__PURE__*/React.createElement("label", {
return /*#__PURE__*/React.createElement("span", {
className: classString,

@@ -97,4 +96,4 @@ title: title,

className: "".concat(prefixCls, "-inner")
}), children !== undefined && /*#__PURE__*/React.createElement("span", null, children));
}));
});
var _default = exports.default = Checkbox;
{
"name": "rc-checkbox",
"version": "3.4.0",
"version": "3.5.0",
"description": "checkbox ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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