@react-md/button
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -6,2 +6,11 @@ # Change Log | ||
# [2.2.0](https://github.com/mlaursen/react-md/compare/v2.1.2...v2.2.0) (2020-08-11) | ||
**Note:** Version bump only for package @react-md/button | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## [2.1.2](https://github.com/mlaursen/react-md/compare/v2.1.1...v2.1.2) (2020-08-01) | ||
@@ -8,0 +17,0 @@ |
@@ -28,2 +28,11 @@ var __assign = (this && this.__assign) || function () { | ||
import FAB from "./FAB"; | ||
/** | ||
* The `Button` component is a simple wrapper for the `<button>` element that | ||
* defaults the `type` attribute to `"button"` so that it does not automatically | ||
* submit forms by default. It also supports multiple themes, rendering as an | ||
* icon button, or even as a floating action button. | ||
* | ||
* The default theme will be a clear text button unless the `floating` prop has | ||
* been provided where it will render as an icon button by default instead. | ||
*/ | ||
var Button = forwardRef(function Button(_a, ref) { | ||
@@ -30,0 +39,0 @@ var _b = _a.type, type = _b === void 0 ? "button" : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.floating, floating = _d === void 0 ? null : _d, floatingProps = _a.floatingProps, _e = _a.theme, theme = _e === void 0 ? floating ? "secondary" : "clear" : _e, _f = _a.themeType, themeType = _f === void 0 ? floating ? "contained" : "flat" : _f, _g = _a.buttonType, buttonType = _g === void 0 ? floating ? "icon" : "text" : _g, propClassName = _a.className, children = _a.children, disableRipple = _a.disableRipple, disableProgrammaticRipple = _a.disableProgrammaticRipple, rippleTimeout = _a.rippleTimeout, rippleClassNames = _a.rippleClassNames, rippleClassName = _a.rippleClassName, rippleContainerClassName = _a.rippleContainerClassName, propEnablePressedAndRipple = _a.enablePressedAndRipple, props = __rest(_a, ["type", "disabled", "floating", "floatingProps", "theme", "themeType", "buttonType", "className", "children", "disableRipple", "disableProgrammaticRipple", "rippleTimeout", "rippleClassNames", "rippleClassName", "rippleContainerClassName", "enablePressedAndRipple"]); |
@@ -37,3 +37,12 @@ import React, { ButtonHTMLAttributes, ReactNode } from "react"; | ||
} | ||
/** | ||
* The `Button` component is a simple wrapper for the `<button>` element that | ||
* defaults the `type` attribute to `"button"` so that it does not automatically | ||
* submit forms by default. It also supports multiple themes, rendering as an | ||
* icon button, or even as a floating action button. | ||
* | ||
* The default theme will be a clear text button unless the `floating` prop has | ||
* been provided where it will render as an icon button by default instead. | ||
*/ | ||
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; | ||
export default Button; |
@@ -52,2 +52,11 @@ "use strict"; | ||
var FAB_1 = __importDefault(require("./FAB")); | ||
/** | ||
* The `Button` component is a simple wrapper for the `<button>` element that | ||
* defaults the `type` attribute to `"button"` so that it does not automatically | ||
* submit forms by default. It also supports multiple themes, rendering as an | ||
* icon button, or even as a floating action button. | ||
* | ||
* The default theme will be a clear text button unless the `floating` prop has | ||
* been provided where it will render as an icon button by default instead. | ||
*/ | ||
var Button = react_1.forwardRef(function Button(_a, ref) { | ||
@@ -54,0 +63,0 @@ var _b = _a.type, type = _b === void 0 ? "button" : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.floating, floating = _d === void 0 ? null : _d, floatingProps = _a.floatingProps, _e = _a.theme, theme = _e === void 0 ? floating ? "secondary" : "clear" : _e, _f = _a.themeType, themeType = _f === void 0 ? floating ? "contained" : "flat" : _f, _g = _a.buttonType, buttonType = _g === void 0 ? floating ? "icon" : "text" : _g, propClassName = _a.className, children = _a.children, disableRipple = _a.disableRipple, disableProgrammaticRipple = _a.disableProgrammaticRipple, rippleTimeout = _a.rippleTimeout, rippleClassNames = _a.rippleClassNames, rippleClassName = _a.rippleClassName, rippleContainerClassName = _a.rippleContainerClassName, propEnablePressedAndRipple = _a.enablePressedAndRipple, props = __rest(_a, ["type", "disabled", "floating", "floatingProps", "theme", "themeType", "buttonType", "className", "children", "disableRipple", "disableProgrammaticRipple", "rippleTimeout", "rippleClassNames", "rippleClassName", "rippleContainerClassName", "enablePressedAndRipple"]); |
{ | ||
"name": "@react-md/button", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "This package is used to create buttons with the material design spec. There is built-in support to be able to render accessible clickable divs that look like buttons, or even apply button styles to any element.", | ||
@@ -66,3 +66,3 @@ "scripts": { | ||
}, | ||
"gitHead": "b37e2fd0ec3413111e81e994f54cef68a113103f" | ||
"gitHead": "0a4024848493b6ef1ed37c591ac68781360b8f45" | ||
} |
@@ -37,3 +37,12 @@ import React, { ButtonHTMLAttributes, ReactNode } from "react"; | ||
} | ||
/** | ||
* The `Button` component is a simple wrapper for the `<button>` element that | ||
* defaults the `type` attribute to `"button"` so that it does not automatically | ||
* submit forms by default. It also supports multiple themes, rendering as an | ||
* icon button, or even as a floating action button. | ||
* | ||
* The default theme will be a clear text button unless the `floating` prop has | ||
* been provided where it will render as an icon button by default instead. | ||
*/ | ||
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; | ||
export default Button; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
241561
1657