@10play/phoenix-button
Advanced tools
Comparing version 2.0.19 to 2.0.20
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.0.20](https://github.com/davixyz/phoenix/compare/v2.0.19...v2.0.20) (2021-04-18) | ||
**Note:** Version bump only for package @10play/phoenix-button | ||
## [2.0.19](https://github.com/davixyz/phoenix/compare/v2.0.18...v2.0.19) (2021-04-18) | ||
@@ -8,0 +16,0 @@ |
@@ -196,6 +196,8 @@ 'use strict'; | ||
isBusy = _ref.isBusy, | ||
className = _ref.className; | ||
return /*#__PURE__*/React__default['default'].createElement("button", { | ||
className = _ref.className, | ||
props = _objectWithoutProperties(_ref, ["children", "isBusy", "className"]); | ||
return /*#__PURE__*/React__default['default'].createElement("button", _extends({}, props, { | ||
className: className | ||
}, /*#__PURE__*/React__default['default'].createElement("div", { | ||
}), /*#__PURE__*/React__default['default'].createElement("div", { | ||
className: "button-content" | ||
@@ -202,0 +204,0 @@ }, isBusy ? /*#__PURE__*/React__default['default'].createElement(Spinner, null) : children)); |
@@ -187,6 +187,8 @@ import React from 'react'; | ||
isBusy = _ref.isBusy, | ||
className = _ref.className; | ||
return /*#__PURE__*/React.createElement("button", { | ||
className = _ref.className, | ||
props = _objectWithoutProperties(_ref, ["children", "isBusy", "className"]); | ||
return /*#__PURE__*/React.createElement("button", _extends({}, props, { | ||
className: className | ||
}, /*#__PURE__*/React.createElement("div", { | ||
}), /*#__PURE__*/React.createElement("div", { | ||
className: "button-content" | ||
@@ -193,0 +195,0 @@ }, isBusy ? /*#__PURE__*/React.createElement(Spinner, null) : children)); |
import React from 'react'; | ||
import styled from 'styled-components'; | ||
const ButtonContainer = ({ children, isBusy, className }) => ( | ||
<button className={className}> | ||
const ButtonContainer = ({ children, isBusy, className, ...props }) => ( | ||
<button {...props} className={className}> | ||
<div className="button-content"> | ||
@@ -7,0 +7,0 @@ {isBusy ? <Spinner /> : children} |
{ | ||
"name": "@10play/phoenix-button", | ||
"version": "2.0.19", | ||
"version": "2.0.20", | ||
"description": "> TODO: description", | ||
@@ -43,3 +43,3 @@ "author": "ZBejavu <67857471+ZBejavu@users.noreply.github.com>", | ||
}, | ||
"gitHead": "34578115545df7da0f36d5a7d79d82389ddd2007" | ||
"gitHead": "7bbe987934a7d9e11c9f42d9ca045f500af5272b" | ||
} |
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
20679
465