@zyther/tzmail 0.1.3 → 0.5.0

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 (132) hide show
  1. package/README.md +412 -79
  2. package/dist/core/enums/theme.enum.d.ts +11 -1
  3. package/dist/core/enums/theme.enum.d.ts.map +1 -1
  4. package/dist/core/enums/theme.enum.js +10 -0
  5. package/dist/core/interfaces/email.interface.d.ts +95 -5
  6. package/dist/core/interfaces/email.interface.d.ts.map +1 -1
  7. package/dist/core/interfaces/template.interface.d.ts +12 -1
  8. package/dist/core/interfaces/template.interface.d.ts.map +1 -1
  9. package/dist/factories/email-factory.d.ts +32 -6
  10. package/dist/factories/email-factory.d.ts.map +1 -1
  11. package/dist/factories/email-factory.js +110 -6
  12. package/dist/factories/template-factory.d.ts.map +1 -1
  13. package/dist/factories/template-factory.js +170 -60
  14. package/dist/index.d.ts +16 -3
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +23 -1
  17. package/dist/providers/mailgun.transport.d.ts +10 -0
  18. package/dist/providers/mailgun.transport.d.ts.map +1 -0
  19. package/dist/providers/mailgun.transport.js +85 -0
  20. package/dist/providers/nodemailer.transport.d.ts +11 -0
  21. package/dist/providers/nodemailer.transport.d.ts.map +1 -0
  22. package/dist/providers/nodemailer.transport.js +23 -0
  23. package/dist/providers/provider-utils.d.ts +17 -0
  24. package/dist/providers/provider-utils.d.ts.map +1 -0
  25. package/dist/providers/provider-utils.js +89 -0
  26. package/dist/providers/provider.interface.d.ts +30 -0
  27. package/dist/providers/provider.interface.d.ts.map +1 -0
  28. package/dist/providers/provider.interface.js +2 -0
  29. package/dist/providers/sendgrid.transport.d.ts +10 -0
  30. package/dist/providers/sendgrid.transport.d.ts.map +1 -0
  31. package/dist/providers/sendgrid.transport.js +76 -0
  32. package/dist/queues/bullmq-email-queue.d.ts +153 -0
  33. package/dist/queues/bullmq-email-queue.d.ts.map +1 -0
  34. package/dist/queues/bullmq-email-queue.js +292 -0
  35. package/dist/services/attachment.service.d.ts +15 -37
  36. package/dist/services/attachment.service.d.ts.map +1 -1
  37. package/dist/services/attachment.service.js +58 -46
  38. package/dist/services/email.service.d.ts +22 -22
  39. package/dist/services/email.service.d.ts.map +1 -1
  40. package/dist/services/email.service.js +117 -33
  41. package/dist/services/template.service.d.ts +24 -111
  42. package/dist/services/template.service.d.ts.map +1 -1
  43. package/dist/services/template.service.js +273 -362
  44. package/dist/templates/base/color-accessibility.d.ts +4 -0
  45. package/dist/templates/base/color-accessibility.d.ts.map +1 -0
  46. package/dist/templates/base/color-accessibility.js +38 -0
  47. package/dist/templates/base/template-builder.d.ts +4 -1
  48. package/dist/templates/base/template-builder.d.ts.map +1 -1
  49. package/dist/templates/base/template-builder.js +276 -527
  50. package/dist/templates/themes/aurora.theme.d.ts +12 -0
  51. package/dist/templates/themes/aurora.theme.d.ts.map +1 -0
  52. package/dist/templates/themes/aurora.theme.js +88 -0
  53. package/dist/templates/themes/corporate.theme.d.ts +2 -1
  54. package/dist/templates/themes/corporate.theme.d.ts.map +1 -1
  55. package/dist/templates/themes/corporate.theme.js +139 -102
  56. package/dist/templates/themes/editorial.theme.d.ts +12 -0
  57. package/dist/templates/themes/editorial.theme.d.ts.map +1 -0
  58. package/dist/templates/themes/editorial.theme.js +90 -0
  59. package/dist/templates/themes/forest.theme.d.ts +12 -0
  60. package/dist/templates/themes/forest.theme.d.ts.map +1 -0
  61. package/dist/templates/themes/forest.theme.js +89 -0
  62. package/dist/templates/themes/glass.theme.d.ts +12 -0
  63. package/dist/templates/themes/glass.theme.d.ts.map +1 -0
  64. package/dist/templates/themes/glass.theme.js +88 -0
  65. package/dist/templates/themes/lavender.theme.d.ts +12 -0
  66. package/dist/templates/themes/lavender.theme.d.ts.map +1 -0
  67. package/dist/templates/themes/lavender.theme.js +91 -0
  68. package/dist/templates/themes/midnight.theme.d.ts +12 -0
  69. package/dist/templates/themes/midnight.theme.d.ts.map +1 -0
  70. package/dist/templates/themes/midnight.theme.js +91 -0
  71. package/dist/templates/themes/minimal.theme.d.ts +2 -1
  72. package/dist/templates/themes/minimal.theme.d.ts.map +1 -1
  73. package/dist/templates/themes/minimal.theme.js +142 -107
  74. package/dist/templates/themes/modern.theme.d.ts +2 -1
  75. package/dist/templates/themes/modern.theme.d.ts.map +1 -1
  76. package/dist/templates/themes/modern.theme.js +109 -74
  77. package/dist/templates/themes/monokai.theme.d.ts +2 -1
  78. package/dist/templates/themes/monokai.theme.d.ts.map +1 -1
  79. package/dist/templates/themes/monokai.theme.js +102 -66
  80. package/dist/templates/themes/neobrutal.theme.d.ts +12 -0
  81. package/dist/templates/themes/neobrutal.theme.d.ts.map +1 -0
  82. package/dist/templates/themes/neobrutal.theme.js +91 -0
  83. package/dist/templates/themes/ocean.theme.d.ts +12 -0
  84. package/dist/templates/themes/ocean.theme.d.ts.map +1 -0
  85. package/dist/templates/themes/ocean.theme.js +90 -0
  86. package/dist/templates/themes/pastel.theme.d.ts +12 -0
  87. package/dist/templates/themes/pastel.theme.d.ts.map +1 -0
  88. package/dist/templates/themes/pastel.theme.js +89 -0
  89. package/dist/templates/themes/sunset.theme.d.ts +12 -0
  90. package/dist/templates/themes/sunset.theme.d.ts.map +1 -0
  91. package/dist/templates/themes/sunset.theme.js +90 -0
  92. package/dist/templates/themes/system.theme.d.ts +2 -1
  93. package/dist/templates/themes/system.theme.d.ts.map +1 -1
  94. package/dist/templates/themes/system.theme.js +81 -47
  95. package/dist/templates/themes/theme.interface.d.ts +48 -0
  96. package/dist/templates/themes/theme.interface.d.ts.map +1 -1
  97. package/package.json +36 -14
  98. package/src/core/enums/template-part.enum.ts +7 -0
  99. package/src/core/enums/theme.enum.ts +18 -0
  100. package/src/core/interfaces/email.interface.ts +116 -0
  101. package/src/core/interfaces/template.interface.ts +71 -0
  102. package/src/factories/email-factory.ts +208 -0
  103. package/src/factories/template-factory.ts +201 -0
  104. package/src/index.ts +53 -0
  105. package/src/providers/mailgun.transport.ts +80 -0
  106. package/src/providers/nodemailer.transport.ts +20 -0
  107. package/src/providers/provider-utils.ts +91 -0
  108. package/src/providers/provider.interface.ts +26 -0
  109. package/src/providers/sendgrid.transport.ts +80 -0
  110. package/src/queues/bullmq-email-queue.ts +418 -0
  111. package/src/services/attachment.service.ts +98 -0
  112. package/src/services/email.service.ts +151 -0
  113. package/src/services/template.service.ts +431 -0
  114. package/src/templates/base/color-accessibility.ts +31 -0
  115. package/src/templates/base/template-builder.ts +438 -0
  116. package/src/templates/themes/aurora.theme.ts +91 -0
  117. package/src/templates/themes/corporate.theme.ts +156 -0
  118. package/src/templates/themes/editorial.theme.ts +93 -0
  119. package/src/templates/themes/forest.theme.ts +92 -0
  120. package/src/templates/themes/glass.theme.ts +91 -0
  121. package/src/templates/themes/lavender.theme.ts +94 -0
  122. package/src/templates/themes/midnight.theme.ts +94 -0
  123. package/src/templates/themes/minimal.theme.ts +158 -0
  124. package/src/templates/themes/modern.theme.ts +124 -0
  125. package/src/templates/themes/monokai.theme.ts +117 -0
  126. package/src/templates/themes/neobrutal.theme.ts +94 -0
  127. package/src/templates/themes/ocean.theme.ts +93 -0
  128. package/src/templates/themes/pastel.theme.ts +92 -0
  129. package/src/templates/themes/sunset.theme.ts +93 -0
  130. package/src/templates/themes/system.theme.ts +92 -0
  131. package/src/templates/themes/theme.interface.ts +95 -0
  132. package/src/tests/template.service.test.ts +1 -0
