@pagenflow/email 1.0.1

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/README.md ADDED
File without changes
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { MyComponentProps } from "../types";
3
+ export declare const MyComponent: React.FC<MyComponentProps>;
@@ -0,0 +1 @@
1
+ export { MyComponent } from './MyComponent';
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ const MyComponent = ({ text, variant = "primary", onClick, }) => {
6
+ return (React.createElement("div", { className: `my-component my-component--${variant}`, onClick: onClick }, text));
7
+ };
8
+
9
+ exports.MyComponent = MyComponent;
10
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/components/MyComponent.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { MyComponentProps } from \"../types\";\r\n\r\nexport const MyComponent: React.FC<MyComponentProps> = ({\r\n text,\r\n variant = \"primary\",\r\n onClick,\r\n}) => {\r\n return (\r\n <div className={`my-component my-component--${variant}`} onClick={onClick}>\r\n {text}\r\n </div>\r\n );\r\n};\r\n"],"names":[],"mappings":";;;;AAGO,MAAM,WAAW,GAA+B,CAAC,EACtD,IAAI,EACJ,OAAO,GAAG,SAAS,EACnB,OAAO,GACR,KAAI;AACH,IAAA,QACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,8BAA8B,OAAO,CAAA,CAAE,EAAE,OAAO,EAAE,OAAO,EAAA,EACtE,IAAI,CACD;AAEV;;;;"}
@@ -0,0 +1,2 @@
1
+ export { MyComponent } from './components';
2
+ export type { MyComponentProps } from './types';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+
3
+ const MyComponent = ({ text, variant = "primary", onClick, }) => {
4
+ return (React.createElement("div", { className: `my-component my-component--${variant}`, onClick: onClick }, text));
5
+ };
6
+
7
+ export { MyComponent };
8
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/components/MyComponent.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { MyComponentProps } from \"../types\";\r\n\r\nexport const MyComponent: React.FC<MyComponentProps> = ({\r\n text,\r\n variant = \"primary\",\r\n onClick,\r\n}) => {\r\n return (\r\n <div className={`my-component my-component--${variant}`} onClick={onClick}>\r\n {text}\r\n </div>\r\n );\r\n};\r\n"],"names":[],"mappings":";;AAGO,MAAM,WAAW,GAA+B,CAAC,EACtD,IAAI,EACJ,OAAO,GAAG,SAAS,EACnB,OAAO,GACR,KAAI;AACH,IAAA,QACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,8BAA8B,OAAO,CAAA,CAAE,EAAE,OAAO,EAAE,OAAO,EAAA,EACtE,IAAI,CACD;AAEV;;;;"}
@@ -0,0 +1,5 @@
1
+ export interface MyComponentProps {
2
+ text: string;
3
+ variant?: 'primary' | 'secondary';
4
+ onClick?: () => void;
5
+ }
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@pagenflow/email",
3
+ "version": "1.0.1",
4
+ "description": "Free Email Compatible Components",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "rollup -c",
13
+ "watch": "rollup -c -w",
14
+ "prepublishOnly": "npm run build",
15
+ "publish:patch": "npm version patch && git push && git push --tags && npm publish --access public",
16
+ "publish:minor": "npm version minor && git push && git push --tags && npm publish --access public",
17
+ "publish:major": "npm version major && git push && git push --tags && npm publish --access public"
18
+ },
19
+ "keywords": [
20
+ "email",
21
+ "template",
22
+ "builder",
23
+ "react",
24
+ "typescript",
25
+ "component"
26
+ ],
27
+ "author": "Arnold Lambou",
28
+ "license": "MIT",
29
+ "peerDependencies": {
30
+ "react": "^18.0.0 || ^19.0.0",
31
+ "react-dom": "^18.0.0 || ^19.0.0"
32
+ },
33
+ "devDependencies": {
34
+ "@rollup/plugin-commonjs": "^29.0.0",
35
+ "@rollup/plugin-node-resolve": "^16.0.3",
36
+ "@rollup/plugin-typescript": "^12.3.0",
37
+ "@types/react": "^19.2.8",
38
+ "@types/react-dom": "^19.2.3",
39
+ "react": "^19.2.3",
40
+ "react-dom": "^19.2.3",
41
+ "rollup": "^4.55.1",
42
+ "rollup-plugin-peer-deps-external": "^2.2.4",
43
+ "tslib": "^2.8.1",
44
+ "typescript": "^5.9.3"
45
+ }
46
+ }