brookmind-emails 0.1.7

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.
Files changed (51) hide show
  1. package/.prettierrc +7 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +4 -0
  5. package/dist/modelfy/config.d.ts +7 -0
  6. package/dist/modelfy/config.d.ts.map +1 -0
  7. package/dist/modelfy/config.js +6 -0
  8. package/dist/modelfy/index.d.ts +14 -0
  9. package/dist/modelfy/index.d.ts.map +1 -0
  10. package/dist/modelfy/index.js +33 -0
  11. package/dist/modelfy/templates/GrantCreditsEmail.d.ts +10 -0
  12. package/dist/modelfy/templates/GrantCreditsEmail.d.ts.map +1 -0
  13. package/dist/modelfy/templates/GrantCreditsEmail.js +101 -0
  14. package/dist/modelfy/templates/OtpEmail.d.ts +8 -0
  15. package/dist/modelfy/templates/OtpEmail.d.ts.map +1 -0
  16. package/dist/modelfy/templates/OtpEmail.js +66 -0
  17. package/dist/modelfy/templates/PromoSubscriptionEmail.d.ts +11 -0
  18. package/dist/modelfy/templates/PromoSubscriptionEmail.d.ts.map +1 -0
  19. package/dist/modelfy/templates/PromoSubscriptionEmail.js +83 -0
  20. package/dist/modelfy/templates/index.d.ts +4 -0
  21. package/dist/modelfy/templates/index.d.ts.map +1 -0
  22. package/dist/modelfy/templates/index.js +3 -0
  23. package/dist/shared/components/Button.d.ts +7 -0
  24. package/dist/shared/components/Button.d.ts.map +1 -0
  25. package/dist/shared/components/Button.js +27 -0
  26. package/dist/shared/components/Footer.d.ts +8 -0
  27. package/dist/shared/components/Footer.d.ts.map +1 -0
  28. package/dist/shared/components/Footer.js +28 -0
  29. package/dist/shared/components/Header.d.ts +7 -0
  30. package/dist/shared/components/Header.d.ts.map +1 -0
  31. package/dist/shared/components/Header.js +40 -0
  32. package/dist/shared/components/index.d.ts +4 -0
  33. package/dist/shared/components/index.d.ts.map +1 -0
  34. package/dist/shared/components/index.js +3 -0
  35. package/dist/shared/index.d.ts +2 -0
  36. package/dist/shared/index.d.ts.map +1 -0
  37. package/dist/shared/index.js +1 -0
  38. package/package.json +40 -0
  39. package/src/index.ts +5 -0
  40. package/src/modelfy/config.ts +6 -0
  41. package/src/modelfy/index.ts +57 -0
  42. package/src/modelfy/templates/GrantCreditsEmail.tsx +205 -0
  43. package/src/modelfy/templates/OtpEmail.tsx +128 -0
  44. package/src/modelfy/templates/PromoSubscriptionEmail.tsx +189 -0
  45. package/src/modelfy/templates/index.ts +3 -0
  46. package/src/shared/components/Button.tsx +39 -0
  47. package/src/shared/components/Footer.tsx +63 -0
  48. package/src/shared/components/Header.tsx +56 -0
  49. package/src/shared/components/index.ts +3 -0
  50. package/src/shared/index.ts +1 -0
  51. package/tsconfig.json +22 -0
@@ -0,0 +1,56 @@
1
+ import { Section, Img, Text } from "@react-email/components";
2
+
3
+ export interface HeaderProps {
4
+ logoUrl: string;
5
+ logoAlt?: string;
6
+ subtitle?: string;
7
+ }
8
+
9
+ const styles = {
10
+ header: {
11
+ backgroundColor: "#000000",
12
+ padding: "32px 40px",
13
+ borderBottom: "1px solid rgba(148, 163, 184, 0.15)",
14
+ },
15
+ logoContainer: {
16
+ display: "flex" as const,
17
+ flexDirection: "column" as const,
18
+ alignItems: "center" as const,
19
+ justifyContent: "center" as const,
20
+ gap: "18px",
21
+ textAlign: "center" as const,
22
+ },
23
+ logoWrapper: {
24
+ display: "flex" as const,
25
+ alignItems: "center" as const,
26
+ justifyContent: "center" as const,
27
+ backgroundColor: "#000",
28
+ borderRadius: "18px",
29
+ padding: "16px 24px",
30
+ },
31
+ logo: {
32
+ display: "block" as const,
33
+ maxWidth: "100%",
34
+ },
35
+ subtitle: {
36
+ fontSize: "16px",
37
+ color: "rgba(255,255,255,0.8)",
38
+ letterSpacing: "4px",
39
+ textTransform: "uppercase" as const,
40
+ fontWeight: 500,
41
+ margin: 0,
42
+ },
43
+ };
44
+
45
+ export function Header({ logoUrl, logoAlt = "Logo", subtitle }: HeaderProps) {
46
+ return (
47
+ <Section style={styles.header}>
48
+ <div style={styles.logoContainer}>
49
+ <div style={styles.logoWrapper}>
50
+ <Img src={logoUrl} width="150" height="auto" alt={logoAlt} style={styles.logo} />
51
+ </div>
52
+ {subtitle && <Text style={styles.subtitle}>{subtitle}</Text>}
53
+ </div>
54
+ </Section>
55
+ );
56
+ }
@@ -0,0 +1,3 @@
1
+ export { Header, type HeaderProps } from "./Header.js";
2
+ export { Footer, type FooterProps } from "./Footer.js";
3
+ export { Button, type ButtonProps } from "./Button.js";
@@ -0,0 +1 @@
1
+ export * from "./components/index.js";
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "lib": ["ES2022"],
7
+ "jsx": "react-jsx",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "declaration": true,
13
+ "declarationMap": true,
14
+ "outDir": "./dist",
15
+ "rootDir": "./src",
16
+ "resolveJsonModule": true,
17
+ "isolatedModules": true,
18
+ "noEmit": false
19
+ },
20
+ "include": ["src/**/*"],
21
+ "exclude": ["node_modules", "dist"]
22
+ }