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

rc-radio

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-radio - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

LICENSE.md

13

lib/index.js
'use strict';
module.exports = require('./Radio');
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Radio = require('./Radio');
var _Radio2 = _interopRequireDefault(_Radio);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
exports["default"] = _Radio2["default"];
module.exports = exports['default'];

53

lib/Radio.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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 React = require('react');
var Checkbox = require('rc-checkbox');
var _react = require('react');
var Radio = React.createClass({
displayName: 'Radio',
var _react2 = _interopRequireDefault(_react);
getDefaultProps: function getDefaultProps() {
return {
prefixCls: 'rc-radio',
type: 'radio'
};
},
var _rcCheckbox = require('rc-checkbox');
render: function render() {
return React.createElement(Checkbox, _extends({}, this.props, { ref: 'checkbox' }));
var _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
var Radio = function (_React$Component) {
_inherits(Radio, _React$Component);
function Radio() {
_classCallCheck(this, Radio);
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
}
});
module.exports = Radio;
Radio.prototype.render = function render() {
return _react2["default"].createElement(_rcCheckbox2["default"], _extends({}, this.props, { ref: 'checkbox' }));
};
return Radio;
}(_react2["default"].Component);
Radio.defaultProps = {
prefixCls: 'rc-radio',
type: 'radio'
};
exports["default"] = Radio;
module.exports = exports['default'];
{
"name": "rc-radio",
"version": "2.0.0",
"version": "2.0.1",
"description": "radio ui component for react",

@@ -26,12 +26,12 @@ "keywords": [

"build": "rc-tools run build",
"precommit": "rc-tools run precommit",
"less": "rc-tools run less",
"gh-pages": "rc-tools run gh-pages",
"history": "rc-tools run history",
"start": "node --harmony node_modules/.bin/rc-server",
"publish": "rc-tools run tag",
"start": "rc-tools run server",
"pub": "rc-tools run pub",
"lint": "rc-tools run lint",
"saucelabs": "node --harmony node_modules/.bin/rc-tools run saucelabs",
"browser-test": "node --harmony node_modules/.bin/rc-tools run browser-test",
"browser-test-cover": "node --harmony node_modules/.bin/rc-tools run browser-test-cover"
"test": "rc-tools run test",
"chrome-test": "rc-tools run chrome-test",
"coverage": "rc-tools run coverage"
},

@@ -41,8 +41,8 @@ "devDependencies": {

"precommit-hook": "^1.0.7",
"rc-server": "3.x",
"rc-tools": "3.x",
"react": "^0.13.0"
"rc-tools": "^5.11.4",
"react": "^15.0.0",
"react-dom": "^15.5.4"
},
"precommit": [
"precommit"
"lint"
],

@@ -49,0 +49,0 @@ "dependencies": {

@@ -30,2 +30,8 @@ # rc-radio

## example
http://localhost:9090/examples/
online example: http://react-component.github.io/radio/examples/
## Usage

@@ -40,3 +46,3 @@

same with <input type='radio' />, but only support controlled radio.
same with `<input type="radio" />`, but only support controlled radio.

@@ -43,0 +49,0 @@ ## Development

Sorry, the diff of this file is not supported yet

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