@react-email/button
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -78,6 +78,5 @@ "use strict"; | ||
var buttonStyle = (style) => { | ||
const paddingY = (style == null ? void 0 : style.pY) || 0; | ||
const paddingX = (style == null ? void 0 : style.pX) || 0; | ||
const { pY, pX, ...rest } = style || {}; | ||
return { | ||
...style, | ||
...rest, | ||
lineHeight: "100%", | ||
@@ -87,3 +86,3 @@ textDecoration: "none", | ||
maxWidth: "100%", | ||
padding: `${paddingY}px ${paddingX}px` | ||
padding: `${pY}px ${pX}px` | ||
}; | ||
@@ -90,0 +89,0 @@ }; |
{ | ||
"name": "@react-email/button", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A link that is styled to look like a button", | ||
@@ -40,2 +40,4 @@ "sideEffects": false, | ||
"@babel/preset-react": "7.18.6", | ||
"@react-email/render": "0.0.6", | ||
"@types/jest": "29.5.0", | ||
"@types/react": "18.0.20", | ||
@@ -42,0 +44,0 @@ "@types/react-dom": "18.0.6", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
11117
12
171