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

@s-ui/react-atom-action-button

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/react-atom-action-button - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

9

CHANGELOG.md

@@ -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 @@

47

lib/index.js

@@ -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",

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