@s-ui/react-atom-action-button
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -5,2 +5,11 @@ # Change Log | ||
# 1.2.0 (2020-05-21) | ||
### Features | ||
* pass extra props down to button ([e41f84a](https://github.com/SUI-Components/sui-components/commit/e41f84a30eee42153cd50b9d1b5023bdf040c52f)) | ||
# 1.1.0 (2020-05-20) | ||
@@ -7,0 +16,0 @@ |
@@ -0,1 +1,2 @@ | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | ||
import _extends from "@babel/runtime/helpers/esm/extends"; | ||
@@ -65,23 +66,26 @@ import React from 'react'; | ||
var AtomActionButton = function AtomActionButton(_ref) { | ||
var children = _ref.children, | ||
className = _ref.className, | ||
_ref$color = _ref.color, | ||
color = _ref$color === void 0 ? COLORS.PRIMARY : _ref$color, | ||
disabled = _ref.disabled, | ||
focused = _ref.focused, | ||
href = _ref.href, | ||
icon = _ref.icon, | ||
isButton = _ref.isButton, | ||
isSubmit = _ref.isSubmit, | ||
link = _ref.link, | ||
linkFactory = _ref.linkFactory, | ||
_ref$size = _ref.size, | ||
size = _ref$size === void 0 ? SIZES.MEDIUM : _ref$size, | ||
_ref$style = _ref.style, | ||
style = _ref$style === void 0 ? STYLES.FILLED_NEGATIVE : _ref$style, | ||
target = _ref.target, | ||
title = _ref.title; | ||
var AtomActionButton = function AtomActionButton(props) { | ||
var children = props.children, | ||
className = props.className, | ||
_props$color = props.color, | ||
color = _props$color === void 0 ? COLORS.PRIMARY : _props$color, | ||
disabled = props.disabled, | ||
focused = props.focused, | ||
href = props.href, | ||
icon = props.icon, | ||
isButton = props.isButton, | ||
isSubmit = props.isSubmit, | ||
link = props.link, | ||
linkFactory = props.linkFactory, | ||
_props$size = props.size, | ||
size = _props$size === void 0 ? SIZES.MEDIUM : _props$size, | ||
_props$style = props.style, | ||
style = _props$style === void 0 ? STYLES.FILLED_NEGATIVE : _props$style, | ||
target = props.target, | ||
title = props.title, | ||
restProps = _objectWithoutPropertiesLoose(props, ["children", "className", "color", "disabled", "focused", "href", "icon", "isButton", "isSubmit", "link", "linkFactory", "size", "style", "target", "title"]); | ||
var classNames = cx(BASE_CLASS, COLOR_CLASSES[color], CLASSES[style], CLASSES[size], focused && CLASSES[MODIFIERS.ACTIVE_FOCUSED], disabled && CLASSES[MODIFIERS.DISABLED], link && CLASSES[MODIFIERS.LINK], className); | ||
var buttonProps = { | ||
var buttonProps = _extends({ | ||
href: href, | ||
@@ -94,3 +98,4 @@ isButton: isButton, | ||
title: title | ||
}; | ||
}, restProps); | ||
return /*#__PURE__*/React.createElement(ActionButton, Object.assign({}, buttonProps, { | ||
@@ -97,0 +102,0 @@ className: classNames |
{ | ||
"name": "@s-ui/react-atom-action-button", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
21011
132