@rmwc/switch
Advanced tools
Comparing version 2.2.2 to 3.0.0
@@ -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
23713
452
+ Added@material/animation@0.40.1(transitive)
+ Added@material/base@0.40.1(transitive)
+ Added@material/button@0.40.1(transitive)
+ Added@material/elevation@0.40.1(transitive)
+ Added@material/form-field@0.40.1(transitive)
+ Added@material/ripple@0.40.1(transitive)
+ Added@material/rtl@0.40.1(transitive)
+ Added@material/selection-control@0.40.1(transitive)
+ Added@material/shape@0.40.1(transitive)
+ Added@material/switch@0.40.1(transitive)
+ Added@material/theme@0.40.1(transitive)
+ Added@material/typography@0.40.1(transitive)
+ Added@rmwc/base@3.0.11(transitive)
+ Added@rmwc/button@3.0.11(transitive)
+ Added@rmwc/formfield@3.0.11(transitive)
+ Added@rmwc/icon@3.0.11(transitive)
+ Added@rmwc/provider@3.0.6(transitive)
+ Added@rmwc/ripple@3.0.11(transitive)
- Removed@material/animation@0.39.0(transitive)
- Removed@material/base@0.39.0(transitive)
- Removed@material/button@0.39.3(transitive)
- Removed@material/elevation@0.39.1(transitive)
- Removed@material/form-field@0.39.3(transitive)
- Removed@material/ripple@0.39.3(transitive)
- Removed@material/rtl@0.39.1(transitive)
- Removed@material/selection-control@0.39.3(transitive)
- Removed@material/switch@0.39.3(transitive)
- Removed@material/theme@0.39.1(transitive)
- Removed@material/typography@0.39.0(transitive)
- Removed@rmwc/base@2.2.0(transitive)
- Removed@rmwc/button@2.2.2(transitive)
- Removed@rmwc/formfield@2.2.0(transitive)
- Removed@rmwc/icon@2.2.2(transitive)
- Removed@rmwc/provider@2.2.0(transitive)
- Removed@rmwc/ripple@2.2.0(transitive)
Updated@material/switch@~0.40.0
Updated@rmwc/base@^3.0.0
Updated@rmwc/button@^3.0.0
Updated@rmwc/formfield@^3.0.0