@superlogica/button
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -10,3 +10,3 @@ import styled from 'styled-components'; | ||
const checkType = (type) => { | ||
const regex = /^(outline|solid|ghost)$/; | ||
const regex = /^(outline|solid|text)$/; | ||
if(regex.test(type)){ | ||
@@ -20,2 +20,3 @@ return type; | ||
disabled: props.disable, | ||
style: null, | ||
type: checkType(props.type) | ||
@@ -22,0 +23,0 @@ }))` |
{ | ||
"name": "@superlogica/button", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Button - DSweb Superlogica", | ||
@@ -5,0 +5,0 @@ "main": "Button.js", |
@@ -15,4 +15,4 @@ import Colors from "@superlogica/superlogica-core/resources/color"; | ||
//retorna css para button type ghost | ||
if (type === 'ghost') { | ||
//retorna css para button type text | ||
if (type === 'text') { | ||
return `background:transparent; | ||
@@ -19,0 +19,0 @@ border:1px solid transparent; |
@@ -15,3 +15,3 @@ export default { | ||
medium: { | ||
padding: "12px 14px", | ||
padding: "16px 20px", | ||
fontFamily: "proxima-nova", | ||
@@ -22,3 +22,3 @@ fontSize: "1rem", | ||
fontStretch: "normal", | ||
lineHeight: "22px", | ||
lineHeight: "16px", | ||
letterSpacing: "normal", | ||
@@ -25,0 +25,0 @@ textAlign: "center", |
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
11728
305