@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 +8 -6
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +42 -82
- package/dist/index.mjs +26 -56
- package/dist/index.mjs.map +1 -0
- package/package.json +9 -11
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
8
|
+
children: React.ReactNode;
|
|
8
9
|
}> & React.RefAttributes<HTMLTableElement>>;
|
|
9
|
-
|
|
10
|
-
export { Row,
|
|
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
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
8
|
+
children: React.ReactNode;
|
|
8
9
|
}> & React.RefAttributes<HTMLTableElement>>;
|
|
9
|
-
|
|
10
|
-
export { Row,
|
|
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
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
58
|
-
|
|
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.
|
|
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": ">=
|
|
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.
|
|
42
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"test:watch": "vitest",
|
|
55
|
-
"test": "vitest run"
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"test:watch": "vitest"
|
|
56
54
|
}
|
|
57
55
|
}
|