@@ -3,79 +3,114 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ModernTheme = void 0;
4
4
  const theme_enum_1 = require("../../core/enums/theme.enum");
5
5
  class ModernTheme {
6
- constructor() {
7
- this.id = theme_enum_1.ThemeType.MODERN;
8
- this.name = 'Modern';
9
- this.light = {
10
- primary: '#0f172a',
11
- secondary: '#64748b',
12
- background: '#ffffff',
13
- text: '#0f172a',
14
- textMuted: '#64748b',
15
- border: '#e2e8f0',
16
- success: '#10b981',
17
- error: '#ef4444',
18
- warning: '#f59e0b'
19
- };
20
- this.dark = {
21
- primary: '#38bdf8',
22
- secondary: '#94a3b8',
23
- background: '#0f172a',
24
- text: '#f1f5f9',
25
- textMuted: '#94a3b8',
26
- border: '#1e293b',
27
- success: '#34d399',
28
- error: '#f87171',
29
- warning: '#fbbf24'
30
- };
31
- this.typography = {
32
- fontFamily: '"Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif',
33
- fontSizes: {
34
- small: '13px',
35
- medium: '15px',
36
- large: '17px',
37
- xlarge: '24px'
38
- },
39
- fontWeights: {
40
- normal: 400,
41
- medium: 500,
42
- bold: 600
43
- }
44
- };
45
- this.spacing = {
46
- xs: '6px',
47
- sm: '12px',
48
- md: '20px',
49
- lg: '32px',
50
- xl: '48px'
51
- };
52
- this.gradients = {
53
- primary: 'linear-gradient(135deg, #0f172a 0%, #1e293b 100%)',
54
- secondary: 'linear-gradient(135deg, #64748b 0%, #94a3b8 100%)',
55
- accent: 'linear-gradient(135deg, #38bdf8 0%, #0f172a 100%)',
56
- dark: 'linear-gradient(135deg, #0f172a 0%, #020617 100%)',
57
- light: 'linear-gradient(135deg, #f8fafc 0%, #ffffff 100%)'
58
- };
59
- this.borderStyle = {
60
- radius: {
61
- small: '8px',
62
- medium: '12px',
63
- large: '16px',
64
- full: '9999px'
65
- },
66
- width: '1px',
67
- style: 'solid'
68
- };
69
- this.glassmorphism = {
70
- light: 'rgba(255, 255, 255, 0.8)',
71
- dark: 'rgba(15, 23, 42, 0.8)',
72
- blur: '12px'
73
- };
74
- this.animations = {
75
- hover: 'transform 0.2s ease, box-shadow 0.2s ease',
76
- fade: 'opacity 0.3s ease',
77
- slide: 'transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)'
78
- };
79
- }
6
+ id = theme_enum_1.ThemeType.MODERN;
7
+ name = 'Modern';
8
+ light = {
9
+ primary: '#0f172a',
10
+ secondary: '#64748b',
11
+ background: '#ffffff',
12
+ text: '#0f172a',
13
+ textMuted: '#64748b',
14
+ border: '#e2e8f0',
15
+ success: '#10b981',
16
+ error: '#ef4444',
17
+ warning: '#f59e0b'
18
+ };
19
+ dark = {
20
+ primary: '#38bdf8',
21
+ secondary: '#94a3b8',
22
+ background: '#0f172a',
23
+ text: '#f1f5f9',
24
+ textMuted: '#94a3b8',
25
+ border: '#1e293b',
26
+ success: '#34d399',
27
+ error: '#f87171',
28
+ warning: '#fbbf24'
29
+ };
30
+ typography = {
31
+ fontFamily: '"Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif',
32
+ fontSizes: {
33
+ small: '13px',
34
+ medium: '15px',
35
+ large: '17px',
36
+ xlarge: '24px'
37
+ },
38
+ fontWeights: {
39
+ normal: 400,
40
+ medium: 500,
41
+ bold: 600
42
+ }
43
+ };
44
+ spacing = {
45
+ xs: '6px',
46
+ sm: '12px',
47
+ md: '20px',
48
+ lg: '32px',
49
+ xl: '48px'
50
+ };
51
+ emailStyles = {
52
+ maxWidthPx: 600,
53
+ container: {
54
+ borderColor: 'border',
55
+ borderWidth: '1px',
56
+ borderRadius: '12px',
57
+ boxShadow: 'none'
58
+ },
59
+ header: {
60
+ accentColor: 'primary',
61
+ accentWidth: '3px',
62
+ horizontalPadding: '24px',
63
+ logoColor: 'primary',
64
+ logoFontFamily: '"Inter", "Segoe UI", sans-serif',
65
+ logoLetterSpacing: '0.02em',
66
+ imageBorderRadius: '8px'
67
+ },
68
+ body: {
69
+ accentColor: 'primary',
70
+ accentWidth: '2px',
71
+ borderRadius: '8px',
72
+ boxShadow: 'none',
73
+ horizontalPadding: '24px',
74
+ lineHeight: 1.55
75
+ },
76
+ button: {
77
+ appearance: 'solid',
78
+ borderRadius: '8px',
79
+ borderWidth: '1px',
80
+ boxShadow: 'none',
81
+ letterSpacing: '0.01em'
82
+ },
83
+ footer: {
84
+ accentColor: 'secondary',
85
+ accentWidth: '1px'
86
+ }
87
+ };
88
+ gradients = {
89
+ primary: 'linear-gradient(135deg, #0f172a 0%, #1e293b 100%)',
90
+ secondary: 'linear-gradient(135deg, #64748b 0%, #94a3b8 100%)',
91
+ accent: 'linear-gradient(135deg, #38bdf8 0%, #0f172a 100%)',
92
+ dark: 'linear-gradient(135deg, #0f172a 0%, #020617 100%)',
93
+ light: 'linear-gradient(135deg, #f8fafc 0%, #ffffff 100%)'
94
+ };
95
+ borderStyle = {
96
+ radius: {
97
+ small: '8px',
98
+ medium: '12px',
99
+ large: '16px',
100
+ full: '9999px'
101
+ },
102
+ width: '1px',
103
+ style: 'solid'
104
+ };
105
+ glassmorphism = {
106
+ light: 'rgba(255, 255, 255, 0.8)',
107
+ dark: 'rgba(15, 23, 42, 0.8)',
108
+ blur: '12px'
109
+ };
110
+ animations = {
111
+ hover: 'transform 0.2s ease, box-shadow 0.2s ease',
112
+ fade: 'opacity 0.3s ease',
113
+ slide: 'transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)'
114
+ };
80
115
  }
