@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 +0 -0
- package/dist/components/MyComponent.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +10 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +8 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/package.json +46 -0
package/README.md
ADDED
|
File without changes
|
|
@@ -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;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -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;;;;"}
|
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
|
+
}
|