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

@sk-web-gui/button

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sk-web-gui/button - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

7

dist/cjs/button.js

@@ -14,3 +14,3 @@ "use strict";

var _excluded = ["disabled", "loading", "active", "loadingText", "type", "leftIcon", "rightIcon", "children", "className", "color", "variant", "size"];
var _excluded = ["disabled", "loading", "active", "loadingText", "type", "leftIcon", "rightIcon", "children", "className", "color", "variant", "size", "rounded"];

@@ -40,2 +40,4 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

size = _props$size === void 0 ? "md" : _props$size,
_props$rounded = props.rounded,
rounded = _props$rounded === void 0 ? false : _props$rounded,
rest = _objectWithoutPropertiesLoose(props, _excluded);

@@ -52,4 +54,5 @@

disabled: disabled,
"aria-disabled": disabled,
"aria-disabled": disabled ? disabled : undefined,
type: type,
"data-rounded": rounded ? rounded : undefined,
"data-active": active ? "true" : undefined,

@@ -56,0 +59,0 @@ "data-color": color ? color : undefined,

@@ -1,2 +0,2 @@

var _excluded = ["disabled", "loading", "active", "loadingText", "type", "leftIcon", "rightIcon", "children", "className", "color", "variant", "size"];
var _excluded = ["disabled", "loading", "active", "loadingText", "type", "leftIcon", "rightIcon", "children", "className", "color", "variant", "size", "rounded"];

@@ -24,3 +24,4 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

variant = "outline",
size = "md"
size = "md",
rounded = false
} = props,

@@ -38,4 +39,5 @@ rest = _objectWithoutPropertiesLoose(props, _excluded);

disabled: disabled,
"aria-disabled": disabled,
"aria-disabled": disabled ? disabled : undefined,
type: type,
"data-rounded": rounded ? rounded : undefined,
"data-active": active ? "true" : undefined,

@@ -42,0 +44,0 @@ "data-color": color ? color : undefined,

@@ -16,2 +16,3 @@ import { DefaultProps } from "@sk-web-gui/theme";

children?: React.ReactNode;
rounded?: boolean;
}

@@ -18,0 +19,0 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement>, IButtonProps {

{
"name": "@sk-web-gui/button",
"version": "0.1.4",
"version": "0.1.5",
"sideEffects": false,

@@ -47,3 +47,3 @@ "license": "MIT",

},
"gitHead": "98dc00be73bb80955d4b41dd19c98b8ee44fceb7"
"gitHead": "78eba5727e9a003897cfdb297a3ae1dabac3272b"
}

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