@react-email/column 0.0.13-canary.1 → 0.0.14
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 +6 -4
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -68
- package/dist/index.mjs +15 -42
- package/dist/index.mjs.map +1 -0
- package/package.json +9 -11
- package/readme.md +3 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/column.d.ts
|
|
4
|
+
type ColumnProps = Readonly<React.ComponentPropsWithoutRef<'td'>>;
|
|
4
5
|
declare const Column: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref">> & React.RefAttributes<HTMLTableCellElement>>;
|
|
5
|
-
|
|
6
|
-
export { Column,
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Column, ColumnProps };
|
|
8
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/column.tsx"],"sourcesContent":[],"mappings":";;;KAEY,WAAA,GAAc,SAAS,KAAA,CAAM;cAE5B,QAAM,KAAA,CAAA,0BAAA,SAAA,KAAA,KAAA,CAAA,kBAAA,KAAA,CAAA,iBAAA,2BAAA,qCAAA,KAAA,CAAA,cAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/column.d.ts
|
|
4
|
+
type ColumnProps = Readonly<React.ComponentPropsWithoutRef<'td'>>;
|
|
4
5
|
declare const Column: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref">> & React.RefAttributes<HTMLTableCellElement>>;
|
|
5
|
-
|
|
6
|
-
export { Column,
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Column, ColumnProps };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/column.tsx"],"sourcesContent":[],"mappings":";;;KAEY,WAAA,GAAc,SAAS,KAAA,CAAM;cAE5B,QAAM,KAAA,CAAA,0BAAA,SAAA,KAAA,KAAA,CAAA,kBAAA,KAAA,CAAA,iBAAA,2BAAA,qCAAA,KAAA,CAAA,cAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,79 +1,42 @@
|
|
|
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
|
-
Column.displayName = "Column";
|
|
76
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
-
0 && (module.exports = {
|
|
78
|
-
Column
|
|
29
|
+
//#region src/column.tsx
|
|
30
|
+
const Column = react.forwardRef(({ children, style,...props }, ref) => {
|
|
31
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
|
|
32
|
+
...props,
|
|
33
|
+
"data-id": "__react-email-column",
|
|
34
|
+
ref,
|
|
35
|
+
style,
|
|
36
|
+
children
|
|
37
|
+
});
|
|
79
38
|
});
|
|
39
|
+
Column.displayName = "Column";
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.Column = Column;
|
package/dist/index.mjs
CHANGED
|
@@ -1,45 +1,18 @@
|
|
|
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/column.tsx
|
|
34
1
|
import * as React from "react";
|
|
35
2
|
import { jsx } from "react/jsx-runtime";
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
3
|
+
|
|
4
|
+
//#region src/column.tsx
|
|
5
|
+
const Column = React.forwardRef(({ children, style,...props }, ref) => {
|
|
6
|
+
return /* @__PURE__ */ jsx("td", {
|
|
7
|
+
...props,
|
|
8
|
+
"data-id": "__react-email-column",
|
|
9
|
+
ref,
|
|
10
|
+
style,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
});
|
|
42
14
|
Column.displayName = "Column";
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Column };
|
|
18
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/column.tsx"],"sourcesContent":["import * as React from 'react';\n\nexport type ColumnProps = Readonly<React.ComponentPropsWithoutRef<'td'>>;\n\nexport const Column = React.forwardRef<HTMLTableCellElement, ColumnProps>(\n ({ children, style, ...props }, ref) => {\n return (\n <td {...props} data-id=\"__react-email-column\" ref={ref} style={style}>\n {children}\n </td>\n );\n },\n);\n\nColumn.displayName = 'Column';\n"],"mappings":";;;;AAIA,MAAa,SAAS,MAAM,YACzB,EAAE,UAAU,MAAO,GAAG,SAAS,QAAQ;AACtC,QACE,oBAAC;EAAG,GAAI;EAAO,WAAQ;EAA4B;EAAY;EAC5D;GACE;EAGV;AAED,OAAO,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-email/column",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Display a column that separates content areas vertically in your email",
|
|
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
|
-
"
|
|
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
|
}
|
package/readme.md
CHANGED
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
<div align="center">Display a column that separates content areas vertically in your email.</div>
|
|
5
5
|
<br />
|
|
6
6
|
<div align="center">
|
|
7
|
-
<a href="https://react.email">Website</a>
|
|
7
|
+
<a href="https://react.email">Website</a>
|
|
8
8
|
<span> · </span>
|
|
9
|
-
<a href="https://github.com/resend/react-email">GitHub</a>
|
|
10
|
-
|
|
11
|
-
<a href="https://react.email/discord">Discord</a>
|
|
9
|
+
<a href="https://github.com/resend/react-email">GitHub</a>
|
|
10
|
+
|
|
12
11
|
</div>
|
|
13
12
|
|
|
14
13
|
## Install
|