81
116
  exports.ModernTheme = ModernTheme;
@@ -1,5 +1,5 @@
1
1
  import { ThemeType } from '../../core/enums/theme.enum';
2
- import { ITheme, IThemeColors, ITypography, ISpacing } from './theme.interface';
2
+ import { ITheme, IThemeColors, ITypography, ISpacing, IThemeEmailStyles } from './theme.interface';
3
3
  export declare class MonokaiTheme implements ITheme {
4
4
  id: ThemeType;
5
5
  name: string;
@@ -25,5 +25,6 @@ export declare class MonokaiTheme implements ITheme {
25
25
  shadow: string;
26
26
  transition: string;
27
27
  };
28
+ emailStyles: IThemeEmailStyles;
28
29
  }
29
30
  //# sourceMappingURL=monokai.theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"monokai.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/monokai.theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEhF,qBAAa,YAAa,YAAW,MAAM;IACzC,EAAE,YAAqB;IACvB,IAAI,SAAa;IAEjB,KAAK,EAAE,YAAY,CAUjB;IAEF,IAAI,EAAE,YAAY,CAUhB;IAEF,UAAU,EAAE,WAAW,CAarB;IAEF,OAAO,EAAE,QAAQ,CAMf;IAGF,aAAa;;;;;;;MAOX;IAGF,WAAW;;;;MAIT;IAEF,OAAO;;;;MAIL;CACH"}
