@pagenflow/email 1.3.1 → 1.3.2
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/components/Row.d.ts +7 -0
- package/dist/index.cjs.js +6 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2182,10 +2182,15 @@ function getBorderStyle$1(border) {
|
|
|
2182
2182
|
return style;
|
|
2183
2183
|
}
|
|
2184
2184
|
function Row({ children, config, devNode }) {
|
|
2185
|
+
var _a, _b, _c;
|
|
2185
2186
|
const childrenArray = (Array.isArray(children) ? children : [children]).filter((child) => child != null);
|
|
2186
2187
|
const numChildren = childrenArray.length;
|
|
2187
2188
|
// 1. Outer TD for Background and Border Radius (no border here)
|
|
2188
|
-
const backgroundTdStyle = Object.assign({ backgroundColor: config.backgroundColor, borderRadius: config.borderRadius, width: config.width || "100%", height: config.height
|
|
2189
|
+
const backgroundTdStyle = Object.assign({ backgroundColor: config.backgroundColor, borderRadius: config.borderRadius, width: config.width || "100%", height: config.height,
|
|
2190
|
+
// Background Image styles
|
|
2191
|
+
backgroundImage: config.backgroundImage
|
|
2192
|
+
? `url(${config.backgroundImage.src})`
|
|
2193
|
+
: undefined, backgroundRepeat: (_a = config.backgroundImage) === null || _a === void 0 ? void 0 : _a.repeat, backgroundSize: (_b = config.backgroundImage) === null || _b === void 0 ? void 0 : _b.size, backgroundPosition: (_c = config.backgroundImage) === null || _c === void 0 ? void 0 : _c.position }, (config.borderRadius && { overflow: "hidden" }));
|
|
2189
2194
|
// 2. Inner Table for Border and Border Radius
|
|
2190
2195
|
const borderTableStyle = Object.assign({ width: "100%", height: "100%", borderCollapse: "separate", borderSpacing: 0, borderRadius: config.borderRadius }, getBorderStyle$1(config.border));
|
|
2191
2196
|
// 3. TD for Padding
|