@react-email/column
Advanced tools
Comparing version
import * as React from 'react'; | ||
declare type RootProps = React.ComponentPropsWithoutRef<"td">; | ||
interface ColumnProps extends RootProps { | ||
} | ||
declare const Column: React.ForwardRefExoticComponent<Readonly<ColumnProps> & React.RefAttributes<HTMLTableDataCellElement>>; | ||
type RootProps = React.ComponentPropsWithoutRef<"td">; | ||
type ColumnProps = RootProps; | ||
declare const Column: React.FC<Readonly<ColumnProps>>; | ||
export { Column, ColumnProps }; |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __objRest = (source, exclude) => { | ||
var target = {}; | ||
for (var prop in source) | ||
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) | ||
target[prop] = source[prop]; | ||
if (source != null && __getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(source)) { | ||
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) | ||
target[prop] = source[prop]; | ||
} | ||
return target; | ||
}; | ||
var __export = (target, all) => { | ||
@@ -20,6 +47,2 @@ for (var name in all) | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -35,18 +58,13 @@ | ||
// src/column.tsx | ||
var React = __toESM(require("react")); | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
var Column = React.forwardRef( | ||
({ children, style, ...props }, forwardedRef) => { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
"td", | ||
{ | ||
...props, | ||
ref: forwardedRef, | ||
"data-id": "__react-email-column", | ||
style, | ||
children | ||
} | ||
); | ||
} | ||
); | ||
var Column = (_a) => { | ||
var _b = _a, { | ||
children, | ||
style | ||
} = _b, props = __objRest(_b, [ | ||
"children", | ||
"style" | ||
]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", __spreadProps(__spreadValues({}, props), { "data-id": "__react-email-column", style, children })); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -53,0 +71,0 @@ 0 && (module.exports = { |
{ | ||
"name": "@react-email/column", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Display a column that separates content areas vertically in your email", | ||
@@ -12,12 +12,22 @@ "sideEffects": false, | ||
], | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
} | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsup src/index.ts --format esm,cjs --dts --external react", | ||
"clean": "rm -rf dist", | ||
"dev": "tsup src/index.ts --format esm,cjs --dts --external react --watch", | ||
"lint": "eslint", | ||
"clean": "rm -rf dist", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"" | ||
"lint": "eslint .", | ||
"test:watch": "vitest", | ||
"test": "vitest run" | ||
}, | ||
@@ -34,18 +44,13 @@ "repository": { | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
"dependencies": { | ||
"peerDependencies": { | ||
"react": "18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "7.18.6", | ||
"@types/react": "18.0.20", | ||
"@types/react-dom": "18.0.6", | ||
"babel-jest": "28.1.3", | ||
"eslint": "8.23.1", | ||
"jest": "28.1.3", | ||
"prettier": "2.8.4", | ||
"ts-jest": "28.0.8", | ||
"tsup": "6.2.3", | ||
"typescript": "4.8.3" | ||
"@babel/preset-react": "7.22.5", | ||
"@react-email/render": "workspace:*", | ||
"eslint-config-custom": "workspace:*", | ||
"tsconfig": "workspace:*", | ||
"typescript": "5.1.6" | ||
}, | ||
@@ -52,0 +57,0 @@ "publishConfig": { |
@@ -54,3 +54,3 @@  | ||
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | | ||
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ | | ||
| Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ | | ||
@@ -57,0 +57,0 @@ ## License |
Sorry, the diff of this file is not supported yet
10036
28.16%5
-50%7
16.67%120
55.84%- Removed