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

@superlogica/button

Package Overview
Dependencies
Maintainers
5
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superlogica/button - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

18

Button.js

@@ -7,5 +7,15 @@ import styled from 'styled-components';

import ButtonGradient from "./props/gradient";
import PropTypes from 'prop-types';
const checkType = (type) => {
const regex = /^(outline|solid|ghost)$/;
if(regex.test(type)){
return type;
}
return 'solid';
}
const Button = styled.button.attrs(props => ({
disabled: props.disable,
type: checkType(props.type)
}))`

@@ -43,2 +53,10 @@ position:relative;

Button.propTypes = {
size: PropTypes.string,
type: PropTypes.string,
fullWidth: PropTypes.bool,
shadow: PropTypes.bool,
gradient: PropTypes.string
}
export default Button;

11

package.json
{
"name": "@superlogica/button",
"version": "0.0.6",
"description": "Button - DS Superlogica",
"version": "0.0.7",
"description": "Button - DSweb Superlogica",
"main": "Button.js",

@@ -10,6 +10,7 @@ "scripts": {

"dependencies": {
"@superlogica/superlogica-core": "^1.0.1"
"@superlogica/superlogica-core": "^1.0.1",
"prop-types": "^15.7.2"
},
"author": "Superlogica",
"license": "ISC"
"author": "TOpe - Superlogica",
"license": "MIT"
}

@@ -8,3 +8,3 @@ import Size from "../resources/size";

size = 'medium';
}
}

@@ -11,0 +11,0 @@ return `

@@ -23,2 +23,5 @@ import Colors from "@superlogica/superlogica-core/resources/color";

}
& svg {
fill: ${color}
}
`;

@@ -36,2 +39,8 @@ }

}
& svg {
fill: ${color}
}
&:hover svg {
fill: ${fontColor(color)}
}
`;

@@ -51,2 +60,5 @@ }

}
& svg {
fill: ${fontColor(color)}
}
`;

@@ -63,2 +75,5 @@ }

color: ${Colors.neutral900} !important;
& svg {
fill: ${Colors.neutral900} !important;
}
}

@@ -65,0 +80,0 @@ `;

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