@pagenflow/email 1.1.6 → 1.1.8

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.cjs.js CHANGED
@@ -17334,7 +17334,6 @@ function Button({ config, devMode }) {
17334
17334
  color = "#ffffff", padding = "12px 24px", borderRadius = "3px", width, justifyContent = "center", } = config;
17335
17335
  // 1. Link (A) Tag Styles (Fallback for Webmail/Mobile)
17336
17336
  const linkStyle = {
17337
- color: color,
17338
17337
  textDecoration: "none",
17339
17338
  display: "block",
17340
17339
  // Apply padding here for simplicity, though the TD is more reliable
@@ -17367,7 +17366,7 @@ function Button({ config, devMode }) {
17367
17366
  <!--[if mso]>
17368
17367
  <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="${href}" style="height:${vmlHeight}px;v-text-anchor:middle;width:${vmlWidth}px;" arcsize="${(parseInt(borderRadius) / vmlHeight) * 100}%" strokecolor="${vmlFillColor}" fillcolor="${vmlFillColor}">
17369
17368
  <w:anchorlock/>
17370
- <center style="color:${color};font-family:Arial,sans-serif;font-size:16px;font-weight:bold;">
17369
+ <center style="color:${color};font-family:${linkStyle.fontFamily};font-size:${linkStyle.fontSize};font-weight:${linkStyle.fontWeight};">
17371
17370
  ${typeof children === "string" ? children : ""}
17372
17371
  </center>
17373
17372
  </v:roundrect>
@@ -17386,16 +17385,24 @@ function Button({ config, devMode }) {
17386
17385
  border: "0 solid",
17387
17386
  margin: 0,
17388
17387
  padding: 0,
17389
- }, children: jsxRuntime.jsx("tbody", { children: jsxRuntime.jsx("tr", { children: jsxRuntime.jsxs("td", { children: [jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: vmlButton } }), jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: `<!--[if !mso]><!-->` } }), jsxRuntime.jsx("table", { role: "presentation", cellPadding: 0, cellSpacing: 0, border: 0, style: {
17390
- borderCollapse: "collapse",
17391
- width: "100%",
17392
- }, children: jsxRuntime.jsx("tbody", { children: jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { style: buttonTdStyle, children: React.createElement(devMode ? "button" : "a", Object.assign(Object.assign({}, (devMode
17393
- ? {}
17394
- : {
17395
- href,
17396
- target: "_blank",
17397
- rel: "noopener noreferrer",
17398
- })), { style: linkStyle, draggable: false }), children) }) }) }) }), jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: `<!--<![endif]-->` } })] }) }) }) }));
17388
+ }, children: jsxRuntime.jsx("tbody", { children: jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { dangerouslySetInnerHTML: {
17389
+ __html: `
17390
+ ${vmlButton}
17391
+ <!--[if !mso]><!-->
17392
+ <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse; width: 100%;">
17393
+ <tbody>
17394
+ <tr>
17395
+ <td style="background-color: ${buttonTdStyle.backgroundColor}; border-radius: ${buttonTdStyle.borderRadius}; padding: ${buttonTdStyle.padding}; width: ${buttonTdStyle.width};">
17396
+ <a href="${href}" target="_blank" rel="noopener noreferrer" style="color: ${color}; text-decoration: ${linkStyle.textDecoration}; display: ${linkStyle.display}; padding: ${linkStyle.padding}; word-break: ${linkStyle.wordBreak}; font-family: ${linkStyle.fontFamily}; font-size: ${linkStyle.fontSize}; font-weight: ${linkStyle.fontWeight}; line-height: ${linkStyle.lineHeight};">
17397
+ ${typeof children === "string" ? children : ""}
17398
+ </a>
17399
+ </td>
17400
+ </tr>
17401
+ </tbody>
17402
+ </table>
17403
+ <!--<![endif]-->
17404
+ `,
17405
+ } }) }) }) }));
17399
17406
  }
17400
17407
  var Button_default = React.memo(Button, arePropsEqual);
17401
17408