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

rc-switch

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-switch - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

7

es/Switch.js

@@ -89,6 +89,7 @@ import _extends from 'babel-runtime/helpers/extends';

disabled = _props2.disabled,
loadingIcon = _props2.loadingIcon,
checkedChildren = _props2.checkedChildren,
tabIndex = _props2.tabIndex,
unCheckedChildren = _props2.unCheckedChildren,
restProps = _objectWithoutProperties(_props2, ['className', 'prefixCls', 'disabled', 'checkedChildren', 'tabIndex', 'unCheckedChildren']);
restProps = _objectWithoutProperties(_props2, ['className', 'prefixCls', 'disabled', 'loadingIcon', 'checkedChildren', 'tabIndex', 'unCheckedChildren']);

@@ -108,2 +109,3 @@ var checked = this.state.checked;

}),
loadingIcon,
React.createElement(

@@ -171,3 +173,4 @@ 'span',

defaultChecked: PropTypes.bool,
autoFocus: PropTypes.bool
autoFocus: PropTypes.bool,
loadingIcon: PropTypes.node
};

@@ -174,0 +177,0 @@

@@ -0,1 +1,5 @@

## 1.7.0
- Add `loadingIcon`.
## 1.6.0

@@ -2,0 +6,0 @@

@@ -124,6 +124,7 @@ 'use strict';

disabled = _props2.disabled,
loadingIcon = _props2.loadingIcon,
checkedChildren = _props2.checkedChildren,
tabIndex = _props2.tabIndex,
unCheckedChildren = _props2.unCheckedChildren,
restProps = (0, _objectWithoutProperties3['default'])(_props2, ['className', 'prefixCls', 'disabled', 'checkedChildren', 'tabIndex', 'unCheckedChildren']);
restProps = (0, _objectWithoutProperties3['default'])(_props2, ['className', 'prefixCls', 'disabled', 'loadingIcon', 'checkedChildren', 'tabIndex', 'unCheckedChildren']);

@@ -143,2 +144,3 @@ var checked = this.state.checked;

}),
loadingIcon,
_react2['default'].createElement(

@@ -205,3 +207,4 @@ 'span',

defaultChecked: _propTypes2['default'].bool,
autoFocus: _propTypes2['default'].bool
autoFocus: _propTypes2['default'].bool,
loadingIcon: _propTypes2['default'].node
};

@@ -208,0 +211,0 @@

{
"name": "rc-switch",
"version": "1.6.0",
"version": "1.7.0",
"description": "switch ui component for react",

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

@@ -104,2 +104,14 @@ # rc-switch

</tr>
<tr>
<td>disabled</td>
<td>boolean</td>
<td>false</td>
<td>whether switch is disabled</td>
</tr>
<tr>
<td>loadingIcon</td>
<td>React.ReactNode</td>
<td></td>
<td>specific the extra node. generally used in loading icon.</td>
</tr>
</tbody>

@@ -106,0 +118,0 @@ </table>

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