@react-email/section 0.0.14-canary.0 → 0.0.15-canary.0

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,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
 
3
- type RootProps = React.ComponentPropsWithoutRef<"table">;
4
- type SectionProps = RootProps;
3
+ type SectionProps = Readonly<React.ComponentPropsWithoutRef<"table">>;
5
4
  declare const Section: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">> & React.RefAttributes<HTMLTableElement>>;
6
5
 
7
- export { Section, SectionProps };
6
+ export { Section, type SectionProps };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
2
 
3
- type RootProps = React.ComponentPropsWithoutRef<"table">;
4
- type SectionProps = RootProps;
3
+ type SectionProps = Readonly<React.ComponentPropsWithoutRef<"table">>;
5
4
  declare const Section: React.ForwardRefExoticComponent<Readonly<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">> & React.RefAttributes<HTMLTableElement>>;
6
5
 
7
- export { Section, SectionProps };
6
+ export { Section, type SectionProps };
package/dist/index.js CHANGED
@@ -66,24 +66,26 @@ module.exports = __toCommonJS(src_exports);
66
66
  // src/section.tsx
67
67
  var React = __toESM(require("react"));
68
68
  var import_jsx_runtime = require("react/jsx-runtime");
69
- var Section = 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", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { children }) }) })
84
- })
85
- );
86
- });
69
+ var Section = 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", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { children }) }) })
85
+ })
86
+ );
87
+ }
88
+ );
87
89
  Section.displayName = "Section";
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/section.tsx
34
34
  import * as React from "react";
35
35
  import { jsx } from "react/jsx-runtime";
36
- var Section = 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", { children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { children }) }) })
51
- })
52
- );
53
- });
36
+ var Section = 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", { children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { children }) }) })
52
+ })
53
+ );
54
+ }
55
+ );
54
56
  Section.displayName = "Section";
55
57
  export {
56
58
  Section
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-email/section",
3
- "version": "0.0.14-canary.0",
3
+ "version": "0.0.15-canary.0",
4
4
  "description": "Display a section that can be formatted using columns",
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
- "eslint-config-custom": "0.0.0",
42
+ "@react-email/render": "1.0.2-canary.0",
44
43
  "tsconfig": "0.0.0",
45
- "@react-email/render": "0.0.18-canary.0"
44
+ "eslint-config-custom": "0.0.0"
46
45
  },
47
46
  "publishConfig": {
48
47
  "access": "public"