Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-md/button

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-md/button - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

9

CHANGELOG.md

@@ -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"]);

4

package.json
{
"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

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