@react-email/row 0.0.12-canary.1 → 0.0.13

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,10 +1,12 @@
1
- import * as React from 'react';
1
+ import * as React from "react";
2
2
 
3
- type RowProps = Readonly<React.ComponentPropsWithoutRef<"table"> & {
4
- children: React.ReactNode;
3
+ //#region src/row.d.ts
4
+ type RowProps = Readonly<React.ComponentPropsWithoutRef<'table'> & {
5
+ children: React.ReactNode;
5
6
  }>;
6
7
  declare const Row: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
7
- children: React.ReactNode;
8
+ children: React.ReactNode;
8
9
  }> & React.RefAttributes<HTMLTableElement>>;
9
-
10
- export { Row, type RowProps };
10
+ //#endregion
11
+ export { Row, RowProps };
12
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/row.tsx"],"sourcesContent":[],"mappings":";;;KAEY,QAAA,GAAW,SACrB,KAAA,CAAM;YACM,KAAA,CAAM;AAFpB,CAAA,CAAA;AACQ,cAKK,GALL,EAKQ,KAAA,CAAA,yBALR,CAKQ,QALR,CAKQ,IALR,CAKQ,KAAA,CAAA,iBALR,CAKQ,KAAA,CAAA,mBALR,CAKQ,gBALR,CAAA,EAKQ,gBALR,CAAA,EAAA,KAAA,CAAA,GAAA;EACM,QAAM,EAAN,KAAA,CAAM,SAAA;CAFG,CAAA,sBAAA,iBAAA,CAAA,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- import * as React from 'react';
1
+ import * as React from "react";
2
2
 
3
- type RowProps = Readonly<React.ComponentPropsWithoutRef<"table"> & {
4
- children: React.ReactNode;
3
+ //#region src/row.d.ts
4
+ type RowProps = Readonly<React.ComponentPropsWithoutRef<'table'> & {
5
+ children: React.ReactNode;
5
6
  }>;
6
7
  declare const Row: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
7
- children: React.ReactNode;
8
+ children: React.ReactNode;
8
9
  }> & React.RefAttributes<HTMLTableElement>>;
9
-
10
- export { Row, type RowProps };
10
+ //#endregion
11
+ export { Row, RowProps };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/row.tsx"],"sourcesContent":[],"mappings":";;;KAEY,QAAA,GAAW,SACrB,KAAA,CAAM;YACM,KAAA,CAAM;AAFpB,CAAA,CAAA;AACQ,cAKK,GALL,EAKQ,KAAA,CAAA,yBALR,CAKQ,QALR,CAKQ,IALR,CAKQ,KAAA,CAAA,iBALR,CAKQ,KAAA,CAAA,mBALR,CAKQ,gBALR,CAAA,EAKQ,gBALR,CAAA,EAAA,KAAA,CAAA,GAAA;EACM,QAAM,EAAN,KAAA,CAAM,SAAA;CAFG,CAAA,sBAAA,iBAAA,CAAA,CAAA"}
package/dist/index.js CHANGED
@@ -1,93 +1,53 @@
1
- "use strict";
1
+ //#region rolldown:runtime
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
6
  var __getProtoOf = Object.getPrototypeOf;
10
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
- var __objRest = (source, exclude) => {
26
- var target = {};
27
- for (var prop in source)
28
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
- target[prop] = source[prop];
30
- if (source != null && __getOwnPropSymbols)
31
- for (var prop of __getOwnPropSymbols(source)) {
32
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
- target[prop] = source[prop];
34
- }
35
- return target;
36
- };
37
- var __export = (target, all) => {
38
- for (var name in all)
39
- __defProp(target, name, { get: all[name], enumerable: true });
40
- };
41
8
  var __copyProps = (to, from, except, desc) => {
42
- if (from && typeof from === "object" || typeof from === "function") {
43
- for (let key of __getOwnPropNames(from))
44
- if (!__hasOwnProp.call(to, key) && key !== except)
45
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
- }
47
- return to;
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
48
17
  };
49
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
- // If the importer is in node compatibility mode or this is not an ESM
51
- // file that has been converted to a CommonJS file using a Babel-
52
- // compatible transform (i.e. "__esModule" has not been set), then set
53
- // "default" to the CommonJS "module.exports" for node compatibility.
54
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
- mod
56
- ));
57
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
58
22
 
59
- // src/index.ts
60
- var src_exports = {};
61
- __export(src_exports, {
62
- Row: () => Row
63
- });
64
- module.exports = __toCommonJS(src_exports);
23
+ //#endregion
24
+ let react = require("react");
25
+ react = __toESM(react);
26
+ let react_jsx_runtime = require("react/jsx-runtime");
27
+ react_jsx_runtime = __toESM(react_jsx_runtime);
65
28
 
66
- // src/row.tsx
67
- var React = __toESM(require("react"));
68
- var import_jsx_runtime = require("react/jsx-runtime");
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
- border: 0,
78
- cellPadding: "0",
79
- cellSpacing: "0",
80
- role: "presentation"
81
- }, props), {
82
- ref,
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
- );
89
- Row.displayName = "Row";
90
- // Annotate the CommonJS export names for ESM import in node:
91
- 0 && (module.exports = {
92
- Row
29
+ //#region src/row.tsx
30
+ const Row = react.forwardRef(({ children, style,...props }, ref) => {
31
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
32
+ align: "center",
33
+ width: "100%",
34
+ border: 0,
35
+ cellPadding: "0",
36
+ cellSpacing: "0",
37
+ role: "presentation",
38
+ ...props,
39
+ ref,
40
+ style,
41
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
42
+ style: { width: "100%" },
43
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
44
+ style: { width: "100%" },
45
+ children
46
+ })
47
+ })
48
+ });
93
49
  });
