@react-email/column 0.0.6 → 0.0.8
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 +7 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.js +39 -12
- package/dist/index.mjs +42 -6
- package/package.json +24 -21
- package/readme.md +1 -1
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const Column: React.ForwardRefExoticComponent<Readonly<ColumnProps> & React.RefAttributes<HTMLTableDataCellElement>>;
|
|
3
|
+
type RootProps = React.ComponentPropsWithoutRef<"td">;
|
|
4
|
+
type ColumnProps = RootProps;
|
|
5
|
+
declare const Column: React.FC<Readonly<ColumnProps>>;
|
|
7
6
|
|
|
8
7
|
export { Column, ColumnProps };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
8
35
|
var __export = (target, all) => {
|
|
9
36
|
for (var name in all)
|
|
10
37
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -17,10 +44,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
44
|
}
|
|
18
45
|
return to;
|
|
19
46
|
};
|
|
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
47
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
48
|
|
|
26
49
|
// src/index.ts
|
|
@@ -31,13 +54,17 @@ __export(src_exports, {
|
|
|
31
54
|
module.exports = __toCommonJS(src_exports);
|
|
32
55
|
|
|
33
56
|
// src/column.tsx
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
57
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var Column =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
58
|
+
var Column = (_a) => {
|
|
59
|
+
var _b = _a, {
|
|
60
|
+
children,
|
|
61
|
+
style
|
|
62
|
+
} = _b, props = __objRest(_b, [
|
|
63
|
+
"children",
|
|
64
|
+
"style"
|
|
65
|
+
]);
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", __spreadProps(__spreadValues({}, props), { "data-id": "__react-email-column", style, children }));
|
|
67
|
+
};
|
|
41
68
|
// Annotate the CommonJS export names for ESM import in node:
|
|
42
69
|
0 && (module.exports = {
|
|
43
70
|
Column
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,47 @@
|
|
|
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
|
+
|
|
1
33
|
// src/column.tsx
|
|
2
|
-
import * as React from "react";
|
|
3
34
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var Column =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
35
|
+
var Column = (_a) => {
|
|
36
|
+
var _b = _a, {
|
|
37
|
+
children,
|
|
38
|
+
style
|
|
39
|
+
} = _b, props = __objRest(_b, [
|
|
40
|
+
"children",
|
|
41
|
+
"style"
|
|
42
|
+
]);
|
|
43
|
+
return /* @__PURE__ */ jsx("td", __spreadProps(__spreadValues({}, props), { "data-id": "__react-email-column", style, children }));
|
|
44
|
+
};
|
|
9
45
|
export {
|
|
10
46
|
Column
|
|
11
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-email/column",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Display a column that separates content areas vertically in your email",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,16 +9,26 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/**"
|
|
11
11
|
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.mjs"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
12
24
|
"license": "MIT",
|
|
13
25
|
"scripts": {
|
|
14
26
|
"build": "tsup src/index.ts --format esm,cjs --dts --external react",
|
|
15
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch",
|
|
16
|
-
"lint": "eslint",
|
|
17
27
|
"clean": "rm -rf dist",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
28
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch",
|
|
29
|
+
"lint": "eslint .",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"test": "vitest run"
|
|
22
32
|
},
|
|
23
33
|
"repository": {
|
|
24
34
|
"type": "git",
|
|
@@ -30,24 +40,17 @@
|
|
|
30
40
|
"email"
|
|
31
41
|
],
|
|
32
42
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
43
|
+
"node": ">=18.0.0"
|
|
34
44
|
},
|
|
35
|
-
"
|
|
45
|
+
"peerDependencies": {
|
|
36
46
|
"react": "18.2.0"
|
|
37
47
|
},
|
|
38
48
|
"devDependencies": {
|
|
39
|
-
"@babel/preset-react": "7.
|
|
40
|
-
"@react-email/render": "
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"eslint": "8.23.1",
|
|
45
|
-
"eslint-config-custom": "*",
|
|
46
|
-
"jest": "28.1.3",
|
|
47
|
-
"ts-jest": "28.0.8",
|
|
48
|
-
"tsconfig": "*",
|
|
49
|
-
"tsup": "6.2.3",
|
|
50
|
-
"typescript": "4.8.3"
|
|
49
|
+
"@babel/preset-react": "7.22.5",
|
|
50
|
+
"@react-email/render": "workspace:*",
|
|
51
|
+
"eslint-config-custom": "workspace:*",
|
|
52
|
+
"tsconfig": "workspace:*",
|
|
53
|
+
"typescript": "5.1.6"
|
|
51
54
|
},
|
|
52
55
|
"publishConfig": {
|
|
53
56
|
"access": "public"
|
package/readme.md
CHANGED
|
@@ -51,7 +51,7 @@ This component was tested using the most popular email clients.
|
|
|
51
51
|
|
|
52
52
|
| <img src="https://react.email/static/icons/gmail.svg" width="48px" height="48px" alt="Gmail logo"> | <img src="https://react.email/static/icons/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"> | <img src="https://react.email/static/icons/outlook.svg" width="48px" height="48px" alt="Outlook logo"> | <img src="https://react.email/static/icons/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"> | <img src="https://react.email/static/icons/hey.svg" width="48px" height="48px" alt="HEY logo"> | <img src="https://react.email/static/icons/superhuman.svg" width="48px" height="48px" alt="Superhuman logo"> |
|
|
53
53
|
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
54
|
-
| Gmail ✔
|
|
54
|
+
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ |
|
|
55
55
|
|
|
56
56
|
## License
|
|
57
57
|
|