@react-email/row 0.0.1 → 0.0.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.
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+
3
+ declare type RootProps = React.ComponentPropsWithoutRef<'table'>;
4
+ interface SectionProps extends RootProps {
5
+ }
6
+ declare const Row: React.ForwardRefExoticComponent<Readonly<SectionProps> & React.RefAttributes<HTMLTableElement>>;
7
+
8
+ export { Row, SectionProps };
package/dist/index.js ADDED
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/index.ts
27
+ var src_exports = {};
28
+ __export(src_exports, {
29
+ Row: () => Row
30
+ });
31
+ module.exports = __toCommonJS(src_exports);
32
+
33
+ // src/row.tsx
34
+ var React = __toESM(require("react"));
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var Row = React.forwardRef(
37
+ ({ children, style, ...props }, forwardedRef) => {
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
39
+ "table",
40
+ {
41
+ ...props,
42
+ ref: forwardedRef,
43
+ style,
44
+ align: "center",
45
+ role: "presentation",
46
+ cellSpacing: "0",
47
+ cellPadding: "0",
48
+ border: 0,
49
+ width: "100%",
50
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { style: { width: "100%" }, children }) })
51
+ }
52
+ );
53
+ }
54
+ );
55
+ Row.displayName = "Row";
56
+ // Annotate the CommonJS export names for ESM import in node:
57
+ 0 && (module.exports = {
58
+ Row
59
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,26 @@
1
+ // src/row.tsx
2
+ import * as React from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var Row = React.forwardRef(
5
+ ({ children, style, ...props }, forwardedRef) => {
6
+ return /* @__PURE__ */ jsx(
7
+ "table",
8
+ {
9
+ ...props,
10
+ ref: forwardedRef,
11
+ style,
12
+ align: "center",
13
+ role: "presentation",
14
+ cellSpacing: "0",
15
+ cellPadding: "0",
16
+ border: 0,
17
+ width: "100%",
18
+ children: /* @__PURE__ */ jsx("tbody", { style: { width: "100%" }, children: /* @__PURE__ */ jsx("tr", { style: { width: "100%" }, children }) })
19
+ }
20
+ );
21
+ }
22
+ );
23
+ Row.displayName = "Row";
24
+ export {
25
+ Row
26
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/row",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A React row component",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",