50
+ Row.displayName = "Row";
51
+
52
+ //#endregion
53
+ exports.Row = Row;
package/dist/index.mjs CHANGED
@@ -1,59 +1,29 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __objRest = (source, exclude) => {
21
- var target = {};
22
- for (var prop in source)
23
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
- target[prop] = source[prop];
25
- if (source != null && __getOwnPropSymbols)
26
- for (var prop of __getOwnPropSymbols(source)) {
27
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
- target[prop] = source[prop];
29
- }
30
- return target;
31
- };
32
-
33
- // src/row.tsx
34
1
  import * as React from "react";
35
2
  import { jsx } from "react/jsx-runtime";
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
- border: 0,
45
- cellPadding: "0",
46
- cellSpacing: "0",
47
- role: "presentation"
48
- }, props), {
49
- ref,
50
- style,
51
- children: /* @__PURE__ */ jsx("tbody", { style: { width: "100%" }, children: /* @__PURE__ */ jsx("tr", { style: { width: "100%" }, children }) })
52
- })
53
- );
54
- }
55
- );
3
+
4
+ //#region src/row.tsx
5
+ const Row = React.forwardRef(({ children, style,...props }, ref) => {
6
+ return /* @__PURE__ */ jsx("table", {
7
+ align: "center",
8
+ width: "100%",
9
+ border: 0,
10
+ cellPadding: "0",
11
+ cellSpacing: "0",
12
+ role: "presentation",
13
+ ...props,
14
+ ref,
15
+ style,
16
+ children: /* @__PURE__ */ jsx("tbody", {
17
+ style: { width: "100%" },
18
+ children: /* @__PURE__ */ jsx("tr", {
19
+ style: { width: "100%" },
20
+ children
21
+ })
22
+ })
23
+ });
24
+ });
56
25
  Row.displayName = "Row";
57
- export {
58
- Row
59
- };
26
+
27
+ //#endregion
28
+ export { Row };
29
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/row.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport type RowProps = Readonly<\n React.ComponentPropsWithoutRef<'table'> & {\n children: React.ReactNode;\n }\n>;\n\nexport const Row = React.forwardRef<HTMLTableElement, RowProps>(\n ({ children, style, ...props }, ref) => {\n return (\n <table\n align=\"center\"\n width=\"100%\"\n border={0}\n cellPadding=\"0\"\n cellSpacing=\"0\"\n role=\"presentation\"\n {...props}\n ref={ref}\n style={style}\n >\n <tbody style={{ width: '100%' }}>\n <tr style={{ width: '100%' }}>{children}</tr>\n </tbody>\n </table>\n );\n },\n);\n\nRow.displayName = 'Row';\n"],"mappings":";;;;AAQA,MAAa,MAAM,MAAM,YACtB,EAAE,UAAU,MAAO,GAAG,SAAS,QAAQ;AACtC,QACE,oBAAC;EACC,OAAM;EACN,OAAM;EACN,QAAQ;EACR,aAAY;EACZ,aAAY;EACZ,MAAK;EACL,GAAI;EACC;EACE;YAEP,oBAAC;GAAM,OAAO,EAAE,OAAO,QAAQ;aAC7B,oBAAC;IAAG,OAAO,EAAE,OAAO,QAAQ;IAAG;KAAc;IACvC;GACF;EAGb;AAED,IAAI,cAAc"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/row",
3
- "version": "0.0.12-canary.1",
3
+ "version": "0.0.13",
4
4
  "description": "A React row component",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -32,26 +32,24 @@
32
32
  "email"
33
33
  ],
34
34
  "engines": {
35
- "node": ">=18.0.0"
35
+ "node": ">=20.0.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": "^18.0 || ^19.0 || ^19.0.0-rc"
39
39
  },
40
40
  "devDependencies": {
41
- "typescript": "5.1.6",
42
- "eslint-config-custom": "0.0.0",
43
- "tsconfig": "0.0.0",
44
- "@react-email/render": "1.0.3-canary.3"
41
+ "typescript": "5.8.3",
42
+ "@react-email/render": "2.0.1",
43
+ "tsconfig": "0.0.0"
45
44
  },
46
45
  "publishConfig": {
47
46
  "access": "public"
48
47
  },
49
48
  "scripts": {
50
- "build": "tsup src/index.ts --format esm,cjs --dts --external react",
49
+ "build": "tsdown src/index.ts --format esm,cjs --dts --external react",
50
+ "build:watch": "tsdown src/index.ts --format esm,cjs --dts --external react --watch",
51
51
  "clean": "rm -rf dist",
52
- "dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch",
53
- "lint": "eslint .",
54
- "test:watch": "vitest",
55
- "test": "vitest run"
52
+ "test": "vitest run",
53
+ "test:watch": "vitest"
56
54
  }
57
55
  }