@react-email/button 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var pxToPt = (px) => isNaN(Number(px)) ? null : parseInt(px, 10) * 3 / 4;
|
|
|
39
39
|
// src/button.tsx
|
|
40
40
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
41
41
|
var Button = React.forwardRef(
|
|
42
|
-
({ children, style, pX, pY, target = "_blank", ...props }, forwardedRef) => {
|
|
42
|
+
({ children, style, pX = 0, pY = 0, target = "_blank", ...props }, forwardedRef) => {
|
|
43
43
|
const y = (pY || 0) * 2;
|
|
44
44
|
const textRaise = pxToPt(y.toString());
|
|
45
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var pxToPt = (px) => isNaN(Number(px)) ? null : parseInt(px, 10) * 3 / 4;
|
|
|
7
7
|
// src/button.tsx
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var Button = React.forwardRef(
|
|
10
|
-
({ children, style, pX, pY, target = "_blank", ...props }, forwardedRef) => {
|
|
10
|
+
({ children, style, pX = 0, pY = 0, target = "_blank", ...props }, forwardedRef) => {
|
|
11
11
|
const y = (pY || 0) * 2;
|
|
12
12
|
const textRaise = pxToPt(y.toString());
|
|
13
13
|
return /* @__PURE__ */ jsxs(
|