@rmwc/fab
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'; | ||
/** A floating action button component */ | ||
@@ -4,0 +4,0 @@ export interface FabProps extends RMWC.WithRippleProps { |
"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"); | ||
@@ -22,8 +22,8 @@ var icon_1 = require("@rmwc/icon"); | ||
} | ||
return (React.createElement(base_1.Tag, tslib_1.__assign({ tag: "button", label: label }, rest, { ref: ref, className: className }), | ||
React.createElement(FabRipple, null), | ||
!!icon && React.createElement(FabIcon, { icon: icon }), | ||
!!label && React.createElement("div", { className: "mdc-fab__label" }, label), | ||
return (react_1.default.createElement(base_1.Tag, tslib_1.__assign({ tag: "button", label: label }, rest, { ref: ref, className: className }), | ||
react_1.default.createElement(FabRipple, null), | ||
!!icon && react_1.default.createElement(FabIcon, { icon: icon }), | ||
!!label && react_1.default.createElement("div", { className: "mdc-fab__label" }, label), | ||
children, | ||
!!trailingIcon && React.createElement(FabIcon, { icon: trailingIcon }))); | ||
!!trailingIcon && react_1.default.createElement(FabIcon, { icon: trailingIcon }))); | ||
})); | ||
@@ -33,7 +33,7 @@ /********************************************************************* | ||
*********************************************************************/ | ||
var FabRipple = React.memo(function FabRipple() { | ||
return React.createElement("div", { className: "mdc-fab__ripple" }); | ||
var FabRipple = react_1.default.memo(function FabRipple() { | ||
return react_1.default.createElement("div", { className: "mdc-fab__ripple" }); | ||
}); | ||
var FabIcon = React.memo(function FabIcon(props) { | ||
return React.createElement(icon_1.Icon, tslib_1.__assign({ className: "mdc-fab__icon" }, props)); | ||
var FabIcon = react_1.default.memo(function FabIcon(props) { | ||
return react_1.default.createElement(icon_1.Icon, tslib_1.__assign({ className: "mdc-fab__icon" }, props)); | ||
}); |
import * as RMWC from '@rmwc/types'; | ||
import * as React from 'react'; | ||
import React from 'react'; | ||
/** A floating action button component */ | ||
@@ -4,0 +4,0 @@ export interface FabProps extends RMWC.WithRippleProps { |
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/fab", | ||
"version": "6.0.13", | ||
"version": "6.0.14", | ||
"description": "RMWC Floating Action Button component", | ||
@@ -40,9 +40,9 @@ "main": "dist/index.js", | ||
"@material/fab": "^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
16021
Updated@rmwc/base@^6.0.14
Updated@rmwc/icon@^6.0.14
Updated@rmwc/provider@^6.0.14
Updated@rmwc/ripple@^6.0.14