@react-email/text
Advanced tools
+3
-3
| import * as React from 'react'; | ||
| declare type RootProps = React.ComponentPropsWithoutRef<'p'>; | ||
| interface PProps extends RootProps { | ||
| interface TextProps extends RootProps { | ||
| } | ||
| declare const P: React.ForwardRefExoticComponent<Readonly<PProps> & React.RefAttributes<HTMLParagraphElement>>; | ||
| declare const Text: React.ForwardRefExoticComponent<Readonly<TextProps> & React.RefAttributes<HTMLParagraphElement>>; | ||
| export { P, PProps }; | ||
| export { Text, TextProps }; |
+5
-5
@@ -29,10 +29,10 @@ "use strict"; | ||
| __export(src_exports, { | ||
| P: () => P | ||
| Text: () => Text | ||
| }); | ||
| module.exports = __toCommonJS(src_exports); | ||
| // src/p.tsx | ||
| // src/text.tsx | ||
| var React = __toESM(require("react")); | ||
| var import_jsx_runtime = require("react/jsx-runtime"); | ||
| var P = React.forwardRef( | ||
| var Text = React.forwardRef( | ||
| ({ style, ...props }, forwardedRef) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { | ||
@@ -49,6 +49,6 @@ ref: forwardedRef, | ||
| ); | ||
| P.displayName = "P"; | ||
| Text.displayName = "Text"; | ||
| // Annotate the CommonJS export names for ESM import in node: | ||
| 0 && (module.exports = { | ||
| P | ||
| Text | ||
| }); |
+4
-4
@@ -1,5 +0,5 @@ | ||
| // src/p.tsx | ||
| // src/text.tsx | ||
| import * as React from "react"; | ||
| import { jsx } from "react/jsx-runtime"; | ||
| var P = React.forwardRef( | ||
| var Text = React.forwardRef( | ||
| ({ style, ...props }, forwardedRef) => /* @__PURE__ */ jsx("p", { | ||
@@ -16,5 +16,5 @@ ref: forwardedRef, | ||
| ); | ||
| P.displayName = "P"; | ||
| Text.displayName = "Text"; | ||
| export { | ||
| P | ||
| Text | ||
| }; |
+1
-1
| { | ||
| "name": "@react-email/text", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "A block of text separated by blank spaces", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
+4
-4
@@ -1,2 +0,2 @@ | ||
|  | ||
|  | ||
@@ -46,5 +46,5 @@ <div align="center"><strong>@react-email/text</strong></div> | ||
| | <img src="https://react.email/static/images/gmail.svg" width="48px" height="48px" alt="Gmail logo"> | <img src="https://react.email/static/images/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"> | <img src="https://react.email/static/images/outlook.svg" width="48px" height="48px" alt="Outlook logo"> | <img src="https://react.email/static/images/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"> | <img src="https://react.email/static/images/hey.svg" width="48px" height="48px" alt="HEY logo"> | <img src="https://react.email/static/images/superhuman.svg" width="48px" height="48px" alt="Superhuman logo"> | | ||
| | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | ||
| | Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ | | ||
| | <img src="https://react.email/static/images/readme/icons/gmail.svg" width="48px" height="48px" alt="Gmail logo"> | <img src="https://react.email/static/images/readme/icons/apple-mail.svg" width="48px" height="48px" alt="Apple Mail"> | <img src="https://react.email/static/images/readme/icons/outlook.svg" width="48px" height="48px" alt="Outlook logo"> | <img src="https://react.email/static/images/readme/icons/yahoo-mail.svg" width="48px" height="48px" alt="Yahoo! Mail logo"> | <img src="https://react.email/static/images/readme/icons/hey.svg" width="48px" height="48px" alt="HEY logo"> | <img src="https://react.email/static/images/readme/icons/superhuman.svg" width="48px" height="48px" alt="Superhuman logo"> | | ||
| | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- | | ||
| | Gmail ✔ | Apple Mail ✔ | Outlook ✔ | Yahoo! Mail ✔ | HEY ✔ | Superhuman ✔ | | ||
@@ -51,0 +51,0 @@ ## License |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7741
3.96%1
Infinity%