1
+ {"version":3,"file":"monokai.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/monokai.theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEnG,qBAAa,YAAa,YAAW,MAAM;IACzC,EAAE,YAAqB;IACvB,IAAI,SAAa;IAEjB,KAAK,EAAE,YAAY,CAUjB;IAEF,IAAI,EAAE,YAAY,CAUhB;IAEF,UAAU,EAAE,WAAW,CAarB;IAEF,OAAO,EAAE,QAAQ,CAMf;IAGF,aAAa;;;;;;;MAOX;IAGF,WAAW;;;;MAIT;IAEF,OAAO;;;;MAIL;IAEF,WAAW,EAAE,iBAAiB,CAqC5B;CACH"}
@@ -3,71 +3,107 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MonokaiTheme = void 0;
4
4
  const theme_enum_1 = require("../../core/enums/theme.enum");
5
5
  class MonokaiTheme {
6
- constructor() {
7
- this.id = theme_enum_1.ThemeType.MONOKAI;
8
- this.name = 'Monokai';
9
- this.light = {
10
- primary: '#f92672',
11
- secondary: '#a6e22e',
12
- background: '#f9f9f9',
13
- text: '#272822',
14
- textMuted: '#75715e',
15
- border: '#e5e5e5',
16
- success: '#a6e22e',
17
- error: '#f92672',
18
- warning: '#fd971f'
19
- };
20
- this.dark = {
21
- primary: '#f92672',
22
- secondary: '#a6e22e',
23
- background: '#272822',
24
- text: '#f8f8f2',
25
- textMuted: '#75715e',
26
- border: '#3e3d32',
27
- success: '#a6e22e',
28
- error: '#f92672',
29
- warning: '#fd971f'
30
- };
31
- this.typography = {
32
- fontFamily: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
33
- fontSizes: {
34
- small: '12px',
35
- medium: '14px',
36
- large: '16px',
37
- xlarge: '20px'
38
- },
39
- fontWeights: {
40
- normal: 400,
41
- medium: 500,
42
- bold: 700
43
- }
44
- };
45
- this.spacing = {
46
- xs: '4px',
47
- sm: '8px',
48
- md: '16px',
49
- lg: '24px',
50
- xl: '32px'
51
- };
52
- // cores adicionais
53
- this.codeHighlight = {
54
- comment: '#75715e',
55
- keyword: '#f92672',
56
- string: '#e6db74',
57
- number: '#ae81ff',
58
- function: '#a6e22e',
59
- variable: '#fd971f'
60
- };
61
- this.borderStyle = {
62
- radius: '4px',
63
- width: '2px',
64
- style: 'solid'
65
- };
66
- this.effects = {
67
- glow: '0 0 10px rgba(249, 38, 114, 0.3)',
68
- shadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
69
- transition: 'all 0.3s ease'
70
- };
71
- }
6
+ id = theme_enum_1.ThemeType.MONOKAI;
7
+ name = 'Monokai';
8
+ light = {
9
+ primary: '#f92672',
10
+ secondary: '#a6e22e',
11
+ background: '#f9f9f9',
12
+ text: '#272822',
13
+ textMuted: '#75715e',
14
+ border: '#e5e5e5',
15
+ success: '#a6e22e',
16
+ error: '#f92672',
17
+ warning: '#fd971f'
18
+ };
19
+ dark = {
20
+ primary: '#f92672',
21
+ secondary: '#a6e22e',
22
+ background: '#272822',
23
+ text: '#f8f8f2',
24
+ textMuted: '#75715e',
25
+ border: '#3e3d32',
26
+ success: '#a6e22e',
27
+ error: '#f92672',
28
+ warning: '#fd971f'
29
+ };
30
+ typography = {
31
+ fontFamily: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
32
+ fontSizes: {
33
+ small: '12px',
34
+ medium: '14px',
35
+ large: '16px',
36
+ xlarge: '20px'
37
+ },
38
+ fontWeights: {
39
+ normal: 400,
40
+ medium: 500,
41
+ bold: 700
42
+ }
43
+ };
44
+ spacing = {
45
+ xs: '4px',
46
+ sm: '8px',
47
+ md: '16px',
48
+ lg: '24px',
49
+ xl: '32px'
50
+ };
51
+ // cores adicionais
52
+ codeHighlight = {
53
+ comment: '#75715e',
54
+ keyword: '#f92672',
55
+ string: '#e6db74',
56
+ number: '#ae81ff',
57
+ function: '#a6e22e',
58
+ variable: '#fd971f'
59
+ };
60
+ borderStyle = {
61
+ radius: '4px',
62
+ width: '2px',
63
+ style: 'solid'
64
+ };
65
+ effects = {
66
+ glow: '0 0 10px rgba(249, 38, 114, 0.3)',
67
+ shadow: '0 4px 6px rgba(0, 0, 0, 0.1)',
68
+ transition: 'all 0.3s ease'
69
+ };
70
+ emailStyles = {
71
+ maxWidthPx: 600,
72
+ container: {
73
+ borderColor: 'border',
74
+ borderWidth: '1px',
75
+ borderRadius: '4px',
76
+ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.08)'
77
+ },
78
+ header: {
79
+ accentColor: 'primary',
80
+ accentWidth: '3px',
81
+ horizontalPadding: '24px',
82
+ logoColor: 'text',
83
+ logoFontFamily: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
84
+ logoLetterSpacing: '0.02em',
85
+ imageBorderRadius: '3px'
86
+ },
87
+ body: {
88
+ accentColor: 'secondary',
89
+ accentWidth: '2px',
90
+ borderRadius: '4px',
91
+ boxShadow: 'none',
92
+ horizontalPadding: '24px',
93
+ lineHeight: 1.6
94
+ },
95
+ button: {
96
+ appearance: 'solid',
97
+ borderRadius: '3px',
98
+ borderWidth: '1px',
99
+ boxShadow: 'none',
100
+ textTransform: 'uppercase',
101
+ letterSpacing: '0.04em'
102
+ },
103
+ footer: {
104
+ accentColor: 'secondary',
105
+ accentWidth: '2px'
106
+ }
107
+ };
72
108
  }
