@react-email/row 0.0.10-canary.0 → 0.0.10

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.d.mts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
 
3
- type RootProps = React.ComponentPropsWithoutRef<"table">;
4
- interface RowProps extends RootProps {
3
+ type RowProps = Readonly<React.ComponentPropsWithoutRef<"table"> & {
5
4
  children: React.ReactNode;
6
- }
7
- declare const Row: React.ForwardRefExoticComponent<Readonly<RowProps> & React.RefAttributes<HTMLTableElement>>;
5
+ }>;
6
+ declare const Row: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
7
+ children: React.ReactNode;
8
+ }> & React.RefAttributes<HTMLTableElement>>;
8
9
 
9
10
  export { Row, RowProps };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
 
3
- type RootProps = React.ComponentPropsWithoutRef<"table">;
4
- interface RowProps extends RootProps {
3
+ type RowProps = Readonly<React.ComponentPropsWithoutRef<"table"> & {
5
4
  children: React.ReactNode;
6
- }
7
- declare const Row: React.ForwardRefExoticComponent<Readonly<RowProps> & React.RefAttributes<HTMLTableElement>>;
5
+ }>;
6
+ declare const Row: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
7
+ children: React.ReactNode;
8
+ }> & React.RefAttributes<HTMLTableElement>>;
8
9
 
9
10
  export { Row, RowProps };
package/dist/index.js CHANGED
@@ -66,24 +66,26 @@ module.exports = __toCommonJS(src_exports);
66
66
  // src/row.tsx
67
67
  var React = __toESM(require("react"));
68
68
  var import_jsx_runtime = require("react/jsx-runtime");
69
- var Row = React.forwardRef((_a, ref) => {
70
- var _b = _a, { children, style } = _b, props = __objRest(_b, ["children", "style"]);
71
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
- "table",
73
- __spreadProps(__spreadValues({
74
- align: "center",
75
- width: "100%"
76
- }, props), {
77
- border: 0,
78
- cellPadding: "0",
79
- cellSpacing: "0",
80
- ref,
81
- role: "presentation",
82
- style,
83
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { style: { width: "100%" }, children }) })
84
- })
85
- );
86
- });
69
+ var Row = React.forwardRef(
70
+ (_a, ref) => {
71
+ var _b = _a, { children, style } = _b, props = __objRest(_b, ["children", "style"]);
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
+ "table",
74
+ __spreadProps(__spreadValues({
75
+ align: "center",
76
+ width: "100%"
77
+ }, props), {
78
+ border: 0,
79
+ cellPadding: "0",
80
+ cellSpacing: "0",
81
+ ref,
82
+ role: "presentation",
83
+ style,
84
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { style: { width: "100%" }, children }) })
85
+ })
86
+ );
87
+ }
88
+ );
87
89
  Row.displayName = "Row";
88
90
  // Annotate the CommonJS export names for ESM import in node:
89
91
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -33,24 +33,26 @@ var __objRest = (source, exclude) => {
33
33
  // src/row.tsx
34
34
  import * as React from "react";
35
35
  import { jsx } from "react/jsx-runtime";
36
- var Row = React.forwardRef((_a, ref) => {
37
- var _b = _a, { children, style } = _b, props = __objRest(_b, ["children", "style"]);
38
- return /* @__PURE__ */ jsx(
39
- "table",
40
- __spreadProps(__spreadValues({
41
- align: "center",
42
- width: "100%"
43
- }, props), {
44
- border: 0,
45
- cellPadding: "0",
46
- cellSpacing: "0",
47
- ref,
48
- role: "presentation",
49
- style,
50
- children: /* @__PURE__ */ jsx("tbody", { style: { width: "100%" }, children: /* @__PURE__ */ jsx("tr", { style: { width: "100%" }, children }) })
51
- })
52
- );
53
- });
36
+ var Row = React.forwardRef(
37
+ (_a, ref) => {
38
+ var _b = _a, { children, style } = _b, props = __objRest(_b, ["children", "style"]);
39
+ return /* @__PURE__ */ jsx(
40
+ "table",
41
+ __spreadProps(__spreadValues({
42
+ align: "center",
43
+ width: "100%"
44
+ }, props), {
45
+ border: 0,
46
+ cellPadding: "0",
47
+ cellSpacing: "0",
48
+ ref,
49
+ role: "presentation",
50
+ style,
51
+ children: /* @__PURE__ */ jsx("tbody", { style: { width: "100%" }, children: /* @__PURE__ */ jsx("tr", { style: { width: "100%" }, children }) })
52
+ })
53
+ );
54
+ }
55
+ );
54
56
  Row.displayName = "Row";
55
57
  export {
56
58
  Row
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/row",
3
- "version": "0.0.10-canary.0",
3
+ "version": "0.0.10",
4
4
  "description": "A React row component",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -38,11 +38,10 @@
38
38
  "react": "^18.0 || ^19.0 || ^19.0.0-rc"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/preset-react": "7.23.3",
42
41
  "typescript": "5.1.6",
43
42
  "eslint-config-custom": "0.0.0",
44
- "@react-email/render": "0.0.18-canary.0",
45
- "tsconfig": "0.0.0"
43
+ "tsconfig": "0.0.0",
44
+ "@react-email/render": "1.0.0"
46
45
  },
47
46
  "publishConfig": {
48
47
  "access": "public"