@rmwc/button
Advanced tools
Comparing version 6.0.13 to 6.0.14
import * as RMWC from '@rmwc/types'; | ||
import * as React from 'react'; | ||
import React from 'react'; | ||
/********************************************************************* | ||
@@ -4,0 +4,0 @@ * Button |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var React = tslib_1.__importStar(require("react")); | ||
var react_1 = tslib_1.__importDefault(require("react")); | ||
var ripple_1 = require("@rmwc/ripple"); | ||
@@ -32,9 +32,9 @@ var icon_1 = require("@rmwc/icon"); | ||
} | ||
return (React.createElement(base_1.Tag, tslib_1.__assign({ tag: "button" }, rest, { ref: ref, className: className }), | ||
React.createElement(ButtonRipple, null), | ||
!!icon && React.createElement(ButtonIcon, { icon: icon }), | ||
React.createElement("span", { className: "mdc-button__label" }, | ||
return (react_1.default.createElement(base_1.Tag, tslib_1.__assign({ tag: "button" }, rest, { ref: ref, className: className }), | ||
react_1.default.createElement(ButtonRipple, null), | ||
!!icon && react_1.default.createElement(ButtonIcon, { icon: icon }), | ||
react_1.default.createElement("span", { className: "mdc-button__label" }, | ||
label, | ||
children), | ||
!!trailingIcon && React.createElement(ButtonIcon, { icon: trailingIcon }))); | ||
!!trailingIcon && react_1.default.createElement(ButtonIcon, { icon: trailingIcon }))); | ||
})); | ||
@@ -44,4 +44,4 @@ /********************************************************************* | ||
*********************************************************************/ | ||
var ButtonRipple = React.memo(function ButtonRipple() { | ||
return React.createElement("div", { className: "mdc-button__ripple" }); | ||
var ButtonRipple = react_1.default.memo(function ButtonRipple() { | ||
return react_1.default.createElement("div", { className: "mdc-button__ripple" }); | ||
}); | ||
@@ -51,3 +51,3 @@ /** An icon that goes inside of buttons. This is an instance of the Icon component. */ | ||
var className = base_1.useClassNames(props, ['mdc-button__icon']); | ||
return React.createElement(icon_1.Icon, tslib_1.__assign({}, props, { className: className, ref: ref })); | ||
return react_1.default.createElement(icon_1.Icon, tslib_1.__assign({}, props, { className: className, ref: ref })); | ||
}); |
import * as RMWC from '@rmwc/types'; | ||
import * as React from 'react'; | ||
import React from 'react'; | ||
/********************************************************************* | ||
@@ -4,0 +4,0 @@ * Button |
import { __assign, __rest } from "tslib"; | ||
import * as React from 'react'; | ||
import React from 'react'; | ||
import { withRipple } from '@rmwc/ripple'; | ||
@@ -4,0 +4,0 @@ import { Icon } from '@rmwc/icon'; |
{ | ||
"name": "@rmwc/button", | ||
"version": "6.0.13", | ||
"version": "6.0.14", | ||
"description": "RMWC Button component", | ||
@@ -40,9 +40,9 @@ "main": "dist/index.js", | ||
"@material/button": "^5.1.0", | ||
"@rmwc/base": "^6.0.13", | ||
"@rmwc/icon": "^6.0.13", | ||
"@rmwc/provider": "^6.0.13", | ||
"@rmwc/ripple": "^6.0.13", | ||
"@rmwc/base": "^6.0.14", | ||
"@rmwc/icon": "^6.0.14", | ||
"@rmwc/provider": "^6.0.14", | ||
"@rmwc/ripple": "^6.0.14", | ||
"@rmwc/types": "^6.0.5" | ||
}, | ||
"gitHead": "0d3b30c73eb07958144efef0fb0759fa014a546a" | ||
"gitHead": "4ee07fdccaec6eae22a6adf9c3232d809492bafd" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21672
Updated@rmwc/base@^6.0.14
Updated@rmwc/icon@^6.0.14
Updated@rmwc/provider@^6.0.14
Updated@rmwc/ripple@^6.0.14