@groovymedia/easy-email-core 4.12.2-2
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/lib/blocks/advanced/blocks/index.d.ts +15 -0
- package/lib/blocks/advanced/generateAdvancedBlock.d.ts +60 -0
- package/lib/blocks/advanced/generateAdvancedContentBlock.d.ts +6 -0
- package/lib/blocks/advanced/generateAdvancedLayoutBlock.d.ts +7 -0
- package/lib/blocks/advanced/index.d.ts +19 -0
- package/lib/blocks/index.d.ts +2 -0
- package/lib/blocks/standard/Accordion/index.d.ts +17 -0
- package/lib/blocks/standard/AccordionElement/index.d.ts +16 -0
- package/lib/blocks/standard/AccordionText/index.d.ts +12 -0
- package/lib/blocks/standard/AccordionTitle/index.d.ts +9 -0
- package/lib/blocks/standard/Button/index.d.ts +30 -0
- package/lib/blocks/standard/Carousel/index.d.ts +26 -0
- package/lib/blocks/standard/Column/index.d.ts +13 -0
- package/lib/blocks/standard/Divider/index.d.ts +11 -0
- package/lib/blocks/standard/Group/index.d.ts +8 -0
- package/lib/blocks/standard/Hero/index.d.ts +15 -0
- package/lib/blocks/standard/Image/index.d.ts +18 -0
- package/lib/blocks/standard/Navbar/index.d.ts +27 -0
- package/lib/blocks/standard/Page/index.d.ts +29 -0
- package/lib/blocks/standard/Raw/index.d.ts +5 -0
- package/lib/blocks/standard/Section/index.d.ts +19 -0
- package/lib/blocks/standard/Social/index.d.ts +47 -0
- package/lib/blocks/standard/Spacer/index.d.ts +7 -0
- package/lib/blocks/standard/Table/index.d.ts +5 -0
- package/lib/blocks/standard/Template/index.d.ts +5 -0
- package/lib/blocks/standard/Text/index.d.ts +20 -0
- package/lib/blocks/standard/Wrapper/index.d.ts +12 -0
- package/lib/blocks/standard/index.d.ts +45 -0
- package/lib/components/Accordion.d.ts +7 -0
- package/lib/components/AccordionElement.d.ts +7 -0
- package/lib/components/AccordionText.d.ts +7 -0
- package/lib/components/AccordionTitle.d.ts +7 -0
- package/lib/components/BasicBlock.d.ts +7 -0
- package/lib/components/BlockRenderer.d.ts +4 -0
- package/lib/components/Button.d.ts +7 -0
- package/lib/components/Carousel.d.ts +7 -0
- package/lib/components/Column.d.ts +7 -0
- package/lib/components/Divider.d.ts +7 -0
- package/lib/components/Group.d.ts +7 -0
- package/lib/components/Hero.d.ts +7 -0
- package/lib/components/Image.d.ts +7 -0
- package/lib/components/MjmlBlock.d.ts +10 -0
- package/lib/components/Navbar.d.ts +7 -0
- package/lib/components/Page.d.ts +7 -0
- package/lib/components/Raw.d.ts +7 -0
- package/lib/components/Section.d.ts +7 -0
- package/lib/components/Social.d.ts +7 -0
- package/lib/components/Spacer.d.ts +7 -0
- package/lib/components/Table.d.ts +7 -0
- package/lib/components/Template.d.ts +8 -0
- package/lib/components/Text.d.ts +7 -0
- package/lib/components/Wrapper.d.ts +7 -0
- package/lib/components/index.d.ts +23 -0
- package/lib/constants.d.ts +42 -0
- package/lib/index.cjs.js +111 -0
- package/lib/index.cjs.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.es.js +5997 -0
- package/lib/index.es.js.map +1 -0
- package/lib/typings/index.d.ts +41 -0
- package/lib/utils/BlockManager.d.ts +16 -0
- package/lib/utils/I18nManager.d.ts +7 -0
- package/lib/utils/ImageManager.d.ts +13 -0
- package/lib/utils/JsonToMjml.d.ts +12 -0
- package/lib/utils/TemplateEngineManager.d.ts +18 -0
- package/lib/utils/ancestorOf.d.ts +1 -0
- package/lib/utils/block.d.ts +34 -0
- package/lib/utils/classnames.d.ts +1 -0
- package/lib/utils/createBlock.d.ts +2 -0
- package/lib/utils/createBlockDataByType.d.ts +2 -0
- package/lib/utils/createCustomBlock.d.ts +2 -0
- package/lib/utils/generaMjmlMetaData.d.ts +2 -0
- package/lib/utils/getAdapterAttributesString.d.ts +2 -0
- package/lib/utils/getImg.d.ts +15 -0
- package/lib/utils/getPlaceholder.d.ts +2 -0
- package/lib/utils/getPreviewClassName.d.ts +1 -0
- package/lib/utils/index.d.ts +16 -0
- package/lib/utils/isAdvancedBlock.d.ts +1 -0
- package/lib/utils/isProductionMode.d.ts +24 -0
- package/lib/utils/isValidBlockData.d.ts +2 -0
- package/lib/utils/mergeBlock.d.ts +2 -0
- package/lib/utils/parseReactBlockToBlockData.d.ts +2 -0
- package/package.json +91 -0
- package/readme.md +581 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IButton, ICarousel, IDivider, IImage, INavbar, ISpacer, IText, IAccordion, ISocial, IWrapper, ISection, IGroup, IColumn, IHero } from '../../standard';
|
|
2
|
+
export declare const AdvancedText: import("../../..").IBlock<IText>;
|
|
3
|
+
export declare const AdvancedButton: import("../../..").IBlock<IButton>;
|
|
4
|
+
export declare const AdvancedImage: import("../../..").IBlock<IImage>;
|
|
5
|
+
export declare const AdvancedDivider: import("../../..").IBlock<IDivider>;
|
|
6
|
+
export declare const AdvancedSpacer: import("../../..").IBlock<ISpacer>;
|
|
7
|
+
export declare const AdvancedNavbar: import("../../..").IBlock<INavbar>;
|
|
8
|
+
export declare const AdvancedAccordion: import("../../..").IBlock<IAccordion>;
|
|
9
|
+
export declare const AdvancedCarousel: import("../../..").IBlock<ICarousel>;
|
|
10
|
+
export declare const AdvancedSocial: import("../../..").IBlock<ISocial>;
|
|
11
|
+
export declare const AdvancedWrapper: import("../../..").IBlock<IWrapper>;
|
|
12
|
+
export declare const AdvancedSection: import("../../..").IBlock<ISection>;
|
|
13
|
+
export declare const AdvancedGroup: import("../../..").IBlock<IGroup>;
|
|
14
|
+
export declare const AdvancedColumn: import("../../..").IBlock<IColumn>;
|
|
15
|
+
export declare const AdvancedHero: import("../../..").IBlock<IHero>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { BasicType } from '../../constants';
|
|
2
|
+
import { IBlock, IBlockData } from '../../typings';
|
|
3
|
+
import { IPage } from '../standard';
|
|
4
|
+
export declare function generateAdvancedBlock<T extends AdvancedBlock>(option: {
|
|
5
|
+
type: string;
|
|
6
|
+
baseType: BasicType;
|
|
7
|
+
getContent: (params: {
|
|
8
|
+
index: number;
|
|
9
|
+
data: T;
|
|
10
|
+
idx: string | null | undefined;
|
|
11
|
+
mode: 'testing' | 'production';
|
|
12
|
+
context?: IPage;
|
|
13
|
+
dataSource?: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
}) => ReturnType<NonNullable<IBlock['render']>>;
|
|
17
|
+
validParentType: string[];
|
|
18
|
+
}): IBlock<T>;
|
|
19
|
+
export interface AdvancedBlock extends IBlockData {
|
|
20
|
+
data: {
|
|
21
|
+
value: {
|
|
22
|
+
condition?: ICondition;
|
|
23
|
+
iteration?: {
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
dataSource: string;
|
|
26
|
+
itemName: string;
|
|
27
|
+
limit: number;
|
|
28
|
+
mockQuantity: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export interface ICondition {
|
|
34
|
+
groups: Array<IConditionGroup>;
|
|
35
|
+
symbol: OperatorSymbol;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface IConditionGroup {
|
|
39
|
+
symbol: OperatorSymbol;
|
|
40
|
+
groups: Array<IConditionGroupItem>;
|
|
41
|
+
}
|
|
42
|
+
export interface IConditionGroupItem {
|
|
43
|
+
left: string;
|
|
44
|
+
operator: Operator;
|
|
45
|
+
right: string | number;
|
|
46
|
+
}
|
|
47
|
+
export declare enum Operator {
|
|
48
|
+
TRUTHY = "truthy",
|
|
49
|
+
FALSY = "falsy",
|
|
50
|
+
EQUAL = "==",
|
|
51
|
+
NOT_EQUAL = "!=",
|
|
52
|
+
GREATER = ">",
|
|
53
|
+
GREATER_OR_EQUAL = ">=",
|
|
54
|
+
LESS = "<",
|
|
55
|
+
LESS_OR_EQUAL = "<="
|
|
56
|
+
}
|
|
57
|
+
export declare enum OperatorSymbol {
|
|
58
|
+
AND = "and",
|
|
59
|
+
OR = "or"
|
|
60
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BasicType } from '../../constants';
|
|
2
|
+
import { AdvancedBlock } from './generateAdvancedBlock';
|
|
3
|
+
export declare function generateAdvancedLayoutBlock<T extends AdvancedBlock>(option: {
|
|
4
|
+
type: string;
|
|
5
|
+
baseType: BasicType;
|
|
6
|
+
validParentType: string[];
|
|
7
|
+
}): import("../..").IBlock<T>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AdvancedBlock, ICondition, IConditionGroup, IConditionGroupItem, Operator, OperatorSymbol } from './generateAdvancedBlock';
|
|
2
|
+
export declare const advancedBlocks: {
|
|
3
|
+
advanced_text: import("../..").IBlock<import("..").IText>;
|
|
4
|
+
advanced_button: import("../..").IBlock<import("..").IButton>;
|
|
5
|
+
advanced_image: import("../..").IBlock<import("..").IImage>;
|
|
6
|
+
advanced_divider: import("../..").IBlock<import("..").IDivider>;
|
|
7
|
+
advanced_spacer: import("../..").IBlock<import("..").ISpacer>;
|
|
8
|
+
advanced_navbar: import("../..").IBlock<import("..").INavbar>;
|
|
9
|
+
advanced_accordion: import("../..").IBlock<import("..").IAccordion>;
|
|
10
|
+
advanced_carousel: import("../..").IBlock<import("..").ICarousel>;
|
|
11
|
+
advanced_social: import("../..").IBlock<import("..").ISocial>;
|
|
12
|
+
advanced_wrapper: import("../..").IBlock<import("..").IWrapper>;
|
|
13
|
+
advanced_section: import("../..").IBlock<import("..").ISection>;
|
|
14
|
+
advanced_group: import("../..").IBlock<import("..").IGroup>;
|
|
15
|
+
advanced_column: import("../..").IBlock<import("..").IColumn>;
|
|
16
|
+
advanced_hero: import("../..").IBlock<import("..").IHero>;
|
|
17
|
+
};
|
|
18
|
+
export { Operator, OperatorSymbol };
|
|
19
|
+
export type { AdvancedBlock, ICondition, IConditionGroup, IConditionGroupItem };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IAccordion = IBlockData<{
|
|
3
|
+
'icon-width': string;
|
|
4
|
+
'icon-height': string;
|
|
5
|
+
'container-background-color'?: string;
|
|
6
|
+
border?: string;
|
|
7
|
+
padding: string;
|
|
8
|
+
'inner-padding'?: string;
|
|
9
|
+
'font-family'?: string;
|
|
10
|
+
'icon-align'?: 'middle' | 'top' | 'bottom';
|
|
11
|
+
'icon-position': 'left' | 'right';
|
|
12
|
+
'icon-unwrapped-alt'?: string;
|
|
13
|
+
'icon-unwrapped-url'?: string;
|
|
14
|
+
'icon-wrapped-alt'?: string;
|
|
15
|
+
'icon-wrapped-url'?: string;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export declare const Accordion: import("../../../typings").IBlock<IAccordion>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IAccordionElement = IBlockData<{
|
|
3
|
+
'icon-width': string;
|
|
4
|
+
'icon-height': string;
|
|
5
|
+
'container-background-color'?: string;
|
|
6
|
+
border?: string;
|
|
7
|
+
'inner-padding'?: string;
|
|
8
|
+
'font-family'?: string;
|
|
9
|
+
'icon-align'?: 'middle' | 'top' | 'bottom';
|
|
10
|
+
'icon-position': 'left' | 'right';
|
|
11
|
+
'icon-unwrapped-alt'?: string;
|
|
12
|
+
'icon-unwrapped-url'?: string;
|
|
13
|
+
'icon-wrapped-alt'?: string;
|
|
14
|
+
'icon-wrapped-url'?: string;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const AccordionElement: import("../../../typings").IBlock<IAccordionElement>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IBlock, IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IAccordionText = IBlockData<{
|
|
3
|
+
color?: string;
|
|
4
|
+
'background-color'?: string;
|
|
5
|
+
'font-size'?: string;
|
|
6
|
+
'font-family'?: string;
|
|
7
|
+
padding?: string;
|
|
8
|
+
'font-weight'?: string;
|
|
9
|
+
'line-height'?: string;
|
|
10
|
+
'letter-spacing'?: string;
|
|
11
|
+
}, {}>;
|
|
12
|
+
export declare const AccordionText: IBlock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IBlock, IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IAccordionTitle = IBlockData<{
|
|
3
|
+
color?: string;
|
|
4
|
+
'background-color'?: string;
|
|
5
|
+
'font-size'?: string;
|
|
6
|
+
'font-family'?: string;
|
|
7
|
+
padding?: string;
|
|
8
|
+
}, {}>;
|
|
9
|
+
export declare const AccordionTitle: IBlock;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IButton = IBlockData<{
|
|
3
|
+
align?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
'background-color'?: string;
|
|
6
|
+
'container-background-color'?: string;
|
|
7
|
+
border?: string;
|
|
8
|
+
'border-radius'?: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
rel?: string;
|
|
11
|
+
target?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
padding?: string;
|
|
14
|
+
'inner-padding'?: string;
|
|
15
|
+
'text-align'?: string;
|
|
16
|
+
'vertical-align'?: 'middle' | 'top' | 'bottom';
|
|
17
|
+
width?: string;
|
|
18
|
+
'font-family'?: string;
|
|
19
|
+
'font-size'?: string;
|
|
20
|
+
'font-style'?: string;
|
|
21
|
+
'font-weight'?: string;
|
|
22
|
+
'line-height'?: string;
|
|
23
|
+
'letter-spacing'?: string;
|
|
24
|
+
height?: string;
|
|
25
|
+
'text-decoration'?: string;
|
|
26
|
+
'text-transform'?: string;
|
|
27
|
+
}, {
|
|
28
|
+
content: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const Button: import("../../../typings").IBlock<IButton>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type ICarousel = IBlockData<{
|
|
3
|
+
align?: string;
|
|
4
|
+
'background-color'?: string;
|
|
5
|
+
'border-radius'?: string;
|
|
6
|
+
'icon-width'?: string;
|
|
7
|
+
'left-icon'?: string;
|
|
8
|
+
'right-icon'?: string;
|
|
9
|
+
'tb-border'?: string;
|
|
10
|
+
'tb-border-radius'?: string;
|
|
11
|
+
'tb-hover-border-color'?: string;
|
|
12
|
+
'tb-selected-border-color'?: string;
|
|
13
|
+
'tb-width'?: string;
|
|
14
|
+
thumbnails?: string;
|
|
15
|
+
}, {
|
|
16
|
+
images: Array<{
|
|
17
|
+
src: string;
|
|
18
|
+
target: string;
|
|
19
|
+
href?: string;
|
|
20
|
+
'thumbnails-src'?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
rel?: string;
|
|
23
|
+
alt?: string;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const Carousel: import("../../../typings").IBlock<ICarousel>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IColumn = IBlockData<{
|
|
3
|
+
'background-color'?: string;
|
|
4
|
+
border?: string;
|
|
5
|
+
'border-radius'?: string;
|
|
6
|
+
'inner-border'?: string;
|
|
7
|
+
'inner-border-radius'?: string;
|
|
8
|
+
padding?: string;
|
|
9
|
+
'text-align'?: string;
|
|
10
|
+
'vertical-align'?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export declare const Column: import("../../../typings").IBlock<IColumn>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IDivider = IBlockData<{
|
|
3
|
+
'border-color'?: string;
|
|
4
|
+
'border-style'?: string;
|
|
5
|
+
'border-width'?: string;
|
|
6
|
+
'container-background-color'?: string;
|
|
7
|
+
width?: string;
|
|
8
|
+
align?: 'left' | 'center' | 'right';
|
|
9
|
+
padding?: string;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export declare const Divider: import("../../../typings").IBlock<IDivider>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IBlock, IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IGroup = IBlockData<{
|
|
3
|
+
width?: string;
|
|
4
|
+
'vertical-align'?: 'middle' | 'top' | 'bottom';
|
|
5
|
+
'background-color'?: string;
|
|
6
|
+
direction?: 'ltr' | 'rtl';
|
|
7
|
+
}>;
|
|
8
|
+
export declare const Group: IBlock<IGroup>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IHero = IBlockData<{
|
|
3
|
+
'background-color'?: string;
|
|
4
|
+
'background-height'?: string;
|
|
5
|
+
'background-position'?: string;
|
|
6
|
+
'background-url'?: string;
|
|
7
|
+
'background-width'?: string;
|
|
8
|
+
'vertical-align'?: string;
|
|
9
|
+
'border-radius'?: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
height?: string;
|
|
12
|
+
mode: 'fluid-height' | 'fixed-height';
|
|
13
|
+
padding?: string;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export declare const Hero: import("../../../typings").IBlock<IHero>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { IBlock, IBlockData } from '../../../typings';
|
|
3
|
+
export declare type IImage = IBlockData<{
|
|
4
|
+
alt?: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
target?: string;
|
|
9
|
+
border?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
'text-decoration'?: string;
|
|
12
|
+
'text-transform'?: CSSProperties['textTransform'];
|
|
13
|
+
align?: CSSProperties['textAlign'];
|
|
14
|
+
'container-background-color'?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
padding?: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const Image: IBlock<IImage>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IBlock, IBlockData } from '../../../typings';
|
|
2
|
+
export declare type INavbar = IBlockData<{
|
|
3
|
+
align?: string;
|
|
4
|
+
hamburger?: string;
|
|
5
|
+
'ico-align'?: string;
|
|
6
|
+
'ico-color'?: string;
|
|
7
|
+
'ico-font-size'?: string;
|
|
8
|
+
'ico-line-height'?: string;
|
|
9
|
+
'ico-padding'?: string;
|
|
10
|
+
'ico-text-decoration'?: string;
|
|
11
|
+
'ico-text-transform'?: string;
|
|
12
|
+
}, {
|
|
13
|
+
links: Array<{
|
|
14
|
+
content: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
href?: string;
|
|
17
|
+
'font-family'?: string;
|
|
18
|
+
'font-size'?: string;
|
|
19
|
+
'font-style'?: string;
|
|
20
|
+
'font-weight'?: string;
|
|
21
|
+
'line-height'?: string;
|
|
22
|
+
'text-decoration'?: string;
|
|
23
|
+
target?: string;
|
|
24
|
+
padding?: string;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const Navbar: IBlock<INavbar>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IPage = IBlockData<{
|
|
3
|
+
'background-color'?: string;
|
|
4
|
+
width: string;
|
|
5
|
+
}, {
|
|
6
|
+
breakpoint?: string;
|
|
7
|
+
headAttributes: string;
|
|
8
|
+
fonts?: {
|
|
9
|
+
name: string;
|
|
10
|
+
href: string;
|
|
11
|
+
}[];
|
|
12
|
+
headStyles?: {
|
|
13
|
+
content?: string;
|
|
14
|
+
inline?: 'inline';
|
|
15
|
+
}[];
|
|
16
|
+
extraHeadContent?: string;
|
|
17
|
+
responsive?: boolean;
|
|
18
|
+
'font-family': string;
|
|
19
|
+
'font-size': string;
|
|
20
|
+
'font-weight': string;
|
|
21
|
+
'line-height': string;
|
|
22
|
+
'text-color': string;
|
|
23
|
+
'user-style'?: {
|
|
24
|
+
content?: string;
|
|
25
|
+
inline?: 'inline';
|
|
26
|
+
};
|
|
27
|
+
'content-background-color'?: string;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const Page: import("../../../typings").IBlock<IPage>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { IBlockData } from '../../../typings';
|
|
3
|
+
export declare type ISection = IBlockData<{
|
|
4
|
+
'background-color'?: string;
|
|
5
|
+
'background-position'?: string;
|
|
6
|
+
'background-position-x'?: string;
|
|
7
|
+
'background-position-y'?: string;
|
|
8
|
+
'background-repeat'?: 'repeat' | 'no-repeat';
|
|
9
|
+
'background-size'?: string;
|
|
10
|
+
'background-url'?: string;
|
|
11
|
+
border?: string;
|
|
12
|
+
'border-radius'?: string;
|
|
13
|
+
direction?: 'ltr' | 'rtl';
|
|
14
|
+
'full-width'?: 'ltr' | 'rtl';
|
|
15
|
+
padding?: string;
|
|
16
|
+
'text-align'?: CSSProperties['textAlign'];
|
|
17
|
+
'max-width'?: string;
|
|
18
|
+
}, {}>;
|
|
19
|
+
export declare const Section: import("../../../typings").IBlock<ISection>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IBlock, IBlockData } from '../../../typings';
|
|
2
|
+
export declare type ISocial = IBlockData<{
|
|
3
|
+
align?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
'container-background-color'?: string;
|
|
6
|
+
'border-radius'?: string;
|
|
7
|
+
'icon-height'?: string;
|
|
8
|
+
'icon-size'?: string;
|
|
9
|
+
mode?: 'vertical' | 'horizontal';
|
|
10
|
+
'icon-padding': string;
|
|
11
|
+
'text-padding': string;
|
|
12
|
+
'text-decoration'?: string;
|
|
13
|
+
padding?: string;
|
|
14
|
+
'inner-padding'?: string;
|
|
15
|
+
'font-family'?: string;
|
|
16
|
+
'font-size'?: string;
|
|
17
|
+
'font-style'?: string;
|
|
18
|
+
'font-weight'?: string;
|
|
19
|
+
'line-height'?: string;
|
|
20
|
+
}, {
|
|
21
|
+
elements: Array<{
|
|
22
|
+
content: string;
|
|
23
|
+
src: string;
|
|
24
|
+
align?: string;
|
|
25
|
+
alt?: string;
|
|
26
|
+
'background-color'?: string;
|
|
27
|
+
'border-radius'?: string;
|
|
28
|
+
color?: string;
|
|
29
|
+
'font-family'?: string;
|
|
30
|
+
'font-size'?: string;
|
|
31
|
+
'font-style'?: string;
|
|
32
|
+
'font-weight'?: string;
|
|
33
|
+
href?: string;
|
|
34
|
+
'icon-height'?: string;
|
|
35
|
+
'icon-size'?: string;
|
|
36
|
+
'line-height'?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
padding?: string;
|
|
39
|
+
'icon-padding'?: string;
|
|
40
|
+
'text-padding'?: string;
|
|
41
|
+
target?: string;
|
|
42
|
+
title?: string;
|
|
43
|
+
'text-decoration'?: string;
|
|
44
|
+
'vertical-align'?: string;
|
|
45
|
+
}>;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const Social: IBlock<ISocial>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
export declare type IText = IBlockData<{
|
|
3
|
+
color?: string;
|
|
4
|
+
'font-family'?: string;
|
|
5
|
+
'font-size'?: string;
|
|
6
|
+
'font-style'?: string;
|
|
7
|
+
'font-weight'?: string;
|
|
8
|
+
'line-height'?: string;
|
|
9
|
+
'letter-spacing'?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
'text-decoration'?: string;
|
|
12
|
+
'text-transform'?: string;
|
|
13
|
+
align?: string;
|
|
14
|
+
'container-background-color'?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
padding?: string;
|
|
17
|
+
}, {
|
|
18
|
+
content: string;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const Text: import("../../../typings").IBlock<IText>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IBlockData } from '../../../typings';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
export declare type IWrapper = IBlockData<{
|
|
4
|
+
'background-color'?: string;
|
|
5
|
+
border?: string;
|
|
6
|
+
'border-radius'?: string;
|
|
7
|
+
'full-width'?: string;
|
|
8
|
+
direction?: 'ltr' | 'rtl';
|
|
9
|
+
padding?: string;
|
|
10
|
+
'text-align'?: CSSProperties['textAlign'];
|
|
11
|
+
}, {}>;
|
|
12
|
+
export declare const Wrapper: import("../../../typings").IBlock<IWrapper>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IPage } from './Page';
|
|
2
|
+
import { ISection } from './Section';
|
|
3
|
+
import { IColumn } from './Column';
|
|
4
|
+
import { IText } from './Text';
|
|
5
|
+
import { IImage } from './Image';
|
|
6
|
+
import { IGroup } from './Group';
|
|
7
|
+
import { IButton } from './Button';
|
|
8
|
+
import { IDivider } from './Divider';
|
|
9
|
+
import { IWrapper } from './Wrapper';
|
|
10
|
+
import { ISpacer } from './Spacer';
|
|
11
|
+
import { ICarousel } from './Carousel';
|
|
12
|
+
import { IHero } from './Hero';
|
|
13
|
+
import { INavbar } from './Navbar';
|
|
14
|
+
import { ISocial } from './Social';
|
|
15
|
+
import { IRaw } from './Raw';
|
|
16
|
+
import { ITemplate } from './Template';
|
|
17
|
+
import { IAccordion } from './Accordion';
|
|
18
|
+
import { IAccordionElement } from './AccordionElement';
|
|
19
|
+
import { IAccordionTitle } from './AccordionTitle';
|
|
20
|
+
import { IAccordionText } from './AccordionText';
|
|
21
|
+
import { ITable } from './Table';
|
|
22
|
+
export declare const standardBlocks: {
|
|
23
|
+
page: import("../..").IBlock<IPage>;
|
|
24
|
+
section: import("../..").IBlock<ISection>;
|
|
25
|
+
column: import("../..").IBlock<IColumn>;
|
|
26
|
+
text: import("../..").IBlock<IText>;
|
|
27
|
+
image: import("../..").IBlock<IImage>;
|
|
28
|
+
group: import("../..").IBlock<IGroup>;
|
|
29
|
+
button: import("../..").IBlock<IButton>;
|
|
30
|
+
divider: import("../..").IBlock<IDivider>;
|
|
31
|
+
wrapper: import("../..").IBlock<IWrapper>;
|
|
32
|
+
spacer: import("../..").IBlock<ISpacer>;
|
|
33
|
+
raw: import("../..").IBlock<IRaw>;
|
|
34
|
+
carousel: import("../..").IBlock<ICarousel>;
|
|
35
|
+
hero: import("../..").IBlock<IHero>;
|
|
36
|
+
navbar: import("../..").IBlock<INavbar>;
|
|
37
|
+
social: import("../..").IBlock<ISocial>;
|
|
38
|
+
template: import("../..").IBlock<ITemplate>;
|
|
39
|
+
accordion: import("../..").IBlock<IAccordion>;
|
|
40
|
+
"accordion-element": import("../..").IBlock<IAccordionElement>;
|
|
41
|
+
"accordion-title": import("../..").IBlock<import("../..").IBlockData<any, any>>;
|
|
42
|
+
"accordion-text": import("../..").IBlock<import("../..").IBlockData<any, any>>;
|
|
43
|
+
table: import("../..").IBlock<ITable>;
|
|
44
|
+
};
|
|
45
|
+
export type { IPage, ISection, IWrapper, IColumn, IGroup, IText, ITable, IImage, IButton, IDivider, ISpacer, ICarousel, IHero, ISocial, INavbar, IRaw, IAccordion, IAccordionElement, IAccordionTitle, IAccordionText, ITemplate, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IAccordion } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type AccordionProps = RecursivePartial<IAccordion['data']> & RecursivePartial<IAccordion['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IAccordion>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function Accordion(props: AccordionProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IAccordionElement } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type AccordionElementProps = RecursivePartial<IAccordionElement['data']> & RecursivePartial<IAccordionElement['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IAccordionElement>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function AccordionElement(props: AccordionElementProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IAccordionText } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type AccordionTextProps = RecursivePartial<IAccordionText['data']> & RecursivePartial<IAccordionText['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IAccordionText>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function AccordionText(props: AccordionTextProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IAccordionTitle } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type AccordionTitleProps = RecursivePartial<IAccordionTitle['data']> & RecursivePartial<IAccordionTitle['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IAccordionTitle>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function AccordionTitle(props: AccordionTitleProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IButton } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type ButtonProps = RecursivePartial<IButton['data']> & RecursivePartial<IButton['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IButton>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function Button(props: ButtonProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { ICarousel } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type CarouselProps = RecursivePartial<ICarousel['data']> & RecursivePartial<ICarousel['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<ICarousel>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function Carousel(props: CarouselProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IColumn } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type ColumnProps = RecursivePartial<IColumn['data']> & RecursivePartial<IColumn['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IColumn>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function Column(props: ColumnProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IDivider } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type DividerProps = RecursivePartial<IDivider['data']> & RecursivePartial<IDivider['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IDivider>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function Divider(props: DividerProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecursivePartial } from '../typings';
|
|
2
|
+
import { IGroup } from '../blocks';
|
|
3
|
+
import { MjmlBlockProps } from '../components/MjmlBlock';
|
|
4
|
+
export declare type GroupProps = RecursivePartial<IGroup['data']> & RecursivePartial<IGroup['attributes']> & {
|
|
5
|
+
children?: MjmlBlockProps<IGroup>['children'];
|
|
6
|
+
};
|
|
7
|
+
export declare function Group(props: GroupProps): JSX.Element;
|