@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
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlassTheme = void 0;
4
+ const theme_enum_1 = require("../../core/enums/theme.enum");
5
+ class GlassTheme {
6
+ id = theme_enum_1.ThemeType.GLASS;
7
+ name = 'Glass';
8
+ light = {
9
+ primary: '#155E91',
10
+ secondary: '#526B7D',
11
+ background: '#F3F7FA',
12
+ text: '#183043',
13
+ textMuted: '#526B7D',
14
+ border: '#C9D7E1',
15
+ success: '#176B50',
16
+ error: '#A8323E',
17
+ warning: '#805400'
18
+ };
19
+ dark = {
20
+ primary: '#83CEF5',
21
+ secondary: '#B0C5D4',
22
+ background: '#12202D',
23
+ text: '#EDF5FA',
24
+ textMuted: '#B0C5D4',
25
+ border: '#344B5D',
26
+ success: '#71D2A9',
27
+ error: '#FF9297',
28
+ warning: '#FFD078'
29
+ };
30
+ typography = {
31
+ fontFamily: 'Arial, Helvetica, "Segoe UI", 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: 700
42
+ }
43
+ };
44
+ spacing = {
45
+ xs: '6px',
46
+ sm: '12px',
47
+ md: '20px',
48
+ lg: '30px',
49
+ xl: '44px'
50
+ };
51
+ emailStyles = {
52
+ maxWidthPx: 600,
53
+ container: {
54
+ borderColor: 'border',
55
+ borderWidth: '1px',
56
+ borderRadius: '12px',
57
+ boxShadow: '0 2px 8px rgba(24, 48, 67, 0.08)'
58
+ },
59
+ header: {
60
+ accentColor: 'primary',
61
+ accentWidth: '3px',
62
+ horizontalPadding: '28px',
63
+ logoColor: 'primary',
64
+ logoLetterSpacing: '0.04em',
65
+ imageBorderRadius: '6px'
66
+ },
67
+ body: {
68
+ accentColor: 'secondary',
69
+ accentWidth: '2px',
70
+ borderRadius: '8px',
71
+ boxShadow: 'none',
72
+ horizontalPadding: '28px',
73
+ lineHeight: 1.6
74
+ },
75
+ button: {
76
+ appearance: 'outline',
77
+ borderRadius: '6px',
78
+ borderWidth: '1px',
79
+ boxShadow: 'none',
80
+ letterSpacing: '0.02em'
81
+ },
82
+ footer: {
83
+ accentColor: 'border',
84
+ accentWidth: '1px'
85
+ }
86
+ };
87
+ }
88
+ exports.GlassTheme = GlassTheme;
@@ -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 LavenderTheme 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=lavender.theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lavender.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/lavender.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,aAAc,YAAW,MAAM;IAC1C,EAAE,YAAsB;IACxB,IAAI,SAAc;IAElB,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.LavenderTheme = void 0;
4
+ const theme_enum_1 = require("../../core/enums/theme.enum");
5
+ class LavenderTheme {
6
+ id = theme_enum_1.ThemeType.LAVENDER;
7
+ name = 'Lavender';
8
+ light = {
9
+ primary: '#623B8C',
10
+ secondary: '#8A4F68',
11
+ background: '#FCFAFF',
12
+ text: '#241B2B',
13
+ textMuted: '#62596A',
14
+ border: '#D9CFE2',
15
+ success: '#246B4A',
16
+ error: '#A12F45',
17
+ warning: '#815400'
18
+ };
19
+ dark = {
20
+ primary: '#D7B8FF',
21
+ secondary: '#F0B5CA',
22
+ background: '#17121F',
23
+ text: '#F7F1FC',
24
+ textMuted: '#C3B8CC',
25
+ border: '#51465C',
26
+ success: '#8BD6AD',
27
+ error: '#FF9EAE',
28
+ warning: '#FFD27A'
29
+ };
30
+ typography = {
31
+ fontFamily: 'Arial, "Segoe UI", system-ui, 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: '6px',
46
+ sm: '12px',
47
+ md: '20px',
48
+ lg: '30px',
49
+ xl: '44px'
50
+ };
51
+ emailStyles = {
52
+ maxWidthPx: 600,
53
+ container: {
54
+ borderColor: 'border',
55
+ borderWidth: '1px',
56
+ borderRadius: '16px',
57
+ boxShadow: 'none'
58
+ },
59
+ header: {
60
+ accentColor: 'primary',
61
+ accentWidth: '3px',
62
+ horizontalPadding: '28px',
63
+ logoColor: 'primary',
64
+ logoFontFamily: 'Arial, "Segoe UI", system-ui, sans-serif',
65
+ logoTextTransform: 'none',
66
+ logoLetterSpacing: '0.02em',
67
+ imageBorderRadius: '12px'
68
+ },
69
+ body: {
70
+ accentColor: 'secondary',
71
+ accentWidth: '2px',
72
+ borderRadius: '12px',
73
+ boxShadow: 'none',
74
+ horizontalPadding: '28px',
75
+ lineHeight: 1.65
76
+ },
77
+ button: {
78
+ appearance: 'solid',
79
+ borderRadius: '10px',
80
+ borderWidth: '1px',
81
+ boxShadow: 'none',
82
+ textTransform: 'none',
83
+ letterSpacing: '0.01em'
84
+ },
85
+ footer: {
86
+ accentColor: 'secondary',
87
+ accentWidth: '2px'
88
+ }
89
+ };
90
+ }
91
+ exports.LavenderTheme = LavenderTheme;
@@ -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 MidnightTheme 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=midnight.theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"midnight.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/midnight.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,aAAc,YAAW,MAAM;IAC1C,EAAE,YAAsB;IACxB,IAAI,SAAc;IAElB,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.MidnightTheme = void 0;
4
+ const theme_enum_1 = require("../../core/enums/theme.enum");
5
+ class MidnightTheme {
6
+ id = theme_enum_1.ThemeType.MIDNIGHT;
7
+ name = 'Midnight';
8
+ light = {
9
+ primary: '#72551F',
10
+ secondary: '#655B49',
11
+ background: '#FFFCF5',
12
+ text: '#20232B',
13
+ textMuted: '#5B5D62',
14
+ border: '#D9D2C4',
15
+ success: '#286447',
16
+ error: '#A33138',
17
+ warning: '#795000'
18
+ };
19
+ dark = {
20
+ primary: '#E6C982',
21
+ secondary: '#C7B991',
22
+ background: '#11151D',
23
+ text: '#F5F1E8',
24
+ textMuted: '#C2BEAF',
25
+ border: '#3A3B3B',
26
+ success: '#82C99C',
27
+ error: '#F08A8D',
28
+ warning: '#F0C66A'
29
+ };
30
+ typography = {
31
+ fontFamily: 'Georgia, "Times New Roman", serif',
32
+ fontSizes: {
33
+ small: '14px',
34
+ medium: '16px',
35
+ large: '19px',
36
+ xlarge: '28px'
37
+ },
38
+ fontWeights: {
39
+ normal: 400,
40
+ medium: 500,
41
+ bold: 700
42
+ }
43
+ };
44
+ spacing = {
45
+ xs: '4px',
46
+ sm: '10px',
47
+ md: '18px',
48
+ lg: '28px',
49
+ xl: '44px'
50
+ };
51
+ emailStyles = {
52
+ maxWidthPx: 600,
53
+ container: {
54
+ borderColor: 'border',
55
+ borderWidth: '1px',
56
+ borderRadius: '4px',
57
+ boxShadow: 'none'
58
+ },
59
+ header: {
60
+ accentColor: 'primary',
61
+ accentWidth: '3px',
62
+ horizontalPadding: '32px',
63
+ logoColor: 'primary',
64
+ logoFontFamily: 'Georgia, "Times New Roman", serif',
65
+ logoTextTransform: 'none',
66
+ logoLetterSpacing: '0.04em',
67
+ imageBorderRadius: '2px'
68
+ },
69
+ body: {
70
+ accentColor: 'secondary',
71
+ accentWidth: '1px',
72
+ borderRadius: '4px',
73
+ boxShadow: 'none',
74
+ horizontalPadding: '32px',
75
+ lineHeight: 1.65
76
+ },
77
+ button: {
78
+ appearance: 'outline',
79
+ borderRadius: '2px',
80
+ borderWidth: '1px',
81
+ boxShadow: 'none',
82
+ textTransform: 'uppercase',
83
+ letterSpacing: '0.08em'
84
+ },
85
+ footer: {
86
+ accentColor: 'secondary',
87
+ accentWidth: '1px'
88
+ }
89
+ };
90
+ }
91
+ exports.MidnightTheme = MidnightTheme;
@@ -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 MinimalTheme implements ITheme {
4
4
  id: ThemeType;
5
5
  name: string;
@@ -7,6 +7,7 @@ export declare class MinimalTheme implements ITheme {
7
7
  dark: IThemeColors;
8
8
  typography: ITypography;
9
9
  spacing: ISpacing;
10
+ emailStyles: IThemeEmailStyles;
10
11
  minimalColors: {
11
12
  white: string;
12
13
  black: string;
@@ -1 +1 @@
1
- {"version":3,"file":"minimal.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/minimal.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;;;;;;;;;;;;MAYX;IAEF,WAAW;;;;;;;;;;;;;MAaT;IAEF,OAAO;;;;;;;MAOL;IAEF,MAAM;;;;;;MAMJ;IAEF,YAAY;;;;;;;;;;;;;;;;MAgBV;CACH"}
1
+ {"version":3,"file":"minimal.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/minimal.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;IAEF,WAAW,EAAE,iBAAiB,CAoC5B;IAGF,aAAa;;;;;;;;;;;;MAYX;IAEF,WAAW;;;;;;;;;;;;;MAaT;IAEF,OAAO;;;;;;;MAOL;IAEF,MAAM;;;;;;MAMJ;IAEF,YAAY;;;;;;;;;;;;;;;;MAgBV;CACH"}
@@ -3,112 +3,147 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MinimalTheme = void 0;
4
4
  const theme_enum_1 = require("../../core/enums/theme.enum");
5
5
  class MinimalTheme {
6
- constructor() {
7
- this.id = theme_enum_1.ThemeType.MINIMAL;
8
- this.name = 'Minimal';
9
- this.light = {
10
- primary: '#000000',
11
- secondary: '#404040',
12
- background: '#ffffff',
13
- text: '#111111',
14
- textMuted: '#666666',
15
- border: '#e5e5e5',
16
- success: '#22c55e',
17
- error: '#ef4444',
18
- warning: '#f97316'
19
- };
20
- this.dark = {
21
- primary: '#ffffff',
22
- secondary: '#a3a3a3',
23
- background: '#000000',
24
- text: '#ffffff',
25
- textMuted: '#737373',
26
- border: '#262626',
27
- success: '#22c55e',
28
- error: '#ef4444',
29
- warning: '#f97316'
30
- };
31
- this.typography = {
32
- fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
33
- fontSizes: {
34
- small: '13px',
35
- medium: '15px',
36
- large: '17px',
37
- xlarge: '21px'
38
- },
39
- fontWeights: {
40
- normal: 400,
41
- medium: 500,
42
- bold: 600
43
- }
44
- };
45
- this.spacing = {
46
- xs: '8px',
47
- sm: '16px',
48
- md: '24px',
49
- lg: '32px',
50
- xl: '48px'
51
- };
52
- // cores minimalistas
53
- this.minimalColors = {
54
- white: '#ffffff',
55
- black: '#000000',
56
- gray100: '#f5f5f5',
57
- gray200: '#e5e5e5',
58
- gray300: '#d4d4d4',
59
- gray400: '#a3a3a3',
60
- gray500: '#737373',
61
- gray600: '#525252',
62
- gray700: '#404040',
63
- gray800: '#262626',
64
- gray900: '#171717'
65
- };
66
- this.borderStyle = {
67
- radius: {
68
- none: '0px',
69
- small: '2px',
70
- medium: '4px',
71
- large: '8px',
72
- full: '9999px'
73
- },
74
- width: {
75
- thin: '1px',
76
- medium: '2px'
77
- },
78
- style: 'solid'
79
- };
80
- this.effects = {
81
- shadow: 'none',
82
- transition: 'all 0.2s ease',
83
- opacity: {
84
- hover: '0.7',
85
- disabled: '0.5'
86
- }
87
- };
88
- this.layout = {
89
- maxWidth: '640px',
90
- contentWidth: '560px',
91
- spacingMultiplier: 1.5,
92
- lineHeight: 1.6,
93
- paragraphSpacing: '1.5em'
94
- };
95
- this.designSystem = {
96
- grid: {
97
- columns: 12,
98
- gutter: '20px',
99
- margin: '20px'
100
- },
101
- breakpoints: {
102
- mobile: '480px',
103
- tablet: '768px',
104
- desktop: '1024px'
105
- },
106
- zIndex: {
107
- base: 1,
108
- overlay: 10,
109
- modal: 100
110
- }
111
- };
112
- }
6
+ id = theme_enum_1.ThemeType.MINIMAL;
7
+ name = 'Minimal';
8
+ light = {
9
+ primary: '#000000',
10
+ secondary: '#404040',
11
+ background: '#ffffff',
12
+ text: '#111111',
13
+ textMuted: '#666666',
14
+ border: '#e5e5e5',
15
+ success: '#22c55e',
16
+ error: '#ef4444',
17
+ warning: '#f97316'
18
+ };
19
+ dark = {
20
+ primary: '#ffffff',
21
+ secondary: '#a3a3a3',
22
+ background: '#000000',
23
+ text: '#ffffff',
24
+ textMuted: '#737373',
25
+ border: '#262626',
26
+ success: '#22c55e',
27
+ error: '#ef4444',
28
+ warning: '#f97316'
29
+ };
30
+ typography = {
31
+ fontFamily: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
32
+ fontSizes: {
33
+ small: '13px',
34
+ medium: '15px',
35
+ large: '17px',
36
+ xlarge: '21px'
37
+ },
38
+ fontWeights: {
39
+ normal: 400,
40
+ medium: 500,
41
+ bold: 600
42
+ }
43
+ };
44
+ spacing = {
45
+ xs: '8px',
46
+ sm: '16px',
47
+ md: '24px',
48
+ lg: '32px',
49
+ xl: '48px'
50
+ };
51
+ emailStyles = {
52
+ maxWidthPx: 600,
53
+ container: {
54
+ borderColor: 'border',
55
+ borderWidth: '1px',
56
+ borderRadius: '2px',
57
+ boxShadow: 'none'
58
+ },
59
+ header: {
60
+ accentColor: 'primary',
61
+ accentWidth: '2px',
62
+ horizontalPadding: '24px',
63
+ logoColor: 'text',
64
+ logoLetterSpacing: '0.02em',
65
+ imageBorderRadius: '0px'
66
+ },
67
+ body: {
68
+ accentColor: 'border',
69
+ accentWidth: '1px',
70
+ borderRadius: '2px',
71
+ boxShadow: 'none',
72
+ horizontalPadding: '24px',
73
+ lineHeight: 1.6
74
+ },
75
+ button: {
76
+ appearance: 'outline',
77
+ borderRadius: '2px',
78
+ borderWidth: '1px',
79
+ boxShadow: 'none',
80
+ textTransform: 'none',
81
+ letterSpacing: '0.02em'
82
+ },
83
+ footer: {
84
+ accentColor: 'border',
85
+ accentWidth: '1px'
86
+ }
87
+ };
88
+ // cores minimalistas
89
+ minimalColors = {
90
+ white: '#ffffff',
91
+ black: '#000000',
92
+ gray100: '#f5f5f5',
93
+ gray200: '#e5e5e5',
94
+ gray300: '#d4d4d4',
95
+ gray400: '#a3a3a3',
96
+ gray500: '#737373',
97
+ gray600: '#525252',
98
+ gray700: '#404040',
99
+ gray800: '#262626',
100
+ gray900: '#171717'
101
+ };
102
+ borderStyle = {
103
+ radius: {
104
+ none: '0px',
105
+ small: '2px',
106
+ medium: '4px',
107
+ large: '8px',
108
+ full: '9999px'
109
+ },
110
+ width: {
111
+ thin: '1px',
112
+ medium: '2px'
113
+ },
114
+ style: 'solid'
115
+ };
116
+ effects = {
117
+ shadow: 'none',
118
+ transition: 'all 0.2s ease',
119
+ opacity: {
120
+ hover: '0.7',
121
+ disabled: '0.5'
122
+ }
123
+ };
124
+ layout = {
125
+ maxWidth: '640px',
126
+ contentWidth: '560px',
127
+ spacingMultiplier: 1.5,
128
+ lineHeight: 1.6,
129
+ paragraphSpacing: '1.5em'
130
+ };
131
+ designSystem = {
132
+ grid: {
133
+ columns: 12,
134
+ gutter: '20px',
135
+ margin: '20px'
136
+ },
137
+ breakpoints: {
138
+ mobile: '480px',
139
+ tablet: '768px',
140
+ desktop: '1024px'
141
+ },
142
+ zIndex: {
143
+ base: 1,
144
+ overlay: 10,
145
+ modal: 100
146
+ }
147
+ };
113
148
  }
114
149
  exports.MinimalTheme = MinimalTheme;
@@ -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 ModernTheme implements ITheme {
4
4
  id: ThemeType;
5
5
  name: string;
@@ -7,6 +7,7 @@ export declare class ModernTheme implements ITheme {
7
7
  dark: IThemeColors;
8
8
  typography: ITypography;
9
9
  spacing: ISpacing;
10
+ emailStyles: IThemeEmailStyles;
10
11
  gradients: {
11
12
  primary: string;
12
13
  secondary: string;
@@ -1 +1 @@
1
- {"version":3,"file":"modern.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/modern.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,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,SAAS;;;;;;MAMP;IAEF,WAAW;;;;;;;;;MAST;IAEF,aAAa;;;;MAIX;IAEF,UAAU;;;;MAIR;CACH"}
1
+ {"version":3,"file":"modern.theme.d.ts","sourceRoot":"","sources":["../../../src/templates/themes/modern.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,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;IAEF,SAAS;;;;;;MAMP;IAEF,WAAW;;;;;;;;;MAST;IAEF,aAAa;;;;MAIX;IAEF,UAAU;;;;MAIR;CACH"}