easy-email-pro-editor 0.2.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 (89) hide show
  1. package/lib/index.js +13691 -0
  2. package/lib/typings/components/BeacasEditor/InteractiveState/index.d.ts +2 -0
  3. package/lib/typings/components/BeacasEditor/index.d.ts +4 -0
  4. package/lib/typings/components/BeacasEditorProvider/index.d.ts +9 -0
  5. package/lib/typings/components/Elements/BaseElement.d.ts +53 -0
  6. package/lib/typings/components/Elements/atom/Button.d.ts +115 -0
  7. package/lib/typings/components/Elements/atom/Column.d.ts +112 -0
  8. package/lib/typings/components/Elements/atom/Divider.d.ts +53 -0
  9. package/lib/typings/components/Elements/atom/Group.d.ts +48 -0
  10. package/lib/typings/components/Elements/atom/Hero.d.ts +127 -0
  11. package/lib/typings/components/Elements/atom/HtmlNode.d.ts +539 -0
  12. package/lib/typings/components/Elements/atom/Image.d.ts +78 -0
  13. package/lib/typings/components/Elements/atom/LineBreak.d.ts +11 -0
  14. package/lib/typings/components/Elements/atom/Mergetag.d.ts +11 -0
  15. package/lib/typings/components/Elements/atom/Navbar.d.ts +93 -0
  16. package/lib/typings/components/Elements/atom/NavbarLink.d.ts +75 -0
  17. package/lib/typings/components/Elements/atom/Page.d.ts +32 -0
  18. package/lib/typings/components/Elements/atom/Placeholder.d.ts +11 -0
  19. package/lib/typings/components/Elements/atom/Raw.d.ts +12 -0
  20. package/lib/typings/components/Elements/atom/Section.d.ts +156 -0
  21. package/lib/typings/components/Elements/atom/Social.d.ts +67 -0
  22. package/lib/typings/components/Elements/atom/SocialElement.d.ts +110 -0
  23. package/lib/typings/components/Elements/atom/Spacer.d.ts +35 -0
  24. package/lib/typings/components/Elements/atom/Text.d.ts +66 -0
  25. package/lib/typings/components/Elements/atom/Wrapper.d.ts +26 -0
  26. package/lib/typings/components/Elements/atom/index.d.ts +16 -0
  27. package/lib/typings/components/Elements/basic/Button.d.ts +37 -0
  28. package/lib/typings/components/Elements/basic/Column.d.ts +20 -0
  29. package/lib/typings/components/Elements/basic/Divider.d.ts +20 -0
  30. package/lib/typings/components/Elements/basic/Group.d.ts +11 -0
  31. package/lib/typings/components/Elements/basic/Hero.d.ts +21 -0
  32. package/lib/typings/components/Elements/basic/Image.d.ts +28 -0
  33. package/lib/typings/components/Elements/basic/Navbar.d.ts +25 -0
  34. package/lib/typings/components/Elements/basic/Section.d.ts +29 -0
  35. package/lib/typings/components/Elements/basic/Social.d.ts +28 -0
  36. package/lib/typings/components/Elements/basic/Spacer.d.ts +10 -0
  37. package/lib/typings/components/Elements/basic/Text/index.d.ts +5 -0
  38. package/lib/typings/components/Elements/basic/TextList/TextListItem.d.ts +7 -0
  39. package/lib/typings/components/Elements/basic/TextList/index.d.ts +50 -0
  40. package/lib/typings/components/Elements/basic/Wrapper.d.ts +29 -0
  41. package/lib/typings/components/Elements/index.d.ts +11 -0
  42. package/lib/typings/components/HtmlStringToReactNodes/index.d.ts +9 -0
  43. package/lib/typings/components/IframeComponent/index.d.ts +9 -0
  44. package/lib/typings/components/Leaf/index.d.ts +5 -0
  45. package/lib/typings/constants/index.d.ts +18 -0
  46. package/lib/typings/contexts/EdirorPropsContext.d.ts +7 -0
  47. package/lib/typings/contexts/EditorContext.d.ts +17 -0
  48. package/lib/typings/contexts/InteractContext.d.ts +27 -0
  49. package/lib/typings/contexts/index.d.ts +3 -0
  50. package/lib/typings/core/withBeacas.d.ts +3 -0
  51. package/lib/typings/core/withEditorState.d.ts +9 -0
  52. package/lib/typings/core/withElementInteract.d.ts +3 -0
  53. package/lib/typings/hooks/index.d.ts +7 -0
  54. package/lib/typings/hooks/useEditorContext.d.ts +1 -0
  55. package/lib/typings/hooks/useEditorProps.d.ts +2 -0
  56. package/lib/typings/hooks/useEditorState.d.ts +1 -0
  57. package/lib/typings/hooks/useEventCallback.d.ts +1 -0
  58. package/lib/typings/hooks/useForceUpdate.d.ts +4 -0
  59. package/lib/typings/hooks/useRefState.d.ts +2 -0
  60. package/lib/typings/hooks/useSelectedNode.d.ts +5 -0
  61. package/lib/typings/index.d.ts +9 -0
  62. package/lib/typings/typings/custom-types.d.ts +43 -0
  63. package/lib/typings/typings/index.d.ts +77 -0
  64. package/lib/typings/utils/Uploader.d.ts +35 -0
  65. package/lib/typings/utils/classnames.d.ts +1 -0
  66. package/lib/typings/utils/conditionalTag.d.ts +9 -0
  67. package/lib/typings/utils/fonts.d.ts +1 -0
  68. package/lib/typings/utils/formatAttributes.d.ts +1 -0
  69. package/lib/typings/utils/generateMediaQuery.d.ts +6 -0
  70. package/lib/typings/utils/getMediaQuery.d.ts +5 -0
  71. package/lib/typings/utils/index.d.ts +5 -0
  72. package/lib/typings/utils/isDOMElement.d.ts +3 -0
  73. package/lib/typings/utils/isFormatActive.d.ts +3 -0
  74. package/lib/typings/utils/makeLowerBreakpoint.d.ts +1 -0
  75. package/lib/typings/utils/mediaQueries.d.ts +1 -0
  76. package/lib/typings/utils/shorthandParser.d.ts +2 -0
  77. package/lib/typings/utils/suffixCssClasses.d.ts +2 -0
  78. package/lib/typings/utils/toggleFormat.d.ts +3 -0
  79. package/lib/typings/utils/types/boolean.d.ts +12 -0
  80. package/lib/typings/utils/types/color.d.ts +12 -0
  81. package/lib/typings/utils/types/enum.d.ts +13 -0
  82. package/lib/typings/utils/types/helpers/colors.d.ts +2 -0
  83. package/lib/typings/utils/types/index.d.ts +82 -0
  84. package/lib/typings/utils/types/integer.d.ts +12 -0
  85. package/lib/typings/utils/types/string.d.ts +12 -0
  86. package/lib/typings/utils/types/type.d.ts +11 -0
  87. package/lib/typings/utils/types/unit.d.ts +12 -0
  88. package/lib/typings/utils/widthParser.d.ts +6 -0
  89. package/package.json +32 -0
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { LineBreakElement } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class LineBreak extends BaseElement<LineBreakElement> {
5
+ componentType: string;
6
+ static defaultAttributes: {
7
+ "css-class"?: string | undefined;
8
+ "mj-class"?: string | undefined;
9
+ };
10
+ renderElement(): JSX.Element;
11
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { MergetagElement } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class Mergetag extends BaseElement<MergetagElement> {
5
+ componentType: string;
6
+ static defaultAttributes: {
7
+ "css-class"?: string | undefined;
8
+ "mj-class"?: string | undefined;
9
+ };
10
+ renderElement(): JSX.Element;
11
+ }
@@ -0,0 +1,93 @@
1
+ /// <reference types="react" />
2
+ import { NavbarElement } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class Navbar extends BaseElement<NavbarElement> {
5
+ componentType: string;
6
+ static allowedAttributes: {
7
+ align: string;
8
+ "base-url": string;
9
+ hamburger: string;
10
+ "ico-align": string;
11
+ "ico-open": string;
12
+ "ico-close": string;
13
+ "ico-color": string;
14
+ "ico-font-size": string;
15
+ "ico-font-family": string;
16
+ "ico-text-transform": string;
17
+ "ico-padding": string;
18
+ "ico-padding-left": string;
19
+ "ico-padding-top": string;
20
+ "ico-padding-right": string;
21
+ "ico-padding-bottom": string;
22
+ padding: string;
23
+ "padding-left": string;
24
+ "padding-top": string;
25
+ "padding-right": string;
26
+ "padding-bottom": string;
27
+ "ico-text-decoration": string;
28
+ "ico-line-height": string;
29
+ };
30
+ static defaultAttributes: {
31
+ padding?: string | undefined;
32
+ "padding-top"?: string | undefined;
33
+ "padding-bottom"?: string | undefined;
34
+ "padding-left"?: string | undefined;
35
+ "padding-right"?: string | undefined;
36
+ align?: string | undefined;
37
+ hamburger?: string | null | undefined;
38
+ "ico-open"?: string | null | undefined;
39
+ "ico-close"?: string | null | undefined;
40
+ "ico-font-family"?: string | null | undefined;
41
+ "base-url"?: string | null | undefined;
42
+ "ico-align"?: string | undefined;
43
+ "ico-color"?: string | undefined;
44
+ "ico-font-size"?: string | undefined;
45
+ "ico-line-height"?: string | undefined;
46
+ "ico-padding"?: string | undefined;
47
+ "ico-text-decoration"?: string | undefined;
48
+ "ico-text-transform"?: string | undefined;
49
+ "css-class"?: string | undefined;
50
+ "mj-class"?: string | undefined;
51
+ };
52
+ get headStyle(): string;
53
+ getStyles(): {
54
+ div: {
55
+ align: string;
56
+ width: string;
57
+ };
58
+ label: {
59
+ display: string;
60
+ cursor: string;
61
+ "mso-hide": string;
62
+ "user-select": string;
63
+ color: string;
64
+ "font-size": string;
65
+ "font-family": string;
66
+ "text-transform": string;
67
+ "text-decoration": string;
68
+ "line-height": string;
69
+ "padding-top": string;
70
+ "padding-right": string;
71
+ "padding-bottom": string;
72
+ "padding-left": string;
73
+ padding: string;
74
+ };
75
+ trigger: {
76
+ display: string;
77
+ "max-height": string;
78
+ "max-width": string;
79
+ "font-size": string;
80
+ overflow: string;
81
+ };
82
+ icoOpen: {
83
+ "mso-hide": string;
84
+ };
85
+ icoClose: {
86
+ display: string;
87
+ "mso-hide": string;
88
+ };
89
+ };
90
+ renderHamburger(): JSX.Element;
91
+ get navbarBaseUrl(): string;
92
+ renderElement(): JSX.Element;
93
+ }
@@ -0,0 +1,75 @@
1
+ /// <reference types="react" />
2
+ import { Element } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class NavbarLink extends BaseElement<Element> {
5
+ static endingTag: boolean;
6
+ componentType: string;
7
+ static allowedAttributes: {
8
+ color: string;
9
+ "font-family": string;
10
+ "font-size": string;
11
+ "font-style": string;
12
+ "font-weight": string;
13
+ href: string;
14
+ name: string;
15
+ target: string;
16
+ rel: string;
17
+ "letter-spacing": string;
18
+ "line-height": string;
19
+ "padding-bottom": string;
20
+ "padding-left": string;
21
+ "padding-right": string;
22
+ "padding-top": string;
23
+ padding: string;
24
+ "text-decoration": string;
25
+ "text-transform": string;
26
+ };
27
+ static defaultAttributes: {
28
+ padding?: string | undefined;
29
+ "padding-top"?: string | undefined;
30
+ "padding-bottom"?: string | undefined;
31
+ "padding-left"?: string | undefined;
32
+ "padding-right"?: string | undefined;
33
+ color?: string | undefined;
34
+ href?: string | undefined;
35
+ target?: string | undefined;
36
+ "font-family"?: string | undefined;
37
+ "font-size"?: string | undefined;
38
+ "font-style"?: string | undefined;
39
+ "font-weight"?: string | undefined;
40
+ "line-height"?: string | undefined;
41
+ "text-decoration"?: string | undefined;
42
+ "text-transform"?: string | undefined;
43
+ "css-class"?: string | undefined;
44
+ "mj-class"?: string | undefined;
45
+ };
46
+ getStyles(): {
47
+ a: {
48
+ display: string;
49
+ color: string;
50
+ "font-family": string;
51
+ "font-size": string;
52
+ "font-style": string;
53
+ "font-weight": string;
54
+ "letter-spacing": string;
55
+ "line-height": string;
56
+ "text-decoration": string;
57
+ "text-transform": string;
58
+ padding: string;
59
+ "padding-top": string;
60
+ "padding-left": string;
61
+ "padding-right": string;
62
+ "padding-bottom": string;
63
+ };
64
+ td: {
65
+ padding: string;
66
+ "padding-top": string;
67
+ "padding-left": string;
68
+ "padding-right": string;
69
+ "padding-bottom": string;
70
+ };
71
+ };
72
+ get isHorizontal(): boolean;
73
+ renderContent(): JSX.Element;
74
+ renderElement(): JSX.Element;
75
+ }
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import { PageElement } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class Page<T extends PageElement = PageElement> extends BaseElement<T> {
5
+ componentType: string;
6
+ static allowedAttributes: {
7
+ width: string;
8
+ "background-color": string;
9
+ };
10
+ static defaultAttributes: {
11
+ "background-color"?: string | undefined;
12
+ width?: string | undefined;
13
+ "content-background-color"?: string | undefined;
14
+ "link-color"?: string | undefined;
15
+ "link-text-decoration"?: string | undefined;
16
+ "link-font-weight"?: string | undefined;
17
+ "link-font-style"?: string | undefined;
18
+ "margin-top"?: string | undefined;
19
+ "margin-bottom"?: string | undefined;
20
+ "css-class"?: string | undefined;
21
+ "mj-class"?: string | undefined;
22
+ };
23
+ getStyles(): {
24
+ div: {
25
+ "background-color": string;
26
+ };
27
+ };
28
+ getContainerWidth(): string;
29
+ renderContent: () => JSX.Element;
30
+ renderChildrenElement(): JSX.Element;
31
+ renderElement(): JSX.Element;
32
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { LineBreakElement } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class Placeholder extends BaseElement<LineBreakElement> {
5
+ componentType: string;
6
+ static defaultAttributes: {
7
+ "css-class"?: string | undefined;
8
+ "mj-class"?: string | undefined;
9
+ };
10
+ renderElement(): JSX.Element;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { Element, RawElement } from "easy-email-pro-core";
2
+ import React from "react";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class Raw<T extends Element = RawElement> extends BaseElement<T> {
5
+ componentType: string;
6
+ static allowedAttributes: {};
7
+ static defaultAttributes: {
8
+ "css-class"?: string | undefined;
9
+ "mj-class"?: string | undefined;
10
+ };
11
+ renderElement(): React.ReactNode;
12
+ }
@@ -0,0 +1,156 @@
1
+ /// <reference types="react" />
2
+ import { BaseElement } from "../BaseElement";
3
+ import { Element, SectionElement } from "easy-email-pro-core";
4
+ export declare class Section<T extends Element = SectionElement> extends BaseElement<T> {
5
+ componentType: string;
6
+ static allowedAttributes: {
7
+ "background-color": string;
8
+ "background-url": string;
9
+ "background-repeat": string;
10
+ "background-size": string;
11
+ "background-position": string;
12
+ "background-position-x": string;
13
+ "background-position-y": string;
14
+ border: string;
15
+ "border-bottom": string;
16
+ "border-left": string;
17
+ "border-radius": string;
18
+ "border-right": string;
19
+ "border-top": string;
20
+ direction: string;
21
+ "full-width": string;
22
+ padding: string;
23
+ "padding-top": string;
24
+ "padding-bottom": string;
25
+ "padding-left": string;
26
+ "padding-right": string;
27
+ "text-align": string;
28
+ };
29
+ static defaultAttributes: {
30
+ "background-color"?: string | undefined;
31
+ "background-position"?: string | undefined;
32
+ "background-position-x"?: string | undefined;
33
+ "background-position-y"?: string | undefined;
34
+ "background-repeat"?: "repeat" | "no-repeat" | undefined;
35
+ "background-size"?: string | undefined;
36
+ "background-url"?: string | undefined;
37
+ border?: string | undefined;
38
+ "border-radius"?: string | undefined;
39
+ direction?: "ltr" | "rtl" | undefined;
40
+ "full-width"?: string | undefined;
41
+ padding?: string | undefined;
42
+ "padding-top"?: string | undefined;
43
+ "padding-bottom"?: string | undefined;
44
+ "padding-left"?: string | undefined;
45
+ "padding-right"?: string | undefined;
46
+ "text-align"?: string | undefined;
47
+ "css-class"?: string | undefined;
48
+ "mj-class"?: string | undefined;
49
+ };
50
+ get containerWidth(): string;
51
+ get attributes(): any;
52
+ getStyles(): {
53
+ tableFullwidth: {
54
+ width: string;
55
+ "border-radius": string;
56
+ background: string;
57
+ "background-position": string;
58
+ "background-repeat": string;
59
+ "background-size": string;
60
+ "background-color"?: undefined;
61
+ } | {
62
+ width: string;
63
+ "border-radius": string;
64
+ background: string;
65
+ "background-color": string;
66
+ "background-position"?: undefined;
67
+ "background-repeat"?: undefined;
68
+ "background-size"?: undefined;
69
+ } | {
70
+ width: string;
71
+ "border-radius": string;
72
+ };
73
+ table: {
74
+ width: string;
75
+ "border-radius": string;
76
+ background: string;
77
+ "background-position": string;
78
+ "background-repeat": string;
79
+ "background-size": string;
80
+ "background-color"?: undefined;
81
+ } | {
82
+ width: string;
83
+ "border-radius": string;
84
+ background: string;
85
+ "background-color": string;
86
+ "background-position"?: undefined;
87
+ "background-repeat"?: undefined;
88
+ "background-size"?: undefined;
89
+ } | {
90
+ width: string;
91
+ "border-radius": string;
92
+ };
93
+ td: {
94
+ border: string;
95
+ "border-bottom": string;
96
+ "border-left": string;
97
+ "border-right": string;
98
+ "border-top": string;
99
+ direction: string;
100
+ "font-size": string;
101
+ padding: string;
102
+ "padding-bottom": string;
103
+ "padding-left": string;
104
+ "padding-right": string;
105
+ "padding-top": string;
106
+ "text-align": string;
107
+ };
108
+ div: {
109
+ margin: string;
110
+ "border-radius": string;
111
+ "max-width": string;
112
+ background: string;
113
+ "background-position": string;
114
+ "background-repeat": string;
115
+ "background-size": string;
116
+ "background-color"?: undefined;
117
+ } | {
118
+ margin: string;
119
+ "border-radius": string;
120
+ "max-width": string;
121
+ background: string;
122
+ "background-color": string;
123
+ "background-position"?: undefined;
124
+ "background-repeat"?: undefined;
125
+ "background-size"?: undefined;
126
+ } | {
127
+ margin: string;
128
+ "border-radius": string;
129
+ "max-width": string;
130
+ };
131
+ innerDiv: {
132
+ "line-height": string;
133
+ "font-size": string;
134
+ };
135
+ };
136
+ getBackground(): string;
137
+ getBackgroundString(): string;
138
+ getBackgroundPosition(): {
139
+ posX: string;
140
+ posY: string;
141
+ };
142
+ parseBackgroundPosition(): {
143
+ x: string;
144
+ y: string;
145
+ };
146
+ hasBackground(): boolean;
147
+ isFullWidth(): boolean;
148
+ renderSection(): JSX.Element;
149
+ renderFullWidth(): JSX.Element;
150
+ get childContext(): {
151
+ parent: any;
152
+ stackOnMobile: boolean;
153
+ };
154
+ renderSimple(): JSX.Element;
155
+ renderElement(): JSX.Element;
156
+ }
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import { SocialElement } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class Social extends BaseElement<SocialElement> {
5
+ componentType: string;
6
+ static allowedAttributes: {
7
+ align: string;
8
+ "border-radius": string;
9
+ "container-background-color": string;
10
+ color: string;
11
+ "font-family": string;
12
+ "font-size": string;
13
+ "font-style": string;
14
+ "font-weight": string;
15
+ "icon-size": string;
16
+ "icon-height": string;
17
+ "icon-padding": string;
18
+ "inner-padding": string;
19
+ "line-height": string;
20
+ mode: string;
21
+ "padding-bottom": string;
22
+ "padding-left": string;
23
+ "padding-right": string;
24
+ "padding-top": string;
25
+ padding: string;
26
+ "table-layout": string;
27
+ "text-padding": string;
28
+ "text-decoration": string;
29
+ "vertical-align": string;
30
+ };
31
+ static defaultAttributes: {
32
+ "border-radius"?: string | undefined;
33
+ padding?: string | undefined;
34
+ "padding-top"?: string | undefined;
35
+ "padding-bottom"?: string | undefined;
36
+ "padding-left"?: string | undefined;
37
+ "padding-right"?: string | undefined;
38
+ "container-background-color"?: string | undefined;
39
+ align?: string | undefined;
40
+ color?: string | undefined;
41
+ "inner-padding"?: string | undefined;
42
+ "font-family"?: string | undefined;
43
+ "font-size"?: string | undefined;
44
+ "font-style"?: string | undefined;
45
+ "font-weight"?: string | undefined;
46
+ "line-height"?: string | undefined;
47
+ "text-decoration"?: string | undefined;
48
+ mode?: "vertical" | "horizontal" | undefined;
49
+ "icon-height"?: string | undefined;
50
+ "icon-size"?: string | undefined;
51
+ "icon-padding"?: string | undefined;
52
+ "text-padding"?: string | undefined;
53
+ "css-class"?: string | undefined;
54
+ "mj-class"?: string | undefined;
55
+ };
56
+ getStyles(): {
57
+ tableVertical: {
58
+ margin: string;
59
+ };
60
+ };
61
+ getSocialElementAttributes(): Record<string, string>;
62
+ get isHorizontal(): boolean;
63
+ renderVertical(): JSX.Element;
64
+ renderChildrenWithPlaceholder(): JSX.Element;
65
+ renderHorizontal(): JSX.Element;
66
+ renderElement(): JSX.Element;
67
+ }
@@ -0,0 +1,110 @@
1
+ /// <reference types="react" />
2
+ import { SocialElement } from "easy-email-pro-core";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class SocialItem extends BaseElement<SocialElement> {
5
+ componentType: string;
6
+ static endingTag: boolean;
7
+ static allowedAttributes: {
8
+ align: string;
9
+ "background-color": string;
10
+ color: string;
11
+ "border-radius": string;
12
+ "font-family": string;
13
+ "font-size": string;
14
+ "font-style": string;
15
+ "font-weight": string;
16
+ href: string;
17
+ "icon-size": string;
18
+ "icon-height": string;
19
+ "icon-padding": string;
20
+ "line-height": string;
21
+ name: string;
22
+ "padding-bottom": string;
23
+ "padding-left": string;
24
+ "padding-right": string;
25
+ "padding-top": string;
26
+ padding: string;
27
+ "text-padding": string;
28
+ rel: string;
29
+ src: string;
30
+ srcset: string;
31
+ sizes: string;
32
+ alt: string;
33
+ title: string;
34
+ target: string;
35
+ "text-decoration": string;
36
+ "vertical-align": string;
37
+ };
38
+ static defaultAttributes: {
39
+ title?: string | undefined;
40
+ "background-color"?: string | undefined;
41
+ "border-radius"?: string | undefined;
42
+ padding?: string | undefined;
43
+ "padding-top"?: string | undefined;
44
+ "padding-bottom"?: string | undefined;
45
+ "padding-left"?: string | undefined;
46
+ "padding-right"?: string | undefined;
47
+ align?: string | undefined;
48
+ color?: string | undefined;
49
+ href?: string | undefined;
50
+ target?: string | undefined;
51
+ "vertical-align"?: string | undefined;
52
+ "font-family"?: string | undefined;
53
+ "font-size"?: string | undefined;
54
+ "font-style"?: string | undefined;
55
+ "font-weight"?: string | undefined;
56
+ "line-height"?: string | undefined;
57
+ "text-decoration"?: string | undefined;
58
+ alt?: string | undefined;
59
+ src?: string | undefined;
60
+ "icon-height"?: string | undefined;
61
+ "icon-size"?: string | undefined;
62
+ "icon-padding"?: string | undefined;
63
+ "text-padding"?: string | undefined;
64
+ name?: string | undefined;
65
+ "css-class"?: string | undefined;
66
+ "mj-class"?: string | undefined;
67
+ };
68
+ getAttribute(name: string): string;
69
+ getStyles(): {
70
+ td: {
71
+ padding: string;
72
+ "padding-top": string;
73
+ "padding-bottom": string;
74
+ "padding-left": string;
75
+ "padding-right": string;
76
+ "vertical-align": string;
77
+ };
78
+ table: {
79
+ background: any;
80
+ "border-radius": string;
81
+ width: any;
82
+ };
83
+ icon: {
84
+ padding: string;
85
+ "font-size": string;
86
+ height: any;
87
+ "vertical-align": string;
88
+ width: any;
89
+ };
90
+ img: {
91
+ "border-radius": string;
92
+ display: string;
93
+ };
94
+ tdText: {
95
+ "vertical-align": string;
96
+ padding: string;
97
+ };
98
+ text: {
99
+ color: string;
100
+ "font-size": string;
101
+ "font-weight": string;
102
+ "font-style": string;
103
+ "font-family": string;
104
+ "line-height": string;
105
+ "text-decoration": string;
106
+ };
107
+ };
108
+ getSocialAttributes(): any;
109
+ renderElement(): JSX.Element;
110
+ }
@@ -0,0 +1,35 @@
1
+ import { SpacerElement, Element } from "easy-email-pro-core";
2
+ import React from "react";
3
+ import { BaseElement } from "../BaseElement";
4
+ export declare class Spacer<T extends Element = SpacerElement> extends BaseElement<T> {
5
+ componentType: string;
6
+ static allowedAttributes: {
7
+ border: string;
8
+ "border-bottom": string;
9
+ "border-left": string;
10
+ "border-right": string;
11
+ "border-top": string;
12
+ "container-background-color": string;
13
+ "padding-bottom": string;
14
+ "padding-left": string;
15
+ "padding-right": string;
16
+ "padding-top": string;
17
+ padding: string;
18
+ height: string;
19
+ };
20
+ static defaultAttributes: {
21
+ padding?: string | undefined;
22
+ "container-background-color"?: string | undefined;
23
+ height?: string | undefined;
24
+ "css-class"?: string | undefined;
25
+ "mj-class"?: string | undefined;
26
+ };
27
+ getStyles(): {
28
+ div: {
29
+ height: string;
30
+ "line-height": string;
31
+ };
32
+ };
33
+ renderWithColumn: (children: React.ReactNode) => JSX.Element;
34
+ renderElement(): JSX.Element;
35
+ }