New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rmwc/switch

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/switch - npm Package Compare versions

Comparing version 2.2.2 to 3.0.0

9

index.js

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

disabled = _props.disabled,
className = _props.className,
_props$rootProps = _props.rootProps,
rootProps = _props$rootProps === undefined ? {} : _props$rootProps,
rest = _objectWithoutProperties(_props, ['label', 'id', 'children', 'disabled', 'rootProps']);
rest = _objectWithoutProperties(_props, ['label', 'id', 'children', 'disabled', 'className', 'rootProps']);

@@ -137,3 +138,3 @@ var labelId = id || this.generatedId;

Object.assign({}, !hasLabel ? rootProps : {}, {
className: (0, _classnames2.default)(hasLabel || rootProps.className),
className: (0, _classnames2.default)(hasLabel || [rootProps.className, className]),
elementRef: root_

@@ -161,3 +162,5 @@ }),

_formfield2.default,
Object.assign({}, rootProps, { className: rootProps.className }),
Object.assign({}, rootProps, {
className: (0, _classnames2.default)(rootProps.className, className)
}),
switchTag,

@@ -164,0 +167,0 @@ React.createElement(

{
"name": "@rmwc/switch",
"version": "2.2.2",
"version": "3.0.0",
"description": "RMWC Switch component",

@@ -29,8 +29,8 @@ "main": "index.js",

"dependencies": {
"@material/switch": "~0.39.0",
"@rmwc/base": "^2.2.0",
"@rmwc/button": "^2.2.2",
"@rmwc/formfield": "^2.2.0",
"@material/switch": "~0.40.0",
"@rmwc/base": "^3.0.0",
"@rmwc/button": "^3.0.0",
"@rmwc/formfield": "^3.0.0",
"classnames": "^2.2.5"
}
}

@@ -34,3 +34,3 @@ # Switches

```jsx renderOnly
import { DocumentComponent } from '@rmwc/base/utils/DocumentComponent';
import { DocumentComponent } from '@rmwc/base/utils/document-component';
import * as docs from './docgen.json';

@@ -37,0 +37,0 @@

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