73
109
  exports.MonokaiTheme = MonokaiTheme;
@@ -0,0 +1,12 @@
1
+ import { ThemeType } from '../../core/enums/theme.enum';
2
+ import { ITheme, IThemeColors, ITypography, ISpacing, IThemeEmailStyles } from './theme.interface';
3
+ export declare class NeoBrutalTheme implements ITheme {
4
+ id: ThemeType;
5
+ name: string;
6
+ light: IThemeColors;
7
+ dark: IThemeColors;
8
+ typography: ITypography;
9
+ spacing: ISpacing;
10
+ emailStyles: IThemeEmailStyles;
11
+ }
12
+ //# sourceMappingURL=neobrutal.theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"neobrutal.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/neobrutal.theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEnG,qBAAa,cAAe,YAAW,MAAM;IAC3C,EAAE,YAAuB;IACzB,IAAI,SAAgB;IAEpB,KAAK,EAAE,YAAY,CAUjB;IAEF,IAAI,EAAE,YAAY,CAUhB;IAEF,UAAU,EAAE,WAAW,CAarB;IAEF,OAAO,EAAE,QAAQ,CAMf;IAEF,WAAW,EAAE,iBAAiB,CAsC5B;CACH"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NeoBrutalTheme = void 0;
4
+ const theme_enum_1 = require("../../core/enums/theme.enum");
5
+ class NeoBrutalTheme {
6
+ id = theme_enum_1.ThemeType.NEOBRUTAL;
7
+ name = 'Neo Brutal';
8
+ light = {
9
+ primary: '#1745C6',
10
+ secondary: '#FFD400',
11
+ background: '#FFFFFF',
12
+ text: '#111111',
13
+ textMuted: '#505050',
14
+ border: '#767676',
15
+ success: '#146C2E',
16
+ error: '#B42318',
17
+ warning: '#805B00'
18
+ };
19
+ dark = {
20
+ primary: '#FFD400',
21
+ secondary: '#4F7DFF',
22
+ background: '#111111',
23
+ text: '#FAFAFA',
24
+ textMuted: '#C4C4C4',
25
+ border: '#777777',
26
+ success: '#75D99A',
27
+ error: '#FF8B82',
28
+ warning: '#FFD166'
29
+ };
30
+ typography = {
31
+ fontFamily: 'Arial, Helvetica, "Liberation Sans", sans-serif',
32
+ fontSizes: {
33
+ small: '14px',
34
+ medium: '16px',
35
+ large: '20px',
36
+ xlarge: '28px'
37
+ },
38
+ fontWeights: {
39
+ normal: 400,
40
+ medium: 600,
41
+ bold: 800
42
+ }
43
+ };
44
+ spacing = {
45
+ xs: '4px',
46
+ sm: '8px',
47
+ md: '16px',
48
+ lg: '24px',
49
+ xl: '36px'
50
+ };
51
+ emailStyles = {
52
+ maxWidthPx: 600,
53
+ container: {
54
+ borderColor: 'border',
55
+ borderWidth: '3px',
56
+ borderRadius: '0',
57
+ boxShadow: 'none'
58
+ },
59
+ header: {
60
+ accentColor: 'primary',
61
+ accentWidth: '8px',
62
+ horizontalPadding: '24px',
63
+ logoColor: 'text',
64
+ logoFontFamily: 'Arial, Helvetica, "Liberation Sans", sans-serif',
65
+ logoTextTransform: 'uppercase',
66
+ logoLetterSpacing: '0.04em',
67
+ imageBorderRadius: '0'
68
+ },
69
+ body: {
70
+ accentColor: 'secondary',
71
+ accentWidth: '4px',
72
+ borderRadius: '0',
73
+ boxShadow: 'none',
74
+ horizontalPadding: '28px',
75
+ lineHeight: 1.55
76
+ },
77
+ button: {
78
+ appearance: 'solid',
79
+ borderRadius: '0',
80
+ borderWidth: '3px',
81
+ boxShadow: 'none',
82
+ textTransform: 'uppercase',
83
+ letterSpacing: '0.04em'
84
+ },
85
+ footer: {
86
+ accentColor: 'border',
87
+ accentWidth: '2px'
88
+ }
89
+ };
90
+ }
91
+ exports.NeoBrutalTheme = NeoBrutalTheme;
@@ -0,0 +1,12 @@
1
+ import { ThemeType } from '../../core/enums/theme.enum';
2
+ import { ITheme, IThemeColors, ITypography, ISpacing, IThemeEmailStyles } from './theme.interface';
3
+ export declare class OceanTheme implements ITheme {
4
+ id: ThemeType;
5
+ name: string;
6
+ light: IThemeColors;
7
+ dark: IThemeColors;
8
+ typography: ITypography;
9
+ spacing: ISpacing;
10
+ emailStyles: IThemeEmailStyles;
11
+ }
12
+ //# sourceMappingURL=ocean.theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ocean.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/ocean.theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEnG,qBAAa,UAAW,YAAW,MAAM;IACvC,EAAE,YAAmB;IACrB,IAAI,SAAW;IAEf,KAAK,EAAE,YAAY,CAUjB;IAEF,IAAI,EAAE,YAAY,CAUhB;IAEF,UAAU,EAAE,WAAW,CAarB;IAEF,OAAO,EAAE,QAAQ,CAMf;IAEF,WAAW,EAAE,iBAAiB,CAqC5B;CACH"}
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OceanTheme = void 0;
4
+ const theme_enum_1 = require("../../core/enums/theme.enum");
5
+ class OceanTheme {
6
+ id = theme_enum_1.ThemeType.OCEAN;
7
+ name = 'Ocean';
8
+ light = {
9
+ primary: '#075985',
10
+ secondary: '#0E7490',
11
+ background: '#F4FAFC',
12
+ text: '#102A43',
13
+ textMuted: '#486581',
14
+ border: '#C7DCE5',
15
+ success: '#166534',
16
+ error: '#B42318',
17
+ warning: '#92400E'
18
+ };
19
+ dark = {
20
+ primary: '#67E8F9',
21
+ secondary: '#5EEAD4',
22
+ background: '#071B2B',
23
+ text: '#E6F4F7',
24
+ textMuted: '#A6C8D1',
25
+ border: '#244657',
26
+ success: '#6EE7B7',
27
+ error: '#FDA4AF',
28
+ warning: '#FCD34D'
29
+ };
30
+ typography = {
31
+ fontFamily: 'Arial, Helvetica, sans-serif',
32
+ fontSizes: {
33
+ small: '14px',
34
+ medium: '16px',
35
+ large: '18px',
36
+ xlarge: '26px'
37
+ },
38
+ fontWeights: {
39
+ normal: 400,
40
+ medium: 500,
41
+ bold: 600
42
+ }
43
+ };
44
+ spacing = {
45
+ xs: '4px',
46
+ sm: '8px',
47
+ md: '16px',
48
+ lg: '24px',
49
+ xl: '36px'
50
+ };
51
+ emailStyles = {
52
+ maxWidthPx: 600,
53
+ container: {
54
+ borderColor: 'border',
55
+ borderWidth: '1px',
56
+ borderRadius: '12px',
57
+ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.08)'
58
+ },
59
+ header: {
60
+ accentColor: 'secondary',
61
+ accentWidth: '4px',
62
+ horizontalPadding: '28px',
63
+ logoColor: 'primary',
64
+ logoFontFamily: 'Arial, Helvetica, sans-serif',
65
+ logoLetterSpacing: '0.02em',
66
+ imageBorderRadius: '8px'
67
+ },
68
+ body: {
69
+ accentColor: 'primary',
70
+ accentWidth: '3px',
71
+ borderRadius: '8px',
72
+ boxShadow: '0 1px 4px rgba(0, 0, 0, 0.06)',
73
+ horizontalPadding: '28px',
74
+ lineHeight: 1.6
75
+ },
76
+ button: {
77
+ appearance: 'solid',
78
+ borderRadius: '6px',
79
+ borderWidth: '1px',
80
+ boxShadow: 'none',
81
+ textTransform: 'none',
82
+ letterSpacing: '0.01em'
83
+ },
84
+ footer: {
85
+ accentColor: 'secondary',
86
+ accentWidth: '2px'
87
+ }
88
+ };
89
+ }
90
+ exports.OceanTheme = OceanTheme;
@@ -0,0 +1,12 @@
1
+ import { ThemeType } from '../../core/enums/theme.enum';
2
+ import { ITheme, IThemeColors, ITypography, ISpacing, IThemeEmailStyles } from './theme.interface';
3
+ export declare class PastelTheme implements ITheme {
4
+ id: ThemeType;
5
+ name: string;
6
+ light: IThemeColors;
7
+ dark: IThemeColors;
8
+ typography: ITypography;
9
+ spacing: ISpacing;
10
+ emailStyles: IThemeEmailStyles;
11
+ }
12
+ //# sourceMappingURL=pastel.theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pastel.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/pastel.theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEnG,qBAAa,WAAY,YAAW,MAAM;IACxC,EAAE,YAAoB;IACtB,IAAI,SAAY;IAEhB,KAAK,EAAE,YAAY,CAUjB;IAEF,IAAI,EAAE,YAAY,CAUhB;IAEF,UAAU,EAAE,WAAW,CAarB;IAEF,OAAO,EAAE,QAAQ,CAMf;IAEF,WAAW,EAAE,iBAAiB,CAoC5B;CACH"}